PDA

View Full Version : I am sure this is about but i cant find it


freeshares1
06-16-2002, 08:37 AM
I know that there are hack to PM / email on birthday's or number of posts and also reward schemes.

But i can seem to find anything that does thread starters.

What i am after doing is rewarding users that Start threads ONLY. (say 10 threads in one forum) I would want to send them a PM.

Cheers

phil :rolleyes:

Logician
06-16-2002, 09:15 AM
This can be achievable by making some modifications in my Greet Users X posts (https://vborg.vbsupport.ru/showthread.php?s=&threadid=39821) hack:

First apply the hack to only newthread.php (not to newreply.php). Then find the part:

greeteduserposts=$bbuserinfo[posts]+1;

Before that add:

$userthreaddb=$DB_site->query_first("SELECT count(*) as threadnum FROM thread WHERE forumid=X AND postuserid=$bbuserinfo[userid]");
$userthreadnumber=$userthreaddb['threadnum'];
(Replace X with your forumid)

Replace line:
$greeteduserposts=$bbuserinfo[posts]+1;

AS:

$greeteduserposts= $userthreadnumber+1;

And make text editing in the 3 templates of the hack. They greet Xth posts, correct them to greet Xth thread.

This should do the trick. Please notice: I have NOT tested this modification and writing it on the fly. I believe it will work but please apply to a test board before using it in your original board if you are intended to use it.

Logician

freeshares1
06-17-2002, 04:46 AM
Thanks i will give it a try later and let you know if it works.

Phil