Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Name: Thread Pagination.

Description: For threads >5 pages, turns the page links into << < 4 5 6 > >> etc. - very handy for long threads

Link: Click Here

Demo: http://www.stand318.com/ubb/ultimatebb.php?ubb=get_topic;f=12;t=000170;p=50

Requirement: UBBâ„¢ 6.2.1

edit: credit given to original author, travis smile


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
OK, install instructions updated for those who thought 2 steps was too much, now we are down to one step... will make an mhx file for those seriously into lazy soon... tipsy

Will be moving to "finished" unless someone finds a bug. smile


- Allen wavey
- What Drives You?
Joined: Nov 2000
Posts: 652
Member
Member
Offline
Joined: Nov 2000
Posts: 652
Multihack please.. I really am to lazy to open a text editor.

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Then what are you doing at a Code Hacking site?


UBB.classic: Love it or hate it, it was mine.
Joined: Dec 2001
Posts: 51
Member
Member
Offline
Joined: Dec 2001
Posts: 51
Ty, i'll install it but I'll use 8 nstead of 5..
For the lazy ones who don't want 5 too, change

if ($TotalPages < '5') {
the '5' into the number you want.
You could also go into cp, make a field there so people could set their number in cp..
Maybe an idea for the next version?

Sponsored Links
Joined: Feb 2001
Posts: 497
Enthusiast
Enthusiast
Offline
Joined: Feb 2001
Posts: 497
and if u like make the same at the forum_page.pl like that:

[code][/code]

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Thanks melder, I'll add them to the file when they get tested smile


- Allen wavey
- What Drives You?
Joined: May 2000
Posts: 1,356
Addict
Addict
Joined: May 2000
Posts: 1,356
Allen: Think about a dropdown menu option. If I want to go to page 34 in the above link, I have to type it in the url wink

Mebbe you can add this as a cp option? '<< >>' style or dropdown style?

Just a thought...

Joined: Dec 2001
Posts: 51
Member
Member
Offline
Joined: Dec 2001
Posts: 51
A dropdown could be added like this (no further add-ons, just dropdowm)

$TopicPageTotal .= qq( );
$TopicPageTotal .= qq( );

Not tested yet but slt should work...

Joined: Mar 2002
Posts: 8
Junior Member
Junior Member
Offline
Joined: Mar 2002
Posts: 8
Yeah, I guess it would be handy in long posts...

Sponsored Links
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Gotan: I'm pretty sure it won't... Use cp_common.pl's JavaScript, and then:


Joined: Dec 2001
Posts: 51
Member
Member
Offline
Joined: Dec 2001
Posts: 51
Right, so thank you LK..
I'll make a text file for this tonight,
so we'll write
document.writeln("");

Thanks LK, you rule smile

# NOT SURE -> ANY BUGS: REPORT #

http://www.fwave.net/pagination_621.txt

# BYE #

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Your URL doesn't work...

Here's my version:[code][/code][edit: I hate that CODE has nowrap shocked Please remove the enters in the middle of commands/texts.]

Joined: Jun 2001
Posts: 572
Member
Member
Offline
Joined: Jun 2001
Posts: 572
How 'bout making it compatible with LK's CP Mod addon hack? Then in the CP we could choose how many pages we want it to be...

~Jon

Joined: Dec 2001
Posts: 51
Member
Member
Offline
Joined: Dec 2001
Posts: 51
[code][/code][edit: I hate that CODE has nowrap shocked Please remove the enters in the middle of commands/texts.][/b]
Wat I did was way to quick. Thank you..
I might try to make it compatible with CP modaddon..

Joined: Jul 2001
Posts: 34
Member
Member
Offline
Joined: Jul 2001
Posts: 34
Allen,
Can this be made so that the page count looks like this?
Page: 1 2 3 4 ... 8
Like it is on UBB's Open Topic board.
Bandit

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Just wait for 6.2.2. smile


UBB.classic: Love it or hate it, it was mine.
Joined: Jul 2001
Posts: 34
Member
Member
Offline
Joined: Jul 2001
Posts: 34
I guess I can wait that long! laugh
Thanks

Joined: Oct 2001
Posts: 32
Content King
Content King
Offline
Joined: Oct 2001
Posts: 32
is there anythign you have to do after that? I have version 6.2.1, I did as the hack said, uploaded and cleared the cache and nothing...

http://www.smashboards.com/ultimatebb.cgi?ubb=forum&f=7&DaysPrune=30

theres a link


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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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
WebGuy 2
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)