Thread: Add-On Releases - World of Warcraft Recruitment Form
View Single Post
  #154  
Old 12-13-2008, 07:35 AM
mikey1974 mikey1974 is offline
 
Join Date: Jan 2008
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am no genious when it comes to php but i gave this a go for the sake of my sanity when WotLK was released.....its worked on our forum and i stress this is a short term fix till electricstorm or someone with the same know how starts to work on this script again

download Electricstorms product file and then edit it using what ever package you need, then make the following changes, it looks long but alot of it is just same old, same old

find
Code:
$dropdownchoice1i = $vbphrase[wow_form_warrior];
underneath add:
Code:
$dropdownchoice1j = $vbphrase[wow_form_deathknight];
then find:
Code:
$dropdownchoice5i = $vbphrase[wow_form_holy];
underneath add:
Code:
$dropdownchoice5j = $vbphrase[wow_form_blood];

then find:
Code:
$dropdownchoice6i = $vbphrase[wow_form_protection];
underneath add:
Code:
$dropdownchoice6i = $vbphrase[wow_form_frost];

then find:
Code:
$dropdownchoice7h = $vbphrase[wow_form_survival];
underneath add:
Code:
$dropdownchoice7i = $vbphrase[wow_form_unholy];

then find:
Code:
$dropdownchoice8j = $vbphrase[wow_form_skinning];
underneath add:
Code:
$dropdownchoice8k = $vbphrase[wow_form_inscription];

find:
Code:
					<option value="$dropdownchoice1i" <if condition="$dropdownchoice1i == $dropdownanswer1">selected="selected"</if>>$dropdownchoice1i</option>
underneath:
Code:
					<option value="$dropdownchoice1j" <if condition="$dropdownchoice1j == $dropdownanswer1">selected="selected"</if>>$dropdownchoice1j</option>
find:
Code:
				<option value="$dropdownchoice5i" <if condition="$dropdownchoice5i == $dropdownanswer5">selected="selected"</if>>$dropdownchoice5i</option>
underneath add:
Code:
				<option value="$dropdownchoice5j" <if condition="$dropdownchoice5j == $dropdownanswer5">selected="selected"</if>>$dropdownchoice5j</option>
find:
Code:
				<option value="$dropdownchoice6i" <if condition="$dropdownchoice6i == $dropdownanswer6">selected="selected"</if>>$dropdownchoice6i</option>
underneath:
Code:
				<option value="$dropdownchoice6j" <if condition="$dropdownchoice6j == $dropdownanswer6">selected="selected"</if>>$dropdownchoice6j</option>
find:
Code:
				<option value="$dropdownchoice7h" <if condition="$dropdownchoice7h == $dropdownanswer7">selected="selected"</if>>$dropdownchoice7h</option>
underneath:
Code:
				<option value="$dropdownchoice7i" <if condition="$dropdownchoice7i == $dropdownanswer7">selected="selected"</if>>$dropdownchoice7i</option>
find:
Code:
				<option value="$dropdownchoice8j" <if condition="$dropdownchoice8j == $dropdownanswer8">selected="selected"</if>>$dropdownchoice8j</option>
underneath:
Code:
				<option value="$dropdownchoice8k" <if condition="$dropdownchoice8k == $dropdownanswer8">selected="selected"</if>>$dropdownchoice8k</option>

Find:
Code:
			<phrase name="wow_form_warrior" date="0" username="Elricstorm" version="1.0.1"><![CDATA[Warrior]]></phrase>
underneath add:
Code:
			<phrase name="wow_form_deathknight" date="0" username="Elricstorm" version="1.0.1"><![CDATA[DeathKnight]]></phrase>

find:
Code:
			<phrase name="wow_form_affliction" date="0" username="Elricstorm" version="1.0.1"><![CDATA[Affliction]]></phrase>
underneath add:
Code:
			<phrase name="wow_form_blood" date="0" username="Elricstorm" version="1.0.1"><![CDATA[Blood]]></phrase>

find:
Code:
			<phrase name="wow_form_combat" date="0" username="Elricstorm" version="1.0.1"><![CDATA[Combat]]></phrase>
underneath add:
Code:
			<phrase name="wow_form_frost" date="0" username="Elricstorm" version="1.0.1"><![CDATA[Frost]]></phrase>

find:
Code:
			<phrase name="wow_form_destruction" date="0" username="Elricstorm" version="1.0.1"><![CDATA[Destruction]]></phrase>
underneath add:
Code:
			<phrase name="wow_form_unholy" date="0" username="Elricstorm" version="1.0.1"><![CDATA[Unholy]]></phrase>

find:
Code:
			<phrase name="wow_form_skinning" date="0" username="Elricstorm" version="1.0.1"><![CDATA[Skinning]]></phrase>
underneath add:
Code:
			<phrase name="wow_form_inscription" date="0" username="Elricstorm" version="1.0.1"><![CDATA[Inscription]]></phrase>

Right ok i cheated on the next part but it works, wont reflect it in the control panel but still it works ok on the form

find:
Code:
$dropdownchoice270 = "70";
work upwards changing the numbers so it looks like the following
Code:
$dropdownchoice264 = "74";
$dropdownchoice265 = "75";
$dropdownchoice266 = "76";
$dropdownchoice267 = "77";
$dropdownchoice268 = "78";
$dropdownchoice269 = "79";
$dropdownchoice270 = "80";
get the idea take it all the way down to 11 instead of lvl 1, if you have someone applying to join your guild below level 11 that then tough titty for them. I think thats about it then simply save your work / re-apply the product overwriting the one you had previously installed and it should work great.

Again i stress, i just looked at the file and made the next logical steps i claim no glory for this its electricstorms work that takes all the credit and as i said i am the village idiot so if it takes over the world dont blame me LOL
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01344 seconds
  • Memory Usage 1,816KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (32)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete