The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hi
Id like the date and time of a new posting to be displayed in the email thats sent to the admin or moderator when a new posting is made. What Variables to I need to use? regards Tina |
#2
|
||||
|
||||
Ok, in both newthread.php and newreply.php, find this code:
Code:
// send email to moderators if ($enableemail) { Code:
$emailposttime=vbdate($timeformat,time()); $emailpostdate=vbdate($dateformat,time()); |
#3
|
|||
|
|||
Hallo Chen,
great! thats works perfect. thanks a million for your help. greetings tina |
#4
|
|||
|
|||
Hi Chen,
me again I thought I'd try and figure this one out for myself, but I'm not getting anywhere. I'd like to have the variable time and date also for the notify_email template and I figured out that I must make changes to the functions.php ? right? But I'm not sure what and where to include it? Maybe you could help me again? regards Tina |
#5
|
||||
|
||||
Sure.
In functions.php, find this: Code:
if (!$enableemail) { return; } Code:
$emailposttime=vbdate($timeformat,time()); $emailpostdate=vbdate($dateformat,time()); |
#6
|
|||
|
|||
Hi Chen,
Yes, I tried that already and unfortunately it didn't work. Here's how my code looks: PHP Code:
greetings Tina |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|