Post by starryknight on May 26, 2013 11:55:16 GMT -8
Hello, everyone~ I've been working on a v4 skin, but I've been having trouble with Subdevo's User Information/Avatar Anywhere code. It doesn't appear on the main page under the "Login" cell in the sidebar, but it seems to work everywhere else. Any help would be greatly appreciated.
Forum: tsukihime.proboards.com/index.cgi
* This is a test forum; the skin will be transferred later
Global Header:
Global Footer:
Main Footer:
Forum: tsukihime.proboards.com/index.cgi
* This is a test forum; the skin will be transferred later
Global Header:
<link href='http://fonts.googleapis.com/css?family=Press+Start+2P' rel='stylesheet' type='text/css'>
<script type="text/javascript"><!--
document.getElementsByTagName("table")[0].style.display = "none";
for(var node = document.body.firstChild; node.nextSibling; node = node.nextSibling){
if(node.nodeName.toLowerCase() == "br")
node.style.display = "none";
else if(node.id && node.id == "pagedropmenu")
break;
}
//--></script>
<style type="text/css">
<!--
.catbg{text-align: right;}
.cattext {font-size: 17pt; font-family:courier new;}
-->
</style>
<style>
a:hover {
-webkit-transition: all 0.5s ease-out;
-moz-transition: all 0.5s ease-out;
-o-transition: all 0.5s ease-out;
transition: all 0.5s ease-out;
color: #e581dd;
text-decoration: none !important;
}
.navig1 a {
background: #eeeeee;
color: #111111;
display:block;
border-left: 4px solid #6ea0be;
border-right: 1px solid #eeeeee;
border-top: 1px solid #eeeeee;
border-bottom: 1px solid #eeeeee;
font-size: 11px;
font-family: arial;
padding-left: 10px;
font-weight: bold;
text-align:left;
margin-right:7px;
margin-left:7px;
}
.navig1 a:hover {
background: #dddddd;
color: #e581dd;
border-left: 4px solid #dddddd;
border-right: 1px solid #dddddd;
border-top: 1px solid #dddddd;
border-bottom: 1px solid #dddddd;
font-size: 11px;
font-family: arial;
font-weight: bold;
padding-left: 15px;
text-decoration: none;
margin-right:7px;
margin-left:7px;
}
</style>
<script type="text/javascript">
<!--
/* fix text menus by ross */
var startChar = ''; //Start character
var dividerChar = ''; //Dividing Character(s);
var endChar = ''; //End character
//no need to edit below
var menu = document.getElementsByTagName('td').item(5).firstChild;
var a = menu.innerHTML.replace(/^\n?(<.+?>)\[/, startChar+' $1');
var b = a.replace(new RegExp('\\](<\/a>)(\\n|\\s|&nb'+'sp;)*$', 'i'), '$1 '+endChar);
var c = b.replace(new RegExp('\\](<\/a>)(&nb'+'sp;|\\s)(<a.+?>)\\[', 'gi'),'$1 '+dividerChar+' $3');
menu.innerHTML = c;
//-->
</script>
<div style="position: fixed; left: 0px; top: 0px; width: 100%; z-index: 5;height: 20px; background-color:#eeeeee; padding:3px;"><center><div id="menu_div"></div></center>
</div>
<script type="text/javascript"><!--
/* Move Menu Bar Anywhere by iPokemon
Feel free to edit and repost
Just keep this header intact!
*/
var menu_div = document.getElementById('menu_div');
var menu_html = document.getElementsByTagName('font').item(3);
var menuClone = menu_html.cloneNode(true);
menu_div.innerHTML=menuClone.innerHTML;
document.getElementsByTagName('tr')[2].style.display="none";
//--></script>
<!-- border around forum by california -->
<center style="width: 900px; margin: auto;">
<img src="http://i1269./jj599/Izakaar/Graphics/mikurender2_zps3be9b165.png" /><br />
<!-- this is optional -->
<script type="text/javascript">
<!--
/* welcome table below ads */
document.write('<div id="welcome"></div>');
var welcome = document.getElementById("welcome");
var iTable = document.getElementsByTagName("table");
iTable[0].width = "100%";
welcome.parentNode.replaceChild(iTable[0], welcome);
// -->
</script>
<!-- end optional code -->
<div style="width: 100%; background: #eeeeee url(http://www.colorhexa.com/eeeeee.png) repeat-y top center;">
<style type="text/css">
#menu_div a {
font-family: courier new;
text-transform: uppercase;
font-weight: 100;
font-size: 12px;
text-decoration: none!important;
background-color: #dddddd!important;
color: #6ea0be!important;
padding: 6px; margin-top: 5px;
}
#menu_div a:hover {
text-decoration: none;
color: #e581dd!important; background-color: #eeeeee!important;
}
</style>
<!-- =====
START Smangii's {LEFT} Side Tables *REVISED*
Global Header
===== -->
<style type="text/css">
#sidetables { width: 200px; margin-bottom: 20px; margin-right: 20px; }
</style>
<table width="95%" align="center" cellpadding="0px" cellspacing="0px">
<tr>
<td vAlign="top">
<!-- ===== BOX #1 START ===== -->
<br><br>
<table id="sidetables" cellpadding="4px" class="bordercolor" cellspacing="1">
<tr><font size="7" face="courier new" color="bbbbbb">LOGIN</font><br>
<td align="center" class="titlebg">
</td></tr>
<tr><td class="windowbg"><center>
<center><div><font face="courier new" size="5px"><span id="my_name"></font></div>
<div><span id="my_avatar"></div>
<div class="usertext"><span id="my_PMs"> </span></div>
<form action="/index.cgi" method="post" name="loginform" onSubmit="disable(this)" target="_top">
<font size="1">
<input type="hidden" value="/index.cgi" name="redirect">
<input type="hidden" name="action" value="login2">
<center><input type="text" name="username" value="user" size="5" tabindex="1" maxlength="18" ><input type="password" name="password" value="pass" size="5" tabindex="2"><input type="submit" value="go" tabindex="4"></center></form></center>
<br>
<div class="navig1 a"><a href="http://vocaloidrp.freeforums.net/index.cgi?board=rules&action=display&thread=4">Rules</a></div>
<div class="navig1 a"><a href="http://vocaloidrp.freeforums.net/index.cgi?action=display&board=rules&thread=3344">Main Plot</a></div>
<div class="navig1 a"><a href="http://vocaloidrp.freeforums.net/index.cgi?board=charactersubmission&action=display&thread=3024">Member Listing</a></div>
<div class="navig1 a"><a href="http://vocaloidrp.freeforums.net/index.cgi?action=display&board=charactersubmission&thread=2358&page=1">Available Characters </a></div>
<div class="navig1 a"><a href="http://vocaloidrp.freeforums.net/index.cgi?board=charactersubmission&action=display&thread=2366">Application Template</a></div>
<div class="navig1 a"><a href="http://vocaloidrp.freeforums.net/index.cgi?board=advertisingandaffiliating">Advertisements & Affiliation</a></div>
</div>
</div>
</td></tr></table>
<!-- ===== BOX #1 START ===== -->
<br><br>
<table id="sidetables" cellpadding="4px" class="bordercolor" cellspacing="1">
<tr><font size="7" face="courier new" color="bbbbbb">STAFF</font><br>
<td align="center" class="titlebg">
</td></tr>
<tr><td class="windowbg"><center>
<a href="http://vocaloidrp.freeforums.net/index.cgi?action=viewprofile&user=admin"><img height="78" width="78" src="http://www.cosplayisland.co.uk/files/costumes/1448/74230/icon/gakupo10.png" onmouseover="this.src='http://i1269./jj599/Izakaar/Graphics/staffsatotext_zps48ec116c.png'" onmouseout="this.src='http://www.cosplayisland.co.uk/files/costumes/1448/74230/icon/gakupo10.png'" border="1" alt="sato"></a> <a href="http://vocaloidrp.freeforums.net/index.cgi?action=viewprofile&user=teikingsukone"><img height="78" width="78" src="http://profile.ak.fbcdn.net/hprofile-ak-frc1/c14.14.173.173/s160x160/264958_546597775366497_849358899_n.jpg" onmouseover="this.src='http://i1269./jj599/Izakaar/Graphics/staffkingtext_zpsd3109e14.png'" onmouseout="this.src='http://profile.ak.fbcdn.net/hprofile-ak-frc1/c14.14.173.173/s160x160/264958_546597775366497_849358899_n.jpg'" border="1" alt="king"></a> <br>
<a href="http://vocaloidrp.freeforums.net/index.cgi?action=viewprofile&user=taito"><img src="http://i1269./jj599/Izakaar/Graphics/staffizakaar_zpsa321bb80.png" onmouseover="this.src='http://i1269./jj599/Izakaar/Graphics/staffizakaartext_zps6d74ac0d.png'" onmouseout="this.src='http://i1269./jj599/Izakaar/Graphics/staffizakaar_zpsa321bb80.png'" border="1" alt="izakaar"></a> <a href="http://vocaloidrp.freeforums.net/index.cgi?action=viewprofile&user=rinrinsignal"><img src="http://i1269./jj599/Izakaar/Graphics/staffrin_zps835a248e.png" onmouseover="this.src='http://i1269./jj599/Izakaar/Graphics/staffrintext_zpsa192a603.png'" onmouseout="this.src='http://i1269./jj599/Izakaar/Graphics/staffrin_zps835a248e.png'" border="1" alt="rin"></a> <a href="http://vocaloidrp.freeforums.net/index.cgi?action=viewprofile&user=ronnie"><img src="http://i1269./jj599/Izakaar/Graphics/staffron_zpsfc7ccc68.jpg" onmouseover="this.src='http://i1269./jj599/Izakaar/Graphics/staffrontext_zpsb8cc25f9.png'" onmouseout="this.src='http://i1269./jj599/Izakaar/Graphics/staffron_zpsfc7ccc68.jpg'" border="1" alt="ron"></a> <a href="http://vocaloidrp.freeforums.net/index.cgi?action=viewprofile&user=kai"><img src="http://i1269./jj599/Izakaar/Graphics/staffrawr_zpsed33d7af.jpg" onmouseover="this.src='http://i1269./jj599/Izakaar/Graphics/staffrawrtext_zpsb884a1d2.png'" onmouseout="this.src='http://i1269./jj599/Izakaar/Graphics/staffrawr_zpsed33d7af.jpg'" border="1" alt="rawr"></a> <a href="http://vocaloidrp.freeforums.net/index.cgi?action=viewprofile&user=shion"><img src="http://i1269./jj599/Izakaar/Graphics/staffice_zpsda0ef518.jpg" onmouseover="this.src='http://i1269./jj599/Izakaar/Graphics/stafficetext_zps5e00727b.png'" onmouseout="this.src='http://i1269./jj599/Izakaar/Graphics/staffice_zpsda0ef518.jpg'" border="1" alt="ice"></a></center>
</td></tr></table>
<!-- ===== BOX #2 START ===== -->
<table id="sidetables" class="bordercolor" cellpadding="4" cellspacing="1">
<tr><font size="7" face="courier new" color="bbbbbb">AWARDS</font><br>
<td align="center" class="titlebg">
</td></tr>
<tr><td class="windowbg">
<img src="http://i1269./jj599/Izakaar/Graphics/motmtaito_zps526b3ce8.png" onmouseover="this.src='http://i1269./jj599/Izakaar/Graphics/otmm_zps152d0506.png'" onmouseout="this.src='http://i1269./jj599/Izakaar/Graphics/motmtaito_zps526b3ce8.png'" border="1" alt="izakaar"><br><font size="2" face="impact">izakaar</font><br><br>
<img src="http://i1269./jj599/Izakaar/Graphics/coupleotmyukariron_zps2ec661e8.png" onmouseover="this.src='http://i1269./jj599/Izakaar/Graphics/otmc_zpsa242274d.png'" onmouseout="this.src='http://i1269./jj599/Izakaar/Graphics/coupleotmyukariron_zps2ec661e8.png'" border="1" alt="yukari & big al"><br><font size="2" face="impact">yukari & big al</font><br><br>
<img src="http://i1269./jj599/Izakaar/Graphics/songotmalice_zps9407c085.png" onmouseover="this.src='http://i1269./jj599/Izakaar/Graphics/otms_zpsd65231e8.png'" onmouseout="this.src='http://i1269./jj599/Izakaar/Graphics/songotmalice_zps9407c085.png'" border="1" alt="alice of human sacrifice"><br><font size="2" face="impact">alice of human sacrifice</font><br><br>
<img src="http://i1269./jj599/Izakaar/Graphics/otmtgraphic_zpsfa7a37ea.png" onmouseover="this.src='http://i1269./jj599/Izakaar/Graphics/otmt_zps33a71ccc.png'" onmouseout="this.src='http://i1269./jj599/Izakaar/Graphics/otmtgraphic_zpsfa7a37ea.png'" border="1" alt="tba"><br><font size="2" face="impact">(coming soon)</font>
</td></tr></table>
<!-- ===== BOX #3 START ===== -->
<table id="sidetables" class="bordercolor" cellpadding="4" cellspacing="1">
<tr><font size="7" face="courier new" color="bbbbbb">CREDITS</font><br>
<td align="center" class="titlebg">
</td></tr>
<tr><td class="windowbg">
Skin © Izakaar<br>
Characters © their rightful owners<br>
<br>
All codes were taken from Back to Neverland, Slightly Insane, and Proboards Support (some with modifications).
</td></tr></table>
<! -- ***NOTE*** Place any extra added side tables above this line // -->
</td><td align="center" vAlign="top" width="100%">
Global Footer:
<script type="text/javascript">
/* Avatar Anywhere by SubDevo */
/* Global Footer - Please leave this header intact. Do not repost. */
/* interoceandesigns.com or lsdp.proboards.com */
var defAv="http://i1138./n527/gokuastro/Anime/Male/Sakre2.png"; // Default Avatar URL
var k=location.href,n=document.images,x=-1,isG=(pb_username=="Guest")?1:0;
if(/action=viewprofile$/.test(k)||(/profile&user=(.+?)$/.test(k)&& RegExp.$1==pb_username)){
while(n[++x]){
if(n[x].alt=="[avatar]"){
document.cookie=pb_username+"_avatar="+n[x].src+"@; expires=Sat, 17 Jan 2050 12:12:12 UTC; path=/"; break;
}}} n=document.getElementById("my_avatar");
k=(new RegExp(pb_username+"_avatar=(.+?)@","i").test(document.cookie)&& !isG)?RegExp.$1:defAv;
if(n&&k.indexOf("http:")==0){ k="<img border='0' alt='View Profile' src='"+k+"'/>";
n.innerHTML=(isG)?k:"<a href='index.cgi?action=viewprofile' title='View Profile'>"+k+"</a>";
}
</script>
<script type="text/javascript">
/* Member Information Anywhere by SubDevo */
/* Global Footer - Please leave this header intact. Do not repost. */
/* [url]http://interoceandesigns.com[/url] or [url]http://lsdp.proboards.com[/url] */
function gID(a,b){var n=document.getElementById(a); if(n){n.innerHTML=b;}}
var n=document.getElementsByTagName("font"),m="<a href='index.cgi?action=",a,x=0;
while(!(n[x].parentNode.nodeName=="P"&&/Hey,\s|Welcome\s/.test(n[x].innerHTML))&&x<n.length){x++;}
if(pb_username!="Guest"){ var pmMsg; a=n[x].getElementsByTagName("a")[0];
pmMsg="("+m+"pm'>"+a.innerHTML.split(" ")[0]+" total | "+a.nextSibling.data.split(" ")[1]+" new</a>)";
}else{pmMsg="("+m+"login'>Login</a>"+" | "+m+"register'>Register</a>)";}
gID("my_time",n[x].lastChild.data); gID("my_name",pb_displayname); gID("my_PMs",pmMsg);
</script>
<script type="text/javascript">
/********
Style UBBC Tags v2.1.2
Coded by iPokemon
Special thanks to Eton Bones and Wormopolis
Eton: For helping with optimization
Wormopolis: For being an awesome guy and letting me bounce ideas off of him
Do not repost or claim as your own
*********/
/***** Edit Below Here *****/
var protectedClasses = [".class1","#id",".class3:hover"]; //user-defined protected classes
var showQuickReply = true; //show quick reply buttons; true = yes, false = no
var customClass = "windowbg2"; //post form or modify form
var customClass2 = "windowbg"; //quick reply area
var predictive = true; //true = convert old style tags when posting or modifying, false = leave old tags alone but make them work
/***** Edit Above Here *****/
var pbClasses = /^(\.windowbg|\.windowbg2|\.titlebg|\.catbg|\.cattext|\.titletext|\.nav|\.hr|\.bordercolor|\.quote|\.code|\.menubg|\.newstitlebg|\.forumjump|\.pagedropmenu)/;
function inArray(v,a){
for(w=0;w<a.length;w++){ if(a[w] == v) return true; } return false;
}
function curlyBrackets(){
var text = document.getElementsByName("message")[0].value;
text = text.replace(/\{div\}/g,"[div]").replace(/\{\/div\}/g,"[/div]").replace(/\{nospaces\}/g,"[nospaces]").replace(/\{\/nospaces\}/g,"[/nospaces]").replace(/\{div\s(.+?)\}/g,"[div $1]");
document.getElementsByName("message")[0].value=text;
}
function post_converter(){
var text = document.getElementsByName("message")[0].value;
text = text
.replace(/newclass=\.\./gi,"newclass=")
.replace(/newclass=\./gi,"newclass=")
.replace(/\[classy=(.+?)\]/gi,"[div class=\"$1\"]")
.replace(/\[\/classy\]/gi,"[/div]")
.replace(/&{1}#0*91;/g,"[")
.replace(/&{1}#0*93;/g,"]")
.replace(/\[style=(.+?)\]/gi,"[div style=\"$1\"]")
.replace(/\[\/style\]/gi,"[/div]")
.replace(/\[newclass=(.+?)\]/gi,"[newclass=.$1]")
.replace(/&{1}quot;/g,'"');
document.getElementsByName("message")[0].value = text;
}
function board_converter(text){
text = text
.replace(/\[classy=(.+?)\]/gi,"[div class=\"$1\"]")
.replace(/\[\/classy\]/gi,"[/div]")
.replace(/\[style=(.+?)\]/gi,"[div style=\"$1\"]")
.replace(/\[\/style\]/gi,"[/div]")
.replace(/\[newclass=(.+?)\]/gi,"[newclass=.$1]");
return text;
}
if(document.postForm || document.modifyForm){
if(predictive) post_converter();
var sub = document.getElementsByName("message")[0].parentNode.parentNode.parentNode.nextSibling;
var clo = sub.cloneNode(true);
clo.id = "style-tags-tr";
clo.firstChild.className = customClass;
clo.firstChild.id = "style-tags";
clo.firstChild.firstChild.innerHTML = "Style Tags:";
clo.firstChild.nextSibling.innerHTML = "<input type='button' onclick='post_converter();' value='Converter' /> <input type='button' onclick='curlyBrackets();' value='Style Checker' /> <input type='button' onclick='document.getElementsByName(\"message\")[0].value+=\"[newclass=.class][/newclass]\";' value='Add Class' /> <input type='button' onclick='document.getElementsByName(\"message\")[0].value+=\"[div ][/div]\";' value='Add Div' />";
clo.firstChild.nextSibling.className = customClass;
clo.firstChild.nextSibling.id = "style-tags-2";
sub.parentNode.insertBefore(clo, sub.previousSibling);
}
if(showQuickReply){
if(pb_action == "display"){
if(document.getElementsByName("message")[0]){
var tr = document.getElementsByName("message")[0].parentNode.parentNode.parentNode.parentNode.parentNode.insertRow(1);
tr.id = "style-tags-tr";
var tm = tr.insertCell(0);
tm.id = "style-tags";
tm.innerHTML = "<font size='2'>Style Tags:</font> <input type='button' onclick='post_converter();' value='Converter' /> <input type='button' onclick='curlyBrackets();' value='Style Checker' /> <input type='button' onclick='document.getElementsByName(\"message\")[0].value+=\"[newclass=.class][/newclass]\";' value='Add Class' /> <input type='button' onclick='document.getElementsByName(\"message\")[0].value+=\"[div ][/div]\";' value='Add Div' />";
tm.className=customClass2;
}
}
}
if(pb_action.match(/(calendar|pm|pre)view|viewprofile|search2|display/i)){
var userDefined = "";
var alreadyUsed = [];
var checkMatch = /\[div /i;
var newClass = /\[newclass=/i;
var nospace = /\[nospaces\]/i;
var newClassR = /\[newclass=(.+?)\](.+?)\[\/newclass\](\<br\>)?/gi;
var td = document.getElementsByTagName("td");
var table = document.getElementsByTagName('table');
for(x=5;x<table.length;x++){
if(table[x].className == "code" && table[x].innerHTML.match(/(\[div|\[newclass|\[nospaces)/i)){
table[x].innerHTML = table[x].innerHTML
.replace(/\[div (.+?)\]/g,"{div $1}")
.replace(/\[\/div\]/g,"{/div}")
.replace(/\[newclass=(.+?)\](.+?)\[\/newclass\]/gi,"{newclass=$1}$2{/newclass}")
.replace(/\[nospaces\]/gi,"{nospaces}")
.replace(/\[\/nospaces\]/gi,"{/nospaces}");
}
}
for(x=0;x<td.length;x++){
var tdhtml = td[x].innerHTML;
if(td[x].width == "80%" && tdhtml.match(/(\[style=|\[classy=)/i)){
tdhtml = board_converter(tdhtml);
}
if(td[x].width == "80%" && tdhtml.match(nospace)){
tdhtml = tdhtml.replace(nospace,"<span class='nospaces'>").replace(/\[\/nospaces\]/ig,"</span>");
}
if(td[x].width == "80%" && tdhtml.match(newClass)){
var result = newClassR.exec(tdhtml);
while(result != null){
if(!RegExp.$1.match(pbClasses) && !inArray(RegExp.$1,protectedClasses)){
if(!userDefined.match(RegExp.$1)){
userDefined += RegExp.$1+",";
tdhtml = tdhtml.replace(newClassR, "<style type=\"text/css\"> $1 {$2} </style>");
} else {
tdhtml = tdhtml.replace(newClassR, "");
alreadyUsed.push(RegExp.$1);
}
}
result = newClassR.exec(tdhtml);
}
}
if(td[x].width == "80%" && tdhtml.match(checkMatch)){
var tags = tdhtml.split("[div ");
for(l=1;l<tags.length;l++){
var ok = false;
var attributes = tags[l].split("]")[0].split(" ");
for(q=0;q<attributes.length;q++){
if(attributes[q].split("=")[0] == "style"){
var val = attributes[q].split("=")[1].substr(1,attributes[q].split("=")[1].length-2);
if(!val.match("expression") && !val.match("'")){
ok = true;
}
} else if(attributes[q].split("=")[0].match(/^(id|class|rel|title|style)$/)){
ok = true;
}
}
var content = tags[l].split("]")[1].split("[")[0];
if(ok){
var toReplace = "[div ";
var att = "";
var attributes = tags[l].split("]")[0].split(" ");
for(q=0;q<attributes.length;q++){
toReplace += attributes[q]+" ";
att += attributes[q]+" ";
}
att = att.substr(0, att.length - 1);
toReplace = toReplace.substr(0, toReplace.length - 1);
toReplace = toReplace + "]";
tdhtml = tdhtml.replace(toReplace,"<div "+att+">").replace("[/div]","</div>");
}
}
}
if(tdhtml != td[x].innerHTML) td[x].innerHTML = tdhtml;
}
}
</script>
<script type="text/javascript">
<!--
/*
Name: ENHANCED UBBC TABLE TAGS
Location: Global Footer
Created by EtonBones at yahoo d o t com
Do not redistribute without permission
Feel free to edit provided a notation is
added to this header stating that fact.
THIS HEADER MUST REMAIN INTACT.
*/
/*********** *****START EDITABLE USER OPTIONS***********************
If not concerned about the security risk posed by allowing users the ability
to set events such as onclick and onmouseover in their posts
set the following variable to false*/
var DisallowEvents=true;
/*If UBBC Undo installed and you would like enhanced tags added to history
set the following variable to true*/
var UUInstalled=false;
/******END EDITABLE USER OPTIONS (NO FURTHER EDITING NECESSARY)*******/
var NoGood="Enhanced tags need to be between the [td] and [/td]";
function enhanceTable(){
var td=document.getElementsByTagName("td");
for(i=0;i<td.length;i++){
if(td[i].width=="20%" && td[i].className.match(/windowbg/) && /(Posts:\s*[\d,]+|Guest)/.test(td[i].innerText||td[i].textContent)){
var msg=td[i].nextSibling.getElementsByTagName('tr')[1];
if(msg.getElementsByTagName('table').length){
for(l=0;l<msg.getElementsByTagName('table').length;l++){
parseTags(msg.getElementsByTagName('table')[l]);
//separate func needed since rowspans need to be set first in order to count columns
parseTH(msg.getElementsByTagName('table')[l]);
}
}
}else if(document.postForm && td[i].width=="30%" && td[i].className.match(/windowbg2/) && !document.getElementById('enhancedTable')){
var TR=td[i].parentNode;
var newTR=TR.parentNode.insertRow(TR.rowIndex+1);
TR.id="enhancedTable";
var newTD=document.createElement('td');
newTD.width='30%';
newTD.className='windowbg2';
newTD.innerHTML='<font size="2">Enhanced Table Tags:</font>';
newTR.appendChild(newTD);
newTD=document.createElement('td');
newTD.width='70%';
newTD.className='windowbg2';
newTD.innerHTML='<font size="2">Select Tag:</font><select name="etags" onChange=" addEtag(this.options[this.selectedIndex].value);this.selectedIndex=0;" ><option value="" selected="1">Enhanced Table Tags</option><option value="[th]" >Header</option><option value="[cs=2]">Span Columns</option><option value="[rs=2]">Span Rows</option><option value="[bg=white]">Background Color</option><option value="[atrb=border,0,true]">Any Attribute</option></select> ';
newTR.appendChild(newTD);
}else if(document.postForm && td[i].width=="100%" && td[i].className.match(/titlebg/) && td[i].innerHTML.match(/Topic Summary/)){
var table=td[i].parentNode.parentNode;
var re= /(?:[^\"])(\[(th|cs|rs|bg|atrb).*?\])/gim;
if(table.className.match(/tbody/i))table=table.parentNode;
for(l=2;l<table.rows.length;l=l+2){
if(table.rows[l].cells[0].innerHTML.match(/(?:[^\"\=])(\[(th|cs|rs|bg|atrb).*?\])/gim)){
while(table.rows[l].cells[0].innerHTML.match(/(?:[^\"\=])(\[(th|cs|rs|bg|atrb).*?\])/im ) ){
table.rows[l].cells[0].innerHTML= table.rows[l].cells[0].innerHTML.replace(/(?:[^\"\=])(\[(th|cs|rs|bg|atrb).*?\])/im, stripAnchor(RegExp.$1,RegExp.$2) ) ;
}
}
}
}
}
}
function stripAnchor(str){
var t=/(<A href\=.*\>(.*?)\<\/A\>)/i
if(!str)return "";
var s=str.substr(0,1);
if(s=='\"')return str;
if(s=="\[") s="";
if(str.match(t))str=str.replace(RegExp.$1,RegExp.$2);
return s+"<a title=\""+str+"\">*</a>";
}
function parseTags(TBL){
if(TBL.className !=""){
TBLS=TBL.getElementsByTagName('table')
for(k=0;k<TBLS.length;k++)parseTags(TBLS[k]);
return true;
}
var cell=TBL.getElementsByTagName('td');
var nada="";
for (j=0;j<cell.length;j++){
if(cell[j].innerHTML.match(/(\[cs\=(\d+)\])/i)){
cell[j].setAttribute("colSpan",RegExp.$2);
cell[j].innerHTML=cell[j].innerHTML.replace(RegExp.$1,'');
}
if(cell[j].innerHTML.match(/(\[rs\=(\d+)\])/i)){
cell[j].setAttribute("rowSpan",RegExp.$2);
cell[j].innerHTML=cell[j].innerHTML.replace(RegExp.$1,'');
}
if(cell[j].innerHTML.match(/(\[bg\=(.*?)\])/i)){
cell[j].setAttribute("bgColor",RegExp.$2);
cell[j].innerHTML=cell[j].innerHTML.replace(RegExp.$1,'');
}
while(cell[j].innerHTML.match(/(\[atrb\=(.*?)\])/i)){
var r1=RegExp.$1;
var r2=RegExp.$2;
var atrb=""; var atrbVal="";
var applyTable=false;
var oObj;
if(r2.split(',').length>0){ atrb=r2.split(',')[0]; atrb=atrb.replace(/^\s*|\s*$/g,"");}
if(r2.split(',').length>1) {atrbVal=r2.split(',')[1]; atrbVal=atrbVal.replace(/^\s*|\s*$/g,"");}
if(atrbVal.match(/(<A href\=.*\>(.*)\<\/A\>)/i))atrbVal=atrbVal.replace(RegExp.$1,RegExp.$2);
if(r2.split(',').length>2)applyTable=r2.split(',')[2]?true:false;
oObj=applyTable?TBL:cell[j];
if(atrb != ""){
if(atrb.toLowerCase()=="style"){
oObj.style.cssText+=atrbVal;
}else if(atrb.toLowerCase().substr(0,2)=="on" && DisallowEvents){
nada="<a title=\"Disallowed: "+r1.replace("[","").replace("]","") +"\">*</a>";
}else{
document.expando=false; //IE workaround for casing
try{
oObj.setAttribute(atrb,atrbVal);
}catch(e){
nada="<a title=\"Casing Error: "+r1.replace("[","").replace("]","") +"\">*</a>";
}finally{
document.expando=true;
}
}
}
cell[j].innerHTML=cell[j].innerHTML.replace(r1,nada);
}
}
}
function parseTH(TBL){
if(TBL.className !=""){
TBLS=TBL.getElementsByTagName('table')
for(k=0;k<TBLS.length;k++)parseTags(TBLS[k]);
return true;
}
var cell=TBL.getElementsByTagName('td');
for (j=0;j<cell.length;j++){
if(cell[j].innerHTML.match(/(\[th\])/i)){
cell[j].setAttribute("colSpan",columns(TBL));
cell[j].innerHTML=cell[j].innerHTML.replace(RegExp.$1,'');
}
}
}
function columns(TBL){
//w3c states that a colSpan=0 should make a cell span all columns but IE doesn't honor this, so...
var columns=0;
var tmp;
for(o=0;o<TBL.rows.length;o++){
tmp=0;
for(p=0;p<TBL.rows[o].cells.length;p++){
tmp++
if(TBL.rows[o].cells[p].rowSpan>1)tmp=tmp+TBL.rows[o].cells[p].rowSpan-1;
}
if(tmp>columns)columns=tmp;
}
return columns;
}
function addEtag(tag){
if(tag!=""){
if(UUInstalled){
if(isInsideCell()){
addX(tag);
}else{
alert(NoGood);
document.postForm.message.focus();
}
}else{
if(isInsideCell()){
add(tag);
}else{
alert(NoGood);
document.postForm.message.focus();
}
}
}
}
function isInsideCell(){
//Function purpose: determine if insertion point falls within the bounds of a cell
var msg=document.postForm.message;
if(document.postForm.message.createTextRange){
getCursorPositionIE();
var tmp= document.postForm.message.value.substr(0,document.postForm.message.selectionStart).split("\n").length-1;
setCursorPositionIE(msg.selectionStart-tmp);
}
msg.selectionStart=msg.selectionEnd;
var curr=msg.selectionStart;
if(msg.value.substr(0,curr).lastIndexOf("[td]")==-1 || msg.value.substr(0,curr).lastIndexOf("[td]")<msg.value.substr(0,curr).lastIndexOf("[/td]"))
return false;
if(msg.value.substr(curr).indexOf("[/td]")==-1 || (msg.value.substr(curr).indexOf("[/td]")>msg.value.substr(curr).indexOf("[td]") && msg.value.substr(curr).indexOf("[td]")!=-1))
return false;
if(msg.value.substr(0,curr).lastIndexOf("[")>msg.value.substr(0,curr).lastIndexOf("]"))
return false;
if(msg.value.substr(curr).indexOf("]")<msg.value.substr(curr).indexOf("[") )
return false;
return true;
}
if(location.href.match(/action\=(display|pmview|recent|userrecent|goto|search|calendarview)/) || ( document.postForm ))
enhanceTable();
function setCursorPositionIE(start,end) {
if(document.selection){
var element=document.postForm.message;
end=(end)?end:start;
var range = element.createTextRange();
range.collapse(true);
range.moveEnd('character', end);
range.moveStart('character', start);
range.select();
}
}
function getCursorPositionIE(){
if(document.selection){
var element = document.postForm.message;
element.focus();
var range = document.selection.createRange();
var stored_range = range.duplicate();
stored_range.moveToElementText( element );
stored_range.setEndPoint( 'EndToEnd', range );
element.selectionStart = stored_range.text.length - range.text.length;
element.selectionEnd = element.selectionStart + range.text.length;
element.selectionFaux=true;
}
}
//-->
</script>
<!-- =====
START Smangii's {LEFT} Side Tables *REVISED*
Global Footer
===== -->
<script type="text/javascript">
<!--
table = document.getElementsByTagName('table');
for(i = 0; i < table.length; i ++) {
with(table[i]) {
if(width == '92%') {
width = '100%';
}}}
//-->
</script>
</td></tr></table>
</div>
<img src="URL OF BASE IMAGE" />
</center>
<script type="text/javascript">
<!--
/* inner table width resize */
var innerTableWidth = "650";
var iTable = document.getElementsByTagName("table");
for(t=4; t<iTable.length; t++){
if(iTable[t].width == "92%"){
iTable[t].width = innerTableWidth;
}
}
// -->
</script>
Main Footer:
<xmp id="myo_board_mod" style="display: none">
<!--
Edit here. Your board mod starts with the TR tags and contains everything within it.
This is the HTML for the standard look (without a board mod).
You can use it to learn how to properly edit the code. There are a few missing tags for data however as they aren't applicable.
-->
<tr><td>
<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr>
<td><div style="font-family: yanone kaffeesatz; color: 2a2a2a; text-align: left; font-weight: 200; font-size: 25px; text-transform: uppercase;">{BOARDLINK}</div>
<div style="background-color: dddddd; padding: 4px; font-family: courier new; font-size: 11px; text-trasnform: uppercase; text-align: right; color: 111111; ">THE LAST POST WAS IN {LPLINK}, BY {LPUSER} ON {LPDATE}</div></td></tr></table>
<table width="100%" cellpadding="5px"><td width="10%"><center>{ONOFF}</center></td><td width="60%"><div style="text-align: justify; font-family: tahoma; font-size: 10px; color: 424242;">{BOARDDESC}</div></td>
<td width="15%"><div style="background-color: f6f6f6; padding-top: 10px; padding-bottom: 10px; text-align: center; color: 292323;">{POSTS} POSTS</div></td>
<td width="15%"><div style="background-color: f6f6f6; padding-top: 10px; padding-bottom: 10px; text-align: center; color: 292323;">{THREADS} THREADS</div>
</td></tr></table>
<table cellspacing="0" cellpadding="0" border="0" width="100%"><div style="background-color: f6f6f6; padding: 4px; font-family: courier new; font-size: 11px; text-trasnform: uppercase; text-align: center; color: 1e2221; ">{SUBLIST}</div></td></tr></table>
</td></tr>
<!-- End editing -->
</xmp>
<script type="text/Javascript">
// MYO Board Mod v1 by Chris
// MYO is a concept of California. MYO Board Mod idea was created by Josh.
// Do not redistribute outside of Studio Zero or SoCal
// Moderators settings
var modSeparator = ", "; // Separator used between moderator names
var modBreak = "On"; // Put a line break before the moderator text. "On" or "Off"
var modOverride = "No moderators"; // Text to be shown if no moderators. Can be left blank.
// Sub-Boards settings
var subSeparator = ", "; // Separator used between sub-board names
var subList = "On"; // "On" or "Off" depending on whether you want a sub-boards list or not. Set to "Off" to make the script load faster.
var subText = "<b>Sub-Boards: </b>"; // Text to appear before the sub-board list. You can use HTML.
// Custom On-Off settings
var customOnOff = 0; // Whether or not to use the custom on/off images/text/whatever given below. 0 = off, 1 = on
var customOn = "New posts!"; // Custom on/new posts text
var customOff = "No new posts."; // Custom off/no new posts text
// Miscellaneous Settings
var colLength = 5; // Number of columns the category rows should span.
var showThese = /(Forum Name|Topics|Posts|Last Post)/; // These are the main columns you wish to show. Separate them by |
if(location.href.match(/action=(change|home)/i) || !location.href.match(/action=/i)){
document.write("<script type='text/Javascript' src='http://iycatacombs.com/codes/myo/board.js'><\/script>");
}
</script>
<script type="text/javascript">
<!--
/* remove Forum Name | Topics | Posts...
and add thread & post info by california */
var td=document.getElementsByTagName("td");
if(location.href.match(/\/?((index\.cgi)?\??(action=(ma.+ad|logout|home))?(#.+)?)?$/)){
for(i=0;i<td.length;i++){
if(td[i].width=="1%" && td[i].innerHTML.match(/\d/)){
if(td[i+1].width.match(/^(1|7)%$/)){
td[i].innerHTML+="<br />threads";
td[i].width="8%";
}else{
td[i].innerHTML+="<br />posts";
td[i].width="7%";
}
}
if(td[i].width=="8%" && !td[i].innerHTML.match(/thread/)){
td[i].width="4%";
}
if(td[i].className=="titlebg" && td[i].innerHTML.match(/Forum Name/i)){
td[i].parentNode.style.display="none";
}
}
}
//-->
</script>
<script type="text/javascript">
/* Remove Login Table from Main Page by SubDevo */
/* Main Footer - Please leave this header intact. Do not repost. */
/* [url]http://interoceandesigns.com[/url] or [url]http://lsdp.proboards.com[/url] */
var n=document.getElementsByName("loginform");
if(n[0]&&pb_action=="home"){ n=n[n.length-1];
while(n.className!="bordercolor"){n=n.parentNode;}
n.style.display="none";
}
</script>