Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by yuma (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-16-2001 Last Update: Never Installs: 0
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-16-2001, 01:16 PM
BradC
Guest
 
Posts: n/a
Default

could you possibly show an example, because I am thinking this is already done.
Reply With Quote
  #3  
Old 08-16-2001, 01:36 PM
yuma
Guest
 
Posts: n/a
Default

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
Reply With Quote
  #4  
Old 08-16-2001, 03:25 PM
BradC
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #5  
Old 08-16-2001, 05:40 PM
yuma
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #6  
Old 08-18-2001, 04:12 AM
slice
Guest
 
Posts: n/a
Default

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
Reply With Quote
  #7  
Old 08-29-2001, 07:37 PM
Ruth Ruth is offline
 
Join Date: Oct 2001
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 08-29-2001, 09:25 PM
theflow theflow is offline
 
Join Date: Aug 2002
Location: San Francisco
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 08-29-2001, 10:02 PM
Ruth Ruth is offline
 
Join Date: Oct 2001
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

theflow, it looks very nice, can you add this to the header as well?
Reply With Quote
  #10  
Old 08-29-2001, 10:27 PM
theflow theflow is offline
 
Join Date: Aug 2002
Location: San Francisco
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
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 11:33 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.04076 seconds
  • Memory Usage 2,271KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete