miniBB ®  
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual | miniBB Mobile
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

Email Administrator the first 3 posts from each topic

Author fohanlon
Guest
#1 | Posted: 26 Sep 2007 08:14 
Hi Guys

Anyone know what to change to send an email to the administrator when first 3 replies to a topic are posted.

Many thanks,

Fergal.
Author Paul
CEO
#2 | Posted: 26 Sep 2007 10:17 
Try to edit bb_func_pthread.php

where it says

db_calcAmount($Tp,'topic_id',$topic,$Tt,'posts_count');

add:

$tAmount=db_calcAmount($Tp,'topic_id',$topic,$Tt,'posts_count');

then where it says the admin's condition like

if ($genEmailDisable!=1 and ($emailusers>0 or (isset($emailadmposts) and $emailadmposts==1))) {

add

if ($genEmailDisable!=1 and ($emailusers>0 or (isset($emailadmposts) and $emailadmposts==1)) and $tAmount>=3) {

$emailadmposts must be set to 1.

I've not checked it in the practice.
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / Email Administrator the first 3 posts from each topic Top
Your Reply Click this icon to move up to the quoted message
 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
  Allow your miniBB-forums members communicate with each other
with the Private Messaging add-on!
Private Messaging addon for miniBB