1
xiaodao
Smarty does not work?
  • 2007/11/14 11:30

  • xiaodao

  • Just popping in

  • Posts: 9

  • Since: 2007/11/14


Hi,

I can display my smarty constant in my theme file. Anybody knows why?

I've download neoblue theme. After installing it, I found the navigator section at top of the html theme can not be displayed properly, everything else is fine.

<li><a href="<{$xoops_url}>/modules/mylinks"><{$smarty.const._MA_MENU_LINKS}>a>li>
<
li><a href="<{$xoops_url}>/modules/works"><{$smarty.const._MA_MENU_PORTFOLIO}>a>li>
<
li><a href="<{$xoops_url}>/modules/contact"><{$smarty.const._MA_MENU_CONTACT}>a>li>


It displays like this:
_MA_MENU_LINKS, _MA_MENU_PORTFOLIO, _MA_MENU_CONTACT instead the correct words.



Anybody help? Thanks a lot.

2
Dave_L
Re: Smarty does not work?
  • 2007/11/14 12:22

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


The PHP file that defines those constants must be "included".

That's normally done within a .php file, but can also be done within a template using the Smarty function "include_php".

3
wizanda
Re: Smarty does not work?
  • 2007/11/14 13:48

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


Not sure , yet couldn't the main language files be used also, as the system runs through these and then it just needs defining there....

4
skenow
Re: Smarty does not work?
  • 2007/11/14 14:15

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


Are those modules installed?

5
xiaodao
Re: Smarty does not work?
  • 2007/11/16 0:54

  • xiaodao

  • Just popping in

  • Posts: 9

  • Since: 2007/11/14


Yes, the language files are in the theme package.

6
xiaodao
Re: Smarty does not work?
  • 2007/11/16 0:57

  • xiaodao

  • Just popping in

  • Posts: 9

  • Since: 2007/11/14


Oh, but I do not know which file I should include, it's related to different language, I think there's must be a variable in XOOPS, such as $XOOPS_LANG, which I could use in the path of the php file which define the words mapping.

Can you help to make sure? Thanks.

7
JasonX
Re: Smarty does not work?
  • 2008/6/8 19:10

  • JasonX

  • Just popping in

  • Posts: 6

  • Since: 2007/3/31


Please tell what file need's to be included or what i need to write in main.php file of language folder?

Login

Who's Online

314 user(s) are online (242 user(s) are browsing Support Forums)


Members: 0


Guests: 314


more...

Donat-O-Meter

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

Latest GitHub Commits