Announcement

Collapse
No announcement yet.

Enable External Javascript

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

  • Enable External Javascript

    I already have it enabled. what's the next step?
    Where can I get those javascrpts for each forum? Thanks.

  • #2
    Check the online documentation:

    http://www.vbulletin.com/docs/html/m...group_external
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment


    • #3
      Thanks, I got the following codes:

      function thread(threadid, title, poster, threaddate, threadtime) { this.threadid = threadid; this.title = title; this.poster = poster; this.threaddate = threaddate; this.threadtime = threadtime; } var threads = new Array(15); threads[0] = new thread(10123, 'what is it', 'jino', 'September 12th, 2004', '00:15'); threads[1] = new thread(10112, 'I like reading', 'qbob', 'September 12th, 2004', '00:03'); .....

      I can not understand what they are. any more detailed info for how to use this feature? how can I embed jscript on my external page? Thanks.

      Comment


      • #4
        Here is one explanation I saw:

        Code:
        <script type="text/javascript" src="<A href="http://vbforumurl.com/external.php?type=js&amp;forumids=XX"></s">http://vbforumurl.com/external.php?type=js&amp;forumids=XX"></s
        cript>
        <b>Last 15 Threads :</b><br><table width="60%">
        <script type="text/javascript">
        <!--
        var max = 15;
        if(threads.length < max)
        max = threads.length;
        for(i = 0; i < max; i++)
        {
        if (threads[i].title.length > 50)
        { threads[i].title = threads[i].title.substring(0, 50) + '...'; }
        document.writeln("<tr><td><a href=\"[url="http://vbforumurl.com/showthread.php?t"]http://vbforumurl.com/showthread.php?t[/url]=" + threads[i].threadid
        + "\">" + threads[i].title + "<\/a> <\/td><td><small> : (by " + threads[i].poster + ")<\/small><\/t
        d><td> : <small>" + threads[i].threaddate + "<\/small><\/td><\/tr>");
        }
        //-->
        </script>
        Then replace:
        1. XX with forumid (make sure is public viewable forum)
        2. vbforumurl.com with forum url
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment

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