complex html code in message - how to allow & safety iss

Support for IntegraMOD 140

Moderator: Integra Moderator

complex html code in message - how to allow & safety iss

PostAuthor: sanji » Wed Jun 21, 2006 5:49 am

[color=brown]NOTE ]


Hello,

Lately I have been looking at an easy was to allow posters to add google maps in their messages.

The easiest way seems to be the use of GMapEZ (http://bluweb.com/us/chouser/gmapez/), which is quite easy to handle:

- You declare the map and call a javascript function:

Code: Select all
(meta name="gmapkey" content="abcdefg" /)(script src="gmapez-2.js" type="text/javascript")(/script)


- You add some simple html code where you want to display the map](div class="GMapEZ" style="width: 300px; height: 300px;")(a href="http://maps.google.com/maps?ll=41.092104,-85.144740&spn=0.006130,0.009795&t=k&hl=en")(/a)(/div)[/code]

It is very powerful, you can add markers, change their size and color, add lines, etc, etc...

I add the first part of the code in the templates/fisubice/viewtopic_body.tpl, and the code is diplayed after posting, so no problem.

By if I add the following code in a message :

[code](div class="GMapEZ" style="width]

Then that code is completely broke down before being displayed. Even if I have the following html tags allowed : b,i,u,pre,table,tr,td,div,a


I guess it is for safety reason, but is there a way to go around and allow such html code to be displayed in a message? Would there be any risk associated with that?

Any help would be greatly appreciated. I am really blocked by this problem... and really willing to make that work <img>

Thanks,

sanji
Last edited by sanji on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[img]http://www.secret-japan.com/forum/images/banners/fuji%20secret-japan%2088x31.gif[/img] [url=http]Secret Japan[/url] : discover Japan off the beaten tracks

sanji
Sr Integra Member
Sr Integra Member
 
Posts: 291
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 12, 2006 9:18 pm
Cash on hand: 0.00

Return to IntegraMOD 140

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]