Sponsored Content
The Lounge What is on Your Mind? Future New Underground Membership Criteria Post 303028994 by Neo on Saturday 19th of January 2019 06:35:08 AM
Old 01-19-2019
OK... until we get some better ideas, the system will run this cron once a day:

Code:
<?php
$promote_ug = "update  user set usergroupid =13, usertitle='Forum Advisor', customtitle=1  where posts > 100 AND lastactivity > (UNIX_TIMESTAMP() - (3600*24*60)) and usergroupid = 2 and post_thanks_thanked_times > 25";

$status_up = $vbulletin->db->query_write($promote_ug); 

$demote_ug = "update user set usergroupid = 2, usertitle='Registered User', customtitle=1 WHERE lastactivity <  (UNIX_TIMESTAMP() - (3600*24*60)) and usergroupid = 13"; 

$status_down = $vbulletin->db->query_write($demote_ug);

Looking forward to some great ideas on changing this criteria or adding new badges / user groups.
 

3 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Membership

what is the meaning of the types of membership and when am i a full member:confused: :confused: :confused: (1 Reply)
Discussion started by: nigel
1 Replies

2. Solaris

Group membership limit

On Solaris, a user is limited to being a member of a maximum of 16 groups. Could someone tell me where this limit comes from, i.e. is it NIS, or Solaris, or NFS that is imposing this limit? What is the work-around to remove this limitation? (4 Replies)
Discussion started by: son_t
4 Replies

3. Post Here to Contact Site Administrators and Moderators

monthly membership??

Hi, Do we have monthly membership (VIP) in our forum? if not, do we have any plans for it? Regards, (1 Reply)
Discussion started by: clx
1 Replies
CALENDAR(1)						      General Commands Manual						       CALENDAR(1)

NAME
calendar - reminder service SYNOPSIS
calendar [-] [-r] OPTIONS
- Work for every user and send mail to him -r Restrict multiple execution on the same day EXAMPLES
calendar # Check calendar file in current directory calendar # Normary used under the control of cron(8) calendar -r # Normary used in /etc/rc file DESCRIPTION
Basically calendar program consults the file calendar in the current directory and display lines which contain today's or tomorrow's date. Month-day formats such as '12/25', 'Dec. 25', 'december 25', '*/25', '12/*', '*/*' are recognized. The asterisk means 'all' days or 'all' months. On weekends 'tomorrow' extends through next Monday without any consideration about holidays. To prevent ambiguity, the formats '25 Dec.' and '25/12' are not recognized. When an argument - is present, calendar works for all users with a file calendar in their login directories and sends them mail. Normally this is done daily under the control of cron. The -r option does its the same job as - option, but touches the calendar to prevents further access on the same day. Normally this is done in the /etc/rc file on a machine which may be booted several times in one day. SEE ALSO
cron(8). CALENDAR(1)
All times are GMT -4. The time now is 09:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy