Author Topic: Profile Skipped Approval  (Read 1345 times)

maverick

  • Administrator
  • Veteran Member
  • *****
  • Posts: 3120
  • Karma: +210/-7
    • Maverick Webworks
Re: Profile Skipped Approval
« Reply #15 on: August 19, 2018, 04:06:14 PM »
It might work, you'll have to test it to see if it does or not.

You're query code may need to be done like the following as there's technically 2 separate queries (1 that inputs the user and another that inputs the profile status):
Code: [Select]
if ($input['page']==1) {
$query.=",`_user`='".$input['user']."'";
if (get_site_option('manual_profile_approval','core')==1) {
$query.=",`status`=".STAT_APPROVED;
}
}

You can try your code change and then try what I provided to see if either one of them works.

Fusion Responsive Template & Free Mods
http://www.maverickwebworks.com
DO NOT PM me asking for personal help. Post your problem or request in the forums so the entire community can contribute and benefit.

pourkoipas78

  • Prime Member
  • ****
  • Posts: 121
  • Karma: +1/-0
Re: Profile Skipped Approval
« Reply #16 on: August 19, 2018, 04:29:59 PM »
I put that and it seems to work
Code: [Select]
if ($input['page']==1) {
$query.=",`_user`='".$input['user']."'";
$query.=",`status`=".STAT_APPROVED;
}

Thank you  ;)