fancyfonts-plugin support??
Melchior - October 30, 2008 - 14:02
| Project: | Facelift Image Replacement Integration |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Melchior |
| Status: | active |
Jump to:
Description
hi there,
I tried to get the fancyfonts-plugin to work but failed.
anybody there who get it to work?
in config-flir.php I assigned my path: define('IM_EXEC_PATH', '/opt/local/bin/');
and added this to init: FLIR.init( new FLIRStyle( { mode:"fancyfonts" } ) );
but it won't work :(
thx!!

#1
:(
no idea?
#2
you need to modify line 37 in flir.module. I wrote it incorrectly.
it says:
define('FLIR_PLUGIN_DIR', drupal_get_path('module', 'flir') .'/flir/plugins');
It needs to be
define('FLIR_PLUGIN_DIR', base_path() . drupal_get_path('module', 'flir') .'/flir/plugins');
other wise it doesnt find the folder that has the plugins in it.
Does it work now?
#3
hi,
I just get it to work.
there are two points that need to be fixed in your code
(flir.module)
1.
for($i=1; $i<11; $i++) {if (variable_get('flir_selector_'. $i, '') != '' ) {
$js.= ' $("'. variable_get('flir_selector_'. $i, '') .'").each( function() { FLIR.replace(this, new FLIRStyle({ mode:"fancyfonts" , cFont:"'. variable_get('flir_font_'. $i, '') .'" } ), new FLIRStyle({ cFont:"'. variable_get('flir_font_'. $i, '') .'"}) ); } );
';
}
}
2.
change $p = PLUGIN_DIR.'/'.$entry;
to $p = FLIR_PLUGIN_DIR.'/'.$entry;
greetings,
melchior
ps thx for module!
#4
What about for 5.x ?
Please help explain how to integrate this. I have ImageMagick installed via the Image module, and have moved the .inc file to drupal/includes. I have selected ImageMagick under Drupal's Image Toolkit section. Now what?
The above examples didn't seem to help me for the 5.x version.
Thanks in advance.