News:

Wondering if this will always be free?  See why free is better.

Main Menu

FREE: Announcement Center Mod

Started by flamechica, January 27, 2009, 04:31:08 AM

Previous topic - Next topic

flamechica

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

Kermit

My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

flamechica

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.


flamechica

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!

bullbreedluverz

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

flamechica

I would, but the mod author has not responded to that thread since the beginning of November.

Kermit

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';
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

flamechica

Duncan,
It worked. You rock! Thanks a ton!

Advertisement: