Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
3 registered (driv, Outdoorking, Pilgrim), 41 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 11/22/06
Posts: 163
Top Posters (30 Days)
Ruben 51
Gizmo 24
DennyP 24
Dunny 15
SteveS 14
AllenAyres 12
SD 10
dbremer 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#205656 - 01/28/08 07:48 PM 1, 2, 3, 4, 5 > Want to replace the > link w. button
Robje01 Offline
enthusiast
Registered: 01/19/08
Posts: 239
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
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#205758 - 01/30/08 04:18 PM Re: 1, 2, 3, 4, 5 > Want to replace the > link w. button [Re: Robje01]
Robje01 Offline
enthusiast
Registered: 01/19/08
Posts: 239
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
Top
#205760 - 01/30/08 05:36 PM Re: 1, 2, 3, 4, 5 > Want to replace the > link w. button [Re: Robje01]
Robje01 Offline
enthusiast
Registered: 01/19/08
Posts: 239
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
Top
#205764 - 01/30/08 07:13 PM Re: 1, 2, 3, 4, 5 > Want to replace the > link w. button [Re: Robje01]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
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)
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#205765 - 01/30/08 07:18 PM Re: 1, 2, 3, 4, 5 > Want to replace the > link w. button [Re: Gizmo]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
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
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#205780 - 01/31/08 02:12 PM Re: 1, 2, 3, 4, 5 > Want to replace the > link w. button [Re: Gizmo]
Robje01 Offline
enthusiast
Registered: 01/19/08
Posts: 239
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
Top
#205783 - 01/31/08 04:27 PM Re: 1, 2, 3, 4, 5 > Want to replace the > link w. button [Re: Robje01]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
well done smile .............
Top
#205822 - 02/01/08 04:59 PM Re: 1, 2, 3, 4, 5 > Want to replace the > link w. button [Re: Ian]
Robje01 Offline
enthusiast
Registered: 01/19/08
Posts: 239
Loc: Netherlands - Valkenswaard
Thanks .....
_________________________
My place to be: http://www.freesat.nl
Top
#205823 - 02/01/08 05:39 PM Re: 1, 2, 3, 4, 5 > Want to replace the > link w. button [Re: Robje01]
Robje01 Offline
enthusiast
Registered: 01/19/08
Posts: 239
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 05:44 PM)
_________________________
My place to be: http://www.freesat.nl
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Due Date Calculator-Calculate When Your Baby is Due
by StewartMyduedate
Today at 12:54 AM
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
Forum Stats
10491 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image