vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   RPG Integration Hack /w Battle (BETA) (https://vborg.vbsupport.ru/showthread.php?t=46417)

sweet22 10-01-2003 09:21 AM

plz! someone help!

NightWalk8r 10-01-2003 11:41 PM

can someone please tell me how to get rid of the extra rpgname field??

*Screenshot Attached*

Blaine0002 10-02-2003 01:22 AM

ew that happned to me when i reinstalled.. i went into phpmyadmin and searched for %name% and found the one in modifyprofile, you should see 2 rpg name rows so delete the one with the higher ID number.

NightWalk8r 10-02-2003 01:57 AM

Code:

{htmldoctype}
<html>
<head>
<title>$bbtitle - Update profile</title>
$headinclude
</head>
<body>
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
$racearrays
$classarrays
$typearrays
function updateRaces(){
  with (document.profile.alignment){
    var choice = options[selectedIndex].value;
  }
  document.profile.rpgrace.length = 0;
    choice = eval(choice);
  for (var i=0;i<choice.length;i++){
    with (document.profile.rpgrace){
      options[length] = new Option(choice[i],choice[++i],false,false);
    }
  }
  if ((parseInt(navigator.appVersion) < 5) && (navigator.appName == "Netscape"))  {        history.go(0);
  }
}

function updateType(){
  with (document.profile.rpggender){
    var gender = options[selectedIndex].value;
  }
  if (gender == "gd1"){
    with (document.profile.rpgclass){
      var rclass = options.selectedIndex;
    }
    rclass = eval(rclass);
    document.profile.rpgtypename.value = typename1[rclass];
    document.profile.rpgtypeid.value = typeid1[rclass];

  } else if(gender == "gd2") {
    with (document.profile.rpgclass){
      var rclass = options.selectedIndex;
    }
    rclass = eval(rclass);
    document.profile.rpgtypename.value = typename2[rclass];
    document.profile.rpgtypeid.value = typeid2[rclass];
  } else {
    document.profile.rpgtypename.value = typename0[0];
    document.profile.rpgtypeid.value = typeid0[0];

  }
  if ((parseInt(navigator.appVersion) < 5) && (navigator.appName == "Netscape"))  {        history.go(0);
  }
}

function updateClasses(){
  with (document.profile.rpggender){
    var choice = options[selectedIndex].value;
  }
  document.profile.rpgclass.length = 0;
    choice = eval(choice);
  for (var i=0;i<choice.length;i++){
    with (document.profile.rpgclass){
      options[length] = new Option(choice[i],choice[++i],false,false);
    }
  }
  document.profile.rpgtypename.value = typename0[0];
  document.profile.rpgtypeid.value = typeid0[0];
  updateType();
  if ((parseInt(navigator.appVersion) < 5) && (navigator.appName == "Netscape"))  {        history.go(0);
  }
}
//-->
</script>
$header

<!-- breadcrumb -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
        <td width="100%"><img src="{imagesfolder}/vb_bullet.gif" align="middle" alt="vBulletin">
        <normalfont><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a> &gt;
        <a href="usercp.php?s=$session[sessionhash]">User Control Panel For $bbuserinfo[username]</a> &gt;
        Edit Profile</b></normalfont></td>
</tr>
</table>
<!-- /breadcrumb -->

<br>
$cpnav
<br>

<center>$coppatext</center>

<form name="profile" action="member.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]">

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
        <td bgcolor="{categorybackcolor}" colspan="2"><normalfont color="{categoryfontcolor}"><b>Edit Profile - $bbuserinfo[username]</b></normalfont></td>
</tr>
<tr>
        <td bgcolor="{tableheadbgcolor}" colspan="2"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>Registration: Required Information</b></normalfont>
        <smallfont color="{tableheadtextcolor}" class="thtcolor">All fields are required.</smallfont></td>
</tr>
$parentemail
<tr>
        <td bgcolor="{secondaltcolor}"><normalfont><b>Email Address:</b></normalfont></td>
        <td bgcolor="{secondaltcolor}"><normalfont><input type="text" class="bginput" name="email" value="$bbuserinfo[email]" size="30" maxlength="150"></normalfont></td>
</tr>
<tr>
        <td bgcolor="{secondaltcolor}"><normalfont><b>Confirm Email Address:</b></normalfont></td>
        <td bgcolor="{secondaltcolor}"><normalfont><input type="text" class="bginput" name="emailconfirm" value="$bbuserinfo[email]" size="30" maxlength="150"></normalfont></td>
</tr>


<tr>
        <td bgcolor="{tableheadbgcolor}" colspan="2"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>Optional Information</b></normalfont> <smallfont color="{tableheadtextcolor}" class=thtcolor>All information will be viewable by other $bbtitle members.</smallfont></td>
</tr>



<tr>
        <td bgcolor="{secondaltcolor}"><b><normalfont>Homepage:</normalfont></b></td>
        <td bgcolor="{secondaltcolor}"><normalfont><input type="text" class="bginput" name="homepage" value="$bbuserinfo[homepage]" size="30" maxlength="200"></normalfont></td>
</tr>
<tr>
        <td bgcolor="{firstaltcolor}"><b><normalfont>ICQ Number:</normalfont></b></td>
        <td bgcolor="{firstaltcolor}"><normalfont><input type="text" class="bginput" name="icq" value="$bbuserinfo[icq]" size="30" maxlength="30"></normalfont></td>
</tr>
<tr bgcolor="{secondaltcolor}">
        <td><b><normalfont>AOL Instant Messenger Handle:</normalfont></b></td>
        <td><normalfont><input type="text" class="bginput" name="aim" value="$bbuserinfo[aim]" size="30" maxlength="30"></normalfont></td>
</tr>
<tr>
        <td bgcolor="{firstaltcolor}"><b><normalfont>Yahoo Messenger Handle:</normalfont></b></td>
        <td bgcolor="{firstaltcolor}"><normalfont><input type="text" class="bginput" name="yahoo" value="$bbuserinfo[yahoo]" size="30" maxlength="30"></normalfont></td>
</tr>
<tr>
        <td bgcolor="{secondaltcolor}" valign="top"><b><normalfont>Signature:</normalfont></b><br>
        <smallfont>Optional signature you may use to appear at bottom of your posts.</smallfont>
                <p><smallfont>HTML code is $htmlonoff<br>
                <a href="misc.php?s=$session[sessionhash]&amp;action=bbcode">vB Code</A> is $bbcodeonoff<br>
                [img] code is $imgcodeonoff<br>
                <a href="misc.php?s=$session[sessionhash]&amp;action=showsmilies">Smilies</a> are $smiliesonoff
                </smallfont></p></td>
        <td bgcolor="{secondaltcolor}"><textarea name="signature" rows="6" cols="40">$signature</textarea></td>
</tr>
$birthday
$customtext
<tr>
        <td bgcolor="{tableheadbgcolor}" colspan="2"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>Additional Information</b></normalfont></td>
</tr>
$customfields
<tr>

<td bgcolor="$bgcolor"><normalfont><b>Element Type:</b></normalfont><br>
                <smallfont>The Element type you want to be at the boards.</smallfont></td>
                <td bgcolor="$bgcolor"><normalfont>

                <select name="element">
                              $elementoptions
                </select>

                </normalfont></td>
                </tr>
<tr>
                <td bgcolor="$bgcolor"><normalfont><b>RPG Alignment:</b></normalfont><br>
                <smallfont>The side you want your character to be on the RPG.</smallfont></td>
                <td bgcolor="$bgcolor"><normalfont>
                    <select name="alignment" onchange="updateRaces()">
        $alignmentoptions
                    </select></normalfont></td>
</tr>
<tr>
                <td bgcolor="$bgcolor"><normalfont><b>RPG Race:</b></normalfont><br>
                <smallfont>The Race you want your character to be on the RPG.</smallfont></td>
                <td bgcolor="$bgcolor"><normalfont>
                            <select name="rpgrace">
        $raceoptions
                    </select></normalfont></td>
</tr>
<tr>
                <td bgcolor="$bgcolor"><normalfont><b>RPG Gender:</b></normalfont><br>
                <smallfont>This would be your RPG Character's Gender, not your gender in real life.</smallfont></td>
                <td bgcolor="$bgcolor"><normalfont>
                    <select name="rpggender" onchange="updateClasses()">
        $genderoptions
                    </select></normalfont></td>
</tr>

<tr>
                <td bgcolor="$bgcolor"><normalfont><b>RPG Class:</b></normalfont><br>
                <smallfont>The Class you want your character to be on the RPG.</td>
                <td bgcolor="$bgcolor"><smallfont>
                <select name="rpgclass" onchange="updateType()">
$classoptions
</select></smallfont>

</td>
</tr>
<tr>
<td bgcolor="$bgcolor"><normalfont><b>RPG Type:</b></normalfont><br><smallfont>Your type is automatically determined by your class.</smallfont></td>

<td bgcolor="$bgcolor" >
<input type="text" class="bginput" name="rpgtypename" value="$rpgtypename" length="30" READONLY><input type="hidden" name="rpgtypeid" value="$rpgtypeid">
</td>
</tr>
<tr>
                <td bgcolor="$bgcolor"><normalfont><b>Build Stats</b></normalfont><br>
                <smallfont>Click here if you want to have stats shown on the board.</smallfont></td>
                <td bgcolor="$bgcolor"><normalfont>
<input type="checkbox" name="updatestats">Update stats
                </normalfont></td>
                </tr>

</table>
</td></tr></table>

<br>

<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
        <td align="center"><normalfont>
        <input type="hidden" name="action" value="updateprofile">
        <input type="submit" class="bginput" name="Submit" value="Submit Modifications" accesskey="s">
        <input type="reset" class="bginput" name="Reset" value="Reset Fields">
        </normalfont></td>
</tr>
</table>

</form>

$footer

</body>
</html>

ok.......that's my modifyprofile template.
what's wrong w/ it? =(
TIA~

deathemperor 10-02-2003 03:27 AM

ok. i installed this, and everything goes steady, EXCEPT:
when my friend and me try to make a battle, he created a challenge, i received a message like "You have been challenged.It is battle number 3 and is called death. There is $0 at stake in this battle. Your battle password is ''. To go to your battle click here"
I gave no changes for that quote, and as you may see, the password is not displayed. The password was created is "123" ( without the quote ), and when i click "here" it shew the accept/decline, I chose accept. AND THE NEXT PAGE, it said "invalid password or battle id" ( or something mostly like that ).
We tried it several times after that, and it show the same. Even when I used the adminCP to make a password for the battle ( it shows no password when admin view battles ), it still says error >_< .
How can i get over this things ? quick help please...
thanks

mr e 10-02-2003 04:25 AM

NightWalk8r, go into your PHPMyAdmin and go into the vBulletin database, then go to the "profilefield" table and go to Browse, from there find the second RPG name field and click Delete.

Darkwaltz 10-02-2003 11:54 AM

could someone paste all there battle options here as all mine seeem out of proportion. As in my hp is low but attacks take off loads..

deathemperor 10-02-2003 12:25 PM

sorry, I have my post here again, just to make sure that there will be someone solve it for me

Quote:

ok. i installed this, and everything goes steady, EXCEPT:
when my friend and me try to make a battle, he created a challenge, i received a message like "You have been challenged.It is battle number 3 and is called death. There is $0 at stake in this battle. Your battle password is ''. To go to your battle click here"
I gave no changes for that quote, and as you may see, the password is not displayed. The password was created is "123" ( without the quote ), and when i click "here" it shew the accept/decline, I chose accept. AND THE NEXT PAGE, it said "invalid password or battle id" ( or something mostly like that ).
We tried it several times after that, and it show the same. Even when I used the adminCP to make a password for the battle ( it shows no password when admin view battles ), it still says error >_< .
How can i get over this things ? quick help please...
thanks

NightWalk8r 10-02-2003 12:36 PM

awesome!!!!
thx a lot mr e :D

Telchar 10-02-2003 02:08 PM

Quote:

Originally Posted by deathemperor1st
ok. i installed this, and everything goes steady, EXCEPT:
when my friend and me try to make a battle, he created a challenge, i received a message like "You have been challenged.It is battle number 3 and is called death. There is $0 at stake in this battle. Your battle password is ''. To go to your battle click here"
I gave no changes for that quote, and as you may see, the password is not displayed. The password was created is "123" ( without the quote ), and when i click "here" it shew the accept/decline, I chose accept. AND THE NEXT PAGE, it said "invalid password or battle id" ( or something mostly like that ).
We tried it several times after that, and it show the same. Even when I used the adminCP to make a password for the battle ( it shows no password when admin view battles ), it still says error >_< .
How can i get over this things ? quick help please...
thanks

Replace all "$key" with "$key1" in battle.php.
Then, in template battle_newbattle, find "key" and replace it with "key1".

Bitsys posted the solution to this in https://vborg.vbsupport.ru/showpost....postcount=2216


All times are GMT. The time now is 11:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05876 seconds
  • Memory Usage 1,812KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete