Announcement

Collapse
No announcement yet.

How can i check "joindate" ? (i need a query which member registered in last 3 month)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How can i check "joindate" ? (i need a query which member registered in last 3 month)

    I have a query ;

    if (!in_array($vbulletin->userinfo['usergroupid'], array(2,5,6,7,14,16,18,20,21)) OR $vbulletin->userinfo['credits']<1000)
    print_no_permission();

    Now i want add one line more like this
    $vbulletin->userinfo['joindate'] xxxxxxxxxxxxxxx

    I want run this script for which member registered 3 month ago.

    if member registered is last 1,2 or month then print no permission

    I need only query like this
    $vbulletin->userinfo['joindate']<1003002 xxxx

    thanks

  • #2
    This expression should do it:

    Code:
    $vbulletin->userinfo['joindate'] < TIMENOW - (86400 * [color=red]90[/color])
    That will be true for all logged in users who registered at least 90 days ago.

    If you need further help with custom code then I recommend you post on www.vbulletin.org

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X