Posted by melchior on October 30, 2008 at 2:02pm
Jump to:
| Project: | Facelift Image Replacement Integration |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | melchior |
| Status: | closed (fixed) |
Issue Summary
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!!
Comments
#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.
#5
I've just added fancyfonts support to the 2.x branch of this module. Please give it a try and let me know if it works. I won't be adding support for the 5.x version of the module. But am happy to accept patches if someone else wants to.
#6
Automatically closed -- issue fixed for 2 weeks with no activity.