Announcement

Collapse
No announcement yet.

PHP in Templates?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP in Templates?

    I want to add some PHP code to vB templates. Say for instance the navbar, can i add PHP code straight into it?

  • #2
    it is kind of like php, but not exactly.

    ex:
    in php, you would type
    if ($show['example'])
    but in vB templates, you type:
    <if condition="$show['example']">
    you can type the <if> right into it. and at the end: </if>

    EDIT: also I am not sure if all php things work with vBulletin....
    http://www.exngaming.com
    AIM- eXn GraViTY
    Skype- smartkidbk5
    Email- GraViTY@exngaming.com

    Comment


    • #3
      Originally posted by GraViTY View Post
      it is kind of like php, but not exactly.

      ex:
      in php, you would type
      but in vB templates, you type:
      you can type the <if> right into it. and at the end: </if>

      EDIT: also I am not sure if all php things work with vBulletin....

      Yes thats HTML.

      Comment


      • #4
        Originally posted by Ronald0 View Post
        Yes thats HTML.
        if/else is php

        If he was talking about html, yes you can put html into your vB templates...
        http://www.exngaming.com
        AIM- eXn GraViTY
        Skype- smartkidbk5
        Email- GraViTY@exngaming.com

        Comment


        • #5
          The <if>-syntax in vB templates is not php, although they work the same way. It's a meta language for PHP of sorts. And of course they are not html. Anyway, it is not possible to use php in templates. That's what plugins are for.
          The better place to ask questions like this would probably be vbulletin.org.

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          X