Kuribo64
Views: 19,857,080 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
03-29-24 03:16 PM
Guest:

0 users reading Stupid PHP question regarding preg_replace | 1 bot

Main - Computers and technology - Stupid PHP question regarding preg_replace Hide post layouts | New reply


thesadtruth
Posted on 03-27-19 11:00 AM (rev. 2 of 03-27-19 11:01 AM) Link | #97479
What would the correct regular expression be in PHP to replace smilies without interfering with text? I noticed a post on my board from MarioBurger (and I think another post had the same issue) that replaced "06:30" with a :3 emoticon where the bold text is, clearly a bug.

I'd assume putting a space before the text it's meant to replace, would work, but I'm not 100% certain.

Here is the code in question (look for the function CleanUpPost where it says in the function !$noSmilies - this is probably what I'll need to edit).

Thanks for any help. :P

shibboleet
Posted on 05-14-19 03:31 PM Link | #97707
this is late as hell, but noSmilies is broken on the latest blargboard repo and shiz, forgot how I fixed it

____________________
a

Arisotura
Posted on 05-14-19 03:47 PM Link | #97708
>blargboard

as if I still knew how that pile of shit worked

besides, I'm not in charge; tell that to the genius who made their own blargboard repo

____________________
NSMBHD - Kafuka - Jul
melonDS the most fruity DS emulator there is

zafkflzdasd


Main - Computers and technology - Stupid PHP question regarding preg_replace Hide post layouts | New reply

Page rendered in 0.027 seconds. (2048KB of memory used)
MySQL - queries: 27, rows: 199/199, time: 0.012 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.