[D]Vincent
08-15-2002, 10:00 PM
Vincent]This is an add-on for the RPG Elements Hack by zajako
All this does is make your element stay selected whenever you select it and go back to your profile.
And now to get started.
Open vb/member.php
Find:
$signature=htmlspecialchars($bbuserinfo[signature]);
Add this under that:
if ($bbuserinfo[element] == "0") {
$element_select[none] = " selected";
} elseif ($bbuserinfo[element] == "1") {
$element_select[light] = " selected";
} elseif ($bbuserinfo[element] == "2") {
$element_select[water] = " selected";
} elseif ($bbuserinfo[element] == "3") {
$element_select[wind] = " selected";
} elseif ($bbuserinfo[element] == "4") {
$element_select[lightning] = " selected";
} elseif ($bbuserinfo[element] == "5") {
$element_select[earth] = " selected";
} elseif ($bbuserinfo[element] == "6") {
$element_select[fire] = " selected";
} elseif ($bbuserinfo[element] == "7") {
$element_select[dark] = " selected";
} elseif ($bbuserinfo[element] == "8") {
$element_select[omega] = " selected";
} elseif ($bbuserinfo[element] == "9") {
$element_select[alpha] = " selected";
}
Save and upload.
Login to Admin CP, go to Templates > Modify > Template Set > User Info Display Templates > editprofile
Find:
<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">
<option value="0" selected>None</option>
<option value="1" >Light</option>
<option value="2" >Water</option>
<option value="3" >Wind</option>
<option value="4" >Lightning</option>
<option value="5" >Earth</option>
<option value="6" >Fire</option>
<option value="7" >Dark</option>
</select>
</normalfont></td>
</tr>
Replace that with:
<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">
<option value="0"$element_select[none]>None</option>
<option value="1"$element_select[light]>Light</option>
<option value="2"$element_select[water]>Water</option>
<option value="3"$element_select[wind]>Wind</option>
<option value="4"$element_select[lightning]>Lightning</option>
<option value="5"$element_select[earth]>Earth</option>
<option value="6"$element_select[fire]>Fire</option>
<option value="7"$element_select[dark]>Dark</option>
</select>
</normalfont></td>
</tr>
And you're done. Easy enough eh?
This hack is nothing big, just annoyed me a little too much on having to select my element everytime I edit my profile so I finally did this.
All this does is make your element stay selected whenever you select it and go back to your profile.
And now to get started.
Open vb/member.php
Find:
$signature=htmlspecialchars($bbuserinfo[signature]);
Add this under that:
if ($bbuserinfo[element] == "0") {
$element_select[none] = " selected";
} elseif ($bbuserinfo[element] == "1") {
$element_select[light] = " selected";
} elseif ($bbuserinfo[element] == "2") {
$element_select[water] = " selected";
} elseif ($bbuserinfo[element] == "3") {
$element_select[wind] = " selected";
} elseif ($bbuserinfo[element] == "4") {
$element_select[lightning] = " selected";
} elseif ($bbuserinfo[element] == "5") {
$element_select[earth] = " selected";
} elseif ($bbuserinfo[element] == "6") {
$element_select[fire] = " selected";
} elseif ($bbuserinfo[element] == "7") {
$element_select[dark] = " selected";
} elseif ($bbuserinfo[element] == "8") {
$element_select[omega] = " selected";
} elseif ($bbuserinfo[element] == "9") {
$element_select[alpha] = " selected";
}
Save and upload.
Login to Admin CP, go to Templates > Modify > Template Set > User Info Display Templates > editprofile
Find:
<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">
<option value="0" selected>None</option>
<option value="1" >Light</option>
<option value="2" >Water</option>
<option value="3" >Wind</option>
<option value="4" >Lightning</option>
<option value="5" >Earth</option>
<option value="6" >Fire</option>
<option value="7" >Dark</option>
</select>
</normalfont></td>
</tr>
Replace that with:
<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">
<option value="0"$element_select[none]>None</option>
<option value="1"$element_select[light]>Light</option>
<option value="2"$element_select[water]>Water</option>
<option value="3"$element_select[wind]>Wind</option>
<option value="4"$element_select[lightning]>Lightning</option>
<option value="5"$element_select[earth]>Earth</option>
<option value="6"$element_select[fire]>Fire</option>
<option value="7"$element_select[dark]>Dark</option>
</select>
</normalfont></td>
</tr>
And you're done. Easy enough eh?
This hack is nothing big, just annoyed me a little too much on having to select my element everytime I edit my profile so I finally did this.