Author Topic: Category dropdown change  (Read 3188 times)

0 Members and 1 Guest are viewing this topic.

Offline I_Want_Mods_2

  • Newbie
  • *
  • Posts: 21
    • View Profile
Category dropdown change
« on: February 13, 2009, 06:41:26 PM »
When visitor choose something from category dropdown the page mysite.com/categories.php opens, but I want to open mysite.com/categories.php?cat_id=1 or mysite.com/categories.php?cat_id=2 or mysite.com/categories.php?cat_id=3...
« Last Edit: February 14, 2009, 10:08:33 AM by I_Want_Mods_2 »
I use 4images 1.7.6

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
Re: Help me - Category dropdown change
« Reply #1 on: February 14, 2009, 12:33:42 AM »
Simple.
In category_dropdown_form.html template replace post with get.
Done :)


[EDIT]
Unless there was a reason for using POST in this case, I will propose this change for future version.
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)

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
Re: Category dropdown change
« Reply #2 on: December 18, 2009, 07:36:21 AM »
I think there was a reason for this...when cookies are blocked and sessionid attached to the url, the sessionid will be ignored when used GET method, apparently url query is not allowed in form's action when used GET method...
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)