" with a user defined button, or maybe some text? I me..."> " with a user defined button, or maybe some text? I me...">
Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jan 2008
Posts: 222
enthusiast
enthusiast
Joined: Jan 2008
Posts: 222
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:
[Linked Image from robje.net]

Change to:
[Linked Image from robje.net]


Robje01


My place to be: http://www.freesat.nl
Joined: Jan 2008
Posts: 222
enthusiast
enthusiast
Joined: Jan 2008
Posts: 222
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
Joined: Jan 2008
Posts: 222
enthusiast
enthusiast
Joined: Jan 2008
Posts: 222
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
Joined: Jun 2006
Posts: 16,279
Likes: 114
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,279
Likes: 114
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)


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 16,279
Likes: 114
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,279
Likes: 114
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


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jan 2008
Posts: 222
enthusiast
enthusiast
Joined: Jan 2008
Posts: 222
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
Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
well done smile .............

Joined: Jan 2008
Posts: 222
enthusiast
enthusiast
Joined: Jan 2008
Posts: 222
Thanks .....


My place to be: http://www.freesat.nl
Joined: Jan 2008
Posts: 222
enthusiast
enthusiast
Joined: Jan 2008
Posts: 222
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.

Last edited by Robje01; 02/01/2008 5:44 PM.

My place to be: http://www.freesat.nl

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Member Permissions Help
by domspeak - 02/27/2024 5:31 PM
Forum Privacy Policy
by ECNet - 02/26/2024 10:58 AM
search error on this site.
by Ruben - 02/24/2024 12:52 PM
UBB 20 Years button
by Morgan - 02/20/2024 4:21 PM
Attachment/Cloudflar
e issue

by Morgan - 02/15/2024 5:47 AM
Who's Online Now
1 members (Geoff), 322 guests, and 399 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)