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

melchior’s picture

:(

no idea?

btopro’s picture

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?

melchior’s picture

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!

roper.’s picture

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.

hadsie’s picture

Version: 6.x-1.2 » 6.x-2.x-dev
Category: support » feature
Status: Active » Fixed

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.

Status: Fixed » Closed (fixed)

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