vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBindex v3.0.0 RC5 (https://vborg.vbsupport.ru/showthread.php?t=59524)

nexialys 07-31-2005 09:34 PM

this hack is supposed to be dead for years, as the project is postponed and outdated

harry1951 07-31-2005 09:36 PM

Quote:

Originally Posted by nexialys
this hack is supposed to be dead for years, as the project is postponed and outdated

Ok Thnxs

hitec 08-01-2005 12:12 AM

nexialys could you suggest something different thats still as easy to setup for a portal

.Tim 08-01-2005 12:54 AM

Quote:

Originally Posted by hitec
nexialys could you suggest something different thats still as easy to setup for a portal

vbadvanced is great and incredibly easy to set up.

Dorign 08-05-2005 04:42 AM

Has anyone coded a login box for this?

MRGTB 08-05-2005 11:47 AM

Try looking at the template in vBadvaced for the log-in box and see if it can be carried across.

Just open up the template.xml file with notepad and find the code there for the log-in box. I'll take a look in a minute and see if it works

Telkman 08-05-2005 12:04 PM

You can pretty much copy the login code from the navbar, with a couple of changes - it's a while since I did it, so I'll just paste what I use. I have it change to a welcome panel when the user is logged in.

The html will be slightly different, and it's lacking any indentation, but you can get the idea... screenshot(s) below.


HTML Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" width="100%"><thead><tr><td class="tcat" style="text-align: center"><strong><if condition="$showmemberwelcome">Welcome, $bbuserinfo[musername]<else />Log In</if></strong></td></tr></thead>
<tbody><tr><td class="alt1">
<div class="smallfont">

<if condition="$showmemberwelcome">
<script type="text/javascript">
<!--
function log_out()
{
        ht = document.getElementsByTagName("html");
        ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
        if (confirm('$vbphrase[sure_you_want_to_log_out]'))
        {
                return true;
        }
        else
        {
                ht[0].style.filter = "";
                return false;
        }
}
//-->

</script>
Last Visit: $pmbox[lastvisitdate] at <span class="time">$pmbox[lastvisittime]</span>
<br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase>
<a href="/forum/search.php?$session[sessionurl]do=getnew">New Posts</a>: $home[newposts] Posts in $home[newthreads] Threads.
<br /><a href="/forum/login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]" onclick="return log_out()" title="Log Out">Log Out</a>
</div></td></tr>

<else />

<div align="center">
<form action="/forum/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)">
<script type="text/javascript" src="/forum/clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">

<tr>
<td align="right" class="smallfont"><strong>$vbphrase[username]:&nbsp;&nbsp;</strong></td>
<td align="left"><input type="text" class="button" name="vb_login_username" id="navbar_username" size="12" accesskey="u" tabindex="1" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td></tr>

<tr><td align="right" class="smallfont"><strong>$vbphrase[password]:&nbsp;&nbsp;</strong></td><td align="left"><input type="password" class="button" name="vb_login_password" size="12" accesskey="p" tabindex="2" /></td></tr>

<tr><td align="center" colspan="2">
<table><tr><td>
<input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" /></td><td class="smallfont"><label for="cb_cookieuser_navbar">$vbphrase[remember_me]</label></td></tr></table>
<input type="submit" class="button" value="$vbphrase[log_in]" tabindex="4" 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="do" value="login" />
<input type="hidden" name="forceredirect" value="1" />                       
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form></div></div></td></tr><tr><td class="alt2" style="text-align:center; padding: 10px 0 10px 0;"><a href="/forum/register.php?$session[sessionurl]"><strong>Register</strong></a></td></tr>

</if>

</tbody></table><br />


MRGTB 08-05-2005 03:57 PM

Quote:

Originally Posted by Telkman
You can pretty much copy the login code from the navbar, with a couple of changes - it's a while since I did it, so I'll just paste what I use. I have it change to a welcome panel when the user is logged in.

The html will be slightly different, and it's lacking any indentation, but you can get the idea... screenshot(s) below.


HTML Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" width="100%"><thead><tr><td class="tcat" style="text-align: center"><strong><if condition="$showmemberwelcome">Welcome, $bbuserinfo[musername]<else />Log In</if></strong></td></tr></thead>
<tbody><tr><td class="alt1">
<div class="smallfont">

<if condition="$showmemberwelcome">
<script type="text/javascript">
<!--
function log_out()
{
        ht = document.getElementsByTagName("html");
        ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
        if (confirm('$vbphrase[sure_you_want_to_log_out]'))
        {
                return true;
        }
        else
        {
                ht[0].style.filter = "";
                return false;
        }
}
//-->

</script>
Last Visit: $pmbox[lastvisitdate] at <span class="time">$pmbox[lastvisittime]</span>
<br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase>
<a href="/forum/search.php?$session[sessionurl]do=getnew">New Posts</a>: $home[newposts] Posts in $home[newthreads] Threads.
<br /><a href="/forum/login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]" onclick="return log_out()" title="Log Out">Log Out</a>
</div></td></tr>

<else />

<div align="center">
<form action="/forum/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)">
<script type="text/javascript" src="/forum/clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">

<tr>
<td align="right" class="smallfont"><strong>$vbphrase[username]:&nbsp;&nbsp;</strong></td>
<td align="left"><input type="text" class="button" name="vb_login_username" id="navbar_username" size="12" accesskey="u" tabindex="1" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td></tr>

<tr><td align="right" class="smallfont"><strong>$vbphrase[password]:&nbsp;&nbsp;</strong></td><td align="left"><input type="password" class="button" name="vb_login_password" size="12" accesskey="p" tabindex="2" /></td></tr>

<tr><td align="center" colspan="2">
<table><tr><td>
<input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" /></td><td class="smallfont"><label for="cb_cookieuser_navbar">$vbphrase[remember_me]</label></td></tr></table>
<input type="submit" class="button" value="$vbphrase[log_in]" tabindex="4" 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="do" value="login" />
<input type="hidden" name="forceredirect" value="1" />                       
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form></div></div></td></tr><tr><td class="alt2" style="text-align:center; padding: 10px 0 10px 0;"><a href="/forum/register.php?$session[sessionurl]"><strong>Register</strong></a></td></tr>

</if>

</tbody></table><br />


What you you mean by lacking any identification?

Telkman 08-05-2005 03:59 PM

Indentation.

Dorign 08-05-2005 08:21 PM

Thanks!


All times are GMT. The time now is 11:47 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.02761 seconds
  • Memory Usage 1,807KB
  • 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
  • (2)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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