• Welcome to PHPVIBE Forums. Please log in.
avatar_arnlweb

[ Video Sharing CMS v4 ] Add-by-iframe not working

Started by arnlweb,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

arnlwebTopic starter

Hi, I just updated my 2 website from version 3.5 to 3.6 but I frame code does not supporting, got error (blank Page) on those pages. I also tested on your demo site http://www.videoscriptdemo.com/moderator/?sk=add-by-iframe, I am not able to insert an iframe video.

Please help, It's very important for my website.
Thank you.
Web Development Services
  •  

Marius P.

Hi,
copy add-by-iframe.php from /moderator to your server (you can get it from a previous version), think somebody missed to upload it. In upgrade it is, checked now, I dun have access to store'
s source, but will tomorrow.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

arnlwebTopic starter

Moderator part is ok, I can add a iframe code but on the front-end pages does not show. check our this http://www.axomtube.com/video/5281/rongtv/

Web Development Services
  •  

Marius P.

The way that code looks, no wonder it strips it out. It will only leave you the "object" or the "iframe" tags.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

arnlwebTopic starter

Hi, Thanks for the reply... it does not work what ever I put some dummy text.... "bla bla bla", iframe or object. Admin part looks fine.... but does not work on the font page.


if I remove this code from com/com_video.php
Quote
//Player support
//JwPlayer
if((get_option('remote-player',1) == 1) || (get_option('choosen-player',1) == 1) || ($video->media == "2") || $vid->VideoProvider() == "youtube")   {               
add_filter( 'addplayers', 'jwplayersup' ); 
}
//FlowPlayer
if((get_option('remote-player',1) == 2) || (get_option('choosen-player',1) == 2))   {               
add_filter( 'addplayers', 'flowsup' ); 
}
//MediaElement
if((get_option('remote-player',1) == 3) || (get_option('choosen-player',1) == 3))   {               
add_filter( 'addplayers', 'melementsup' ); 
}

It works, but other videos pages don't work.

Advice please.
Web Development Services
  •  

Marius P.

It has no connection, that code just ads the js files for the players.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

arnlwebTopic starter

I believe something wrong on that file (com/com_video.php), let me show you an example.

here you go http://www.streaminghub.org/test/video/26611/test/  --- I removed this code. (iframe working but not other video pages)

//Player support
//JwPlayer
if((get_option('remote-player',1) == 1) || (get_option('choosen-player',1) == 1) || ($video->media == "2") || $vid->VideoProvider() == "youtube")   {               
add_filter( 'addplayers', 'jwplayersup' ); 
}
//FlowPlayer
if((get_option('remote-player',1) == 2) || (get_option('choosen-player',1) == 2))   {               
add_filter( 'addplayers', 'flowsup' ); 
}
//MediaElement
if((get_option('remote-player',1) == 3) || (get_option('choosen-player',1) == 3))   {               
add_filter( 'addplayers', 'melementsup' ); 
}


and..... here is the default file....


http://www.streaminghub.org/video/26611/test/ (iframe not working but other video pages are working)

Please have a look.
   
Web Development Services
  •  

arnlwebTopic starter

Ok, I figure this out....

changed

if((get_option('remote-player',1) == 1) || (get_option('choosen-player',1) == 1) || ($video->media == "2") || $vid->VideoProvider() == "youtube")   {

to

if((get_option('remote-player',1) == 1) || (get_option('choosen-player',1) == 1) || ($video->media == "2") || $vid->VideoProvider == "youtube")   {

Now, it's working.
Web Development Services
  •  

Marius P.

You are right, I did it differently, I've wrapper the player's support like:

if(!$video->remote && !$video->embed) {

player's support 

}
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

arnlwebTopic starter

Can please attach me the working com_video.php file.

Thank you.
Web Development Services
  •  

Marius P.

Quote from: arnlweb on
Can please attach me the working com_video.php file.

Thank you.

You can download it from the PHPVibe package. I'll look again into it, but i've tested it and it worked fine.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)