Kuribo64
Views: 10,065,212 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
11-15-19 08:31 AM
Guest:

0 users reading Stupid PHP question regarding preg_replace | 1 bot

Main - Computers and technology - Stupid PHP question regarding preg_replace New reply


thesadtruth
Posted on 03-27-19 07:00 AM (rev. 2 of 03-27-19 07: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 11:31 AM 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 11:47 AM 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 New reply

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