Gossamer Forum
Quote Reply
Possible back bug...
Not sure if this is an isolated problem, or have others seen it?

When using <%prev%> anmd <%next%>, you start on the main part of the category, go forward to more2.html, and then click on back to go to the category root, but it tries taking you to more1.html !!! Unsure

The code I'm using is;

Code:
<!-- Next/Previous links if spanning pages. -->
<p align=center>
<%if prev%>
<small><a href="<%prev%>">Ante <%build_links_per_page%></a></small>
<%endif%>
<%if next%>
<small><a href="<%next%>">Prox <%build_links_per_page%></a></small>
<%endif%> </p>

Anyone?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Possible back bug... In reply to
Wow, I'm surprised no one has seen that before. =) Can you edit admin/Links/Build.pm and change line 651:

Code:
if ($nh > 1) {
$display{prev} = $url . "/more" . ($nh-1) . "$CFG->{build_extension}";
}


to:

Code:
if ($nh == 2) {
$display{prev} = $url . "/" . $CFG->{build_index};
}
elsif ($nh > 2) {
$display{prev} = $url . "/more" . ($nh-1) . "$CFG->{build_extension}";
}


and I think that should work.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Possible back bug... In reply to
LOL...I actually found a real bug Tongue I made the changes, and it worked great.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Possible back bug... In reply to
Actually, I can't reproduce this....

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Possible back bug... In reply to
Goto a page with at least 2-3 pages.... go to page 2, and then try to click the 'Prev 25' link. It will point to more1.html, and not index.html... It needs to be in static mode too, btw, otherwise it works ok Wink

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Possible back bug... In reply to
Here is a category in my directory with more than one page, and it all works fine:

http://www.iyengar-yoga.com/...rope/United_Kingdom/

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Possible back bug... In reply to
You are using the <%span%> tag,and not the <%next%>/<%prev%> ones Wink

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Possible back bug... In reply to
Yes, you're right. That makes a difference of course.

Ivan
-----
Iyengar Yoga Resources / GT Plugins