5
           
            
                
     
    
    Okay so this code:
 <{if $xoops_isuser}> 
 
<{php}> 
GLOBAL $xoopsUser; 
$pm_handler =& xoops_gethandler('privmessage'); 
$uid = $xoopsUser->getVar('uid'); 
$criteria = new CriteriaCompo(new Criteria('read_msg', 0)); 
$criteria->add(new Criteria('to_userid', $uid)); 
$msgcount = $pm_handler->getCount($criteria); 
$GLOBALS['xoopsTpl']->assign('msgcount', $msgcount); 
<{/php}> 
 
<{if $msgcount > 0}> 
<a href="<{$xoops_url}>/viewpmsg.php"><img src="<{$xoops_imageurl}>images/prvmsg_on.jpg" alt=You have <{$msgcount}> new message border="0" />a> 
<{else}> 
 <a href="<{$xoops_url}>/viewpmsg.php"><img src="<{$xoops_imageurl}>images/prvmsg_off.jpg" alt="You have no new messages" border="0" />a> 
<{/if}> 
 
<{/if}>  
or this code:
 <{xoInboxCount assign=pmcount}> 
            <a href="<{xoAppUrl /viewpmsg.php}>"> 
            <{if $pmcount}> 
                <img src="<{xoImgUrl images/inbox-full.png}>" alt="Inbox (<{$pmcount}>)" title="You have <{$pmcount}> unread messages" /> Inbox (<{$pmcount}>) 
            <{else}> 
                <img src="<{xoImgUrl images/inbox.png}>" alt="Inbox" title="Show your inbox content" /> Inbox  
            <{/if}> 
            a>  
Goes into my sites them file, or does it go into the theme of the gadget im making for the toolbar ?