Gossamer Forum
Home : Products : Links 2.0 : Customization :

Span Page MOD (again)

Quote Reply
Span Page MOD (again)
Hi all,

I need the span page mod made suitable to work with site_html.pl
Mad I did a lot of searching within this forum but I haven't found what
I need. The resource center contains a dead link on this one so this wasn't much of a help to me either.
I would appreciate it a lot when someone wants to send it to me
by mail: bcjones@vermeule.demon.nl

Thanks alot in advance.
Quote Reply
Re: [BCJones] Span Page MOD (again) In reply to
I can't guarantee this will work, so backup your files before installing this...

This mod will output the following:

[Prev] 1 2 3 [Next]

1: Make a backup of your nph-build.cgi and save it.
2: Copy the code in the attachment and paste it into the your nph-build.cgi under the: sub build_category_pages - replace the original code with the code in the attachment.
3: If you use templates, in your template category.html make sure you have the following:
<%if prev%>
<%prev%>
<%endif%>

<%if next%>
<%next%>
<%endif%>

4: In non-template version, you need to change site_html.pl in: sub site_html_category:

if ($prev) { $output .= qq~$prev~; }
if ($next) { $output .= qq~$next~; }

to:

if ($prev) { $output .= qq~$span~; }
if ($next) { $output .= qq~$span~; }


5: Build your pages.
6: Good luck!

~ ERASER


Free JavaScripts @ Insight Eye

Last edited by:

Eraser: Jul 20, 2002, 7:59 AM
Quote Reply
Re: [Eraser] Span Page MOD (again) In reply to
Hello,

For some part success now! Adding/substituting nph_build.cgi with the content of your attached txt.file was successfull. The changes to the site_html.pl on the otherhand gives me problems and your suggested replacement did not work out for me so I left the file as it was. Following problems occurred:

(I use page-extension ".php")

First page (index.php)
2 3 4 5 6 7 8 9 10 11 12 [Next >>]">Next 3
Problems:
mouseclick 2 for going to more2.php: refers to http://.../links/catname/1 (1 is bolded)
it should refer to: http://.../links/catname/more2.php
it is very peculiar to get also: ">Next 3 at the end which is not clickable.
[Next >>] works fine!! and all other pagenumbers work fine also.
Current page (1) is not included.


Second page (more2.php)
[<< Prev] 1 ">Prev 3 3 4 5 6 7 8 9 10 11 12 [Next >>]">Next 3
Problems:
[<< Prev] refers to: http://.../links/catname/<a href=
Now I get also: ">Prev 3 which is not clickable and also ">Next 3
mouseclick 3 for going to more3.php: refers to http://.../links/catname/3 (3 is bolded)
All other numbered links do work and [Next >>] works fine also.
Current page (2) is not included

Last page (in this case more12.php)
[<< Prev] 1 2 3 4 5 6 7 8 9 10 11 12 ">Prev 3
Problems:
[<< Prev] refers to: http://.../links/catname/<a href=
I get again: ">Prev 3
All page links are working AND the current page (12) is included.

Angelic If someone has a solution for this or a good lead, please post.

Thank you.
Quote Reply
Re: [BCJones] Span Page MOD (again) In reply to
Try without the site_html.pl changes. Post back here and I'll take another look.

~ ERASER


Free JavaScripts @ Insight Eye
Quote Reply
Re: [Eraser] Span Page MOD (again) In reply to
See my previous message with the list of problems I encountered. This was generated without the site_html.pl changes! With the suggested changes I did not get any page spanning on the pages.

Sorry for the confuses.
Quote Reply
Re: [BCJones] Span Page MOD (again) IT WORKS In reply to
HI,

Please stop searching for a solution!! It works now.
You suggested this change:

if ($prev) { $output .= qq~$prev~; }
if ($next) { $output .= qq~$next~; }

to:

if ($prev) { $output .= qq~$span~; }
if ($next) { $output .= qq~$span~; }


I changed it back to the first option which is not
included with the original downloadable site_html.pl file:

if ($prev) { $output .= qq~$prev~; }
if ($next) { $output .= qq~$next~; }

And it works perfectly allright (for me it is).

Thanks a lot for running out to help me, Eraser, without you
I would be searching through the mods and resources forever!!
Quote Reply
Re: [BCJones] Span Page MOD (again) IT WORKS In reply to

Eraser or BC Jones can one of you please email or post this span mod
Thank you so much....Smile


jgm@ejayworld.freeserve.co.uk

Jamie








Quote Reply
Re: [++Jamie++] Span Page MOD (again) IT WORKS In reply to
Hi their, if you look at erasers first post he made, right at the bottom of his message theirs a .txt attacthment, thats the span mod that is being used here, plus the other changes mentioned
Quote Reply
Re: [stu2000] Span Page MOD (again) IT WORKS In reply to
DOH!! missed that Pirate HIT THE NEWBIE Pirate

Thanks for replying m8 Smile