Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: flamechica on January 27, 2009, 04:31:08 AM

Title: FREE: Announcement Center Mod
Post by: flamechica on January 27, 2009, 04:31:08 AM
Description
I am converting from phpbb3 to smf 1.1.7 and on my phpbb3 board I have a mod called Announcement Center. It creates a box at the top of the forum. It can be set for "Guest Announcements" and "Site Announcements" each with a different message and each can be turned on/off separately. The messages can have different colored text, smilies, the use of img tags, etc.

Permissions
Admin only feature and controlled in the Admin Control Panel

You can view the "Guest Announcement" part by visiting my phpbb3 forum at www.rsdlaughter.com
Title: Re: FREE: Announcement Center Mod
Post by: Kermit on January 27, 2009, 04:35:14 AM
Maybe sth. like that

http://custom.simplemachines.org/mods/index.php?mod=1425
Title: Re: FREE: Announcement Center Mod
Post by: flamechica on January 27, 2009, 02:14:14 PM
yes that is kinda what I want, except that one is only for guests. I would like to be able to have a seperate message for me members. I have a registration announcement for guests and then I have an announcement for my members that usually includes the date, an inspirational quote, some smilies and maybe even an important notice from the admins.

If the mod you showed me had a member announcement it would be perfect.
Title: Re: FREE: Announcement Center Mod
Post by: bullbreedluverz on January 27, 2009, 03:32:05 PM
maybe this 1 might serve your purpose http://www.simplemachines.org/community/index.php?topic=288554.0
Title: Re: FREE: Announcement Center Mod
Post by: flamechica on January 28, 2009, 09:01:55 AM
I had seen that mod, but I really, REALLY despise pop up boxes and although I realize that that mod isn't a pop up as it is a floating layer inside the page, it just resembles a pop up too much. I think it would be rather annoying to my members and guests, but if no one wants to take this on and create a mod, I might end up with that mod instead.

Thanks for the suggestion though!
Title: Re: FREE: Announcement Center Mod
Post by: bullbreedluverz on January 28, 2009, 09:23:38 AM
Maybe if you ask on the thread for the Message for your guests Mod suggested by Duncan the designer maybe able to give you advice on how to make this mod work for different usergroups, this maybe even a topic that has already been covered in the thread discussions

this is the support thread http://www.simplemachines.org/community/index.php?topic=265071.0
Title: Re: FREE: Announcement Center Mod
Post by: flamechica on January 28, 2009, 04:11:20 PM
I would, but the mod author has not responded to that thread since the beginning of November.
Title: Re: FREE: Announcement Center Mod
Post by: Kermit on January 28, 2009, 04:51:54 PM
I've tried sth. for you

At first install the mod from above and after that,do that few changes,which i'll give you below

Sources/ModSettings.php

Code (find) Select

array('check', 'allow_guestAccess'),
'',
array('check', 'enable_mfg_mod',
&$txt['enable_mfg_mod']),
array('large_text', 'mf_guests', '5'),
'',


Code (replace with) Select

array('check', 'allow_guestAccess'),
'',
array('check', 'enable_mfg_mod',
&$txt['enable_mfg_mod']),
array('large_text', 'mf_guests', '5'),
array('check', 'enable_mfm_mod',
&$txt['enable_mfm_mod']),
array('large_text', 'mf_members', '5'),
'',



index.template.php

Code (find) Select

//Hopefully this message will encourage the guests to register
if ($context['user']['is_guest'] && !empty($modSettings['enable_mfg_mod']))
        echo '
               <div class="windowbg2" style="margin:0 auto;text-align:center">',!empty($modSettings['mf_guests']) ? $modSettings['mf_guests'] : $txt['default_message'],'</div>';


Code (replace with) Select

//Hopefully this message will encourage the guests to register
if ($context['user']['is_guest'] && !empty($modSettings['enable_mfg_mod']))
        echo '
               <div class="windowbg2" style="margin:0 auto;text-align:center">',!empty($modSettings['mf_guests']) ? $modSettings['mf_guests'] : $txt['default_message'],'</div>';
elseif ($context['user']['is_logged'] && !empty($modSettings['enable_mfm_mod']) && !empty($modSettings['mf_members']))
        echo '
               <div class="windowbg2" style="margin:0 auto;text-align:center">'. $modSettings['mf_members'] .'</div>';



languages/Modifications.english.php

Code (find) Select

?>


Code (add before) Select

$txt['enable_mfm_mod']='Enable the member message mod';
$txt['mf_members']='Member Greeting Message';
Title: Re: FREE: Announcement Center Mod
Post by: flamechica on January 29, 2009, 07:53:10 AM
Duncan,
It worked. You rock! Thanks a ton!