Download & Extend

Adding Condition Module and not setting condition will never allow $splash = TRUE;

Project:Splash
Version:6.x-2.3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

I think with no condition and set to "Always Validate" or "Never Validate" one of these should at least allow $splash being set to true by default.

To get around this I've added a PHP condition which always returns true.

<?php
return true;
?>

Comments

#1

Oh yes, this truly is the solution for the splash page not appearing. Finally got my splash page working on my website www.bodynsoulpartypix.com. Thank you so much. Thinking of it it seems so obvious in hind sight.

#2

Ya, but you would expect it to work "out of the box", which is why I submitted this request. I'm sure Splash module has lost lots of people because they can't figure this out, including me...a pretty technical user.

#3

I've never used the conditions module, so I'm a little confused here. Why would you set that up but not add a condition?

#4

A user for instance might have this condition module installed for another reason besides splash....but then splash won't work by default. It's a simple fix to just enabling it by default if there's no condition set, instead of "always off"

#5

Hi.. I want to disable the splash screen for authenticated user. What condition I should add for this? Currently I am getting splash screen for all users.. Please help :(

#6

I want the login form in splash window and once the user is logged in, splash should be removed. But now after log in, user page is also displaying in splash.. :( Can anyone help me to solve my problem :(

#7

@sarath.verve set the conditions option to validate if the condition returns TRUE and for your condition PHP code use the following to detect if the user is authenticated or not.

<?php
global $user;
if (
$user->uid) {
  return
TRUE;
} else {
  return
FALSE;
}
?>