topusers_center.tpl not parsing language variables

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 01-02-2007, 10:25 AM
New Pligger
 
Join Date: Dec 2006
Posts: 28
The topusers_center.tpl doesn't seem to want to parse the language variables. Instead of printing the variable value to the browser, it prints the variable name. So this line:

Code:
echo '<h2>'._(PLIGG_Visual_TopUsers_Statistics).'</h2>';
Instead of giving "Top users" just gives PLIGG_Visual_TopUsers_Statistics.

Is anyone else having the same problem or is it just something i've done in upgrading from version 8 to version 9?
Reply With Quote
  #2 (permalink)  
Old 01-02-2007, 12:15 PM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
did you chmod 777 libs/options.php?
Reply With Quote
  #3 (permalink)  
Old 01-02-2007, 12:22 PM
New Pligger
 
Join Date: Dec 2006
Posts: 28
Should mention that I've got pligg 9 running locally on windows machine so no need for permissions. (right?)
Reply With Quote
  #4 (permalink)  
Old 01-02-2007, 12:29 PM
New Pligger
 
Join Date: Dec 2006
Posts: 28
A thought . . . there are no definitions for PLIGG_Visual_TopUsers_Statistics and PLIGG_Visual_TopUsers_TH_Karma which are found in topusers_center.tpl. I added these and it now works.

However I can't change these in the admin panel. So, what are we changing when we change language vars from inside the admin panel. And how is this different from the libs/options.php file. Are these definitions supposed to be somewhere else too?

Just trying to learn!

Thanks
Reply With Quote
  #5 (permalink)  
Old 01-02-2007, 12:48 PM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
the words in libs/options have not been converted to smarty yet and that is why they are not in the lang.conf file. When you edit from your site you are editing the lang.conf file
Reply With Quote
  #6 (permalink)  
Old 01-03-2007, 05:49 AM
New Pligger
 
Join Date: Dec 2006
Posts: 28
OK. That makes sense now. But why then, if the language variables for topusers are in the lang.conf file (which they are) do they not appear unless you create php defines in the libs/options file?

Thanks for educating a newbie!
Reply With Quote
  #7 (permalink)  
Old 01-03-2007, 01:13 PM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
Are you sure that when you upgraded that you are using the newest files? I say that because the Pligg 9 top users page doesn't reference options.php at all. It reads the text from the lang.conf file and works perfectly fine for me. I haven't heard anyone else having this problem with beta 9.
Reply With Quote
  #8 (permalink)  
Old 01-04-2007, 07:02 AM
New Pligger
 
Join Date: Dec 2006
Posts: 28
Hmmm . . . perhaps that could be the problem then. I'll investigate further and report back.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
dual language pligg? click a flag to change language maybe? mmotp Questions and Comments 17 02-15-2010 09:05 PM
PliggMo by nadia - Fully support UTF8 language (Thai) ♥ไทยจ้า♥ Techkr Questions and Comments 6 06-20-2009 11:25 AM
Edit language in admin panel = language disappears revolver Questions and Comments 4 03-21-2007 11:26 PM
Language variables reverted to defaults ! revolver Questions and Comments 3 11-10-2006 04:56 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development