Results 1 to 3 of 3

Thread: {$smarty.now} doesn't work with IndexU

  1. #1
    Join Date
    Jul 2006
    Location
    Paris, France
    Posts
    108

    Default {$smarty.now} doesn't work with IndexU

    In a former script I used for a directory, I used the expression :
    {$smarty.now|date_format:"%d %b %Y, %H:%M"}
    to get the date on my pages.
    It was elegant, simple and it worked fine.

    So, I tried to put this expression in the header.html file of IndexU, but nothing works.

    I'm not a developer...

    Could you please explain if I have to put other parts of code to "launch" this function ?

    Thanks a lot

  2. #2
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    replace with the indexU smarty tag

    <%$smarty.now|date_format:"%d %b %Y, %H:%M"%>

    you can use all the smarty functions and tags, you just need to

    replace { with <%
    and } with %>

    they will work anywhere int he template files.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  3. #3
    Join Date
    Jul 2006
    Location
    Paris, France
    Posts
    108

    Default

    Quote Originally Posted by inspireme View Post
    replace with the indexU smarty tag

    <%$smarty.now|date_format:"%d %b %Y, %H:%M"%>

    you can use all the smarty functions and tags, you just need to

    replace { with <%
    and } with %>

    they will work anywhere int he template files.
    Thanks a lot

    I prefer that because on a Mac, it's not easy to use { and } because they are not directly on the keyboad.
    Last edited by Mickey; 09-09-2006 at 12:53 AM.

Similar Threads

  1. PayPal - does NOT work with indexU (?)
    By inspireme in forum v5.x
    Replies: 4
    Last Post: 08-24-2006, 05:14 AM
  2. IndexU Customization Work
    By StevenB in forum Help Wanted/Job Request
    Replies: 2
    Last Post: 02-19-2005, 11:35 AM
  3. Replies: 4
    Last Post: 01-31-2005, 04:01 PM
  4. customize IndexU to make it work like mystart.co.uk
    By bdewijs in forum Help Wanted/Job Request
    Replies: 2
    Last Post: 11-14-2004, 01:33 AM
  5. Replies: 9
    Last Post: 09-02-2004, 03:24 PM

Posting Permissions

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