XFileSharing Pro - turn off embed videos

Powerfull XFileSharing version

Moderator: admin

Message
Author
amator
Posts: 72
Joined: Dec 01, 2010 6:51 pm

turn off embed videos

#1 Postby amator » Feb 11, 2012 4:30 pm

Hi,

For some raason I want turn off video embed code.

I found this

Code: Select all

  return print("Content-type:text/html\n\nVideo embed restricted for this user") nless $c->{"video_embed_$utype2"};


I want to change this message to "You can watch thsis file here: link"

Of course "link" is a path to movie on my website.

I try with somethink like this

Code: Select all

   return print("Content-type:text/html\n\nWatch this movie: <a href='http://domian.com'.$video_code.'/'>here</a>") unless $c->{"video_embed_$utype2"};


but this dosen't work. I'm not a perl programist. Can any one help me?

Update:

If someone want this here is solution:

Code: Select all

 return print("Content-type:text/html\n\nWatch this file here: <a href='$c->{site_url}/$file->{file_code}' target='_blank'>$file->{file_name}</a>") unless $c->{"video_embed_$utype2"};

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#2 Postby ankurs » Feb 13, 2012 6:29 am

you can just disable it from settings

amator
Posts: 72
Joined: Dec 01, 2010 6:51 pm

#3 Postby amator » Feb 17, 2012 8:35 pm

That's what I did already.

I just want to show info on all websites that already embed vids that those movies are still on my site.


Return to “XFileSharing Pro”

Who is online

Users browsing this forum: No registered users and 0 guests