php forum
php mysql forum
php mysql smarty
 
Topic Options
#203184 - 05/25/04 03:49 PM [6.7] [finished] Pretty Page Indicators
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
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: http://www.ubbdev.com/ubb/upload/00020028/PageIndicators6.7.txt

Modify files.
Upload files.
Clear cache.
_________________________
Code monkey like Fritos

Top
#203185 - 05/25/04 06:53 PM Re: [6.7] [finished] Pretty Page Indicators
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
I love it... Thanks Ian laugh

Top
#203186 - 05/25/04 07:03 PM Re: [6.7] [finished] Pretty Page Indicators
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5132
Loc: Portland, OR, USA
Definately a favorite wink ... Even though i've had it for a month :X...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#203187 - 05/25/04 07:04 PM Re: [6.7] [finished] Pretty Page Indicators
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
you've had half of it for a month

Thanks Chris laugh
_________________________
Code monkey like Fritos

Top
#203188 - 05/26/04 10:39 AM Re: [6.7] [finished] Pretty Page Indicators
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5132
Loc: Portland, OR, USA
True... True... I made you make the second half :flex: oh yeh...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#203189 - 05/29/04 01:33 AM Re: [6.7] [finished] Pretty Page Indicators
Painfool Offline
Member

Registered: 08/14/00
Posts: 182
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!

Top
#203190 - 05/29/04 01:51 AM Re: [6.7] [finished] Pretty Page Indicators
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
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
_________________________
Code monkey like Fritos

Top
#203191 - 05/29/04 01:55 AM Re: [6.7] [finished] Pretty Page Indicators
Painfool Offline
Member

Registered: 08/14/00
Posts: 182
Can I get the MH file for that please!


Thanks! smile

Top
#203192 - 05/29/04 06:24 PM Re: [6.7] [finished] Pretty Page Indicators
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5132
Loc: Portland, OR, USA
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 - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#203193 - 06/07/04 12:01 AM Re: [6.7] [finished] Pretty Page Indicators
GATOR420 Offline
Member

Registered: 01/31/03
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"

Top
#203194 - 06/07/04 11:57 AM Re: [6.7] [finished] Pretty Page Indicators
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
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 = "";
		}
_________________________
Code monkey like Fritos

Top
#203195 - 06/07/04 11:27 PM Re: [6.7] [finished] Pretty Page Indicators
GATOR420 Offline
Member

Registered: 01/31/03
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"

Top
#203196 - 06/07/04 11:53 PM Re: [6.7] [finished] Pretty Page Indicators
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
should prolly be
Code:
if ($more_topics_wording =~ /%%REPLACE%%/) {
wink

Top
#203197 - 06/08/04 07:47 AM Re: [6.7] [finished] Pretty Page Indicators
GATOR420 Offline
Member

Registered: 01/31/03
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"

Top
#203198 - 06/08/04 06:54 PM Re: [6.7] [finished] Pretty Page Indicators
GATOR420 Offline
Member

Registered: 01/31/03
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"

Top
#203199 - 06/08/04 07:15 PM Re: [6.7] [finished] Pretty Page Indicators
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
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
_________________________
Code monkey like Fritos

Top
#203200 - 06/09/04 03:12 PM Re: [6.7] [finished] Pretty Page Indicators
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
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 */
}
_________________________
Code monkey like Fritos

Top


Moderator:  Charles, Gizmo 
Who's Online
2 registered (AllenAyres, blaaskaak), 19 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Spell Check [beta]
by AllenAyres
12/01/08 09:32 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25449
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks