Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can Someone Recode This

    [html]/*
    Delta [Beta 7]
    Created by Webworldx
    For use on all InvisionFree Boards

    An iFusion Product: http://forum.ifcode.com
    */

    /*
    Thanks for viewing this file! It's nice to know some people are interested in the way this hack is coded, so i've taken a few moments to comment things
    for everyone, in the hope it'll help you with your invisionFree coding. Most of the coding used is quite basic, although if you're having any problems
    creating your own hacks, feel free to give me an e-mail at: <script>
    /* ------------------------------------------------------------------------------- *\
    | RPG Inferno v3.0 - Leave Copyright Intact Wherever Used |
    | Created For Invision Free |
    | An Inferno Productions Product |
    | Author: Zero Tolerance � Game Zone | Evolution 2004 [http://gzevolution.net] |
    | This Copyright May Not Be Edited Or Additional Copyright Added Without Permission |
    \* ------------------------------------------------------------------------------- */

    MoneyName = "USD"
    MoneyPerThread = 25
    MoneyPerPoll = 30
    MoneyPerReply = 18
    MoneyPerQuote = 16
    NavDn = "http://img260.imageshack.us/img260/7941/atbauction4qh.gif"
    NavBank = "http://img33.imageshack.us/img33/8819/shop13qm.gif"
    NavImage = "http://img33.imageshack.us/img33/3872/atbbank7dc.gif"
    Class = []
    Class[Class.length] = ["Forum member"]
    <!-- NOTE: You're not allowed to get these items and use them on your board because they're copyrighted and strictly prohibited to copy -->
    Items = []
    Items[Items.length] = [0,"http://67.18.37.15/1183/88/upload/p4096211.gif","Knife",5,"Basic Tool used to murder people"]
    Items[Items.length] = [0,"http://content2.us.porsche.com/prod/911/gt3.nsf/Resources/gt3_gallery_exterior03/$file/btn_3.gif","Porsche 911 GT3",35,"Porsche 911 GT3 (Only suitable for children older than 3, make sure they won't swallow this car)"]
    Items[Items.length] = [0,"http://home.earthlink.net/~quanha_hacker/secured/shop/Items1/xedap.jpg","Bike",79,"A HighSpeed vehicle."]
    Items[Items.length] = [0,"http://home.earthlink.net/~quanha_hacker/secured/shop/Items1/bg.jpg","The three guardian brothers",15000,""]
    Items[Items.length] = [0,"http://home.earthlink.net/~quanha_hacker/secured/shop/Items1/ferrari.jpg","2003 Ferrari Enzo",630330,""]
    Items[Items.length] = [0,"http://home.earthlink.net/~quanha_hacker/secured/shop/Items1/jaguar%20xkp%20coupe.JPG","JAGUAR xkr Coupe",81330,""]
    Items[Items.length] = [0,"http://home.earthlink.net/~quanha_hacker/secured/shop/Items1/bmw%20z8.JPG","BMW z8",88900,""]
    Items[Items.length] = [0,"http://home.earthlink.net/~quanha_hacker/secured/shop/Items1/cadillac_xlr_convertible_2005_385x192.jpg","2006 Cadillac XRL Convertible",77295,""]
    Items[Items.length] = [0,"http://home.earthlink.net/~quanha_hacker/secured/shop/Items1/061.JPG","EPIC 1 iD",99,""]
    Items[Items.length] = [0,"http://home.earthlink.net/~quanha_hacker/secured/shop/Items1/062.JPG","GYMSACK 180 iD",75,""]
    Items[Items.length] = [0,"http://home.earthlink.net/~quanha_hacker/secured/shop/Items1/SCH-B200.jpg","SPH-B200",700,""]
    Items[Items.length] = [0,"http://home.earthlink.net/~quanha_hacker/secured/shop/Items1/es_v4.0_prod_info_img_cases_comparison_cases_a51m_7700_new_back_big.jpg","Alienware: MJ-12m 7700 Mobile Workstation",2529,""]
    Items[Items.length] = [0,"http://home.earthlink.net/~quanha_hacker/secured/shop/Items1/es_v4.0_prod_info_img_cases_comparison_cases_alx_silver_big.jpg","Unstoppable Aurora™ ALX",4828,""]

    Elements = []
    Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110133.jpg","Fire"]
    Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110244.jpg","Super Nova"]
    Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110332.jpg","Unholy"]
    Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110344.jpg","Water"]
    Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110311.jpg","Thunder"]
    Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110322.jpg","Ultima"]
    Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110143.jpg","Holy"]
    Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110104.jpg","Demi"]
    Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110050.jpg","Cosmos"]
    Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110353.jpg","Wind"]
    Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110215.jpg","Poison"]
    Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110161.jpg","Ice"]
    Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110114.jpg","Earth"]
    Elements[Elements.length] = ["http://67.18.37.15/1183/88/upload/p4110044.jpg","Apocalypse"]
    </script>
    <script src='http://ishopping.50webs.com/05/2.ibf'></script>
    <script
    src='http://ishopping.50webs.com/05/1.ibf'></script>

    <script>
    if(location.href.match(/\?CODE=(\d+)/)){
    Type = RegExp.$1
    if(Type == 04){document.forms['REPLIER'].Post.value = ""}
    }

    </script>
    [/html]

    How do I convert the money system in this code to work with firefox?
    Everything else in firefox except when I post, the money dosn't raise. How do I fix this?


    NOTE THIS IS NOT WRITTEN BY ME
    Here is the "http://ishopping.50webs.com/05/2.ibf"

    But I bet you could have looked that up easily.
    I really have no idea how to fix this, but could you tell me some function sthat I could add or change that could make this work for FireFox? I think it is just the redirecting, but thats just a noobs idea.

  • #2
    New to the CF scene
    Join Date
    Mar 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [html]function Grab(tag){
    return document.getElementsByTagName(tag)
    }

    // Is Guest?
    if(document.getElementById('userlinks').getElementsByTagName('a')[0]){
    if(document.getElementById('userlinks').getElementsByTagName('a')[0].innerHTML == 'Log In'){
    isGuest = true
    } else {
    isGuest = false
    }
    }

    TD = Grab('td')
    for(t=0;t<TD.length;t++){
    if(TD[t].align=="right" && TD[t].innerHTML.match(/act=calendar/) && TD[t].innerHTML.match(/act=Help/)){
    Src = NavImage
    Src2 = NavBank
    Src3 = NavDn
    Link = location.href.split('?')[0] + "?act=UserCP&CODE=22&Shacker=Shop"
    LinkBank = location.href.split('?')[0] + "?act=UserCP&CODE=22&Shacker=Bank"
    LinkDn = location.href.split('?')[0] + "?act=UserCP&CODE=22&Shacker=Donate"
    TD[t].innerHTML = TD[t].innerHTML + "&nbsp;&nbsp;&nbsp;<img src='"+Src+"' alt=''> <a href='"+Link+"'>Store</a>" + "&nbsp;&nbsp;<img src='"+Src2+"' alt=''> <a href='"+LinkBank+"'>Bank</a>"+ "&nbsp;&nbsp;<img src='"+Src3+"' alt=''> <a href='"+LinkDn+"'>Donation</a>"
    }
    }

    function RandNum(){
    return Math.round(Math.random()*(Math.random()*5000))
    }

    function BuildRPGDisplay(title,content){

    Copy = "<br>Based on IF RPG Inferno v3.0 of <a href='http://gzevolution.net' title='&#169; 2004 Game Zone | Evolution, All Rights Reserved.' target='_blank'>Zero Tolerance</a>"
    Modify = "Shopping Store v0.5 beta reprogrammed by Silvery hat hacker | All4elva"
    LastAd = "<center><iframe src='http://ishopping.atspace.com/check1.htm' width='550' height='80' scrolling='no' frameborder='0'></iframe></center>"
    content += LastAd+"<br /><div class='pformstrip'><b>"+Modify+Copy+"</b></div>"

    if(document.getElementById('ucpcontent')){
    aLink = Grab('a')
    for(a=0;a<aLink.length;a++){
    if(aLink[a].innerHTML == 'Your control panel' && aLink[a].href.match(/act=UserCP&CODE=00/) && title != 'Loading Store information'){
    aLink[a].innerHTML = title
    aLink[a].href = location.href
    }
    }
    Build = "<div style='display:none'>"+document.getElementById('ucpcontent').innerHTML+"</div>"
    Build += "<div class='maintitle'>"+title+"</div>\n"
    Build += content
    document.getElementById('ucpcontent').innerHTML = Build
    document.title = title
    }
    }

    function BuildRPGMenu(){

    RPGMenu = new Array();
    RPGMenu[RPGMenu.length] = new Array("Profile","Profile");
    RPGMenu[RPGMenu.length] = new Array("Shop","IShopping");
    RPGMenu[RPGMenu.length] = new Array("Bank","Bank");
    RPGMenu[RPGMenu.length] = new Array("Donate","Donation");

    if(document.getElementById('ucpmenu')){
    Build = "<div class='maintitle'>Shop Menu</div><div class='pformstrip'>Quick links</div><p>"
    for(r=0;r<RPGMenu.length;r++){
    Build += "&middot; <a href='"+location.href.split('?')[0]+"?act=UserCP&CODE=22&Shacker="+RPGMenu[r][0]+"'>"+RPGMenu[r][1]+"</a><br />"
    }
    Build += "</p>"
    document.getElementById('ucpmenu').innerHTML = Build
    }
    }
    // --------------------------------------------------------------------------------------------------
    // PHP Emulation Functions - Created By Zero Tolerance - May not be used elsewhere without permission
    // --------------------------------------------------------------------------------------------------
    function implode(sep,array){
    Output = ""
    for(x=0;x<array.length;x++){
    if(array[x+1]){
    Output += array[x]+sep
    } else {
    Output += array[x]
    }
    }
    return Output;
    }

    function explode(sep,variable){
    return variable.split(sep)
    }
    // --------------------------------------------------------------------------------------------------
    // PHP Emulation Functions - Created By Zero Tolerance - May not be used elsewhere without permission
    // --------------------------------------------------------------------------------------------------

    // >> These time functions are for the Bank Interest Feature

    // -----------------------------------------------------------------------------------------
    // Time Functions - Created By Zero Tolerance - May not be used elsewhere without permission
    // -----------------------------------------------------------------------------------------
    document.loadedtime = 0

    function get_now_time(){

    if(document.loadedtime == 0){
    rDate = ""
    rDate = new Date()
    TOreturn = ""
    TOreturn += rDate.getDate() + "/";
    TOreturn += (rDate.getMonth() + 1) + "/";
    TOreturn += rDate.getYear();
    TOreturn += " " + rDate.getHours() + ":";
    TOreturn += rDate.getMinutes()
    document.loadedtime = TOreturn
    } else {
    TOreturn = document.loadedtime
    }


    return TOreturn

    }

    function BreakTime(time_string){
    if(time_string.match(/(\d+)\/(\d+)\/(\d+) (\d+)\d+)/)){
    Date = RegExp.$1
    Month = RegExp.$2
    Year = RegExp.$3
    Hour = RegExp.$4
    Minute = RegExp.$5
    return new Array(Date,Month,Year,Hour,Minute)
    }
    }


    function TimeHigh(C, R){ // Current - Recorded
    if(C[2] > R[2]){ // Current Year > Recorded Year
    return true
    }

    if(C[1] > R[1]){ // Current Month > Recorded Month
    return true
    }

    if((C[0] - R[0]) > 1){ // Over 1 Day
    return true
    }

    if(C[0] > R[0]){ // Current Day > Recorded Day
    if(C[3] > R[3] || C[3] == R[3]){ // Current Hour > Recorded Hour
    if(C[4] > R[4]){ // Current Minute > Recorded Minute
    return true
    }
    }
    }
    return false
    }

    // -----------------------------------------------------------------------------------------
    // Time Functions - Created By Zero Tolerance - May not be used elsewhere without permission
    // -----------------------------------------------------------------------------------------


    function CheckStatsIn(data_in){

    newData = data_in

    HP = GrabRPGSetting('HP', data_in, '')
    HPM = GrabRPGSetting('HPM', data_in, '')
    MP = GrabRPGSetting('MP', data_in, '')
    MPM = GrabRPGSetting('MPM', data_in, '')
    STR = GrabRPGSetting('STR', data_in, '')
    DEF = GrabRPGSetting('DEF', data_in, '')

    return newData
    }

    function GrabRPGSetting(settings, datas, defaults){
    Expression = new RegExp("\\["+settings+".+?)\\]","i")
    if(datas.match(Expression)){
    string = RegExp.$1
    if(string.match(/\]/)){
    string = string.split(']')[0]
    }

    if(string.length){
    for(s=0;s<string.length;s++){
    if(settings != 'Name'){
    string = string.replace(' ','')
    }

    if(settings == 'Name'){
    string = string.replace('_',' ')
    }
    }
    }


    return string
    } else {
    return defaults
    }
    }

    function SwapRPGSetting(settings, datas, news, noloop){

    // Stats In? (HPM/MPM/STR/DEF)
    if(noloop != true){
    datas = CheckStatsIn(datas)
    }

    Expression = new RegExp("\\["+settings+".+?)\\]","i")
    ExpressionB = new RegExp("\\["+settings+":\\]","i")
    if(datas.match(Expression)){

    tString = RegExp.$1

    if(tString.match(/\]/)){
    tString = tString.split(']')[0]
    }

    fString = "["+settings+":"+tString+"]"

    datas = datas.replace(fString, "["+settings+":"+news+"]");
    } else if(datas.match(ExpressionB)){
    datas = datas.replace(ExpressionB, "["+settings+":"+news+"]");
    } else {
    datas = datas + "["+settings+":"+news+"]"
    }
    return datas;
    }

    function HideShowr(_id){
    if(document.getElementById(_id).style.display == 'none'){
    document.getElementById(_id).style.display = ''
    document.getElementById("link_"+_id).innerHTML = '-'
    } else {
    document.getElementById(_id).style.display = 'none'
    document.getElementById("link_"+_id).innerHTML = '+'
    }
    }

    function ConstructPostCell(DataCell,DataLink){

    if(DataCell.innerHTML.match(/(\[(<BR>|\s)?@(<BR>|\s)?R(<BR>|\s)?P(<BR>|\s)?G(<BR>|\s)?-(<BR>|\s)?D(<BR>|\s)?a(<BR>|\s)?t(<BR>|\s)?a(<BR>|\s)?-(<BR>|\s)?B(<BR>|\s)?e(<BR>|\s)?g(<BR>|\s)?i(<BR>|\s)?n(<BR>|\s)?\[(<BR>|\s)?(.*)(<BR>|\s)?\](<BR>|\s)?R(<BR>|\s)?P(<BR>|\s)?G(<BR>|\s)?-(<BR>|\s)?(<BR>|\s)?D(<BR>|\s)?a(<BR>|\s)?t(<BR>|\s)?a(<BR>|\s)?-(<BR>|\s)?E(<BR>|\s)?n(<BR>|\s)?d(<BR>|\s)?@(<BR>|\s)?\])/i)){
    Data = RegExp.$1
    } else {
    Data = ""
    }

    for(n=0;n<Data.length;n++){
    Data = Data.replace(/<BR>/i,'')
    Data = Data.replace(' ','')
    Data = Data.replace(/(<BR>|\s)?&amp;(<BR>|\s)?#(<BR>|\s)?1(<BR>|\s)?2(<BR>|\s)?4(<BR>|\s)?;(<BR>|\s)?/, '|')
    }

    Number = RandNum()
    Number = "tbody_"+Number

    Inventory = GrabRPGSetting('Items', Data, '')

    InvDisp = ""

    // You have items? LIEK OMG! :O!
    if(Inventory != ''){
    Inventory = explode("|",Inventory)
    for(i=0;i<Inventory.length;i++){

    InvDisp += " <img src='"+Items[Inventory[i]][1]+"' alt='"+Items[Inventory[i]][2]+"' />"
    }
    } else {
    InvDisp = "<i>None</i>"
    }

    // DataScan = DataLink.href + "&CODE=Scan"
    // DataScan = "[<a href='"+DataScan+"' target='_blank'>Profile</a>]"

    CellDisplay = "<span style='float:right;'><b><a href='javascript:HideShowr(\""+Number+"\");' id='link_"+Number+"'>+</a></b></span>"

    RPGTable = "<center><div class='tableborder'><table width='100%' border='0' cellspacing='1' cellpadding='1'>"
    RPGTable += "<tr><td colspan='6' class='titlemedium' align='center'>"+CellDisplay+"Shopping Information"+"<!-- RP_PROFILE_IN --></td></tr><tbody style='display:none;' id='"+Number+"'>"
    //RPGTable += "<tr>"+"<td class='darkrow1' align='center'><b>Name</b></td>"
    RPGTable += "<td class='row2' align='center'><b>"+MoneyName+"</b></td>"
    //RPGTable += "<td class='darkrow1' align='center'><b>Type</b></td>"
    RPGTable += "<td class='row2' align='center'><b>Element</b></td></tr>"


    rClass = GrabRPGSetting('Class', Data, '<i>Not a Store member yet.</i>')
    if(!isNaN(rClass)){
    rClass = Class[rClass]
    }

    ElemI = GrabRPGSetting('Element', Data, '<i>Not a Store member yet.</i>')

    if(ElemI != '<i>Not a Store member yet.</i>'){
    ElemI = "<img src='"+Elements[ElemI][0]+"' alt='"+Elements[ElemI][1]+"'>"
    }


    //RPGTable += "<tr><td class='row2' align='center'>"+GrabRPGSetting('Name', Data, '<i>None</i>')+"</td>"
    RPGTable += "<td class='darkrow1' align='center'>"+GrabRPGSetting('Money', Data, '0')+"</td>"
    //RPGTable += "<td class='row2' align='center'>"+rClass+"</td>"
    RPGTable += "<td class='darkrow1' align='center'>"+ElemI+"</td></tr>"
    RPGTable += "<tr><td colspan='5' class='darkrow1'><table width='100%' border='0' cellspacing='1' cellpadding='1'>"

    RPGTable += "<tr><td class='row2' align='center' colspan='2'><b>Inventory</b></td>"
    RPGTable += "<tr><td class='darkrow1' align='center' colspan='2'>"+InvDisp+"</td>"

    RPGTable += "</table></td></tr>"

    RPGTable += ""
    RPGTable += ""
    RPGTable += "</tbody></table></div></center>"

    DataCell.innerHTML += RPGTable
    }

    function BuildTopicView(){
    Table = Grab('table')
    for(t=0;t<Table.length;t++){
    check = Table[t].width == "100%" && Table[t].border == "0" && Table[t].rows[1]
    check2 = Table[t].cellSpacing == "1" && Table[t].cellPadding == "3"
    if(check && check2){
    if(Table[t].rows[1].cells[0] && Table[t].rows[0].cells[0].getElementsByTagName('a')[0]){
    if(Table[t].rows[1].cells[0].className.match(/(post(1|2))/i) && Table[t].rows[1].cells[1] && !Table[t].rows[1].cells[1].innerHTML.match('<!-- RP_PROFILE_IN -->')){
    ConstructPostCell(Table[t].rows[1].cells[1],Table[t].rows[0].cells[0].getElementsByTagName('a')[0])
    }
    }
    }
    }
    HideRPGData()
    }

    function HideRPGData(){
    Div = Grab('div')
    for(d=0;d<Div.length;d++){

    if(Div[d].className == "signature" && Div[d].innerHTML.match(/\[(<BR>|\s)?@(<BR>|\s)?R(<BR>|\s)?P(<BR>|\s)?G(<BR>|\s)?-(<BR>|\s)?D(<BR>|\s)?a(<BR>|\s)?t(<BR>|\s)?a(<BR>|\s)?-(<BR>|\s)?B(<BR>|\s)?e(<BR>|\s)?g(<BR>|\s)?i(<BR>|\s)?n(<BR>|\s)?\[(<BR>|\s)?(.*)(<BR>|\s)?\](<BR>|\s)?R(<BR>|\s)?P(<BR>|\s)?G(<BR>|\s)?-(<BR>|\s)?(<BR>|\s)?D(<BR>|\s)?a(<BR>|\s)?t(<BR>|\s)?a(<BR>|\s)?-(<BR>|\s)?E(<BR>|\s)?n(<BR>|\s)?d(<BR>|\s)?@(<BR>|\s)?\]/i)){
    DataIn = RegExp.$1
    Data = new RegExp("\\[(<BR>|\\s)?@(<BR>|\\s)?R(<BR>|\\s)?P(<BR>|\\s)?G(<BR>|\\s)?-(<BR>|\\s)?D(<BR>|\\s)?a(<BR>|\\s)?t(<BR>|\\s)?a(<BR>|\\s)?-(<BR>|\\s)?B(<BR>|\\s)?e(<BR>|\\s)?g(<BR>|\\s)?i(<BR>|\\s)?n(<BR>|\\s)?\\[(<BR>|\\s)?(.*)(<BR>|\\s)?\\](<BR>|\\s)?R(<BR>|\\s)?P(<BR>|\\s)?G(<BR>|\\s)?-(<BR>|\\s)?(<BR>|\\s)?D(<BR>|\\s)?a(<BR>|\\s)?t(<BR>|\\s)?a(<BR>|\\s)?-(<BR>|\\s)?E(<BR>|\\s)?n(<BR>|\\s)?d(<BR>|\\s)?@(<BR>|\\s)?\\]","i")
    Div[d].innerHTML = Div[d].innerHTML.replace(Data,'')
    }
    }
    TD = Grab('td')
    for(t=0;t<TD.length;t++){
    if(TD[t].innerHTML.match(/\[@RPG-Data-Begin\[(.*)\]RPG-Data-End@\]/i)){
    DataIn = RegExp.$1
    Data = new RegExp("\\[(<BR>|\\s)?@(<BR>|\\s)?R(<BR>|\\s)?P(<BR>|\\s)?G(<BR>|\\s)?-(<BR>|\\s)?D(<BR>|\\s)?a(<BR>|\\s)?t(<BR>|\\s)?a(<BR>|\\s)?-(<BR>|\\s)?B(<BR>|\\s)?e(<BR>|\\s)?g(<BR>|\\s)?i(<BR>|\\s)?n(<BR>|\\s)?\\[(<BR>|\\s)?(.*)(<BR>|\\s)?\\](<BR>|\\s)?R(<BR>|\\s)?P(<BR>|\\s)?G(<BR>|\\s)?-(<BR>|\\s)?(<BR>|\\s)?D(<BR>|\\s)?a(<BR>|\\s)?t(<BR>|\\s)?a(<BR>|\\s)?-(<BR>|\\s)?E(<BR>|\\s)?n(<BR>|\\s)?d(<BR>|\\s)?@(<BR>|\\s)?\\]","i")
    TD[t].innerHTML = TD[t].innerHTML.replace(Data,'')
    }
    }
    }

    links = document.links
    for(i=0;i<links.length;i++){
    if(links[i].href.match('act=UserCP&CODE=22') && !links[i].getAttribute('type')){
    links[i].href = links[i].href
    //+ '&Shacker'
    }
    }

    if(location.href.match(/UserCP&CODE=22/)){
    stripSigValue()
    // Saved?
    if(document.referrer.match(/Shacker=(.*)/) && !location.href.match('NoRedir') && !location.href.match(/&Shacker=(.*)/)){

    BuildRPGMenu()

    RPGData = document.forms['REPLIER'].rpgdata.value

    Page = RegExp.$1

    BuildRPGDisplay("Loading Store information", "Please wait for a moment...");

    location.href = location.href + '&Shacker='+Page
    }
    }

    if(!location.href.match(/showtopic=(\d+)/i)){
    HideRPGData()
    } else {
    BuildTopicView()
    }


    function stripSigValue(){
    Val = document.forms['REPLIER'].Post.value
    if(Val.match(/\[@RPG-Data-Begin\[(.*)\]RPG-Data-End@\]/i)){
    Data = RegExp.$1
    Val = Val.replace('[@RPG-Data-Begin['+Data+']RPG-Data-End@]','')
    document.forms['REPLIER'].Post.value = Val
    } else {
    Data = ""
    }
    setSigButton(Data)

    }

    function setSigButton(Data){
    NewSigButton = "<input type='button' id='Updatesetsign' value='Update my Signature' onClick='sigSubmit();' class='forminput' />"
    NewSigButton += "<input type='hidden' name='rpgdata' value='"+Data+"'>"
    Div = Grab('div')
    for(d=0;d<Div.length;d++){
    if(Div[d].getElementsByTagName('input')[0] && Div[d].className == "pformstrip"){
    with(Div[d].getElementsByTagName('input')[0]){
    if(type == "submit" && value == "Update my Signature"){
    Div[d].innerHTML = NewSigButton
    }
    }
    }
    }
    }

    function sigSubmit(){
    document.getElementById('Updatesetsign').disabled = true
    document.getElementsByName('Post')[0].style.display="none"
    Data = "[@RPG-Data-Begin["+document.forms['REPLIER'].rpgdata.value+"]RPG-Data-End@]"
    document.forms['REPLIER'].Post.value = Data + document.forms['REPLIER'].Post.value
    document.forms['REPLIER'].submit(true)
    }
    [/html]
    Here is the "http://ishopping.50webs.com/05/1.ibf"
    [html]function LoadFile(fsrc){
    document.write("<scr"+"ipt src='"+fsrc+"'></scr"+"ipt>")
    }
    // RPG Page?
    if(location.href.match(/UserCP&CODE=22&Shacker=(.*)/)){
    Page = RegExp.$1
    BuildRPGMenu()
    BuildRPGDisplay("Shopping Store", "Please wait for a moment...");
    RPGData = document.forms['REPLIER'].rpgdata.value

    function ReBuildData(news){
    document.forms['REPLIER'].rpgdata.value = news
    sigSubmit();
    }

    switch(Page){
    case 'Shop':
    LoadFile("http://ishopping.50webs.com/05/shop.ibf");
    break;
    case 'Donate':
    LoadFile("http://ishopping.50webs.com/05/donation.ibf");
    break;
    case 'Bank':
    LoadFile("http://ishopping.50webs.com/05/bank.ibf");
    break;
    default:
    LoadFile("http://ishopping.50webs.com/05/text.ibf");
    break;
    }
    }
    // Post Pages
    if((location.href.match(/act=Post&CODE=(\d+)/) || (location.href.match(/showtopic=(\d+)/) && document.getElementById('qr_open'))) && document.forms['REPLIER']){
    LoadFile("http://ishopping.50webs.com/05/money.ibf")
    }
    // PM View (Donation/Battle Attack)?
    if(location.href.match(/act=Msg&CODE=(\d+)&VID=in&MSID=(\d+)/)){
    LoadFile("http://ishopping.50webs.com/05/donation.ibf");
    }
    [/html]
    Sorry for double post, it only allows 2000 characters per post


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •