Back to Modification Graveyard

[Cronjob] Email Notification When Users Hit X Amount of Posts
Mod Version: 1.00, by tnguy3n

This thread is in the Modification Graveyard.
vB Version: 3.0.7 Rating: (0 vote - 0 average) Installs: 10
Released: 23 Mar 2005 Last Update: Never Downloads: 2
Not Supported  

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 ;
re-upload and overwrite the existing file.

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
, i make a duplicate here in case of other users need it.

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;
To change amount of posts, look for this line (in promoemail.php):
Code:
$promo_x_posts = 10;

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2025