Archive for howtodoit.myfastforum.org Walkthough guides for myfreeforum phpbb 2 forums
 


       howtodoit.myfastforum.org Forum Index -> Portal Hacks
Symon

Welcome Message

Ok to have a welcome message as a portal feature add this code to your forum This should go in front of your existing portal codes.

If you do not know how to make your forum have portals then please read the Portal guides to see HOWTODOIT

Code:
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
        <tr>
        <th colspan="2"  class="thTop" nowrap="nowrap"><span class="forumlink">Welcome</span></th>
        </tr>
 <tr>
        <td class="row2">
<center>
<span class="forumlink">{USERNAME}</span><br/>{AVATAR}
</center>
</td>
  </tr>
 </table>


This will add a welcome portal plus will show the users avatar if you do not want their avatar shown just remove
Code:
<br/>{AVATAR}


By adding the next code will put private message warning light on there aswell

Code:

<br/>
<script language="Javascript" type="text/javascript">
<!--
   if ( {PRIVATE_MESSAGE_NEW_COUNT} >0)
   {
document.write('<p><a href="privmsg.php?folder=inbox"><img src="templates/myff_forum3/images/button_newmessages_red.gif"/></a></p>');
   }
//-->
</script>


So it could look like this


Code:

<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
        <tr>
        <th colspan="2"  class="thTop" nowrap="nowrap"><span class="forumlink">Welcome</span></th>
        </tr>
 <tr>
        <td class="row2">
<center>
<span class="forumlink">{USERNAME}</span><br/>{AVATAR}<br/>
<script language="Javascript" type="text/javascript">
<!--
   if ( {PRIVATE_MESSAGE_NEW_COUNT} >0)
   {
document.write('<p><a href="privmsg.php?folder=inbox"><img src="templates/myff_forum3/images/button_newmessages_red.gif"/></a></p>');
   }
//-->
</script>
</td>
  </tr>
</center>
</table>


Dont forget to change the img url to match your forum image link so change the myff_forum3 to suit your forum

Code:
<img src="templates/myff_forum3/images/button_newmessages_red.gif"/></a>

       howtodoit.myfastforum.org Forum Index -> Portal Hacks
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum