|
|
| Author |
Message |
mobashirkhan Lance Corporal

Joined: 03 Feb 2007 Posts: 9
|
Posted: Sat Feb 03, 2007 12:40 am Post subject: How to embed Google video or YouTube into PHP-Nuke |
|
|
|
Hi
i need to ask that i want to youtube file in my phpnuke 8.0 website
like u can say "embed"
i have Video Streaming module which support that Window Media Player, Real Player, Quick Time and Embed option
i tried that with this option
but it doesn't show the youtube movie
so plz tell me how can i do it.. |
|
| Back to top |
|
 |
Truden Major

Joined: 23 Jul 2003 Posts: 280 Location: Johannesburg
|
Posted: Sat Feb 03, 2007 10:31 am Post subject: |
|
|
|
Open config.php (in your phpNuke root)
Find:
| Code: | | $AllowableHTML = array("b"=>1, |
ADD in the next line:
| Code: | "embed"=>1,
"object"=>1,
"param"=>1, |
SAVE the file and upload.
Now you can add the code for YouTube video in your news section.
For the forum, you have to open the admin panel for your forums and add embed object and param in the field for allowable html |
|
| Back to top |
|
 |
mobashirkhan Lance Corporal

Joined: 03 Feb 2007 Posts: 9
|
Posted: Sat Feb 03, 2007 1:58 pm Post subject: |
|
|
|
thanx alot for reply |
|
| Back to top |
|
 |
NealWalters Private

Joined: 17 Sep 2007 Posts: 3
|
Posted: Mon Sep 17, 2007 6:02 am Post subject: |
|
|
|
I edited config.php as follows:
| Code: | $AllowableHTML = array("b"=>1,"i"=>1,"strike"=>1,"div"=>2,"u"=>1,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,
"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1,
"embed"=>1,"object"=>1,"param"=>1); |
Yet, when I click HTML and paste in the HTML, I click "Update", then click the HTML button again, and the Embed code disappears.
Also - how do I know what version I'm using?
I usually use PHP-Fusion, but decided to give a quick try to PHP-Nuke on a small site to get a feel for the advantages/disadvantages.
Thanks,
Neal Walters
http://CMSTrainingVideos.com - Free Videos |
|
| Back to top |
|
 |
NealWalters Private

Joined: 17 Sep 2007 Posts: 3
|
Posted: Mon Sep 17, 2007 6:09 am Post subject: |
|
|
|
I found my version 7.9 (I installed with Fantastico).
Found the version number on Fantastico and in a file called fantversion.php:
| Code: | <?php
$version = '7.9' ;
?> |
But can I not find the version somewhere on the website or admin screens? Are there differences between 7.9 and 8.x in regards to included a flash or google video?
Thanks,
Neal |
|
| Back to top |
|
 |
larrycsonka Private

Joined: 27 Sep 2007 Posts: 3
|
Posted: Sat Sep 29, 2007 7:31 pm Post subject: applying this to downloads |
|
|
|
| I added that code into my config.php and into my d_config.php But I cant get it to work. What I am trying to do is make the downloads module on 8.1 have the ability to put embed code in instead of a link so it would be like a streaming video forum. It seems no matter what I do it says html tags not allowed. Can you help me figure out how to make that work? or where i have to put the html allowed code to make it work for my downloads module? |
|
| Back to top |
|
 |
themata Corporal

Joined: 20 Apr 2006 Posts: 17 Location: Greece
|
Posted: Sun Sep 30, 2007 3:28 pm Post subject: |
|
|
|
in my 7.8 site it worked great! thanks!  |
|
| Back to top |
|
 |
NealWalters Private

Joined: 17 Sep 2007 Posts: 3
|
Posted: Sun Sep 30, 2007 4:23 pm Post subject: |
|
|
|
I had a short deadline, so I actually had to drop PHP Nuke since I could not get this working (switched to E107) and nobody was posting any replies.
Neal Walters
http://CMSTrainingVideos.com - Content Mgt System Videos |
|
| Back to top |
|
 |
undead Sergeant


Joined: 08 Apr 2007 Posts: 24
|
Posted: Mon Oct 01, 2007 2:45 pm Post subject: |
|
|
|
i want the same thing, this code didn't worked for me too. I use phpnuke 7.9
anyone can tell me what to do?  |
|
| Back to top |
|
 |
larrycsonka Private

Joined: 27 Sep 2007 Posts: 3
|
Posted: Mon Oct 01, 2007 4:52 pm Post subject: question |
|
|
|
It worked perfectly fine for me with 8.1 for the news feed and such. I am hoping someone could help me add this code to the downloads module.
I tried to add it to my downloads module but it didn't work, the html code is still restriced. I am hoping people can put videos instead of links to downloads people can put in the embed code and just show a streaming video from the site. Please help if you can, thanks. |
|
| Back to top |
|
 |
|
|
 |
|
|