/* xProfile - Copyright by Markup (icewindrain@yahoo.co.uk) Edited by Paper - Copyright by Paper */ if(document.getElementById('userlinks').innerHTML.match("Admin CP") != null) { document.getElementById('userlinks').rows[0].cells[0].innerHTML += " · ( XProfile CP )" if (document.location.href==myurl+"index.php?xprofile") { function loaded() { document.getElementById("content").innerHTML='

Please make alterations to this table and then save
FeaturesLabel prefixLabel suffixValue prefixValue suffixWhere shown
Age
Location 
Flags
Sound in the profiles     

i = 0
newField = []

You can enter more options here, based on the guide from here
Please look at the text in the box below to get the idea of the format. You must include ; at the end of each custom xprofile entry

Custom:

'; document.getElementById('age1').checked=xage; document.getElementById('age2').value=AlabelPrefix; document.getElementById('age3').value=AlabelSuffix; document.getElementById('age4').value=AvaluePrefix; document.getElementById('age5').value=AvalueSuffix; document.getElementById('age6').value=AwhereShown; document.getElementById('location1').checked=xlocation; document.getElementById('location2').value=LlabelPrefix; document.getElementById('location3').value=LlabelSuffix; document.getElementById('location4').value=LvaluePrefix; document.getElementById('location5').value=LvalueSuffix; document.getElementById('flags1').checked=xflags; document.getElementById('flags2').value=FlabelPrefix; document.getElementById('flags3').value=FlabelSuffix; document.getElementById('flags4').value=FvaluePrefix; document.getElementById('flags5').value=FvalueSuffix; document.getElementById('flags6').value=FwhereShown; document.getElementById('sound1').checked=xsound; document.getElementById('custom1').value=xcustom; } function saved() { document.getElementById("content").innerHTML="

The wrappers were successfuly saved, and the code has been updated

"; } load(); } } function sxprofile() { var quotechar='"'; var savexprofile='var beginxprofile; '; savexprofile+= 'var xage=' + document.getElementById("age1").checked + '; '; savexprofile+= 'var AlabelPrefix = ' + quotechar + document.getElementById("age2").value + quotechar + '; '; savexprofile+= 'var AlabelSuffix = ' + quotechar + document.getElementById("age3").value + quotechar + '; '; savexprofile+= 'var AvaluePrefix = ' + quotechar + document.getElementById("age4").value + quotechar + '; '; savexprofile+= 'var AvalueSuffix = ' + quotechar + document.getElementById("age5").value + quotechar + '; '; savexprofile+= 'var AwhereShown = ' + quotechar + document.getElementById("age6").value + quotechar + '; '; savexprofile+= 'var xlocation='+ document.getElementById("location1").checked + '; '; savexprofile+= 'var LlabelPrefix =' + quotechar + document.getElementById("location2").value + quotechar + '; '; savexprofile+= 'var LlabelSuffix =' + quotechar + document.getElementById("location3").value + quotechar + '; '; savexprofile+= 'var LvaluePrefix =' + quotechar + document.getElementById("location4").value + quotechar + '; '; savexprofile+= 'var LvalueSuffix =' + quotechar + document.getElementById("location5").value + quotechar + '; '; savexprofile+= 'var xflags='+ document.getElementById("flags1").checked + '; '; savexprofile+= 'var FlabelPrefix = ' + quotechar + document.getElementById("flags2").value + quotechar + '; '; savexprofile+= 'var FlabelSuffix = ' + quotechar + document.getElementById("flags3").value + quotechar + '; '; savexprofile+= 'var FvaluePrefix = ' + quotechar + document.getElementById("flags4").value + quotechar + '; '; savexprofile+= 'var FvalueSuffix = ' + quotechar + document.getElementById("flags5").value + quotechar + '; '; savexprofile+= 'var FwhereShown = ' + quotechar + document.getElementById("flags6").value + quotechar + '; '; savexprofile+= 'var xsound='+ document.getElementById("sound1").checked + '; '; savexprofile+= 'var xcustom=' + quotechar + document.getElementById("custom1").value + quotechar + '; '; savexprofile+= 'var endxprofile;'; var xprofile1 = document.getElementById("jswrapper").value.indexOf("var beginxprofile;"); var xprofile2 = document.getElementById("jswrapper").value.indexOf("var endxprofile;"); document.getElementById("jswrapper").value = document.getElementById("jswrapper").value.substring(0, xprofile1) + savexprofile + document.getElementById("jswrapper").value.substring(xprofile2+16, 9999999); if (xprofile1==-1 || xprofile2==-1) { document.getElementById("content").innerHTML="The XProfile variables have been tampered with in the javascript wrapper. You will need to reinstall this code to be able to use the Code CP function

"; } else { if (document.getElementById("age2").value.indexOf('"')!=-1 || document.getElementById("age3").value.indexOf('"')!=-1 || document.getElementById("age4").value.indexOf('"')!=-1 || document.getElementById("age5").value.indexOf('"')!=-1 || document.getElementById("location2").value.indexOf('"')!=-1 || document.getElementById("location3").value.indexOf('"')!=-1 || document.getElementById("location4").value.indexOf('"')!=-1 || document.getElementById("location5").value.indexOf('"')!=-1 || document.getElementById("flags2").value.indexOf('"')!=-1 || document.getElementById("flags3").value.indexOf('"')!=-1 || document.getElementById("flags4").value.indexOf('"')!=-1 || document.getElementById("flags5").value.indexOf('"')!=-1 || document.getElementById("custom1").value.indexOf('"')!=-1) { alert("You used double/normal quotes ("+quotechar+") in one of the text boxes. Please only use single/apostrophe quotes (')"); } else { document.getElementById("submit").value="Saving the wrappers"; document.getElementById("submit").disabled = true; save(); } } } function domain() { if(document.getElementById('userlinks').innerHTML.match("Admin CP") != null) { document.getElementById("domain").innerHTML=""; } } on = true off = false Age = [xage, AlabelPrefix, AlabelSuffix, AvaluePrefix, AvalueSuffix, AwhereShown] Location = [xlocation, LlabelPrefix, LlabelSuffix, LvaluePrefix, LvalueSuffix] Flags = [xflags, FlabelPrefix, FlabelSuffix, FvaluePrefix, FvalueSuffix, FwhereShown] SoundInProfile = xsound i = 0 newField = [] document.write(''); var iTable home=location.href.substr(0,location.href.lastIndexOf("/")) src="http://webpost.net/if/ifpaper/" flagsAt=src+"flags/" sPost=[] nFields=typeof(newField)!="undefined"?true:false fID=[[],[]] fVal=[[],[]] c=0 if(location.href.match("act=UserCP&CODE=22")) document.write("