vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Login box on my Index Page (https://vborg.vbsupport.ru/showthread.php?t=204046)

SirTalksalot 02-03-2009 09:31 AM

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.

Marco van Herwaarden 02-03-2009 09:36 AM

Did you check our articles section?

vbplusme 02-03-2009 09:40 AM

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

SirTalksalot 02-03-2009 12:43 PM

Quote:

Originally Posted by Marco van Herwaarden (Post 1732880)
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 (Post 1732887)
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.

Dismounted 02-04-2009 07:17 AM

You must include global.php and then use conditionals to display either code as it is done in the navbar.

SirTalksalot 02-05-2009 06:52 AM

Please could you tell me which bits of code? I thought I'd already got it all, but clearly I haven't.

Dismounted 02-05-2009 10:04 AM

Have you included global.php?

SirTalksalot 02-11-2009 09:35 AM

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.

Dismounted 02-11-2009 10:33 AM

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.

SVTCobraLTD 02-11-2009 11:14 AM

Do a search for "Simple Login" and you will find what you need. I just did it.

vbplusme 02-11-2009 11:30 AM

Quote:

Originally Posted by SVTCobraLTD (Post 1740724)
Do a search for "Simple Login" and you will find what you need. I just did it.

Simple Login does not contain the code to recognize if the member is logged in or not. So the login forum is always displayed because it has no code to clear it and display the proper welcome message. FYI.

SVTCobraLTD 02-11-2009 01:27 PM

Quote:

Originally Posted by vbplusme (Post 1740737)
Simple Login does not contain the code to recognize if the member is logged in or not. So the login forum is always displayed because it has no code to clear it and display the proper welcome message. FYI.

I have it installed on my site and rarely have to log in anymore. Everytime I visit the home page, Im still logged in.

Dismounted 02-12-2009 05:27 AM

The OP wants the "Welcome, Username" message in place of the login box when the user is logged in.


All times are GMT. The time now is 08:39 PM.

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.01208 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete