Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 12-18-2004, 09:17 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default I made a cleaner blinking PM notifier

I just finished a small template mod that I think makes a very clean addition
to the PM notification system.

I liked the other blinking notifiers out there, the bar and the table blinker
but they were to a little to bold or intrusive on my light layout so as an
alternative I created a smaller text based blinker which seems to ask for
attention without compromising my layout.

I attached a copy if anyone is interested in the code changes I would be
more than happy to share.
Attached Images
File Type: gif FlashingPM_2.gif (1.1 KB, 0 views)
Reply With Quote
  #2  
Old 12-24-2004, 04:30 AM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looks good nice work.
Reply With Quote
  #3  
Old 12-24-2004, 10:32 AM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JohnBee
I just finished a small mod that I think makes a very clean addition
to the PM notification system.

I liked the other blinking notifiers out there, the bar and the table blinker
but they were to a little to bold or intrusive on my light layout so as an
alternative I created a smaller text based blinker which seems to ask for
attention without compromising my layout.

I attached a copy if anyone is interested in the code changes I would be
more than happy to share.
just share... ask questions latter. lol
Reply With Quote
  #4  
Old 12-24-2004, 01:34 PM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice job!
I like this one more then the one used here on vBulletin.org
Reply With Quote
  #5  
Old 12-24-2004, 02:24 PM
miz miz is offline
 
Join Date: Mar 2003
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looks great if you will share will be appricated
Reply With Quote
  #6  
Old 12-24-2004, 05:46 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay but I can't release a full release typa thing cause i'm way to lame of a coder
for that. So I'll paste my code changes here instead.
Reply With Quote
  #7  
Old 12-24-2004, 05:54 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not 100% there is anything else to note for this template mod
so if anyone tries and it doesnt work, I guess I can install on a
fresh vBB to test it and post correction. Otherwise I think this is it.

Code:
//Placed in NAVBAR header section //

<script language="JavaScript">

var on_color = "#FF0000";
var off_color = "#FFFFFF";
var blink_onoff = 1;
var blinkspeed= 500;
function blink()
{
	if( blink_onoff == 1) {
           document.all.blink.style.color = on_color;
	   blink_onoff = 0;
	}
	else {
	   document.all.blink.style.color = off_color;
	   blink_onoff = 1;
	}
}
</script>



// Replaced my original NAVBAR pmunread template section with //

<if condition="$bbuserinfo['pmunread']">
				<phrase 1="<font id=blink>$vbphrase[unread_x_nav_compiled]</font>" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase>
		
		<script>
document.all.blink.style.color = off_color;
setInterval("blink()",blinkspeed);
		</script><br>
            <else />

				<phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase><br></if>


// all done //
Reply With Quote
  #8  
Old 12-24-2004, 10:35 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What version you have? NAVBAR pmunread? Where is that?
Reply With Quote
  #9  
Old 12-25-2004, 12:00 AM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry vB 3.0.3

Code:
// in your NAVBAR template find //

<if condition="$bbuserinfo['userid']">
	
		<td class="alt2" valign="top" nowrap="nowrap">


// Right under that add //


<if condition="$bbuserinfo['pmunread']">
				<phrase 1="<font id=blink>$vbphrase[unread_x_nav_compiled]</font>" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase>
		
		<script>
document.all.blink.style.color = off_color;
setInterval("blink()",blinkspeed);
		</script><br>
            <else />

				<phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase><br></if>

// all done //
That Should be it
Reply With Quote
  #10  
Old 12-25-2004, 02:27 AM
h75's Avatar
h75 h75 is offline
 
Join Date: Sep 2004
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it XHMTL 1.0 ??
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:35 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04312 seconds
  • Memory Usage 2,270KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete