Topic: Lang block
ZunnaR
avatar
Freshman
Freshman
Posts: 3

Posted:
14.Aug 2006 - 19:24

Hi. How can I place thelang block into the header?
I did like this but doesn't work:
in 'home.html'

Quote

< !-- {pnBlockShow('core','thelang',pnBlockGetInfo(30));} -- >

icon_confused

He lp me!!!



edited by: ZunnaR, Aug 14, 2006 - 02:26 PM
TTH_Erik
avatar
Freshman
Freshman
Posts: 11

Posted:
15.Aug 2006 - 09:04

If your pnBlockShow call is correct then the following code may work:

Code

<!--[pnBlockShow('core','thelang',pnBlockGetInfo(30));]-->




edited by: TTH_Erik, Aug 15, 2006 - 05:04 AM

--
Erik from www.TenTonHammer.com
ZunnaR
avatar
Freshman
Freshman
Posts: 3

Posted:
15.Aug 2006 - 11:31

It didn't work. It show error:

Fatal error: Smarty error: [in modules/home.htm line 46]: syntax error: unrecognized tag: pnBlockShow('core','thelang',pnBlockGetInfo(30)); (Smarty_Compiler.class.php, line 436) in .../includes/classes/Smarty/Smarty.class.php on line 1088

How can I call PHP function in HTML? icon_frown
TTH_Erik
avatar
Freshman
Freshman
Posts: 11

Posted:
16.Aug 2006 - 14:17

I'm not able to test it right now, but this is probably not too far away:

Code

<!--[pnblockshow module="core" blockname="thelang" block="30"]-->


--
Erik from www.TenTonHammer.com
ZunnaR
avatar
Freshman
Freshman
Posts: 3

Posted:
16.Aug 2006 - 19:00

Thanks Erik.