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-03-2009, 09:31 AM
SirTalksalot SirTalksalot is offline
 
Join Date: Mar 2006
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Login box on my Index Page

Hi all,

I'm wondering if there's any good little scripts out there to do this? I have a login box on my front page that I copied from the VB page source. But it doesn't change to show that you are logged in.

http://www.warwickshireonline.com/

So I'm wondering if I can add some extra scripting to do this or if I need to look for something else entirely.

Please help me, I really want to get this down so I can tidy things up.
Reply With Quote
  #2  
Old 02-03-2009, 09:36 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you check our articles section?
Reply With Quote
  #3  
Old 02-03-2009, 09:40 AM
vbplusme vbplusme is offline
 
Join Date: Sep 2008
Location: CyberSpace
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should look at the login page again. I think you didn't take enough of the login script because the code is there to block the code if the member is active. I think you might just have to change the redirect to fit your site URL.

HTH
Reply With Quote
  #4  
Old 02-03-2009, 12:43 PM
SirTalksalot SirTalksalot is offline
 
Join Date: Mar 2006
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Marco van Herwaarden View Post
Did you check our articles section?
Hi Marco, I did have a look but couldn't find anything. Do you have a link please? Thank you in advance if you do.

--------------- Added [DATE]1233673783[/DATE] at [TIME]1233673783[/TIME] ---------------

Quote:
Originally Posted by vbplusme View Post
You should look at the login page again. I think you didn't take enough of the login script because the code is there to block the code if the member is active. I think you might just have to change the redirect to fit your site URL.

HTH
Hi vbplusme,

I think you're probably right, I've added a missing script from the header which I think is meant to be there, and changed some of the links to be correct, but still not working. Any idea what else I might have missed?

Thank you for your time.

--------------- Added [DATE]1233693190[/DATE] at [TIME]1233693190[/TIME] ---------------

Please can anyone help with this? It is urgent I get it fixed.
Reply With Quote
  #5  
Old 02-04-2009, 07:17 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You must include global.php and then use conditionals to display either code as it is done in the navbar.
Reply With Quote
  #6  
Old 02-05-2009, 06:52 AM
SirTalksalot SirTalksalot is offline
 
Join Date: Mar 2006
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please could you tell me which bits of code? I thought I'd already got it all, but clearly I haven't.
Reply With Quote
  #7  
Old 02-05-2009, 10:04 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you included global.php?
Reply With Quote
  #8  
Old 02-11-2009, 09:35 AM
SirTalksalot SirTalksalot is offline
 
Join Date: Mar 2006
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've copied this bit of code, if that's what you mean.

Code:
<script type="text/javascript" src="/forum/clientscript/vbulletin_global.js?v=374"></script>
I can't tell you if I've included it or not, if you don't tell me what code it is I'm supposed to put in there.
Reply With Quote
  #9  
Old 02-11-2009, 10:33 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

global.php is a PHP file, you must include it to access the vBulletin variables. The line of code you are looking at there is the include for the javascript. You will need some sort of PHP knowledge to do this.
Reply With Quote
  #10  
Old 02-11-2009, 11:14 AM
SVTCobraLTD SVTCobraLTD is offline
 
Join Date: Jul 2007
Location: PA
Posts: 841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do a search for "Simple Login" and you will find what you need. I just did it.
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 02:26 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.05698 seconds
  • Memory Usage 2,252KB
  • Queries Executed 11 (?)
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_code
  • (2)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_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