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/05 23:15 By: krileon Status: CB Doc subscriber  
Karma: 38  
Platinum Joomlapolitan

Posts: 511
graphgraph
piersol wrote:
Thanks. i did originally use author instead of Author. And i did also try Special, just in case.

I want to clarify again, the plugin is working in that id displays those who are already awarded awards manually. Its just the autoaward aspect that is the issue.

i appreciate your efforts on this very much!


I believe I may have found a fix, but I can't be for certain.

Go to:
Code:

  \components\com_comprofiler\plugin\user\plug_autoawards


Open cb.autoawardstab.php

Locate line: 22
Code:

  global $database$_CB_framework;



Change it to:
Code:

  global $database$_CB_framework$user;



This MIGHT remedy the issue, but I can't be for certain as I still use 1.0 and not 1.5 so I really have no idea how well it'll function in 1.5 if at all.

I've got 1 other solution in mind, but give this a whirl first and let me know how it goes.

sunnyjey wrote:
This is absolutely fantastic plugin for which I was waiting for so long.

Thank you making it available for community.

Is it possible to award if certain user is a member of certain Group of GroupJive? I really need this extended functionality.

Thanks, yes it's possible to add that for groupjive. You can add it manually by inspecting the plugin. All you need to do is setup the query, which is fairly easy to do.

I can probably get that put together for you here shortly.

Post edited by: krileon, at: 2008/10/05 23:18
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/05 23:26 By: sunnyjey Status: CB Doc subscriber  
Karma: 4  
Senior Joomlapolitan

Posts: 52
graphgraph
Thank you Piersol for an instant prompt reply.

Frankly speaking I am not that good in sql and database. Secondly I afraid if i do some tweaking from my side it might result in some errors in database.

I would rather prefer to wait for this additional functionality from you.
Click here to see the profile of this user The administrator has disabled public write access.

Re:Plugin - jAwards AutoReward
Date: 2008/10/05 23:33 By: krileon Status: CB Doc subscriber  
Karma: 38  
Platinum Joomlapolitan

Posts: 511
graphgraph
sunnyjey wrote:
Thank you Krileon for an instant prompt reply.

Frankly speaking I am not that good in sql and database. Secondly I afraid if i do some tweaking from my side it might result in some errors in database.

I would rather prefer to wait for this additional functionality from you.


Ya put the wrong name so I fixed it for ya, lol.

Anyway it's done. You'll just need to manually add it. Follow the instructions I'm about to provide and you'll have it going in no time.

Navigate to:
Code:

  \components\com_comprofiler\plugin\user\plug_autoawards



Open:
cb.autoawardstab.php

Locate Line: 408
After } press enter to create a blank line
Paste in:
Code:

          //Groupjive Group         if ($params->get('groupjivegroup','0') == 0) {             $query 'SELECT id_group FROM #__gj_users WHERE id_user = '.$user->id.' AND name = '.$params->get('gjgroup','').' AND status = "active"';             $database->setQuery($query);             $gjgUserDetails=$database->loadResultArray();             $isBelong=count($gjgUserDetails);             if ($isBelong>=1) {                     $gjggive $params->get('gjg1id',''); $gjgreason $params->get('gjg1reason','');                     $query "SELECT userid,award FROM #__jawards_awards WHERE award='".$gjggive."' AND userid=".$user->id;                     $database->setQuery($query);                     $check=$database->loadObjectList();                         if (count($check)==0) {                             getAutoAwardsTab::AddAwards(                                 $user->id                                 ,$gjggive                                 ,$gjgreason                             );                         }             }         }



Save & Close

Open:
cb.autoawardstab.xml

Locate line: 247
After /> press enter to create a blank line
Paste in:
Code:

              <param name="@spacer" type="spacer" default="" label="" description="" />         <param name="groupjivegroup" type="radio" default='1' label="Groupjive Group" description="Grants users awards for joining a specific group.">              <option value='0'>On</option>              <option value='1'>Off</option>         </param>                 <param name="gjg1id" type="text" size="5" default="" label="ID 1" description="" />             <param name="gjg1reason" type="text" size="50" default="" label="Reason" description="" />             <param name="gjgroup" type="text" size="20" default="" label="Group" description="Name of group the user must join for award. MUST BE EXACT!" />



Now visit your plugins settings and it should be there.

Post edited by: krileon, at: 2008/10/05 23:34
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/06 00:29 By: sunnyjey Status: CB Doc subscriber  
Karma: 4  
Senior Joomlapolitan

Posts: 52
graphgraph
Sorry for the name mistake!

Krileon, I have tried (twice thats why took so much time to reply) exactly what you mentioned in previous post. But getting following error whn i open autoaward plugin-

Parse error: syntax error, unexpected T_IF, expecting T_FUNCTION in domain/public_html/components/com_comprofiler/plugin/user/plug_autoawards/cb.autoawardstab.php on line 408

Somewher I am going wrong. Krileon, can you upload updated plugin here so that others will also get benefited with.

Post edited by: sunnyjey, at: 2008/10/06 00:29
Click here to see the profile of this user The administrator has disabled public write access.

Re:Plugin - jAwards AutoReward
Date: 2008/10/06 02:29 By: krileon Status: CB Doc subscriber  
Karma: 38  
Platinum Joomlapolitan

Posts: 511
graphgraph
sunnyjey wrote:
Sorry for the name mistake!

Krileon, I have tried (twice thats why took so much time to reply) exactly what you mentioned in previous post. But getting following error whn i open autoaward plugin-

Parse error: syntax error, unexpected T_IF, expecting T_FUNCTION in domain/public_html/components/com_comprofiler/plugin/user/plug_autoawards/cb.autoawardstab.php on line 408

Somewher I am going wrong. Krileon, can you upload updated plugin here so that others will also get benefited with.<br><br>Post edited by: sunnyjey, at: 2008/10/06 00:29


Here you go.

You do not have to reinstall either. You can simply unpack the files and replace your current plugin with the updated one. You'll then see the new fields as well as enable/disable capability for Groupjive Group. You'll find this under the Groupjive awards.

I've added other updates to the plugin as well so be sure to check them out.

The changes I've also made are: You can now select to enable/disable just posts or just karma or both for fireboard. You can now also enable/disable just mods or just admins or both awards.

The groupjive group award is only designed to grant an award for ONE group. Hopefully ya pick wisely as I do not plan to add multiple groups.

Enjoy. I've tested and debugged. All works as it should.
File Attachment:
File name: plug_autoawards_v3.zip
File size:5690 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/06 16:33 By: piersol Status: CB Doc subscriber  
Karma: 2  
Senior Joomlapolitan

Posts: 67
graphgraph
i updated to the V3. I also changed
Code:

 global $database$_CB_framework$user;



on line 22 as you recommended.

With cid of 1 and group level of Author, it still does not award awards in 1.54.

You mentioned one other idea to try, can we give that one a shot?
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 RC4)

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 RC4, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers and now also to all registered joomlapolitans.

CB Login