You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 140 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Embeding YouTube Video in a news topic? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
tbdrunk
Nuke Soldier
Nuke Soldier


Joined: Oct 18, 2005
Posts: 10


PostPosted: Wed Aug 09, 2006 7:52 am Reply with quoteBack to top

Is there a way to embed a youtube video in a news topic. I have found other ways with creating new blocks and iframe but each of those look like it would require a seperate block for every video. It would be much easier on my site to put it in as a news topic where visitors and myself can just plug in a code online.
Find all posts by tbdrunkView user's profileSend private message
arnoldkrg
Major
Major


Joined: Aug 03, 2003
Posts: 936

Location: United Kingdom

PostPosted: Wed Aug 09, 2006 10:23 am Reply with quoteBack to top

I managed to post a youtube vid on a patched nuke7.9 site by adding the object, embed and param tags to the allowable html array in config.php.

Find in config.php:
Code:
$AllowableHTML = array("b"=>1,"i"=>1,"u"=>1,"div"=>2,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1);


and add in the three required tags thus:
Code:
$AllowableHTML = array("b"=>1,"i"=>1,"u"=>1,"div"=>2,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1,"embed"=>2,"object"=>2,"param"=>2);


Then post something like the following in a news article.
Code:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/gbD2gXtNX94"></param><embed src="http://www.youtube.com/v/gbD2gXtNX94" type="application/x-shockwave-flash" width="425" height="350"></embed></object>


There is also a thread either here or at Karakas forum where I explain how I got a youtube bbcode working so that users can post youtube vids in the Forums.

_________________
Image
Find all posts by arnoldkrgView user's profileSend private messageSend e-mailVisit poster's website
tbdrunk
Nuke Soldier
Nuke Soldier


Joined: Oct 18, 2005
Posts: 10


PostPosted: Thu Aug 10, 2006 5:59 am Reply with quoteBack to top

I am currently running 7.8 but i will try that and see what happens
Find all posts by tbdrunkView user's profileSend private message
tbdrunk
Nuke Soldier
Nuke Soldier


Joined: Oct 18, 2005
Posts: 10


PostPosted: Sun Aug 13, 2006 7:43 pm Reply with quoteBack to top

I have tried that code change on a backup site i am trying witha customized version of 7.9, my original was a bit different than the one that was posted to change

Quote:
$AllowableHTML = array("col"=>2,"td"=>2,"tr"=>2,"hr"=>1,"p"=>1,"font"=>2,"embed"=>2,"font color"=>2,"table"=>2,"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,"img"=>2,"img src="=>2,);


When i put in the code suggested it actually turned off other features i had available. how would i adjust that code above to embed the video?
Find all posts by tbdrunkView user's profileSend private message
arnoldkrg
Major
Major


Joined: Aug 03, 2003
Posts: 936

Location: United Kingdom

PostPosted: Sun Aug 13, 2006 11:55 pm Reply with quoteBack to top

Code:
$AllowableHTML = array("col"=>2,"td"=>2,"tr"=>2,"hr"=>1,"p"=>1,"font"=>2,"embed"=>2,"font color"=>2,"table"=>2,"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,"img"=>2,"img src="=>2,"embed"=>2,"object"=>2,"param"=>2);

_________________
Image
Find all posts by arnoldkrgView user's profileSend private messageSend e-mailVisit poster's website
tbdrunk
Nuke Soldier
Nuke Soldier


Joined: Oct 18, 2005
Posts: 10


PostPosted: Tue Aug 15, 2006 12:40 pm Reply with quoteBack to top

It is still not working for me, but i think i have found another way around it. you can add those same 3 html tags (embed, object, param) to the allowable html tags in the message board, and people can post them inside the forum if you knockout the "param" line of the code

I am still gonna try to get it in the news topics though.
Find all posts by tbdrunkView user's profileSend private message
arnoldkrg
Major
Major


Joined: Aug 03, 2003
Posts: 936

Location: United Kingdom

PostPosted: Thu Aug 17, 2006 12:44 am Reply with quoteBack to top

I just noticed that you already had the embed tag included in your allowable html array. Try removing the extra one. Maybe thats the problem.

_________________
Image
Find all posts by arnoldkrgView user's profileSend private messageSend e-mailVisit poster's website
tbdrunk
Nuke Soldier
Nuke Soldier


Joined: Oct 18, 2005
Posts: 10


PostPosted: Tue Nov 07, 2006 12:43 am Reply with quoteBack to top

Still no luck. I haven't heard anything else from other posts on other boards if anyone else has any ideas let me know

Code:
$AllowableHTML = array("col"=>2,"td"=>2,"tr"=>2,"hr"=>1,"p"=>1,"font"=>2,"embed"=>2,"font color"=>2,"table"=>2,"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,"img"=>2,"img src="=>2,"object"=>2,"param"=>2);


that is what it is set at now.
Find all posts by tbdrunkView user's profileSend private message
Thyllian
Nuke Soldier
Nuke Soldier


Joined: Jun 19, 2007
Posts: 22


PostPosted: Mon Jul 09, 2007 8:54 am Reply with quoteBack to top

Im stuck to, and I really need to know how to do this cuz this is important... could you help me find a sollution, add me on msn if you have...

gijs_habraken@hotmail.com ...
Find all posts by ThyllianView user's profileSend private message
athens101
Sergeant
Sergeant


Joined: Jul 11, 2004
Posts: 104

Location: Athens

PostPosted: Tue Jul 10, 2007 4:44 pm Reply with quoteBack to top

Here ya go http://www.karakas-online.de/EN-Book/flash-php-nuke-news.html
Find all posts by athens101View user's profileSend private messageVisit poster's website
KoldFusion
Nuke Cadet
Nuke Cadet


Joined: Aug 16, 2007
Posts: 6


PostPosted: Wed Aug 29, 2007 10:21 pm Reply with quoteBack to top

I get no love with this.

Using Nuke 8.

The HTML keeps disappearing when I click UPDATE on the HTML Editor window Sad
Find all posts by KoldFusionView user's profileSend private message
alucien
Nuke Soldier
Nuke Soldier


Joined: Mar 16, 2008
Posts: 29


PostPosted: Thu Jun 25, 2009 9:03 am Reply with quoteBack to top

When I try this it just displays garbled code? Anyone still having problems with this?
Find all posts by alucienView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.598 Seconds - 173 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::