vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   PM notification (https://vborg.vbsupport.ru/showthread.php?t=166947)

Rat1972 01-04-2008 06:41 PM

PM notification
 
I have searched the forums for hours, but i couldn't find it. I am searching for a mod/hack for new pm messages. I mean that the box (welcome box with the info when you last visited the forum and how many pm's you have) is going to flash/blink when there is a new message. I have found a hack that show a envelope, but i want that the whole box is flashing.

Anyone knows of there is such a hack on this forum?

dismas 01-04-2008 08:50 PM

The whole box or just the line that says "Private Messages: Unread X, Total XX."? In order to have just that line blink, you don't need a hack. Just edit the template and put in some HTML to make the text blink.

Rat1972 01-04-2008 09:13 PM

And how do you do that? Any suggestions?

thanks in advance

dismas 01-04-2008 09:23 PM

The template that you want to edit is the navbar template. The line you're looking for is

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>
And replace it with:
Code:

<if condition="$show['pmstats']"><br /><blink><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></blink></if>
Although, that won't work in IE since it's not supported. Most people don't like blinking text and it makes the page harder to read for those with vision difficulties, so it's largely unused. If you still want it to blink, you could write up some javascript for it. Here is a link to w3schools.com for that.

Rat1972 01-05-2008 12:30 PM

Oke thanks mate


All times are GMT. The time now is 11:42 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.01056 seconds
  • Memory Usage 1,718KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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