Views: 19,996,895 |
Home
| Forums
| Uploader
| Wiki
| Object databases
| IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search |
04-20-24 03:10 AM |
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 |
| ||
Member Jamie #19359 Level: 15 Posts: 43/47 EXP: 13960 Next: 2424 Since: 02-28-19 Last post: 1842 days ago Last view: 1842 days ago |
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 "060" with a 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. |
shibboleet |
| ||
Fire Mario DROP TABLE users; Level: 123 Posts: 4658/4661 EXP: 20877713 Next: 353553 Since: 07-07-12 Last post: 1343 days ago Last view: 356 days ago |
this is late as hell, but noSmilies is broken on the latest blargboard repo and shiz, forgot how I fixed it ____________________ a |
Arisotura |
| ||
Star Mario in this room you have a pile of apple pies Level: 163 Posts: 8487/9019 EXP: 56225379 Next: 262265 Since: 07-03-12 From: in a box Last post: 8 days ago Last view: 3 days ago |
Main - Computers and technology - Stupid PHP question regarding preg_replace | Hide post layouts | New reply |
Page rendered in 0.017 seconds. (2048KB of memory used) MySQL - queries: 29, rows: 203/203, time: 0.009 seconds. Acmlmboard 2.064 (2018-07-20) © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |