View Full Version : [VB3]Blink on PM Box Full...


Barry
2nd August 2003, 02:03 AM
I keep my users PM boxes small (100 PMs) because I know they will fill them up no matter how large I make them... :) Anyways I always hate seeing those posts Attn: so and so Clean out your PM's threads.

Anyway, you can put this any where you like and it will display pmfull.gif whenever the users PM box has reached its quota.

I have attached a sample animated .gif file for you to use...

<!--PM Box Full -->
<if condition="$bbuserinfo[pmtotal] >= $permissions[pmquota]">
<tr><td class="page" align="center">
<a href="private.php?$session[sessionurl]"><img src="$stylevar[imagesfolder]/pmfull.gif" border="0" /></a>
</td></tr></if>
<!--End PM Box Full -->

Floris
2nd August 2003, 03:21 AM
Nice work :)

Good to see someone using the conditionals to their fullest !

Thank you for sharing.

Barry
2nd August 2003, 07:40 AM
I went ahead and integrated this with the blinking PM mod.

This will :

1. display newpmblink.gif if unread pm.
2. display newpmblink.gif if unread pm and pmbox full.
3. display pmfull.gif if pmbox full and no unread pm's.

Basically I didnt want to display both .gif files at once, just one or the other. If the pmbox is full and there is a new PM the newpmblink.gif will be displayed until the pm's are read, once read pmfull.gif will be displayed until enough pm's are delete to get below the pmquota.


<!-- New PM Blink/PM Box Full -->
<if condition="$bbuserinfo[pmunread] != 0">
<tr><td class="page" align="center">
<a href="private.php?$session[sessionurl]"><img src="$stylevar[imagesfolder]/newpmblink.gif" border="0" /></a>
</td></tr>
<else />
<if condition="$bbuserinfo[pmtotal] >= $permissions[pmquota]">
<tr><td class="page" align="center">
<a href="private.php?$session[sessionurl]"><img src="$stylevar[imagesfolder]/pmfull.gif" border="0" /></a>
</td></tr>
</if>
</if>
<!-- End PM Blink -->

Barry
2nd August 2003, 08:45 AM
OK I found one small probably that is bothering me. Maybe one of you guys can help me out here...

When you logout of the forum its always displays pmfull.gif as after logging out your pmquota is 0. It only does it on the screen right after you logout, click any link or button threats you as a normal guest and no longer displays the image. I just cannot figure this out (maybe its because its 1:30am and Im tired)...

Floris
2nd August 2003, 10:49 AM
You can check with if conditional to see if the user is a guest, if so, don't show anything.

If I knew you'd go ahead and make this, then I wouldn't have to put time in it myself :D I made what you made above, just a slightly bit different, and with guest permission check. I am sure you can come up with this, otherwise I will try to release my own code.

Barry
2nd August 2003, 06:08 PM
I actually tried checking if the user was a guest and that did not work... I used the following:


<if condition="$bbuserinfo[userid] == 0">


Can you post your code so I can see what you did different?

Floris
30th September 2003, 12:21 PM
<if condition="$bbuserinfo[userid] != 0">Code for user who is not a guest<else />Code for user who is a guest</if>

Curll
3rd October 2003, 12:11 PM
Sweet, I've been looking all over for this.

Daniel C
4th October 2003, 07:59 PM
nice template mod

AccordTuner
5th October 2003, 01:41 AM
thanks barry, i added this one to my site! my box is always going full and me not realizing it!

Tony
5th October 2003, 04:37 AM
Nice mod, that'd alert me. :D

max11
5th October 2003, 08:43 PM
Thank's alot :)

Floris
1st November 2003, 08:48 AM
Sure, just attach the static one you made and I will make it go flashy :)

Joy
1st November 2003, 12:37 PM
I think this is a great idea but I'm unable to view the attachment "pm gif" can someone tell me what I'm doing wrong please? :)

Floris
1st November 2003, 12:38 PM
I think this is a great idea but I'm unable to view the attachment "pm gif" can someone tell me what I'm doing wrong please? :)
http://www.vBulletin-Fans.com/showthread.php?t=372

Joy
1st November 2003, 12:43 PM
Thank you :)

Floris
1st November 2003, 12:44 PM
No problem, within the hour your permissions will be updated. You will then be able to download attachments and view images.

kennethj
4th November 2003, 11:28 AM
just what i needed

looking for the number all of the time . . . tanks ;)

Apoco
4th November 2003, 08:00 PM
Great Template Mod! TY for sharing with all of us!

Kingskin
15th January 2004, 04:34 AM
great mod, well done!. I hope this is OK, i just though i'd show you how i adapted it for flashing text (although the flash is only visable in netscape, anyone knows how to get it to blink in IE let me know!) but if anyone would rather use text and doesnt know how:


<!--PM Box Full -->
<if condition="$bbuserinfo[pmtotal] >= $permissions[pmquota]">
<div>
<a href="private.php?$session[sessionurl]" style="text-decoration:blink; color:darkred;">Your PM box is full!</a>
</div>
</if>
<!--End PM Box Full -->