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/17 19:16 By: piersol Status: CB Doc subscriber  
Karma: 2  
Senior Joomlapolitan

Posts: 67
graphgraph
OMG it DOES WORK!

Everyone, this is a MUST HAVE plugin for subscription websites. Having a "badge", "award", "icon" or whatever you want to call on the profile for paid members is very important to them feeling "special". But keeping up with adding and removing the award each time go from registered to premium is frustrating.

This plugin fixes this! I use CB1.2rc2 and Joomla 1.54.

I created the image award in Jawards. Since it is my first and only award, it was item 1. I installed this plugin, the most recent one uploaded.

I then left all settings alone except for the subscriber option at the bottom of the list.

I then opened the config.php file and inserted "1" into the id portion of the code as instructed.

I then increased the level of my demo user from registered to author. The award appeared in the tab. When i removed the user from author and made them registered, and logged in again (logging out and logging back in is required) the award and tab for the award was GONE! Perfect.

If you display the tab WITHOUT title as raw code, an option in the tab parameters, you will get the award appearing seemlessly into your members profiles wherever you want it to appear.

Best of Luck!
Click here to see the profile of this user The administrator has disabled public write access.

Re:Plugin - jAwards AutoReward
Date: 2008/10/17 19:53 By: krileon Status: CB Doc subscriber  
Karma: 38  
Platinum Joomlapolitan

Posts: 511
graphgraph
Glad we finally got it working for ya

Took a bit of trial and error but we got it figured out.
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/17 20:06 By: piersol Status: CB Doc subscriber  
Karma: 2  
Senior Joomlapolitan

Posts: 67
graphgraph
I made a small contributions on your website via paypal. Your worth much more than that and i hope i can contribute much more soon.

new issue...............

do you think you could create a plugin that shows ONLY a particular award by id if it's awarded?

I have other awards that i use from time to time. Currently using the jawards tab, all awards are displayed in one tab and doesnt let me separate the membership award separately.

Obviously your autoaward tab displays JUST the membership award and thats perfect, but the other tab for jawards ALSO shows that award and thats not pleasant for the profile.

What is your recommendation for how to achieve this?
Click here to see the profile of this user The administrator has disabled public write access.

Re:Plugin - jAwards AutoReward
Date: 2008/10/17 20:12 By: krileon Status: CB Doc subscriber  
Karma: 38  
Platinum Joomlapolitan

Posts: 511
graphgraph
Thanks for the contribution. Every penny helps so I'm grateful for anything.

Just need to alter the database query.

open autoawards.php

Locate:
Code:

      $query "SELECT *"             "\n FROM #__jawards_awards AS a"             "\n LEFT JOIN #__jawards_medals AS b ON b.id = a.award"             "\n WHERE a.userid="$user->id             "\n ORDER BY a.date desc";



Change it to:
Code:

      $query "SELECT *"             "\n FROM #__jawards_awards AS a"             "\n LEFT JOIN #__jawards_medals AS b ON b.id = a.award"             "\n WHERE a.userid="$user->id             "\n AND a.award=YOUR AWARDS ID HERE"             "\n ORDER BY a.date desc";



and that should do the trick.

Post edited by: krileon, at: 2008/10/17 20:14
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/18 21:13 By: piersol Status: CB Doc subscriber  
Karma: 2  
Senior Joomlapolitan

Posts: 67
graphgraph
im having an issue with using two of the same plugins and redeclaring issues. how would i create a totally second plugin that i can install that ONLY shows the specific award, without awarding or deleting etc.
Click here to see the profile of this user The administrator has disabled public write access.

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

Posts: 511
graphgraph
piersol wrote:
im having an issue with using two of the same plugins and redeclaring issues. how would i create a totally second plugin that i can install that ONLY shows the specific award, without awarding or deleting etc.

Don't fully understand your question. You want a plugin that ONLY shows the award? The standard jAwards plugin does that.

Mines not built for just showing the award. It's doable, but you'll have to delete basically half the code.

For mine to do this, delete the following lines of code:
Line 3
Lines 9-472

That should give you the desired effect.

Then apply the fix a couple of posts ago to show ONLY the award you want.

This really isn't necessary though. As you can move the tab anywhere you want, which will handle the display and add/remove of the specific award.

Try this. I threw it together in 5minutes so don't shoot me if it doesn't work.

The config file associated with it will allow you to define a specific award to show and only that award.
File Attachment:
File name: plug_ShowAwards_v1.zip
File size:2072 bytes


Post edited by: krileon, at: 2008/10/18 23:28
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 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