vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   vBulletin Project Tools - 0 messages with members in the form of popup alert (https://vborg.vbsupport.ru/showthread.php?t=218646)

bellaa 07-14-2009 10:00 PM

0 messages with members in the form of popup alert
 
1 Attachment(s)
code is put to the top footer

PHP Code:

<if condition="$bbuserinfo[posts] == 0"> <!--bellaa-->  
<
style type="text/css">  
#topbar{  
position:absolute;  
border1px solid black;  
padding5px;  
background-colorwhite;  
width640px;  
visibilityhidden;  
z-index400;  
}  
</
style>  
<
script type="text/javascript">  
var 
persistclose=//set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session  
var startX 30 //set x offset of bar in pixels  
var startY //set y offset of bar in pixels  
var verticalpos="fromtop" //enter "fromtop" or "frombottom"  
function iecompattest(){  
return (
document.compatMode && document.compatMode!="BackCompat")? document.documentElement document.body  
}  
function 
get_cookie(Name) {  
var 
search Name "="  
var returnvalue "";  
if (
document.cookie.length 0) {  
offset document.cookie.indexOf(search)  
if (
offset != -1) {  
offset += search.length  
end 
document.cookie.indexOf(";"offset);  
if (
end == -1end document.cookie.length;  
returnvalue=unescape(document.cookie.substring(offsetend))  
}  
}  
return 
returnvalue;  
}  
function 
closebar(){  
if (
persistclose)  
document.cookie="remainclosed=1"  
document.getElementById("topbar").style.visibility="hidden"  
}  
function 
staticbar(){  
barheight=document.getElementById("topbar").offsetHeight  
var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;  
var 
document;  
function 
ml(id){  
var 
el=d.getElementById(id);  
if (!
persistclose || persistclose && get_cookie("remainclosed")=="")  
el.style.visibility="visible"  
if(d.layers)el.style=el;  
el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};  
el.startX;  
if (
verticalpos=="fromtop")  
el.startY;  
else{  
el.ns pageYOffset innerHeight iecompattest().scrollTop iecompattest().clientHeight;  
el.-= startY;  
}  
return 
el;  
}  
window.stayTopLeft=function(){  
if (
verticalpos=="fromtop"){  
var 
pY ns pageYOffset iecompattest().scrollTop;  
ftlObj.+= (pY startY ftlObj.y)/8;  
}  
else{  
var 
pY ns pageYOffset innerHeight barheightiecompattest().scrollTop iecompattest().clientHeight barheight;  
ftlObj.+= (pY startY ftlObj.y)/8;  
}  
ftlObj.sP(ftlObj.xftlObj.y);  
setTimeout("stayTopLeft()"10);  
}  
ftlObj ml("topbar");  
stayTopLeft();  
}  
if (
window.addEventListener)  
window.addEventListener("load"staticbarfalse)  
else if (
window.attachEvent)  
window.attachEvent("onload"staticbar)  
else if (
document.getElementById)  
window.onload=staticbar  
</script>  


<
div id="topbar">  
<
a href="" onClick="closebar(); return false"></a>  
Forum Zero Message Please enter message
</div>  

</if><else /> 


iyihost 07-15-2009 02:49 PM

l installed ;)

its very good. And are you can add caps?

bellaa 07-15-2009 03:04 PM

Quote:

Originally Posted by iyihost (Post 1849247)
l installed ;)

its very good. And are you can add caps?

Sorry I put in an attachment


All times are GMT. The time now is 11:57 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.01706 seconds
  • Memory Usage 1,760KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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