i have not
but i found a plugin that might do the job i just need help converting one line
Code:
vB_Template::preRegister('header', array('newmessages' => $vbulletin->userinfo['pmunread']));
Im no good when it comes to vb4 code, and I think this needs to be an eval. Im just not sure how exactly to convert it to vb3
this (along with the rest of the code) unsets pmunread from notifications and creates it individually.
--------------- Added [DATE]1459912757[/DATE] at [TIME]1459912757[/TIME] ---------------
i did manage to get the correct if statement
PHP Code:
<if condition="$vbulletin->userinfo['pmunread'] != $notifications_total">
that removes pm notifications from the notifications list, but the notification still remains in the total count, and if i can get that code in my previous post converted it should solve it
--------------- Added [DATE]1459913470[/DATE] at [TIME]1459913470[/TIME] ---------------
I GOT IT =P lmao was so easy -_-
plugin:
in notifications_list
Code:
unset($notifications[pmunread]);
the rest was achieved by the original if conditions
templates:
Code:
<if condition="$notifications_total">
<span>$notifications_total</span>
</if>
shows total notifications OTHER THAN PMS since we unset them
Code:
<if condition="$bbuserinfo[pmunread]">
<span>($bbuserinfo[pmunread])</span>
</if>
shows amount of pms
that'll do it =)