Thread Rating:
  • 14 Vote(s) - 4.07 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] OUGC Awards
Yes, that issue has already been reported and a response already provided.
Reply
Hi, as I have already stated before, OUGC Awards 1.8.20 will be released along MyBB 1.8.20. As the upcoming MyBB release is closer every day, I have prepared the updates OUGC Awards will bring next release.

If you want to test the upcoming release to find any issues before the official release, please download the package from the following link:
https://github.com/Sama34/OUGC-Awards/ar...evelop.zip

This package doesn't update the plugin version yet. A full list of changes can be found in the milestone.
Reply
Hey there!

First of all, thank you for all the hard work on this plugin. I recently downloaded it and have been playing around with it for a bit, now I'm stumbling across my first problem or rather request.
I want to add an automated award that is based on a specific number of posts in a specific group of forums. I know that the "Forum Post Count" requirement already exists but I was wondering if it's possible to have the option of selecting multiple forums to be counted for that requirement instead of just selecting one. So kind of like the User Group requirement, I would like to be able to select various forums instead of a dropdown that allows me to select only one. The reason for that is that the forums I want to be counted for this requirement, are not in the same category... Do you think that is possible to do somehow?

Thanks for even considering it!
Reply
The only current way to do this would be to use something like RateU's Forum Promotions to promote an user to a new group once they reach certain amount of posts in a set of specific forums. Then, you can add an custom award to be granted only once when their are part of a such group.

It is probable than a similar trick could be achieved to remove the award if they leave the group likewise.

But with the plugin core as is it is not currently possible to do. It could be added with no major issues but it is not a planned feature. Though I admit it would be a nice addition to the awards task system.
Reply
Thank you for the tip with the Forum Promotions plugin! I used that solution now and it seems to work.
Reply
Omar G, in next version, if you can add into the add awards action awards file selecting upload file button. Right now you need upload files with FTP.
Reply
(02-15-2019, 05:46 PM)ks1001 Wrote: Omar G, in next version, if you can add into the add awards action awards file selecting upload file button. Right now you need upload files with FTP.

It is a planned feature since long ago but to be honest it is not a critical necessity when compared to other things I could add instead.
Reply
Hi there!

Thanks for that awesome plugin Big Grin
I recently updated to the latest version and now there are an issue:

I get a warning at the top of the board:

<img src="https://www.bildhost.com/images/2019/02/19/error_mybb.jpg" width="98%">

The code of the inc/functions.php is:

Line ~395
// Using ADOdb?
        if($adodb == true && !function_exists('adodb_date'))
        {
                $adodb = false;
        }

        $todaysdate = $yesterdaysdate = '';
        if($ty && ($format == $mybb->settings['dateformat'] || $format == 'relative' || $format == 'normal'))
        {
                $_stamp = TIME_NOW;
                if($adodb == true)
                {
                        $date = adodb_date($mybb->settings['dateformat'], $stamp + ($offset * 3600));
                        $todaysdate = adodb_date($mybb->settings['dateformat'], $_stamp + ($offset * 3600));
                        $yesterdaysdate = adodb_date($mybb->settings['dateformat'], ($_stamp - 86400) + ($offset * 3600));
                }
                else
                {
                        $date = gmdate($mybb->settings['dateformat'], $stamp + ($offset * 3600));
                        $todaysdate = gmdate($mybb->settings['dateformat'], $_stamp + ($offset * 3600));
                        $yesterdaysdate = gmdate($mybb->settings['dateformat'], ($_stamp - 86400) + ($offset * 3600));
                }
        }


and Line ~539
 else
                {
                        if($adodb == true)
                        {
                                $date = adodb_date($format, $stamp + ($offset * 3600));
                        }
                        else
                        {
                                $date = gmdate($format, $stamp + ($offset * 3600));
                        }
                }
        }

I think it's about the date connection between php and javascript, but my knowledge there is far too basic to do anything Undecided
php Version of my webspace is 7.1


I hope you can help me there :-)

Best regards!
Reply
I'm not sure why it is giving that error but for next version I will simply cast the values before passing. It shouldn't cause any major issues for you.Thanks.

Meanwhile, if you want to fix the issue for your forum find and replace the following code:
$award['date'] = $lang->sprintf($lang->ougc_awards_profile_tine, my_date($mybb->settings['dateformat'], $award['date']), my_date($mybb->settings['timeformat'], $award['date']));

With:
$award['date'] = $lang->sprintf($lang->ougc_awards_profile_tine, my_date($mybb->settings['dateformat'], (int)$award['date']), my_date($mybb->settings['timeformat'], (int)$award['date']));
Reply
Thanks for your help :-)

I changed the code in the inc/plugins/oucg_awards.php. Unfortunately, the error code is still there and it's still exactly the same.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)