Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How can I change the text for "Announcement". I want to call this "Sticky"*
DogHam
✭
Hello!
How can I change the text for "Announcement"?
I want to call this "Sticky"
I'm using a custom theme.
Thank you!
Tagged:
0
Comments
You are looking for definitions.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
What's the file location? theme master file?
either read the link that @hgtonight provided
or read this.
http://vanillaforums.org/docs/localization
or add the definitions to conf/locale.php
you can search the forum - there have hundreds of discussions about it.
then you can start clicking insightful on posts that help you.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Thank you!
Is there a way to make a second annoucement?
Not on the same thread. You need to make a new discussion to announce it .
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
No, I mean... This is called Sticky (renamed from Announcement) and I want to put a second called "Trusted"
You can only add one definition per word. There may be a plugin but not sure, you would have to search for one.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
No plugin sadly, But If you wanted to do this you may google?
I found a plugin called Announcement (http://vanillaforums.org/addon/96-announcement)
In the plugin menu I have eeror message when I want to enable it (it's showing no name in plugin list)
The addon could not be enabled because it generated a fatal error:
The plugin folder was not properly defined.
it is an old plugin
add this to the plugin default.php after the part that says many thanks see if it works
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
It's now in plugin list, but....
Fatal error: Class 'Control' not found in /home/content/61/10882761/html/plugins/Announcement/default.php on line 40
See screenshot for line 40... I don't know how to make this box with code...
I don't know but am I so stup... or why I need to ask so much Questions?
ok then add this instead of control in the same file after the list of $Context
class AnnouncementPlugin extends Gdn_Plugin {
There is no guarantee this will work but if you are willing to try and remove the closing php tag from that file after the end. remove the ?>
// The End
?>
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
like this?
there is a error...
You are not stupid, besides I learn too while trying to help
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
you need to remove the line that has Control and only use the Garden one
remove this
class announcement extends Control {
put this in instead
class AnnouncementPlugin extends Gdn_Plugin {
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
also change this
function announcement(&$Context) {
to this
function announcement($Context) {
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Ok a second error on line 61... I give up... this plugin is a crap...
I will try now in options.js to add announcement like this... Maybe it's working
there are a few other things to fix to make this work though.
this
AddConfigurationSetting
should be
SaveToConfig
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
adding in otions.js doesn't add another sticky... it would be too easy...