Geeklog Hosting, Setup, Mods, and more www.geeklogworks.com
INTRODUCTION
This simply adds a rating system to Geeklog for stories. It can
be modified fairly easily for links, comments, and forum posts if
desired with a little php knowledge. To install you should have
1.3.x, preferrably the latest Geeklog for the best results and
easiest install. It is setup to allow 1 vote per user ip.
EASY INSTALLATION
IMPORTANT
STEP: Please log into geeklog admin account
before following the instructions below. Your website may be
offline temporarily while you install this mod.
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.
|
7. Open your lib-common.php file in your
public_html directory.
lib-common.php Look for the line if( $index == 'n' ) Put the following code above that line //If an article
there is no sid so look for appropriate variable Save the file and upload it to your public_html directory. |
8. That's it! You now have ratings installed and can begin to
rate items for your website. Be on the look out for additions by
visiting geeklog.net or geeklogworks.com. Thanks!
SUPPORT
For support for this hack please visit geeklog.net forums. You can also try visiting geeklogworks.com
for more information on this project. Thanks.