ClipShare Community Forums  

Go Back   ClipShare Community Forums > ClipShare - Video Sharing Community Script - General Forum > Freelance Services
Register FAQ Bug Tracker Members List Calendar Mark Forums Read

Freelance Services Looking to hire a programmer/designer to customize your ClipShare script. You can find one here. Freelance developers can also list their services here.


Reply
 
Thread Tools Display Modes
Old 05-12-2012, 11:44 AM   #1
enet59
Member
|Forum Newbie|
 
enet59's Avatar
 
Join Date: Nov 2011
Posts: 23
enet59 is on a distinguished road
Exclamation Dilymotion api

Hello,
this is a moment I'm looking for someone who could help me install "dailymotion api" etc. to enter dailymotion links publishers with code <iframe>

Is there an expert who can give me his help please.

Sorry for my spelling, I'm French.


thank you

My email address: djaminet@hotmail.fr
enet59 is offline   Reply With Quote
Old 05-16-2012, 11:27 PM   #2
dargre
Member
|Forum Guru|
 
dargre's Avatar
 
Join Date: Nov 2007
Posts: 2,501
dargre will become famous soon enough
Default

I'm not speaking French, so in English.

Not only Dailymotion, but also new Youtube embed code is "iframe" and "iframe" is prohibited due to security reason.

So to allow youtube or idailymotion is little bit complicated, but possible.

In upload.php find line:
Code:
if ( stristr($embed_code, '<a') || stristr($embed_code, '<img') || stristr($embed_code, '<iframe')  ) {
Replace it with code:
Code:
$allow=0;
if (stristr($embed_code, '<iframe') ) {
	if (stristr($embed_code, 'youtube.com') || stristr($embed_code,'dailymotion.com') ) {$allow=1;}
}

if ( stristr($embed_code, '<a') || stristr($embed_code, '<img') || stristr($embed_code, '<iframe') && $allow !=1 ) {
This is only idea, but not tested, so first backup original 'upload.php' file.
dargre is offline   Reply With Quote
Old 05-19-2012, 04:36 PM   #3
danhague
Member
|Forum Junior|
 
Join Date: Feb 2012
Posts: 63
danhague is on a distinguished road
Default

Hi enet59, got any luck on this? Newbies would really benefit with your share on how this worked out for you.
danhague is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT +1. The time now is 11:03 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © 2006-2008 Envient. All Rights Reserved.

An Envient product.