Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Embed Code MOD
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

leatherlips
Senior Member

USA
1838 Posts

Posted - 21 June 2009 :  13:18:00  Show Profile  Visit leatherlips's Homepage  Reply with Quote
There are a ton of sites that offer you the ability to embed their content into your website, blog and forum. It would be great if someone could write an "Embed Code MOD" that would allow you to do that.

I envision it as having an embed tag, [embed][/embed] and you could put the code between it and have it displayed in the forum.

Anybody able to do this?

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

AnonJr
Moderator

United States
5768 Posts

Posted - 21 June 2009 :  13:49:42  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Its a nice idea, but you need to be very careful of cross-site scripting attacks...

I - personally - don't like to allow outside content unless I have strict control over it.
Go to Top of Page

Panhandler
Average Member

USA
783 Posts

Posted - 23 June 2009 :  10:01:19  Show Profile  Visit Panhandler's Homepage  Reply with Quote
Isn't that what Marcel has done with his video embed mod?
Example:
http://www.gigharborvideos.com/video/topic.asp?TOPIC_ID=37

Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 23 June 2009 :  10:21:31  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Marcel's code is specific to videos - and thoroughly checks the input. Unless I mis-read, leatherlips is looking for something a little more generic that would let you embed a Google Map as easily as a YouTube video.
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 23 June 2009 :  10:54:02  Show Profile  Visit leatherlips's Homepage  Reply with Quote
quote:
Originally posted by AnonJr

Marcel's code is specific to videos - and thoroughly checks the input. Unless I mis-read, leatherlips is looking for something a little more generic that would let you embed a Google Map as easily as a YouTube video.

Correct. I am looking for something like an "all purpose" embed code. There are so many sites that allow you to share things from their sites and I would like to be able to have them be embedded into my forum.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 23 June 2009 :  11:32:05  Show Profile  Visit MarcelG's Homepage  Reply with Quote
Leatherlips, if that is what you want ; allow your users to embed everything they want to embed, the solution is simple: turn on HTML.
Beware of the results, as this is a severe security risk, enabling cross-site scripting attacks but also embedding of dangerous javascript, messing up your forum severely as well as your forum visitors security.

In other words ; you really do not want to enable this.... If you do, I'd say: you're on your own.

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 23 June 2009 11:33:18
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 23 June 2009 :  14:10:50  Show Profile  Visit leatherlips's Homepage  Reply with Quote
I guess you guys are right. I don't want to open my forum up to attacks.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 29 June 2009 :  16:00:45  Show Profile  Visit leatherlips's Homepage  Reply with Quote
I was rethinking this. I have the allow html mod for Admins only. It also has the options of html for Super admin and admins and moderators only.

I could set it to allow html for admin and mods only, but I do not have any mods on my forum. Would there be a way to allow html for certain members only? Maybe after they have reached a certain number of posts or maybe I could hard code certain member id's in the asp pages? This way I would only be letting people who I trust be able to do it. Just a thought.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

Edited by - leatherlips on 29 June 2009 16:01:25
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 29 June 2009 :  17:18:36  Show Profile  Visit Etymon's Homepage  Reply with Quote
If you were to open your posting up to allow HTML

You could probably achieve what you want by placing those members into a user group that allows HTML. Of course, you would have to do some direct retooling of the code to achieve that allowance.

After that you might consider setting all of those posts by that usergroup to be moderated only, and then alter your link(s) to each topic (while each is in a moderated status) to not show you the rendered post, but rather to show you the Edit form of the post. I say this because if you view the post, and it is malicious, then guess who gets the attack first? If you are viewing the post in Edit view, then you get a first chance to view the post as neutralized code and not view the post as rendered code. That's the theory anyway.
Go to Top of Page

kyodai
New Member

Azerbaijan
74 Posts

Posted - 30 June 2009 :  15:10:37  Show Profile  Reply with Quote
I am thinking about adding the youtube embed on my forums - i will probably do it as i think youtube is quite safe.

I have made a quite special embedding code for my site which is partially based on the video embedding sources posted here. The difference is just that i check for [wmv] tags and these dont hold the whole url but just a filename like "myvideo.wmv". the wmv tag triggers an iframe that points to my video.asp which will embed a wmv video with my url+ the video name. That way only videos that were uploaded onto my backend site can be embedded and i also made the video.asp so it will only display the video if the user is logged in - that way visitors only see "Please register to be able to watch videos", saving my bandwidth and giving people another reason to join.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07