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, 168 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 - Html code in news module? [ ]
 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
Suke
Private
Private


Joined: Jan 03, 2007
Posts: 35


PostPosted: Sun Feb 11, 2007 7:28 pm Reply with quoteBack to top

Is there any way to insert html into the news mod? I want to embed a video into an article but it doesn't work, so I was wondering if there was a code or mod I needed in order for it to work accordingly.

[Embed a video from something like Youtube.]
Find all posts by SukeView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Sun Feb 11, 2007 9:19 pm Reply with quoteBack to top

The HTML tags you want to use must be allowed in config.php

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
mariagc
Nuke Soldier
Nuke Soldier


Joined: Feb 18, 2007
Posts: 14


PostPosted: Sat Feb 24, 2007 6:54 am Reply with quoteBack to top

How do you allow this in config.php
Find all posts by mariagcView user's profileSend private message
Suke
Private
Private


Joined: Jan 03, 2007
Posts: 35


PostPosted: Wed Mar 07, 2007 4:56 pm Reply with quoteBack to top

That's what I was wondering.
Find all posts by SukeView user's profileSend private message
doctornuke
Corporal
Corporal


Joined: Oct 15, 2003
Posts: 66


PostPosted: Mon Mar 26, 2007 7:34 am Reply with quoteBack to top

around line 95 config.php
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);

I think change 2 to 1 in the tag u like not to block ? am I right?

_________________
home|thaios|healthhosting
b|game
Find all posts by doctornukeView user's profileSend private messageVisit poster's website
moods
Corporal
Corporal


Joined: Dec 13, 2005
Posts: 72


PostPosted: Tue Mar 27, 2007 12:02 am Reply with quoteBack to top

i am also interested in this. in messages html is not working. where do i allow it?
Find all posts by moodsView user's profileSend private message
hue
Support Mod
Support Mod


Joined: Apr 18, 2003
Posts: 368

Location: Ohio

PostPosted: Tue Mar 27, 2007 1:50 am Reply with quoteBack to top

Evaders99 wrote:
The HTML tags you want to use must be allowed in config.php


Quote:
around line 95 config.php

? Idea

_________________
Go Go Buckeyes!!
Find all posts by hueView user's profileSend private messageICQ Number
moods
Corporal
Corporal


Joined: Dec 13, 2005
Posts: 72


PostPosted: Wed Mar 28, 2007 1:42 am Reply with quoteBack to top

i tried but it didn't work. then i copy the entire code displayed and replaced with the ones in my config.php. still it didn't work.

now what can be the problem and the solution?
Find all posts by moodsView user's profileSend private message
hue
Support Mod
Support Mod


Joined: Apr 18, 2003
Posts: 368

Location: Ohio

PostPosted: Wed Mar 28, 2007 2:07 am Reply with quoteBack to top

moods wrote:
i tried but it didn't work. then i copy the entire code displayed and replaced with the ones in my config.php. still it didn't work.

now what can be the problem and the solution?

Open your config and replace your $AllowableHTML array with this one
Code:
$AllowableHTML = array("b"=>1,
         "i"=>1,
         "a"=>2,
         "em"=>1,
         "br"=>1,
         "strong"=>1,
         "blockquote"=>1,
         "tt"=>1,
         "li"=>1,
         "ol"=>1,
         "H1"=>1,
         "H2"=>1,
         "H3"=>1,
         "H4"=>1,
         "center"=>1,
         "img"=>2,
         "alt"=>1,
         "table"=>2,
         "tr"=>2,
         "td"=>2,
         "p"=>2,
         "div"=>2,
         "font"=>2,
         "p"=>1,
         "p"=>1,
         "href"=>2,
         "hspace"=>2,
         "embed"=>2,
         "ul"=>1);

You must have left something out or copied it wrong or maybe even just used a tag that was not in your config .

_________________
Go Go Buckeyes!!
Find all posts by hueView user's profileSend private messageICQ Number
moods
Corporal
Corporal


Joined: Dec 13, 2005
Posts: 72


PostPosted: Wed Mar 28, 2007 3:35 am Reply with quoteBack to top

thank you soooooooo much hue
it's working now. u rescued me Very Happy
Find all posts by moodsView user's profileSend private message
Thyllian
Nuke Soldier
Nuke Soldier


Joined: Jun 19, 2007
Posts: 22


PostPosted: Tue Jun 26, 2007 1:04 pm Reply with quoteBack to top

It doesnt work Sad... If I post the "embed" code you will see a square in the preview... but when you post it its gone...
My config string is like this :

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);


So I have no ID whats wrong
Find all posts by ThyllianView user's profileSend private message
Thyllian
Nuke Soldier
Nuke Soldier


Joined: Jun 19, 2007
Posts: 22


PostPosted: Sat Jun 30, 2007 7:55 am Reply with quoteBack to top

HELP ME OUT please
Find all posts by ThyllianView user's profileSend private message
Thyllian
Nuke Soldier
Nuke Soldier


Joined: Jun 19, 2007
Posts: 22


PostPosted: Sun Jul 01, 2007 4:23 am Reply with quoteBack to top

please I have no other place to go
Find all posts by ThyllianView user's profileSend private message
moods
Corporal
Corporal


Joined: Dec 13, 2005
Posts: 72


PostPosted: Sun Jul 01, 2007 7:40 am Reply with quoteBack to top

hue wrote:
moods wrote:
i tried but it didn't work. then i copy the entire code displayed and replaced with the ones in my config.php. still it didn't work.

now what can be the problem and the solution?

Open your config and replace your $AllowableHTML array with this one
Code:
$AllowableHTML = array("b"=>1,
         "i"=>1,
         "a"=>2,
         "em"=>1,
         "br"=>1,
         "strong"=>1,
         "blockquote"=>1,
         "tt"=>1,
         "li"=>1,
         "ol"=>1,
         "H1"=>1,
         "H2"=>1,
         "H3"=>1,
         "H4"=>1,
         "center"=>1,
         "img"=>2,
         "alt"=>1,
         "table"=>2,
         "tr"=>2,
         "td"=>2,
         "p"=>2,
         "div"=>2,
         "font"=>2,
         "p"=>1,
         "p"=>1,
         "href"=>2,
         "hspace"=>2,
         "embed"=>2,
         "ul"=>1);

You must have left something out or copied it wrong or maybe even just used a tag that was not in your config .


replace exactly like the above. it works for me
Find all posts by moodsView user's profileSend private message
Thyllian
Nuke Soldier
Nuke Soldier


Joined: Jun 19, 2007
Posts: 22


PostPosted: Tue Jul 03, 2007 7:07 am Reply with quoteBack to top

still it doesnt work,

But can you explain me how to post an Youtube code in an message ?
Maybe im doing THAT wrong,

Thanks
Find all posts by ThyllianView 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.755 Seconds - 88 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::