Announcement

Collapse
No announcement yet.

How to put this in the menu?

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

  • funmasti
    replied
    lynne is right, why u guys ask modification related question here?

    Leave a comment:


  • Lynne
    replied
    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

    Leave a comment:


  • snakehill
    started a topic How to put this in the menu?

    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!
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X