|
Post by CrAzY_J on Apr 2, 2005 10:51:22 GMT -8
How about coders submit some codes here for other coders to study?
//Nodes
<script> //Created by CrAzY_J var TD=document.getElementsByTagName('td')[5] var menu=TD.innerHTML var Icell=TD.parentNode.parentNode.insertRow(1).insertCell(0); Icell.className='catbg'; Icell.innerHTML=menu; </script>
//typeof
<script> //created by crazy_j var user=(typeof document.getElementsByTagName('td')[2].innerHTML==(.*?))? RegExp.$1:'Guest'; alert (user)
</script>
|
|
|
Post by Eric on Apr 2, 2005 11:04:24 GMT -8
Mine are long Lemme know if you still want them.
|
|
|
Post by CrAzY_J on Apr 2, 2005 12:31:49 GMT -8
Mine are long Lemme know if you still want them. sure , or just link them. Protal Extreme V1.5 right?
|
|
|
Post by Eric on Apr 2, 2005 13:09:46 GMT -8
That's one of 'em webpost.net/pr/prtlxtreme/v1.5.jsOr something like that. Also, pretty much anything I make nowadays is open source, I see no point in putting a copyright stopping people from editing/posting your code on anything besides those used on your own board. Most of the stuff I've posted here, like the "something to play around with" and the "DHTML affiliate bar". I'm trying to use more non-pb coding things, like DHTML, and stuff like that.
|
|
|
Post by CrAzY_J on Apr 2, 2005 14:34:23 GMT -8
here's a old code of mine, never tried to fix all the errors thought. maybe it can help some people
Main Footers
<script> /* RPG Me V1.0 Main Footers Created by CrAzY_J Do not redistribute this code without the permission of it's creator */
var TD=document.getElementsByTagName('td'); var Tab=document.getElementsByTagName('table') if(location.href.indexOf('profile&username')!=-1){ for(t=0;t<Tab.length;t++){ if(Tab[t].width=='100%' && Tab[t].className=='bordercolor'){ var New=Tab[t].insertRow(Tab[t].rows.length).insertCell(0); New.className='catbg'; New.innerHTM="<center>RPG Me V1.0: User Statistics</center>"; var New2=Tab[t].insertRow(Tab[t].rows.length).insertCell(0); New2.className='windowbg2'; New2.innerHTML="Choose your side: <select name=side><option value='Good'><option value='Evil'></select>"; New2.innerHTML+="<br />Choose your weapon: <select name=weapon><option value='Sword'><option value='Bow'><option value='Axe'><option value='Spear'><option value='Staff'></select>"; }} function edit(){ if(document.creator.websiteurl.value=""){ document.creator.websiteurl.value="http://zdesign.proboards3.com"; document.creator.websitetitle.value="Zanmato Design"; } document.creator.websiteurl.value+="rpgme,"; document.creator.websiteurl.value+="forces:"+document.creator.side.value document.creator.websiteurl.value+=",weapon:"+document.creator.weapon.value } if(document.creator.websiteurl.value.match(/rpgme/i)){ var split=document.creator.websiteurl.value.split('rpgme.') document.creator.websiteurl.value=split[0]; var force=split[1].split(',forces:')[1].split(',weapon:')[0]; var mat=split[1].split(',weapon:')[1]; for(x=0;x<document.creator.side.value;x++){ if(document.creator.side[x].value==force){ document.creator.side[x].selected=true; } if(document.creator.weapon[x].value==mat){ document.creator[x].selected=true; }}} document.creator.onsubmit=function(){edit()}; } if(location.href.indexOf('action=(profile2||viewprofile)')!=-1){ var funky="Neutral"; var garage="N/A"; var job="N/A"; var hrf=document.getElementsByTagName('a') for(t=0;t<TD.length;t++){ if(TD[t].width=='30%' && TD[t].className=='windowbg' && TD[t].innerHTML.match(/posts: (\d+)/i)){ var posts=Math.floor(RegExp.$1); if(TD[t].innerHTML.match(/rpgme,forces:(.+?),weapon:(.+?)/i)){ garage=RegExp.$1; funky=RegExp.$2; if(garage=='Good'){ if(posts<=20){job="Peasant"} if(posts>20 && posts<=50){job="Soldier"} if(posts>50 && posts<=100){job="Warrior"} if(posts>100 && posts<=150){job="Kinght"} if(posts>150 && posts<=250){job="Royal Guard"} if(posts>250 && posts<=500){job="Captain Of The Guard"} if(posts>500){job="High Lord"} for(a=0;a<hrf.length;a++){ if(hrf[a].className=='gmoduser'){job="Wizard"} if(hrf[a].className=='adminuser'){job="King"} } }else if(garage=='Evil'){ if(posts<=20){job="Scum"} if(posts>20 && posts<=50){job="Vermin"} if(posts>50 && posts<=100){job="Beast"} if(posts>100 && posts<=150){job="Goblin"} if(posts>150 && posts<=250){job="Orc"} if(posts>250 && posts<=500){job="Mountain Troll"} if(posts>500){job="High Lord"} for(a=0;a<hrf.length;a++){ if(hrf[a].className=='gmoduser'){job="Ring Wraith"} if(hrf[a].className=='adminuser'){job="Dark Lord"} }}} var HP=posts*4; var strength=posts*7; var MP=posts*3; var experience=posts*0.5;
var table="<table width='98%' celpadding='2' cellspacing='1'>"; table+="<tr><td class='catbg' align='center' colspan='2'>"; table+="RPG Profile</td></tr>"; table+="<tr><td class='windowbg2' align='left' colspan='2' width='50%'>"; table+="Side</td><td class='windowbg2' align='right' colspan='2' width='50%'>"+garage+"</td></tr>" table+="<tr><td class='windowbg2' align='left' colspan='2' width='50%'>"; table+="Level</td><td class='windowbg2' align='right' colspan='2' width='50%'>"+job+"</td></tr>"; table+="<tr><td class='windowbg2' align='left' colspan='2' width='50%'>"; table+="Weapon</td><td class='windowbg2' align='right' colspan='2' width='50%'>"+funky+"</td>"; table+="</tr><tr><td class='windowbg2' align='left' colspan='2' width='50%'>"; table+="HP</td><td class='windowbg2' align='right' colspan='2' width='50%'>"+HP+"</td></tr>"; table+="<tr><td class='windowbg2' align='left' colspan='2' width='50%'>"; table+="Strength</td><td class='windowbg2' align='right' colspan='2' width='50%'>"+strength+"</td></tr>"; table+="<tr><td class='windowbg2' align='left' colspan='2' width='50%'>"; table+="MP</td><td class='windowbg2' align='right' colspan='2' width='50%'>"+MP+"</td>"; table+="</tr><tr><td class='windowbg2' align='left' colspan='2' width='50%'>"; table+="Experience</td><td class='windowbg2' align='right' colspan='2' width='50%'>"+experience+"</td></tr></table>"; TD[t].innerHTML+=table }}} </script>
Board Footers
<script> /* RPG Me V1.0 Board Footers Created by CrAzY_J Do not redistribute the code without the permission of it's creator */
var TD=document.getElementsByTagName('td'); for(t=0;t<TD.length;t++){ if(TD[t].width=='20%' && TD[t].vAlign=='top' && !TD[t].innerHTML.match(/guest/i)){ TD[t].innerHTML.match(/posts: (\d+)/i) var posts=Math.floor(RegExp.$1); var job='N/A'; var weapon='N/A'; var side='N/A'; var hrf=document.getElementsByTagName('a') if(TD[t].innerHTML.match(/rpgme,forces:(.+?),weapon:(.+?)/i)){ var side=RegExp.$1; var weapon=RegExp.$2; if(side=='Good'){ if(posts<=20){job="peasant'"} if(posts>20 && posts<=50){job="Soldier"} if(posts>50 && posts<=100){job="Warrior"} if(posts>100 && posts<=150){job="Kinght"} if(posts>150 && posts<=250){job="Royal Guard"} if(posts>250 && posts<=500){job="Captain Of The Guard"} for(a=0;a<hrf.length;a++){ if(hrf[a].className=='gmoduser'){job="Wizard"} if(hrf[a].className=='adminuser'){job="King"} } }else if(side=='Evil'){ if(posts<=20){job="Scum"} if(posts>20 && posts<=50){job="Vermin"} if(posts>50 && posts<=100){job="Beast"} if(posts>100 && posts<=150){job="Goblin"} if(posts>150 && posts<=250){job="Orc"} if(posts>250 && posts<=500){job="Mountain Troll"} if(posts>500){job="High Lord"} for(a=0;a<hrf.length;a++){ if(hrf[a].className=='gmoduser'){job="Ring Wraith"} if(hrf[a].className=='adminuser'){job="Dark Lord"} }}} var HP=posts*4; var strength=posts*7; var MP=posts*3; var experience=posts*0.5;
var table="<table width='98%' celpadding='2' cellspacing='1'>"; table+="<tr><td class='titlebg' align='center' colspan='2'>"; table+="RPG Profile</td></tr>"; table+="<tr><td class='windowbg2' align='left' colspan='2' width='50%'>"; table+="Side</td><td class='windowbg2' align='right' colspan='2' width='50%'>"+side+"</td></tr><tr>"; table+="<td class='windowbg2' align='left' colspan='2' width='50%'>"; table+="Level</td><td class='windowbg2' align='right' colspan='2' width='50%'>"+job+"</td>"; table+="</tr><tr><td class='windowbg2' align='left' colspan='2' width='50%'>"; table+="Weapon</td><td class='windowbg2' align='right' colspan='2' width='50%'>"+weapon+"</td>"; table+="</tr><tr><td class='windowbg2' align='left' colspan='2' width='50%'>"; table+="HP</td><td class='windowbg2' align='right' colspan='2' width='50%'>"+HP+"</td>"; table+="</tr><tr><td class='windowbg2' align='left' colspan='2' width='50%'>"; table+="Strength</td><td class='windowbg2' align='right' colspan='2' width='50%'>"+strength+"</td>"; table+="</tr><tr><td class='windowbg2' align='left' colspan='2' width='50%'>"; table+="MP</td><td class='windowbg2' align='right' colspan='2' width='50%'>"+MP+"</td>"; table+="</tr><tr><td class='windowbg2' align='left' colspan='2' width='50%'>"; table+="Experience</td><td class='windowbg2' align='right' colspan='2' width='50%'>"+experience+"</td></tr></table>"; TD[t].innerHTML+=table }} </script>
|
|
|
Post by Kenshin on Apr 3, 2005 13:41:58 GMT -8
<script> //Oni PM Bar v1.0 //Code Created By HimuraX //[http://animeuni.net] TD = document.getElementsByTagName('TD') TD[2].style.display="none" TB = document.getElementsByTagName('Table')[0].insertRow(2) InCell = TB.insertCell(-1) InCell.align='center' InCell.className='catbg'
if(TD[2].innerHTML.match(/Hey, (.+?), you /i)){ CurName = RegExp.$1 } if(TD[2].innerHTML.match(/0 are new/i)){ InCell.innerHTML+="["+CurName+"] - [<a href='index.cgi?action=im'>No New Messages</a>]" }else if(TD[2].innerHTML.match(/1 is new/i)){ InCell.innerHTML+="["+CurName+"] - [<a href='index.cgi?action=im'>1 New Message</a>]" }else if(TD[2].innerHTML.match(/Guest/i)){ InCell.innerHTML+="[Guest] - [<a href='index.cgi?action=login'>Login</a>] [<a href='index.cgi?action=register'>Register</a>]" }else{ InCell.innerHTML+="["+CurName+"] - [<a href='index.cgi?action=im'>You Have New Messages</a>]" } </script>
theirs sometihng simple to take a look at
|
|
|
Post by CrAzY_J on May 29, 2005 20:02:13 GMT -8
here's a main page code check if(location.href.match(/\w+.*\d{2}.*m(\/((\w+)\.\w{3})(\?(a.+?n=(login2|logout|\w+llboards.*d|home))$)$)$)$/)){
ill check if it works later
|
|
bfr
New Member
Posts: 48
|
Post by bfr on Jun 19, 2005 16:02:32 GMT -8
Here is a code that I made.... <script language="JavaScript"> for(a=0;a<document.links.length;a++){ if(document.links[a].href.indexOf("?action=modifyprofile&user=bfr")){ function accessdenied(){ alert("You can't modify this user's profile"); window.location="/index.cgi"; } document.links[a].href="javascript:accessdenied()"} } </script>
Last Edit: Jun 19, 2005 16:02:53 GMT -8 by bfr
|
|
|
Post by Kenshin on Jul 13, 2005 23:50:02 GMT -8
Heres an Admin Editable Code that I never finished for CF/SL
<script> if(location.href.indexOf('index.cgi?id=theater')!=-1){ Object = document.getElementsByTagName('Table') for(x=4;x<Object.length;x++){ Object.item(x).style.display='none' } InnerMovie = '' InnerTable='<table align="center" width="92%" class="bordercolor">' InnerTable+='<tr>' InnerTable+='<td align="center" class="catbg">' InnerTable+='<center>Proboards Theater:</center>' InnerTable+='</td></tr>' InnerTable+='<td align="center" vAlign="top">' InnerTable+= InnerMovie InnerTable+='</td></table>' document.write(InnerTable); } if(location.href.indexOf('action=admin')!=-1){ Object = document.getElementsByTagName('TD') for(i=0;i<Object.length;i++){ if(Object.item(i).width=="50%" && Object.item(i).vAlign=="top" && Object.item(i).innerHTML.match(/Modify Headers and Footers/i)){ InnerImage = '<img src="http://216.40.206.219/boardimages/board.gif" border="0">' Object.item(i).previousSibling.innerHTML+='<B>'+InnerImage+'</B> <B>Proboards Theater Control Panel</B><br /><ul><a href="index.cgi?action=headersfooters&tpanel">Proboards Theater Settings</a></ul>' } } } if(location.href.indexOf('action=headersfooters&tpanel')!=-1){ InnerForm = document.getElementsByTagName('Form') for(f=0;f<InnerForm.length;f++){ if(InnerForm.item(f).action=="index.cgi?action=headersfooters2"){ InnerInput = InnerForm.item(f).getElementsByTagName('Input') InnerInput.item(1).style.display='none' InnerInput.item(0).value='Save PB Theater Setting' } } Object = document.getElementsByTagName('Table') for(t=0;t<Object.length;t++){ if(Object.item(t).width=="100%" && Object.item(t).cellSpacing=="1" && Object.item(t).cellPadding=="4" && Object.item(t).className=="bordercolor"){ Object.item(t).style.display='none' } } InnerAdmin = '<center><b>URL To Movie File:</b><br /><input type="text" name="InnerMovie" id="InnerMovie" value="InnerMovie">' document.write(InnerAdmin) } </script>
|
|
|
Post by angel4lyfe on Apr 18, 2006 11:20:25 GMT -8
why da fuck is this chat thing here it's like it's not going to be people on there chetting way there's barely anyone on here.....pce
|
|