vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   How to remove the Register button entirely (https://vborg.vbsupport.ru/showthread.php?t=259693)

dtronvig 03-02-2011 12:04 AM

How to remove the Register button entirely
 
I want to allow new users on my site to register only via Facebook Connect, so I want to prevent the Register button from showing up anywhere. (I'm fine with the Log In tab, so users can log in that way, once they're registered.)

Starting with an otherwise unchanged Default Style, I've commented out the Register button in the "header" template like so:

Code:

<!--
                                <vb:if condition="$show['registerbutton']">
                                <li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
                                </vb:if>
-->


When I Log Out, the Register button is gone, but when I refresh that page, or when I just come straight to the site, the Register button is back. It looks like there's a template other that the "header" template producing that initial home page, but that template isn't jumping out at me. If it's just a matter of editing some other template, please point me to that one.

Thanks,
Drew

LifesGreatestGift 03-02-2011 12:38 AM

Maybe this will help you instead of going through and editing all the templates.

http://www.vbulletin.com/forum/showt...cebook-connect

dtronvig 03-02-2011 01:15 AM

Yep, that appears to work perfectly.

luism 04-14-2012 06:11 PM

Quote:

Originally Posted by LifesGreatestGift (Post 2168496)
Maybe this will help you instead of going through and editing all the templates.

http://www.vbulletin.com/forum/showt...cebook-connect

Hi 1 I tried to heart you but it didn't work for me.. :confused:
2. would you know what template exactly they refer too? when I go to admin- styles & templates - search in templates I dont know which one to edit?

Thanks :o


All times are GMT. The time now is 11:36 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.01240 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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