Err.. found a tiny bug in this version.
Did anyone here try to delete a mood already ? I did and it gave me an SQL Error.
Easy enough to fix though:
On journaladmin.php
Find
Code:
// ###################### Start killmood #######################
if ($_REQUEST['do'] == 'killmood')
{
$vbulletin->input->clean_gpc('r', 'mid', TYPE_INT);
$db->query("DELETE FROM journal_moods WHERE mood_id=" . $vbulletin->GPC['mid']);
Replace by
Code:
// ###################### Start killmood #######################
if ($_REQUEST['do'] == 'killmood')
{
$vbulletin->input->clean_gpc('r', 'mid', TYPE_INT);
$db->query("DELETE FROM ".TABLE_PREFIX."journal_moods WHERE mood_id=" . $vbulletin->GPC['mid']);
The only change was to add a TABLE_PREFIX to the SQL statement
I also made a
plugin to add most of the the journal CP to the Moderator Menu, since I don't want to be hassled with adding moods! :P