View Full Version : Do you know any plugins for allow embed code
doozoor
11-14-2011, 02:05 AM
Do you know any plugins for allow embed code? via submit form with html code for display video or game on post. Let me know about that, Thank You
hotaruuser
11-14-2011, 03:41 PM
Hi!
Displaying Video should be easy, is there not a plugin that turns the youtube-video link in to the embed code?
And the Text-Widget plugin shows embedded code too...
doozoor
11-14-2011, 06:49 PM
Hi!
Displaying Video should be easy, is there not a plugin that turns the youtube-video link in to the embed code?
And the Text-Widget plugin shows embedded code too...
Thank you for relay me but
I am not talk about widget.. I just talk about display video on bookmark post of front my main site.
I need enable for add "embed code" on submit form
like <oject>example code </oject> or <emebed></embed>. similar idea as WordPress 's post form had everything tools, that so you can put embed code, Anything custom fields,etc.
I don't use youtube link. I use other video site's embed code. That is why i need that one :)
hotaruuser
11-14-2011, 07:35 PM
Are you using the ckeditor? You should be able to add plugins to the ckeditor, which embed such things. Its not so hard as it seems to be, I wrote plugins to insert graphics on my own
http://ckeditor.com/
doozoor
11-15-2011, 06:11 AM
Are you using the ckeditor? You should be able to add plugins to the ckeditor, which embed such things. Its not so hard as it seems to be, I wrote plugins to insert graphics on my own
http://ckeditor.com/
I added ckeditor at submit form but it wont work with embed code or not function with embed code
hotaruuser
11-15-2011, 11:30 AM
Did you look, if you can add a plugin to Ckeditor itself from their homepage?
doozoor
11-15-2011, 06:14 PM
Did you look, if you can add a plugin to Ckeditor itself from their homepage?
http://forums.hotarucms.org/showthread.php?1159-CKEditor-0.1
I did add plugin to Ckeditor itself on my site's submit page. But it wont work with embed code :confused:. How can i use embed code on Ckeditor form at submit page?
PuckRobin
11-15-2011, 08:42 PM
Did you allow the tags (iframe, object, etc) in Submit plugin?
Instructions
1. Go to Admin->Plugin Settings->Submit Plugin and where it says "Allowed HTML tags in post description" add these tags and save:
<b><font><img><p><a><strong><ul><li><ol><u><em><sp an><h1><h2><h3><hr><strike><blockquote><del> (add more if you like but not tested)
doozoor
11-16-2011, 05:55 AM
Did you allow the tags (iframe, object, etc) in Submit plugin?
I added <embed><object> on the TAG in Submit Plugin. I did test that i put embed coded on the submit page after that, then I checked on preview page , it won't display video, only show with Post title and describe.
PuckRobin
11-16-2011, 06:45 AM
What is your embed code? Don't you have <param> tag inside too?
If it doesn't work although you permitted param tag, you may be having the same problem mentioned here:
http://php.net/manual/en/function.strip-tags.php
It's come to my attention that PHP's strip_tags has been doing something funky to some video embed codes that our members submit. I'm not sure the exact situation, but whenever there is a <param> tag that is very long, strip_tags() will completely remove the tag even though it's specified as an allowable tag.
There is a solution offered there.
Or, you may allow ALL html tags. But you need to be careful. If you don't manually approve your posts, I don't advise this:
Find this line in submit.php around line 563:
$h->vars['submit_content'] = sanitize($h->vars['submitted_data']['submit_content'], 'tags', $allowable_tags);
Replace it with:
$h->vars['submit_content'] = $h->vars['submitted_data']['submit_content'];
doozoor
11-17-2011, 09:24 PM
I can't find anything in submit.php around line 563:
$h->vars['submit_content'] = sanitize($h->vars['submitted_data']['submit_content'], 'tags', $allowable_tags);
also I did added <param> tag still not work display video...
What is your embed code? Don't you have <param> tag inside too?
If it doesn't work although you permitted param tag, you may be having the same problem mentioned here:
http://php.net/manual/en/function.strip-tags.php
There is a solution offered there.
Or, you may allow ALL html tags. But you need to be careful. If you don't manually approve your posts, I don't advise this:
Find this line in submit.php around line 563:
$h->vars['submit_content'] = sanitize($h->vars['submitted_data']['submit_content'], 'tags', $allowable_tags);
Replace it with:
$h->vars['submit_content'] = $h->vars['submitted_data']['submit_content'];
PuckRobin
11-18-2011, 07:10 AM
I just checked and confirmed that that line is exactly on line 563 of the standard plugin (V3.2). If somebody modified your Submit plugin, you'd rather contact to him.
scaza
11-19-2011, 05:52 AM
Doesn't matter if you allow embed tags. They still get stripped. I made an oembed plugin and and mp3 embed plugin that gets around this by adding embed tags automatically when the post is displayed. if your video site offers oembed info it would be easy to add it to the oembed plugin.
If it doesn't offer oembed info and you are only concerned about embedding content from one site, it would be fairly easy to modify the plugin so that it recognizes links from that specific site and replaces them with the appropriate embed code when displaying a post.
doozoor
11-22-2011, 04:42 AM
which is "submit.php" at plugin folder or other? for around line 563
What is your embed code? Don't you have <param> tag inside too?
If it doesn't work although you permitted param tag, you may be having the same problem mentioned here:
http://php.net/manual/en/function.strip-tags.php
There is a solution offered there.
Or, you may allow ALL html tags. But you need to be careful. If you don't manually approve your posts, I don't advise this:
Find this line in submit.php around line 563:
$h->vars['submit_content'] = sanitize($h->vars['submitted_data']['submit_content'], 'tags', $allowable_tags);
Replace it with:
$h->vars['submit_content'] = $h->vars['submitted_data']['submit_content'];
doozoor
11-22-2011, 04:44 AM
Hi, I did plugged oembed that it still not work for display video on post. Not only youtube's embed code. I need to use embed video from general sites....
Manolof
11-23-2011, 06:49 PM
which is "submit.php" at plugin folder or other? for around line 563
submit.php is in folder submit, in plugins directory. Open the file, and around line 563 you will see the following:
// submitted data
$h->vars['submit_editorial'] = $h->vars['submitted_data']['submit_editorial'];
$h->vars['submit_orig_url'] = urldecode($h->vars['submitted_data']['submit_orig_url']);
$h->vars['submit_title'] = htmlspecialchars(sanitize($h->vars['submitted_data']['submit_title'], 'tags'), ENT_QUOTES);
$h->vars['submit_content'] = sanitize($h->vars['submitted_data']['submit_content'], 'tags', $allowable_tags);
$h->vars['submit_post_id'] = $h->vars['submitted_data']['submit_id'];
$h->vars['submit_category'] = $h->vars['submitted_data']['submit_category'];
$h->vars['submit_tags'] = sanitize($h->vars['submitted_data']['submit_tags'], 'all');
Noticed where submit_content is?
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.