Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
RPG Elements Hack Add-on Details »»
RPG Elements Hack Add-on
Version: 1.00, by [D]Vincent [D]Vincent is offline
Developer Last Online: Jul 2003 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-15-2002 Last Update: Never Installs: 3
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-16-2002, 06:25 PM
Attrox's Avatar
Attrox Attrox is offline
 
Join Date: Jan 2002
Location: St.Paul, MN
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #3  
Old 08-16-2002, 07:33 PM
ULTIMATESSJ's Avatar
ULTIMATESSJ ULTIMATESSJ is offline
 
Join Date: Nov 2001
Location: Bristol, England
Posts: 315
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 08-17-2002, 01:34 AM
[D]Vincent's Avatar
[D]Vincent [D]Vincent is offline
 
Join Date: Jun 2002
Location: In my own little world?
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04039 seconds
  • Memory Usage 2,237KB
  • Queries Executed 17 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete