TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 347
  • Total: 347

Block displaying in action Register, when not set to.

Started by Zetan, April 14, 2008, 11:40:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zetan

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.

Jpg


Zetan


Zetan

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.



Here is a picture of the Forum Welcome block in the forum:



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:






Jpg

This code should work:

if ($current_action == 'register'){
}
else{
echo 'php code ';
}

IchBin

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.

Zetan

Done. I'm in no hurry for a fix as I can hide the block manually with some code when in the register page.  :)

This website is proudly hosted on Crocweb Cloud Website Hosting.