Author Topic: How to remove &mode=search ?  (Read 4821 times)

0 Members and 1 Guest are viewing this topic.

Offline I_Want_Mods_2

  • Newbie
  • *
  • Posts: 21
    • View Profile
How to remove &mode=search ?
« on: March 04, 2009, 06:59:20 PM »
When users choose picture from site.com/search.php or site.com/search.php?search_user=UsernamE_blA_blA_89 then opens a page with &mode=search in the url. How to remove "&mode=search"?

I want site.com/details.php?image_id=22
site.com/details.php?image_id=22&mode=search is stupid.
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: How to remove &mode=search ?
« Reply #1 on: March 05, 2009, 01:41:23 AM »
It's not stupid, if you remove that part, then you wont be able use prev/next pictures from the search on details page, prev/next will be from the category.
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 I_Want_Mods_2

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: How to remove &mode=search ?
« Reply #2 on: March 05, 2009, 10:17:11 AM »
You're right. I'm stupid.
I use 4images 1.7.6

Offline I_Want_Mods_2

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: How to remove &mode=search ?
« Reply #3 on: March 20, 2009, 04:22:52 PM »
You're right. I'm stupid.
No, you are not stupid!

1. I don't want people to go to site.com/details.php?image_id=22&mode=search and link to this page. I want people to link to site.com/details.php?image_id=22

2. If the user is viewing site.com/details.php?image_id=22&mode=search then prev/next pictures will be only 2, 3, 4..., the user will view them all and close my site. But if the page is site.com/details.php?image_id=22 prev/next pictures will be 100, 200... and the user won't close the site.
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: How to remove &mode=search ?
« Reply #4 on: March 20, 2009, 04:29:38 PM »
in search.php find:
    show_image($image_row"search");

Replace it with:
    show_image($image_row);


After this change no complains about "next/prev images don't work right" are not accepted :P ;)
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)