Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-31-2007, 09:35 PM
lynx31 lynx31 is offline
 
Join Date: May 2007
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Removing forum header from Sign Up / Register screens

I'm trying to remove our header banner so that it will only become visable once the user is signed up and registered for what is a private VBulletin forum.

I've managed to remove it from the standard index.php log in page by going to the STANDARD_ERROR template and replacing $header with <if condition="$bbuserinfo[userid]">$header</if>

The problem is, once you click 'sign up' from the index.php page the logo then reappears on the signup page (where the terms and conditions need to be ticked and accepted, and on further pages such as where they fill in their registration details.

I'm pretty new to this - does anyone know the exact templates I need to edit to remove the logo/header from view completely until the user is fully signed up and has access to the private board?

(have I overlooked an easier method other than changing all the templates to make this logo invisible to non-members? a simple on / off button on the Admin CP seems a good idea in future)

any help appreciated - thanks!
Reply With Quote
  #2  
Old 08-01-2007, 01:56 AM
agilent agilent is offline
 
Join Date: Jul 2007
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good question, I have the same question myself. I have a private forum and I don't want random visitors to be able to see the header until they have registered and been approved.

kicking this up, this is a good question. Does anyone have a solution?
Reply With Quote
  #3  
Old 08-02-2007, 10:14 PM
agilent agilent is offline
 
Join Date: Jul 2007
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a good question, I wanted to kick this up.
Reply With Quote
  #4  
Old 08-02-2007, 10:36 PM
exc1te exc1te is offline
 
Join Date: Jul 2007
Location: UK
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It will be better if you will put this condition for a whole header template, so that if user is not logged in, the header will not show on any page. To do this, simply edit header template, and put this:

At the beginning:
PHP Code:
<if condition="$show['guest']"><else /> 
and close the condition by putting </if> after:
PHP Code:
<!-- /logo --> 
Reply With Quote
  #5  
Old 08-03-2007, 01:36 AM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can also use the THIS_SCRIPT variable to specify specific pages that it shouldn't be displayed on.

Code:
<if condition="THIS_SCRIPT == 'index'">This is the index.</if>
Reply With Quote
  #6  
Old 08-03-2007, 10:37 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kirk Y View Post
You can also use the THIS_SCRIPT variable to specify specific pages that it shouldn't be displayed on.
THIS_SCRIPT isn't a variable, it's a constant.
Reply With Quote
  #7  
Old 08-12-2007, 01:19 PM
lynx31 lynx31 is offline
 
Join Date: May 2007
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've only just had the chance to try this after a short holiday

thanks exc1te - that's exactly what I was looking for
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:49 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.03952 seconds
  • Memory Usage 2,217KB
  • 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
  • (1)bbcode_code
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete