Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-20-2003, 05:48 AM
pifemaster pifemaster is offline
 
Join Date: Feb 2003
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Add Login Box to top of page

Hello,

I have VBulletin 2.3.0 & I would like to add a "login" box to the header section on my pages. I like the looks of the Login box on the vbulletin.com site, but I can not seem to find a hack for this. Can someone point me in the right direction?

Thank you,
Robert Pfeifer
Reply With Quote
  #2  
Old 02-20-2003, 03:54 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why do you need a login box in the header of your pages? When someone logs in and is not using cookies they get the login box automatically. They should not need a login box. The box shows at the bottom of the page under forums.

On the other hand I fixed mine so it shows at the top of the page when someone is not using cookies. I just went into the forumhome template and found the following text and all in between the following:

<!-- timezone/login-->
<!-- /timezone/login-->

Then I moved it right above the following:
<!-- main -->

I hope this helps
Reply With Quote
  #3  
Old 02-20-2003, 04:54 PM
pifemaster pifemaster is offline
 
Join Date: Feb 2003
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

attroll,

Thank you for the reply. You are correct, when a new user, or a user without a cookie, goes to the forum the login box does appear at the bottom of the page. The idea I had was to have this box appear at the top of the page in the header area as well as at the bottom. I figured that by having it at the top & bottom of the page, it would be easier to find.

I tied something similar to what you said. However I was only hoping to use the "login box" at the top & not add the time zone as well at the top. I added the following into my header section:

<td align="right">$logincode</td>

I also left the timezone/login code intact at the bottom of my "forumhome" template.

It didn't work!

My questions:

Do you know if I have to keep the time zone info with the login info?

Is there a problem with adding this into the "header section" under modify styles?

Can I have the box appear twice on the same page?

Thanks again for your help,
Robert Pfeifer
Reply With Quote
  #4  
Old 02-22-2003, 04:50 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use to have the login box at the top also and here is the html code I use to use:
=============================================

<form action="member.php" method="post">
<td nowrap align="right"><b>username:&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;password:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp</b><br>
<input type="hidden" name="s" value="f2b4f10919c50795c6f776d53abcae46">
<input type="hidden" name="action" value="login">
<input type="text" class="bginput" name="username" size="12">
<input type="password" class="bginput" name="password" size="12">
<input type="submit" class="bginput" value="Login!"></td>
</form>
=============================================

I hope this helps you.
Reply With Quote
  #5  
Old 02-22-2003, 05:12 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think he is referring to the login box at the top of every page. Well i believe a similar hack was released here but i couldn't locate when searching. Have a deep-dig around and you'll find it

- miSt
Reply With Quote
  #6  
Old 02-22-2003, 05:51 PM
pifemaster pifemaster is offline
 
Join Date: Feb 2003
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Mist
I think he is referring to the login box at the top of every page.
You are correct mist. I was able to have the login box appear at the top of my forumhome page by adding the "<td align="right">$logincode</td>" code. But, I was hoping to have the ability to have box appear in the "header" on "all" pages if user was not logged in. I came up empty in my search.


Thank you,
Robert Pfeifer
Reply With Quote
  #7  
Old 02-22-2003, 05:57 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was in the beta-hacks forum i'm sure.. But i just can't find it..

- miSt
Reply With Quote
  #8  
Old 02-22-2003, 06:00 PM
pifemaster pifemaster is offline
 
Join Date: Feb 2003
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mist,

Thanks for trying. I will keep looking, at least I was able to add the box at the top on forumhome. So for now I content. If you ever do run accross it let me know.

Thanks again
Reply With Quote
  #9  
Old 02-22-2003, 06:03 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm just having a look for you now - thru all the posts in there

- miSt
Reply With Quote
  #10  
Old 02-22-2003, 06:13 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well i just can't find it yet i could have sworn it was released here.

This is the closes i could find but is probably not what you want:

http://www.vbulletin.org/hacks/index...ack&hackid=785

Maybe this one too:

http://www.vbulletin.org/hacks/index...ack&hackid=205

- miSt
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 04:07 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.04425 seconds
  • Memory Usage 2,254KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (10)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_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
  • 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