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
Comment #1
kleinmp commentedWas this ever fixed? I can't reproduce and this ticket is on the old version of this module.
Comment #2
walker2238 commentedI'm actually having a similar issue using template_preprocess_user_picture().
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.
Comment #3
walker2238 commentedComment #4
soulfroysHi @walker2238, I was having the same problem, did you find any solution?
Comment #5
walker2238 commentedNo 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.
Comment #6
soulfroysGood news! Just work here! The problem was: unique names VS unique selectors. I posted the details in the appropriate thread.
Comment #7
pifagor