PDA

View Full Version : PM information?


ReeceDevonport
07-04-2012, 12:01 PM
Hi, I deleted the PM information where it tells you how many unread emails etc you have, what is the code used to grab this information?

Thankyou :)

kh99
07-04-2012, 12:07 PM
What do you mean exactly - did you take something out of a template so it doesn't display anymore, or did you delete something from the database?

ReeceDevonport
07-04-2012, 12:17 PM
What do you mean exactly - did you take something out of a template so it doesn't display anymore, or did you delete something from the database?

I removed it from the template

kh99
07-04-2012, 10:11 PM
Here the part of the navbar template that shows it:

<if condition="$show['notifications']">
<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
<if condition="$show['popups']">
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<else />
<script type="text/javascript" src="clientscript/vbulletin_notifications_nopopups.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript"> vBulletin.register_control("vB_Notifications_NoPopups", "notifications"); </script>
</if>
<else /><if condition="$show['pmstats']">
<div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
</if></if>

ReeceDevonport
07-06-2012, 07:21 AM
Here the part of the navbar template that shows it:

<if condition="$show['notifications']">
<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
<if condition="$show['popups']">
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<else />
<script type="text/javascript" src="clientscript/vbulletin_notifications_nopopups.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript"> vBulletin.register_control("vB_Notifications_NoPopups", "notifications"); </script>
</if>
<else /><if condition="$show['pmstats']">
<div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
</if></if>


Thanks very much :)