~*~Mistic*Potter~*~
Assistant Admin
Order of the Phoenix Head
At My Site's Come and see.
Posts: 207
|
Code
Feb 26, 2006 20:52:10 GMT
Post by ~*~Mistic*Potter~*~ on Feb 26, 2006 20:52:10 GMT
Do you know the money code i would really love to have it for my board and the code to change the Karma boxs? Thank you.
|
|
::Ellen::
Administrator
Ellen, Time Rider
Posts: 1,677
|
Code
Mar 5, 2006 22:35:44 GMT
Post by ::Ellen:: on Mar 5, 2006 22:35:44 GMT
I think you cant edit your karma for money but you can add a crossfury profile options : and add your money code as a profile option in your site like mine. use this codes : Global Header<script src="http://www.webpost.net/sh/shinx05/CrossFury/CFHeader.js"> <!-- /* Project: CrossFury Version 1.0 © Shin, 2005 This code may be used provided that you do not edit or repost this code without my prior permission, and that you do NOT remove this header. This script's coding is my official property, so please do not attempt to claim any of it as your own. This header must always remain intact.
This part of the code goes in your Global Header ONLY. Both parts of the code must be properly installed to work. */ //--> </script>
Global Footer<script src="http://www.webpost.net/sh/shinx05/CrossFury/CFFooter.js"> <!-- /* Project: CrossFury Version 1.0 © Shin, 2005 This code may be used provided that you do not edit or repost this code without my prior permission, and that you do NOT remove this header. This script's coding is my official property, so please do not attempt to claim any of it as your own. This header must always remain intact.
This part of the code goes in your Global Footer ONLY. Both parts of the code must be properly installed to work. */ //--> </script>
and now you should install these tow links in your computer to active this code: www.webpost.net/sh/shinx05/CrossFury/CFHeader.jswww.webpost.net/sh/shinx05/CrossFury/CFFooter.jsafter that , some new options will appear in your admin pannel and there you can add some new profile options like mony. if you like to have another money code just post here again and tell me, Ill help you about that.
|
|
~*~Mistic*Potter~*~
Assistant Admin
Order of the Phoenix Head
At My Site's Come and see.
Posts: 207
|
Code
Mar 6, 2006 4:50:52 GMT
Post by ~*~Mistic*Potter~*~ on Mar 6, 2006 4:50:52 GMT
Ok i added it and everything Thank you now this code is for proboards right? i got another money code so i dont need one now but thank you.
|
|
::Ellen::
Administrator
Ellen, Time Rider
Posts: 1,677
|
Code
Mar 6, 2006 16:22:50 GMT
Post by ::Ellen:: on Mar 6, 2006 16:22:50 GMT
yeah, this code is for proboards and can you please post here another money code which youve found?
|
|
~*~Mistic*Potter~*~
Assistant Admin
Order of the Phoenix Head
At My Site's Come and see.
Posts: 207
|
Code
Mar 6, 2006 20:03:33 GMT
Post by ~*~Mistic*Potter~*~ on Mar 6, 2006 20:03:33 GMT
Multiple Money Hack [CB] Global Footer <script type="text/javascript"> <!-- /* Multiply Money Hack v3.1 - Global footer
Created by Ross, Concept by Peter, Modified by Wonder
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, 2, {You can change the amout TAKE THIS OUT} 3 ];
// What do you want to call your money? var NameOfMoney = [ 'Dollars', 'Pounds', {You can change the names TAKE THIS OUT} 'Euros' ];
// The symbol that will appear next to the money var SymbolOfMoney = [ '$', '£', {You can change the money sign TAKE THIS OUT} '€' ];
// No need to edit below temp="\\[M:"; for(i=0;i<MoneyPerPost.length;i++) temp+="(-)?(\\d+):"; temp+="\\]"; var re=new RegExp(temp, "im"); var re2=new RegExp("(<br>)?"+temp, "im");
function updateMon() { for(j=0;j<MoneyPerPost.length;j++) { var monChange = document.getElementById('monChange'+j); var curMon = document.getElementById('monDisplay'+j); var monType = document.getElementById('monType'+j); mon = parseInt("0"+curMon.value.replace( SymbolOfMoney[j] , '' ),10) + parseInt(( ( monType.value == '-' ) ? '-' : '' ) + "0"+monChange.value,10 ) monChange.value = 0; curMon.value = SymbolOfMoney[j] + mon; } return true; }
function fNum(num){ if(!isNaN(num)){ num = num.toLocaleString().replace(/\.\d+/, ""); } else { num = 0; } return num; }
function saveMon() { updateMon(); newMon=new Array(); for(j=0;j<MoneyPerPost.length;j++) { newMon[j] = document.getElementById('monDisplay'+j).value.replace( SymbolOfMoney[j] , '' ); newMon[j] -= (parseInt(document.modifyForm.posts.value) * MoneyPerPost[j]) } document.modifyForm.customtitle.value += '[M:'+newMon.join(":")+':]'; 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: (.+?)</)) { temp2=RegExp.$1.replace(/,/g,''); curMon=new Array(); for(j=0;j<MoneyPerPost.length;j++) { curMon[j] = (temp2 * MoneyPerPost[j]); curMon[j] += td.item(i).innerHTML.match(re)? parseInt(eval("RegExp.$"+((j*2)+1)+"+RegExp.$"+((j*2)+2))) : 0; if(td.item(i).lastChild.nodeName.toLowerCase() != 'br') td.item(i).appendChild(document.createElement('br')); td.item(i).appendChild(document.createTextNode(NameOfMoney[j] +': '+ SymbolOfMoney[j] + fNum(curMon[j]))); } // 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,''); td.item(i).innerHTML=td.item(i).innerHTML.replace(re2,""); } else if(location.href.match(/ion=viewpro/) && td.item(i).width == '25%' && td.item(i).innerHTML.match(/>Posts:</)) { for(j=MoneyPerPost.length-1;j>=0;j--) { var monTitle = document.createElement('font'); monTitle.size = '2'; monTitle.appendChild(document.createTextNode(NameOfMoney[j]+':')); var userMon = document.createElement('font'); userMon.size = '2'; userMon.appendChild(document.createTextNode(SymbolOfMoney[j]+fNum(curMon[j]))); 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:'; for(j=0;j<MoneyPerPost.length;j++) document.modifyForm.customtitle.value+=eval("RegExp.$"+((j*2)+1)+"+RegExp.$"+((j*2)+2)+""); document.modifyForm.customtitle.value+=']'; document.modifyForm.personaltext.value = document.modifyForm.personaltext.value.replace(re,''); }
Posts = document.modifyForm.posts.value.match(/(-)?(\d+)/)? parseInt(RegExp.$1+RegExp.$2) : 0; curMon=new Array(); for(j=0;j<MoneyPerPost.length;j++) { curMon[j] = document.modifyForm.customtitle.value.match(re)? parseInt(eval("RegExp.$"+((j*2)+1)+"+RegExp.$"+((j*2)+2)+"")) : 0; curMon[j] += (Posts * MoneyPerPost[j]) } document.modifyForm.customtitle.value = document.modifyForm.customtitle.value.replace(re,'');
document.modifyForm.customtitle.maxLength = 490;
for(j=MoneyPerPost.length-1;j>-1;j--) { var display = document.createElement('input'); display.type = 'text'; display.id = 'monDisplay'+j; display.size = parseInt(curMon[j].toString().length) + 2; display.disabled = true; display.value = SymbolOfMoney[j] + curMon[j];
var type = document.createElement('select'); type.id = 'monType'+j; 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'+j; 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[j] +': ')); newTitle.appendChild(display);
var newDes = document.createElement('font'); newDes.size = '1'; newDes.appendChild(document.createTextNode('Here you can edit the amount of '+NameOfMoney[j]+' a member has. Just enter the value of ' +NameOfMoney[j]+ ' 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>
Make sure you take out what i said to or it will NOT work
|
|
::Ellen::
Administrator
Ellen, Time Rider
Posts: 1,677
|
Code
Mar 8, 2006 22:08:07 GMT
Post by ::Ellen:: on Mar 8, 2006 22:08:07 GMT
Thanks dear Mistic *Potter this code is also a good money code.
|
|
~*~Mistic*Potter~*~
Assistant Admin
Order of the Phoenix Head
At My Site's Come and see.
Posts: 207
|
Code
Mar 9, 2006 18:55:43 GMT
Post by ~*~Mistic*Potter~*~ on Mar 9, 2006 18:55:43 GMT
Hey that code that you gave me would it mess up my text on my computer bc after i added it my text started looking really small and messed up?
|
|
::Ellen::
Administrator
Ellen, Time Rider
Posts: 1,677
|
Code
Mar 9, 2006 23:08:47 GMT
Post by ::Ellen:: on Mar 9, 2006 23:08:47 GMT
this code is not mine and I also use this code in my Harry Potter site. I dont have any troubles about text size in my site and also texts are ok. if you like to change your text's size and make it bigger you can use this code: <style type="text/css"> <!--
body, td, font { font-size: 13px !important; }
--> </style>
put it in Global Header. you can change 13 in to your favorite size.
|
|
~*~Mistic*Potter~*~
Assistant Admin
Order of the Phoenix Head
At My Site's Come and see.
Posts: 207
|
Code
Mar 11, 2006 1:32:30 GMT
Post by ~*~Mistic*Potter~*~ on Mar 11, 2006 1:32:30 GMT
Ill use it thank you.
|
|
~*~Mistic*Potter~*~
Assistant Admin
Order of the Phoenix Head
At My Site's Come and see.
Posts: 207
|
Code
Mar 23, 2006 20:57:51 GMT
Post by ~*~Mistic*Potter~*~ on Mar 23, 2006 20:57:51 GMT
I fixed my text thank you
|
|