|
[Cronjob] Email Notification When Users Hit X Amount of Posts
This thread is in the Modification Graveyard.
As its title says, this code will automatically email a user once he/she hits a certain amount of posts. It may be useful for some boards which set Registered group have limited privileges and require XX posts to view the board globally...
It's been posted here Spoiler (click to open)
here's the fix.
Add one query to user table: Code:
ALTER TABLE `user` ADD `promoemail` TINYINT( 1 ) DEFAULT '0' NOT NULL ; I've posted it as a hack here http://www.vbulletin.org/forum/showthread.php?p=629939#post629939 You can discuss it with other coders. Close
It's fairly easy to install, just create a cronjob and let it do the job itself. You can set the cronjob to run hourly or every three hours or whenever you like. DON'T FORGET TO CHANGE text message in Email Body Text + Email Subject Text to fit you site settings. Installation Time: 2-3 mins (Easy) New File: 1 Query: 1 Code:
ALTER TABLE user ADD promoemail TINYINT(1) DEFAULT '0' NOT NULL; Code:
$promo_x_posts = 10; Download No files for download. |
|||||||||