jcay Wrote:I was just wondering if it can be set so that new registered members are automatically put into the mailing list as default upon sign up?
In theory, I can just add a hook to run when they register an account which adds them to the group. I'll look at it later.
jcay Wrote:Also is there a way to have the topic and threads name wrote in before the url?
Strange, I thought I had already had a discussion with someone about this in this thread. Yes. There is but you must bear in mind that the plugin does no checking to see if the user actually has permission to view the thread/post/etc, all it does it get the newest data. If you add the code below, you must understand that users may see the names of threads and replies that they will be unable to view due to their access levels and this may potentially leak private information.
ONLY if you agree to this, add the following code:
Line 277, replace:
$query = $db->query("SELECT aid FROM ".TABLE_PREFIX."announcements ORDER BY aid DESC LIMIT 1");
With:
$query = $db->query("SELECT aid, subject FROM ".TABLE_PREFIX."announcements ORDER BY aid DESC LIMIT 1");
Line 281, replace:
$message = str_replace("{bblannounce}", "{$mybb->settings['bburl']}/announcements.php?aid={$row['aid']}", $message);
With:
$message = str_replace("{bblannounce}", "{$row['subject']} - {$mybb->settings['bburl']}/announcements.php?aid={$row['aid']}", $message);
Line 290, replace:
$query = $db->query("SELECT tid FROM ".TABLE_PREFIX."threads ORDER BY tid DESC LIMIT 5");
With:
$query = $db->query("SELECT tid, subject FROM ".TABLE_PREFIX."threads ORDER BY tid DESC LIMIT 5");
Line 296, replace:
$part .= "{$mybb->settings['bburl']}/showthread.php?tid={$row['tid']}\r\n";
With:
$part .= "{$row['subject']} - {$mybb->settings['bburl']}/showthread.php?tid={$row['tid']}\r\n";
Line 307, replace:
$query = $db->query("SELECT tid, pid FROM ".TABLE_PREFIX."posts ORDER BY pid DESC LIMIT 5");
With:
$query = $db->query("SELECT tid, pid, subject FROM ".TABLE_PREFIX."posts ORDER BY pid DESC LIMIT 5");
Line 313, replace:
$part .= "{$mybb->settings['bburl']}/showthread.php?tid={$row['tid']}&pid={$row['pid']}#pid{$row['pid']}\r\n";
With:
$part .= "{$row['subject']} - {$mybb->settings['bburl']}/showthread.php?tid={$row['tid']}&pid={$row['pid']}#pid{$row['pid']}\r\n";