vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   is it possible to make a You are not logged in. Login or register / Hello, name (log) (https://vborg.vbsupport.ru/showthread.php?t=25529)

yuma 08-16-2001 12:22 PM

is it possible to make a You are not logged in. Login or register / Hello, name (logout) like in ubb for vb?

thank you for any help

BradC 08-16-2001 01:16 PM

could you possibly show an example, because I am thinking this is already done.

yuma 08-16-2001 01:36 PM

the only example i an show you is on a ubb

like @ http://ubbforums.infopop.com/cgi-bin/ultimatebb.cgi

where it says ? You are not logged in. Login or register or if you are loged in it says hello, name [logout]

could you give me more details if you think this has already been done,


thank you very much

BradC 08-16-2001 03:25 PM

I thought that was on the frontpage.. or main page of the forums.. in the top right side..?

are you wanting it like they have it..
I think they would just take some editing of the templates.

yuma 08-16-2001 05:40 PM

yes it kinda is, but i want to put that on every page, you can not edit the templates to do that because you would have to put the php code from index.php into every file...and there has to be an easier way that that.

slice 08-18-2001 04:12 AM

This is what I did as a test for it (NO HACKING OR ALTERING THE INDEX.PHP):

In ADMIN CP do this:

1. Templates ->edit

2. Defaults ->[expands list]

3. Forum Home Page Templates ->[expand]

4. forumhome_welcometext ->[edit]

5. Change 'Welcome back,' to 'Hello,' Without the ' '
It looks like this: Hello, <b>$username</b>

6. and then copy and paste this: | <smallfont><a href="member.php?s=$session[sessionhash]&action=logout">Log Out</a>

It should now look like this: Hello, <b>$username</b> | <smallfont><a href="member.php?s=$session[sessionhash]&action=logout">Log Out</a>


7. Save Changes and check out your work

Ruth 08-29-2001 07:37 PM

is it possible to add this to the header, and show it for registered users, otherwise "You are not logged in, Login or register" for guests/unregistered?

thanks

theflow 08-29-2001 09:25 PM

Quote:

Originally posted by yuma
is it possible to make a You are not logged in. Login or register / Hello, name (logout) like in ubb for vb?
thank you for any help

See if this is close to what you mean. It took me forever to get it implemented but it works like a charm now. The folks at vB said "it's impossibe", but firefly banged it out anyway.

www.theflow.com/forums

you can try these usernames & passwords to test logging in and out on various pages -- including any reply screen or start new thread screen. Ther's an auto-redirect that takes you back to the screen you were last on, so you can log in under a different name.

username 1: test
password: test

username 2: test2
password: test2

Ruth 08-29-2001 10:02 PM

theflow, it looks very nice, can you add this to the header as well?

theflow 08-29-2001 10:27 PM

Quote:

Originally posted by Ruth
theflow, it looks very nice, can you add this to the header as well?
Thank you. That's a good question; I am not a coder so can't answer for sure, but I would guess no. I initially gave this a shot myself just fumbling around and grabbing code I found on forumhome, then applying it to forumdisplay then showthread. Massive problems and conflicts. So I think there must be various conditions on various page types that, in this version of vB, do not yet support a header install. (I do notice this feature is on the wish-list that tubedogg recently compiled from hundreds of other suggestions...)

But since firefly solved my hack, you might PM him and ask... When I had a colleague install this for me, we have had many places to debug it and fix problems associated with error message templates, double log-in submit buttons, etc. I am more visually oriented, and I have tried to get my friend to map out for me: what is calling what, under each page type, but they have not been able to provide this to me.

edit: Firefly's hack:
http://www.vbulletin.com/forum/showt...threadid=24889

But the functionality you see: is this what you had in mind?


All times are GMT. The time now is 11:13 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.01129 seconds
  • Memory Usage 1,731KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete