Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
sql invite
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2021-08-07 13:32:46
I am looking for the sql query to send 2 invitations to all members on the server, thanks in advance
2021-08-07 15:50:46
How would you like it to operate

As one off sql or every month with max number or on sign up etc

Luckily invites should be in $CURUSER

2021-08-07 16:04:31
thank you M-jay for your help i found this to update the members  :thumb

UPDATE `users` SET `invites` = '2' 
Last edited by niki on 2021-08-07 16:04:52
2021-08-07 18:11:15
WHERE enabled = β€˜yes’ AND email != β€˜β€™

Checks if user is enabled, and checks if email is blank or not.
2021-08-07 18:34:41
be mindful that will change all invites to 2

so to change members with no invites
UPDATE `users` SET `invites` = '2' WHERE `invites` = `0`;

You can change invite column to default 2 so any new member starts with 2
Last edited by M-jay warn on 2021-08-07 18:35:01
2021-08-08 13:30:27
thank M-jay  :grin
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 8
  • Members: 0
  • Guests online: 8
  • Comments: 3
  • Messages: 1,728