Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#109 2005-02-06 23:41:06

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [plugin] [ORPHAN] zem_image_replace, version 2

You should be able to edit the downloaded plugin and place this around it:

<?php $plugin='[plugin file contents]'; ?>


Alex

Offline

#110 2005-02-08 17:03:40

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [plugin] [ORPHAN] zem_image_replace, version 2

Thank you, it worked!

Offline

#111 2005-02-09 16:33:54

Borisch
Archived Plugin Author
From: Sweden
Registered: 2004-05-30
Posts: 15
Website

Re: [plugin] [ORPHAN] zem_image_replace, version 2

Cool plugin, like most of the stuff you do.
Will prolly by running & installing tomorrow. Thx for your work and willingness to share.

Last edited by Borisch (2005-02-09 16:36:51)


Instead of conquering the world, I’m collecting it in my attic.

Offline

#112 2005-02-11 13:04:48

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [plugin] [ORPHAN] zem_image_replace, version 2

First, this is a great plugin, thank you!

I did this:

<code><a href=”/”><txp:zem_ir font=”/html/fonts/CHILLER.TTF” fontsize=“100” color=”#336699” backgroundcolor=”#336699”><txp:page_title /></txp:zem_ir></a></code>

to make it a link to the home page. It works, but the page doesn’t validate anymore because of the h1 tags inside the anchor tags. I tried wraptag=”“, but that doesn’t make the h1 tags disappear.
Is there a way to solve this, or is the plugin just not meant to be used this way?

EDIT: This:

<code><txp:zem_ir font=”/html/fonts/CHILLER.TTF” fontsize=“100” color=”#336699” backgroundcolor=”#336699”><a href=”/”><txp:page_title /></a></txp:zem_ir></code>

seems to create valid html, but it doesn’t give me a working link.

Last edited by doggiez (2005-02-11 13:12:41)

Offline

#113 2005-02-11 23:33:37

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [plugin] [ORPHAN] zem_image_replace, version 2

You could try experimenting with the other CSS replacement methods. The second code is both valid and techically fine, but some browsers (IE in particular) get confused by the CSS when it contains a link.

Last edited by zem (2005-02-11 23:37:35)


Alex

Offline

#114 2005-02-12 18:39:26

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [plugin] [ORPHAN] zem_image_replace, version 2

> zem wrote:

> You could try experimenting with the other CSS replacement methods.

Thank you for your suggestion, I tried all of them, but none of them gives a working link.

> The second code is both valid and techically fine, but some browsers (IE in particular) get confused by the CSS when it contains a link.

Well, Firefox and Opera are confused as well…

Never mind, it’s not that important. Thanks anyway.

Offline

#115 2005-02-22 22:31:02

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [plugin] [ORPHAN] zem_image_replace, version 2

Can anyone shed some light on my problem? Thanks

I have not been able to get this great plugin to work. I’ve read all the posts, but still get the error message Error: The server could not create this heading image. BTW: I’m at 1 and 1 hosting. Could it be a problem with GD?

My code is as follows: <txp:zem_ir font=”/fonts/Oz.ttf” info=“1”>Some Text Here</txp:zem_ir>

My debug log is as follows (sorry for the waste of space):
array(15) { [“text”]=>string(14) “Some Text Here” [“font_file”]=>string(52) “/homepages/12/d90926306/htdocs/cmsTest//fonts/Oz.ttf” [“font_size”]=> int(24) [“angle”]=>int(0) [“color”]=> string(7) “#000000” [“backgroundcolor”]=>string(7) “#ffffff” [“cache_folder”]=>string(52) “/homepages/12/d90926306/htdocs/cmsTest/tp/images/zir” [“aa”]=> int(1) [“trans”]=>int(1) [“depth”]=>int(8) [“ft”]=> int(0) [“cache”]=> int(1) [“method”]=> string(5) “phark” [“align”]=> string(4) “left” [“pad”]=> array(4) { [0]=> string(1) “0” [1]=> string(1) “0” [2]=> string(1) “0” [3]=> string(1) “0” }
}
doc_root setting /homepages/12/d90926306/htdocs/cmsTest/tp does match the server setting ‘/homepages/12/d90926306/htdocs/cmsTest/tp’
cache folder /homepages/12/d90926306/htdocs/cmsTest/tp/images/zir is a directory
cache folder /homepages/12/d90926306/htdocs/cmsTest/tp/images/zir is writable
font file /homepages/12/d90926306/htdocs/cmsTest//fonts/Oz.ttf is a file
font file /homepages/12/d90926306/htdocs/cmsTest//fonts/Oz.ttf is readable
freetype 2 is supported
freetype 1 is supported

Last edited by mrdale (2005-02-22 22:34:47)

Offline

#116 2005-03-05 23:55:32

gustaf
Member
From: Santa Cruz, California
Registered: 2004-12-29
Posts: 17
Website

Re: [plugin] [ORPHAN] zem_image_replace, version 2

great plugin, but it breaks after upgrading to rc3 (because of the death of <pre><code>$pfr</code></pre> and <pre><code>$doc_root</code></pre>). with a little hacking, it is fixable.

Offline

#117 2005-03-06 02:23:37

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [plugin] [ORPHAN] zem_image_replace, version 2

What is the hack?

Offline

#118 2005-03-06 04:33:22

gustaf
Member
From: Santa Cruz, California
Registered: 2004-12-29
Posts: 17
Website

Re: [plugin] [ORPHAN] zem_image_replace, version 2

i just went in and starting replacing things that referred to the old variables until it worked. you can view/download the result here

Offline

#119 2005-04-08 18:15:11

pedro
New Member
From: Finland
Registered: 2005-04-08
Posts: 3
Website

Re: [plugin] [ORPHAN] zem_image_replace, version 2

I’m getting only an empty page with zem_ir. Any help?

Here’s some information :

  • I’m using Zem_Ir 0.5 version
  • my tag is : <txp:zem_ir font=“fairytale.ttf” info=0 cachedir=“netpetu/images/zir” wraptag=“h2”>Hello!</txp:zem_ir>
  • this what I get with ‘info=1’

array(15) { [“text”]=> string(6) “Hello!” [“font_file”]=> string(44) “/home/customers/pathsoflifenet/fairytale.ttf” [“font_size”]=> int(24) [“angle”]=> int(0) [“color”]=> string(7) “#000000” [“backgroundcolor”]=> string(7) “#ffffff” [“cache_folder”]=> string(61) “/home/customers/pathsoflifenet/public_html/netpetu/images/zir” [“aa”]=> int(1) [“trans”]=> int(1) [“depth”]=> int(8) [“ft”]=> int(0) [“cache”]=> int(1) [“method”]=> string(5) “phark” [“align”]=> string(4) “left” [“pad”]=> array(4) { [0]=> string(1) “0” [1]=> string(1) “0” [2]=> string(1) “0” [3]=> string(1) “0” }
}
doc_root setting /home/customers/pathsoflifenet/public_html does match the server setting ‘/home/customers/pathsoflifenet/public_html’
cache folder /home/customers/pathsoflifenet/public_html/netpetu/images/zir is a directory
cache folder /home/customers/pathsoflifenet/public_html/netpetu/images/zir is writable
font file /home/customers/pathsoflifenet/fairytale.ttf is a file
font file /home/customers/pathsoflifenet/fairytale.ttf is readable
freetype 2 is not supported
freetype 1 is not supported

  • and finally some info which I found from the result of phpinfo() :

PHP Version 5.0.3

GD support “enabled”
GD Version “bundled (2.0.28 compatible)”
PNG “enabled”
(everything else in ‘GD’ section are also enabled)

Configure Command ‘./configure’ ‘—with-apxs2filter’ ‘—with-exec-dir=/usr/bin’ ‘—prefix=/usr’ ‘—mandir=/usr/share/man’ ‘—with-config-file-path=/etc’ ‘—with-mysql’ ‘—with-zlib’ ‘—with-jpeg’ ‘—with-jpeg-dir’ ‘—with-freetype’ ‘—with-png’ ‘—with-png-dir’ ‘—with-gd’

This was the only line were I found freetype mentioned.

Offline

Board footer

Powered by FluxBB