PDA

View Full Version : New PM Notification


ericgtr
08-14-2006, 10:00 PM
I've decided to upgrade my existing Flashing Envelope (https://vborg.vbsupport.ru/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
08-15-2006, 09:18 PM
BTW,

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

Well done Eric, very nice mod!

*Installed*

ericgtr
08-15-2006, 09:21 PM
Doh! Thanks, updated. :)

pauloo
08-15-2006, 09:37 PM
Nice thank you !

Roxie
08-15-2006, 10:31 PM
no icon?

Roxie
08-15-2006, 10:41 PM
I'm blind. :)

StuntFactoryX
08-15-2006, 11:39 PM
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
08-16-2006, 02:35 AM
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
08-16-2006, 02:48 AM
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
08-16-2006, 11:39 AM
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
08-16-2006, 11:44 AM
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
08-16-2006, 01:03 PM
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
08-16-2006, 01:21 PM
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
08-16-2006, 02:08 PM
Very nice...installed again

alwafi
08-17-2006, 02:55 AM
Hello ericgtr

It's very Nice thanks for sharing

alwafi

Mr Chad
08-17-2006, 05:19 PM
very nice... Installed

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

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

ericgtr
08-17-2006, 06:45 PM
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
08-18-2006, 09:22 AM
thanks alot working fine for me :)

Snake
08-18-2006, 11:38 AM
I kinda like it. Thanks!

ktp101
08-18-2006, 08:30 PM
nice touch. :D

installed.

jdk10
08-19-2006, 04:03 AM
How about changing the cells background color too?

ericgtr
08-19-2006, 01:13 PM
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
08-19-2006, 09:01 PM
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
08-19-2006, 10:10 PM
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
08-19-2006, 10:13 PM
My intent only.

ericgtr
08-19-2006, 11:07 PM
My intent only.

https://vborg.vbsupport.ru/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
08-19-2006, 11:31 PM
I like it

o0Hubba0o
08-26-2006, 07:35 PM
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...
* o0Hubba0o clicks install lol.

jdk10
08-26-2006, 07:35 PM
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
08-27-2006, 02:44 AM
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
08-31-2006, 08:32 PM
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
09-22-2006, 10:06 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=96190)

category
09-23-2006, 06:10 PM
nice hack

user02934123123
09-25-2006, 04:29 PM
Excellent and simple mod. Well worth the install. Many thanks.

dieselpowered
10-13-2006, 07:15 PM
Looks great...I think I will have to give it a try!

Thanks :)

Red Matrix
10-19-2006, 09:25 PM
Thinking about installing this!

EDIT: I did, I did!

PassLab.net
10-20-2006, 10:28 PM
sweet,

passlab.net installed ;)

sorry01
11-10-2006, 07:06 AM
It's very Nice thanks 3.6.3 working

sunnycher
11-14-2006, 02:20 AM
Cute! Installed!! Thank you!

oldfan
11-14-2006, 02:34 AM
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?

* oldfan installs

thanks

SherryG
11-17-2006, 09:44 PM
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
11-18-2006, 02:44 AM
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 (https://vborg.vbsupport.ru/showthread.php?t=96190)

Ditto.

iran.gs
11-22-2006, 10:05 PM
Installed so cute and so simple thanksssssssssssssss wish for a better gif.

iran.gs
11-22-2006, 10:29 PM
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
11-22-2006, 10:34 PM
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
12-04-2006, 10:19 AM
INSTALLED

The dman
12-06-2006, 10:23 AM
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
12-06-2006, 08:56 PM
re-up the image.

Slash_
12-08-2006, 12:14 AM
very nice

using it with 3.6.4 and it works great!

Quantnet
12-16-2006, 05:48 PM
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
12-17-2006, 06:15 PM
dosent seem to work for me..

munch
12-17-2006, 07:57 PM
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
12-18-2006, 07:27 AM
all i get is the text no image.. weird im using 3.6.2 ideas?

ericgtr
12-18-2006, 05:18 PM
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://vborg.vbsupport.ru/

munch
12-19-2006, 12:56 AM
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
12-19-2006, 06:01 AM
Change the mode your uploading in?

iran.gs
12-27-2006, 02:51 PM
<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
12-27-2006, 02:53 PM
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
12-28-2006, 03:54 AM
Great

Smoothie
12-28-2006, 02:41 PM
Great
:rolleyes:

kdemonte
01-03-2007, 02:08 PM
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
01-04-2007, 06:41 PM
What a great little mod. ericgtr, thanks for this!

trickfly
01-06-2007, 11:35 PM
thanks, do get rid of your forums awlful background break the alt1 or alt 2 in the coding

jw00dy
01-07-2007, 01:42 AM
installed, thanks for this. Very handy little mod.

cupra
01-07-2007, 11:41 AM
great work, installd!!!

voter
01-16-2007, 06:17 AM
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
01-22-2007, 08:02 PM
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
01-24-2007, 04:23 PM
nice simple beautiful *installed

PoetJA-1975
01-26-2007, 06:07 PM
Very nice! Thanx for the share ERIC ;)

Jacquii.

AnabolicResourc
01-30-2007, 11:55 AM
Works great :D

Thanks !

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

Thanks!

Clancy

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

Wayne Luke
02-08-2007, 11:13 PM
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
02-09-2007, 02:03 AM
great tips, thanks :)

Grunt
02-09-2007, 08:04 AM
no issues whatsoever..thanks!

powerbook
02-10-2007, 11:33 AM
Such a small little mod that make a big difference, thanks :)

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

Thanx for the modification!

alexanderpas
02-19-2007, 09:59 AM
vb has a special variable for this needs

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

ahmednadir
02-20-2007, 05:18 AM
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
02-20-2007, 07:09 AM
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
02-21-2007, 01:15 AM
oops,
thanks mate:up:

Joe_S2k
02-21-2007, 04:01 AM
Nice and clean looking. Thanks.

DeMagH
02-25-2007, 11:24 PM
nice hack indeed, thanks

BACANERIA
02-28-2007, 01:15 AM
thankss i like this

Betablocker
02-28-2007, 05:30 PM
Had this installed a while now, and like it alot :up:

Thank you.

kingele18
03-01-2007, 03:29 AM
thanx :)

Tralala
03-01-2007, 03:38 PM
/clicks install

Thanks for sharing!

snake-boy
03-05-2007, 10:44 AM
This is great. Looks good and works great. Thank you!

-snake

kether1
03-05-2007, 11:29 PM
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
05-16-2007, 02:38 PM
Doesn't seem to work in 3.6.7. The template mod is no longer valid.

ra7al
05-16-2007, 03:05 PM
Work nice with me

3.6.4

== INSTALL ==

BadgerDog
05-22-2007, 02:14 PM
Installed on v3.6.7PL1 .... :)

Works fine... :up:

Regards,
Badger

ammoskumar
05-28-2007, 09:41 AM
3.6.7pl1 works gr8 Thanks Mate:D

ShawneyJ
06-21-2007, 03:57 AM
U must upload them here ? /public_html/forum/images/YOUR SKIN/misc


omg finally thx.

rainierarms
06-26-2007, 03:27 AM
Where is the Navbar template??

da420
06-26-2007, 03:18 PM
Look in the style manager in the Admin CP.

JadedSouls
07-21-2007, 07:29 PM
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
08-16-2007, 04:09 AM
Cool hack Eric. Marked as installed.

thanasis
08-30-2007, 07:51 PM
thanks a lot for this mod, very useful

TheTrust
09-12-2007, 11:44 AM
nice post .. thanks

BigDog56
09-13-2007, 06:44 AM
Got it working, Very nice, Thank You!

hrk
09-17-2007, 02:52 PM
sweet and simple.
installed . pass on 3.6.8. :)

mishb68
09-18-2007, 03:42 AM
Thanks!! I'm glad there are smart people out there :)

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

ericgtr
09-18-2007, 04:56 PM
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
09-19-2007, 12:04 AM
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
09-19-2007, 02:59 PM
better idea - add it with css -.- make it float in screen then!

ericgtr
09-19-2007, 03:04 PM
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
09-19-2007, 04:15 PM
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
09-19-2007, 04:48 PM
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
09-20-2007, 10:56 PM
Nice mod thanks! :)

WAHMama
09-20-2007, 11:32 PM
This is a neato mod :) Thanks

triff
09-23-2007, 08:23 AM
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
09-23-2007, 04:34 PM
You change the path in the navbar code you insert into the navbar template

Jason Black
09-23-2007, 05:36 PM
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
09-23-2007, 05:42 PM
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
09-23-2007, 08:58 PM
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
09-24-2007, 12:43 PM
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
09-24-2007, 03:23 PM
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
10-08-2007, 07:58 AM
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
12-14-2007, 06:51 PM
Thank you for this lovely mod:)

UltraFanatics
12-15-2007, 05:09 PM
Brilliant mod, so useful!

nyunyu
12-15-2007, 06:23 PM
very nice..
replaced you previous flash envelope with this one..
Thanks

sawatdee
12-20-2007, 03:55 AM
Works great thank you, marked as installed.

Keesa
12-29-2007, 03:27 AM
This is great!!!!!!!!

Thank you.

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

redlabour
01-29-2008, 05:05 PM
Any changes needed for 3.7?

glennybee
02-15-2008, 11:13 AM
All the wee things add to the usability of the forum.

Many thanks :)

montsa007
02-29-2008, 03:36 AM
Clicks Installed :p

Glynn58
04-02-2008, 08:02 AM
thanks looks really good :up:

cafenetland
04-05-2008, 09:59 PM
thx

installed

Reycer
07-07-2009, 09:50 PM
works fine on 3.8.3