Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
Prev Previous Post   Next Post Next
  #1  
Old 08-26-2007, 05:38 PM
y2krazy y2krazy is offline
 
Join Date: Jun 2003
Location: Houston, Texas
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default [Request] Guild Wars Build Addition Mod

Hello world! This is my first modification request in 4 years of membership, and it shouldn't be too difficult - at least that is my vision.

I am looking for a "Build Addition" modification that will allow a user to set "builds" in their UserCP with an option for them to be added to their Profile page, in their threads, in the Calendar, etc. (with AdminCP settings regarding permissions for allowance to post these based on their usergroup).

When needed, I can gather all of the Skill images required to do this and I have attached a few to help get you started.
  • Add_Build.jpg: What you could start with for the UserCP page to add a new build.
  • Skill_Bar.png: The image I would like to use for the Skill Bar in this mod.
  • In_Thread_Example.jpg: What a build added in a thread, calendar event, or profile could look like.
  • Optional.png (it wouldn't attach right, so I hosted it myself): An image that can be used for a skill slot that was left blank (some builds in this game do not use all 8 skill slots, but leave 1 or more available for a user to choose what they would like to).
You would also need another page to select where a specific build would be used (ie - shown in profile).

Another option would be to add a dropdown box in the Calendar and New Thread templates for a user to have the ability to include a build they have saved in the UserCP.

Image Directory (can be different, but this would be easiest): $bburl/images/gw/

List of all skills:

http://wiki.guildwars.com/wiki/List_of_assassin_skills
(scroll to the bottom of the page for each of the other profession's skill list)

PvX WiKi --- a website that hosts builds for the game; go here if you need some more ideas (but I don't want a rip from their coding).

I would VERY much appreciate someone taking care of this as I am sure that it does not require too much scripting (although, I've been wrong before). Let me know what you would need from me to get this done. Thanks for your time!

Regards,
Sean

Template Edits (I'm no expert, so these are best guess)

Quote:
Open USERCP_SHELL

Find:

Code:
<tr>
	<td class="thead">$vbphrase[miscellaneous]</td>
</tr>

Above it add:

Code:
<!-- my builds -->
<tr>
	<td class="thead">$vbphrase[my_builds]</td>
</tr>
<tr>
	<td class="alt2" nowrap="nowrap"><a class="smallfont" href="builds.php?$session[sessionurl]do=addnewbuild">$vbphrase[add_new_build]</a></td>
</tr>
<tr>
	<td class="alt2" nowrap="nowrap"><a class="smallfont" href="builds.php?$session[sessionurl]do=editbuilds">$vbphrase[edit_my_builds]</a></td>
</tr>
<!-- / my builds -->
Quote:
New Template: builds_add_new

Code:
$buildpreview

<form action="builds.php?do=addnewbuild" method="post" id="buildform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="addnewbuild" />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="tcat">$vbphrase[add_new_build]</td>
</tr>
<tr>
	<td class="panelsurround" align="center">
	<div class="panel">
		<div style="width:$stylevar[formwidth_usercp]" align="$stylevar[left]">
			
			<fieldset class="fieldset">
				<legend>$vbphrase[name_of_build]</legend>
				<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
				<tr>
					<td>$vbphrase[name_of_build_desc]<br /><input type="text" class="bginput" name="nameofbuild" id="tb_nameofbuild" value="(X/X) Change This" size="50" maxlength="50" /></td>
				</tr>
				</table>
			</fieldset>

			<fieldset class="fieldset">
				<legend>$vbphrase[build_type]</legend>
				<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
				<tr>
					<td>$vbphrase[build_type_desc]</td>
				</tr>
				<tr>
					<td>
						<div><label for="cb_pvx_build"><input type="checkbox" name="pvx_build" value="1" id="cb_pvx" $checked[pvx_build] />PvX</label><input type="hidden" name="set_builds[pvx]" value="1" /></div>
						<div><label for="cb_pve_build"><input type="checkbox" name="pve_build" value="1" id="cb_pve" $checked[pve_build] />PvE</label><input type="hidden" name="set_builds[pve]" value="1" /></div>
						<div><label for="cb_pvp_build"><input type="checkbox" name="pvp_build" value="1" id="cb_pvp" $checked[pvp_build] />PvP</label><input type="hidden" name="set_builds[pvp]" value="1" /></div>
						<div><label for="cb_gvg_build"><input type="checkbox" name="gvg_build" value="1" id="cb_gvg" $checked[gvg_build] />GvG</label><input type="hidden" name="set_builds[gvg]" value="1" /></div>
						<div><label for="cb_ab_build"><input type="checkbox" name="ab_build" value="1" id="cb_ab" $checked[ab_build] />AB</label><input type="hidden" name="set_builds[ab]" value="1" /></div>
						<div><label for="cb_ha_build"><input type="checkbox" name="ha_build" value="1" id="cb_ha" $checked[ha_build] />HA</label><input type="hidden" name="set_builds[ha]" value="1" /></div>
						<div><label for="cb_ta_build"><input type="checkbox" name="ta_build" value="1" id="cb_ta" $checked[ta_build] />TA</label><input type="hidden" name="set_builds[ta]" value="1" /></div>
						<div><label for="cb_ra_build"><input type="checkbox" name="ra_build" value="1" id="cb_ra" $checked[ra_build] />RA</label><input type="hidden" name="set_builds[ra]" value="1" /></div>
						<div><label for="cb_solo_build"><input type="checkbox" name="solo_build" value="1" id="cb_ra" $checked[solo_build] />Solo</label><input type="hidden" name="set_builds[solo]" value="1" /></div>
						<div><label for="cb_other_build"><input type="checkbox" name="other_build" value="1" id="cb_ra" $checked[other_build] />Other</label><input type="hidden" name="set_builds[other]" value="1" /></div>
					</td>
				</tr>
				</table>
			</fieldset>
			
			<fieldset class="fieldset">
				<legend><label for="sel_profession">$vbphrase[profession]</label></legend>
				<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
				<tr>
					<td>$vbphrase[profession_desc]</td>
				</tr>
				<tr>
					<td>
						<span style="float:$stylevar[right]">
						<select name="profession" id="sel_profession">
							<option value="1" $aselected>Assassin</option>
							<option value="2" $dselected>Dervish</option>
							<option value="3" $eselected>Elementalist</option>
							<option value="4" $meselected>Mesmer</option>
							<option value="5" $moselected>Monk</option>
							<option value="6" $nselected>Necromancer</option>
							<option value="7" $pselected>Paragon</option>
							<option value="8" $rselected>Ranger</option>
							<option value="9" $rtselected>Ritualist</option>
							<option value="10" $wselected>Warrior</option>
						</select>
						</span>
						<label for="sel_profession">$vbphrase[profession]:</label>
					</td>
				</tr>
				<tr>
					<td>
						<span style="float:$stylevar[right]">
						<select name="secondary" id="sel_secondary">
							<option value="1" $aselected>Assassin</option>
							<option value="2" $dselected>Dervish</option>
							<option value="3" $eselected>Elementalist</option>
							<option value="4" $meselected>Mesmer</option>
							<option value="5" $moselected>Monk</option>
							<option value="6" $nselected>Necromancer</option>
							<option value="7" $pselected>Paragon</option>
							<option value="8" $rselected>Ranger</option>
							<option value="9" $rtselected>Ritualist</option>
							<option value="10" $wselected>Warrior</option>
						</select>
						</span>
						<label for="sel_secondary">$vbphrase[secondary]:</label>
					</td>
				</tr>
				</table>
			</fieldset>

			<fieldset class="fieldset">
				<legend><label for="sel_skillset">$vbphrase[skillset]</label></legend>
				<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
				<tr>
					<td>$vbphrase[skillset_desc]</td>
				</tr>
				<tr>
					<td>
						<span style="float:$stylevar[right]">
						<select name="skill1" id="sel_skill1">
							<option value="1" $aselected>Skill A</option>
							<option value="2" $bselected>Skill B</option>
							<option value="3" $cselected>Skill C</option>
							<option value="4" $deselected>Skill D</option>
							<option value="5" $eoselected>Skill E</option>
							<option value="6" $fselected>Skill F</option>
							<option value="7" $gselected>Skill G</option>
							<option value="8" $hselected>Skill H</option>
							<option value="9" $itselected>Skill I</option>
							<option value="10" $jselected>Skill J</option>
						</select>
						</span>
						<label for="sel_skill1">$vbphrase[skill1]:</label>
					</td>
					<td>
						<span style="float:$stylevar[right]">
						<select name="skill2" id="sel_skill2">
							<option value="1" $aselected>Skill A</option>
							<option value="2" $bselected>Skill B</option>
							<option value="3" $cselected>Skill C</option>
							<option value="4" $deselected>Skill D</option>
							<option value="5" $eoselected>Skill E</option>
							<option value="6" $fselected>Skill F</option>
							<option value="7" $gselected>Skill G</option>
							<option value="8" $hselected>Skill H</option>
							<option value="9" $itselected>Skill I</option>
							<option value="10" $jselected>Skill J</option>
						</select>
						</span>
						<label for="sel_skill2">$vbphrase[skill2]:</label>
					</td>
				</tr>
				<tr>
					<td>
						<span style="float:$stylevar[right]">
						<select name="skill3" id="sel_skill3">
							<option value="1" $aselected>Skill A</option>
							<option value="2" $bselected>Skill B</option>
							<option value="3" $cselected>Skill C</option>
							<option value="4" $deselected>Skill D</option>
							<option value="5" $eoselected>Skill E</option>
							<option value="6" $fselected>Skill F</option>
							<option value="7" $gselected>Skill G</option>
							<option value="8" $hselected>Skill H</option>
							<option value="9" $itselected>Skill I</option>
							<option value="10" $jselected>Skill J</option>
						</select>
						</span>
						<label for="sel_skill3">$vbphrase[skill3]:</label>
					</td>
					<td>
						<span style="float:$stylevar[right]">
						<select name="skill4" id="sel_skill4">
							<option value="1" $aselected>Skill A</option>
							<option value="2" $bselected>Skill B</option>
							<option value="3" $cselected>Skill C</option>
							<option value="4" $deselected>Skill D</option>
							<option value="5" $eoselected>Skill E</option>
							<option value="6" $fselected>Skill F</option>
							<option value="7" $gselected>Skill G</option>
							<option value="8" $hselected>Skill H</option>
							<option value="9" $itselected>Skill I</option>
							<option value="10" $jselected>Skill J</option>
						</select>
						</span>
						<label for="sel_skill4">$vbphrase[skill4]:</label>
					</td>
				</tr>
				<tr>
					<td>
						<span style="float:$stylevar[right]">
						<select name="skill5" id="sel_skill5">
							<option value="1" $aselected>Skill A</option>
							<option value="2" $bselected>Skill B</option>
							<option value="3" $cselected>Skill C</option>
							<option value="4" $deselected>Skill D</option>
							<option value="5" $eoselected>Skill E</option>
							<option value="6" $fselected>Skill F</option>
							<option value="7" $gselected>Skill G</option>
							<option value="8" $hselected>Skill H</option>
							<option value="9" $itselected>Skill I</option>
							<option value="10" $jselected>Skill J</option>
						</select>
						</span>
						<label for="sel_skill5">$vbphrase[skill5]:</label>
					</td>
					<td>
						<span style="float:$stylevar[right]">
						<select name="skill6" id="sel_skill6">
							<option value="1" $aselected>Skill A</option>
							<option value="2" $bselected>Skill B</option>
							<option value="3" $cselected>Skill C</option>
							<option value="4" $deselected>Skill D</option>
							<option value="5" $eoselected>Skill E</option>
							<option value="6" $fselected>Skill F</option>
							<option value="7" $gselected>Skill G</option>
							<option value="8" $hselected>Skill H</option>
							<option value="9" $itselected>Skill I</option>
							<option value="10" $jselected>Skill J</option>
						</select>
						</span>
						<label for="sel_skill6">$vbphrase[skill6]:</label>
					</td>
				</tr>
				<tr>
					<td>
						<span style="float:$stylevar[right]">
						<select name="skill7" id="sel_skill7">
							<option value="1" $aselected>Skill A</option>
							<option value="2" $bselected>Skill B</option>
							<option value="3" $cselected>Skill C</option>
							<option value="4" $deselected>Skill D</option>
							<option value="5" $eoselected>Skill E</option>
							<option value="6" $fselected>Skill F</option>
							<option value="7" $gselected>Skill G</option>
							<option value="8" $hselected>Skill H</option>
							<option value="9" $itselected>Skill I</option>
							<option value="10" $jselected>Skill J</option>
						</select>
						</span>
						<label for="sel_skill7">$vbphrase[skill7]:</label>
					</td>
					<td>
						<span style="float:$stylevar[right]">
						<select name="skill8" id="sel_skill8">
							<option value="1" $aselected>Skill A</option>
							<option value="2" $bselected>Skill B</option>
							<option value="3" $cselected>Skill C</option>
							<option value="4" $deselected>Skill D</option>
							<option value="5" $eoselected>Skill E</option>
							<option value="6" $fselected>Skill F</option>
							<option value="7" $gselected>Skill G</option>
							<option value="8" $hselected>Skill H</option>
							<option value="9" $itselected>Skill I</option>
							<option value="10" $jselected>Skill J</option>
						</select>
						</span>
						<label for="sel_skill8">$vbphrase[skill8]:</label>
					</td>
				</tr>
				</table>
			</fieldset>

			<fieldset class="fieldset">
				<legend>$vbphrase[build_template]</legend>
				<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
				<tr>
					<td>$vbphrase[build_template_desc]<br /><input type="text" class="bginput" name="buildtemplate" id="tb_buildtemplate" value="[(X/X) Change This;XXXXXXXXXX]" size="50" maxlength="100" /></td>
				</tr>
				</table>
			</fieldset>

		</div>

	</div>

	<div style="margin-top:$stylevar[cellpadding]px">
		<input type="submit" class="button" value="$vbphrase[save_changes]" accesskey="s" />
		<input type="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" />
	</div>
	</td>

</tr>
</table>

</form>
Attached Images
File Type: jpg Add_Build.jpg (100.8 KB, 0 views)
File Type: png Skill_Bar.png (9.1 KB, 0 views)
File Type: jpg In_Thread_Example.jpg (15.7 KB, 0 views)
Reply With Quote
 

Thread Tools
Display Modes

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 06:25 AM.


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.04602 seconds
  • Memory Usage 2,645KB
  • Queries Executed 13 (?)
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
  • (3)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)showthread_list
  • (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_threadedmode.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete