PDA

View Full Version : vb smilies on non vb pages


Keyser S?ze
04-26-2003, 04:34 AM
i did a search for this and didnt find anything, what i want is, i have a news script that a friend wrote and i want to integrate vb smilies into that

hes tried to figure it out but so far no luck

any ideas?

flup
04-28-2003, 06:31 PM
<?php
$msg = htmlspecialchars($msg);
$msg = addslashes($msg);

$msg = eregi_replace(':D', '<img src="imagemap/smiley.jpg">',$msg);
?>


Add this in your file where your smileys have to appear.

filburt1
04-28-2003, 06:32 PM
IceMalee,

You are currently showing up as unlicensed. To be able to download hacks and/or receive support here at vBulletin.org, we ask you to please click here (http://www.vbulletin.com/members/forums.php) (vB-germany users click here (http://www.vbulletin-germany.com/members/forums.php)) and enter your email address, to show us that you are licensed.

You will need to use your customer number and password (which will be in the email you got when you paid for your license) to access that page. Please note that your email is case sensitive.

Thank you.

flup
04-28-2003, 06:33 PM
You could use the same as a swearing filter:


<?php
$msg = eregi_replace('++++er', 'Sweetguy',$msg);
?>


on the places of ++++ was: f.uck :)

filburt1
04-28-2003, 06:42 PM
Use preg_replace, not the slower ereg* functions.

Keyser S?ze
04-28-2003, 08:16 PM
sorry filbert i pmd u the reason, should be fixed now

thanks ill try this stuff out