vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Display Enhancements - Forum Login Page (https://vborg.vbsupport.ru/showthread.php?t=192981)

mac-warez 10-06-2008 10:00 PM

Forum Login Page
 
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.
https://vborg.vbsupport.ru/attachmen...4&d=1223409523
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

lazydesis 10-07-2008 07:15 PM

i am sorry but didn;t understand the use of this template edit. isnt there a login box right above that? why make two login boxes on same page?

anyways thanks for contributing :)

mac-warez 10-07-2008 07:16 PM

That is an old image before we removed that other box. It is basically to stop people from viewing our forums just through the forum directory. But with direct thread links they can view the threads.

SEOvB 10-08-2008 03:37 AM

you realize they can simply use the archives to view your forums with this method.

Try doing it the correct way with usergroup permissions next time.

JamesFreeman 10-08-2008 08:34 AM

Why would you need this. It's pointless, Therefore i will not be installing.

Rich 10-09-2008 03:54 PM

We appreciate the submission, but this really does serve no purpose. The title of this modification is also VERY midleading. This is not a login page. This is actually a login block on the forumhome page, which already has one. (In the navbar.)

mac-warez 10-09-2008 06:01 PM

Yeah but it can be made into an external page very easily. In fact i might work on that

n95gps 10-16-2008 03:14 PM

if a guest cant veiw my forum then he or she might not joine

is this blocking all the guest from viewing the forum

if thats the case

then i am sorry

i won't need it

but thanx for the effort

take care

mac-warez 10-16-2008 05:01 PM

Whatever. It works good. I like it.

mac-warez 10-18-2008 09:09 PM

Updated code.


All times are GMT. The time now is 02:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01003 seconds
  • Memory Usage 1,759KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete