Forumdisplay template to fix the Netscape display bug.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AWS
    Senior Member
    • Apr 2000
    • 1830
    • 5.2.x

    Forumdisplay template to fix the Netscape display bug.

    To see the way it looks like in Netscape:
    [url]http://bbs.resource-zone.com/forumdisplay.php?forumid=1[/url]

    Here's my forumdisplay template.

    <HTML>
    <HEAD><TITLE>$bbtitle - $forumtitle</title>
    </head>
    <body bgcolor="#ffffff" text="#000000" id=all>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
    <p>
    $cssinclude
    <p>
    $header

    <table border="0" width="100%"><tr>
    <td valign="top" align="left"><a href="index.php"><img src="$titleimage" border="0"></a></td>

    <td valign="middle" align="center" nowrap>
    $fivelinks
    </td></tr></table>

    <table border="0" width="100%" cellpadding="2">
    <form action="forumdisplay.php" method="get">
    <tr><td width="100%">

    <FONT SIZE="2" FACE="arial, helvetica"><b><a href="index.php">$bbtitle</A> > $forumtitle</b><br><FONT SIZE="1" FACE="verdana,arial,helvetica">$moderatedby</font></font>

    </td><td valign="bottom" align="right" nowrap>
    <FONT SIZE="2" FACE="arial, helvetica"><b>Show threads from:</b></font>
    <INPUT TYPE="HIDDEN" NAME="forumid" VALUE="$forumid">
    <SELECT NAME="daysprune">
    <OPTION value="1" $daysprune1selected>Last day
    <OPTION value="2" $daysprune2selected>Last 2 days
    <OPTION value="5" $daysprune5selected>Last 5 days
    <OPTION value="10" $daysprune10selected>Last 10 days
    <OPTION value="20" $daysprune20selected>Last 20 days
    <OPTION value="30" $daysprune30selected>Last 30 days
    <OPTION value="45" $daysprune45selected>Last 45 days
    <OPTION value="60" $daysprune60selected>Last 60 days
    <OPTION value="75" $daysprune75selected>From last 75 days
    <OPTION value="100" $daysprune100selected>From last 100 days
    <OPTION value="365" $daysprune365selected>From the last year
    <OPTION value="1000" $daysprune1000selected>Show all threads
    </SELECT>
    <INPUT TYPE="SUBMIT" VALUE="Go"></font>
    </TD></tr></form>

    </table>


    <table border=0 cellpadding=5 border=0 cellspacing=1 width=100%>
    <tr bgcolor="#113274">
    <td align=center width="16"> </td>
    <td align=center width="16"> </td>
    <td align=center width="400"><FONT SIZE="1" FACE="verdana,arial,helvetica" color="#FFFFFF"><B>Topic</B></font></td>
    <td align=center width="65"><FONT SIZE="1" FACE="verdana,arial,helvetica" color="#FFFFFF"><B>Poster</B></font>
    </td>
    <td align=center><FONT SIZE="1" FACE="verdana,arial,helvetica" color="#FFFFFF"><B>Replies</B></font>
    </td>
    <td align=center><FONT SIZE="1" FACE="verdana,arial,helvetica" color="#FFFFFF"><B>Views</B></font>
    </td>
    <td align=center>
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr><td align="center" width="55">
    <FONT SIZE="1" FACE="verdana,arial,helvetica" color="#FFFFFF"><B>Last Post</A></B></font>
    </td>
    </td><td align="right">
    <A HREF="newthread.php?action=newthread&forumid=$forumid"><IMG SRC="$newthreadimage" BORDER=0 ALT="Post New Thread"></A>
    </td></tr></table>

    </td></tr>

    <td width="16">

    $announcement
    $forumdisplaybits

    <TR bgcolor="#113274">
    <TD valign="middle" width="100%" colspan="7">

    <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr><td width="100%" valign="middle">

    <FONT SIZE="1" FACE="verdana,arial,helvetica" color="#FFFFFF"><b>
    All times are $timezone. All dates are in Month-Day-Year format.</b></font>

    </td><td valign="middle">

    <A HREF="newthread.php?action=newthread&forumid=$forumid"><IMG SRC="$newthreadimage" BORDER=0 ALT="Post New Thread"></A>

    </td></tr></table>

    </table>

    <table border="0" width="100%" cellpadding="2">
    <tr><td width="100%" valign="top">

    $forumjump

    </td><td valign="top" align="right" nowrap>
    <FONT SIZE="1" FACE="verdana,arial,helvetica">$pagenav</td></tr></table>

    <center><table border=0><tr>
    <td><img src="images/newfolder.gif" border=0 alt="New Posts"></td>
    <td><b><FONT SIZE="1" FACE="verdana,arial,helvetica">New Posts</font></b></td>
    <td><img src="images/folder.gif" border=0 alt="No New Posts"></td>
    <td><b><FONT SIZE="1" FACE="verdana,arial,helvetica">No New Posts</font></b></td>
    <td><img src="images/newhotfolder.gif" border=0 alt="Hot Thread"><img src="images/hotfolder.gif" border=0 alt="Hot Thread"></td>
    <td><b><FONT SIZE="1" FACE="verdana,arial,helvetica">More than $hotnumber replies</font></b></td>
    <td><IMG SRC="images/lock.gif" BORDER=0 ALT="Closed Thread"></td>
    <td><b><FONT SIZE="1" FACE="verdana,arial,helvetica">Closed thread</font></b>
    </tr></table></center>

    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr><td width="100%">
    <p><FONT SIZE="1" FACE="verdana,arial,helvetica"><b>Forum Rules:</b><br>
    $forumrules</font></p>
    </td><td nowrap>
    <p><FONT SIZE="1" FACE="verdana,arial,helvetica"><b>Admin Options:</b><br>
    <a href="moderator.php?action=viewqueue&forumid=$forumid">View Moderation Queue</a><br>
    <a href="moderator.php?action=move&forumid=$forumid">Mass Move</a><br>
    <a href="moderator.php?action=prune&forumid=$forumid">Mass Prune</a>
    </font></td></tr></table>

    $footer

    Thank you,
    Bob

    [Edited by AWS on 04-26-2000 at 11:51 PM]
    Admins Zone - Resources for Forum Administrators
  • werehere
    Senior Member
    • Apr 2000
    • 1827

    #2
    Open up forumdisplay.php and search for

    [code]
    $threadicon="<img src=\"$icon[iconpath]\" alt=\"$icon[title]\" border=0>";
    [/code]

    And then overwrite the next three lines with:

    [code]
    } else {
    $threadicon=" ";
    }
    [/code]

    All I am really doing is adding the non breaking space to it so Netscape will display it:)

    [Edited by werehere on 04-27-2000 at 01:06 AM]
    We're Here Forums!
    [email protected]

    Comment

    • werehere
      Senior Member
      • Apr 2000
      • 1827

      #3
      I just noticed that the non breaking space is not being shown between the Quotes in

      [code]
      $threadicon=" ";
      [/code]


      I hope that makes sense to you:)
      Attached Files
      We're Here Forums!
      [email protected]

      Comment

      • WebStyles
        Senior Member
        • Apr 2000
        • 323

        #4
        Aaron found a little bug...

        HTML is off in this forum, but the board still took the non-breaking space. Let's see if this works:

        } else {
        $threadicon="&nbsp;";
        }

        [Edited by WebStyles on 04-26-2000 at 10:18 PM]
        Attached Files
        We're Here Forums!
        [email protected]

        Comment

        • Menno
          Senior Member
          • Apr 2000
          • 1224

          #5
          A little bit offtopic.....

          AWS, I see your board uses the icq add me icon ;)
          *jumps around happily*
          - Insert viable disclaimer here -

          ArtBeast!

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          😀
          😂
          🥰
          😘
          🤢
          😎
          😞
          😡
          👍
          👎