Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Guest thread login and register form Details »»
Guest thread login and register form
Version: 1.00, by bellaa bellaa is offline
Developer Last Online: Nov 2009 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.x Rating:
Released: 07-22-2009 Last Update: Never Installs: 9
Re-useable Code Translations  
No support by the author.

**:: Name: Guest thread login and register form
**:: Version: all version
**:: Developer: http://www.vbdestek.tk
**:: Published: 2009

guest


postbit/ postbit legacy open

find;
PHP Code:
<!-- message -->   
        <
div id="post_message_$post[postid]">$post[message]</div>   
        <!-- / 
message --> 
change;
PHP Code:
<if condition="$show['guest']">  
 <!-- 
login form --> 
        <
form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])"
        <
script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script
        <
table cellpadding="0" cellspacing="$stylevar[formspacer]border="0"
        <
tr
            <
td class="smallfont" style="white-space: nowrap;"><label for="navbar_username">$vbphrase[username]</label></td
            <
td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td
            <
td class="smallfont" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td
        </
tr
        <
tr
            <
td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td
            <
td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td
            <
td><input type="submit" class="button" value="$vbphrase[log_in]tabindex="104" title="$vbphrase[enter_username_to_login_or_register]accesskey="s" /></td
        </
tr
        </
table
        <
input type="hidden" name="s" value="$session[sessionhash]/> 
        <
input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]/> 
        <
input type="hidden" name="do" value="login" /> 
        <
input type="hidden" name="vb_login_md5password" /> 
        <
input type="hidden" name="vb_login_md5password_utf" /> 
        </
form
        <!-- / 
login form --> 
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center"
<
thead
<
tr
<
td class="tcat" colspan="6"><div align="center"><phrase 1="$vboptions[bbtitle]">Fast Register !</phrase></div></td
</
tr
<
tr
<
td class="alt1" colspan="6"> <div align="center"
<
span class="smallfont"><script type="text/javascript" src="clientscript/vbulletin_md5.js"></script
<
script type="text/javascript"
function 
verify_passwords(password1password2

// do various checks, this will save people noticing mistakes on next page 
if (password1.value == '' || password2.value == ''

alert('Fill out both password fields'); 
return 
false

else if (
password1.value != password2.value

alert('Entered passwords do not match'); 
return 
false

else 

md5hash(password1document.forms.register.password_md5); 
md5hash(password2document.forms.register.passwordconfirm_md5); 
return 
true

return 
false

</
script
<
form action="register.php" name="register" method="post" onsubmit="return verify_passwords(password, passwordconfirm);"
<
input type="hidden" name="s" value="" /> 
<
input type="hidden" name="do" value="addmember" /> 
<
input type="hidden" name="url" value="index.php" /> 
<
input type="hidden" name="agree" value="" /> 
<
input type="hidden" name="password_md5" /> 
<
input type="hidden" name="passwordconfirm_md5" /> 
Fast Register.<br><br
User Name
<
input type="text" class="bginput" name="username" maxlength="15" value="" style="width:70px" /> 
Password
<
input type="password" class="bginput" name="password" maxlength="15" value="" style="width:70px" /> 
Confirm Password
<
input type="password" class="bginput" name="passwordconfirm" maxlength="15" value="" style="width:70px" /> 
Email Address
<
input type="text" class="bginput" name="email" maxlength="50" value="" style="width:70px" /> 
Confirm Email Adress
<
input type="text" class="bginput" name="emailconfirm" maxlength="50" value="" style="width:70px" /> 
<
br><input type="checkbox" name="agree" id="cb_rules_agree" value="1" /><strong><a href="register.php">I have read, and agree to abide by the Forum rules.</a></strong><br
<
input type="submit" class="button" value="Kayıt" accesskey="s" /> 
</
span
</
div></td
</
tr
</
thead
</
table
        <else />   
        <!-- 
message -->   
        <
div id="post_message_$post[postid]">$post[message]</div>   
        <!-- / 
message -->   
        </if> 

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 07-23-2009, 09:18 AM
kawe kawe is offline
 
Join Date: Aug 2008
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow nice
thanks
Reply With Quote
  #3  
Old 07-23-2009, 10:45 AM
bellaa bellaa is offline
 
Join Date: Jul 2009
Location: İstanbul
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wiems :77
Replies:1
Reply With Quote
  #4  
Old 07-23-2009, 01:15 PM
marshal_ramdev marshal_ramdev is offline
 
Join Date: Mar 2009
Location: Ludhiana
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #5  
Old 07-23-2009, 01:16 PM
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Location: Rome
Posts: 730
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can I choose where to put this new thread? Like putting the forum ID ect..
Reply With Quote
  #6  
Old 07-23-2009, 01:24 PM
bellaa bellaa is offline
 
Join Date: Jul 2009
Location: İstanbul
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by El Intocable View Post
Can I choose where to put this new thread?
yes
Reply With Quote
  #7  
Old 07-23-2009, 02:01 PM
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Location: Rome
Posts: 730
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im actually confuse, this mod will make a new thread to any guest when navigating the forums thread so they can register, A Im correct? if that is the case this will go global right?
Reply With Quote
  #8  
Old 07-25-2009, 08:03 AM
eTiKeT?'s Avatar
eTiKeT? eTiKeT? is offline
 
Join Date: Aug 2008
Location: T?rkiye
Posts: 257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thaks installed
Reply With Quote
  #9  
Old 07-25-2009, 09:17 AM
bellaa bellaa is offline
 
Join Date: Jul 2009
Location: İstanbul
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by eTiKeT? View Post
thaks installed
Teşekk?rler Etiket?

thanks etiket?
Reply With Quote
  #10  
Old 07-25-2009, 10:52 AM
Andy69 Andy69 is offline
 
Join Date: May 2009
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i prefer this way html code no file edits nothing to upload !

acp>notices>new notices

simply choose who can view the message so u will want to choose guests/non registerd users !

paste this into the notice box save and your good, of couse u wont see it till your not loged in as its a guest message

Code:
 <!-- Quick Register Box --> 
<if condition="$show['guest']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="6"><div align="center"><phrase 1="$vboptions[bbtitle]">Quick 
		 Register </phrase></div></td>
</tr>
<tr>
 
	 <td class="alt1" colspan="6"> <div align="center">
	<span class="smallfont"><script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<script type="text/javascript">
function verify_passwords(password1, password2)
{
// do various checks, this will save people noticing mistakes on next page
if (password1.value == '' || password2.value == '')
{
alert('Fill out both password fields');
return false;
}
else if (password1.value != password2.value)
{
alert('Entered passwords do not match');
return false;
}
else
{
 
 
md5hash(password1, document.forms.register.password_md5);
md5hash(password2, document.forms.register.passwordconfirm_md5);
 
 
 
return true;
}
return false;
}
</script>
<form action="register.php" name="register" method="post" onsubmit="return verify_passwords(password, passwordconfirm);"> 
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="addmember" />
<input type="hidden" name="url" value="index.php" />
<input type="hidden" name="agree" value="" />
<input type="hidden" name="password_md5" />
<input type="hidden" name="passwordconfirm_md5" /> 
	 User Name: 
	 <input type="text" class="bginput" name="username" maxlength="15" value="" style="width:70px" />
	 Password: 
	 <input type="password" class="bginput" name="password" maxlength="15" value="" style="width:70px" />
	 Confirm Password 
	 <input type="password" class="bginput" name="passwordconfirm" maxlength="15" value="" style="width:70px" />
	 Email 
	 <input type="text" class="bginput" name="email" maxlength="50" value="" style="width:70px" />
	 Confirm Email 
	 <input type="text" class="bginput" name="emailconfirm" maxlength="50" value="" style="width:70px" />
	 <br><input type="checkbox" name="agree" id="cb_rules_agree" value="1" /><strong>Check to Agree with <a href="register.php?">forum 
rules </a></strong><br>
	 <input type="submit" class="button" value="Submit" accesskey="s" />
	 </span>
		</div></td>
</tr>
</thead>
</table>
</if>
<!-- / Quick Register Box -->
Reply With Quote
Reply


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 07:01 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.05388 seconds
  • Memory Usage 2,382KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete