Makestation
[MyBB Plugin] Board Announcements Manager (For 1.6 and 1.8) - Printable Version

+- Makestation (https://makestation.net)
+-- Forum: Technical Arts (https://makestation.net/forumdisplay.php?fid=45)
+--- Forum: Web Design & Internet (https://makestation.net/forumdisplay.php?fid=62)
+---- Forum: MyBB Related (https://makestation.net/forumdisplay.php?fid=120)
+---- Thread: [MyBB Plugin] Board Announcements Manager (For 1.6 and 1.8) (/showthread.php?tid=1206)

Pages: 1 2 3


RE: [MyBB Plugin] Board Announcements Manager (For 1.6 and 1.8) - Darth-Apple - March 27th, 2020

I looked over both files. These look fantastic. The only thing that I saw that was missing was a string related to the custom class field:

Code:
['bam_remove_custom_class'] .= "<br /><br />Example: \"blue my_custom_class\" &nbsp;&nbsp; (separate multiple classes by spaces)<br />";
$l['bam_remove_custom_class'] .= "Built in classes: red, blue, yellow, green, magenta, orange, silver <br/><br />";

That particular string is very rarely shown, so it's completely fine as is. It's otherwise perfect.

Would you be okay if we upload the translation on the official MyBB Mod Site upload? With a credit to you, of course. Smile


RE: [MyBB Plugin] Board Announcements Manager (For 1.6 and 1.8) - tc4me - March 27th, 2020

Yes Yes Yesyou can publish it:

If you want, change that to

but I didn't want to translate the color names into German because of the javascript


Code:
$l['bam_remove_custom_class'] .= "<br /><br />Beispiel: \"blue my_custom_class\" &nbsp;&nbsp; (Trennen Sie mehrere Grundfarben durch Leerzeichen)<br />";

$l['bam_remove_custom_class'] .= "Die Grundfarben: red, blue, yellow, green, magenta, orange, silver <br /><br />";




RE: [MyBB Plugin] Board Announcements Manager (For 1.6 and 1.8) - Darth-Apple - March 27th, 2020

Unfortunately the colors will pretty much have to stay as far as the color names themselves. That’s a good point. We would have to translate the CSS class names themselves to do that, which would involve modifying some stuff deeper in the plugin.

I’ll publish it this weekend. Awesome work!


RE: [MyBB Plugin] Board Announcements Manager (For 1.6 and 1.8) - tc4me - March 27th, 2020

(March 27th, 2020 at 4:01 PM)Darth-Apple Wrote: I looked over both files. These look fantastic. The only thing that I saw that was missing was a string related to the custom class field:

Code:
['bam_remove_custom_class'] .= "<br /><br />Example: \"blue my_custom_class\" &nbsp;&nbsp; (separate multiple classes by spaces)<br />";
$l['bam_remove_custom_class'] .= "Built in classes: red, blue, yellow, green, magenta, orange, silver <br/><br />";

That particular string is very rarely shown, so it's completely fine as is. It's otherwise perfect.

Would you be okay if we upload the translation on the official MyBB Mod Site upload? With a credit to you, of course. Smile

(March 27th, 2020 at 4:37 PM)Darth-Apple Wrote: Unfortunately the colors will pretty much have to stay as far as the color names themselves. That’s a good point. We would have to translate the CSS class names themselves to do that, which would involve modifying some stuff deeper in the plugin.

I’ll publish it this weekend. Awesome work!
Thank you, thank you, gladly, what is it all about? Credit for me? what ist This ?  Confused Huh


RE: [MyBB Plugin] Board Announcements Manager (For 1.6 and 1.8) - Darth-Apple - March 27th, 2020

I’ll put a note saying “German translation by TC4ME at autism4all.at” or something similar. Smile


RE: [MyBB Plugin] Board Announcements Manager (For 1.6 and 1.8) - tc4me - March 27th, 2020

:-) Thanks, but that's nice


RE: [MyBB Plugin] Board Announcements Manager (For 1.6 and 1.8) - tc4me - May 8th, 2020

Hello @Darth-Apple , is there still an update Bam 3 or something? If only a suggestion.

A headline / header above the announcement after that dividing line,

which is also entered via the input field in Acp. If or if the admin does not enter a heading, then it should look like the BAM 2. I just did it in the template as it might look. Would only be an idea of mine :-)


look in the test forum

greets Tc4me


RE: [MyBB Plugin] Board Announcements Manager (For 1.6 and 1.8) - saucerman - May 8th, 2020

two things: first is there any way to have the text be aligned through configuration instead of having it text-align: center

second the dismal button "x" doesn't seem to invoke anything - it doesn't dismiss - any clues?


RE: [MyBB Plugin] Board Announcements Manager (For 1.6 and 1.8) - Darth-Apple - May 9th, 2020

@tc4me: Looks good! I'll look into it. I will say we may opt for tags to do something of this sort, only because modifying the database fields to add multiple announcement text fields can make the upgrade process very difficult. But I'll look into something of the sort. Smile

@saucerman: I'd be interested in looking into this issue personally. Do you have a forum URL I can check? I'm not able to reproduce the issue here, but we should be able to figure out what it is and resolve!

Also, the text-align is something we've considered changing in the past. I'll add a setting in 2.1 for this.


RE: [MyBB Plugin] Board Announcements Manager (For 1.6 and 1.8) - saucerman - May 9th, 2020

so I found the problem with the script not invoking...there was a conflict in the  .ready(function and it was throwing a js error...to get around this I simply changed in your script include file all your "$("  to "jQuery(" and it worked like a charm.  Since many js libraries use $ as a function/variable to avoid the conflict I used jQuery.  you cannot guarantee that a function name is unique so it's best to use it's reference.


RE: [MyBB Plugin] Board Announcements Manager (For 1.6 and 1.8) - Darth-Apple - May 9th, 2020

(May 9th, 2020 at 12:38 AM)saucerman Wrote: so I found the problem with the script not invoking...there was a conflict in the  .ready(function and it was throwing a js error...to get around this I simply changed in your script include file all your "$("  to "jQuery(" and it worked like a charm.  Since many js libraries use $ as a function/variable to avoid the conflict I used jQuery.  you cannot guarantee that a function name is unique so it's best to use it's reference.

Thank you for testing and resolving this. I will include the fix in a future version. Smile


RE: [MyBB Plugin] Board Announcements Manager (For 1.6 and 1.8) - tc4me - May 9th, 2020

@Darth-Apple great thx


RE: [MyBB Plugin] Board Announcements Manager (For 1.6 and 1.8) - Darth-Apple - January 28th, 2021

A few minor bugs have been reported over the past several months. Most of them are trivial, but they've added up to where I'm ready to push a 2.1 maintenance release in the next couple of weeks.
  • Fix database query error on a very specific template directive/tag if the database prefix is nonstandard
  • Fix mouse pointer/hover on dismiss button
  • Add [@forums:1,2,...] tag to override default functionality of forum display setting (the override disables display on editpost, newreply, and newthread.php. This is an unofficial easter-egg feature for very specific needs)
  • Adjust alignment of icons in ACP
  • [Todo] Change "Announcement Link" setting functionality if it is used in conjuction with MyCode
  • [Todo] Fix "list" mycode functionality

I'm pushing changes to github and will be testing shortly. Although no major new features will be added, the window is still open for additional fixes or minor additions. Is there anything useful that anyone else can think of before pushing the 2.1 release?


RE: [MyBB Plugin] Board Announcements Manager (For 1.6 and 1.8) - tc4me - January 28th, 2021

Great, I'm looking forward to it :-) thank you Big Grin