TinyPortal

Development => Feedback => Bugs/Errors => Topic started by: Zetan on April 14, 2008, 11:40:14 AM

Title: Block displaying in action Register, when not set to.
Post by: Zetan on April 14, 2008, 11:40:14 AM
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.
Title: Re: Block displaying in action Register, when not set to.
Post by: Jpg on April 14, 2008, 12:06:44 PM
Can you post a screenshot?
Title: Re: Block displaying in action Register, when not set to.
Post by: Zetan on April 14, 2008, 12:26:12 PM
No, I'm at work. I'll put one up later.
Title: Re: Block displaying in action Register, when not set to.
Post by: Zetan on April 14, 2008, 06:19:28 PM
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)




Title: Re: Block displaying in action Register, when not set to.
Post by: Jpg on April 14, 2008, 10:01:08 PM
This code should work:

if ($current_action == 'register'){
}
else{
echo 'php code ';
}
Title: Re: Block displaying in action Register, when not set to.
Post by: IchBin on April 14, 2008, 11:06:51 PM
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.
Title: Re: Block displaying in action Register, when not set to.
Post by: Zetan on April 14, 2008, 11:18:14 PM
Done. I'm in no hurry for a fix as I can hide the block manually with some code when in the register page.  :)