![]() |
Register | Login | |||||
![]() |
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
![]()
| |
Acmlm's Board - I3 Archive - - Posts by Stifu |
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
User | Post | ||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
Here's the deal... I've got an AcmlmBoard v1.A2.
I'd like to make it so smilies aren't displayed if they're surrounded by letters or numbers. It would work with symbols though... and spaces or just nothing too, of course. For example, things would be like: blabla: bla: ![]() ^ ![]() 25: blabla ![]() ... Does anyone know how I could do that ? I thought I'd do this because I stumbled on a problem, I had a =D smiley, and I've got a board tag like [ Also, I noticed phpBB2 boards got a smilies system similar to the one I want, but the code is much too different to borrow anything. Thanks. |
|||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
Originally posted by Mega-Dog As opposed to 1.A3 exploits which aren't fixable... Heh ? And yes, some of the code in AcmlmBoards looks like it's been coded by monkeys... Letting so many people touch the code for the "official" board was a bad idea. (edited by Stifu on 03-13-06 01:06 PM) |
|||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
It's also lame how 20% of the code is commented out... Either remove it entirely, or leave a note as of why it's been kept. Having worthless code lying around adds up to the confusion... | |||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
I think fixing / cleaning / improving what's already there is more of a priority than adding more stuff. | |||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
Originally posted by 21 days Yes, I thought about doing that too... I'm getting better with PHP, but not good enough yet. More importantly, it would require much more time than I can spend on it. |
|||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
No one ?
Also, one of the many other problems I can't manage to fix myself: it seems like my board (v1.A2) only shows 1 guest at a time... Guest results must get overridden by the last one or something. Is it this a known bug ? Any fix ? |
|||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
Rename ? Not sure which problem you're referring to... If you mean the smiley, I did change the code from =D to ;D to avoid problems for now.
Well, thanks for trying to help... Looking forward to your next post. (edited by Stifu on 03-16-06 02:18 PM) |
|||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
I don't want to change the codes of my smilies, and they all rarely get in the way of anything anyway...
Not to mention that if it's just temporary, then they wouldn't work anymore later on, once the codes are put back to normal... They can just wait. Oh, and I don't have the toolbar either... I think I only had it with v1.92... (edited by Stifu on 03-16-06 03:05 PM) |
|||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
Originally posted by Arthus I thought about that something similar, but the main problem would be that smilies wouldn't be displayed if there's nothing before or after them... Wrong ? |
|||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
Hmmm, would that change the content of the messages ?
Like if you edited a message with smilies, would you see extra back slashes ? If not, could you tell me where I'd need to put that line exactly, so I don't mess things up ? Thanks. |
|||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
Originally posted by Randy53215 Hmmmm... I tried that: if (preg_match('/^.*(\\:\\))(?=((?=\\W)(?!\\d))+).*$/m', $message)) { } else { $msg=str_replace($smilie[0],"< } and that: if(!preg_match('/^.*(\\:\\))(?=((?=\\W)(?!\\d))+).*$/m', $message)) $msg=str_replace($smilie[0],"< Didn't work. No error or anything, but I just couldn't see any difference. It's in function function doreplace2, right ? Originally posted by Parasyte + Hmmm... Didn't work either, I may be doing something wrong. Here's the whole function: function doreplace2($msg){ global $smilies; if(!$smilies) $smilies=readsmilies(); for($s=0;$smilies[$s][0];$s++){ $smilie=$smilies[$s]; $msg=preg_replace("/(^|[^a-z0-9])".$smilie[0]."($|[^a-z0-9])/imx","$1< } It gave me many compilation errors... |
|||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
Hmmmmm...
Any idea ? Thanks. By the way, does anyone know how to fix the bug that makes it so no more than one guest ever appears ? |
|||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
Exact same error as before... | |||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
Still doesn't work... Except the error is different this time.
That's too bad, as your script seems to do exactly what I wanted... |
|||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
Unless I'm mistaken, the PM system in v1.A2 sucks... If both members delete the same PM on both sides, the PM is STILL kept in the database, am I wrong ?
I'd like to make it so the PM is totally wiped from the database if both users have deleted it from their box... Anyone can help ? I'm kind of confused about how things work at the moment.
It seems like the code that actually deletes PM for real got commented out... But that way, it would look like the PM would get deleted even if only one of the two users deletes it, which is also wrong. I don't get the "PM_DELETE" part really, dunno how that works... Anyone can help ? Thanks. PS: Looks like there's a board bug here... I had to add < |
|||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
That wasn't the point at all... | |||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
Still not...
|
|||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
Yay it works ! ![]() Thanks a lot. |
|||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
Mysql_num_rows ? Where was that ?
Anyway, I guess you mean I should just replace that 'if' with that new one... Alright. Thanks. Edit: Actually, now that I'm sober, I notice that the 'if' you just posted is exactly the same one as before... Please enlighten me, I'm confused. |
|||
Stifu![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Since: 11-18-05 From: Your mom's bed Last post: 6329 days Last view: 6327 days |
| ||
I thought about that afterward... ![]() Anyway, thanks again ! |
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
Acmlm's Board - I3 Archive - - Posts by Stifu |