MyBB Community Forums

Full Version: OUGC Announcement Bars
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9
There is no Plugin On / Off Option
No background color... Sad
For those experiencing issues with PluginLibrary style-sheets:
http://community.mybb.com/thread-87399-p...pid1096300
For me no background color and styling Sad so I downloaded latest pluginlibrary and it works fine! thanks
Any reason for the 250 character limit in the bars content?
is it simply an arbitrary limit, or is there a necessity to keeping it to 250.
I will probably fix that next version.
for anybody wanting to bodge it themselves;

Redownload the plugin;

in inc/plugins/ougc_annbars.php find
`content` varchar(255) NOT NULL DEFAULT '',
(should be line 651) and replace with
`content` text NOT NULL DEFAULT '',

Also find
if(!$content || my_strlen($content) > 250)
(should be line 378)
and replace with
if(!$content || my_strlen($content) > 1337)
1337 is an example new max-character limit, you may want more or less, set it to what you want.

Uninstall/deactivate the plugin if you are running it, upload the new file(s) and re-install/activate it. hey presto it works.
It's a quick bodge, but it does the job for the minute.
Omar, might be an idea to give admins the option to allow users to dismiss the bars. Wink
Yes that is a planned feature. I actually had it coded for 1.6 but after some real life issues I lost the work, tried it for 1.8 but was unable to achieve for the release so it is in my TODO list.
Also of note is that the plugin yells at me about invalid bar content if I try to include numerals (1, 10, etc..) in an announcement bar. Might also be an idea to implement support for MyCode so bolding, emphasis, links, etc.. can be used in bars. Smile
Pages: 1 2 3 4 5 6 7 8 9