View Single Post
  #257  
Old 11-05-2008, 09:04 PM
maidos maidos is offline
 
Join Date: Jul 2006
Posts: 925
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks but exactly where do i add it, i added on style manager, forum skin, main css but it doesnt work
please be a little more specific
have this
PHP Code:

<if condition="THIS_SCRIPT==view">
.
rtop,.rbottom{display:block}
.
rtop *,.rbottom *{display:block;height1px;overflowhidden}
.
r1{margin0 5px}
.
r2{margin0 3px}
.
r3{margin0 2px}
.
r4{margin0 1px;height2px}

.
rs1{margin0 2px}
.
rs2{margin0 1px}
</if> 

i dont want to use image to get the corners so i chose js instead but where will i add this js file?

PHP Code:
function NiftyCheck()
{
if(!
document.getElementById || !document.createElement)
    return(
false);
var 
b=navigator.userAgent.toLowerCase();
if(
b.indexOf("msie 5")>&& b.indexOf("opera")==-1)
    return(
false);
return(
true);
}

function 
Rounded(selector,bk,color,size){
var 
i;
var 
v=getElementsBySelector(selector);
var 
l=v.length;
for(
i=0;i<l;i++){
    
AddTop(v[i],bk,color,size);
    
AddBottom(v[i],bk,color,size);
    }
}

function 
RoundedTop(selector,bk,color,size){
var 
i;
var 
v=getElementsBySelector(selector);
for(
i=0;i<v.length;i++)
    
AddTop(v[i],bk,color,size);
}

function 
RoundedBottom(selector,bk,color,size){
var 
i;
var 
v=getElementsBySelector(selector);
for(
i=0;i<v.length;i++)
    
AddBottom(v[i],bk,color,size);
}

function 
AddTop(el,bk,color,size){
var 
i;
var 
d=document.createElement("b");
var 
cn="r";
var 
lim=4;
if(
size && size=="small"){ cn="rs"lim=2}
d.className="rtop";
d.style.backgroundColor=bk;
for(
i=1;i<=lim;i++){
    var 
x=document.createElement("b");
    
x.className=cn i;
    
x.style.backgroundColor=color;
    
d.appendChild(x);
    }
el.insertBefore(d,el.firstChild);
}

function 
AddBottom(el,bk,color,size){
var 
i;
var 
d=document.createElement("b");
var 
cn="r";
var 
lim=4;
if(
size && size=="small"){ cn="rs"lim=2}
d.className="rbottom";
d.style.backgroundColor=bk;
for(
i=lim;i>0;i--){
    var 
x=document.createElement("b");
    
x.className=cn i;
    
x.style.backgroundColor=color;
    
d.appendChild(x);
    }
el.appendChild(d,el.firstChild);
}

function 
getElementsBySelector(selector){
var 
i;
var 
s=[];
var 
selid="";
var 
selclass="";
var 
tag=selector;
var 
objlist=[];
if(
selector.indexOf(" ")>0){  //descendant selector like "tag#id tag"
    
s=selector.split(" ");
    var 
fs=s[0].split("#");
    if(
fs.length==1) return(objlist);
    return(
document.getElementById(fs[1]).getElementsByTagName(s[1]));
    }
if(
selector.indexOf("#")>0){ //id selector like "tag#id"
    
s=selector.split("#");
    
tag=s[0];
    
selid=s[1];
    }
if(
selid!=""){
    
objlist.push(document.getElementById(selid));
    return(
objlist);
    }
if(
selector.indexOf(".")>0){  //class selector like "tag.class"
    
s=selector.split(".");
    
tag=s[0];
    
selclass=s[1];
    }
var 
v=document.getElementsByTagName(tag);  // tag selector like "tag"
if(selclass=="")
    return(
v);
for(
i=0;i<v.length;i++){
    if(
v[i].className==selclass){
        
objlist.push(v[i]);
        }
    }
return(
objlist);

Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01223 seconds
  • Memory Usage 1,854KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete