Page 1 of 1

Problem with TrueType Module / Can't create style

Posted: Sun Jul 01, 2007 11:37 pm
by nhaack
Hi all together,

I am new to the CMSMS community. I already have my basic installation up and running (1.0.8. Kona) but experience problems with the TrueTypeText Module (2.0.0-RC2).

To use image text, I am required to define at least one style, but when I try to my first new style, I get an error upon submission of the style name saying (also tried different casing and characters):


Notice: Only variable references should be returned by reference in
{path to cmsms}/modules/TruetypeText/class.style.php on line 33

Unable to save style


Unfortunatly, I am not much of a coder. I know a bit PHP to move stuff back and forth in my templates, but that's mainly it.

Is there a solution for my problem? Can I repair that with a few keystrokes? I browsed/searched the forum and web, but I probably already have tomatos on my eyes and couldn't find the solution. In that case, please excuse and point me to the solution.

I am always eager to learn more about the stuff behind, so any help is highly appreciated.

Thanks in advance
Best regards
Nils

---------------------------------------

Server specs:
------------------------
Apache            1.3.33 (Unix)
MySQL              4.0.25
PHP Version        4.4.7
GD Version        bundled 2.0.28 compatible
FreeType support    enabled
FreeType Linkage    with freetype 

CMS Specs:
------------------------
CMSMS            1.0.8. (Kona)
TrueTypeMod    2.0.0. - RC2

Additional cmsms modules/themes/plugins installed:
------------------------
none so far, pretty naked installation

Re: Problem with TrueType Module / Can't create style

Posted: Mon Jul 02, 2007 7:41 pm
by nhaack
After frickeling around the whole night I switched to version 1.2.1. of TryeTypeText which will suit the purpose. It worked right from the spot.

I am still clueless, why the 2.0.0.RC2 doesn't work (or doesn't let me create styles) but hey, it is RC... so probably the stable release is more suitable for such users like me.

Thanks anyway. CMSMS really seems to be nice piece of software!

Best regards
Nils

Re: Problem with TrueType Module / Can't create style

Posted: Mon Jul 02, 2007 7:55 pm
by dam
Well, there seems to be a bug in my style class.

I'm sorry because I didn't have much time to follow Truetypetext development last months.

I'll try to see that next weeks...

Re: Problem with TrueType Module / Can't create style

Posted: Mon Jul 02, 2007 8:05 pm
by dam
Well, perhaps can you do that :

replace line 33 of file class.style.php

Code: Select all

return false;
by :

Code: Select all

$result = false; return $result;

Re: Problem with TrueType Module / Can't create style

Posted: Mon Jul 02, 2007 8:46 pm
by nhaack
Hi dam,

thanks for the pretty quick reply :). I really appreciate it since I am still at the very beginning of my CMSMS learning curve. I also really appreciate your effort put into the module. I think, since I will just use a modified ttf (monospace typewriter style) for headlines without any shadow or mirror styles I am perfectly fine with 1.2.1. as I got it working  ;D.

I prefer having things as simple as possible, so the reduced options match my preferences and I don't have the feeling I miss some must-have-feature. Or shall i use 2.0.0RC2 in any case?

Best regards
Nils

Re: Problem with TrueType Module / Can't create style

Posted: Tue Jul 03, 2007 8:10 am
by dam
nhaack wrote: Hi dam,

thanks for the pretty quick reply :). I really appreciate it since I am still at the very beginning of my CMSMS learning curve.
You're lucky : I don't spend a lot of time on this forum those days...
nhaack wrote: I also really appreciate your effort put into the module. I think, since I will just use a modified ttf (monospace typewriter style) for headlines without any shadow or mirror styles I am perfectly fine with 1.2.1. as I got it working  ;D.

I prefer having things as simple as possible, so the reduced options match my preferences and I don't have the feeling I miss some must-have-feature. Or shall i use 2.0.0RC2 in any case?

Best regards
Nils
I'll suggest you to use 2.0.0, because it's supposed to be better  :D :D
And any feedback is welcome : it will help me to provide a bugfree 2.0.0 release...

Re: Problem with TrueType Module / Can't create style

Posted: Thu Jul 19, 2007 12:05 pm
by halm
I get a warning too when trying to add a style -

Code: Select all

Notice: Undefined variable: legendtext in root/lib/classes/module_support/modform.inc.php on line 566

Re: Problem with TrueType Module / Can't create style

Posted: Thu Jul 19, 2007 12:50 pm
by Franck
  • first, got the same warning...
  • second, any documentation would be welcome to use this very interesting but pretty obscure module : after creating a style, and putting an automatic replacement on html tag 'h2' (page title in the content), what must I do to make it works  ? ???
I'm using truetype text 2.0.0 RC2 on cmsms 1.1

Thanx !

Re: Problem with TrueType Module / Can't create style

Posted: Fri Jul 20, 2007 7:52 am
by Franck
ok, back to version 1.2.1 that works fine for what I want...

v2 needs documentation and is really not user friendly imho.

Re: Problem with TrueType Module / Can't create style

Posted: Wed Oct 10, 2007 6:44 am
by cjg
Hello,

I am not a php coder, however to correct the below error:


Notice: Undefined variable: legendtext in root/lib/classes/module_support/modform.inc.php on line 566

edit modform.inc.php and locate the line:

$legend_text = cms_htmlentities($legendtext);

and change it to:

$legend_text = cms_htmlentities($legend_text);

Now this still leaves a problem as this module at this stage does not appear to work for me.  When the above error was corrected, I get the same error that I got with 2.0.0, namely:

a red box with the error:

Unable to save style.

Is this version of the module actually working for anyone?

It seems that the versions before 2.0.0 have now been deleted, so I can not even try that.

Regards,

Christopher.