Announcement

Collapse
No announcement yet.

Javascript Not Working!

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

  • Javascript Not Working!

    You know how when you click on the number of replies a window is suppose to show up. But on my board it doesn't happen. I'm not sure if it's vB 2.0.3 with a bug or if I changed the wrong thing in the template. But I'm using the PHP3 version of vB.

    If you're a Final Fantasy Fan! Visit My Forum![url=http://forums.chocobocounty.com[/url]

  • #2
    Try reverting your forumdisplay_threadslist template.

    Comment


    • #3
      Thank Your All Might Developer ED!

      If you're a Final Fantasy Fan! Visit My Forum![url=http://forums.chocobocounty.com[/url]

      Comment


      • #4
        Originally posted by Ed Sullivan
        Try reverting your forumdisplay_threadslist template.
        There's a VERY good chance I hosed the original too. If the following is not accurate, could someone post it for me?
        PHP Code:
        <script language="Javascript">
        function 
        who(threadid) { window.open("misc.php?s=$session[sessionhash]&action=whoposted&threadid="+threadid"whoposted""toolbar=no,scrollbars=yes,resizable=yes,width=230,height=300"); }
        </
        script>
        <!-- 
        topic table -->
        <
        form action="forumdisplay.php" method="get">
        <
        table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextrawidth="{contenttablewidth}" align="center"><tr><td>
        <
        table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextrawidth="100%">
        <
        tr bgcolor="{tableheadbgcolor}" id="cat" align="center">
            <
        td bgcolor="{tableheadbgcolor}" align="center" nowrap colspan="3"><smallfont>
                <
        input type="hidden" name="s" value="$session[sessionhash]">
                <
        input type="hidden" name="forumid" value="$forumid">
                <
        input type="hidden" name="pagenumber" value="$pagenumber">
            <
        a href="$sorturl&sortorder=asc&sortfield=title"><font color="{tableheadtextcolor}"><b>Thread</b></font></a$sortarrow[title]</smallfont></td>
            <
        td bgcolor="{tableheadbgcolor}" nowrap><smallfont><a href="$sorturl&sortorder=asc&sortfield=postusername"><font color="{tableheadtextcolor}"><b>Thread Starter</b></font></a$sortarrow[postusername]</smallfont></td>
            <
        td bgcolor="{tableheadbgcolor}" nowrap><smallfont><a href="$sorturl&sortorder=desc&sortfield=replycount"><font color="{tableheadtextcolor}"><b>Replies</b></font></a$sortarrow[replycount]</smallfont></td>
            <
        td bgcolor="{tableheadbgcolor}" nowrap><smallfont><a href="$sorturl&sortorder=desc&sortfield=views"><font color="{tableheadtextcolor}"><b>Views</b></font></a$sortarrow[views]</smallfont></td>
            
        $threadrating
            
        <td bgcolor="{tableheadbgcolor}" nowrap><smallfont><a href="$sorturl&sortorder=desc&sortfield=lastpost"><font color="{tableheadtextcolor}"><b>Last Post</b></font></a$sortarrow[lastpost]</smallfont></td>
        </
        tr>
        $announcement
        $forumdisplaybits
        <tr id="cat">
            <
        td bgcolor="{tableheadbgcolor}" width="100%" colspan="8" align="center"><smallfont color="{tableheadtextcolor}">
            <
        nobr>
            <
        b>Showing threads $limitlower to $limitupper of $totalthreadssorted by </b>
            <
        select name="sortfield">
                <
        option value="title" $sort[title]>thread title</option>
                <
        option value="lastpost" $sort[lastpost]>last post time</option>
                <
        option value="replycount" $sort[replycount]>number of replies</option>
                <
        option value="views" $sort[views]>number of views</option>
                <
        option value="postusername" $sort[postusername]>thread starter</option>
                
        $threadrateoption
            
        </select>
            </
        nobr><nobr>
            <
        b>in</b>
            <
        select name="sortorder">
                <
        option value="asc" $order[asc]>ascending</option>
                <
        option value="desc" $order[desc]>descending</option>
            </
        select>
            <
        b>orderfrom</b>
            <
        select name="daysprune">
                <
        option value="1" $daysprunesel[1]>last day</option>
                <
        option value="2" $daysprunesel[2]>last 2 days</option>
                <
        option value="5" $daysprunesel[5]>last 5 days</option>
                <
        option value="10" $daysprunesel[10]>last 10 days</option>
                <
        option value="20" $daysprunesel[20]>last 20 days</option>
                <
        option value="30" $daysprunesel[30]>last 30 days</option>
                <
        option value="45" $daysprunesel[45]>last 45 days</option>
                <
        option value="60" $daysprunesel[60]>last 60 days</option>
                <
        option value="75" $daysprunesel[75]>last 75 days</option>
                <
        option value="100" $daysprunesel[100]>last 100 days</option>
                <
        option value="365" $daysprunesel[365]>the last year</option>
                <
        option value="1000" $daysprunesel[1000]>the beginning</option>
            </
        select>$gobutton
            
        </nobr>
            </
        smallfont></td>
        </
        tr>
        </
        table>
        </
        td></tr></table>
        </
        form>

        <
        table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextraalign="center">
        <
        tr valign="top">
            <
        td><smallfont>$newthreadlink</smallfont></td>
            <
        td align="right"><smallfont>$pagenav</smallfont></td>
        </
        tr>
        </
        table>

        <
        br>

        <!-- /
        topic table --> 
        Last edited by Xamu; Wed 3 Jul '02, 1:45pm.

        Comment

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