|
|
|
Re:Plugin - jAwards AutoReward
|
|
Date: 2008/10/09 23:40
|
By: piersol
|
Status:
|
|
|
Karma: 2  
|
|
Senior Joomlapolitan  | Posts: 65 |   | |
|
I added the new code. No change. It didnt hurt, but it didnt help either. Even when the user logs in after the change, nothing instigates the award to be added to the user.
did the module and plugin i attached help you at all since they were for 1.5?
|
|
The administrator has disabled public write access. |
|
|
|
Re:Plugin - jAwards AutoReward
|
|
Date: 2008/10/10 00:52
|
By: krileon
|
Status:
|
|
|
Karma: 29  
|
|
Gold Joomlapolitan  | Posts: 268 |   | |
|
Nope, I don't see anything in my plugin that would prevent it from working and I don't see anything in the modules provided that'd help it.
I modified it based on examples I saw, but as you discovered there was no change.
The next course of action is bypassing the param and forcing it to set to the right user type.
First lets try: Method 1 Change:
| Code: |
$mods = (strtolower($user->usertype) == ''.$params->get('modsgroup','').'');
|
To:
| Code: |
$mods = (strtolower($user->usertype) == $params->get('modsgroup',''));
|
If that doesn't work then use:
Method 2
| Code: |
$mods = (strtolower($user->usertype) == 'author');
|
and change:
| Code: |
if ($mods && $params->get('modsgroup','')!="" && $params->get('mods','0') == 0) {
|
to
| Code: |
if ($mods && $params->get('mods','0') == 0) {
|
If neither of those work then I have no clue. Must be a 1.5 thing. I still use 1.0 as most components, modules, and plugins don't work worth a garbage in 1.5 and 1.5 is a snail compared to 1.0. AllMySocials "Where social networks come together" www.allmysocials.com
|
|
The administrator has disabled public write access. |
|
|
|
Re:Plugin - jAwards AutoReward
|
|
Date: 2008/10/11 21:24
|
By: krileon
|
Status:
|
|
|
Karma: 29  
|
|
Gold Joomlapolitan  | Posts: 268 |   | |
|
Ok, I've found an error after launching my site.
The params list is far too large and causing a session time out error. I have isolated and confirmed it is because there are too many params.
So what I'm now doing is converting the params into a config file. Yes this takes a little manual work as you need to navigate to the plugins folder and edit the param file, BUT it will operate much quicker as it does not need to check the database for the params values.
You will be able to enable/disable from the plugin params though, but as far as plugging in your award IDs, etc.. you'll have to do it from the params file.
I don't know how long this will take, but it should be completed today. A lot of replacement work. AllMySocials "Where social networks come together" www.allmysocials.com
|
|
The administrator has disabled public write access. |
|
|
|
Re:Plugin - jAwards AutoReward
|
|
Date: 2008/10/11 22:18
|
By: krileon
|
Status:
|
|
|
Karma: 29  
|
|
Gold Joomlapolitan  | Posts: 268 |   | |
|
New version is now complete.
It now uses a config file to gain information about the awards. This is to prevent a ton of extra queries to obtain the params and to avoid the session time out bug due to having too many params.
If you already have yours working and having no problems then you do not have to upgrade, but I recommend it for the reduction in queries.
Also, if you do decide to upgrade you'll have to reconfig in all your award IDs. I went ahead and put in default data for all awards to make it easier on you.
If you find any bugs then let me know. AllMySocials "Where social networks come together" www.allmysocials.com
|
|
The administrator has disabled public write access. |
|
|
|
|
Re:Plugin - jAwards AutoReward
|
|
Date: 2008/10/13 22:41
|
By: piersol
|
Status:
|
|
|
Karma: 2  
|
|
Senior Joomlapolitan  | Posts: 65 |   | |
|
i get an error that says plugin version different from cb version. i am using 1.2, which i used for the other plugins you made including version 3.
any ideas?
|
|
The administrator has disabled public write access. |
|
|
|
Re:Plugin - jAwards AutoReward
|
|
Date: 2008/10/14 02:57
|
By: krileon
|
Status:
|
|
|
Karma: 29  
|
|
Gold Joomlapolitan  | Posts: 268 |   | |
|
Not a clue, but here's version 5.
I've debugged the entire plugin and will produce absolutely no errors with maximum error report and debug mode on.
Like all my plugins this is tested, confirmed, and stable for Joomla 1.0.x ONLY. Use on Joomla 1.5.x at your own risk. I will NOT repair it for 1.5 as I do not use or plan to use 1.5 nor do I have a 1.5 installation to test it on NOR do I have the time. My apologize for this, but it is open source and anyone is welcome to edit as they see fit.
Post edited by: krileon, at: 2008/10/14 02:59 AllMySocials "Where social networks come together" www.allmysocials.com
|
|
The administrator has disabled public write access. |
|
|