Log in

View Full Version : PM Alert In Navbar


Ezswo
11-05-2007, 07:36 PM
Hi all,

I tried to make an PM alert in my navbar. When there's no private message it has to show "Private Messages" ($vbphrase[private_messages]). When there IS one or more new private messages it has to show "New Private Messages". I tried to use the following code:

<if condition="$bbuserinfo['pmunread']"><a href="/private.php"><strong>$vbphrase[new_private_messages]</strong></a>&nbsp;?&nbsp;
<else /><if condition="$show['member']"><a href="/private.php">$vbphrase[private_messages]</a>&nbsp;?&nbsp;</if></if>

Now, the problem is: it only works when I'm the User CP and not in every other page I go to (i.e. it's not showing when I'm on the forum-page). How can I get this to work on ALL pages, so the alert is always visible? Thanks for your help.

Ezra

Ezswo
11-07-2007, 07:19 PM
Well, I tried to search again to find a solution, but no luck so far.

Does anyone know what's wrong with the code I use? Thanks.

--------------- Added 1194471905 at 1194471905 ---------------

Never mind, it did it another way with this code and now it works fine.

<if condition="$show['member']"><a href="$vboptions[bburl]/private.php$session[sessionurl_q]">$vbphrase[private_messages] <if condition="$bbuserinfo[pmunread]"><strong>($bbuserinfo[pmunread] nieuwe)</strong></if></a>&nbsp;?&nbsp;</if>

WhaLberg
11-09-2007, 02:09 PM
It must be like: <if condition="$bbuserinfo['pmunread']">