vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   PM Alert (SIMPLE) NO IMAGE! (https://vborg.vbsupport.ru/showthread.php?t=124349)

Ben Wilkins 08-18-2006 10:00 PM

PM Alert (SIMPLE) NO IMAGE!
 
If you want to display:

You have a pm, waiting to be read.

when a user has a new private message:

Just add this to the bottom of your header template

PHP Code:

<center>
<
font size="4" color="red" style="bold">
<if 
condition="$bbuserinfo['pmunread']">You have a private messagewaiting to be read.</if></font>
</
center

See the attachment for example



This mod works on all versions of VB

cheech4487 08-18-2006 10:34 PM

just so happens I was lookin for this and I will give it a try, thanx!!

bobhonda 08-18-2006 11:18 PM

very nice **installed** thanks

Scooterpig 08-18-2006 11:41 PM

Short & Sweet, love it thank you..:)

Ya might just wanna add a .txt file for it to attach as per rules..:)

Selene 08-19-2006 12:59 AM

nice hack! thanks

OziloZ 08-19-2006 02:08 AM

Excellent

jdk10 08-19-2006 03:06 AM

Could this be modified to change the background color of the Welcome Sprint area on the top right?

Baudman 08-19-2006 03:35 AM

I hope you don't mid but I changed the code a bit so you can click it now when you see it. It will take you to your pm box.

Code:

<center>
<a href="http://www.yourdomain.com/private.php" target="_blank"><font size="4" color="red" style="bold">
<if condition="$bbuserinfo['pmunread']">You have a private message, waiting to be read.</if></font></a>
</center>

Change www.yourdomain.com to your sites address

Thanks this hack is great. :)

I should also add that you have to add /forums/ or what ever extention you have your forums in. Some people have http://www.yourdomain.com/forums/private.php for an example. if your site isn't set to direct to your forums like I have above (http://www.yourdomain.com/private.php) then change the path like this last example I gave. most people can change the green section to what ever they have.

I hope I have not confused to many poeple cause I don't normally add to things so I have no Idea how to get my point accross. lol

BETIServices 08-19-2006 03:47 AM

Thanks for the hack, I love this hack specially with another hack that I already have it will display perfect.

The option to click is a plus !

Snake 08-19-2006 10:16 AM

Nice idea. I like it.

Nxs 08-19-2006 11:08 AM

Nice idea, may be better to move the font and center codes inside the condition - save bandwidth if there are no pm's :)

bolly.beats 08-23-2006 06:43 PM

nicee bro installed :D :D :D :D

Brandon Sheley 08-24-2006 04:00 AM

nice add-on :)

Staxed 08-25-2006 10:41 AM

Quote:

Originally Posted by Scooterpig
Ya might just wanna add a .txt file for it to attach as per rules..:)

yes...please

bongwater 08-25-2006 12:00 PM

installed on my forum. thanks!

hotwheels 08-26-2006 03:24 AM

That is very kewl..........

IAWBody 09-15-2006 09:22 PM

Installed, thanks!

thablewprnt 09-16-2006 06:08 PM

For some reason I only get the "You have a private message, waiting to be read"

I don't get the blinking one.....:cry:

Gizmo5h1t3 09-16-2006 07:43 PM

Quote:

Originally Posted by thablewprnt
For some reason I only get the "You have a private message, waiting to be read"

I don't get the blinking one.....:cry:

thatll be because thats what the hack does??

along the same lines, i dont get big silly red arrows on mine...pppfttt

thablewprnt 09-16-2006 11:34 PM

Well that reply was about as usefull as a bent penny....Or was that an insult? sorry im a newb.....*smh and pishhh* get lost..

oberheimhaven 09-18-2006 05:55 PM

Good Job click installed ;-) Like the fact u can click it and goright to pop up messge keep up t he great work everyone!!
3.6.0 installed!!!
MarkAnthony

rezapci 09-18-2006 09:48 PM

so where is the New Privite Msg?

stigz 09-26-2006 10:10 AM

thanks that was simple lol installed

Klaymen TK 09-27-2006 07:29 PM

Installed. :)

Gsmmind 09-30-2006 09:16 PM

Very Nice Hack Bro........;)

HAVOK USA 10-21-2006 11:01 PM

Very Simple and Very Effective - thanks!

rareclownfish 11-05-2006 12:59 PM

Maybe wroung forum but where can I get the other hack next to the one you showed in the pic NEW Private MSG.
Thanks

Tru2Chevy 11-13-2006 03:19 PM

Quote:

Originally Posted by rareclownfish (Post 1111150)
Maybe wroung forum but where can I get the other hack next to the one you showed in the pic NEW Private MSG.
Thanks

Yea, I saw that hack a while ago and can't find it again now. Would like to add both to my board, as several members on my site are a bit dense when it comes to seeing new PMs :)

- Justin

ByG SteAm 11-19-2006 10:38 PM

Very nice

*installed*

P.S - for anyone were red text would look bad just replace with a differnt color like "Blue"

http://img137.imageshack.us/img137/6111/untitledqa6.jpg

odie3 03-26-2007 04:23 AM

Cool - Thanks for the simple MOD.

Question: How do I get the underline to go way? Seem vB loves to underline stuff. :(

BadgerDog 03-27-2007 08:06 PM

Very nice.... thank you .. :)

Is there a way to make it blink?

Regards,
Badger

Ben Wilkins 05-10-2007 03:29 PM

Yes. Change it to this if you want a blink

PHP Code:

<center>

<
a href="http://www.yourdomain.com/private.php" target="_blank"><font size="4" color="red" style="bold">
<if 
condition="$bbuserinfo['pmunread']"><blink>You have a private messagewaiting to be read.</blink></if></font></a>

</
center


BadgerDog 05-11-2007 09:41 AM

Quote:

Originally Posted by Ben Wilkins (Post 1245018)
Yes. Change it to this if you want a blink

PHP Code:

<center>

<
a href="http://www.yourdomain.com/private.php" target="_blank"><font size="4" color="red" style="bold">
<if 
condition="$bbuserinfo['pmunread']"><blink>You have a private messagewaiting to be read.</blink></if></font></a>

</
center



Thanks Ben.... :)

I tried that, but it didn't seem to make IE6 blink. I remember someone saying somplace, that browsers no longer recognized that command as it was found to be extrememely annoying?

Regards,
Badger

Ben Wilkins 05-11-2007 04:42 PM

Yes, it works in Firefox, and from what I've heard opera. It was found by Microsoft that it was putting the browsing users off, because it was like an advertisement keep on blinking.

I can figure out a way to make it attractive later tonight. Have any simple template change requests, then please PM me while i have time on my hands

BadgerDog 05-11-2007 04:49 PM

Quote:

Originally Posted by Ben Wilkins (Post 1245702)
Yes, it works in Firefox, and from what I've heard opera. It was found by Microsoft that it was putting the browsing users off, because it was like an advertisement keep on blinking.

I can figure out a way to make it attractive later tonight. Have any simple template change requests, then please PM me while i have time on my hands

I thought it was great the way you've done it Ben....

I can imagine that the blink would be annoying, but for something like being notifed that one has private messages, I would have thought most users wouldn't mind it, but I culd be wrong.... :)

Regards,
Badger

Smiry Kin's 05-15-2007 10:49 PM

how u get the the pm alert thats below the arrow there?

SuperTaz 06-11-2007 01:01 AM

How about this:

Quote:

<center>
<font size="5" color="red" style="bold">
<if condition="$bbuserinfo['pmunread']">You have a new private message!</if></font>
</center>
Would that work better?

Quote:

Originally Posted by BadgerDog (Post 1245482)
Thanks Ben.... :)

I tried that, but it didn't seem to make IE6 blink. I remember someone saying somplace, that browsers no longer recognized that command as it was found to be extrememely annoying?

Regards,
Badger

It works with IE7. I have it working on my site

RMS-Chef 06-11-2007 08:33 PM

Quote:

Originally Posted by Baudman (Post 1055553)
I hope you don't mid but I changed the code a bit so you can click it now when you see it. It will take you to your pm box.

Code:

<center>
<a href="http://www.yourdomain.com/private.php" target="_blank"><font size="4" color="red" style="bold">
<if condition="$bbuserinfo['pmunread']">You have a private message, waiting to be read.</if></font></a>
</center>

Change www.yourdomain.com to your sites address

Thanks this hack is great. :)

I should also add that you have to add /forums/ or what ever extention you have your forums in. Some people have http://www.yourdomain.com/forums/private.php for an example. if your site isn't set to direct to your forums like I have above (http://www.yourdomain.com/private.php) then change the path like this last example I gave. most people can change the green section to what ever they have.

I hope I have not confused to many poeple cause I don't normally add to things so I have no Idea how to get my point accross. lol

Or just use
Code:

$vboptions[bburl]/private.php

wolf32 06-11-2007 09:28 PM

flawless *clicks installed*

rjmjr69 06-12-2007 01:15 AM

I use this code it gets blinking blue centered.



PHP Code:

<center>

<
a href="http://www.yourforumaddress.com/forums/private.php" target="_blank"><font size="5" color="#0066cc" style="bold">
<if 
condition="$bbuserinfo['pmunread']"><blink>You have a NEW private MESSAGEPlease click here to read</blink></if></font></a>

</
center

Notice in the url field that its followed by /forums Thats how many people have forums setup on servers if your getting a 404 page error when clicking the link try using this code................

Awesome mod couldnt be any easier to install thanks


All times are GMT. The time now is 10:01 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01431 seconds
  • Memory Usage 1,834KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (4)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete