|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
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.
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
I love it... Thanks Ian 
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
Definately a favorite  ... Even though i've had it for a month :X...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
you've had half of it for a month Thanks Chris 
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
True... True... I made you make the second half :flex: oh yeh...
|
|
|
|
Joined: Aug 2000
Posts: 178
Member
|
Member
Joined: Aug 2000
Posts: 178 |
I like it Ian .. but, any chance you could spit up the code changes to make it "plainer" 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!
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
ubb_forum.cgi replace $more_topics_wording .= qq($page ); with $more_topics_wording .= qq([$page] ); ubb_lib_posting.cgi replace $TopicPageTotal .= qq( $name ); with $TopicPageTotal .= qq( [$name] ); there 
|
|
|
|
Joined: Aug 2000
Posts: 178
Member
|
Member
Joined: Aug 2000
Posts: 178 |
Can I get the MH file for that please! Thanks! 
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
I love this mod  , too bad ian didn't install the second half when he installed the first half on my board lol
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
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? -Thanks
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Instead of removing if ($more_topics_wording ne '') { $more_topics_wording = ("$vars_wordlets{page}: $more_topics_wording"); } from ubb_forum.cgi, try changing it to if ($more_topics_wording =~ /%%REPLACEME%%/) { $more_topics_wording = ""; }
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
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. 
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
should prolly be if ($more_topics_wording =~ /%%REPLACE%%/) { 
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
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?
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
OK, I guess that's about as good as it's going to get and I can live with that. Thanks for your help. 
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
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. 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
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
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... small table td { /* CSS RULES */ }
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|