Hi,

My block is not refreshing in Zen theme. I have tried adjust what is line 50 in block.tpl.php with suggested code but same result.
I do have anonymous views enabled on the website.
http://zenetec.com/incidents/tvApp

Comments

adinxy’s picture

Same problem. I am using Zen theme 7.x-5.1
I found that the block_refresh.js require the class .content but Zen theme omitted this class in block.tpl.php
Just re-use drupal core block.tpl.php

<div id="<?php print $block_html_id; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>

  <?php print render($title_prefix); ?>
<?php if ($block->subject): ?>
  <h2<?php print $title_attributes; ?>><?php print $block->subject ?></h2>
<?php endif;?>
  <?php print render($title_suffix); ?>

  <div class="content"<?php print $content_attributes; ?>>
    <?php print $content ?>
  </div>
</div>
mermemladeK’s picture

What is the state on this issue? I was considering this module but I use Zen...

tripper54’s picture

@mermemladek , the module currently does not work with Zen 5. adinxy's suggested fix in #1 will work. Going forward I think I'll add explicit support for Zen as it's such a popular theme.

tripper54’s picture

Assigned: adam3145 » Unassigned
Category: Support request » Bug report
Issue summary: View changes
tripper54’s picture

Assigned: Unassigned » tripper54
tripper54’s picture

Status: Active » Needs review
StatusFileSize
new5.01 KB

Preliminary support for Zen (and other themes that don't create a "content" container in their block template) in attached patch.

I'd be interested in reviews before committing.

tripper54’s picture

Assigned: tripper54 » Unassigned
jayha’s picture

Where do you apply the patch block_refresh_zen-1816868-6.patch ?

tripper54’s picture

Thanks for having a look!

Apply to the patch to the latest 7.x-2.x dev, see https://drupal.org/project/block_refresh/git-instructions

The patch should apply cleanly, any problems let me know.

sbilde’s picture

I can confirm that the patch in #6 works with the Bootstrap 7.x-3.0 theme as well.

tritof’s picture

Thanks to #6 and #10, I found the solution to override the block.tpl.php file by adding the <div class="content"> after <section> and it works (Bootstrap 7.x-3.0)

tripper54’s picture

@Tritof, so the patch in #6 did not work for you?

tritof’s picture

yes it worked. Thanks

tripper54’s picture

Status: Needs review » Reviewed & tested by the community

Great, thanks for getting back to me Tritof.

I think this can be marked as RTBC now.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 6: block_refresh_zen-1816868-6.patch, failed testing.

tripper54’s picture

Assigned: Unassigned » tripper54

erp, looks like it needs re-rolling. I'll work on this on the weekend.

tripper54’s picture

Status: Needs work » Needs review
StatusFileSize
new4.08 KB

re-rolled for latest dev.

tripper54’s picture

Status: Needs review » Reviewed & tested by the community

  • tripper54 committed aadf8e7 on 7.x-2.x
    Issue #1816868 by tripper54: Support Zen and other modern themes
    
tripper54’s picture

Assigned: tripper54 » Unassigned
Status: Reviewed & tested by the community » Fixed

After 18 months, finally a working patch committed! Thanks to everyone for your help on this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

tritof’s picture

Hey, I am really (really) sorry. I am retesting the patch because I still have an issue with the block refresh and the manual function. I just notice a strange behavior with the patch :
1/ It appears only when a drupal.behavior is triggered in the page (not related to the patch, the version without patch has the same bug)
2/ First click on refresh is ok
3/ Second click on refresh reload the entire page and so the refresh manual button disappear because back to 1/ (related to the patch because the version without the patch has not this bug).

I don't want to reopen it because it was about Zen theme and I am testing with Bootstrap. Just for info.

tripper54’s picture

@tritof, can you please open another issue? It sounds like there are bug(s) that need investigating.

thanks!

fritzpadilla’s picture

I can verify that the above path is included in version 7.x-2.3 but DOES NOT work in Zen 7.x-5.4. I can see that the JS is executing but the content of the block is never updated.

tripper54’s picture

Hi fritzpadilla,

I just confirmed block refresh 7.x-2.3 works with zen 7.x-5.4

I did this with a fresh install of drupal, zen 5.4 and block_refresh 2.3. Confirmed that the block_refresh_test module does indeed refresh manually and automatically (timed).

So your issue is not related to block_refresh/zen interoperability, and this issue.

If you continue to have problems, could you please open a new issue and include steps to reproduce the problem?

thanks!

Drupa1ish’s picture

Not working with Omega theme 7.x-3.1

tripper54’s picture

@EuroDomenii , this issue is for Zen theme compatibility, and is now fixed. Could you log your bug in a new issue thread?

thanks!

Drupa1ish’s picture

Sorry, false alarm ... Some rogue custom script was to blame! Works perfectly with Omega 7.x-3.1