Author Topic: little bug  (Read 2340 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
little bug
« on: May 26, 2003, 06:30:03 AM »
Just discovered a little bug:
when u open details.php with mode=search and then vote for the image, it will open details.php without mode=search, so u will lose the images u found, unless u hit "back" browsers button.
to fix this, find in /includes/page_header.php:
Code: [Select]
 "self" => $site_sess->url($self_url),add after:
Code: [Select]
 "self_mode" => $site_sess->url($self_url.((!empty($mode)) ? (preg_match("/\?/", $self_url) ? "&" : "?")."mode=".$mode : "")),

then in /templates/<yourtemplate>/rate_form.html replace {self} with {self_mode}
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)