Hi,

I want to send a piece of html from a view to a web page in the no drupal site (like embed in a static page).
So I found the embed widget module is perfect for that (I just rewrite a module like iframe part).
But when I tested it in my localhost, it didn't display the source in the widget.
The source is ok, I see it after created, but not in the any widget.

I tried the last version too (6.x-2.0-alpha2) but there is a error permission and I don't see where can I choice the view I applied.

So Anybody have an idea to work the module or another module to do my needed ?

Thamks.

Comments

ecpl’s picture

Assigned: ecpl » Unassigned
ecpl’s picture

Category: feature » bug
ecpl’s picture

Status: Active » Closed (fixed)

Ok. I know why.... some tags appear because the module devel theme is active else it's ok

Yadavan-1’s picture

Hi,
I have created a sample view and added display block. In Embedded widget i added new source and created widget but here is not displaying my widget at live preview and other websites also...

Any body help me how to show my widget at live preview.

Thanks

DrupalShark’s picture

I am having the same problem, In Embedded widget i added new source and created widget but it is not displaying my widget at live preview and other websites when i paste the embed code it spits out. I attached screen shots, did anyone ever get this figured out and can help me with this. Thanks in advance.

bcobin’s picture

Status: Closed (fixed) » Active

Same problem here. Did anyone ever figure this out? Setting back to active insofar as it doesn't seem to be fixed for DrupalShark nor me - thanks!

joberg’s picture

subscribing

joberg’s picture

Ok found the problem,

It has to do with the Tabs module. This module adds the class "drupal-tabs js-hide" and js-hide has "display: none". So you have 2 options (I tried both and they work on Drupal 6.22)

1.- Go to tabs.module and around line 57:

Remove js-hide from this code:

$element['#attributes']['class'] = (isset($element['#attributes']['class']) ? $element['#attributes']['class'] .' ' : '') .'drupal-tabs js-hide'. (isset($element['#tabs_navigation']) && $element['#tabs_navigation'] ? ' tabs-navigation' : '');

2.- Override the css style .cron-check-processed div.js-hide{display: block !important;} . This is the option I left because it affects only the widget tabs

By the way I had to use 2 patches and this workaround to make this plugin work...

Feel free to close this issue If this solution works for you

Regards,
James

sv2109’s picture

In my case the module does not display anything on loсalhost but on a normal website (like mysite.com) everything is working fine

lury’s picture

IMHO its better to remove dependency to tabs module - in code theres an "if" in case tabs is missing and widget is displayed correctly.

    // Use tabs module if it exists.
    if (module_exists('tabs')) {
      $content = embed_widgets_build_content($embed_widget, $widget_type);
      $form = array();
      $form['widget'] = array(
        '#type' => 'tabset',
      );
      foreach ($content['tabs'] as $id => $tab) {
        $form['widget']['tab' . $id] = array(
          '#type' => 'tabpage',
          '#title' => check_plain($tab['title']),
          '#content' => theme('embed_widgets_iframe_tabpage', $tab),
        );
      }
      $content['content'] = tabs_render($form);
      print theme('embed_widgets_iframe_jquery', $content);
    }
    else {
      // No JavaScript tab navigation
      $content = embed_widgets_build_content($embed_widget, $widget_type);
      foreach ($content['tabs'] as $id => $tab_info) {
        $content['tabs'][$id]['url'] = url('embed-widgets/content/iframe/'. embed_widgets_encode($embed_widget) . '/'
      }
      if ($sid == NULL) {
        reset($content['tabs']);
        $tab = current($content['tabs']);
        $content['tabs'][$tab['id']]['class'] = 'active';
      }
      else {
        $tab = $content['tabs'][$sid];
        $content['tabs'][$sid]['class'] = 'active';
      }
      $content['content'] = theme('embed_widgets_iframe_tabpage', $tab);
      print theme('embed_widgets_iframe_page', $content);
    }

Edward.H’s picture

#8, remove "js-hide" works like a charm for me ,thanks