Arsalan Shah
7 years ago
This component allows making announcements on top of your newsfeed. The announcement will be visible to loggedin users only.

Version 1.3 is comes with HTML support now by means of Ossn's WYSIWYG editor

And that means: Using the Tools -> Source Code option on the editors toolbar, you may even embed multiple announcements in different languages in parallel like

This way a member with an English language setting will see the announcement already shown above, while a member with a German language setting will see

Visit https://www.opensource-socialnetwork.org/component/view/3196/textarea-support
for more details on available languages.
Changes
V 1.3
Arsalan Shah
Replied 3 years ago
@Rafael, added and uploaded here, I modified the settings.php a bit
Rafael [redcrested.net]
Replied 3 years ago
@Arsalan
I send a pull request on repository few days ago. Can you take a look?
Arsalan Shah
Replied 3 years ago
Thanks Rafael will fix it soon!
Rafael [redcrested.net]
Replied 3 years ago
@Arsalan
After helped Maurice (https://www.opensource-socialnetwork.org/discussion/view/6161/youtube-shows-half-top-half-of-video), I found this message in error_log
[24-Nov-2022 20:32:44 America/Sao_Paulo] PHP WARNING: 2022-11-24 20:32:44 (-03): "Undefined property: OssnUser::$language" in file /.../ossn/components/Announcement/plugins/default/announcement/message.php (line 15)
In message.php file I found this:
$current_lang = ossn_site_settings('language');
if(ossn_isLoggedin()) {
$user = ossn_loggedin_user();
if($user->language) {
$current_lang = $user->language;
}
}
The line can be updated to if(isset($user->language)) in next version?
PS: I update this part because I didn't see the multi language support in image before send the first version of message. Sorry
Rafael [redcrested.net]
Replied 3 years ago
@Julinlabs
I don't know if you changed the red color. But take a look into components\Announcement\plugins\default\announcement\message.php. You may change the alert-danger for other class or even add your own style on this tag
Julinlabs dsd
Replied 4 years ago
pls can u help me?
how to change the red color ??
Jake Nicholson
Replied 5 years ago
I have an issue that I cannot figure out - I updated to premium but now the site announcement shows HTML and the admin portion to edit it no longer has the TinyMCE editor.
Do I need to uninstall and reinstall the site announcement component?
Anthony Raimond Garces Davidson
Replied 6 years ago
que tema usas yo el verde ese creo es el azul
Theyadora Leeper
Replied 6 years ago
I made a slight mod to this excellent component just to allow users to close it (The div) out if they want to once they have read it. Dev guys might wanna add this feature.. Thanks again guys for awesome code.
Gennaro Vela
Replied 6 years ago
Yes, really good. Just need to check the language compatibility and add modify the title
