View Full Version : Make report time available as variable in reported items?
tfw2005
08-09-2010, 02:15 PM
Looking to change up the title of threads being posted for reported items. Want to include the report time in there. Specifically in the thread title.
Could someone enlighten me as to what is needed to be changed in class_reportitem.php to include $reportinfo[dateline] or any kind of equivalent for use in the phrase manager?
3.8.6 pl1
Thanks!
Lynne
08-09-2010, 02:22 PM
I just added this to the $reportinfo array around line 530:
'today' => vbdate('m-d-Y', TIMENOW, false, false),
Then I was able to use $reportinfo[today] in my phrase. (At least, I think that is all I did.)
tfw2005
08-09-2010, 02:43 PM
That worked, thanks much. I wish everything was that quick and simple :)
For future reference...
Added time to it too. So mine looks like
'today' => vbdate('m/d/Y h:i A', TIMENOW, false, false),
Then added $reportinfo[today] at the end of the Standard Phrase: reportpost_newthread in the phrase manager of vbulletin.
Will probably add to the other "_newthread" items in there as well.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.