Jump to content

  • twitter
  • youtube
  • googleplus
  • facebook
  • rss
  • newsletter


Donation Tracker


  • Please log in to reply
4 replies to this topic

#1 Tecca

Tecca

    Newbie

  • Members
  • Pip
  • 6 posts
  • IP.Board Version:IPB 2.3.x
  • First Name:Bryan

Posted 20 May 2010 - 04:07 PM

Hello,

The donation tracker is exactly what I'm looking for, however, I have one question:

I currently have 40 users that are in a "donator" kind of group. I want to be able to demote them in 1 year starting from a set date (the day I install this mod). Is this possible, without them having to donate again? This is the most important aspect at the moment for me.

#2 Michael

Michael

    Management

  • Management
  • 3,135 posts
  • Gender:Male
  • Location:Australia
  • IP.Board Version:IPB 3.1.x
  • First Name:Michael
Donator

Posted 21 May 2010 - 03:26 AM

View PostTecca, on 20 May 2010 - 04:07 PM, said:

Hello,

The donation tracker is exactly what I'm looking for, however, I have one question:

I currently have 40 users that are in a "donator" kind of group. I want to be able to demote them in 1 year starting from a set date (the day I install this mod). Is this possible, without them having to donate again? This is the most important aspect at the moment for me.

The donation tracker does have an auto demote function but this can't be applied retrospectively to your current donators. The donations need to be made through the donation tracker because that's when it sets up the auto demote database. The only to get around this would be to manually add your current donators into the auto demote database via the SQL Toolbox. I can provide an example sql query if you need it.

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#3 Tecca

Tecca

    Newbie

  • Members
  • Pip
  • 6 posts
  • IP.Board Version:IPB 2.3.x
  • First Name:Bryan

Posted 21 May 2010 - 05:37 AM

If you could, that would be great and I could make this purchase.

#4 Michael

Michael

    Management

  • Management
  • 3,135 posts
  • Gender:Male
  • Location:Australia
  • IP.Board Version:IPB 3.1.x
  • First Name:Michael
Donator

Posted 22 May 2010 - 02:42 AM

View PostTecca, on 21 May 2010 - 05:37 AM, said:

If you could, that would be great and I could make this purchase.

You'll need to insert each member into the database.

INSERT INTO ibf_donate_demote VALUES (NULL, '#1', '#2', '#3', '#4', '#5', UNIX_TIMESTAMP(), UNIX_TIMESTAMP()+31536000);

#1 = Member Id
#2 = Members Name
#3 = Previous Group
#4 = Current Group
#5 = Group they'll be demoted to.

Here is an example if my account was in the admin group but I wanted to demote it back to the members in group at the current time + 1 year.

INSERT INTO ibf_donate_demote VALUES (NULL, '1', 'Michael', '3', '4', '3', UNIX_TIMESTAMP(), UNIX_TIMESTAMP()+31536000);

UNIX_TIMESTAMP() is basically the exact date this second that you run the query and the second instance UNIX_TIMESTAMP()+31536000 is the exact date this second plus 1 year.

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#5 Tecca

Tecca

    Newbie

  • Members
  • Pip
  • 6 posts
  • IP.Board Version:IPB 2.3.x
  • First Name:Bryan

Posted 22 May 2010 - 05:50 AM

Awesome, thank you. Expect a purchase within the next few days. =)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users