Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
1 registered (Jim), 17 Guests and 18 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 03/13/07
Posts: 28
Top Posters (30 Days)
Ruben Rocha 179
Gizmo 112
Rick 109
Thelockman 80
driv 43
AllenAyres 35
ntdoc 28
Ian 24
Sirdude 23
ScriptKeeper 20
Latest Photos
My Home System
test photo gallery
Bernese Mountain Dogs
My Daimler
Dorado and shark
Topic Options
Rate This Topic
#205656 - 01/28/08 04:48 PM 1, 2, 3, 4, 5 > Want to replace the > link w. button
Robje01 Offline
journeyman

Registered: 01/19/08
Posts: 75
Loc: Netherlands - Valkenswaard
On top of the site it shows the amount of pages, that's great ofcourse, but can i replace the ">" with a user defined button, or maybe some text?

I mean this:


Change to:



Robje01
_________________________
My place to be: http://www.freesat.nl/forum

Top
#205758 - 01/30/08 01:18 PM Re: 1, 2, 3, 4, 5 > Want to replace the > link w. button [Re: Robje01]
Robje01 Offline
journeyman

Registered: 01/19/08
Posts: 75
Loc: Netherlands - Valkenswaard
I've been searching through the language files, but i can;t find it there. Can i find it in the sources maybe?

Rob
_________________________
My place to be: http://www.freesat.nl/forum

Top
#205760 - 01/30/08 02:36 PM Re: 1, 2, 3, 4, 5 > Want to replace the > link w. button [Re: Robje01]
Robje01 Offline
journeyman

Registered: 01/19/08
Posts: 75
Loc: Netherlands - Valkenswaard
I can see this, but when i make any changes, nothing happens. It seems not to be the right one because this one refers to next.gif which doesn't excist.

postlist.inc.php
Code:
	if ($nums >= ($PostsPer + 1) ) {
		$next = $page + 1;
		$nextstart = "<a href=\"{$config['BASE_URL']}/...etc...$Board{$var_sep}page{$var_eq}$next\">";
		$nextstop = "</a>";
		$nextoption = "next.gif";


I found that this question was already asked back in 1999 and 2001 again, but this options is still not available?

Rob
_________________________
My place to be: http://www.freesat.nl/forum

Top
#205764 - 01/30/08 04:13 PM Re: 1, 2, 3, 4, 5 > Want to replace the > link w. button [Re: Robje01]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 12006
Loc: Portland, OR; USA
I think that's for the image below the posts; I'll gie it a look later on when I get some spare time (with the kids now so barely have a second)
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#205765 - 01/30/08 04:18 PM Re: 1, 2, 3, 4, 5 > Want to replace the > link w. button [Re: Gizmo]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 12006
Loc: Portland, OR; USA
Odd, I figured it'd be ">" in the language strings (ascii equiv of >) but it isn't (which is odd) so it'd probably be in the template... Or the pagination function lol
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#205780 - 01/31/08 11:12 AM Re: 1, 2, 3, 4, 5 > Want to replace the > link w. button [Re: Gizmo]
Robje01 Offline
journeyman

Registered: 01/19/08
Posts: 75
Loc: Netherlands - Valkenswaard
Pfffffffffffff, found it.
/libs/ubbthreads.inc.php
Line 1499 contains:
$page_html .= "<td class=\"alt-1\"><a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}{$url}$printer\">></a></td>";
Replace the bolded > by Next page and voila..

Rob
_________________________
My place to be: http://www.freesat.nl/forum

Top
#205783 - 01/31/08 01:27 PM Re: 1, 2, 3, 4, 5 > Want to replace the > link w. button [Re: Robje01]
Ian Moderator Offline

***

Registered: 06/05/06
Posts: 4160
Loc: Essex, UK
well done smile .............
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....))

Top
#205822 - 02/01/08 01:59 PM Re: 1, 2, 3, 4, 5 > Want to replace the > link w. button [Re: Ian]
Robje01 Offline
journeyman

Registered: 01/19/08
Posts: 75
Loc: Netherlands - Valkenswaard
Thanks .....
_________________________
My place to be: http://www.freesat.nl/forum

Top
#205823 - 02/01/08 02:39 PM Re: 1, 2, 3, 4, 5 > Want to replace the > link w. button [Re: Robje01]
Robje01 Offline
journeyman

Registered: 01/19/08
Posts: 75
Loc: Netherlands - Valkenswaard
Made an modification to the source, maybe usefull for other members:

Edit the /libs/ubbthreads.inc.php
Find:
if ($current_page > 1) {
$printer = $current_page - 1;
$page_html .= "<td class=\"alt-1\"><a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}{$url}$printer\"><</a></td>";
}

Replace with:
if ($current_page > 1) {
$printer = $current_page - 1;
$page_html .= "<td class=\"alt-1\"><a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}{$url}$printer\">{$ubbt_lang['PREV_PAGE2']}</a></td>";
}

Find:
if ($current_page < $total_pages) {
$printer = $current_page + 1;
$page_html .= "<td class=\"alt-1\"><a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}{$url}$printer\">></a></td>";
}

Replace with:
if ($current_page < $total_pages) {
$printer = $current_page + 1;
$page_html .= "<td class=\"alt-1\"><a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}{$url}$printer\">{$ubbt_lang['NEXT_PAGE2']}</a></td>";
}


Edit the /languages/english/postlist.php
Add the following lines:
$ubbt_lang['PREV_PAGE2'] = "Previous page";
$ubbt_lang['NEXT_PAGE2'] = "Next page";

Edit the /languages/english/generic.php
Add the following lines:
$ubbt_lang['PREV_PAGE2'] = "Previous page";
$ubbt_lang['NEXT_PAGE2'] = "Next page";

Do the same for other installed languages if there are.
Now your
First | < | 1 | 2 | 3 | 4 | 5 | > | Last
will be replaced with
First | Previous page | 1 | 2 | 3 | 4 | 5 | Next page | Last

Have fun all.


Edited by Robje01 (02/01/08 02:44 PM)
_________________________
My place to be: http://www.freesat.nl/forum

Top


Shout Box

Today's Birthdays
brushie, cass, Monte G., twebman, White Gold Wielder
Recent Topics
Shrinking graemlins
by Djuma
Today at 05:48 PM
2 problems I'm seeing now.
by DougMM
Today at 04:39 PM
Which CSS Style Controls the bottom lines
by David DelMonte
Today at 01:51 PM
UBBThreads vs. vBulletin -- Defections & Why So Tough to Compare?
by WebMagic
Today at 12:28 PM
Font and column shifts occuring
by Bill B
Yesterday at 06:21 PM
Forum Stats
4261 Members
33 Forums
30532 Topics
154962 Posts

Max Online: 978 @ 06/24/07 08:19 PM