View Full Version : [Release] Graphical PM Representation
SpeedStreet
07-12-2003, 03:26 PM
Well, there is code in the navbar template that is coded out, but instead of writing a hack, this can now be done using conditionals.
It's simple! Just modify this code to work with proper links in the navbar, and make sure you have two graphics that represent pms off and pms on!
<if condition="$bbuserinfo[pmunread] == 0">
<img src="pmoff.gif"></img>
<else />
<img src="pmon.gif"></img>
</if>
See how easy this is??? :D
Tony G
07-13-2003, 12:18 AM
Can you supply just some images for the people who cannot end up finding a pm off/on .gif?
Bad Bunny
07-13-2003, 05:29 AM
Well, there is code in the navbar template that is coded out, but instead of writing a hack, this can now be done using conditionals.
It's simple! Just modify this code to work with proper links in the navbar, and make sure you have two graphics that represent pms off and pms on!
<if condition="$bbuserinfo[pmunread] == 0">
<img src="pmoff.gif"></img>
<else />
<img src="pmon.gif"></img>
</if>
See how easy this is??? :D
I made an interesting header addition that was inspired by your little snippet, and I was wondering if you minded if I share it with everyone. :)
SpeedStreet
07-13-2003, 10:28 AM
I made an interesting header addition that was inspired by your little snippet, and I was wondering if you minded if I share it with everyone. :)
Please do :D
This was all part of a complete header redo on my part, hence the rather ambiguous code I hade to share....I didn't have any original code left!
imported_chuanse
10-10-2003, 06:44 AM
Still waiting for those images :/
thuffner
10-10-2003, 07:01 AM
Still waiting for those images :/
Here's what I use...
imported_chuanse
10-11-2003, 06:31 AM
Perfect :D
Thx dude :D
Is there any similar solution for vb2 ?
Bad Bunny
10-12-2003, 04:46 AM
Not using conditionals. VB2 does not have conditionals. You would have to hack files for vb2.
imported_rynthar
10-12-2003, 04:49 AM
Is it me, or has conditionals made it so you doing mods/hacks using templates only much more common?
Wayne Luke
10-12-2003, 06:27 PM
Is it me, or has conditionals made it so you doing mods/hacks using templates only much more common? Well that is their intended purpose. Increase the power of templates so more modifications can be made without editing the php code. The less people edit the code the easier your upgrades are and the better support is from us at Jelsoft.
imported_rynthar
10-12-2003, 08:12 PM
Lol. Thank god Wayne. I am never ever ever going to forget upgrading from 2.2.9 to 2.3.0. About 45 hacks lost *sighs*
imported_chuanse
10-13-2003, 05:58 AM
That's a bummer :/
Mike_XBLW
12-17-2003, 12:12 AM
OK...I'm new to this...where do you put the conditionals?
Thanks
Mike_XBLW
12-17-2003, 01:09 AM
OK...I'm new to this...where do you put the conditionals?
Thanks
Never Mind, I figured it out
tomshawk
12-17-2003, 05:03 AM
Well, Unlike the last person, I dont get it.
Do I put this in the nabar template? If so, Where
Sorry, I dont understand the conditionals yet, and there doesn't seem to be documentation on vBulletin yet.
and I'm still pretty new to vBulletin as a whole.
Help!?!
Nevermind, I got it figured out :p
Stylez
12-19-2003, 05:26 PM
very nice..im using this
MODS
Please delete this post now.
u2page
01-14-2004, 02:22 PM
In the navbar template, look for this code:
<if condition="$show['pmstats']"><br />
Add the conditional in the first post after it. You'll need to upload the pmon.gif and pmoff.gif to your forum directory.
sinclac
01-15-2004, 06:32 PM
Well, there is code in the navbar template that is coded out, but instead of writing a hack, this can now be done using conditionals.
It's simple! Just modify this code to work with proper links in the navbar, and make sure you have two graphics that represent pms off and pms on!
<if condition="$bbuserinfo[pmunread] == 0">
<img src="pmoff.gif"></img>
<else />
<img src="pmon.gif"></img>
</if>
See how easy this is??? :D
I installed this hackin the navbar at http://www.landscapeforums.com but it only shows up on the forumhome navbar and not any of the others any ideas as to why it does this?
Chuck
gmarik
01-17-2004, 12:03 PM
simple but good solution - some DHTML or CSS would not mind as well ...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.