Results 1 to 5 of 5

Thread: header.tpl vs Smarty!!!

  1. #1
    Join Date
    Dec 2007
    Posts
    20

    Default header.tpl vs Smarty!!!

    Hi all tech's and Expo Geeks!!!

    I ask you this question coz am facing ton's issues with Smarty.xx
    I try edit the header template and when i save I get always smarty errors then i load the default header back!

    is their any way to bypass that smarty !!!
    or is their any other commands to add a code and modify the template without having all sucha errors!

    as or like {literal} code here {/literal} doesn't work!

    Thank you

  2. #2

    Default

    What type of modification you need to add on your site.download the header.tpl file from the site and modify the site .upload the it binary mode.Now what error showing.

  3. #3
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default 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
    If it's not fun, stop doing it!

  4. #4
    Join Date
    Dec 2007
    Posts
    20

    Default 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 :

    <input tabindex="1" maxlength="128" name="search_id" value="">
    and replace with:

    <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

  5. #5
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default 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="">
    If it's not fun, stop doing it!

Similar Threads

  1. how can i add users online script 2 header.tpl (smarty error
    By Spaniard7886 in forum Template Modifications
    Replies: 2
    Last Post: 07-11-2008, 11:53 PM
  2. Need Help With Smarty Conditionals
    By scwebmaster in forum General Discussions
    Replies: 0
    Last Post: 07-02-2008, 10:57 PM
  3. header.tpl
    By tax in forum Template Modifications
    Replies: 1
    Last Post: 12-12-2007, 04:29 AM
  4. Smarty String on Top of every page
    By fikarnafaka in forum Installation Support
    Replies: 3
    Last Post: 07-06-2007, 04:20 AM
  5. Smarty error: Code
    By CVS in forum Installation Support
    Replies: 2
    Last Post: 06-01-2007, 10:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •