Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12389
Latest: GhostHunting
New This Month: 6
New This Week: 1
New Today: 1
Stats
Total Posts: 40330
Total Topics: 7100
Most Online Today: 83
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 77
Total: 77

Author Topic: CheckGroupExpire (activate every hour)  (Read 4883 times)

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
    • Homework Clinic - Your Academic Lifeline
CheckGroupExpire (activate every hour)
« on: July 27, 2016, 05:50:09 pm »
I think this function (CheckGroupExpire) gets activated once a day to remove people out of their membergroups.

How can I activate this function every hour?

I think using a cronjob will probably do, but how would I do it?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15159
    • View Profile
Re: CheckGroupExpire (activate every hour)
« Reply #1 on: July 28, 2016, 12:14:39 pm »
Might be easier to modify just Store.php file
Code: [Select]
// Check if any group memberships from products ordered have expired.
// Only really need to check this once a day
$nexttime =  time() +  1 * 24 * 60 * 60;
Change to
Code: [Select]
// Check if any group memberships from products ordered have expired.
// Only really need to check this once a day
$nexttime =  time() +  1 * 1 * 60 * 60;
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline shuban

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
    • Homework Clinic - Your Academic Lifeline
Re: CheckGroupExpire (activate every hour)
« Reply #2 on: July 28, 2016, 12:35:44 pm »
Thank you, but what's the point of 1 * 1 ?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15159
    • View Profile
Re: CheckGroupExpire (activate every hour)
« Reply #3 on: July 28, 2016, 12:40:37 pm »
Nothing really 1 was suppoed to be number of days 24 number of hours.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline shuban

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
    • Homework Clinic - Your Academic Lifeline
Re: CheckGroupExpire (activate every hour)
« Reply #4 on: July 28, 2016, 12:53:21 pm »
I thoughts so because mathematically it doesn't make a difference

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
6887 Views
Last post February 23, 2013, 12:25:22 pm
by SMFHacks
4 Replies
1012 Views
Last post August 23, 2017, 04:40:16 pm
by shuban

+- Recent Topics

prettyurls - TroubleShooting.wiki by SMFHacks
Today at 04:24:47 pm

Quality of images after import by SMFHacks
September 05, 2020, 10:21:44 am

How do I download gallery images? by CWVRV
August 30, 2020, 11:50:07 pm

Deleting Empty Galleries by SMFHacks
August 30, 2020, 11:43:32 am

PHP error by davejo
August 25, 2020, 07:35:13 am

Permissions to list ads and buy items by CWVRV
August 21, 2020, 05:19:45 pm

Doubt with download permissions. by Rock Lee
August 20, 2020, 08:23:24 pm

Attachment images Upsidedown or Sideways by SMFHacks
August 18, 2020, 05:41:07 pm

[Mod]Avatars Display Integration by Hatshepsut
August 17, 2020, 11:39:54 pm

Simple Portal Block - Classifieds by SMFHacks
August 16, 2020, 09:56:48 am

Powered by EzPortal