View Full Version : Smilies replacing text problem...
Hi...
I wan't to know if theres a way to fix my problem with smilies that are replacing text it shouldn't.
the problem:
I don't whan't smilies to replace text unless there's a 'space' before the smiliecode, here's an example:
if i have a timestamp like 12:08:31 posted a smilie will repleace it like 12:0[smilie]31.
my wish i that a smilie will replace only when theres a 'space' between any other text and the smilie code.
I have read this page, but it looks like it will not do what I want.
https://vborg.vbsupport.ru/showthread.php?t=73266&highlight=smilies
sorry I missed the notice about where I'm supposed to ask this. my bad.
akanevsky
04-26-2005, 10:24 PM
Just change the smileys code to something different. Smiley codes should be either
:smileycode:
or, what is even better,
[-smileycode-]
Just change the smileys code to something different. Smiley codes should be either
:smileycode:
or, what is even better,
[-smileycode-]well how about no!
why do you think I even posted here? 'couse I don't wan't to change the smileycode.
akanevsky
04-27-2005, 12:46 AM
There is no other solution.
Paul M
04-27-2005, 01:54 AM
well how about no!
why do you think I even posted here? 'couse I don't wan't to change the smileycode.Nice attitude, did you want help ?
There is no other solution.well why do not phpBB have this problem then? We migrated from phpBB to vBulletin and got this little anoying problem.
Nice attitude, did you want help ?Off course I wan't help, I'm just tired of people that don't belive you have though of the obvious before you ask a quiestion.
mholtum
04-27-2005, 09:24 AM
Maybe you should have posted that you didnt want to change the smilie code. Then others wont waste your time with the obvious fix.
Maybe you should have posted that you didnt want to change the smilie code. Then others wont waste your time with the obvious fix.true... and next time I will think of my maners... :)
JohnBee
04-30-2005, 05:33 PM
so in the end do we have a fix?
akanevsky
04-30-2005, 08:45 PM
The original poster has dissappeared so I did not post the solution.
Since you want it, here you go.
In ./includes/functions_bbcodeparse.php, find:
if (!$dohtml)
{
$smilie_find[] = htmlspecialchars_uni(trim($smilie['smilietext']));
}
else
{
$smilie_find[] = trim($smilie['smilietext']);
}
Replace with:
if (!$dohtml)
{
$smilie_find[] = " ".htmlspecialchars_uni(trim($smilie['smilietext']))." ";
}
else
{
$smilie_find[] = " ".trim($smilie['smilietext'])." ";
}
P.S. I would suggest that Jelsoft adds this into his next vBulletin release....
hmmm... I tried this and all it did was to turn off all smilies... weird.
I doublechecked that I got the right files and lines...
FightRice.com
05-03-2005, 10:21 PM
I know you don't want to change the smiley code, and i don't know if this would even work but could you add a space infront the the smiley code so it would be like (space):8:
Just trying to help? :dunno:
I know you don't want to change the smiley code, and i don't know if this would even work but could you add a space infront the the smiley code so it would be like (space):8:
Just trying to help? :dunno:thanx for the idea, but I think that it will be hard for the users of the forum to relearn this.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.