Member Log In
Site Navigation
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
![]() |
| | #1 |
| |
Status: Offline 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" /> HTML Code: window.open Last edited by Redline; 06-27-2009 at 07:07 AM. |
|
| | #2 | |||||||||
Location: Israel Age: 29 ![]() |
Status: Offline try replce Code: window.open 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 | |||||||||
|
| | #3 |
| |
Status: Offline That didn't work. It just stayed, it didn't go anywhere :( The same thing happens when I remove the window.open |
|
| | #4 | |||||||||
Location: Israel Age: 29 ![]() |
Status: Offline 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: PHP Code: 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. | |||||||||
|
| | #5 |
| |
Status: Offline 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" /> $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" /> $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]" /> $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]" /> $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!! |
|
| | #6 | |||||||||
Location: Israel Age: 29 ![]() |
Status: Offline 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"> HTML Code: <form action="modapp.php?do=send" enctype="multipart/form-data" method="post" target="_blank"> PHP Code: 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. | |||||||||
|
| | #7 | |
| |
Status: Offline Quote:
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> | |
|
| | #8 | |||||||||
Location: Israel Age: 29 ![]() |
Status: Offline 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: 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. | |||||||||
|
| | #9 |
| |
Status: Offline Still doesn't work :( LOL, This is one is taking a little more work |
|
![]() |
| Thread Tools | |
| |
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.
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
























