*

Author Topic: [fixed] Not being added to group  (Read 12742 times)

Offline Daggers

  • Jr. Member
  • *
  • Posts: 15
[fixed] Not being added to group
« on: May 10, 2008, 11:01:34 PM »
Hi,

I have just had a member make a payment but they were not added to the member group which is set in the treasury.

During testing with the previous version of Treasury and SMF 1.1.4 this worked ok. I have since updated to the latest version of Treasury and SMF 1.1.5 and this is the first payment since the upgrade.

Is this a bug? or something wrong at my end?

Cheers
Daggers
« Last Edit: May 13, 2008, 01:35:06 PM by Resourcez »

Offline Resourcez

  • Administrator
  • Hero Member
  • *
  • Posts: 1425
    • Resourcez
Re: Not being added to group
« Reply #1 on: May 11, 2008, 09:30:48 PM »
Check "Add Anonymous to Groups" in Main Config - it is set to No by default.
If you have everything under control, you're not moving fast enough.
• Apache 2.2.24 • PHP 5.3.24 • MySQL 5.1.68 •

Offline Daggers

  • Jr. Member
  • *
  • Posts: 15
Re: Not being added to group
« Reply #2 on: May 11, 2008, 10:08:13 PM »
Check "Add Anonymous to Groups" in Main Config - it is set to No by default.

I had already changed that to Yes. In this instance the user had chose not to pay as anonymous


Offline Resourcez

  • Administrator
  • Hero Member
  • *
  • Posts: 1425
    • Resourcez
Re: [solved] Not being added to group
« Reply #3 on: May 11, 2008, 10:58:21 PM »
Logically, if they choose to donate anonymously, they should remain anonymous in all respects, which includes not being added to a group.  That is why I set the default as No.

If you decide you want them added to a group, set it to Yes and it will, whether the user says yes or no, and provided the group exists.  Look at your log - the whole point of the log is to tell you what happened.
If you have everything under control, you're not moving fast enough.
• Apache 2.2.24 • PHP 5.3.24 • MySQL 5.1.68 •

Offline Daggers

  • Jr. Member
  • *
  • Posts: 15
Re: [solved] Not being added to group
« Reply #4 on: May 12, 2008, 02:36:15 AM »
Hmmm..... I will keep an eye on this for the next one


Offline Resourcez

  • Administrator
  • Hero Member
  • *
  • Posts: 1425
    • Resourcez
Re: [solved] Not being added to group
« Reply #5 on: May 12, 2008, 02:42:09 AM »
You should already have a log of the last transaction telling you what Treasury did for that transaction regarding groups.
If you have everything under control, you're not moving fast enough.
• Apache 2.2.24 • PHP 5.3.24 • MySQL 5.1.68 •

Offline Daggers

  • Jr. Member
  • *
  • Posts: 15
Re: [solved] Not being added to group
« Reply #6 on: May 12, 2008, 07:11:13 AM »
Quote
Sassy is already a Donor group member - added to Group until 10-06-2008 01:54:16

Thing is, I had taken her out of this group while awaiting payment.

Offline Resourcez

  • Administrator
  • Hero Member
  • *
  • Posts: 1425
    • Resourcez
Re: [solved] Not being added to group
« Reply #7 on: May 12, 2008, 08:31:10 AM »
You may have thought you did - obviously not at the time of payment.

Treasury directly checks the database for the presence of your nominated supporters group 'x' in Sassy's member details - clearly it found group 'x' already present in the "additionalGroups" field, so did not add Sassy again.  Result is that Sassy remains a member of that group 'x'.

If you have everything under control, you're not moving fast enough.
• Apache 2.2.24 • PHP 5.3.24 • MySQL 5.1.68 •

Offline Daggers

  • Jr. Member
  • *
  • Posts: 15
Re: [solved] Not being added to group
« Reply #8 on: May 12, 2008, 04:20:15 PM »
I'm sure I did .... 99.9%  :-\ because it wasnt that long ago when I did it.

Does it put the tick in the box within 'additional groups' ?

If it does then it definately wasnt there after the payment. I had to manually tick it

It it doesnt put the tick in the box then that may be where the problem lies

Offline Resourcez

  • Administrator
  • Hero Member
  • *
  • Posts: 1425
    • Resourcez
Re: [solved] Not being added to group
« Reply #9 on: May 12, 2008, 04:27:14 PM »
I don't know what "tick in the box" you mean  :-\
If you have everything under control, you're not moving fast enough.
• Apache 2.2.24 • PHP 5.3.24 • MySQL 5.1.68 •

Offline Daggers

  • Jr. Member
  • *
  • Posts: 15
Re: [solved] Not being added to group
« Reply #10 on: May 12, 2008, 05:36:09 PM »
In the users Profile..

Account Related Settings

This is where you assign their Primary Membergroup underneath that is the Additional Groups.

The idea being, you assign somebody to a Primary membergroup which doesnt allow payment and as such they have limited access to the forums. Once they make a payment they are granted access to the specific group and a tick should appear against that group within the 'Additional Groups' option. When their payment expires the tick is taken away and also their permissions to that group.

I thought the previous version did this? I will have to go back and do some testing  :)

Just in case you mention it ..... I have tried the Subscription mod and had nothing but trouble with it   :(

Your mod is much much better  :D


Offline Resourcez

  • Administrator
  • Hero Member
  • *
  • Posts: 1425
    • Resourcez
Re: [solved] Not being added to group
« Reply #11 on: May 12, 2008, 06:30:33 PM »
That area is one of several where you can manually change group membership.

They all do the same thing - append an entry to the additionalGroups field in the members table.  Treasury looks at that field for the specified supporter group and, if present, notes and logs that - if not present, and other conditions are met (group exists, use group), then it will add to that field and also log that.  Treasury simply cannot find a value that is not there.

The user must have had that supporter group present for it to record that in the log, or I am missing some serious logic issue.  The previous version worked the same - the only difference is that admin now has an option to suppress supporter group membership if the donor specifically requests anonymity.

Subscriptions is actually a very good mod and I can understand why there are some issues.  Treasury will eventually provide for recurring donations which will cover the subscriptions aspect, but I do expect that will introduce similar issues because PayPal subscriptions do operate differently.
If you have everything under control, you're not moving fast enough.
• Apache 2.2.24 • PHP 5.3.24 • MySQL 5.1.68 •

Offline Daggers

  • Jr. Member
  • *
  • Posts: 15
Re: [solved] Not being added to group
« Reply #12 on: May 13, 2008, 04:55:43 AM »
I like the principle of the Subscriptions mod and it was definately what I needed but unfortunately it did not work for me. Some users had no problems with it under 1.1.4 and I had no problems installing and testing but when it came to running it live I came across a number of problems.

I realise it will be included with SMF 2 but I wont put the beta version on a live database at the moment.

To be honest, the Treasury mod certainly meets my needs so I see no reason to change it  :D

Offline Resourcez

  • Administrator
  • Hero Member
  • *
  • Posts: 1425
    • Resourcez
Re: [solved] Not being added to group
« Reply #13 on: May 13, 2008, 01:34:34 PM »
Oh well, egg on my face again  :oops

I have introduced a problem with v2.10 and you are quite correct - my apologies.  I shall release v2.11 shortly to correct the groups problem.

It's no excuse, but we maintain versions for different CMSs and it often leads to some inconsistencies, especially since they have different db abstraction layers.
If you have everything under control, you're not moving fast enough.
• Apache 2.2.24 • PHP 5.3.24 • MySQL 5.1.68 •

Offline Daggers

  • Jr. Member
  • *
  • Posts: 15
Re: [fixed] Not being added to group
« Reply #14 on: May 13, 2008, 03:51:35 PM »
Quote
my apologies

Accepted  :)

You are doing a great job mate and I know I cant do what you do  :clap

 

Please Support Us!

Something for Here
Donate with PayPal!
October Goal: $30.00
Due Date: Oct 31
Total Receipts: $0.00
Below Goal: $30.00
Site Currency: USD
 0%

Content