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 |
| ||
Member Jamie #19359 Level: 15 Posts: 43/47 EXP: 13880 Next: 2504 Since: 02-28-19 Last post: 1820 days ago Last view: 1820 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: 20825519 Next: 405747 Since: 07-07-12 Last post: 1322 days ago Last view: 335 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/9016 EXP: 56056986 Next: 430658 Since: 07-03-12 From: in a box Last post: 57 days ago Last view: 16 days ago |
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. Acmlmboard 2.064 (2018-07-20) © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |