Forums


QdbS - Quote database System :: Forums :: QdbS Support
<< Previous thread | Next thread >>   

No change after quote rating

Author Post
Shmorgen
Sun Jun 07 2009, 22:47:02
Registered Member #19
Joined: Sun Jun 07 2009, 22:42:50
Posts: 3
After clicking the + or - for any quote, nothing changes, the page just reloads.

In address bar it says http://mysite.com/browse?do=rate&q=1&r=good after i click + and accordingly "bad" at the end after i click - but the number in "Rated:" remains the same at all times.

Is it related to .htaccess i use? I got the one from "Example .htaccess file" unchanged. I use the latest version available, 1.10.

Any help? Thanks.
Back to top
Shmorgen
Sun Jun 07 2009, 22:57:58
Registered Member #19
Joined: Sun Jun 07 2009, 22:42:50
Posts: 3
Solved it, getting back to this as i think its a bug when using url rewrite in .htaccess.

To solve the problem, quote_rate.tpl must be edited. Instaed of

<a href="?do=rate&q=<?php echo $q_id;?>&r=good"

it should be changed into full URL

<a href="http://yoursite.com/?do=rate&q=<?php echo $q_id;?>&r=good"

*I am using bash-2.0 template, which is excellent.

Thanks for the script.
Back to top
Eck
Wed Jun 10 2009, 08:41:09
Joined: Mon Sep 01 2008, 08:09:23
Posts: 10
hi, I must have overlooked the rate url mistake in the bash-2.0 template, it's now fixed.
In subdirectories and rewrite urls, itll mess up (thats why we need the ./)


<b>(<a href="./?do=rate&q=<?php echo $q_id;?>&r=good" title="Rate as good"><b>+</b></a>|<a href="./?do=rate&q=<?php echo $q_id;?>&r=bad" title="Rate as bad"><b>-</b></a>)</b>


https://sourceforge.net/project/showfiles.php?group_id=244158&package_id=297909&release_id=676916

[ Edited Wed Jun 10 2009, 08:44:19 ]
Back to top
Moderators: Jobe, Eck

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System