Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#145 2006-03-13 13:35:18
- marios
- Archived Plugin Author
- Registered: 2005-03-12
- Posts: 1,253
Re: [plugin] [ORPHAN] zem_image_replace, version 2
One question I’d like o ask, before I test this, does this have the ability to normaly flow text inline, as is ?
regards marios
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
#146 2006-04-18 07:55:52
- -P-
- Member
- From: Finland
- Registered: 2005-09-10
- Posts: 211
Re: [plugin] [ORPHAN] zem_image_replace, version 2
Els wrote:
<blockquote> 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.</blockquote>
Has anybody found a solution how to fix this? I would really like to have both, zem_ir and valid code with working link.
As Els wrote in his later post, this is not just IE problem. Any way to remove for example the wraptags totally? wraptag=”“ sets it back to default, h1.
Offline
#147 2006-04-18 14:18:28
- Niconemo
- Member
- From: Rhône-Alpes, France
- Registered: 2005-04-18
- Posts: 557
Re: [plugin] [ORPHAN] zem_image_replace, version 2
Pwrote:
Has anybody found a solution how to fix this? I would really like to have both, zem_ir and valid code with working link.
I’d like to fix that too… No idea ?
Last edited by Niconemo (2006-04-18 14:19:25)
Nico
Offline
#148 2006-05-10 03:13:37
Re: [plugin] [ORPHAN] zem_image_replace, version 2
Hey there,
Don’t know if anyone has any thoughts on this, but I wanted to get some wisdom if there was any?
I’m trying to use this plugin with an opentype font, and I get different results locally than I do on dreamhosted server.
The small “i” is “thicker” than it should be?
Must be some weird font thing, but if you have any suggestions, lemme know.
The font I am using is bundled with Adobe’s stuff : its Kozuka Gothic.
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#149 2006-08-18 17:39:07
Re: [plugin] [ORPHAN] zem_image_replace, version 2
I can’t seem to get it right, whatever combination of tags results to NOTHING — either a blank page or a
<>h1
Title-Name
=/ any kind of tag wont do… and yes, I have installed the plugin correctly, did all what the documents instructed, and even copied other people’s codes but to no avail… :( am I missing something here?
Offline
#150 2007-01-12 21:22:02
- mikkeX
- Archived Plugin Author
- Registered: 2004-02-26
- Posts: 74
Re: [plugin] [ORPHAN] zem_image_replace, version 2
I want to use an value from an custom fieldm in this case a font size and the plugin breaks when I try to do so, I tried this:
<txp:zem_ir font="FranklinGothicEC.ttf" wraptag="p" padding="0 3 8 3" wrap="400" size="
<txp:php> "$GLOBALS['thisarticle']['fontsize'] </txp:php>">TEXT</txp:zem_ir>
Does anyone have an idea how to solve this?
Offline
#151 2007-01-13 00:06:46
Re: [plugin] [ORPHAN] zem_image_replace, version 2
mikkeX:
<txp:php>
echo zem_ir(
array(
'font'=>"FranklinGothicEC.ttf",
'wraptag'=>"p",
'padding'=>"0 3 8 3",
'wrap'=>"400",
'size'=>$GLOBALS['thisarticle']['fontsize']
),
'TEXT'
);
</txp:php>
Last edited by ruud (2007-01-13 00:07:48)
Offline
#152 2007-01-13 07:25:53
Re: [plugin] [ORPHAN] zem_image_replace, version 2
Another way of using tag values as attributes: asy_wondertag.
Offline
#153 2007-01-13 08:02:47
- mikkeX
- Archived Plugin Author
- Registered: 2004-02-26
- Posts: 74
Re: [plugin] [ORPHAN] zem_image_replace, version 2
Thanks ruud and wet!
ruuds way of doing it is the best for me, but how do you get the output to be the article title?
I tried this:
<txp:php>
echo zem_ir(
array(
'font'=>"FranklinGothicEC.ttf",
'wraptag'=>"p",
'padding'=>"0 3 8 3",
'wrap'=>"400",
'size'=>$GLOBALS['thisarticle']['fontsize'],
),
$GLOBALS['thisarticle']['Title']
);
</txp:php>
But that did not work, it just ouputs <>.
Last edited by mikkeX (2007-01-13 08:03:12)
Offline
#154 2007-01-13 11:35:57
Re: [plugin] [ORPHAN] zem_image_replace, version 2
replace $GLOBALS['thisarticle']['Title']
with title(array())
Offline
#155 2007-01-13 13:51:36
- mikkeX
- Archived Plugin Author
- Registered: 2004-02-26
- Posts: 74
Re: [plugin] [ORPHAN] zem_image_replace, version 2
ruud wrote:
replace
$GLOBALS['thisarticle']['Title']
withtitle(array())
Great!
One problem left, it is my value from my customfield fontsize, how do I get it in:
<txp:php>
echo zem_ir( array( ‘font’=>“FranklinGothicEC.ttf”, ‘fontsize’=>$GLOBALS[‘thisarticle’][‘fontsize’], //this on does not work ‘wraptag’=>“h1”, ‘padding’=>“0 3 3 3”, ‘ft’=>“1”, ‘wrap’=>“400”,
),
title(array())
);
</txp:php>
Offline