vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Removing forum header from Sign Up / Register screens (https://vborg.vbsupport.ru/showthread.php?t=153930)

lynx31 07-31-2007 09:35 PM

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!

agilent 08-01-2007 01:56 AM

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?

agilent 08-02-2007 10:14 PM

This is a good question, I wanted to kick this up.

exc1te 08-02-2007 10:36 PM

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 --> 


Kirk Y 08-03-2007 01:36 AM

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>

Dismounted 08-03-2007 10:37 AM

Quote:

Originally Posted by Kirk Y (Post 1308642)
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.

lynx31 08-12-2007 01:19 PM

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

thanks exc1te - that's exactly what I was looking for :)


All times are GMT. The time now is 10:27 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.00985 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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