1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What are {2}, {3} etc?

Discussion in 'PHP & Perl' started by MexiLu, Mar 6, 2012.

  1. MexiLu

    MexiLu Newbie

    Joined:
    Jan 16, 2012
    Messages:
    39
    Likes Received:
    7
    Location:
    Europe
    The company I work for has a bunch of vB sites. I was looking through a part just now to update some of the links to a newer format and came across this;
    Code:
    ...Registration is fast, simple and absolutely free  so please, <a  href="{2}"><strong>join  our community today</strong></a>! <br /><br />If  you have any problems with the registration process or your account  login, please contact <a href="{4}">contact us</a>...
    None of the other people here have PHP knowledge, neither do I really but I can read it and its enough for what I do.

    Where can I find the {x} to edit the values? I had a quick search through templates and other plugins but couldn't find anything about it.
     
  2. JohnnySalami

    JohnnySalami Registered Member

    Joined:
    Jan 4, 2012
    Messages:
    82
    Likes Received:
    9
    The value placed in the template variable is derived from the particular data pulled from the database for that post/page. Templates usually have three parts: php code, the db data, and the template it is displayed through. This probably doesn't help you much. I suggest checking out the vb forum for more contextual answers.

    You can reverse engineer it though. Typically, the template and the php file have the same names. You can also tell what php file you're working with in the brower url, obviously. Then step through the php code. Sorry I couldn't be more help.