Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- &&& Besides for a fuckton of scripts, not much really goes into the footer.
- Here's a list of all the mods I've included below. On the off-chance that you don't want one of these, go ctrl+f and delete them.
- Smagii's Side Tables Footer
- Remove All Borders
- Move Menu Bar Anywhere
- PopThosePringles' Category Splitter
- something to remove # of times read column
- Remove Forum Name | Topics | Posts
- Remove Last Edit
- Justify Text In Posts
- Remove Info Center Title Bar
- Images to Text
- Remove Folder in Author|Topic Row
- Style UBBC Tags v2
- ENHANCED UBBC TABLE TAGS
- Code Tag Modification
- Money Hack
- Build Your Own Mini-Profile
- You'll only need to edit 1) the Money Hack to adjust the amount of money gained per post to whatever you want, and 2) Build Your Own Mini-Profile to make your own custom mini-profile.
- -->
- <!-- =====
- START Smangii's {LEFT} Side Tables *REVISED*
- Global Footer
- ===== -->
- </td></tr></table>
- <script type="text/javascript">
- <!--
- table = document.getElementsByTagName('table');
- for(i = 0; i < table.length; i ++) {
- with(table[i]) {
- if(width == '92%') {
- width = '100%';
- }}}
- //-->
- </script>
- <script type="text/javascript">
- <!--
- /* remove all borders */
- var table = document.getElementsByTagName("table");
- for(i=0; i<table.length; i++){
- table[i].cellSpacing = "0";
- table[i].border = "0";
- }
- //-->
- </script>
- <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>
- <script type="text/javascript">
- <!--
- // Created by PopThosePringles
- // Size of the gap between categories
- var gapSize = 15;
- var tabHTML = '<td id="rr" colspan="5"></table></td></tr></table><div style="height:' + gapSize + '"></div><table width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" width="100%"><tr>';
- if(location.href.match(/\.com(\/|.+cgi(\?|#.+|\?\w+=home)?)?$/i)){
- var tBod = document.getElementsByTagName("tbody");
- for(tb = 0; tb < tBod.length; tb ++){
- for(r = 2; r < tBod.item(tb).rows.length; r ++){
- var tBodObj = tBod.item(tb).rows.item(r).cells.item(0);
- if(tBodObj.className == "catbg" && tBodObj.colSpan == "5" && tBodObj.align != "right"){
- var c = tabHTML + tBod.item(tb).firstChild.innerHTML + "</tr>";
- var p = tBodObj.parentNode.innerHTML;
- var tBodPar = tBod.item(tb).parentNode.parentNode.parentNode.parentNode.parentNode;
- tBodPar.parentNode.innerHTML = tBodPar.parentNode.innerHTML.replace(p, c + p);
- }
- if(tBod.item(tb).rows.item(r).firstChild.id == "rr"){
- tBod.item(tb).rows.item(r).style.display = "none";
- }
- }
- }
- }
- //-->
- </script>
- <script type="text/javascript">
- <!--
- if(location.href.match(/ion=(display|search2|(user)?recent)/)) {
- var bit=document.getElementsByTagName('td')
- for(i=0;i<bit.length;i++){
- if(bit[i].innerHTML.match(/\(Read (.+?) times\)/)){
- var reg=RegExp.$1
- bit[i].innerHTML=bit[i].innerHTML.replace('(Read '+reg+' times)','')
- }
- }
- }
- //-->
- </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 last edit */
- var font=document.getElementsByTagName("font");
- if(location.href.match(/on=(displ|search2|(user)?rece)/)){
- for(i=0;i<font.length;i++){
- if(font[i].innerHTML.match(/Last\sEdit:/i) && font[i].parentNode.align=="left"){
- font[i].style.display="none";
- }
- }
- }
- // -->
- </script>
- <script type="text/javascript">
- <!--
- // Justify text in posts..
- var jButton = 'http://i562.photobucket.com/albums/ss64/LUNATICxblitz/justify.png';
- // Add button to posting page..
- if(document.postForm)
- {
- var buttons = document.images;
- for(b=0; b<buttons.length; b++)
- {
- if(buttons[b].src.match(/\/right\.(gif|png)/i))
- {
- buttons = buttons[b+1].parentNode;
- break;
- }}
- var justifyButton = document.createElement('A');
- justifyButton.setAttribute('href','javascript:add("[justify]","[/justify]")');
- justifyButton.innerHTML = '<img src="'+jButton+'" border="0" alt="Justify">';
- buttons.parentNode.insertBefore(justifyButton,buttons);
- }
- // Find and justify text in posts...
- if(!document.location.href.match(/action=headersfooters/))
- {
- var posts = document.getElementsByTagName('td');
- for(p=0; p<posts.length; p++)
- {
- if(((posts[p].vAlign == 'top' && posts[p].colSpan == '3') || (document.postForm && posts[p].width == '100%' && posts[p].className == 'windowbg2')) && posts[p].innerHTML.match(/\[justify\]/i))
- {
- posts[p].innerHTML = posts[p].innerHTML.replace(/\[justify\]/ig,'<div align="justify">');
- posts[p].innerHTML = posts[p].innerHTML.replace(/\[\/justify\]/ig,'</div>');
- }}}
- // -->
- </script>
- <script type="text/javascript">
- //Remove info center titlebar
- if( this.location.href.match(/\.com(\/(index\.cgi(\?|#\w+)?)?)?$/))
- {
- var T = document.body.getElementsByTagName("td");
- for(t=0;t<T.length;t++){
- if(T[t].className == "titlebg" && T[t].innerHTML.match(/Info\sCenter/))
- T[t].parentNode.style.display = "none";
- }}
- </script>
- <script type = 'text/javascript'>
- /*
- Images to Text
- By Michael (Wrighty)
- Do Not Repost, Rip, Claim or Edit
- */
- for(n = 0, i = document.getElementsByTagName('img'); n < i.length; n++)
- if(i[n].src.match(/(s\d+\.)?images\.proboards\.com/) && i[n].src.match(/(\/button|search2|newpoll)/) && i[n].src.match(/(png|gif)$/) && !i[n].src.match(/_sm/)){
- var f = document.createElement('font');
- f.className = 'button';
- i[n].parentNode.replaceChild(f.appendChild(document.createTextNode(i[n].alt.replace(/(\[|\])/g, ''))).parentNode, i[n]);
- n--;
- }
- </script>
- <script type="text/javascript">
- /* Remove Folder in Author|Topic Row by Scorpian
- [url]http://roddyinnovations.com/[/url] */
- var riTd = document.getElementsByTagName('td');
- if(location.href.match(/action=display/i))
- for(b=0; b<riTd.length; b++)
- if(riTd[b].width == '20%' && riTd[b].className == 'catbg' && riTd[b].innerHTML.match(/Author/i))
- riTd[b].firstChild.removeChild(riTd[b].firstChild.firstChild);
- </script>
- <script type="text/javascript"><!--
- /* Style UBBC Tags v2
- Created by iPokemon
- [url]http://bytemecodes.proboards.com/[/url]
- Do not redistribute or call as your own
- Updated September 2nd 2011
- Copyright 2011
- version = 1*/
- if(document.postForm) {
- document.postForm.color.parentNode.innerHTML+='<a href="javascript:add(\'[style=]\',\'[/style]\')"><img src="http://i562.photobucket.com/albums/ss64/LUNATICxblitz/style.png" alt="Style" border="0" /></a>';
- document.postForm.color.parentNode.innerHTML+='<a href="javascript:add(\'[newclass=]\',\'[/newclass]\')"><img src="http://i562.photobucket.com/albums/ss64/LUNATICxblitz/style.png" alt="New Class" border="0" /></a>';
- document.postForm.color.parentNode.innerHTML+='<a href="javascript:add(\'[classy=]\',\'[/classy]\')"><img src="http://i562.photobucket.com/albums/ss64/LUNATICxblitz/style.png" alt="Classy" border="0" /></a>';
- }
- if(pb_action.match(/(calendar|pm|pre)view|search2|display/i)){
- var td = document.getElementsByTagName('td');
- var matCH=/\[style=(.+?)\]/gi;
- var matCH2=/\[\/style\]/gi;
- var matCH3=/\[newclass=(.+?)\](.+?)\[\/newclass\]/gi;
- var matCH4=/\[classy=(.+?)\]/gi;
- var matCH5=/\[\/classy\]/gi;
- var table = document.getElementsByTagName('table');
- for(x=5;x<table.length;x++){
- if(table[x].className == "code" && table[x].innerHTML.match(/(\[style|\[newclass|\[classy)/i)){
- table[x].innerHTML=table[x].innerHTML.replace(/\[/,eval("&#<b></b>91;"))
- table[x].innerHTML=table[x].innerHTML.replace(/\]/,eval("&#<b></b>93;"));
- }
- }
- for(l=0;l<td.length;l++){
- if(td[l].width=="80%"){
- td[l].innerHTML = td[l].innerHTML.replace(matCH, '<div style="$1">').replace(matCH2, '</div>').replace(matCH3, '<style type="text/css"> .$1 {$2} </style>').replace(matCH4, '<div class="$1">').replace(matCH5, '</div>');
- }
- }
- }
- //--></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/)){
- var msg=td[i].parentNode.getElementsByTagName('td')[1].getElementsByTagName('tr')[1]; -5/7/10 */
- if(td[i].width=="20%" && td[i].className.match(/windowbg/) && td[i].innerHTML.match(/>(Posts: [\d,]+|Guest)</)){
- 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>
- <script type="text/javascript">
- /* Code Tag Modification by hpmad
- Do not repost or claim without permission from creator
- For more codes like this one go to: http://talkpark.proboards.com */
- var table = document.getElementsByTagName('table');
- if(location.href.match(/action=(display|recent|pmview|search2)/i)){
- for(i=0;i<table.length;i++){
- if(table[i].className=='code'){
- var codeArea = table[i].firstChild.firstChild.firstChild.firstChild.innerHTML;
- codeArea = codeArea.replace(/&nb+sp;/gi,' ');
- codeArea = codeArea.replace(/&a+mp;/gi,'&');
- codeArea = codeArea.replace(/\t/gi,'+sp;&nb+sp; ')
- codeArea = codeArea.replace(/<br\s?\/?>/gi,'\n');
- table[i].parentNode.parentNode.parentNode.parentNode.parentNode.innerHTML = '<font size="1"><b>Code:</b></font><br><center><form><textarea class="codeArea" style="font-size: 8pt;" readonly name="codeArea" cols="90" rows="12">'+codeArea+'</textarea><br><input type="button" value="Highlight Code" onclick="javascript:this.form.codeArea.focus();this.form.codeArea.select();"></form></center>';
- i--;
- }
- }
- }
- </script>
- <script type="text/javascript">
- <!--
- /*
- Money Hack v3 - Global footer
- Created by Ross, Concept by Peter
- This code cannot be reposted at anywhere other than ProBoards Support without permission.
- This header must stay intact at all times.
- */
- // The value of money a member should gain for each post
- var MoneyPerPost = 5;
- // What do you want to call your money?
- var NameOfMoney = 'Money';
- // The symbol that will appear next to the money
- var SymbolOfMoney = '$';
- // No need to edit below
- var re = /\[M:(-)?(\d+)\]/im
- function updateMon() {
- var monChange = document.getElementById('monChange');
- var curMon = document.getElementById('monDisplay');
- var monType = document.getElementById('monType');
- mon = parseInt(curMon.value.replace( SymbolOfMoney , '' ),10) + parseInt( ( ( monType.value == '-' ) ? '-' : '' ) + monChange.value, 10 )
- monChange.value = 0;
- if(isNaN(mon)) {
- alert('You must enter a numerical value')
- return false;
- }
- curMon.value = SymbolOfMoney + mon;
- return true;
- }
- function fNum(num){
- if(!isNaN(num)){
- num = num.toLocaleString().replace(/\.\d+/, "");
- } else {
- num = 0;
- }
- return num;
- }
- function saveMon() {
- updateMon();
- var newMon = document.getElementById('monDisplay').value.replace( SymbolOfMoney , '' );
- newMon -= (parseInt((document.modifyForm.posts.value) * MoneyPerPost, 10));
- document.modifyForm.customtitle.value += '[M:'+newMon+']';
- return true;
- }
- var td = document.getElementsByTagName('td');
- for(i=0; i<td.length; i++) {
- if(td.item(i).width == '20%' && td.item(i).vAlign == 'top' && td.item(i).parentNode.innerHTML.match(/Posts: (.+?)</)) {
- curMon = (RegExp.$1.replace(/,/g,'') * MoneyPerPost);
- curMon += td.item(i).innerHTML.match(re)? parseInt((RegExp.$1+RegExp.$2), 10) : 0;
- if(td.item(i).lastChild.nodeName.toLowerCase() != 'br')
- td.item(i).appendChild(document.createElement('br'));
- td.item(i).appendChild(document.createTextNode(NameOfMoney +': '+ SymbolOfMoney + fNum(curMon)));
- td.item(i).innerHTML = td.item(i).innerHTML.replace(/<br>\[M:(-)?(\d+)\](<br>member is)/i,'$3').replace(/(<br>(.+?))\[M:(-)?(\d+)\](<br>)/i,'$1$5').replace(/\[M:(-)?(\d+)\]/gim,'');
- }
- else if(location.href.match(/ion=viewpro/) && td.item(i).width == '25%' && td.item(i).innerHTML.match(/>Posts:</)) {
- var monTitle = document.createElement('font');
- monTitle.size = '2';
- monTitle.appendChild(document.createTextNode(NameOfMoney+':'));
- var userMon = document.createElement('font');
- userMon.size = '2';
- userMon.appendChild(document.createTextNode(SymbolOfMoney+fNum(curMon)));
- monRow = td.item(i).parentNode.parentNode.insertRow(6);
- monRow.insertCell(0).appendChild(monTitle);
- monRow.insertCell(1).appendChild(userMon);
- break;
- }
- }
- if(document.modifyForm && document.modifyForm.customtitle) {
- if(document.modifyForm.personaltext.value.match(re) && !document.modifyForm.customtitle.value.match(re))
- {
- document.modifyForm.customtitle.value += '[M:'+RegExp.$1+RegExp.$2+']';
- document.modifyForm.personaltext.value = document.modifyForm.personaltext.value.replace(re,'');
- }
- curMon = document.modifyForm.customtitle.value.match(re)? parseInt(RegExp.$1+RegExp.$2, 10) : 0;
- Posts = document.modifyForm.posts.value.match(/(-)?(\d+)/)? parseInt((RegExp.$1+RegExp.$2), 10) : 0;
- curMon += (Posts * MoneyPerPost)
- document.modifyForm.customtitle.value = document.modifyForm.customtitle.value.replace(re,'');
- document.modifyForm.customtitle.maxLength = 490;
- var display = document.createElement('input');
- display.type = 'text';
- display.id = 'monDisplay';
- display.size = parseInt(curMon.toString().length, 10) + 2;
- display.disabled = true;
- display.value = SymbolOfMoney + curMon;
- var type = document.createElement('select');
- type.id = 'monType';
- type.appendChild(document.createElement('option'));
- type.firstChild.appendChild(document.createTextNode('+'));
- type.appendChild(document.createElement('option'));
- type.lastChild.appendChild(document.createTextNode('-'));
- type.lastChild.value = '-';
- var mon = document.createElement('input');
- mon.type = 'text';
- mon.id = 'monChange';
- mon.size = 5;
- mon.value = 0;
- var update = document.createElement('input');
- update.type = 'button';
- update.value = 'Update';
- update.onclick = function(){ updateMon(); };
- var editMon = document.createElement('font');
- editMon.appendChild(type);
- editMon.appendChild(document.createTextNode(' '));
- editMon.appendChild(mon);
- editMon.appendChild(document.createTextNode(' '));
- editMon.appendChild(update);
- var newTitle = document.createElement('font');
- newTitle.size = '2';
- newTitle.appendChild(document.createTextNode(NameOfMoney +': '));
- newTitle.appendChild(display);
- var newDes = document.createElement('font');
- newDes.size = '1';
- newDes.appendChild(document.createTextNode('Here you can edit the amount of '+NameOfMoney+' a member has. Just enter the value of ' +NameOfMoney+ ' to add or subtract.'));
- var target = document.modifyForm.customtitle.parentNode.parentNode.parentNode.parentNode.insertRow(2);
- target.insertCell(0).appendChild(newTitle);
- target.insertCell(1).appendChild(editMon)
- target.insertCell(2).appendChild(newDes);
- document.getElementsByName('profileaction').item(0).onclick = function() { saveMon(); };
- }
- //-->
- </script>
- <!-- &&& The stuff below is the custom miniprofile design. It's not very inspired, so if you want to make your own, have at it. -->
- <span id="mini_profile_member" style="display: none;">
- <center><div class="miniprofile">
- <span id="user_name" name="user_name" class="mininame">##value</span>
- <span id="custom_title" name="custom_title" class="minititle">##value</span>
- <br><span id="avatar" name="avatar">##value</span><br>
- <span id="personal_text" name="personal_text" class="ptext">##value</span>
- <div class="ministuff">
- <span id="posts" name="posts">##value</span> posts<br>
- and <span id="money" name="money">##value</span></div>
- </div></center></span>
- <script type="text/javascript">
- <!--
- /******************************************
- *
- * Build Your Own Mini-Profile v 0.2
- * Coded by Ross of http://support.proboards.com
- * and http://101support.proboards43.com
- * and http://swg.proboards4.com
- * this code cannot be reposted outside of the
- * forums listed above unless done so by myself
- *
- *******************************************/
- if(location.href.match(/(ion=(display|(pm|calendar)?view|search2|(user)?recent)|error)/)) {
- var new_script = document.createElement('script');
- new_script.type = "text/javascript";
- new_script.src = "http://freelancedev.net/ecreations/codes/build_your_own_mini_profile/v0-2.js";
- document.getElementsByTagName('head').item(0).appendChild(new_script);
- }
- //-->
- </script>
- <!-- &&& if you're here for the custom profile, you scrolled too far down. Go back up a little, sorry. -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement