Witam.
Mam nowo zarejestrowaną domenę i dostałem 2 kody do wklejenia statystyk:
1 na stronę glówną
1 na pozostałe strony
Z tego co się orientuje to należy je wkleić w header ( główna strona) i footer ( pozostałe).
footer:
Kod:
$ad_location[ad_footer_start]
<br />
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
<br />
$spacer_close
<!-- /content area table -->
<form action="$vboptions[forumhome].php" method="get">
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<tr>
<if condition="$show['quickchooser']">
<td class="tfoot">
<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits
</optgroup>
</select>
</td>
</if>
<if condition="$show['languagechooser']">
<td class="tfoot">
<select name="langid" onchange="switch_id(this, 'lang')">
<optgroup label="$vbphrase[quick_language_chooser]">
$languagechooserbits
</optgroup>
</select>
</td>
</if>
<br />
<div class="smallfont" align="center">
"BlaK-Ice" skin created by Mr.EEE @ <a href="http://simplegfx.net">Simple Grafix</a>
<div align="center">
<div class="smallfont" align="center">
<!-- Do not remove this copyright notice -->
$vbphrase[powered_by_vbulletin]
<!-- Do not remove this copyright notice -->
</div>
<div class="smallfont" align="center">
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
$cronimage
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
$vboptions[copyrighttext]
</div>
</div>
</form>
<table align="center" width="100%" cellspacing="0" cellpadding="0" style="background: url($stylevar[imgdir_misc]/footer_fill.gif);">
<tr>
<td align="left">
<table cellpadding="0" cellspacing="0" border="0" align="left">
<tr>
<td align="left"><img src="$stylevar[imgdir_misc]/footer_left.gif" /></td>
<td align="left"><a href="#top"><img src="$stylevar[imgdir_misc]/footer_top.gif" border="0" /></td>
<tr>
</table>
</td>
<td align="center" width="690" style="background: url($stylevar[imgdir_misc]/footer_main.gif);">
<div class="footlinks">
<strong>
<if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow" accesskey="9">$vbphrase[contact_us]</a> -</if>
<if condition="$vboptions['hometitle']"><a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -</if>
<if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
<if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
<if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
</strong>
</div>
</td>
<td align="right">
<table cellpadding="0" cellspacing="0" border="0" align="right">
<tr>
<td align="right" width="41" height="54"><img src="$stylevar[imgdir_misc]/footer_fill.gif" width="41" height="54"/></td>
<td align="right"><img src="$stylevar[imgdir_misc]/footer_right.gif"/></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
$ad_location[ad_footer_end]
<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php?do=dst" method="post" name="dstform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{ // Dst offset is 1 so its changed
document.forms.dstform.submit();
}
//-->
</script>
<!-- / auto DST correction code -->
</if>
<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>
header:
Kod:
<!-- początek okienka dla gości -->
<style type="text/css">
#fadeinbox{
position:absolute;
width: 62%;
left: 5px;
top: -100px;
padding: 4px;
visibility:hidden;
}
</style>
<if condition="$show['guest']">
<script type="text/javascript">
//Specify display mode. 3 possible values are:
//1) "always"- This makes the fade-in box load each time the page is displayed
//2) "oncepersession"- This uses cookies to display the fade-in box only once per browser session
//3) integer (ie: 5)- Finally, you can specify an integer to display the box randomly via a frequency of 1/integer...
// For example, 2 would display the box about (1/2) 50% of the time the page loads.
var displaymode="always"
var enablefade="yes" //("yes" to enable fade in effect, "no" to disable)
var autohidebox=["yes", 60] //Automatically hide box after x seconds? [yes/no, if_yes_hide_after_seconds]
var showonscroll="yes" //Should box remain visible even when user scrolls page? ("yes"/"no)
var IEfadelength=1 //fade in duration for IE, in seconds
var Mozfadedegree=0.05 //fade in degree for NS6+ (number between 0 and 1. Recommended max: 0.2)
////////Fragment nie potrzebuje edycji///////////
if (parseInt(displaymode)!=NaN)
var random_num=Math.floor(Math.random()*displaymode)
function displayfadeinbox(){
var ie=document.all && !window.opera
var dom=document.getElementById
iebody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
objref=(dom)? document.getElementById("fadeinbox") : document.all.fadeinbox
var scroll_top=(ie)? iebody.scrollTop : window.pageYOffset
var docwidth=(ie)? iebody.clientWidth : window.innerWidth
docheight=(ie)? iebody.clientHeight: window.innerHeight
var objwidth=objref.offsetWidth
objheight=objref.offsetHeight
objref.style.left=docwidth/2-objwidth/2+"px"
objref.style.top=scroll_top+docheight/2-objheight/2+"px"
if (showonscroll=="yes")
showonscrollvar=setInterval("staticfadebox()", 50)
if (enablefade=="yes" && objref.filters){
objref.filters[0].duration=IEfadelength
objref.filters[0].Apply()
objref.filters[0].Play()
}
objref.style.visibility="visible"
if (objref.style.MozOpacity){
if (enablefade=="yes")
mozfadevar=setInterval("mozfadefx()", 90)
else{
objref.style.MozOpacity=1
controlledhidebox()
}
}
else
controlledhidebox()
}
function mozfadefx(){
if (parseFloat(objref.style.MozOpacity)<1)
objref.style.MozOpacity=parseFloat(objref.style.MozOpacity)+Mozfadedegree
else{
clearInterval(mozfadevar)
controlledhidebox()
}
}
function staticfadebox(){
var ie=document.all && !window.opera
var scroll_top=(ie)? iebody.scrollTop : window.pageYOffset
objref.style.top=scroll_top+docheight/2-objheight/2+"px"
}
function hidefadebox(){
objref.style.visibility="hidden"
if (typeof showonscrollvar!="undefined")
clearInterval(showonscrollvar)
}
function controlledhidebox(){
if (autohidebox[0]=="yes"){
var delayvar=(enablefade=="yes" && objref.filters)? (autohidebox[1]+objref.filters[0].duration)*1000 : autohidebox[1]*1000
setTimeout("hidefadebox()", delayvar)
}
}
function initfunction(){
setTimeout("displayfadeinbox()", 1)
}
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 == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
if (displaymode=="oncepersession" && get_cookie("fadedin")=="" || displaymode=="always" || parseInt(displaymode)!=NaN && random_num==0){
if (window.addEventListener)
window.addEventListener("load", initfunction, false)
else if (window.attachEvent)
window.attachEvent("onload", initfunction)
else if (document.getElementById)
window.onload=initfunction
document.cookie="fadedin=yes"
}
</script>
<thread>
<!-- wiadomość dla gości -->
<DIV id="fadeinbox" style="filter:progid:DXImageTransform.Microsoft.RandomDissolve(duration=1) progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135) ; -moz-opacity:0">
<table class="tborder" align="center" border="0" cellpadding="6" cellspacing="0" width="600">
<tbody><tr>
<td class="tcat" align="center">
Witamy na Forum
</td>
</tr>
</tbody><tbody id="collapseobj_forumhome_welcomepanel" style="">
<center>
<tr>
<td class="alt1" align="center" width="101%"><B>
Witaj! <a href="/register.php"><strong>Zarejestruj się</strong></a> a zyskasz całkowity dostęp do wszystkich linków, ukrytych działów i wielu unikalnych opcji!!! To wszystko zyskasz dzięki darmowej i szybkiej <a href="/register.php"><strong>rejestracji</strong></a></B>
<br><br><b><a href="/register.php"><FONT COLOR=RED SIZE=3>KLIKNIJ TUTAJ ABY SIĘ ZAREJESTROWAĆ!!!!</b></FONT></a>
<br><br><a href="#" onClick="hidefadebox();return false">Kliknij tutaj aby zamknąć okienko przy rejestracji lub logowaniu!</a>
<br>
</td>
</tr>
</tbody>
</center>
</table><br>
<align="center" valign="middle">
</DIV>
<!-- / wiadomość dla gości -->
</if>
</thread>
<!-- koniec okienka dla gości -->
<!-- logo -->
<a name="top"></a>
<table width="100%" height="6" cellspacing="0" cellpadding="0" border="0" align="center">
<tr height="6">
<td width="$stylevar[outertablewidth]" align="center" height="6" style="background: url(blak-ice/misc/header_over.gif);"></td>
</tr>
</table>
<br />
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="left" valign="top"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]/header_left.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="center" width="100%" height="121" valign="top"><a href="$vboptions[forumhome].php$session[sessionurl_q]">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="background: url($stylevar[titleimage]/header_fill.gif) repeat-x top left;" valign="top">
<tr>
<td align="center" border="0" valign="top">
<img src="$stylevar[titleimage]/header_main.gif" border="0"/>
</td>
</tr>
</table>
</a></td>
<td align="right" valign="top"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]/header_right.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
</table>
<!-- Navbar -->
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" style="background: url($stylevar[imgdir_misc]/nav_fill.gif);">
<tr>
<td align="left"><img src="$stylevar[imgdir_misc]/nav_left.gif" border="0"/></td>
<if condition="$show['member']">
<td align="center">
<table border="0" cellpadding="0" cellspacing="0" align="center">
<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img src="$stylevar[imgdir_misc]/nav_home.gif" border="0"/></a></td>
<td align="center"><a id="community" href="$show[nojs_link]#community" rel="nofollow" accesskey="3"><img src="$stylevar[imgdir_misc]/nav_community.gif" border="0"/></a><script type="text/javascript"> vbmenu_register("community",1); </script></td>
<td align="center"><a href="usercp.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/nav_cp.gif" border="0"/></a></td>
<td align="center"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/nav_calendar.gif" border="0"/></a></td>
<td align="center" id="navbar_search"><a href="search.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/nav_search.gif" border="0" /></a><script type="text/javascript"> vbmenu_register("navbar_search" ,1); </script></td>
<td align="center" id="usercptools"><a href="$show[nojs_link]#usercptools"><img src="$stylevar[imgdir_misc]/nav_links.gif" border="0"/></a><script type="text/javascript"> vbmenu_register("usercptools", 1); </script></td>
<td align="center"><a href="faq.php$session[sessionurl_q]" accesskey="5"><img src="$stylevar[imgdir_misc]/nav_faq.gif" border="0"/></a></td>
<td align="center"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">
<img src="$stylevar[imgdir_misc]/nav_logout.gif" border="0"/></a></td>
</table>
</td>
</if>
<if condition="$show['guest']">
<td align="center">
<table border="0" cellpadding="0" cellspacing="0" align="center">
<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img src="$stylevar[imgdir_misc]/nav_home.gif" border="0"/></a></td>
<td align="center"><a href="memberlist.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/nav_members.gif" border="0"/></a></td>
<td align="center"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/nav_calendar.gif" border="0"/></a></td>
<td align="center" id="navbar_search"><a href="search.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/nav_search.gif" border="0" /></a><script type="text/javascript"> vbmenu_register("navbar_search" ,1); </script></td>
<td align="center"><a href="faq.php$session[sessionurl_q]" accesskey="5"><img src="$stylevar[imgdir_misc]/nav_faq.gif" border="0"/></a></td>
<td align="center"><a href="register.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/nav_register.gif" border="0"/></a></td>
</table>
</td>
</if>
<td align="right"><img src="$stylevar[imgdir_misc]/nav_right.gif" border="0"/></td>
</tr>
</table>
<!--</table>-->
$spacer_open
$_phpinclude_output
$ad_location[ad_header_end]
a takie coś mam wkleić:
Kod:
----- Strona glowna
<!-- (C) stat24 / Strona glowna -->
<script type="text/javascript">
<!--
document.writeln('<'+'scr'+'ipt type="text/javascript" src="http://s4.hit.stat24.com/_'+(new Date()).getTime()+'/script.js?id=d6Xr2wbibALAXTNruRJB8MdRXhxwfSNgoyYh8rE5hf..27/l=11"></'+'scr'+'ipt>');
//-->
</script>
----- podstrony
<!-- (C) stat24 / podstrony -->
<script type="text/javascript">
<!--
document.writeln('<'+'scr'+'ipt type="text/javascript" src="http://s4.hit.stat24.com/_'+(new Date()).getTime()+'/script.js?id=zZpF.2_bIQ5lPJQKftCK38ex7O9wPXhNoyYF8TGsQUz.R7/l=11"></'+'scr'+'ipt>');
//-->
</script>
Proszę o przysłanie tych szablonów już z kodem do statystyk:
kod z ikonką ma się znajdować na środku pod napisem Tłumaczenie: vBHELP.pl - Polski Support vBulletin
Przy okazji:
jak zmienić żeby po naciśnięciu CODE znacznik pisania był pośrodku?? bo u mnie jest na końcu ;/