PDA

View Full Version : DJ says



chrisgocrazyH
06-02-2008, 06:45 AM
hello im using http://habboxforum.com/showthread.php?t=164216 dj says and i want it so i can add Html? how would i lol :D

Jackboy
06-02-2008, 06:53 AM
take off anything stopping html such as strip_tags or w/e is there.

RedCrisps
06-02-2008, 07:05 AM
http://habboxforum.com/showpost.php?p=1643747&postcount=3

is that what you want :S just edit:


<html>
<body>
<font size="4">DJ Says</font><br>

chrisgocrazyH
06-02-2008, 08:45 AM
Noo i want it so i can put html in the edit.php :)

+ so i would get rid of $_POST = array_map('strip_tags',$_POST);

RedCrisps
06-02-2008, 09:56 AM
Noo i want it so i can put html in the edit.php :)

+ so i would get rid of $_POST = array_map('strip_tags',$_POST);

well that wouild be dangerous

VistaBoy
06-02-2008, 10:22 AM
why do you not just make a bbcode for it? as if you let people put html in it that can go to bad things.

RedCrisps
06-02-2008, 11:00 AM
right say your site gets hacked if html is allowed on the DJ says then they could post porn on it so yeh =]

chrisgocrazyH
06-02-2008, 11:23 AM
lol only im having access to it no'one else im going to have it on a diffrent server also :D

Independent
06-02-2008, 02:01 PM
http://habboxforum.com/showpost.php?p=1643747&postcount=3

is that what you want :S just edit:


<html>
<body>
<font size="4">DJ Says</font><br>


May be a good idea to end the HTML, i'd do it like this:



<html>
<body>
<font size="1" face="verdana" color="black">
<b>DJ</b> Says: <marquee><? the php.. ?></marquee></font>
</body>
<html>




lol only im having access to it no'one else im going to have it on a diffrent server also :D

Pretty stupid, you should just make a filter to block images... idk how.

RedCrisps
06-02-2008, 02:59 PM
May be a good idea to end the HTML, i'd do it like this:



<html>
<body>
<font size="1" face="verdana" color="black">
<b>DJ</b> Says: <marquee><? the php.. ?></marquee></font>
</body>
<html>



Pretty stupid, you should just make a filter to block images... idk how.
javascript aswell?

Invent
06-02-2008, 03:04 PM
On the page that displays the djsays something like this should work:



$var = html_entity_decode( htmlspecialchars_decode( $var ) );

echo $var;

Independent
06-02-2008, 03:14 PM
javascript aswell?

Yeah probabaly better than filtering it in php.

Edit: Maybe not.. *grin*

chrisgocrazyH
06-02-2008, 09:28 PM
IM MAKING it into a comp banner area so im having images in it lul i just need html so i can link it

Want to hide these adverts? Register an account for free!