1
risto
language file, main.php and so on.....
  • 2004/4/12 12:16

  • risto

  • Not too shy to talk

  • Posts: 159

  • Since: 2003/4/16


I'm wondering, is there a way of getting all the defined words in the array in one go?

2
ralf57
Re: language file, main.php and so on.....
  • 2004/4/12 12:45

  • ralf57

  • Quite a regular

  • Posts: 231

  • Since: 2003/2/3 1


1)I was right when saying you don't pay attention to my posts....

2)You could ask me for this.
Btw,you should use something like this in newbb module:

$xoopsTpl->assign(array("img_hotfolder" => $bbImage['newposts_forum'], "img_folder" => $bbImage['folder_forum'], "img_locked" => $bbImage['locked_forum'], "lang_newposts" => _MD_NEWPOSTS"lang_private" => _MD_PRIVATEFORUM"lang_nonewposts" => _MD_NONEWPOSTS"lang_search" => _MD_SEARCH"lang_advsearch" => _MD_ADVSEARCH));


3)Let me know if you want me to be involved into tplleaguestats development or else i'll spend my time on other projects

Regards,ralf.

3
risto
Re: language file, main.php and so on.....
  • 2004/4/12 13:15

  • risto

  • Not too shy to talk

  • Posts: 159

  • Since: 2003/4/16


Ill mail it all to you!

$xoopsTpl->assign(array("img_hotfolder" => $bbImage['newposts_forum'],
"img_folder" => $bbImage['folder_forum'], "img_locked" =>
$bbImage['locked_forum'], "lang_newposts" => _MD_NEWPOSTS,
"lang_private" => _MD_PRIVATEFORUM"lang_nonewposts" => _MD_NONEWPOSTS,
"lang_search" => _MD_SEARCH"lang_advsearch" => _MD_ADVSEARCH));


Just takes so mutch time to doo! I'd like to doo i ince for each file!

4
Mithrandir
Re: language file, main.php and so on.....

You don't need to assign language constants to smarty.

You can access constants in Smarty templates through <{$smarty.const.CONSTANT_NAME}>

5
ralf57
Re: language file, main.php and so on.....
  • 2004/4/12 13:38

  • ralf57

  • Quite a regular

  • Posts: 231

  • Since: 2003/2/3 1


Thank you mith,
your tip will save us a lot of time.
Btw i've always seen lang constants assigned in php files.

P.s.risto has deeply modified tplleaguestats module by adding many features and more.

6
risto
Re: language file, main.php and so on.....
  • 2004/4/13 12:46

  • risto

  • Not too shy to talk

  • Posts: 159

  • Since: 2003/4/16


exelent! this will save me mutchos time!

Login

Who's Online

142 user(s) are online (93 user(s) are browsing Support Forums)


Members: 1


Guests: 141


jjdai,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits