The IFrame embed code: textfield which contains the code to copy and paste has a maxlength="128" attribute which cuts off the code making it pretty useless.

CommentFileSizeAuthor
#2 maxlength.patch361 bytesbudda

Comments

budda’s picture

webwidgets.module line 185, add
'#maxlength' => FALSE,

So you end up with:

function theme_web_widgets_embed_code($code, $style) {
  $styles = web_widgets_get_styles();
  $style_name = $styles[$style];

  static $num = 0;
  $form = array(
    '#type' => 'textfield',
    '#title' => t('@style embed code', array('@style' => $style_name)),
    '#description' => t('Copy and paste this code to your web site to embed a dynamic view of this page.'),
    '#id' => 'web_widgets_'. $num++,
    '#name' => 'web_widgets',
    '#value' => $code,
    '#parents' => array('none'),
    '#maxlength' => FALSE,
  );
  if ($style == 'uwa') {
    $form['#type'] = 'item';
    $form['#value'] = l($code, $code);
    $form['#title'] = t('@style widget', array('@style' => $style_name));
    $form['#description'] = t('Embed your widget on NetVibes or iGoogle.');
  }
  else if ($style == 'google_gadget') {
    $form['#title'] = t('@style widget', array('@style' => $style_name));
    $form['#description'] = t('Copy and paste this code to your iGoogle page.');
  }
  return drupal_render($form);
}
budda’s picture

Status: Active » Needs review
StatusFileSize
new361 bytes

Patch for the 1 liner

aron novak’s picture

Status: Needs review » Fixed

Thank you, great catch!

Status: Fixed » Closed (fixed)

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