Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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.

Sponsored Links
Joined: Nov 2001
Posts: 1,704
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,704
I love it... Thanks Ian laugh

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Definately a favorite wink ... Even though i've had it for a month :X...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
you've had half of it for a month

Thanks Chris laugh

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
True... True... I made you make the second half :flex: oh yeh...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Sponsored Links
Joined: Aug 2000
Posts: 178
Member
Member
Offline
Joined: Aug 2000
Posts: 178
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!

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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

Joined: Aug 2000
Posts: 178
Member
Member
Offline
Joined: Aug 2000
Posts: 178
Can I get the MH file for that please!


Thanks! smile

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
I love this mod wink , too bad ian didn't install the second half when he installed the first half on my board lol


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2003
Posts: 118
Member
Member
Offline
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? smile


-Thanks


-GATOR

"Pain is temporary, Pride is forever"
Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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 = "";
}

Joined: Jan 2003
Posts: 118
Member
Member
Offline
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. smile


-GATOR

"Pain is temporary, Pride is forever"
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
should prolly be
Code
if ($more_topics_wording =~ /%%REPLACE%%/) {
wink

Joined: Jan 2003
Posts: 118
Member
Member
Offline
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
Offline
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. smile


-GATOR

"Pain is temporary, Pride is forever"
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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...

Code
small table td {
/* CSS RULES */
}


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)