Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-07-2011, 02:03 PM
talkandroid talkandroid is offline
 
Join Date: Nov 2011
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Add "Register" button on Navbar

Hey everyone,

I am new with vbulletin, less then a month actually and I wanted to add a Register button to the navbar on my forum.

I've searched a lot and couldn't find "useful" information for vbulletin 4, can anyone help?

Thank you!
Reply With Quote
  #2  
Old 12-07-2011, 05:58 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have a very modified style, so it will be very hard for anyone to give you specifics on how to add that button especially since it is there in the default style. So, basically, get the default header template, look up the code for the Register button, and then add it where you want in your templates.
Reply With Quote
  #3  
Old 12-07-2011, 08:55 PM
talkandroid talkandroid is offline
 
Join Date: Nov 2011
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
You have a very modified style, so it will be very hard for anyone to give you specifics on how to add that button especially since it is there in the default style. So, basically, get the default header template, look up the code for the Register button, and then add it where you want in your templates.
I will try, thank you!

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

Quote:
Originally Posted by Lynne View Post
You have a very modified style, so it will be very hard for anyone to give you specifics on how to add that button especially since it is there in the default style. So, basically, get the default header template, look up the code for the Register button, and then add it where you want in your templates.

I couldn't find anything, even after restoring to the default style there was no "register" button in the navbar.

but thanks for the help
Reply With Quote
  #4  
Old 12-08-2011, 04:23 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You want the register button even when you are logged in? AdminCP > Settings > Options > user registration options > Allow Multiple Registrations Per User > Yes
Reply With Quote
  #5  
Old 12-08-2011, 06:34 PM
talkandroid talkandroid is offline
 
Join Date: Nov 2011
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
You want the register button even when you are logged in? AdminCP > Settings > Options > user registration options > Allow Multiple Registrations Per User > Yes
No, what I wanted it when someone not register or logged in open my site, the navbar would also have a button saying register along with home, forum, what's new.

There was someone who said he had a hard time finding the register button on the site, I don't know how else I could make it
Reply With Quote
  #6  
Old 10-01-2013, 10:13 AM
JohnD5000 JohnD5000 is offline
 
Join Date: Aug 2012
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have the same request. I just want to add register/logout switch button to navbar.
Reply With Quote
  #7  
Old 10-01-2013, 10:22 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What version of vBulletin are you running?
Reply With Quote
  #8  
Old 10-01-2013, 10:29 AM
JohnD5000 JohnD5000 is offline
 
Join Date: Aug 2012
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am running vBulletin 4.2.1 and I would like to replicate the register/logout tab that was implemented in vBulletin 3.6.2 on this site: www.empirisoft.com/support
Reply With Quote
  #9  
Old 10-01-2013, 10:35 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can do that inthe Navigation Manager by adding two tabs. The first will be the LogOut tab.

ACP --> Settings --> Navigation Manager --> Add New Tab

Active: Yes
Product: Leave it set to vBulletin
Title: LogOut
Target URL: login.php?{userinfo.sessionurl}do=logout&logou thash={userinfo.logouthash}
Show Permission Name: member

Second one is the register tab.
Active: Yes
Product: Leave it set to vBulletin
Title: Register
Target URL: register.php{vb:raw session.sessionurl_q}
Show Permission Name: guest

Now only users that are logged in will see the LogOut tab, and only guests will see the Register tab.
Reply With Quote
  #10  
Old 10-01-2013, 10:54 AM
JohnD5000 JohnD5000 is offline
 
Join Date: Aug 2012
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your help, Ozzy. This worked, except for the logouthash={userinfo.logouthash}. This part does not seem to be filling in for the link, thus I get an error when I click the logout tab. Any thoughts?

Thanks again,

John Downing
downing@empirisoft.com

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

Code just needed minor tweak:

change

logouthash={userinfo.logouthash}

to

logouthash={bbuserinfo.logouthash}

Thanks again Ozzy
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 01:51 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.04088 seconds
  • Memory Usage 2,248KB
  • Queries Executed 13 (?)
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
  • (3)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