Hi,
I have tested the new g2image version, the new function "exactsize" works fine!!
g2image add the tag, for example [G2:37 exactsize=446 ] or [G2:37 exactsize=640] according to the data introduced in the new field "Drupal G2 Filter "exactsize" attribute ". When pressing in the button to insert, appears tag in the content of Drupal.
In tinyMCE, to press button "g2image" and launch the program, I have received the following minor errors:
[b]<--begin copy-->
Notice: Undefined variable: g2ic_default_alignmen in /webs/tomashidalgo.nom.es/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/g2image/init.php on line 31
Notice: Use of undefined constant CachedFileReader - assumed 'CachedFileReader' in /webs/tomashidalgo.nom.es/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/g2image/gettext.inc on line 26
Notice: Use of undefined constant gettext_reader - assumed 'gettext_reader' in /webs/tomashidalgo.nom.es/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/g2image/gettext.inc on line 29
Notice: Use of undefined constant __ - assumed '__' in /webs/tomashidalgo.nom.es/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/g2image/gettext.inc on line 175
<-end copy-->
The first "notice" about g2ic_default_alignmen is a syntactic error. I have modified in the file init.php line $g2ic_options['default_alignment'] = $g2ic_default_alignmen; by $g2ic_options['default_alignment'] = $g2ic_default_alignment;. The error has disappeared.
Respect the others errors, I didn't find solution
Thanks you very much for you help.
Tomas Hidalgo
Posts: 492
Tomas,
Thank you. I've fixed the typo you pointed out and it will be in the next update.
For the other two errors, I think I left out quotation marks. (I'm not sure why I'm not getting the PHP warnings on my test bed. I thought I had turned on full PHP error reporting. I need to check into that more.)
Anyway, please try changing lines 26-31 in gettext.inc to read
Please let me know if that clears up the errors.
Cheers,
Kirk
Posts: 20
Kirk,
Thanks for reply!!
The three errors have disappeared using the quotation marks.
Great job!!
Thanks!!!
Tomas Hidalgo.
Posts: 492
I'll go back and get the one at line 175, too.
Thanks for helping crush the typos!
Kirk