Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-23 15:47:12

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Textpattern and iframe

I sometimes blog about films and books and would like to add an Amazon Associates link.

This uses an iframe eg.

<iframe src=“http://rcm-uk.amazon.co.uk/e/cm?t=properinthesu-21&o=2&p=8&l=as1&asins=B00112S8SC&fc1=000000&IS2=1&lt1=_blank&lc1=265E15&bc1=FFFFFF&bg1=FFFFFF&f=ifr&nou=1” style=“width:120px;height:240px;” scrolling=“no” marginwidth=“0” marginheight=“0” frameborder=“0”></iframe>

It doesn’t seem to work in Textpattern …? Any one know a way to do this?

Thanks
Geoff


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

#2 2008-02-23 16:55:49

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

Re: Textpattern and iframe

Do any of these plugins help?

Offline

#3 2008-02-23 18:45:33

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Textpattern and iframe

works fine for me.

Offline

#4 2008-02-23 19:05:55

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Re: Textpattern and iframe

Hi Steve,

Content – Write – HTML – paste in the iframe code above – update – save article ….. and I get nothing …?

In fact look again at the HTML and the iframe code has gone ….?

Any ideas …


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

#5 2008-02-23 19:15:35

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Textpattern and iframe

geoff777, type notextile. <iframe [...]>.

Offline

#6 2008-02-23 22:08:22

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

Re: Textpattern and iframe

geoff777 wrote:

Content – Write – HTML – paste in the iframe code above

You can’t add something in the HTML tab, it’s only meant for viewing the code.

Offline

#7 2008-02-23 22:15:15

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Re: Textpattern and iframe

Els wrote:

You can’t add something in the HTML tab, it’s only meant for viewing the code.

I’m using tinymce wysiwyg plugin it appears I can alter the HTML using this.


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

#8 2008-02-23 22:18:30

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

Re: Textpattern and iframe

Ah OK, I don’t know that plugin. But try jm’s advice (add it in the ‘text’ tab).

Offline

#9 2008-02-23 23:07:18

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Re: Textpattern and iframe

maverick wrote:

Do any of these plugins help?

Had a look at all of these one comes close but I can’t seeow to add my associate id.

Thanks


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

#10 2008-02-23 23:08:28

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Re: Textpattern and iframe

Els wrote:

Ah OK, I don’t know that plugin. But try jm’s advice (add it in the ‘text’ tab).

I tried notextile. and it just prints out the iframe code as if it was text


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

#11 2008-02-23 23:18:50

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Re: Textpattern and iframe

Steve was right it does work … no need for notextile.

The problem was the tinymce wysiwyg plugin. I disabled it and the amazon link works.

Thanks to all for taking the time to help.

Geoff


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

#12 2011-06-28 15:55:50

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: Textpattern and iframe

Here we go, resurrecting the dead (thread).

I hate to say it, but I think I have need for putting an iframe in articles (not Amazon related), and I may need to install hak_tinymce for the client in general (the placebo), and it looks like in 2008 there was a problem with hak_tinymce and iframes.

I then found this article of some unknown date which shows a little hak hack to make it work. The prescribed fix was…

In tinymce.js, find this._def("extended_valid_elements",""); and replace it with this._def("extended_valid_elements","iframe[align|frameborder|height|longdesc|marginheight|marginwidth|name|scrolling|Src|width]");. Then upload the file and iframe works with hak_tinymce.

So my question is just to see if this is all par for the course 3 years later?

Offline

Board footer

Powered by FluxBB