Additional Info
Type
Package ID
jaybachatero:ga
First Created
August 15, 2006, 12:18:55 AM
Last Updated
July 28, 2008, 02:02:56 PM

Global Announcements v1.0

Global Announcements
Compatible With 1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.5
Latest version v1.0
Downloads 53,126
Reviews 0
Rating 0/5
Subscribers 22
License (View License)
Author(s)
Features
+ Log Who's Online Actions.
+ BBC and Smileys.
+ Status indicator to admin page to indicated if mod is disabled or not.
+ Ability to quick enable/disable Global Announcement.
+ Ability to send a newsletter for Global Announcement.
+ Added spellcheck support.
+ Added support for Admin Modification Menu Section mod.
+ Setting to set the default order.
+ UTF-8 support
+ Print support
+ Preview the announcement before it's made.

Legend
! Bug fixes
+ Feature addition

Changelog
Version 1.0
! Fixed bug with preview leaving Subject and boards behind. (GlobalAnnouncements.php, GlobalAnnouncements.template.php)
! Fixed bug with $settings var being overwritten and causing the install to give a white page. (ga_install.php)

Version 0.4
! Cleaned up query on MessageIndex to work with the new sorting method. (install.xml)
+ Added the ability to preview the Global Announcement before you submit it. (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php, language entries)
+ Added credits page (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php, language entries)

Version 0.3
! $modSettings and $settings variables were not in the global scope causing spellcheck support to be disabled. (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php)
! Hidden form for spellcheck was missing (GlobalAnnouncementsAdmin.template.php)
! If the id of the GA entered is not valid output an error. (GlobalAnnouncements.php)
! Make sure that the number of vies is actually counted and not replaced by 1 (GlobalAnnouncements.pgp)
+ Added a new settings page (GlobalAnnouncementsAdmin.php, GlobalAnnouncements.template.php)
+ Added language entries for changes above.
+ UTF-8 support has been added. (GlobalAnnouncementsAdmin.php)
+ Added print page. (GlobalAnnouncements.php, GlobalAnnouncements.template.php)
+ Added setting to set the default order (This is for the default order for entries that do not have an order) (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php)
+ Added support for Admin Modification Menu Section mod.  (install.xml - Subs.php)
! Fixed issue with the ALTER TABLE query. (install.php)
! Added missing apostrophe for query. (GlobalAnnouncementsAdmin.php)
! Fixed undefined index: admin_areas_other error. (install.xml - Subs.php)

Version 0.2
+ Added entries for Who's Online. (Who.php, Modifications.english.php)
+ Added BBC and Smileys to template. (Subs-GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php, GlobalAnnouncementsAdmin.php)
+ Added status indicator to admin page to indicated if mod is disabled or not. (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php)
+ Added ability to quick enable/disable Global Announcement. (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php)
+ Added ability to send a newsletter for Global Announcement. (ManageNews.php, GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php)
+ Added spellcheck support. (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php)
+ Added a "preview" link.  This will link to the actual announcement.  The preview feature is still not in. (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php)
! Fixed bug with the JS confirm box. (GlobalAnnouncementsAdmin.template.php)
! Fixed the issue with the column size. (GlobalAnnouncements.template.php)
! Changed the search possition to add the $context['allow-admin']. (install.xml)
! Don't show the Global Announcements template is there are none. (GlobalAnnouncements.template.php)

Add to custom theme

<edit file>
$themedir/MessageIndex.template.php
</edit file>
<search for>
// Create the button set...
$normal_buttons = array(
</search for>
<add before>
// Global Announcements...
if (isset($context['globalAnnouncements']) && count($context['globalAnnouncements']) != 0)
{
echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr>
<td colspan="7" class="titlebg">Global Announcements</td>
<tr>
<tr>
<td class="catbg3" width="9%" colspan="2"></td>
<td class="catbg3">', $txt[70], '</td>
<td class="catbg3" width="14%">', $txt[109], '</td>
<td class="catbg3" width="4%" align="center">', $txt[110], '</td>
<td class="catbg3" width="4%" align="center">', $txt[301], '</td>
<td class="catbg3" width="22%">Time</td>
</tr>';

// Loop through the Global Announcements
foreach ($context['globalAnnouncements'] as $globalAnnouncement)
{
echo '
<tr class="windowbg2">
<td align="center">
<img src="', $settings['images_url'], '/post/' .$globalAnnouncement['ga']['icon']. '.gif" alt="" />
</td>
<td align="center">
<img src="', $settings['images_url'], '/post/exclamation.gif" alt="" />
</td>
<td ' ,$globalAnnouncement['ga']['enabled'] == 0 ? 'style="background-color: #e9e9e9; color: #8d8d8d;"' : 'class="windowbg"', '>
<a href="' ,$globalAnnouncement['ga']['href'], '" >', $globalAnnouncement['ga']['subject'], '</a>
</td>
<td>
', $globalAnnouncement['member']['link'], '
</td>
<td align="center" class="windowbg">
--
</td>
<td align="center" class="windowbg">
', $globalAnnouncement['ga']['views'], '
</td>
<td>
', $globalAnnouncement['ga']['time'], '
</td>
</tr>';
}

echo '
</table>
</div><br />';
}
</add before>
Manual installation info
You have to register or login to be able to leave a review
There are currently no reviews on this customization
Advertisement: