Log in

View Full Version : Sceduled Promotions - how to make them instant?


Borgs8472
07-29-2005, 11:44 PM
Hey all.

I had this idea of imprisoning newly registered users in just a couple of forums, forcing them to make a single post in order to see the rest of the board.

The problem is that the user promotions system doesn't work to change the user's usergroup fast enough, I want them to make a post and for their release to be INSTANT.

If I set the sceduled task time for promotions to '*' will this mean the task will run instantly? Or will it overload my database with queries and mess things up?

How's the best way to deal with things do you think? Ta :)

Paul M
07-30-2005, 12:05 AM
If you set everything to * then it should run once a minute, that is the closest to instant you will get. Not sure that's a great idea though.

Adrian Schneider
07-30-2005, 01:31 AM
You could manually put them into php include... Maybe something like
if ($bbuserinfo['posts'] >= X)
{
$DB_site->query("
UPDATE user
SET usergroupid='Y'
WHERE userid='$bbuserinfo['userid']
}
Of course there were be many more, but it would work nonetheless.

Borgs8472
07-30-2005, 03:44 PM
I'd need to put something in there a bit more than that, e.g.


if ($bbuserinfo['posts'] >= X) and usergroup = newbieid
{
$DB_site->query("
UPDATE user
SET usergroupid='Y'
WHERE userid='$bbuserinfo['userid']
}

Hmmm... :/

Don't suppose anyone could give me the exact code? :D