Re: header.tpl vs Smarty!!!
Depends on what you're attempting.
{literal} {/literal} has worked for me in the past.
If you want to stick in php, you need to use {php} {/php}...I believe there's a wiki page around here somewhere that has all the special coding you need to use when modifying templates.... I'll see if I can find it.
UPDATE: Here's the vShare WIKI page: http://docs.buyscripts.in/Main_Page
There is also a "smarty" manual here: http://www.smarty.net/manual/en/languag ... iteral.php
Re: header.tpl vs Smarty!!!
Hi
thank you for the reply, what happen is I bought a third party Skin and it has the search Box on the header like youtube, but it doesn't work.
so today i removed the line :
Quote:
<input tabindex="1" maxlength="128" name="search_id" value="">
and replace with:
Quote:
<input tabindex="1" maxlength="128" name="search" value="{$smarty.request.search}">
Upload, and check the search :) it works
still have to learn how to edit the commands how to replace contents on specific templates that could not give error, even i know most of the templates = tpl files all been done by HTML and not coded as php.
The GOOD thing is: Search box On header template working on all pages no errors :) some thing new I learn to do.
if you have more knowledge about that i like to share with you.
Regards
Abe
Re: header.tpl vs Smarty!!!
Oh excellent....yeah they were missing the smarty code between the quotes after value=
Code:
<input tabindex="1" maxlength="128" name="search_id" value="">