Member
Member
vincent3569   2010-05-09, 22:27
#1

hello

is it possible to have a map (taken from google map) in a news ?
in fact i wish to display a map of irland (my next hollidays ;-) in my next news.

google map gives me this code to put in my web page, but, if i paste it in news, it doesn't displays my map

how can I do ?

Member
Member
sbillard   2010-05-10, 03:18
#2

There are "codeblocks" that allow you to insert pretty much anything into a page or article. Of course, you will have to figure out the PHP needed to make a map appear.

Administrator
Administrator
acrylian   2010-05-10, 08:40
#3

Also your theme must support these codeblock. But they can easily be added.

Member
Member
vincent3569   2010-05-10, 10:38
#4

yes, i do that
but it's a little bit "static" :
in my theme, i've added codeblocks, but it's always at the same place (at the end of the text for example).

i wish add a map in my text as the same way as a photo with TinyEditor.
it isn't possible ?

Administrator
Administrator
acrylian   2010-05-10, 10:58
#5

Sure, html is possible as our default editor TinyMCE has a html view, too. But remember you have to allow the iFrame tag on the allowed tags on the options, otherwise it would be cleared.

Member
Member
vincent3569   2010-05-10, 19:37
#6

ok
i've allowed iframe tags with the following code in the admin tabs

Quote:iframe => (width=>() height=>() frameborder=>() scrolling=>() marginheight=>() marginwidth=> () src=>() )
I added the following code in text of my news (with the html editor) :

Quote:
when i saved the news, the iframe tag is still filtred by zenphoto and the map is still not displayed in the news.
where is the mistake ?

Member
Member
vincent3569   2010-05-12, 22:40
#7

hello

I'm sorry to up this msg
Can you help me to configure iframe tag in the allowed tags ?

Administrator
Administrator
acrylian   2010-05-13, 08:19
#8

Look at the examples, they explain it.

Member
Member
vincent3569   2010-05-16, 21:40
#9

I looked and folowed the exemples and i put this code in the admin tab

`

iframe => (width=>() height=>() frameborder=>() scrolling=>() marginheight=>() marginwidth=> () src=>() )

`

it doesnt' work and i still don't understand why.
could you explain, please ?

Administrator
Administrator
acrylian   2010-05-17, 09:22
#10

It might be possible that TinyMCE clears iFrame code, but I don't know.

Member
Member
vincent3569   2010-05-17, 18:47
#11

hello
exact, it seems that TinyMCE clears iFrame code.

I've changed the text editor (html editor) and i've writed the correct code and saved the news without changing text editor (i remain with html editor).

by following this instructions, it's ok (but I can't modify the news otherwise the code is cleared by TinyMCE).

it really is not very easy and convenient but it works

Administrator
Administrator
acrylian   2010-05-17, 18:55
#12

Of cousre the normal edit mode of TinyMCE does not allow html tags directly. You always need to switch to the html mode. I assumed you knew this, sorry.

I suggest to look if there is maybe a TinyMCE plugin for Google maps maybe and change the config file accordingly to include that.

Member
Member
vincent3569   2010-05-17, 19:08
#13

yes of course, I've understood that i must switch on html mode to insert iframe tag.

i said that : if you save under html mode : it's ok, the iframe tag is correctly saved and displayed.
but, if you switch on tinyMCE before saving, the iframe is displayed in the admin but during saving, the iframe tag is cleared.

so,if you have to insert iframe tag in a news, you must follow the tip i've described

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.