Announcement

Collapse
No announcement yet.

Welcome Panel is wrong

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

  • Welcome Panel is wrong

    I think I done something wrong. When registered its correct. But when I logout it welcomes back the last registered visitor. It should say welcome back , Guest but it says Welcome back, "last vistor who visited." Heres piece of the forum home tempelate:
    PHP Code:
     <tr valign="bottom">
     <
    td><font face="verdana,arial,helvetica" size="1" >
    Welcome back, <b>$username</b><br
     
    Members$numbermembersThreads$totalthreadsPosts$totalposts<br>
     
    Welcome to our newest member, <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$newuserid">$newusername</a>
     </
    font></td>
     <
    td align="right">
     <
    font face="verdana,arial,helvetica" size="1" ><a href="search.php?s=&action=getnew">View New Posts</a> <br
     
    The time now is $timenow.<br>
     
    You last visited$bbuserinfo[lastvisitdate].
     </
    font></td>
    </
    tr

  • #2
    This should be in your forum home page templates --> forumhome

    Code:
    {htmldoctype}
    <html>
    <head>
     <!-- no cache headers -->
     <meta http-equiv="Pragma" content="no-cache">
     <meta http-equiv="no-cache">
     <meta http-equiv="Expires" content="-1">
     <meta http-equiv="Cache-Control" content="no-cache">
     <!-- end no cache headers -->
     <meta name="keywords" content="vbulletin,forum,bbs,discussion,jelsoft">
     <meta name="description" content="$bbtitle is a discussion forum powered by vBulletin. To visit the forum, go to $bburl/ . To find out about vBulletin, go to http://www.vbulletin.com/ .">
     <title>$bbtitle - powered by vBulletin</title>
     $headinclude
    </head>
    <body>
    $header
    <!-- text -->
    <table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
    <tr valign="top">
     <td><img src="{imagesfolder}/vb_bullet.gif" border="0" align="middle" alt="$bbtitle : Powered by vBulletin version $templateversion">
     <normalfont><b>$bbtitle</b></normalfont></td>
     <td align="right"><smallfont>$welcometext<br><b>$newposts</b></smallfont></td>
    </tr>
    </table>
    <table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
    $unregwelcomemessage
    <tr valign="bottom">
     <td><smallfont>
     Members: $numbermembers, Threads: $totalthreads, Posts: $totalposts<br>
     Welcome to our newest member, <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$newuserid">$newusername</a>
     </smallfont></td>
     <td align="right"><smallfont>
     The time now is $timenow.<br>
     You last visited: $bbuserinfo[lastvisitdate].
     </smallfont></td>
    </tr>
    </table>
    <!-- /text -->
    <br>
    <!-- main -->
    <table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
    <table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
    <tr align="center">
      <td bgcolor="{tableheadbgcolor}"><smallfont>&nbsp;</smallfont></td>
      <td bgcolor="{tableheadbgcolor}" width="80%" align="left"><smallfont color="{tableheadtextcolor}"><b>Forum</b></smallfont></td>
      <td bgcolor="{tableheadbgcolor}"><smallfont color="{tableheadtextcolor}"><b>Posts</b></smallfont></td>
      <td bgcolor="{tableheadbgcolor}"><smallfont color="{tableheadtextcolor}"><b>Threads</b></smallfont></td>
      <td bgcolor="{tableheadbgcolor}" nowrap><smallfont color="{tableheadtextcolor}"><b>Last Post</b></smallfont></td>
      <td bgcolor="{tableheadbgcolor}" width="20%"><smallfont color="{tableheadtextcolor}"><b>Moderator</b></smallfont></td>
    </tr>
    $forumbits
    $loggedinusers
    $birthdaybits
    $pminfo
    </table>
    </td></tr></table>
    <!-- /main -->
    <br>
    <!-- timezone/login-->
    <table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
    <tr valign="top">
      <td><smallfont>$timezone</smallfont></td>
      <td align="right">$logincode</td>
    </tr>
    </table>
    <!-- /timezone/login -->
    <br>
    <!-- icons -->
    <table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
    <tr>
     <td align="center">
     <img src="{imagesfolder}/on.gif" border="0" alt="On" align="absmiddle">
     <b><smallfont>New posts</smallfont></b>
     &nbsp;&nbsp;
     <img src="{imagesfolder}/off.gif" border="0" alt="Off" align="absmiddle">
     <b><smallfont>No new posts</smallfont></b>
     &nbsp;&nbsp;
     <img src="{imagesfolder}/offlock.gif" border="0" alt="Closed Forum" align="absmiddle">
     <b><smallfont>A closed forum</smallfont></b>
     </td>
    </tr>
    </table>
    <!-- /icons -->
    $footer
    </body>
    </html>

    Comment


    • #3
      I don't think this should be here... please remove.
      http://www.mcseboard.de/images/buttons/lastpost.gif www.MCSEboard.de
      German Windows Server & IT Pro Community dedicated to Windows Client & Server Systems. MVPs inside

      Comment

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