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)
-   -   Miscellaneous Hacks - Really simple but nice notifications for Unactivated Users and PM (https://vborg.vbsupport.ru/showthread.php?t=173770)

veenuisthebest 03-21-2008 10:00 PM

Really simple but nice notifications for Unactivated Users and PM
 
*****************veenuisthebest**************
****************Visit Tech6.com**************

Really simple but nice notifications for Unactivated Users and PM

Difficulty: Very Easy


Q. What does it do ??

A. Adds a nice simple text alert to unactivated members and notification for Private Message.

Q. Do I need this ??

A. Why install any plugins/hacks for prompting members to Activate their a/c or notifying them of a Private Message, when its soooo simple and can be done in not even a minute with just some minor template edits..!!

Template Edit: 2
1 for header template
1 for navbar template

Begins here:-

Open HEADER template and add this to the end (For alert to unactivated members):-

Code:

<center>
<if condition="is_member_of($vbulletin->userinfo, 3)"><strong>You must activate your a/c to access restricted features of Yoursite.com, <a href="register.php?do=requestemail" target="_top" style="color: red;">click here</a> to resend Activation Mail. If you suspect your email address is set wrong, you may edit it <a href="profile.php?do=editpassword" target="_top" style="color: red;">here</a>.</strong></if>
</center>

Note:- Replace Yoursite.com with your actual site's name


Open NAVBAR template (For PM notification)

Find:-

Code:

<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
Add After:-

Code:

<if condition="$bbuserinfo['pmunread']"><br /><strong><a href="private.php" target="_top" style="color: red;">You have New Private Message(s)</a></strong></if>
DONE !!!


Hope you like this one, very simple but really useful..

Please click INSTALL if you like it !!

SCREENS:-

http://img187.imageshack.us/img187/4...edalertgl4.jpg
http://img156.imageshack.us/img156/6415/pmalerthb2.jpg

************************************************** *************************
************************************************** *************************

Forum Lover 03-22-2008 02:21 PM

Well this is smart. Marked as installed.

veenuisthebest 03-22-2008 02:33 PM

thank you..

barroca 03-26-2008 03:00 PM

tks for this
* install too.

killerkraft 03-26-2008 03:12 PM

Very simple.

It works like a charm.

KK

veenuisthebest 03-29-2008 05:14 PM

thanks killercraft !!

steve1966 03-30-2008 08:58 PM

very nice thank you

veenuisthebest 03-31-2008 12:12 AM

glad you liked it steve ..!!


All times are GMT. The time now is 06:41 AM.

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.01648 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete