Discussion
rating script?(back to index)anyone knows a good rater script to run with folderblog??
posted by carlos on 13 Jun 06 at 10:56 AM
I'm actually working with this as we speak, I'm tweaking a plug-n-play php rating script to work dynamically, but currently I'm having issues with it messing up my folderblog template. Any help would be appreciated. My folderblog is http://gallery.bleary-eyed.net and the script's url is
here.
posted by
Sarasnee on 15 Jun 06 at 6:28 PM
After 8 hours of tweaking, I think I have it completed. Contact me if you want it, in the meantime I'll be creating a page for the hack. View my rating system
here and
here.
posted by
Sarasnee on 15 Jun 06 at 10:20 PM
I finally finished a rough draft of the tutorial, which can be found
here. Give me feedback and tell me what problems you encounter.
So far I've had issues with errors occuring on photos that had apostrophes in the titles. There were only three photos, though, so I just changed the titles and left the bug. lol!
posted by
Sarasnee on 16 Jun 06 at 4:48 AM
Hi Sarasnee,
I am unable to use the rating system.
Please help me. The link for blog is:
http://www.ee.iitb.ac.in/uma/~saurabhg/shutterbug
For rater folder is:
http://www.ee.iitb.ac.in/uma/~saurabhg/shutterbug/rater
I get an error message when I try to run test.php or rater.php file.
Error message:
Warning: fopen("rater/item_1.rating", "w") - No such file or directory in /mount/ug/dd/saurabhg/public_html/shutterbug/rater/rater.php on line 85
Warning: fclose(): supplied argument is not a valid File-Handle resource in /mount/ug/dd/saurabhg/public_html/shutterbug/rater/rater.php on line 86
posted by
Vikram on 16 Jun 06 at 7:09 PM
Yeah, I've had that error as well. It's because you have slashes in the rating file name, so it's looking for another /rater/rater/item_1.rating instead of /rater/item_1.rating. It happened when I used #fbname# instead of #fbnumber# in the code inserted in the template.
Too bad it doesn't work that way, though.
posted by
Sarasnee on 16 Jun 06 at 11:31 PM
Oh, you may also have put rater.php in the rater folder. It goes in the main directory. If you look at the first line of the "don't edit below this" line in rater.php, it already knows to go to /rater/ for the rating files, so you can put it in the main directory.
posted by
Sarasnee on 16 Jun 06 at 11:33 PM
Yeah, you have it in the rater folder. I changed the tutorial so maybe it's more clear now. Good luck!
posted by
Sarasnee on 17 Jun 06 at 12:13 AM
Hi!
I have put rater.php in main folder..
and i use #fbnumber# in y template_main page.
Two problems:
1) the rating does not appear on my pages
2) when i try to access it using http://www.ee.iitb.ac.in/uma/~saurabhg/shutterbug/rater.php
I can see the rating but when I try to click it< i get the previously mentioned error.
posted by
Vikram on 17 Jun 06 at 3:24 AM
You don't access the ratings via rater.php. rater.php is included dynamically in your main page of folderblog once you insert that little code (code #2) into your template_main page. Or so it should. o.O
posted by
Sarasnee on 17 Jun 06 at 11:34 AM
I should read what you post before I jump to conclusions, lol. Now I'm thinking perhaps you haven't done a CHMOD on your /rater/ folder. It needs to be writeable. But I'm still not sure why it's not showing up, it should be.. Are you using a different template and not the template_main?
posted by
Sarasnee on 17 Jun 06 at 11:39 AM
Oh, you may also want to change your image locations on your rater.php so that they show up. Right now it's pointing to ee.iitb.ac.in/rater/img/00star.gif instead of /uma/~saurabhg/shutterbug/rater/. So you'll have to go in under // assign star image and change the directory.
Sorry about all of these bumps, this is all new for me. :)
posted by
Sarasnee on 17 Jun 06 at 11:52 AM
Vikram, I've tweaked the image area of rater.php on the tutorial if you'd rather just copy that. Images should work for you then. According to your index.php source code, I think you've pretty much excluded the code from your page. I think you should either put the code in your table or clean up the tables themselves, that might be the problem.. because it's there and it recognizes your photos, it just doesn't display. CHMODing might fix this as well, though. Email me at sara@bleary-eyed.net if you want some direct contact, although I'm leaving and won't be back until tomorrow. Good luck!
posted by
Sarasnee on 17 Jun 06 at 12:17 PM
Post a Reply:
(back to index)