|
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: Change to: Robje01
|
|
|
|
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
|
|
|
|
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 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
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
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)
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
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
|
|
|
|
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
|
|
|
|
Joined: Jun 2006
Posts: 3,837
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,837 |
well done .............
|
|
|
|
Joined: Jan 2008
Posts: 222
enthusiast
|
enthusiast
Joined: Jan 2008
Posts: 222 |
|
|
|
|
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 6:44 PM.
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
|
|