Okay, I can't figure out what I'm doing wrong here. I'm using beautytips on the "help text"/descriptions a node-add form, and they're working exactly as I want them to, but they're not displaying the option overrides I've added to the code in my template.php file.

I have the "facebook" style selected on the admin page, but am trying to override the width and colors. Here's what I have:

<?php
function phptemplate_preprocess_node(&$vars) {
  if( module_exists('beautytips') ) {
	 $options['bt_add_event'] = array(
		'area' => '.form-item',
		'ajaxPath' => array(0 => '$(this).next(".description").html()'),
		'trigger' => array(0 => 'mouseover', 1 => 'click'),
		'width' => 240,
		'strokeStyle' => '#c9992d',
		'padding' => '5px',
		'fill' => '#ffffcb'		
		);
		beautytips_add_beautytips($options);
	}
}
?>

What am I doing wrong?
(…and yes, I've flushed the cache plenty of times…)

Comments

kleinmp’s picture

Status: Active » Postponed (maintainer needs more info)

Was this ever fixed? I can't reproduce and this ticket is on the old version of this module.

walker2238’s picture

Version: 6.x-1.1 » 7.x-2.x-dev

I'm actually having a similar issue using template_preprocess_user_picture().

  if( module_exists('beautytips') ) {
    $options['thumbnail_avatar'] = array(
      'cssSelect' => 'img.thumbnail',
      'text' =>format_username($account),
      'trigger' => array('click', 'click'),
      'width' => 350,
    );    
    beautytips_add_beautytips($options);
  }

This works fine except for one problem. The same user name is printed for all users. So User A's name shows up on all users picture.

walker2238’s picture

Status: Postponed (maintainer needs more info) » Active
soulfroys’s picture

Hi @walker2238, I was having the same problem, did you find any solution?

walker2238’s picture

No sorry I didn't. I gave up using any JQuery modules and stuck to implementing the plugins myself, although I never did get this working.

soulfroys’s picture

Good news! Just work here! The problem was: unique names VS unique selectors. I posted the details in the appropriate thread.

pifagor’s picture

Issue summary: View changes
Status: Active » Closed (outdated)