vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   RPG Elements Hack Add-on (https://vborg.vbsupport.ru/showthread.php?t=42372)

[D]Vincent 08-15-2002 10:00 PM

RPG Elements Hack Add-on
 
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:
PHP Code:

  $signature=htmlspecialchars($bbuserinfo[signature]); 

Add this under that:
PHP Code:

  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.

Attrox 08-16-2002 06:25 PM

Thanks, I like this hack. I've had many users complaining about that, and had no clue how to fix it...so I uninstalled it. :devious: Now I can re-install, thanks alot...

ULTIMATESSJ 08-16-2002 07:33 PM

great, but wouldn't it have been better to post it in the original hack, still it is very useful, nice work

/me clicks on install

[D]Vincent 08-17-2002 01:34 AM

I guess it would have but this makes it easier to find lol, kind of.


All times are GMT. The time now is 11:19 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.01052 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete