![]() |
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 |
could you possibly show an example, because I am thinking this is already done.
|
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 |
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. |
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.
|
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 |
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 |
Quote:
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 |
theflow, it looks very nice, can you add this to the header as well?
|
Quote:
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|