Author Topic: New Images - Next and Previous  (Read 7595 times)

0 Members and 1 Guest are viewing this topic.

Offline fitterashes

  • Newbie
  • *
  • Posts: 30
    • View Profile
New Images - Next and Previous
« on: August 11, 2009, 05:03:45 PM »
Hello, here is something i'd like to modify : when I click on a "new picture" on front page (or in the "new pictures" page) I get the detail page with the full picture but NEXT and PREVIOUS links won't show the next/previous picture in the "new pictures" category but in the next/previous image from the category the picture belongs to.

Is there a way to change that ? (only for new pictures).
Basically, I'd like to browse all new images in the detail page.


FYI I recently réinstalled 4images 1.7.7 from sctach with a lot of mods.

Thanks

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: New Images - Next and Previous
« Reply #1 on: August 12, 2009, 04:53:34 AM »
in index.php find:
  while ($image_row $site_db->fetch_array($result)){

Insert above:
  $site_sess->set_session_var("search_id"serialize(array("search_new_images" => 1)));


Find:
    show_image($image_row);

Replace it with:
    show_image($image_row"search");
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 fitterashes

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: New Images - Next and Previous
« Reply #2 on: August 12, 2009, 08:58:50 PM »
hum... thank you but no change

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: New Images - Next and Previous
« Reply #3 on: August 12, 2009, 09:16:50 PM »
Perhaps I didn't understand your request then...
What I understood was:
when clicking on thumbnail from home page it would open details page of the image, as usual, but next/prev links would point to next/prev NEW image and NOT next/prev image in the current category.

The change above worked fine on my v1.7.7 test site.
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 fitterashes

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: New Images - Next and Previous
« Reply #4 on: August 12, 2009, 11:09:33 PM »
yep that's what I want.
Could friendly URL, best seo mod or a mod like that cause problem ?  :?

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: New Images - Next and Previous
« Reply #5 on: August 13, 2009, 05:13:12 AM »
anything is possible ;) can I see the site?
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 GaYan

  • Sr. Member
  • ****
  • Posts: 301
  • ♫ | G2 | ♫
    • View Profile
    • Ziramagic
Re: New Images - Next and Previous
« Reply #6 on: August 13, 2009, 06:47:03 AM »
is this possible with 4image 1.7.6 ? :S
I'm Back :)

Offline fitterashes

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: New Images - Next and Previous
« Reply #7 on: August 17, 2009, 09:07:27 PM »
up ?

anything is possible ;) can I see the site?

See PM   :wink:

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: New Images - Next and Previous
« Reply #8 on: August 18, 2009, 01:50:30 AM »
There is something else wrong with your site, for example when you open 'new images' page, and then click on an image, in the url you'll see .search.html, but next/prev images will not have it.
Not quiet sure what is the cause, but I'd start by removing SEO mod first.
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 fitterashes

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: New Images - Next and Previous
« Reply #9 on: August 18, 2009, 04:41:51 PM »
Thanks Vano, it's definitively the mod Google Friendly Urls For 4images Best Seo Mod, it works if I uninstall it.
I'll try to figure out what's wrong.

Fixed :
http://www.4homepages.de/forum/index.php?topic=17598.msg140051#msg140051
« Last Edit: August 18, 2009, 05:41:32 PM by fitterashes »