Jump to content


(3.2.X) How to replace meaningless pagination "chevrons" with "First" and "Last" wording


2 replies to this topic

#1 Broni

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 03:26 AM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 21 October 2011 - 10:31 PM

These "chevrons" are totally confusing. You won't know what they mean until you hover your mouse over them:

Posted Image

Why not to have something what is totally clear?
The left one brings you to the 1st page, the right one to the last page, so...
I want rather this:

Posted Image

How to do it....
Go ACP>Look & Feel>your skin>Templates tab>Global Templates>paginationTemplate

Comment out strings in red, add wording in green....

Quote

<if test="firstpage:|:1 < ($work['current_page'] - $data['dotsSkip'])">
<li class='first'><a href='{parse url="{$data['baseUrl']}&amp;{$data['startValueKey']}=0{$data['anchor']}" base="{$data['base']}" seotitle="{$data['seoTitle']}" template="{$data['seoTemplate']}"}' title='{$this->lang->words['tpl_gotofirst']}' rel='start'><!--{$this->lang->words['_laquo']}--> <!--{$this->lang->words['ps_first']}-->FIRST</a></li>


Quote

<if test="lastpage:|:!empty( $work['_showEndDots'] )">
<li class='last'><a href="{parse url="{$data['baseUrl']}&amp;{$data['startValueKey']}={parse expression="intval( ( $work['pages'] - 1 ) * $data['itemsPerPage'] )"}{$data['anchor']}" base="{$data['base']}" seotitle="{$data['seoTitle']}" template="{$data['seoTemplate']}"}" title="{$this->lang->words['tpl_gotolast']}" rel='last'><!--{$this->lang->words['_raquo']}-->LAST</a></li>

The above fix works just for one skin.

===========================================================================

You can fix it globally as well.
That has to be done through "Manage Languages".
As you examine the very first quote the proper string still exist there:
{$this->lang->words['ps_first']}
which translates to a word "FIRST".
IPB coders didn't remove it. They just commented it out. Uncomment it and the fix will work in all skins.

As for the "LAST" page they removed the code, but the entry still exist in language pack.
All you have to do is to replace _raquo in {$this->lang->words['_raquo']} with ps_last
Unfortunately you'll have to change in all skins.

#2 merk_sfi Re: (3.2.X) How to replace meaningless pagination "chevrons" with "First" and "Last" wording

    Member

  • 11 posts
  • Joined: October 07, 2011
  • 2 topics
  • Local time: 09:26 PM
  • Zodiac:Virgo
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 11h 43m 44s

Posted 29 October 2011 - 06:44 AM

Thank you for this - was looking at how to do it and in the space of 2 minutes - DONE!

#3 Broni Re: (3.2.X) How to replace meaningless pagination "chevrons" with "First" and "Last" wording

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 03:26 AM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 29 October 2011 - 05:31 PM

:)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 10 user(s)