"Rate me" mod

Compatibility

This mod works with phpFoX versions 1.09 and 1.1.

Installation instructions

Installing on phpFoX v1.09

Installation instructions for phpFoX version 1.0.9

  1. Step 1
    • Run the SQL in database.mysql (included in the mod package) on your phpFoX database.
  2. Step 2
    • Upload the provided rateusernow.php, toprated.php and whoratedwho.php files (in the /phpFoX109/ folder) into the root directory of your phpFoX installation. Tip: toprated.php must be uploaded using a binary transfer method.
  3. Step 3
    • You now need to upload top_rated.tpl into the /inc/template/new/ folder of your phpFoX installation. If you have clean URLs enabled (i.e. http://yoursite.com/username) then use the top_rated.tpl in the included /for_clean_urls/ folder. If you do not have clean URLs enabled, use the file in /for_messy_urls/1.09/.
  4. Step 4
    • Next, open up profile_index.tpl (still in the /inc/template/new/ folder), scroll down to where you see the following code for the first time and insert the contents of rate_me.easymods.co.uk.v0.1.php just below.
      	<!-- member_in_START --!>
      
      	<br />
  5. Step 5
    • Add a menu link to the table of rated users in your main_header.tpl file in the /inc/template/new/ folder of your phpFoX installation using the following code:
          <!-- member_in_START --!>
      
          <td class="menu" onclick="javascript:window.location.href='toprated.php';" onmouseover="this.className='menu2';" onmouseout="this.className='menu';">
      	<a href="{%HOME%}/toprated.php" title="See a table of the top rated users">TOP RATED</a>
          </td>
          <!-- member_in_END --!>
      

      Tip: a good place to put it is just below where you see the following code for the first time:

      <!-- SECTION_BROWSE_END --!>
      

Installing on phpFoX v1.1

Installation instructions for phpFoX version 1.1

  1. Step 1
    • Run the SQL in the database.mysql on your phpFoX database.
  2. Step 2
    • Upload the provided rateusernow.php, toprated.php and whoratedwho.php files (in the /phpFoX11/ folder) into the root directory of your phpFoX installation. Tip: toprated.php must be uploaded using a binary transfer method.
  3. Step 3
    • You now need to upload top_rated.tpl into the /inc/template/new/ folder of your phpFoX installation. If you have clean URLs enabled (i.e. http://yoursite.com/username) then use the top_rated.tpl in the included /for_clean_urls/ folder. If you do not have clean URLs enabled, use the file in /for_messy_urls/1.1/.
  4. Step 4
    • Open up profile_index.php (still in the /inc/template/new/ folder) and scroll down to where the following code is displayed. Insert a <br /> below, then insert the contents of rate_me.easymods.co.uk.v0.1.php below that.
          <!-- DISPLAY_POINTS_END --!>
      
          	</td>
          	</tr>
          	</table>
  5. Step 5
    • Add a menu link to the table of rated users in your main_header.tpl file in the /inc/template/new/ folder of your phpFoX installation using the following code:
      <td class="menu" onclick="javascript:window.location.href='toprated.php';" onmouseover="this.className='menu2';" onmouseout="this.className='menu';">
      	<a href="{%HOME%}/toprated.php" title="See a table of the top rated users">TOP RATED</a>
          </td>

      Tip: a good place to put it is just below where you see the following code for the first time:

      <!-- SECTION_BROWSE_END --!>
      
packages/1.x/rate_me_mod/start.txt · Last modified: 2008/03/05 15:58 by tomj
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0