The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
PM Alert In Navbar
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: Code:
<if condition="$bbuserinfo['pmunread']"><a href="/private.php"><strong>$vbphrase[new_private_messages]</strong></a> ? <else /><if condition="$show['member']"><a href="/private.php">$vbphrase[private_messages]</a> ? </if></if> Ezra |
#2
|
|||
|
|||
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 [DATE]1194471905[/DATE] at [TIME]1194471905[/TIME] --------------- Never mind, it did it another way with this code and now it works fine. Code:
<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> ? </if> |
#3
|
||||
|
||||
It must be like: <if condition="$bbuserinfo['pmunread']">
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|