Help add a bandwith script popup.js line to vb3.5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Blackbeard
    Member
    • Oct 2003
    • 42

    Help add a bandwith script popup.js line to vb3.5

    I want to add a bandwidth meter to my forum and go hold of this software, the instructions are as follows

    1. Unzip the installation package bandwidthmeter-***.zip. It will create a
    bandwidthmeter directory.
    2. Move the bandwidthmeter directory into a location on your web server
    that is setup to execute PHP files (.php).
    3. Modify the config.inc.php file to fit your configuration. Set $mysql
    to "True" if you want to use MySQL to log readings I would suggest
    downloading phpMyAdmin (http://phpmyadmin.sourceforge.net/).

    4. If you want to use the javascript pop-up version (highly recommended
    because it prevents users from generating incorrect results), you must
    include the file "popup.js" on the page which you are calling the meter
    from. This may be done within the <head> tag with the following line:
    <script language=javascript src="popup.js">
    When you call the meter, link to it as follows:
    <a href="javascript:OpenMeter('meter.php')">Speed Test</a>

    The bit in part 4 i dont know what to do with, i would like to add it to the navbar, where do i put the script and link??

    Please help
  • Colin F
    Senior Member
    • May 2004
    • 17689

    #2
    Add this code to your headinclude template:
    Code:
      <script language=javascript src="popup.js">
    Add the second part wherever you want the link to show up.
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment

    • Blackbeard
      Member
      • Oct 2003
      • 42

      #3
      [quote=Colin F;1141405]Add this code to your headinclude template:
      Code:
        <script language=javascript src="popup.js">
      Does this go at the top or after a certain line?

      Thanks alot

      Comment

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 73981

        #4
        I would suggest placing it with the other script lines within the template.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment

        • Blackbeard
          Member
          • Oct 2003
          • 42

          #5
          Originally posted by Wayne Luke
          I would suggest placing it with the other script lines within the template.
          Thank you

          Comment

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