UBB.Dev
Posted By: Ian Spence [6.7] [finished] Pretty Page Indicators - 05/25/2004 10:49 PM
Modification Name: Pretty Page Indicators

Author(s): Ian Spence

Description: Makes page indicators pretty, adds 'next' to end of page list for easier navigation of multiple page topics/forums

Demo: http://www.alforadmin.com

Requirements: UBB.classic 6.7

Download Link: https://www.ubbdev.com/ubb/upload/00020028/PageIndicators6.7.txt

Modify files.
Upload files.
Clear cache.
Posted By: CTM Re: [6.7] [finished] Pretty Page Indicators - 05/26/2004 1:53 AM
I love it... Thanks Ian laugh
Posted By: Gizmo Re: [6.7] [finished] Pretty Page Indicators - 05/26/2004 2:03 AM
Definately a favorite wink ... Even though i've had it for a month :X...
you've had half of it for a month

Thanks Chris laugh
Posted By: Gizmo Re: [6.7] [finished] Pretty Page Indicators - 05/26/2004 5:39 PM
True... True... I made you make the second half :flex: oh yeh...
Posted By: Painfool Re: [6.7] [finished] Pretty Page Indicators - 05/29/2004 8:33 AM
I like it Ian .. but, any chance you could spit up the code changes to make it "plainer" laugh

I would really really REALLY love a version that looks like the default UBB More Topics but with [ ] 's around the current page only.

Not to be an ingrate or anything ... this one is just a touch overbearing (52 pages and growing on forum summary)

Thanks!
ubb_forum.cgi

replace

Code
$more_topics_wording .= qq($page );
with

Code
$more_topics_wording .= qq([$page] );
ubb_lib_posting.cgi

replace

Code
$TopicPageTotal .= qq( $name );
with

Code
$TopicPageTotal .= qq( [$name] );
there smile
Posted By: Painfool Re: [6.7] [finished] Pretty Page Indicators - 05/29/2004 8:55 AM
Can I get the MH file for that please!


Thanks! smile
Posted By: Gizmo Re: [6.7] [finished] Pretty Page Indicators - 05/30/2004 1:24 AM
I love this mod wink , too bad ian didn't install the second half when he installed the first half on my board lol
Posted By: GATOR420 Re: [6.7] [finished] Pretty Page Indicators - 06/07/2004 7:01 AM
Since I moved my board, I now seem to get this error on forums with no threads in them:

Page %%REPLACE%% of 0

I'm not sure what the number is, this just happens to be how many threads there are, but 0 threads in a forum = the above error, 1 thread = above error, 6 threads, works perfect. Any ideas? smile


-Thanks
Instead of removing

Code
		if ($more_topics_wording ne '') {
$more_topics_wording = ("$vars_wordlets{page}: $more_topics_wording");
}
from ubb_forum.cgi, try changing it to

Code
		if ($more_topics_wording =~ /%%REPLACEME%%/) {
$more_topics_wording = "";
}
Posted By: GATOR420 Re: [6.7] [finished] Pretty Page Indicators - 06/08/2004 6:27 AM
Hmm, applied changes and it's still giving me this ugly "Page %%REPLACE%% of 0" error.

Some changes from what I've written previously about the errors.

0 threads in any forum = above error.
1 thread in forum = from the four forums I have with 1 thread in them, 1 of those forums is showing that error.
6 threads in forum = functioning, but I only have one of those.

Posting a thread into a forum with 0 posts in it
seems to fix it, but if I delete that thread the error comes back.

Obviously I do intend to have threads in each of my forums and that would certainly be a workaround to the error, but I don't want to have to post test posts into each of my 65 forums just to get them to display correctly to start off... Your help is always appreciated. smile
Posted By: Brett Re: [6.7] [finished] Pretty Page Indicators - 06/08/2004 6:53 AM
should prolly be
Code
if ($more_topics_wording =~ /%%REPLACE%%/) {
wink
Posted By: GATOR420 Re: [6.7] [finished] Pretty Page Indicators - 06/08/2004 2:47 PM
Nice catch Brett...

However, here are the results:

Forums with 0 threads in them have no page indicator.
The one forum out of the four that had one thread in it that had the page indicator error now displays no page indicator at all.
The other forums with 1 post now display a page indicator. Page 1 of 1

Very strange indeed. Anything else I could try?
Posted By: GATOR420 Re: [6.7] [finished] Pretty Page Indicators - 06/09/2004 1:54 AM
OK, I guess that's about as good as it's going to get and I can live with that. Thanks for your help. smile
Quote
Originally posted by GATOR420:

OK, I guess that's about as good as it's going to get and I can live with that. Thanks for your help. smile

bah, don't give up on me. I've had 8 headaches today, it hurt looking at my monitor. I'm gonna fix this as soon as I can
Posted By: Ian Spence Re: [6.7] [finished] Pretty Page Indicators - 06/09/2004 10:12 PM
Updated with fix for that bug. Only changes are in ubb_forum.cgi

fyi: if you wish the table was smaller, having smaller text, etc, you can use this css rule...

Code
small table td {
/* CSS RULES */
}
© UBB.Developers