Rate This Site v1.3 Infusion for PHP-Fusion v7.00.+
Rate This Site v1.3 for v7.00 by HobbyMan | See includedagpl.htmlfor more.
What it does:

The user field will create a new choice in edit_profile for the member to "Rate" the site from 1 to 5 stars. The members rating will NOT be visible to other members or admins in their profile. This is so individual members can be honest in their voting. It can only be viewed by a SuperAdmin. Members can change their rating at any time in edit profile.

This Mod is in three parts...

  • A new user field in the members profile called "Rate The Site".
  • An infusion for Admins to view the rating stats created by members.
  • A panel to show the overall rating the site has received from the members rating to your site visitors.


Installation:

It is best to do each section separately to avoid files going to the wrong destination.

  1. Upload user_rate_include.php and user_rate_include_var.php to the includes/userfields folder and user_rate.php to the locale/English/user_fields folder. Go to Admin Panel - User Admin - User Fields. You should be able to see "Rate this Site" under "Disabled User Fields". Click Enable, it will go into "Enabled User Fields" in the Information Group. Move it up or down as desired. You can check by clicking "Edit Profile" and it should be visible under "Miscellaneous Information" [Dropdown menu - 1 to 5 stars].
    That's the user field sorted.
  2. Upload the "rate_this_site" and the "rate_this_site_panel" folders to your infusions folder. Go to Admin Panel - System Admin - Infusions. Click the dropdown and infuse "Rate This Site". Go to Admin Panel - Infusions to check that it's there. At this stage you'll just have a load of zeros with an Overall Site Rating of one star. [see notes]
  3. Go to Admin Panel - System Admin - Panels. Click Add New Panel, choose rate_this_site_panel from the drop down, enter in Panel Name "Rate This Site", enter your Admin password, choose left or right Panel side, leave Panel Access at Public and Save Panel. Click "Return to Panel Management" and enable the panel.

Core File Modification:

  1. None

Upgrading from previous version:

  1. If you have a previous version installed, just overwrite all files. Do NOT disable the userfield as you'll lose all your accumulated votes so far and reset to zero.
  2. In the infusions dropdown, Rate This Site will show up in blue indicating an upgrade. Do NOT defuse, just  infuse as normal.

Uninstall:

  1. Go to Admin Panel - System Admin - Panels and delete or disable "rate_this_site_panel".
  2. Go to Admin Panel - System Admin - Infusions and defuse "Rate This site".
  3. Go to Admin Panel - User Admin - User Fields and disable "Rate this Site".
CONFIGURATION:
  1. If you want to change the visibility of the field in members profiles from Supers to Admins or Members, open includes/user_fields/user_rate_include.php.
  2. To alter the number of users per page in RTS Admin, open rate_this_site_admin.php, go to line 33 and edit as needed.
    // Change number of users per page
    $rowlimit = "20";
    //
  3. Go to line 36, change if (iSUPERADMIN) to if (iADMIN) or if (iMEMBER).

Misc:

There's an optional infusion icon in the download in files - administration - images folder.

 

E-Mail: hobbyman@hobbysites.net
Web: http://www.php-fusion.hobbysites.net
Support: http://www.php-fusion.hobbysites.net or http://www.phpfusion-mods.com
Version: 1.3
HobbySites - Mods, Infusions, Themes for php-fusion

Notes and Changelog
Notes:

1. At the beginning all members will show a zero and your Overall Site Rating will be zero. The rating is calculated on a percentage of votes, unlike the photogallery where you can have 5 stars for a photo with just one vote. The more members rate the better your OSR will get, so be patient. Your OSR will increase soon enough. If you have a small membership you can always change the panel access to members or admins until it's fit for facing the world :)

2. You don't need the panel for this system to work, the infusion will give you the stats and if you're a SuperAdmin, you can view the individual ratings in members profiles.

3. This is just a bit of fun, please DON'T be emailing or contacting me with complaints about the way the mathematics are handled by this mod or that the percentages are off. It's not to be taken too seriously. All the figures are rounded off.
 

Changelog:

v1.3 - Added pagenav to user list in admin. Overall code cleanup.
v1.2 - Repaired side panel link. Panel recognises user level. Admin panel show members who have rated.
v1.1 - Fixed Conditional Statements output error
v1.00 - First public version