PDA

View Full Version : [Request] Alter User's post every time.


Travis641
06-17-2002, 10:35 PM
How would I go about changing a User posts everytime he posts?

I was thinking something like:


if ($post[username] == "Name")

{ $post[message] = "Whatever goes into the post"; }

But it doesn't work. Can someone help me, or make it work? :)

heretic
06-17-2002, 11:58 PM
you could modify the "ultimate ignore" hack

Logician
06-18-2002, 08:55 AM
And the point will be? :confused:

Xenon
06-18-2002, 03:51 PM
can't see the effect why you want to do it, but here's how:

open newreply.php

find$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($title))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconi d','$visible')");

just before add:

if($bbuserinfo[userid]==xxx) $message="Blavbla";

do the same to newthread.php

Travis641
06-19-2002, 08:18 PM
Thanks!

It's more of a gag thing, like FireFly's "Insert name into post". Also I guess you could use it on a spammer, if you really didn't want to ban. I dunno.

I thought it would be kinda funny to see people's reactions to it.

Logician
06-19-2002, 08:31 PM
expect flamed pms. :)

Travis641
06-19-2002, 08:36 PM
:paranoid:

Xenon
06-19-2002, 08:48 PM
hehe, please tell us the best pms you recieved ;)