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
Invite only login page Details »»
Invite only login page
Version: 1.00, by IntoVB IntoVB is offline
Developer Last Online: Aug 2011 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.x Rating:
Released: 05-28-2011 Last Update: Never Installs: 4
Template Edits
Re-useable Code  
No support by the author.

What this template modification will do is create a universal login page for your forum meaning that people will only see this page when they come to your forum. I take no credit for the actual login page, it was the simple login page mod, i just fitted it into the pages. This code also has a link to a stylesheet, but you'll have to make that yourself.

First what you want to do is copy this code:

Code:
<if condition="$bbuserinfo['userid'] == 0">
<title>iPod-hacking</title>
<link rel="stylesheet" type="text/css" href="_css/style.css"/>

<!--[if IE]>
<style>
#pass_key label{
text-align: right;
margin: 10px 10px 0 21px;
}
</style>
<![EndIf]-->
</head>
<body>
<div id="container" align="center">
<img src="/images/logo.png" alt="MdS Logo"/>

	<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>
			<div id="player_name">
                <label>Username:</label>
					<input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="20" accesskey="u" tabindex="1" value=""/></td>
			</div><!-- player_name -->
            <div id="pass_key">
                <label>Password:</label>
					<input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="20" tabindex="2" /></td>
			</div><!-- pass_key -->


			<div id="remember_me">

				<input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser" tabindex="3" accesskey="c"/>
				<label>Remember me?</label>
			</div><!-- end remember_me -->
				<input width="123" type="submit" value="log me in"  height="46" border="1" tabindex="4" accesskey="s" alt="send" class="loginbtn"/>
				<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" />
				<input type="hidden" name="url" value="/index.php" />
	</form>
<div class="pbitttt" align="center">
						Already logged in? Please click <a href="http://ipod-hacking.com/index.php">here</a>
						Forgot your pass? Please click <a href="http://ipod-hacking.com/login.php?do=lostpw">here</a>


<div>
<center>

</div>
</div><!-- end container -->
</body>
</html>


<else />
Now you need to paste that at the start of these templates:

FORUMHOME
SHOWTHREAD
FORUMDISPLAY

and

SEARCH

At the end of these templates YOU MUST put </if>

The only way someone will be able to access the forum is if they know the exact URL of a thread, and this won't really help them unless you don't have an invite only mod on.

You will also want to edit the code wrapped in the first [CODE] tags to suit your forum

Screenshots

File Type: jpg splash page.jpg (60.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Rafael?

Comments
  #2  
Old 05-29-2011, 08:52 PM
3amalah 3amalah is offline
 
Join Date: Nov 2010
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please put a picture of the work of the code
Reply With Quote
  #3  
Old 05-29-2011, 08:53 PM
Manoel J?nior Manoel J?nior is offline
 
Join Date: Feb 2009
Location: SP / Brasil
Posts: 778
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Picture please!
Reply With Quote
  #4  
Old 05-30-2011, 09:44 AM
IntoVB IntoVB is offline
 
Join Date: Apr 2011
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry about that
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:48 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.03871 seconds
  • Memory Usage 2,253KB
  • Queries Executed 20 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (1)post_thanks_box_bit
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (1)postbit_attachment
  • (4)postbit_onlinestatus
  • (4)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_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
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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