Follow vBSEO on Twitter
vBulletin Modifications
  • Forums
  • Add-Ons
  • Template Modifications
  • Styles
  • Graphics
  • Tutorials
  • Support Center
  • Register
  • vBulletin SEO

Member Log In

Site Navigation

  • Register
  • Members List
  • Social Groups
  • Search
  • Today's Posts
  • Mark Forums Read

Latest Modifications

  • [vB 3.8.4] THX - Hack for VB. 3.8.4
    By: bluedog
  • [vB 3.8.4] Cyb - Chatbox V.2.3
    By: bluedog
  • [vB 4.0.x] PHPKD - Advanced Quick...
    By: PHPKD
  • [vB 3.6.x] StopSpam
    By: flappi282
  • [vB 3.8.x] vBulletin Chat Addon for...
    By: 123flashchat

Latest Template Mods

  • [vB 4.0.x] Remove My Profile Link...
    By: Ak Worm
  • [vB 3.8.x] Images DownloadBox...
    By: cRs!MP
  • [vB 3.8.x] Adviertise Mod On Forum...
    By: MG4
  • [vB 3.8.4] Images PassWordBox...
    By: cRs!MP
  • [vB 3.8.4] Footer Follow Ups
    By: Ak Worm

Latest Styles

  • [vB 4.0.x] 4.0.3 - VB4STYLE-TWEETA...
    By: Belon
  • [vB 4.0.x] [4.0.3] vbdesigns.de...
    By: Belon
  • [vB 3.8.4] CompletevB - Skylight
    By: DreadKnight
  • [vB 3.8.3] [vB 3.8.4] Barcelona...
    By: hoiquantinhoc.com
  • [vB 3.8.3] Natures Walk by vBSkin...
    By: Chri5

Latest Graphics

  • [vB ] [anim.]Team Ranks
    By: cRs!MP
  • [vB ] Abstract Circles (3...
    By: cRs!MP
  • [vB ] PlayStation Rank Images
    By: cRs!MP
  • [vB 3.6.12] Heavy Stroked Button...
    By: Shelley
  • [vB ] Minature Ranks.
    By: Shelley
vBulletin Modifications » Support Center » vBulletin Support » Modification Coding » Tweaking the "Proceed" button
Reply
Page 1 of 2 1 2 >

 

  • Thread Tools
Old 06-27-2009, 06:56 AM   #1
Redline
Advanced Coder

Redline's Avatar

Activity Longevity
0/20 13/20
Today Posts
0/3 ssssss226
Location: Camp Lejeune, NC
Redline is on a distinguished road
Send a message via ICQ to Redline Send a message via AIM to Redline Send a message via MSN to Redline Send a message via Yahoo to Redline Send a message via Skype™ to Redline
Status: Offline Default Tweaking the "Proceed" button
Ok, so I found the code for the "Proceed" button and have it in place and going to where I want it to go, BUT, how do I get it, with the code I'm using, to open in the same window versus a new one?

This is the code I'm using...
HTML Code:
<input type="submit" class="button" id="proceed_button" value="$vbphrase[proceed]" onclick="window.open('$vboptions[bburl]')" accesskey="s" /> 
I tried removing the
HTML Code:
window.open
But that didn't work. :(

Last edited by Redline; 06-27-2009 at 07:07 AM.
Reply With Quote
Old 06-27-2009, 07:26 AM   #2
Idan
Coder
Idan's Avatar

Activity Longevity
0/20 18/20
Today Posts
0/3 sssss1484
Location: Israel
Age: 29
Idan is on a distinguished road
Status: Offline Default
try replce
Code:
window.open
with
Code:
window.navigate
Regards,
Idan.

* Support will only be given via forums !
* If this post solved/aided your problem, please click "mark as aid" / "mark as solution" as explained in here
Reply With Quote
Old 06-27-2009, 07:30 AM   #3
Redline
Advanced Coder

Redline's Avatar

Activity Longevity
0/20 13/20
Today Posts
0/3 ssssss226
Location: Camp Lejeune, NC
Redline is on a distinguished road
Send a message via ICQ to Redline Send a message via AIM to Redline Send a message via MSN to Redline Send a message via Yahoo to Redline Send a message via Skype™ to Redline
Status: Offline Default
That didn't work. It just stayed, it didn't go anywhere :( The same thing happens when I remove the window.open
Reply With Quote
Old 06-27-2009, 07:38 AM   #4
Idan
Coder
Idan's Avatar

Activity Longevity
0/20 18/20
Today Posts
0/3 sssss1484
Location: Israel
Age: 29
Idan is on a distinguished road
Status: Offline Default
please post here your <form> tag line.
The target="" inside the form shall decide if it's on same form or new one.
to open in new form use target="_blank" in it, to open in same form, just drop the target key from the form tag.

tbh now that i think on it, i'm not sure why you need onclick for submit button ? submit button will submit the form to the action url specificed in the <form> tag. Usually use this javascript onclick event to have some popup like "are you sure" or have javascript to validate input prior to submit.

EDIT:

so if you want click to direct to file1.php, DONT use:
PHP Code:
<input type="submit" class="button" id="proceed_button" value="$vbphrase[proceed]" onclick="window.open('file1.php')" accesskey="s" /> 
use instead:
PHP Code:
<form action="file1.php" method="post">

// your input controls here
// ...

<input type="submit" class="button" id="proceed_button" value="$vbphrase[proceed]"  accesskey="s" /> 
</
form> 
Regards,
Idan.

* Support will only be given via forums !
* If this post solved/aided your problem, please click "mark as aid" / "mark as solution" as explained in here

Last edited by Idan; 06-27-2009 at 07:40 AM.
Reply With Quote
Old 06-27-2009, 07:44 AM   #5
Redline
Advanced Coder

Redline's Avatar

Activity Longevity
0/20 13/20
Today Posts
0/3 ssssss226
Location: Camp Lejeune, NC
Redline is on a distinguished road
Send a message via ICQ to Redline Send a message via AIM to Redline Send a message via MSN to Redline Send a message via Yahoo to Redline Send a message via Skype™ to Redline
Status: Offline Default
HTML Code:
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vbphrase[usml_modapp_application] - $vboptions[bbtitle]</title>
$headinclude
</head>
<body>
$header

$navbar

<if condition="$imp_vars['do'] == 'main'">
<form action="modapp.php?do=send" enctype="multipart/form-data" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<tr valign="top">
		<td class="tcat" colspan="2">
		$vbphrase[usml_modapp_application]
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" colspan="2">
<!-- YOU MAY EDIT YOUR WELCOME MESSAGE HERE (START) -->
		<p>Welcome $bbuserinfo[musername]!</p><p>Thank you for your interest in becoming a Moderator for $vboptions[bbtitle]. We are actively seeking moderators age 18 and up and who would like to join our $vboptions[bbtitle] Moderating Team. So please, take time to fill out this application and we will contact you as soon as we possibly can.</p><p>Thank you!<br />$vboptions[bbtitle] Staff</p>
<!-- YOU MAY EDIT YOUR WELCOME MESSAGE HERE (END) -->
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_position]
		</td>
		<td class="alt2" width="100%">
<if condition="$vboptions['usml_postitionapplying_mod_onoff'] == '1'">
		<input type="radio" name="position_applying" value="Moderator" />$vbphrase[usml_modapp_mod]<br />
</if>
<if condition="$vboptions['usml_postitionapplying_smod_onoff'] == '1'">
		<input type="radio" name="position_applying" value="Super Moderator" />$vbphrase[usml_modapp_smod]<br />
</if>
<if condition="$vboptions['usml_postitionapplying_admin_onoff'] == '1'">
		<input type="radio" name="position_applying" value="Administrator" />$vbphrase[usml_modapp_admin]
</if>
		</td>
	</tr>
	<tr valign="top">
		<td class="thead" colspan="2">
		$vbphrase[usml_modapp_pinfo]
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_username]
		</td>
		<td class="alt2">
		<input type="text" size="24" maxlength="256" name="username" value="$bbuserinfo[username]" readonly />
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_addusernames]$vbphrase[usml_modapp_othernames]
		</td>
		<td class="alt2">
		<input type="text" size="24" maxlength="256" name="additional_usernames" />
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_fname]
		</td>
		<td class="alt2">
		<input type="text" size="24" maxlength="256" name="first_name" />
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_lname]
		</td>
		<td class="alt2" width="100%">
		<input type="text" size="24" maxlength="256" name="last_name" />
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_bday]$vbphrase[usml_modapp_bdayformat]
		</td>
		<td class="alt2" width="100%">
		<input type="text" size="4" maxlength="2" name="birth_month" />/<input type="text" size="4" maxlength="2" name="birth_day" />/<input type="text" size="4" maxlength="4" name="birth_year" />
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_loc]$vbphrase[usml_modapp_247]
		</td>
		<td class="alt2" width="100%">
<if condition="$vboptions[usml_modapp_instates] == '1'">
		<input type="text" size="13" maxlength="206" name="city" />, <input type="text" size="4" maxlength="2" name="state" />&nbsp;$vbphrase[usml_modapp_egloc]
</if>
<if condition="$vboptions[usml_modapp_instates] == '0'">
		<input type="text" size="13" maxlength="206" name="region" />, <input type="text" size="4" maxlength="3" name="country" />&nbsp;$vbphrase[usml_modapp_egloca]
</if>
		</td>
	</tr>
	<tr valign="top">
		<td class="thead" colspan="2">
		$vbphrase[usml_modapp_ainfo]
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_whyhelp]
		</td>
		<td class="alt2" width="100%">
		<textarea name="why_help" rows="5" cols="42" wrap="hard"></textarea>
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_skills]
		</td>
		<td class="alt2" width="100%">
		<textarea name="skills" rows="5" cols="42" wrap="hard"></textarea>
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_usedbackend]
		</td>
		<td class="alt2" width="100%">
		<input type="radio" name="ever_used_backend" value="Yes" />Yes
		<input type="radio" name="ever_used_backend" value="No" />No
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_knowoptions]
		</td>
		<td class="alt2" width="100%">
		<input type="radio" name="know_options" value="Yes" />Yes
		<input type="radio" name="know_options" value="No" />No
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_modothers]
		</td>
		<td class="alt2" width="100%">
		<input type="radio" name="moderate_others" value="Yes" />Yes
		<input type="radio" name="moderate_others" value="No" />No
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_modwhat]$vbphrase[usml_modapp_modwebinst]$vbphrase[usml_modapp_leaveblank]
		</td>
		<td class="alt2" width="100%">
		<textarea name="moderated_forums" rows="5" cols="42"></textarea>
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_howlong]$vbphrase[usml_modapp_leaveblank]
		</td>
		<td class="alt2" width="100%">
		<input type="text" size="35" maxlength="256" name="how_long" />
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_everresigned]
		</td>
		<td class="alt2" width="100%">
		<input type="radio" name="ever_resigned" value="Yes" />Yes
		<input type="radio" name="ever_resigned" value="No" />No
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_resyes]
		</td>
		<td class="alt2" width="100%">
		<textarea name="reason_resigned" rows="5" cols="42" wrap="hard"></textarea>
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_stillactive]
		</td>
		<td class="alt2" width="100%">
		<input type="radio" name="still_active" value="Yes" />Yes
		<input type="radio" name="still active" value="No" />No
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_anyainfo]
		</td>
		<td class="alt2" width="100%">
		<textarea name="comments" rows="5" cols="42" wrap="hard"></textarea>
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_intouch]$vbphrase[usml_modapp_sepemail]
		</td>
		<td class="alt2" width="100%">
<table border="0" cellpadding="3" cellspacing="1">
		<tr valign="top">
		<td>
		$vbphrase[usml_modapp_email]
		</td>
		<td>
		<input type="text" size="25" maxlength="256" name="email" value="$bbuserinfo[email]" />
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_phone]
		</td>
		<td class="alt2" width="100%">
<if condition="$vboptions[usml_modapp_instates] == '1'">
		(<input type="text" size="4" maxlength="3" name="tel_1" />)<input type="text" size="4" maxlength="3" name="tel_2" />-<input type="text" size="4" maxlength="4" name="tel_3" />
</if>
<if condition="$vboptions[usml_modapp_instates] == '0'">
		<input type="text" size="24" maxlength="206" name="tel_4" />
</if>
		</td>
	</tr>
</table>
		</td>
	</tr>
	<tr valign="top">
		<td class="alt2" colspan="2" width="100%" align="center">
		<input type="submit" class="button" value="$vbphrase[send]" accesskey="s" />
		<input type="reset" class="button" value="$vbphrase[reset]" accesskey="s" />
		</td>
	</tr>
	<tr>
		<td class="thead" colspan="2" align="center">
		$vbphrase[usml_modapp_copy]
		</td>
	</tr>
</table>
</form>
<else />
<if condition="$imp_vars['do'] == 'errors'">
<form action="modapp.php?do=send" enctype="multipart/form-data" method="post">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<tr valign="top">
		<td class="tcat" colspan="2">
		$vbphrase[usml_modapp_application]
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" colspan="2">
		$errors
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_position]
		</td>
		<td class="alt2" width="100%">
<if condition="$vboptions['usml_postitionapplying_mod_onoff'] == '1'">
		<input type="radio" name="position_applying" value="Moderator" />$vbphrase[usml_modapp_mod]<br />
</if>
<if condition="$vboptions['usml_postitionapplying_smod_onoff'] == '1'">
		<input type="radio" name="position_applying" value="Super Moderator" />$vbphrase[usml_modapp_smod]<br />
</if>
<if condition="$vboptions['usml_postitionapplying_admin_onoff'] == '1'">
		<input type="radio" name="position_applying" value="Administrator" />$vbphrase[usml_modapp_admin]
</if>
		</td>
	</tr>
	<tr valign="top">
		<td class="thead" colspan="2">
		$vbphrase[usml_modapp_pinfo]
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_username]
		</td>
		<td class="alt2">
		<input type="text" size="24" maxlength="256" name="username" value="$vbgpc[username]" readonly />
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_addusernames]$vbphrase[usml_modapp_othernames]
		</td>
		<td class="alt2">
		<input type="text" size="24" maxlength="256" name="additional_usernames" value="$vbgpc[additional_usernames]" />
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_fname]
		</td>
		<td class="alt2">
		<input type="text" size="24" maxlength="256" name="first_name" value="$vbgpc[first_name]" />
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_lname]
		</td>
		<td class="alt2" width="100%">
		<input type="text" size="24" maxlength="256" name="last_name" value="$vbgpc[last_name]" />
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_bday]$vbphrase[usml_modapp_bdayformat]
		</td>
		<td class="alt2" width="100%">
		<input type="text" size="4" maxlength="2" name="birth_month" value="$vbgpc[birth_month]" />/<input type="text" size="4" maxlength="2" name="birth_day" value="$vbgpc[birth_day]" />/<input type="text" size="4" maxlength="4" name="birth_year" value="$vbgpc[birth_year]" />
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_loc]$vbphrase[usml_modapp_247]
		</td>
		<td class="alt2" width="100%">
<if condition="$vboptions[usml_modapp_instates] == '1'">
		<input type="text" size="13" maxlength="206" name="city" value="$vbgpc[city]" />, <input type="text" size="4" maxlength="2" name="state" value="$vbgpc[state]" />&nbsp;$vbphrase[usml_modapp_egloc]
</if>
<if condition="$vboptions[usml_modapp_instates] == '0'">
		<input type="text" size="13" maxlength="206" name="region" value="$vbgpc[region]" />, <input type="text" size="4" maxlength="3" name="country" value="$vbgpc[country]" />&nbsp;$vbphrase[usml_modapp_egloca]
</if>
		</td>
	</tr>

	<tr valign="top">
		<td class="thead" colspan="2">
		$vbphrase[usml_modapp_ainfo]
		</td>
	</tr>

	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_whyhelp]
		</td>
		<td class="alt2" width="100%">
		<textarea name="why_help" rows="5" cols="42" wrap="hard">$vbgpc[why_help]</textarea>
		</td>
	</tr>

	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_skills]
		</td>
		<td class="alt2" width="100%">
		<textarea name="skills" rows="5" cols="42" wrap="hard">$vbgpc[skills]</textarea>
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_usedbackend]
		</td>
		<td class="alt2" width="100%">
		<input type="radio" name="ever_used_backend" value="Yes" />Yes
		<input type="radio" name="ever_used_backend" value="No" />No
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_knowoptions]
		</td>
		<td class="alt2" width="100%">
		<input type="radio" name="know_options" value="Yes" />Yes
		<input type="radio" name="know_options" value="No" />No
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_modothers]
		</td>
		<td class="alt2" width="100%">
		<input type="radio" name="moderate_others" value="Yes" />Yes
		<input type="radio" name="moderate_others" value="No" />No
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_modwhat]$vbphrase[usml_modapp_modwebinst]$vbphrase[usml_modapp_leaveblank]
		</td>
		<td class="alt2" width="100%">
		<textarea name="moderated_forums" rows="5" cols="42">$vbgpc[moderated_forums]</textarea>
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_howlong]$vbphrase[usml_modapp_leaveblank]
		</td>
		<td class="alt2" width="100%">
		<input type="text" size="35" maxlength="256" name="how_long" value="$vbgpc[how_long]" />
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_everresigned]
		</td>
		<td class="alt2" width="100%">
		<input type="radio" name="ever_resigned" value="Yes" />Yes
		<input type="radio" name="ever_resigned" value="No" />No
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_resyes]
		</td>
		<td class="alt2" width="100%">
		<textarea name="reason_resigned" rows="5" cols="42" wrap="hard">$vbgpc[reason_resigned]</textarea>
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_stillactive]
		</td>
		<td class="alt2" width="100%">
		<input type="radio" name="still_active" value="Yes" />Yes
		<input type="radio" name="still active" value="No" />No
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_anyainfo]
		</td>
		<td class="alt2" width="100%">
		<textarea name="comments" rows="5" cols="42" wrap="hard">$vbgpc[comments]</textarea>
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_intouch]$vbphrase[usml_modapp_sepemail]
		</td>
		<td class="alt2" width="100%">
<table border="0" cellpadding="3" cellspacing="1">
	<tr valign="top">
		<td>
		$vbphrase[usml_modapp_email]
		</td>
		<td>
		<input type="text" size="25" maxlength="256" name="email" value="$vbgpc[email]" value="$bbuserinfo[email]" />
		</td>
	</tr>
	<tr valign="top">
		<td class="alt1" nowrap="nowrap">
		$vbphrase[usml_modapp_phone]
		</td>
		<td class="alt2" width="100%">
<if condition="$vboptions[usml_modapp_instates] == '1'">
		(<input type="text" size="4" maxlength="3" name="tel_1" value="$vbgpc[tel_1]" />)<input type="text" size="4" maxlength="3" name="tel_2" value="$vbgpc[tel_2]" />-<input type="text" size="4" maxlength="4" name="tel_3" value="$vbgpc[tel_3]" />
</if>
<if condition="$vboptions[usml_modapp_instates] == '0'">
		<input type="text" size="24" maxlength="206" name="tel_4" value="$vbgpc[tel_4]" />
</if>
		</td>
	</tr>
</table>
		</td>
	<tr valign="top">
		<td class="alt2" colspan="2" width="100%" align="center">
		<input type="submit" class="button" value="$vbphrase[send]" accesskey="s" />
		<input type="reset" class="button" value="$vbphrase[reset]" accesskey="s" />
		</td>
	</tr>
	<tr>
		<td class="thead" colspan="2" align="center">
		$vbphrase[usml_modapp_copy]
		</td>
	</tr>
</table>
</form>
<else />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="65%" align="center">
	<tr>
		<td class="tcat">
		$vbphrase[usml_modapp_application]
		</td>
	</tr>
	<tr>
		<td class="alt1" align="center">
		<p><strong>Thank you for your interest in becoming a Moderator for $vboptions[bbtitle],<br />your request will be processed and we will respond to you as soon as possible.</strong></p><input type="submit" class="button" id="proceed_button" value="$vbphrase[proceed]" onclick="window.navigate('$vboptions[bburl]')" accesskey="s" />
	<br /><br />
		</td>
	</tr>
</table>
</if>
</if>
<br />

$footer
</body>
</html> 
It's important to only think about what you desire, not what you fear to achieve your ultimate goal!!
Reply With Quote
Old 06-27-2009, 07:55 AM   #6
Idan
Coder
Idan's Avatar

Activity Longevity
0/20 18/20
Today Posts
0/3 sssss1484
Location: Israel
Age: 29
Idan is on a distinguished road
Status: Offline Default
With current code pasted it should direct posted form to "modapp.php" on same page.
If you want it to be on new page you could replace this line:
HTML Code:
<form action="modapp.php?do=send" enctype="multipart/form-data" method="post"> 
with this one:
HTML Code:
<form action="modapp.php?do=send" enctype="multipart/form-data" method="post" target="_blank"> 
previously you had on the OnClick event command to open main forum url ($vboptions[bburl]) in new window. This is not needed. if you intention was to redirect user to main url when post complete, then proper solution to it is to add in the modapp.php file line like:
PHP Code:
header('Location: $vboptions[bburl]'); 
after you are done with processing the data.
Regards,
Idan.

* Support will only be given via forums !
* If this post solved/aided your problem, please click "mark as aid" / "mark as solution" as explained in here

Last edited by Idan; 06-27-2009 at 07:58 AM.
Reply With Quote
Old 06-27-2009, 08:05 AM   #7
Redline
Advanced Coder

Redline's Avatar

Activity Longevity
0/20 13/20
Today Posts
0/3 ssssss226
Location: Camp Lejeune, NC
Redline is on a distinguished road
Send a message via ICQ to Redline Send a message via AIM to Redline Send a message via MSN to Redline Send a message via Yahoo to Redline Send a message via Skype™ to Redline
Status: Offline Default
Quote:
Originally Posted by Idan View Post
With current code pasted it should direct posted form to "modapp.php" on same page.
Not sure what you mean here?

If you scroll down almost all the way to the bottom, and find this code:
HTML Code:
 <td class="alt1" align="center">
        <p><strong>Thank you for your interest in becoming a Moderator for $vboptions[bbtitle],<br />your request will be processed and we will respond to you as soon as possible.</strong></p><input type="submit" class="button" id="proceed_button" value="$vbphrase[proceed]" onclick="window.navigate('$vboptions[bburl]')" accesskey="s" />
    <br /><br />
        </td> 
I have it directing the user back to the forums after completion of the form
Reply With Quote
Old 06-27-2009, 08:12 AM   #8
Idan
Coder
Idan's Avatar

Activity Longevity
0/20 18/20
Today Posts
0/3 sssss1484
Location: Israel
Age: 29
Idan is on a distinguished road
Status: Offline Default
oh, missed that part, you have that button after the form been submitted, and you just want them to go to forums...

In that case just use "normal" button, drop the "submit":
replace with this line:
PHP Code:
<input type="button" id="proceed_button" value="$vbphrase[proceed]" onclick="window.location='$vboptions[bburl]'" accesskey="s" /> 
sorry, i missed that line was way on the right :p

EDIT:
it might have some problem with placing var inside '', might accidently consider $ as the url itself. if above has problems, try to remove the single qoute tags around the location
Regards,
Idan.

* Support will only be given via forums !
* If this post solved/aided your problem, please click "mark as aid" / "mark as solution" as explained in here

Last edited by Idan; 06-27-2009 at 08:15 AM.
Reply With Quote
Old 06-27-2009, 08:18 AM   #9
Redline
Advanced Coder

Redline's Avatar

Activity Longevity
0/20 13/20
Today Posts
0/3 ssssss226
Location: Camp Lejeune, NC
Redline is on a distinguished road
Send a message via ICQ to Redline Send a message via AIM to Redline Send a message via MSN to Redline Send a message via Yahoo to Redline Send a message via Skype™ to Redline
Status: Offline Default
Still doesn't work :(

LOL, This is one is taking a little more work
Reply With Quote
Old 06-27-2009, 08:37 AM   #10
Idan
Coder
Idan's Avatar

Activity Longevity
0/20 18/20
Today Posts
0/3 sssss1484
Location: Israel
Age: 29
Idan is on a distinguished road
Status: Offline Default
hop on msn
Regards,
Idan.

* Support will only be given via forums !
* If this post solved/aided your problem, please click "mark as aid" / "mark as solution" as explained in here
Reply With Quote

Reply
Page 1 of 2 1 2 >

« Need a little PHP help please | Whats the difference? »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Rules



All times are GMT. The time now is 05:34 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Transverse Styles
  • Top
  • Archive
  • vBSEO
  • Contact Us
LinkBack
LinkBack URL LinkBack URL
About LinkBacks About LinkBacks
Bookmark & Share
Digg this Thread! Digg this Thread!
Add Thread to del.icio.us Add Thread to del.icio.us
Bookmark in Technorati Bookmark in Technorati
Furl this Thread! Furl this Thread!