Pagination Bug…
Posted: 24 July 2005 04:16 PM   [ Ignore ]  
Research Assistant
RankRankRank
Total Posts:  540
Joined  02-25-2003

I think there is a bug in the pagination script. Our website uses a different localization, not the standard English language pages. Even though the entires for the “First” and “Last” names exist in the locatlization, they still show up in Engligh on the website.

I tried to look around in the php code, but I don’t understand how the paginations are created. I am suspecting that for some reason these two links do not get the localization text, or get overwritten somewhere.

This happens in both the weblog and the forums.

Profile
 
 
Posted: 24 July 2005 07:57 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7509
Joined  08-05-2002

Could you try something for me?  Open up the /system/core/core.paginate.php file and at the top you will see these two variables set:

var $first_page   = 'First';
var
$last_page    = 'Last';

Could you change them to have no values:

var $first_page   = '';
var
$last_page    = '';

And see if that helps?  I think by having those defaults the localization is not occurring correctly.

 Signature 
Profile
 
 
Posted: 24 July 2005 08:03 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
RankRankRank
Total Posts:  540
Joined  02-25-2003

Then I get the following error message, and the forums break:

Fatal error: Call to a member function on a non-object in /home/username/public_html/system/core/core.paginate.php on line 131

edit by lisajill: removed certain details for security reasons

Profile
 
 
Posted: 24 July 2005 08:09 PM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7509
Joined  08-05-2002

One more tweak.  At the top of the function show_links() part of the script is this:

global $IN, $FNS;

Please make it this:

global $IN, $FNS, $LANG;

 Signature 
Profile
 
 
Posted: 24 July 2005 08:15 PM   [ Ignore ]   [ # 4 ]  
Research Assistant
RankRankRank
Total Posts:  540
Joined  02-25-2003
Paul Burdick - 24 July 2005 08:09 PM

One more tweak.  At the top of the function show_links() part of the script is this:

global $IN, $FNS;

Please make it this:

global $IN, $FNS, $LANG;

Very nice, the combination of the two made the trick. But both were needed. Thank you… I can stop dodging these emails now.

Profile
 
 
Posted: 24 July 2005 08:20 PM   [ Ignore ]   [ # 5 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7509
Joined  08-05-2002

I will contact the writer of that script (it’s not me, so guess who!) and inform him of that little pair of tweaks.

 Signature 
Profile
 
 
Posted: 24 July 2005 08:25 PM   [ Ignore ]   [ # 6 ]  
Research Assistant
RankRankRank
Total Posts:  540
Joined  02-25-2003

Thank you Paul for your help.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66460 Total Logged-in Users: 69
Total Topics: 84848 Total Anonymous Users: 15
Total Replies: 455292 Total Guests: 200
Total Posts: 540140    
Members ( View Memberlist )