Announcement

Collapse
No announcement yet.

How to put this in the menu?

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

  • How to put this in the menu?

    I made this little screen scrape to see how many users there are in my (external) Videochat:
    PHP Code:
    <?php
    $url 
    'http://www.mtgstream.com/online_amount.php';
    $output file_get_contents($url); 
    echo 
    $output
    ?>
    The link to the Videochat in the header-template is:
    Code:
    <td>
    <a href="http://www.magiciansthegathering.com/forums/chat.php">Videochat</a>
    </td>
    I would like to put the PHP in there so it shows up like 'Videochat (4)' with the '4' being the amount of users in the chat. I know how to put the brackets around the PHP but I can't just copy/paste the PHP in there because the number simply won't show up.

    So how do I do this?

    Thanks in advance!

  • #2
    vbulletin.org is the site for modifications. If you need help with coding, your best bet it to post over there.

    You cannot put php in a template, so you are going to have to put it in a plugin. If you need help with that, then like I said, you should post for help over on vbulletin.org

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools &lt;- awesome site for html/css help

    Comment


    • #3
      lynne is right, why u guys ask modification related question here?
      Mastiya

      Comment

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