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.


All times are GMT. The time now is 11:47 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.01160 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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