PDA

View Full Version : New PM Notification


ericgtr
15 Aug 2006, 21:52
I've decided to upgrade my existing Flashing Envelope (http://www.vbulletin.org/forum/showthread.php?t=103202) mod and change it around a little for 3.6. To see how it will look, checkout the screen shot.

Upload the attached image newpm.gif to your images/misc directory.

In the navbar template
Find:

<strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
</div>
</td>


Place Under: (be sure to change to your forum path to /forum/private.php)

<if condition="$bbuserinfo['pmunread']">
<td class="alt2" valign="top" nowrap="nowrap">
<a href="/forum/private.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/newpm.gif" alt="You have a new PM" border="0"></a>
</td>
</if>

Mith
15 Aug 2006, 22:18
BTW,

As it doesn't state, it is the NAVBAR template that you need to edit.

Well done Eric, very nice mod!

*Installed*

ericgtr
15 Aug 2006, 22:21
Doh! Thanks, updated. :)

pauloo
15 Aug 2006, 22:37
Nice thank you !

Roxie
15 Aug 2006, 23:31
no icon?

Roxie
15 Aug 2006, 23:41
I'm blind. :)

StuntFactoryX
16 Aug 2006, 00:39
thanks works awesome. i had to edit /private.php to /forums/private.php to get the link to work. thought i throw that out there for some of us noobs.

o0Hubba0o
16 Aug 2006, 03:35
thanks works awesome. i had to edit /private.php to /forums/private.php to get the link to work. thought i throw that out there for some of us noobs.
Yeah, I had to add that too, I would assume most forums would have it like that.

Also to keep in the old theme of the "blinking" notice, I made these real quick if anyone wants to use them, just rename it by taking of the number.

ericgtr
16 Aug 2006, 03:48
Yeah, I had to add that too, I would assume most forums would have it like that.

Also to keep in the old theme of the "blinking" notice, I made these real quick if anyone wants to use them, just rename it by taking of the number.
Cool, thanks. I've also added a note to change the path. :)

Nachtfalke
16 Aug 2006, 12:39
Nice one *klicks install* Perhaps there could be a little tweaking for the alt value for the image: It would be perfect, when it shows the Number of unread pms in it.

nedo_a
16 Aug 2006, 12:44
thanks works awesome. i had to edit /private.php to /forums/private.php to get the link to work. thought i throw that out there for some of us noobs.
can you explain me how to do that

ericgtr
16 Aug 2006, 14:03
can you explain me how to do that
Where it says /private.php you will need to put in your forum path, for example if your site is www.yoursite.com/forum it will need to be /forum/private.php

StuntFactoryX
16 Aug 2006, 14:21
is there away to get in in the same box as the other pm info. i use a dark skin and it shows a border like its in its own box next to the standard pm info box.

bashy
16 Aug 2006, 15:08
Very nice...installed again

alwafi
17 Aug 2006, 03:55
Hello ericgtr

It's very Nice thanks for sharing

alwafi

Mr Chad
17 Aug 2006, 18:19
very nice... Installed

harmor19
17 Aug 2006, 19:38
This
<a href="/forum/private.php?$session[sessionurl]">

Can just be
<a href="private.php?$session[sessionurl]">

ericgtr
17 Aug 2006, 19:45
This
<a href="/forum/private.php?$session[sessionurl]">

Can just be
<a href="private.php?$session[sessionurl]">
Only if you are running your forum root on the public_html root. That's why I specified to change it to the specific folder the board is in.

Terminatoronly
18 Aug 2006, 10:22
thanks alot working fine for me :)

Snake
18 Aug 2006, 12:38
I kinda like it. Thanks!

ktp101
18 Aug 2006, 21:30
nice touch. :D

installed.

jdk10
19 Aug 2006, 05:03
How about changing the cells background color too?

ericgtr
19 Aug 2006, 14:13
How about changing the cells background color too?
Well, I think this will work (untested)

Change this:

<if condition="$bbuserinfo['pmunread']">
<td class="alt2" valign="top" nowrap="nowrap">
<a href="/forum/private.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/newpm.gif" alt="You have a new PM" border="0"></a>
</td>
</if>


To this:


<if condition="$bbuserinfo['pmunread']">
<td class="pmbg" valign="top" nowrap="nowrap">
<a href="/forum/private.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/newpm.gif" alt="You have a new PM" border="0"></a>
</td>
</if>


Now, add this to your CSS by going to Style Manager > Main CSS and scroll to the very bottoms, then paste this into the bottom box of the Additional CSS Definitions:


.pmbg
{
background-color: #FFFFFF;
color: #000000;
}


Change the colors around to fit.

jdk10
19 Aug 2006, 22:01
ericgtr thanks for the assistance. I ended up reviewing the syntax of the code and wrote my own. I was able to come up with the following which is tested and works with vb 3.6.0


<if condition="$bbuserinfo['pmunread']">
<td class="pmbg" valign="top" nowrap="nowrap">
<else />
<td class="alt2" valign="top" nowrap="nowrap">
</if>

ericgtr
19 Aug 2006, 23:10
ericgtr thanks for the assistance. I ended up reviewing the syntax of the code and wrote my own. I was able to come up with the following which is tested and works with vb 3.6.0


<if condition="$bbuserinfo['pmunread']">
<td class="pmbg" valign="top" nowrap="nowrap">
<else />
<td class="alt2" valign="top" nowrap="nowrap">
</if>
There's no link to the image or to private.php in that code though, which is fine if that's your intention, all it will do is change the cell color.

jdk10
19 Aug 2006, 23:13
My intent only.

ericgtr
20 Aug 2006, 00:07
My intent only.

http://www.vbulletin.org/forum/showthread.php?t=124426
LOL.. alrighty then. Basically, you've taken the code I've given you and called it your own. Cool by me because it's easy for anyone who knows a little about this stuff, but overall not very cool to take credit for it.

Robbed
20 Aug 2006, 00:31
I like it

o0Hubba0o
26 Aug 2006, 20:35
Yeah, I had to add that too, I would assume most forums would have it like that.

Also to keep in the old theme of the "blinking" notice, I made these real quick if anyone wants to use them, just rename it by taking of the number.Cool, thanks. I've also added a note to change the path. :)
No problem, was going to get this for another skin I added and couldn't find, forgot to click install heh. So...
/me clicks install lol.

jdk10
26 Aug 2006, 20:35
LOL.. alrighty then. Basically, you've taken the code I've given you and called it your own. Cool by me because it's easy for anyone who knows a little about this stuff, but overall not very cool to take credit for it.

To change a bg color. Wow. Like you said anyone who knows a little about VB could do it. You didn't write anything about checking for the new PM or anything. If someone told me the hex for the color white text and I go create a hack changing text white, it doesn't mean they told me how to write the mod.

ericgtr
27 Aug 2006, 03:44
You didn't write anything about checking for the new PM or anything.

Uh.. Try looking at the first post, which you've abviously already done. Also .pmbg is what I shared with you here at your request and is what you are also using. Whatever dude, way to create your first mod.

Erox
31 Aug 2006, 21:32
SWEET! We had this function in our 3.5 version and we just upgraded and never bothered putting it back. I like yours much better too!

redlabour
22 Sep 2006, 23:06
It was nice if one Bug was fixed :

Some PMs are not displayed as new PMs with this Hacks.

1. Any Welcome-PM from vBulletin.

2. Any PM that was send with this Hack - Admin Mass PM Members (http://www.vbulletin.org/forum/showthread.php?t=96190)

category
23 Sep 2006, 19:10
nice hack

user02934123123
25 Sep 2006, 17:29
Excellent and simple mod. Well worth the install. Many thanks.

dieselpowered
13 Oct 2006, 20:15
Looks great...I think I will have to give it a try!

Thanks :)

Red Matrix
19 Oct 2006, 22:25
Thinking about installing this!

EDIT: I did, I did!

PassLab.net
20 Oct 2006, 23:28
sweet,

passlab.net installed ;)

sorry01
10 Nov 2006, 08:06
It's very Nice thanks 3.6.3 working

sunnycher
14 Nov 2006, 03:20
Cute! Installed!! Thank you!

oldfan
14 Nov 2006, 03:34
Yeah, I had to add that too, I would assume most forums would have it like that.

Also to keep in the old theme of the "blinking" notice, I made these real quick if anyone wants to use them, just rename it by taking of the number.

got these for dark back grounds?

/me installs

thanks

SherryG
17 Nov 2006, 22:44
I am not getting the blinking envelope, just the alt text that says "You have a new PM.

I have uploaded the gif file into my images/misc folder. Can someone tell me what might be wrong?

Thanks!

MustangLisa
18 Nov 2006, 03:44
Thanks, this is great! Anyone have a .gif for a dark background?


It was nice if one Bug was fixed :

Some PMs are not displayed as new PMs with this Hacks.

1. Any Welcome-PM from vBulletin.

2. Any PM that was send with this Hack - Admin Mass PM Members (http://www.vbulletin.org/forum/showthread.php?t=96190)

Ditto.

iran.gs
22 Nov 2006, 23:05
Installed so cute and so simple thanksssssssssssssss wish for a better gif.

iran.gs
22 Nov 2006, 23:29
u had a problem in ur text download ur code has a missing forum
<a href="/private.php?$session[sessionurl]"><img
<a href="forum/private.php?$session[sessionurl]"><img
second one is the right one plz fix it ppl can make a mistake

iran.gs
22 Nov 2006, 23:34
Thanks, this is great! Anyone have a .gif for a dark background?




Ditto.

try here mate
http://www.feebleminds-gifs.com/email-gifs.html

KURTZ
04 Dec 2006, 11:19
INSTALLED

The dman
06 Dec 2006, 11:23
Hello
Nice hack. I installed it and the envelope doesn't flash and the image seems garbled. I have a feeling it has something to do with my settings

Any ideas?
Thanks

dooch
06 Dec 2006, 21:56
re-up the image.

Slash_
08 Dec 2006, 01:14
very nice

using it with 3.6.4 and it works great!

Quantnet
16 Dec 2006, 18:48
anyone knows what mod they use for PM notification on this forum ? Everytime i have a PM, there is a red blinking stamp on top of my info box.

krazycivik
17 Dec 2006, 19:15
dosent seem to work for me..

munch
17 Dec 2006, 20:57
I am not getting the blinking envelope, just the alt text that says "You have a new PM.

I have uploaded the gif file into my images/misc folder. Can someone tell me what might be wrong?

Thanks!

Same here, :(

i have tried re-upping the file newpm.gif to images/misc.

any ideas ?

krazycivik
18 Dec 2006, 08:27
all i get is the text no image.. weird im using 3.6.2 ideas?

ericgtr
18 Dec 2006, 18:18
Guys, I think this may be just the image. Any animated gif will work, experiment with other animated gif's and see what happens. Here's a much smaller one for example: https://www.vbulletin.org/forum/

munch
19 Dec 2006, 01:56
i have tried/uploaded about 6 different newpm.gif files found in this thread and nothing seems to work for me at all.

tres bizarre :(

3.6.4

s25
19 Dec 2006, 07:01
Change the mode your uploading in?

iran.gs
27 Dec 2006, 15:51
<if condition="$bbuserinfo['pmunread']">
<td class="alt2" valign="top" nowrap="nowrap">
<a href="/forum/private.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/newpm.gif" alt="You have a new PM" border="0"></a>
</td>
</if>

this is how it should be in ur note text u have it wrong !! its a great look thanks

iran.gs
27 Dec 2006, 15:53
i have tried/uploaded about 6 different newpm.gif files found in this thread and nothing seems to work for me at all.

tres bizarre :(

3.6.4


U must upload them here ? /public_html/forum/images/YOUR SKIN/misc

TheWhite
28 Dec 2006, 04:54
Great

Smoothie
28 Dec 2006, 15:41
Great
:rolleyes:

kdemonte
03 Jan 2007, 15:08
I installe dit but can't get the picture to come up still. I uploaded the pic to both the images/misc and the images/misc in my actual template (custome one) and neither one is working. I've tried [images_styles_smartblue_misc] too and it didn't work. Any ideas?

if condition="$bbuserinfo['pmunread']">
<td class="pmbg" valign="top" nowrap="nowrap">
<a href="/private.php?$session[sessionurl]"><img src="$stylevar[images_misc]newpm3.gif" alt="You have a new PM" border="0"></a>

chkdgate
04 Jan 2007, 19:41
What a great little mod. ericgtr, thanks for this!

trickfly
07 Jan 2007, 00:35
thanks, do get rid of your forums awlful background break the alt1 or alt 2 in the coding

jw00dy
07 Jan 2007, 02:42
installed, thanks for this. Very handy little mod.

cupra
07 Jan 2007, 12:41
great work, installd!!!

voter
16 Jan 2007, 07:17
Nice hack.
But I can suggest, instead of checking your forum path to replace /forum/private.php just use private.php$session[sessionurl_q] and system will do it for you.

I mean code must look like
<if condition="$bbuserinfo['pmunread']">
<td class="alt2" valign="top" nowrap="nowrap">
<a href="private.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/newpm.gif" alt="You have a new PM" border="0"></a>
</td>
</if>

Yago
22 Jan 2007, 21:02
Thanks
I am a newbie and this is one of the few hacks I have not had to do twice or ask for support.
BRAVO!

mrkhm
24 Jan 2007, 17:23
nice simple beautiful *installed

PoetJA-1975
26 Jan 2007, 19:07
Very nice! Thanx for the share ERIC ;)

Jacquii.

AnabolicResourc
30 Jan 2007, 12:55
Works great :D

Thanks !

tamborinegal
01 Feb 2007, 02:48
Very nice eric. I was using the one for 3.5, but this one's even nicer.

Thanks!

Clancy

Smiry Kin's
01 Feb 2007, 23:59
really dislike the cell spacer in the middle >.< prefer the old hack, could you update that one? :)

Wayne Luke
09 Feb 2007, 00:13
Thanks.. Installed this on my site with a few modifications. I couldn't find a flashing envelope with a dark background so just used a static PNG. I think the addition of the image will be enough to alert most people as it will still only show when they have a new PM.

The image I used is attached. It is from the Noia Warm icon set for KDE and under GPL.

giotmuadong
09 Feb 2007, 03:03
great tips, thanks :)

Grunt
09 Feb 2007, 09:04
no issues whatsoever..thanks!

powerbook
10 Feb 2007, 12:33
Such a small little mod that make a big difference, thanks :)

PoetJA-1975
11 Feb 2007, 01:56
Nice mod - I actually customized a detailed .gif image for my forum
Here it is if anyone wants it...

Thanx for the modification!

alexanderpas
19 Feb 2007, 10:59
vb has a special variable for this needs

instead of
/forum/private.php
use
$vboptions[bburl]/private.php

ahmednadir
20 Feb 2007, 06:18
thanks, looks great! "installed"

I'm facing a little problem
I've upload the gif in the misc folder
but the flashing gif does'nt seem to appear when a member receives a message
the link is there but the pic does'nt appear
all I get is the "x" sign and " yeu have a new PM"

any help with that?
thanks

Endurer
20 Feb 2007, 08:09
thanks, looks great! "installed"

I'm facing a little problem
I've upload the gif in the misc folder
but the flashing gif does'nt seem to appear when a member receives a message
the link is there but the pic does'nt appear
all I get is the "x" sign and " yeu have a new PM"

any help with that?
thanks

Make sure that its in the correct (the one that displays x) style's misc folder.

ahmednadir
21 Feb 2007, 02:15
oops,
thanks mate:up:

Joe_S2k
21 Feb 2007, 05:01
Nice and clean looking. Thanks.

DeMagH
26 Feb 2007, 00:24
nice hack indeed, thanks

BACANERIA
28 Feb 2007, 02:15
thankss i like this

Betablocker
28 Feb 2007, 18:30
Had this installed a while now, and like it alot :up:

Thank you.

kingele18
01 Mar 2007, 04:29
thanx :)

Tralala
01 Mar 2007, 16:38
/clicks install

Thanks for sharing!

snake-boy
05 Mar 2007, 11:44
This is great. Looks good and works great. Thank you!

-snake

kether1
06 Mar 2007, 00:29
Hey, this works great! I have one request for next update: Anyway to make it AJAX so that the member doesn't have to refresh or search on the boards or click anything to see the flashing envelope when s/he gets a new pm? That would totally make this a killer mod.

Thanks for your work!
Kether

Zelos
16 May 2007, 15:38
Doesn't seem to work in 3.6.7. The template mod is no longer valid.

ra7al
16 May 2007, 16:05
Work nice with me

3.6.4

== INSTALL ==

BadgerDog
22 May 2007, 15:14
Installed on v3.6.7PL1 .... :)

Works fine... :up:

Regards,
Badger

ammoskumar
28 May 2007, 10:41
3.6.7pl1 works gr8 Thanks Mate:D

ShawneyJ
21 Jun 2007, 04:57
U must upload them here ? /public_html/forum/images/YOUR SKIN/misc


omg finally thx.

rainierarms
26 Jun 2007, 04:27
Where is the Navbar template??

da420
26 Jun 2007, 16:18
Look in the style manager in the Admin CP.

JadedSouls
21 Jul 2007, 20:29
I used to have this along while ago but lost the image/code when I had to start my site from scratch!

Thank you!

Mass
16 Aug 2007, 05:09
Cool hack Eric. Marked as installed.

thanasis
30 Aug 2007, 20:51
thanks a lot for this mod, very useful

TheTrust
12 Sep 2007, 12:44
nice post .. thanks

BigDog56
13 Sep 2007, 07:44
Got it working, Very nice, Thank You!

hrk
17 Sep 2007, 15:52
sweet and simple.
installed . pass on 3.6.8. :)

mishb68
18 Sep 2007, 04:42
Thanks!! I'm glad there are smart people out there :)

Arrogant-One
18 Sep 2007, 07:53
Will this mod work if your primary skin uses graphical buttons in the navbar?

ericgtr
18 Sep 2007, 17:56
It's hard to say without seeing the navbar code of that template but if you see the code mentioned in the instructions then there's a pretty good chance that it will work.

Arrogant-One
19 Sep 2007, 01:04
It's hard to say without seeing the navbar code of that template but if you see the code mentioned in the instructions then there's a pretty good chance that it will work.
Okay, will try it. Can you please tell me where my image directory is? I use CPanel. Thanks,

Alex

Smiry Kin's
19 Sep 2007, 15:59
better idea - add it with css -.- make it float in screen then!

ericgtr
19 Sep 2007, 16:04
Arrogant, it should go into your images/misc folder (according to your board).

Smiry, we'll go ahead and keep this one in a table. ;)

Smiry Kin's
19 Sep 2007, 17:15
well depends if your interested in seo, etc... and how your controlling your forums...

vb 3.7 will be table less... so it would be a good idea to have both options...

ericgtr
19 Sep 2007, 17:48
well depends if your interested in seo, etc... and how your controlling your forums...

vb 3.7 will be table less... so it would be a good idea to have both options...
Having the newpm.gif placed in either a table or css is going to make the slightest difference in SEO. Also, VB 3.7 still has issues without tables that they are currently working out, there are still too many differences between IE6 and IE7 that need addressed, this is evident with their current blog system.

danward
20 Sep 2007, 23:56
Nice mod thanks! :)

WAHMama
21 Sep 2007, 00:32
This is a neato mod :) Thanks

triff
23 Sep 2007, 09:23
Hi! Was just about to install the mod when I saw this:

"be sure to change to your forum path to /forum/private.php"

What does that mean? (Do you mean change the forum URL?)

What will it do? :P

Cheers!
Sverrre.

woodcreeker
23 Sep 2007, 17:34
You change the path in the navbar code you insert into the navbar template

Jason Black
23 Sep 2007, 18:36
It didn't work for me....it shows the link up there but it doesn't show the gif...i tried to change the name of th gif in both the codes and the uploaded file....but it still didn't work

triff
23 Sep 2007, 18:42
I still don't understand it. I've looked and the code to be inserted, and have looked in the navbar template. Is there some code in the navbar template that should be changed to /forum/private.php ? In that case what is that code? Or is it the new code that I'm going to change in any way? :-/

Sverre.

Smiry Kin's
23 Sep 2007, 21:58
I still don't understand it. I've looked and the code to be inserted, and have looked in the navbar template. Is there some code in the navbar template that should be changed to /forum/private.php ? In that case what is that code? Or is it the new code that I'm going to change in any way? :-/

Sverre.
this code <if condition="$bbuserinfo['pmunread']">
<td class="alt2" valign="top" nowrap="nowrap">
<a href="/forum/private.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/newpm.gif" alt="You have a new PM" border="0"></a>
</td>
</if>

those still stuck, add me to msn...

BioWaffen
24 Sep 2007, 13:43
Very cool hack :) Thanks a lot

If your adress of forum is just a normal adress like whatiknow.com, then just put /forum/ away so that there is just "private.php?...."

triff
24 Sep 2007, 16:23
this code <if condition="$bbuserinfo['pmunread']">
<td class="alt2" valign="top" nowrap="nowrap">
<a href="/forum/private.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/newpm.gif" alt="You have a new PM" border="0"></a>
</td>
</if>

those still stuck, add me to msn...

but the correct forum path is allready included in that code! why is it written "remember to change your forum path to /forum/private.php" when it's allready changed in the code you're adding? :eek:

anyway i just installed it and it works great. :D

however, could anyone tell me how to remove that anoying pop-up that also comes and tells there's a new message & opens the inbox in a new window if it's clicked? I went to the pm options but didn't find anything there?

SGL.

USAMustangs.com
08 Oct 2007, 08:58
This is a cool feature. However, I wanted the newpm.gif image to be right next to Welcome, Member. section in the navbar. So, I tweaked on the supplied code to make it display the way I wanted.

For those of you that are interested, here is the code.

Find in navbar template

<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />


Then place the following code (red) in the middle of that string

<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x] <if condition="$bbuserinfo['pmunread']">
<a href="http://www.yourwebsite.com/forum/private.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/newpm.gif" alt="You have a new PM" border="0"></a> </if></phrase></strong><br />


I removed the <td> tags to keep the newpm.gif inside the same cell as welcome_x

EddG
14 Dec 2007, 19:51
Thank you for this lovely mod:)

UltraFanatics
15 Dec 2007, 18:09
Brilliant mod, so useful!

nyunyu
15 Dec 2007, 19:23
very nice..
replaced you previous flash envelope with this one..
Thanks

sawatdee
20 Dec 2007, 04:55
Works great thank you, marked as installed.

Keesa
29 Dec 2007, 04:27
This is great!!!!!!!!

Thank you.

weedheaven
30 Dec 2007, 11:12
Does anybody got an enveloppe for a darker style? on the default it looks super nice, but on my black one ugly. Anybody ?

redlabour
29 Jan 2008, 18:05
Any changes needed for 3.7?

glennybee
15 Feb 2008, 12:13
All the wee things add to the usability of the forum.

Many thanks :)

montsa007
29 Feb 2008, 04:36
Clicks Installed :p

Glynn58
02 Apr 2008, 09:02
thanks looks really good :up:

cafenetland
05 Apr 2008, 22:59
thx

installed

Reycer
07 Jul 2009, 22:50
works fine on 3.8.3