Welcome to Geeklog, Anonymous Saturday, June 22 2024 @ 05:08 am EDT

Geeklog Forums

Rating System Help


I'm trying to install the rating system for stories and I'm confused on a certain point:

1. First upload rating.php and installrating.php to your public_html directory.

2. Next upload the images in this package(rank 1-5) to your public_html/images directory.

3. Open your lib-database.php file normally found at /path/to/geeklog/system/

Add the following lines under the line for $_TABLES['postmodes']

$_TABLES['ratings'] = $_DB_table_prefix . 'ratings';
$_TABLES['rating_records'] = $_DB_table_prefix . 'rating_records';

Upload the new edited lib-database.php to the appropriate directory.

4. Now run installrating.php from your geeklog website.

5. If it is successful two tables will be created for ratings and rating records. Now continue with instructions below.

6. Go to your theme main directory(/path/to/geeklog/public_html/layout/your_theme_name/. I have included files already modified for each theme in the 'themefiles' folder included in this package . Replace each theme's story and featured story files in your layout folder with the ones included in this package. If you have another theme read below how to modify the correct files for those themes not included.

I already changed the lib-database file under "system," but I don't understand why I have to "upload the new edited lib-database." Where is the new one? and what is the appropriate directory? And where do I go in Admin to run installrating.php on my geeklog site?

Status: offline


Forum User
Full Member
Registered: 08/29/05
Posts: 985
Most people have a local install of their website that they make changes to first then upload to their website. If you are just editing the file on the webiste, you don't need to upload anything.

As for installrating.php. He means go into your browser and goto http://yourwebsite/installrating.php directly. There will not be a link anywhere within geeklog.

Rating does not follow the normal plugin conventions. Probably because you have to modify so many files to get it working.

All times are EDT. The time is now 05:08 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content