Help - Search - Member List - Calendar
Full Version: [ADDON] Rating System
Krazy Letter Forums > Members stuff > Computer Programs > PHPKImageHost > Modifications/Hacks
Spaceman3750
After several hours of coding, I am pleased to introduce the PHPK Rating System Addon. It is compatible with the current ALPHA release (.7). This rating system includes use of mod_rewrite.

Known bugs or missing features
-The system doens't devide to one decimal place, instead, it only divides to the whole number.
-No logging system included. Unfortunately, I was unable to get the IP logging system to work properly and had to take it out. If someone wishes to play with this please send me the updated file.

Please report any bugs you find to this topic so I can fix them.

Please note that the copyright on the rate_image.php page must stay intact. You may NOT redistribute this package, it is for distribution at KrazyLetter ONLY. Please feel free to modify the system to suit your needs, however, please leave all copyright notices, both in-file and visible intact.

Demo: http://spaceman.krazyletter.com/phpkdemo/view/3

Now, without further adoo, the file...
zac439
QUOTE(Spaceman3750 @ Feb 19 2006, 06:29 PM)
After several hours of coding, I am pleased to introduce the PHPK Rating System Addon.  It is compatible with the current ALPHA release (.7 I believe).  This rating system includes use of mod_rewrite.

Known bugs or missing features
-The system doens't devide to one decimal place, instead, it only divides to the whole number.
-No logging system included.  Unfortunately, I was unable to get the IP logging system to work properly and had to take it out.  If someone wishes to play with this please send me the updated file.

Please report any bugs you find to this topic so I can fix them.

Please note that the copyright on the rate_image.php page must stay intact.  You may NOT redistribute this package, it is for distribution at KrazyLetter ONLY.  Please feel free to modify the system to suit your needs, however, please leave all copyright notices, both in-file and visible intact.

Demo: http://spacekid.heliohost.org/PHPK2/view/7 (new uploads disabled)

Now, without further adoo, the file...
*



mm still havent installed it. i have the latest phpk version and i couldnt find

$userfile_name = mysql_insert_id();

but i did find where i was supposed to put it, but ill just wait until you fix your readme until i mess around with the script.

also couldnt find

RewriteRule ^view/(.*) viewer.php?id=$1

in .htaccess

Spaceman3750
It is the very last line.

I have to fix an issue with how it averages the ratings, it makes the rating incorrect. So wait until I fix that issue then install it wink.gif. I will also be releasing a pre-modded PHPK soon smile.gif.
Spaceman3750
The new package has been uploaded.

PS - This isn't a double post, since this post was made several hours after my first post wink.gif.
error
Hello,

I have followed everything correctly from the ReadMe file but when i try to rate an image, i am getting the error below. Could you please tell me what is the problem? Thank you

CODE
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/jojo/public_html/tampa/rate_image.php on line 35
Thank you for rating this image. Click here to return to the image.

Rating System ©2006 Spaceman3750
Spaceman3750
You are sure you ran the ratingsys_install.php file? That error means something happened when the script tried to run a MySQL query, which should run properly if the necessary entries in the database were made.

PS - for those of you in the know, that is the error that will happen if the mysql query fails, because I neglected to add error-handling code to the MySQL queries. Dumb me...
lappy512
Spacekid, something wrong with your display.php?
This install of PHPKImageHost is not working properly...The Image is not being displayed properly.
Spaceman3750
For some reason, the demo isn't working properly... I hope to release a new version within the next couple of weeks anyway...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.