I have Securesite configured for "HTML log-in form". When I assign a block to content area, and configure the block to be displayed only for node/xxx, the block is displayed along with HTML login form (at address node/xxx); e.g. see block "Powered by Drupal" in attached image. This happens also with other content blocks.

CommentFileSizeAuthor
secsite.png7.8 KBskizzo
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ejohnson’s picture

Any fix to this bug?

I have a similar problem in which my node/45 is set to be the Default Front page node. I also have a Block set to show on node/45. When you get prompted with the SecureSite Login, and you hit Cancel, the Block(s) set to show on the Front page also shows. I should also mention that this Block is a Views block.

bkosborne’s picture

I have this problem as well for all my views blocks....

bkosborne’s picture

My setup: I have a context that displays many blocks on the homepage. They are placed in the "content" region, am I am using the Fusion theme. The problem seems to be that because they are in the content region, they also show in the content var in the theme for securesite. If I put them in a different region the problem is resolved. However, I can't really do that with the way the site is setup...

Trying to figure this out myself.... but not sure I will be able to.

bkosborne’s picture

Status: Active » Needs work

Figured it out.

function securesite_theme_registry_alter(&$theme_registry) {
  $theme_registry['securesite_page']['preprocess functions'] = $theme_registry['page']['preprocess functions'];
}

Uses the preprocess functions of the page... which will load in the blocks for the fusion theme in the content region. Just comment out this line, flush cache...

Needs a perm. fix tho

rajmataj’s picture

This still is an issue. Post #4 doesn't work for Drupal 6.22, at least not on my site.

I was able to do a crude work-around however by copying the securesite-page.tpl.php template to my theme's directory and add a class and a custom .css file that hid the region blocks that were showing up.

NikLP’s picture

Version: 6.x-2.3 » 6.x-2.4
Priority: Normal » Critical

This is still present in 2.4 and is critical. Blocks are content, content is supposed to be private, so showing blocks on the login screen is practically destroying the point of the module.

My home screen (when logged out) currently displays several links and a phone number! Not good.

I think this only affects blocks that are placed in the Content region however.