Re-Implementation of GT-Mod wanted?

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
User avatar
santscho
Posts: 1442
Joined: Mon 2. Apr 2007, 08:56
Location: Schweiz

Post by santscho »

Maybe I have to delete the GT-Mod table in the Database and create a new? I don't know.
macmukka

Post by macmukka »

now fixed - please download again - sorry! my fault....now fixed - please download again - sorry! my fault....

DONT DELETE THE TABLE!! ;-)
User avatar
santscho
Posts: 1442
Joined: Mon 2. Apr 2007, 08:56
Location: Schweiz

Post by santscho »

Ok, it works now. But I have still a problem:

Here my settings (like before):
Image

Here the result:
Image

The arrow should be on the same line like "Read more..."

What can i change? Before, it worked with the settings. If I take your font (pr8), I have the same problem. It's not the fault of the ttf.
macmukka

Post by macmukka »

Perhaps we should transfer this discussion to http://www.phpwcms.de/forum/viewtopic.php?t=16108 ?

very strange! ;-)

I have just tried this:-

I looked at an image my "new" GT produced with a single letter it was 23px wide.

Then I copied the <b>old</b> GT MOD over the top of the "new" mod_grapical_text folder to test and deleted the contents of content\gt

there was no difference in the size of the image (apart form the height) - which wouldn't matter because this is a width issue - it seems?

I cannot repeat this. Why dont you post both images one from the old and one from the new mod so I can see the size differnce or I'll try with your font - where do I get it?

OR if you can put a demo page up I will have a look - do you use firebug in firefox? then you'll be able to see exactly what is going on. it is invaluable and saves me so much time. (I do not develop in IE at all - I just change the code during my last stages of design/build.)


hope that helps...

unless you need transparency or paragraphs you could always go back to the old one ;-)
User avatar
santscho
Posts: 1442
Joined: Mon 2. Apr 2007, 08:56
Location: Schweiz

Post by santscho »

I had this problem before too. But with the value "-5" in the field "Height", the icon moved down on the right place. Can you tell me which settings you are using?
macmukka

Post by macmukka »

you got me thinking about the -5! try it now - have uploaded new version. best -
User avatar
santscho
Posts: 1442
Joined: Mon 2. Apr 2007, 08:56
Location: Schweiz

Post by santscho »

Thanks. But still the same :-(

My idea: you could post the settings you are using and then, I will try with this. Maybe, I should change one of these settings in the conf.inc.php???

Code: Select all

$phpwcms['imagick']           = 0; //0 = GD,  1 = ImageMagick, 2 = ImageMagick 4.2.9
$phpwcms['imagick_path']      = ''; //Path to ImageMagick (default='' - none)
$phpwcms['use_gd2']           = 1; //0 = GD1, 1 = GD2
User avatar
santscho
Posts: 1442
Joined: Mon 2. Apr 2007, 08:56
Location: Schweiz

Post by santscho »

No errors with in firebug. When I download the rendered png, it has the size of 17x27 pixels. to heigh! It should be about 17x10 pixels.
User avatar
santscho
Posts: 1442
Joined: Mon 2. Apr 2007, 08:56
Location: Schweiz

Post by santscho »

ok. i changed to imageMagick 4.2.9. Still the same problem.
macmukka

Post by macmukka »

what happs if you make the line padding - 0?
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Post by update »

Did you try to set the padding value to zero and the height too? Does this make a difference?
User avatar
santscho
Posts: 1442
Joined: Mon 2. Apr 2007, 08:56
Location: Schweiz

Post by santscho »

Yes. still the same position, but the font moves up that i can see only a few pixels of the basic font line. the png has still the same size. i tried with Gif as well. PNG-Trans is not working. The font is black instead of red.
After setting padding and height to zero and saving, to mod sets the value "height" to 5! Its not possible to say zero.
User avatar
santscho
Posts: 1442
Joined: Mon 2. Apr 2007, 08:56
Location: Schweiz

Post by santscho »

no, it's not true. the new image size is 17x15 pixels. But height is 5 by default ?????

By the way: for what is x and y?
macmukka

Post by macmukka »

you're right the height is always 5 by default, it is in the original. I can set it to 0 if you like? or so that it always follows what you put in.

you are right about the transparent option it only seems to work black/white - I am going to look at this....

however I have to continue working on my project for tomorrow. SO will have to look at these 'problems' tomorrow. Sorry ;-)


Can we put all feedback for my mod on my original post - it would be better?
User avatar
santscho
Posts: 1442
Joined: Mon 2. Apr 2007, 08:56
Location: Schweiz

Post by santscho »

It's ok. Thank you so much for your great work! and 100x thanks for your support.

Sure, I can switch to the old version. But maybe I need one of the new features very soon. And maybe, my problem helps to find bugs :-)

Have a nice time

Ralph
Post Reply