- Readme First! - Read and follow the rules, otherwise your posts will be closed
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? [ ]
Author
Message
Suke
Private
Joined: Jan 03, 2007
Posts: 35
Posted:
Sun Feb 11, 2007 7:28 pm
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.]
Evaders99
Site Admin
Joined: Aug 17, 2003
Posts: 12482
Posted:
Sun Feb 11, 2007 9:19 pm
mariagc
Nuke Soldier
Joined: Feb 18, 2007
Posts: 14
Posted:
Sat Feb 24, 2007 6:54 am
How do you allow this in config.php
Suke
Private
Joined: Jan 03, 2007
Posts: 35
Posted:
Wed Mar 07, 2007 4:56 pm
That's what I was wondering.
doctornuke
Corporal
Joined: Oct 15, 2003
Posts: 66
Posted:
Mon Mar 26, 2007 7:34 am
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 |health hosting
b |game
moods
Corporal
Joined: Dec 13, 2005
Posts: 72
Posted:
Tue Mar 27, 2007 12:02 am
i am also interested in this. in messages html is not working. where do i allow it?
hue
Support Mod
Joined: Apr 18, 2003
Posts: 368
Location: Ohio
Posted:
Tue Mar 27, 2007 1:50 am
Evaders99 wrote:
The HTML tags you want to use must be allowed in config.php
Quote:
around line 95 config.php
?
_________________ Go Go Buckeyes!!
moods
Corporal
Joined: Dec 13, 2005
Posts: 72
Posted:
Wed Mar 28, 2007 1:42 am
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?
hue
Support Mod
Joined: Apr 18, 2003
Posts: 368
Location: Ohio
Posted:
Wed Mar 28, 2007 2:07 am
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!!
moods
Corporal
Joined: Dec 13, 2005
Posts: 72
Posted:
Wed Mar 28, 2007 3:35 am
thank you soooooooo much hue
it's working now. u rescued me
Thyllian
Nuke Soldier
Joined: Jun 19, 2007
Posts: 22
Posted:
Tue Jun 26, 2007 1:04 pm
It doesnt work ... 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
Thyllian
Nuke Soldier
Joined: Jun 19, 2007
Posts: 22
Posted:
Sat Jun 30, 2007 7:55 am
Thyllian
Nuke Soldier
Joined: Jun 19, 2007
Posts: 22
Posted:
Sun Jul 01, 2007 4:23 am
please I have no other place to go
moods
Corporal
Joined: Dec 13, 2005
Posts: 72
Posted:
Sun Jul 01, 2007 7:40 am
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
Thyllian
Nuke Soldier
Joined: Jun 19, 2007
Posts: 22
Posted:
Tue Jul 03, 2007 7:07 am
still it doesnt work,
But can you explain me how to post an Youtube code in an message ?
Maybe im doing THAT wrong,
Thanks
Goto page 1 , 2 Next
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