Edit show.addcomments.php to prevent cookie data loss

Report bugs and errors in this forum.

Edit show.addcomments.php to prevent cookie data loss

Postby BadDog » Fri Jan 06, 2006 8:15 am

Find these 2 lines in show.addcomments.php so user's won't lose cookie data with rufus setting different paths across different posts, making cookies useless:



((path) ? "; path=" + path : "") +



change to this:





((path = '/') ? "; path=" + path : "") +





There, that fixes the cookies and user's won't lose any of their stored cookie data :D
Last edited by BadDog on Sun Jan 08, 2006 1:04 am, edited 3 times in total.
BadDog
 
Posts: 62
Joined: Mon Nov 21, 2005 8:19 am

Postby Thrik » Fri Jan 06, 2006 5:36 pm

Could this be related to why my [if-logged] isn't working? I've got those tags wrapped around an edit link, but it doesn't seem to ever show even if I submit a comment using my admin name/password or am logged into the admin panel. I've tried removing the path and then logging out/in but it hasn't helped. :~
Thrik
 
Posts: 50
Joined: Wed Oct 26, 2005 3:19 am

Postby BadDog » Sat Jan 07, 2006 12:33 am

Thrik wrote:Could this be related to why my [if-logged] isn't working? I've got those tags wrapped around an edit link, but it doesn't seem to ever show even if I submit a comment using my admin name/password or am logged into the admin panel. I've tried removing the path and then logging out/in but it hasn't helped. :~




[if-logged] is determined by head.php and not cookies.
BadDog
 
Posts: 62
Joined: Mon Nov 21, 2005 8:19 am


Return to Bugs and errors



Who is online

Users browsing this forum: No registered users and 0 guests

cron