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

Reply
 
Thread Tools
Forum Login Page Details »»
Forum Login Page
Version: 1.50, by mac-warez mac-warez is offline
Developer Last Online: Oct 2009 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.7.3 Rating:
Released: 10-06-2008 Last Update: Never Installs: 11
Template Edits
Translations  
No support by the author.

This is a mod devleoped by Myself and other Admin. It is a login page for our forums. No files To upload also your forum will still be on the same page.

Go Admin Cp>Styles and Templates>Edit Templates.>Forum Home
Find This Code
Code:
<!-- / guest welcome message -->
Then add This below it
Code:
<!-- Guest Login Box -->
<if condition="$show['guest']">
<table width="100%" style="background-image:url($stylevar[imgdir_misc]/cat_back.gif)" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="33" height="27" align="left" valign="top"><img src="$stylevar[imgdir_misc]/cat_top_ls.gif" width="33" height="27" alt=" " border="0" /></td>
     <td width="22" height="27" align="left" valign="top"><img src="$stylevar[imgdir_misc]/text_ls.gif" width="22" height="27" alt=" " border="0" /></td>
    <td width="50%" class="tcat" style="background-image:url($stylevar[imgdir_misc]/cat_top_text_bk.gif)" align="left">
	
			
			<div align="left" class="smallfont">
			<b>Login</b></div>
		
	
	</td>
    <td width="30" height="27" align="left" valign="top"><img src="$stylevar[imgdir_misc]/cat_top_text_end.gif" width="30" height="27" alt=" " border="0" /></td>
    <td width="50%" height="27" align="left" valign="top"><img src="$stylevar[imgdir_misc]/cat_back.gif" width="50%" height="27" alt=" " border="0" /></td>



       <td width="10" height="27" align="left" valign="middle"><a style="float:$stylevar[right]" href="#top" onClick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a></td>

     <td width="20" height="27" align="right" valign="top"><img src="$stylevar[imgdir_misc]/cat_top_rs.gif" width="20" height="27" alt=" " border="0" /></td>
  </tr>
</table>
        <!-- End top category table setup -->
        
        
        
        

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<tr align="center">
	  <td class="thead" width="100%" align="$stylevar[left]">

<!-- content table -->
<center>
You must login or <a href="register.php">register</a> to view our forums.<br>
					<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" align="center">
					<tr>
						<td class="smallfont" nowrap="nowrap"><label for="navbar_username">$vbphrase[username]:</label></td>
						<td><input type="text" name="vb_login_username" id="navbar_username" size="20" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" class="textfield" /></td>
					</tr>
					<tr>
						<td class="smallfont" nowrap="nowrap"><label for="navbar_password">$vbphrase[password]:</label></td>
						<td><input type="password" name="vb_login_password" id="navbar_password" size="20" tabindex="102" class="textfield" /></td>
					</tr>
					<tr>
						<td colspan="2" class="smallfont" align="center"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label> &nbsp;&nbsp;&nbsp;<input type="submit" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" class="textfield" /></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>
</td>
		</tr>
		</table><else />&nbsp;</if></center>
<!-- / content table --></td>
	</tr>


</tbody>

</table>
      <!-- bottom table setup -->
  <div class="ftr_bdr">
    <table width="100%" class="thead" cellpadding="0" cellspacing="0">
      <tr>
        <td width="100%" height="9"><img src="$stylevar[imgdir_misc]/btm_base.gif"  width="100%" height="9" alt=" " border="0" /></td>
      </tr>
    </table>
</div>
</if>
<!--/ Guest Login Box -->
Then find
Code:
<!-- main -->
Add Below
Code:
<if condition="$show['member']">
Then Find
Code:
$footer
Add above:
Code:
</if>
Please Mark As Installed

Screenshots Added

Show Your Support

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

Comments
  #12  
Old 10-20-2008, 06:19 PM
infernow infernow is offline
 
Join Date: Aug 2008
Location: UK
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So how do i put this on external pages and also make it so that if a user is not logged in they have to login and if there not in the right member group they see the no permission message ?

Thanks
Reply With Quote
  #13  
Old 10-20-2008, 06:34 PM
mac-warez mac-warez is offline
 
Join Date: Oct 2008
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right now it is for your forum home. It is basically like an external page. But when a user logs in they can view the forums. I could work on an advanced permissions hack for this mod also but it would take a while.
Reply With Quote
  #14  
Old 10-20-2008, 06:36 PM
infernow infernow is offline
 
Join Date: Aug 2008
Location: UK
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And also how do i make it re-direct to the right page if there in the right group
Reply With Quote
  #15  
Old 10-20-2008, 06:41 PM
mac-warez mac-warez is offline
 
Join Date: Oct 2008
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Umm you would most likely have to use an <If condition> tag. I don't know to be exact
Reply With Quote
  #16  
Old 10-20-2008, 06:44 PM
infernow infernow is offline
 
Join Date: Aug 2008
Location: UK
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mac-warez View Post
Right now it is for your forum home. It is basically like an external page. But when a user logs in they can view the forums. I could work on an advanced permissions hack for this mod also but it would take a while.
Ah ok,

I was looking for an external login that can be put on mydomain.com/loginpageimake.php and that when they login provided that there in the correct group they can see mydomain.com/theareatheyneedtosee but if a unregistered user or someone not in that group visits the mydomain.com/theareatheyneedtosee they have to login and if there in wrong group there re-directed to the no permission page.
Reply With Quote
  #17  
Old 10-20-2008, 06:48 PM
mac-warez mac-warez is offline
 
Join Date: Oct 2008
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok. I am sure this code can be modified to make it work.
Reply With Quote
  #18  
Old 10-23-2008, 04:36 PM
infernow infernow is offline
 
Join Date: Aug 2008
Location: UK
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you help ?
Reply With Quote
  #19  
Old 10-23-2008, 06:32 PM
mac-warez mac-warez is offline
 
Join Date: Oct 2008
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes i will help. PM with a way i can contact you.
Reply With Quote
  #20  
Old 10-28-2008, 02:07 PM
infernow infernow is offline
 
Join Date: Aug 2008
Location: UK
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PM Sent
Reply With Quote
  #21  
Old 11-28-2008, 04:07 PM
infernow infernow is offline
 
Join Date: Aug 2008
Location: UK
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still Need Help
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 03:21 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.05512 seconds
  • Memory Usage 2,315KB
  • 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
  • (6)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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