Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>
Re:Plugin - jAwards AutoReward
Date: 2008/10/09 23:40 By: piersol Status: CB Doc subscriber  
Karma: 2  
Senior Joomlapolitan

Posts: 65
graphgraph
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?
Click here to see the profile of this user The administrator has disabled public write access.

Re:Plugin - jAwards AutoReward
Date: 2008/10/10 00:52 By: krileon Status: CB Doc subscriber  
Karma: 29  
Gold Joomlapolitan

Posts: 268
graphgraph
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
Click here to see the profile of this user The administrator has disabled public write access.

Re:Plugin - jAwards AutoReward
Date: 2008/10/11 21:24 By: krileon Status: CB Doc subscriber  
Karma: 29  
Gold Joomlapolitan

Posts: 268
graphgraph
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
Click here to see the profile of this user The administrator has disabled public write access.

Re:Plugin - jAwards AutoReward
Date: 2008/10/11 22:18 By: krileon Status: CB Doc subscriber  
Karma: 29  
Gold Joomlapolitan

Posts: 268
graphgraph
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.
File Attachment:
File name: plug_autoawards_v4.zip
File size:6084 bytes

AllMySocials
"Where social networks come together"
www.allmysocials.com
Click here to see the profile of this user The administrator has disabled public write access.

Re:Plugin - jAwards AutoReward
Date: 2008/10/13 22:41 By: piersol Status: CB Doc subscriber  
Karma: 2  
Senior Joomlapolitan

Posts: 65
graphgraph
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?
Click here to see the profile of this user The administrator has disabled public write access.

Re:Plugin - jAwards AutoReward
Date: 2008/10/14 02:57 By: krileon Status: CB Doc subscriber  
Karma: 29  
Gold Joomlapolitan

Posts: 268
graphgraph
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.
File Attachment:
File name: plug_autoawards_v5.zip
File size:6337 bytes


Post edited by: krileon, at: 2008/10/14 02:59
AllMySocials
"Where social networks come together"
www.allmysocials.com
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login