(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
06-16-24 10:13 PM
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
Posted on 03-13-06 02:03 PM, in I want to change my smilies system... How ? Link
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:)haha
bla:)
!!
^^
25:)899
blabla yes

... 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 [quote=username]message[/quote]... So it would display a smiley for people whose name start with a D...
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
Posted on 03-13-06 02:06 PM, in Acmlmbored 1.92.9?? Link
Originally posted by Mega-Dog
1.A3 is crapo and has alot of exploits.

If you are going to Download 1.92 remember that it still has exploits that are fixable.

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
Posted on 03-13-06 03:17 PM, in Acmlmbored 1.92.9?? Link
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
Posted on 03-15-06 01:54 PM, in Features for an Acmlm Board. Link
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
Posted on 03-15-06 02:51 PM, in Features for an Acmlm Board. Link
Originally posted by 21 days
or (in my case) starting work on my own board system

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
Posted on 03-16-06 12:46 PM, in I want to change my smilies system... How ? Link
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
Posted on 03-16-06 03:18 PM, in I want to change my smilies system... How ? Link
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
Posted on 03-16-06 04:03 PM, in I want to change my smilies system... How ? Link
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
Posted on 03-17-06 03:33 AM, in I want to change my smilies system... How ? Link
Originally posted by Arthus
Why don't you change the str_replace to have a space infront or behind the smiley. So it would only recognize if there was a space infront or behind it.

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
Posted on 03-17-06 02:58 PM, in I want to change my smilies system... How ? Link
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
Posted on 03-18-06 05:42 AM, in I want to change my smilies system... How ? Link
Originally posted by Randy53215
if (preg_match('/^.*(\\:\\))(?=((?=\\W)(?!\\d))+).*$/m', $message)) {
// DO NOT PUT IN IMAGE
} else {
// PUT IN IMAGE
}

That should work just put your variables in.

Hmmmm... I tried that:

if (preg_match('/^.*(\\:\\))(?=((?=\\W)(?!\\d))+).*$/m', $message)) {
} else {
$msg=str_replace($smilie[0],"<img src=$smilie[1] align=absmiddle>",$msg);
}

and that:

if(!preg_match('/^.*(\\:\\))(?=((?=\\W)(?!\\d))+).*$/m', $message))
$msg=str_replace($smilie[0],"<img src=$smilie[1] align=absmiddle>",$msg);

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 +
Regex to the rescue! Using this, you will have to escape the special characters used in your smilies list. For example, use ":\)" instead of ""
$msg=preg_replace("/(^|[^a-z0-9])".$smilie[0]."($|[^a-z0-9])/imx","$1<img src=$smilie[1] align=absmiddle>$2",$msg);


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<img src=$smilie[1] align=absmiddle>$2",$msg);
}

It gave me many compilation errors...
Stifu









Since: 11-18-05
From: Your mom's bed

Last post: 6329 days
Last view: 6327 days
Posted on 03-18-06 12:43 PM, in I want to change my smilies system... How ? Link
Hmmmmm...


Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 6513693 bytes) in /var/www/free.fr/c/8/stifu/Board/lib/function.php on line 219


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
Posted on 03-18-06 12:55 PM, in I want to change my smilies system... How ? Link
Exact same error as before...
Stifu









Since: 11-18-05
From: Your mom's bed

Last post: 6329 days
Last view: 6327 days
Posted on 03-18-06 01:43 PM, in I want to change my smilies system... How ? Link
Still doesn't work... Except the error is different this time.


Warning: Compilation failed: unmatched parentheses at offset 30 in /var/www/free.fr/c/8/stifu/Board/lib/function.php on line 219

Warning: Unknown modifier '(' in /var/www/free.fr/c/8/stifu/Board/lib/function.php on line 219


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
Posted on 03-18-06 04:53 PM, in Shitty PM system Link
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.


if ($msg[userto]==$loguserid || $msg[userfrom]==$loguserid) {
if ($msg[userto]==$loguserid) {
$tofrom = "to";
} else {
$tofrom = "from";
}
mysql_query("UPDATE pmsgs SET folder$tofrom=".PM_DELETED." WHERE id=$id");
/* mysql_query("DELETE FROM pmsgs WHERE id=$id");
mysql_query("DELETE FROM pmsgs_text WHERE pid=$id");*/

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 <z> tags to prevent winking smilies to appear in my quote above, while they shouldn't even have appeared since it's not even their code... Try to quote me and remove the <z> if you wanna know what I mean...
Stifu









Since: 11-18-05
From: Your mom's bed

Last post: 6329 days
Last view: 6327 days
Posted on 03-19-06 09:00 AM, in Shitty PM system Link
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
Posted on 03-19-06 10:52 AM, in I want to change my smilies system... How ? Link
Still not...


Warning: Compilation failed: unmatched parentheses at offset 30 in /var/www/free.fr/c/8/stifu/board/lib/function.php on line 220

Warning: Compilation failed: unmatched parentheses at offset 30 in /var/www/free.fr/c/8/stifu/board/lib/function.php on line 220

Warning: Compilation failed: unmatched parentheses at offset 30 in /var/www/free.fr/c/8/stifu/board/lib/function.php on line 220

Warning: Compilation failed: unmatched parentheses at offset 30 in /var/www/free.fr/c/8/stifu/board/lib/function.php on line 220
Stifu









Since: 11-18-05
From: Your mom's bed

Last post: 6329 days
Last view: 6327 days
Posted on 03-19-06 11:24 AM, in Shitty PM system Link
Yay it works !

Thanks a lot.
Stifu









Since: 11-18-05
From: Your mom's bed

Last post: 6329 days
Last view: 6327 days
Posted on 03-19-06 08:09 PM, in Shitty PM system Link
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
Posted on 03-20-06 04:10 PM, in Shitty PM system Link
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


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.029 seconds; used 435.87 kB (max 565.15 kB)