Using Smarty

Discussion in 'Installation' started by 7thgencivic.com, Jun 16, 2003.

  1. 7thgencivic.com

    7thgencivic.com New Member

    Joined:
    May 18, 2003
    Messages:
    23
    Is there a GUI or somethign for Smarty? Or do I just edit the html templates directly?

    Derek
  2. alex-adm

    alex-adm Guest

    Here is great contibuted description how to customize aMember templates:

    Creating Header and Footer Files

    The easiest way to create custom header and footer files is to start with an existing page on your site. Follow these steps:

    * Open an existing page on your site and save it in a new name - say amtemplate.html

    * Remove all the content you do not wish to include in the aMember pages.

    * You need to change all the urls in the HTML from relative to absolute. Links, image paths and so on must all be changed.

    For example if you have a link to your home page that reads
    <a href=index.html>
    this must be changed to
    <a href=http://www.yoursite.com/index.html>

    Similarly if you have an image called using
    <img src=../images/image.gif> it needs to be amended to
    <img src=http://www.yoursite.com/images/image.gif>

    (Alternatively you can edit all URLs to be relative from the root. This means all will begin with a forward slash - eg "/images/image.gif")

    * From the aMember template file /templates/header.html, copy the CSS information into the head area of your page.

    * Now write the word "HERE" in the part of the page where you want the script pages to appear, this is usually the main part of the page.

    * The content of the page which appears above the word "HERE" is your header - copy it into a new file and save as header.html

    * The content of the page which appears below the word "HERE" is your footer - copy it into a new file and save as footer.html

    * Replace the aMember files /templates/header.html and /templates/footer.html with your new ones - don't forget to back up the originals first!


    If you have Pro version ordered, we can help you with templates, just email us.
  3. 7thgencivic.com

    7thgencivic.com New Member

    Joined:
    May 18, 2003
    Messages:
    23
    what i want to do is put the amember templates in my portal software. I am using vbportal.
  4. alex-adm

    alex-adm Guest

    I'm not sure if I understand your question. Please explain...
    What exactly you need? Have you tried something?
  5. 7thgencivic.com

    7thgencivic.com New Member

    Joined:
    May 18, 2003
    Messages:
    23
    I have a portal system called vbportal. you can add new content and it will add all the header and footer to it.
    with this smarty thing, I can't do that. i tried doing {php}{/php} and adding the code inbetween, but i get errors.
    or what if i wanted to integrate with the vb styles? how would I do that?

    I can't just take my header and footer and add it to the templates of amember cause they are all dynamic.

    Derek
  6. alex-adm

    alex-adm Guest

    which error you get?
  7. 7thgencivic.com

    7thgencivic.com New Member

    Joined:
    May 18, 2003
    Messages:
    23
    errors from my Portal system cause no vars are able to be passed this way when using the php code in smarty

Share This Page