Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorevsion
    • CommentTimeMar 31st 2008
     
    hi guys,

    anyone know how to insert html/php in smarty templates?
    i have the following codes i'd like to insert in footer.tpl or home.tpl

    any help is appreciated, thanks guys.

    hi guys, i'd like to insert additional html/php to home.tpl but i get error messages. here's the code i'd like to insert in home.tpl

    Any help is appreciated.

    <div id="site">
    <div class="topchunk">
    <p align="center"><a href="" id="expand">Expand All?</a> | <a href="" id="collapse">Collapse All?</a></p>
    </div>

    <div class="chunk">
    <?php echo newsblocks::render(array(
    'my.xml',
    'http://website'
    ), array(
    'title' => 'tech news',
    'permalink' => 'http://website'
    )); ?>
    <?php echo jobblocks::render('http://website'); ?>
    <?php echo jobblocks::render('http://website'); ?>
    </div>

    <div class="chunk clearLeft">
    <?php echo jobblocks::render_wide(array(
    'http://website',
    'http://website'
    ), array(
    'items' => 11
    )); ?>
    </div>

    <div class="chunk clearLeft">
    <?php echo jobblocks::render('http://website'); ?>
    <?php echo jobblocks::render('http://website'); ?>
    <?php echo jobblocks::render('http://website'); ?>
    </div>

    <div class="chunk clearLeft">
    <?php echo jobsblocks::render_wide('http://website', array('items' => 7)); ?>
    </div>

    <div class="chunk clearLeft">
    <?php echo jobblocks::render('http://website'); ?>
    <?php echo jobblocks::render('http://website'); ?>
    <?php echo jobblocks::render('http://website', array('direction' => 'rtl')); ?>
    </div>

    <div class="clearLeft"></div>

    </div>

    <!-- This could fire onload, but placing it here helps it fire sooner. -->
    <script type="text/javascript">loadMe();</script>
    • CommentAuthorevsion
    • CommentTimeMar 31st 2008
     
    anyone? thanks
    • CommentAuthorflakdesign
    • CommentTimeMar 31st 2008
     

    I hope this link will be useful

    http://www.s9y.org/78.html#A4

    To insert javascript in smarty, enclose the js script tag in {literal}Javascript{/literal}

    regards
    vinay

    • CommentAuthorevsion
    • CommentTimeApr 2nd 2008
     
    Still playing around with it...so far I have been unsuccessful. HELP?
    • CommentAuthoryankidank
    • CommentTimeApr 2nd 2008
     
    I think for php you just wrap {php} Tags {/php} around your php. Javascript can be done with the literal tags like mentioned above
    • CommentAuthorcapone
    • CommentTimeApr 2nd 2008
     
    could anyone help me

    appreciate if you all guys can help me how to construct job URL page? I'm new to this kind of programming
    • CommentAuthorevsion
    • CommentTimeApr 2nd 2008
     
    {php} {/php} gives me parse error:

    Parse error: syntax error, unexpected '<' in /home/_templates/_cache/%%0E^0E4^0E407559%%footer.tpl.php on line 7

    Anyone?