MyBB-Plugins Forums
NewPoints 1.9.9 - Printable Version

+- MyBB-Plugins Forums (http://forums.mybb-plugins.com)
+-- Forum: Archived Forums (http://forums.mybb-plugins.com/Forum-Archived-Forums)
+--- Forum: MyBB 1.6.x (http://forums.mybb-plugins.com/Forum-MyBB-1-6-x)
+---- Forum: NewPoints (http://forums.mybb-plugins.com/Forum-NewPoints)
+---- Thread: NewPoints 1.9.9 (/Thread-NewPoints-1-9-9)



RE: NewPoints 1.9.4 - Omar G. - 07-04-2012

Here:
PHP Code:
            if(!newpoints_iscompatible($plugininfo['compatibility']))
            {
                
$compatibility_warning "<span style=\"color: red;\">".$lang->sprintf($lang->plugin_incompatibleNEWPOINTS_VERSION)."</span>";
            } 

Note that $plugininfo['compatibility'] is not a array.

Here:
PHP Code:
function newpoints_iscompatible($plugininfo)
{
    
// No compatibility set or compatibility = * - assume compatible
    
if(!$plugininfo['compatibility'] || $plugininfo['compatibility'] == "*")
    {
        return 
true;
    }
    
$compatibility explode(","$plugininfo['compatibility']);
    [...]


The argument "$plugininfo" is not a array but you are threating it as such in $plugininfo['compatibility'].

I suppose this only affects some host environments, since the warning didn't appeared in my live forum before.


RE: NewPoints 1.9.4 - Diogo Parrinha - 07-04-2012

By looking at that, what comes to mind is that:
if(!newpoints_iscompatible($plugininfo['compatibility']))

should be:
if(!newpoints_iscompatible($plugininfo))


RE: NewPoints 1.9.4 - Omar G. - 07-04-2012

That or modifying the function (to not pass all the array data), you have the last word.


RE: NewPoints 1.9.4 - Amager Government - 07-12-2012

Hello. I am experiencing an issue.

The point system installed, but the tab does not show on my forum, neither does it show on my admin panel.

When I try to uninstall, it says the following:
MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1091 - Can't DROP 'newpoints'; check that column/key exists
Query:
ALTER TABLE `mybb_users` DROP `newpoints`;

Help please.


RE: NewPoints 1.9.4 - Diogo Parrinha - 07-13-2012

Did you get any errors when INSTALLING? Because that column should exist you installed it correctly really.


RE: NewPoints 1.9.4 - Amager Government - 07-13-2012

When installing my forum, no, no error. When installing the plug in, I had no errors.


RE: NewPoints 1.9.4 - Diogo Parrinha - 07-13-2012

Please try the attached file. Just re-upload all files.


RE: NewPoints 1.9.4 - Omar G. - 07-19-2012

Since you are working on v1.9.5, had you think about caching the settings? I have a working code, so if you want me to share for it just tell me (no want any credit at all).

One thing I didn't was to cache the groups rules, seem more difficult (considering plugins make use of it). Had you think about that possibility too? I can get something that works if you have no time for this.


RE: NewPoints 1.9.4 - Diogo Parrinha - 07-19-2012

Thanks for the suggestions, I'll be working on that now.
Do you remember of any issues on 1.9.4?


RE: NewPoints 1.9.4 - Omar G. - 07-19-2012

Just the " (double quote) in prefix being (somehow) escaped. I have not found the time to check what you asked for (since my board was deleted and I need to set it on local host with my backups to test it).

I managed to cache the group/forum rules now, but it sure requires a considerable amount of edits, glad you will work on it.