Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#181 2009-06-18 13:26:12

Kreeltje
Member
Registered: 2008-12-23
Posts: 21

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

Yeeeeaaah!!

I didn’t read the document carefully enough appaerently..

Works great now!

Super bedankt Els ;-)

Offline

#182 2009-09-21 08:59:50

mlarino
Member
Registered: 2007-06-29
Posts: 367

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

Tried every single convination I can think of, but the plugin cant find the font file in my server.

-bc. Error: The server is missing the specified font ‘/santy/merdeka/santyfuente.ttf’. -

I am using this:

bc.. <txp:zem_ir fontdir=”/santy/design/” font=“myfont.ttf” wraptag=“h2”><txp:page_title /></txp:zem_ir>

I am using txp 4.2

Nevermind! it was a problem with the ttf font

Last edited by mlarino (2009-09-21 09:21:09)

Offline

#183 2009-09-21 10:07:44

mlarino
Member
Registered: 2007-06-29
Posts: 367

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

Any reason why this plugin doesnt generate the <txp:comment_permlink>?
It works fine with the <txp:permlink>

I am using this in the title and works:

<txp:permlink>
<txp:zem_ir fontdir="textpattern/fonts/" font="santyfuente.ttf"  depth="24" padding="3" backgroundcolor="#ffffff" fontsize="20" wraptag="h2" color="2A6FA8" ><txp:title /></txp:zem_ir>
</txp:permlink>

but this in the comments invite generates the img text but not the link to the comments:

<txp:comment_permlink>
<txp:zem_ir fontdir="textpattern/fonts/" font="santyfuente.ttf"  depth="24" padding="3" backgroundcolor="#ffffff" fontsize="11" color="2A6FA8" ><txp:comments_invite /></txp:zem_ir>
</txp:comment_permlink>

Last edited by mlarino (2009-09-21 10:08:04)

Offline

#184 2009-09-21 14:30:16

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

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

I think it’s because <txp:comments_invite /> generates a link as well; try <txp:comments_invite textonly="1" />.

Offline

#185 2009-11-27 17:17:29

holli.p
Member
From: Pinneberg/Germany
Registered: 2004-04-21
Posts: 83
Website

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

My headlines are often longer than a row.
Is it possible to get a wordwrap with your plugin?

In my case the headline is truncated.

Here’s my code:

<txp:permlink><txp:zem_ir font="trebuc.ttf" method="lir" fontdir="../test/" fontsize="18" color="#7a6a5e" depth="24" padding="3 3 6 0" wraptag="h1"><txp:title /></txp:zem_ir></txp:permlink>


Visit my Textpattern sites:
Northerndelight | Hasenbude
Curiculum Vitare | Rezepteblock

Offline

#186 2009-11-27 17:52:18

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

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

holli.p

zem was hired by a company that provides another cms and is no longer active with txp.

You will need to ask another php code aficionado to make the modification you desire or see if there is an alternate method for delivering your desired outcome.

There are a lot of great folks around here. Hopefully one of them will be able to help.

Mike

Offline

#187 2009-11-27 20:46:14

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

Holger – You can use the attribute “wrap”. If I think that the text I am replacing might possibly go too wide I set this to a width slightly less than the width of the container it is in. That way the text will drop onto a second line if it is too long (or even a third). Check the “Help” docs.

Last edited by thebombsite (2009-11-27 20:47:05)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#188 2009-11-27 21:53:21

holli.p
Member
From: Pinneberg/Germany
Registered: 2004-04-21
Posts: 83
Website

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

thebombsite – You mean wrap=“br” ?


Visit my Textpattern sites:
Northerndelight | Hasenbude
Curiculum Vitare | Rezepteblock

Offline

#189 2009-11-27 21:58:48

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

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

holli.p wrote:

thebombsite – You mean wrap=“br” ?

Not wraptag but wrap. Per the documentation

wrap
Word-wrap text to a specific width limit, in pixels. Default is 0, no wrapping. The pixel width refers to the dimensions of the text before rotation and padding is applied.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#190 2009-11-28 17:06:23

holli.p
Member
From: Pinneberg/Germany
Registered: 2004-04-21
Posts: 83
Website

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

Hmm, wrap="440" is also not producing a wordwrap after 440px. The row is just truncated

Last edited by holli.p (2009-11-28 17:06:44)


Visit my Textpattern sites:
Northerndelight | Hasenbude
Curiculum Vitare | Rezepteblock

Offline

#191 2009-11-28 21:22:35

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

Mmmm. Seems odd. It’s working for me. I wondered if it might be your use of the lir method but I changed mine and it still works. It isn’t a caching problem is it? Have you tried a Ctrl-F5? Or do you have a height set for the surrounding block that hides the wrapped text? What version do you have?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#192 2009-12-02 18:20:00

holli.p
Member
From: Pinneberg/Germany
Registered: 2004-04-21
Posts: 83
Website

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

I haven’t set a height, but there is a height in the generated code:

my code
<txp:permlink><txp:zem_ir font="trebuc.ttf" fontdir="../test/fonts/" fontsize="18" wrap="440" color="#7a6a5e" depth="24" padding="3 3 6 0" wraptag="h1"><txp:title /></txp:zem_ir></txp:permlink>

the generated code:
<a rel="bookmark" href="http://www.northerndelight.de/test/4/sommerkollektion"><h1 style="text-indent: -5000px; background: url(/test/images/zir/5df9f90e0b818923da4d7bbdb7a54377.png) no-repeat top left; height: 62px;" title="es ist ja wirklich ganz selten, dass ich hier für kommerzielle Dinge werbe">es ist ja wirklich ganz selten, dass ich hier für kommerzielle Dinge werbe</h1></a>

the css for the h1 tag
h1 {font: bold 24px trebuchet ms, sans-serif; color: #7A6A5E; margin: 0px 0px 5px 0px; width: 440px; text-align: left;}
h1 a {text-decoration: none;}

The zem_ir version is 0.5
Textpattern 4.2.0


Visit my Textpattern sites:
Northerndelight | Hasenbude
Curiculum Vitare | Rezepteblock

Offline

Board footer

Powered by FluxBB