SMF 1.1.4 / TP 1.0.5
Theme: Invazion
I have a Welcome block, formally a Center block, which is set to display to guests only in the Forum only.
It’s now also displaying in the Registration Page even though the Action where to display is set to Forum and nowhere else, the Registration radio button is unchecked.
Can you post a screenshot?
No, I'm at work. I'll put one up later.
Okay, I've tried various ways to hide this in the Registration page, recreated the block, tried all the settings I could find and I'm either missing something obvious or I dunno.
Heres a screen shot of the block settings called Forum Welcome, as you can see it's set to Forum only.
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi150.photobucket.com%2Falbums%2Fs91%2FLABRADIO%2FZetans%2520Gallery%2FForumWelcomeSettings.jpg&hash=bbf44dd45f8da24a7b47c18101228e48351bde99)
Here is a picture of the Forum Welcome block in the forum:
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi150.photobucket.com%2Falbums%2Fs91%2FLABRADIO%2FZetans%2520Gallery%2FForumWelcomeUpperBlock.jpg&hash=031deee65a7b0e60737836ba82219d36f3029057)
Here is a screen shot of the Registration Page, again with the Forum Welcome and also the Welcome Registration which is used with Thurnoks Guest Page View Limit Snippet (Currently switched off)., note the Register Button and the Link Tree:
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi150.photobucket.com%2Falbums%2Fs91%2FLABRADIO%2FZetans%2520Gallery%2FWelcomeBlockInRegistration.jpg&hash=0a2c09addca15ac04a93737647dd3038743ab382)
This code should work:
if ($current_action == 'register'){
}
else{
echo 'php code ';
}
Thats all fine an dandy Jpg, but thats only if $current_action is included into the context. I think what Zetan is getting at, is that its a bug in TP that shouldn't be happening. Which is what I'm thinking is happening. :) File a bug report ZTN.
Done. I'm in no hurry for a fix as I can hide the block manually with some code when in the register page. :)