Template Variables

Discussion in 'vBulletin Discussions' started by Mopar1973Man, Apr 12, 2010.

  1. Mopar1973Man

    Mopar1973Man Novice

    Joined:
    Apr 5, 2010
    Messages:
    45
    Likes Received:
    4
    First Name:
    Michael
    I would like to get some help on Vb4 variables and templates... I need to know how this all works, how to properly edit the template, and then what I can use and can't use in the template..

    I need to know so I can start doing some designing and changing to my forum. I want to break out of the mold that (stock VB4) provides. But Alias the documentation is lacking and I'm still confused... :frown:

    So what can I do? :rolleyes:
     
  2. gnatster

    gnatster Regular Member

    Joined:
    May 31, 2009
    Messages:
    717
    Likes Received:
    98
    Location:
    Down the hall
    First Name:
    Nathan
  3. Mopar1973Man

    Mopar1973Man Novice

    Joined:
    Apr 5, 2010
    Messages:
    45
    Likes Received:
    4
    First Name:
    Michael
    Sorry that's not what I'm looking for...:(

    Like user information, forum information, thread information, etc...

    Like if I want to recreate a template and add user information or profile information to say a postbit... I know this is easy because when you create a profile it need a variable but lets say I need this information only present on one side of my forum... (Mopar!973Man and Cloud 10 Computers) split...

    Since i'm a poor sod I figured there is a way to use information of the forum or thread to trigger certain information to be present say in the post bit.

    I need to know variable first so I could dream of my layout then I'll ask more question after that... But i need to know what information I can pull from the MySQL database in a variable forum and its variable. Then if there is limitation of when and where it can be used...
     
  4. Webmist

    Webmist Champion

    Joined:
    Jan 30, 2008
    Messages:
    305
    Likes Received:
    18
    Location:
    US
    First Name:
    Jen
    That's just the list for styles. They are global variables. No one has made a complete list of the variables. If someone would it would probably rival Microsofts Certification Manual.

    It will be a lot easier to state what you want to show and where. As variables are dependant on where they are being called from. (i.e. what script = forumdisplay.php, showthread.php or what page.)

    The skies the limit. Between vb.org and here there is either a plugin, hook, or sql query to pull any information you want.
     
  5. Mopar1973Man

    Mopar1973Man Novice

    Joined:
    Apr 5, 2010
    Messages:
    45
    Likes Received:
    4
    First Name:
    Michael
    So how does these expensive style designer design new templates re-ordering information at will?

    Not too worried about styling really... But I would like to re-do information of forum and change some of the templates around...

    I've got some basic HTML/XHTML knowledge... I also understand basic PHP scrpits... But I just want to know what I got to work with (variables & information) then know the limitation of these variables...

    Just truely frustrating... I hate stumbling around in the dark and trying to learn something I paid good money for and therei s no information about it... :(
     
  6. Webmist

    Webmist Champion

    Joined:
    Jan 30, 2008
    Messages:
    305
    Likes Received:
    18
    Location:
    US
    First Name:
    Jen
    Pretty much. 90% of the variables are their. You just either got to know them or play around to find the right one. If you do a search here, vb.com or vb.org you can find more of the common ones.

    Those expensive designers just make everything look great. However the info they pull in their custom templates is the same. One of their tricks is to have some custom language files so the wording is just a little different.

    Check out this thread.
     

Share This Page