The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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! |
#2
|
|||
|
|||
![]()
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? |
#3
|
|||
|
|||
![]()
This is a good question, I wanted to kick this up.
|
#4
|
|||
|
|||
![]()
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:
PHP Code:
|
#5
|
||||
|
||||
![]()
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> |
#6
|
||||
|
||||
![]()
THIS_SCRIPT isn't a variable, it's a constant.
|
#7
|
|||
|
|||
![]()
I've only just had the chance to try this after a short holiday
thanks exc1te - that's exactly what I was looking for ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|