View Full Version : Disable Registration - Mobile API Only
SteveLV702
02-07-2012, 09:33 PM
I have vBulletin Mobile Suite that I submitted to Apple App Store but was declined because I charge for Classes and so only way to get approved is to remove the "Create Account" when I contacted vBulletin they directed me here to get a hack to disable the registration for Mobile API only...
They say with Registration Disabled for Mobile API the button/link for Create Account should disappear so then can get app approved... Cause thats all Apple wants is for it to be gone...
Zachery
02-08-2012, 12:36 AM
You can check if you're in the api with
if (VB_API) {
plugin code here...
}
The only downside is I'm not sure how you'd also check to see if the user is using an apple product specificly. I think all of that stuff gets taken care of in the includes/api/1/api_ini.php file.
SteveLV702
02-08-2012, 12:55 AM
well point in time don't care if it also disables it on Android & Blackberry too..... as either way will have to come to site anyway to make purchase........
okay what code do I plugin there ? :)
Zachery
02-08-2012, 04:24 AM
You need to set the vbulletin register varible to 0 I think.
So
if(VB_API)
{
$vbulletin->options['allowregistration'] = "0";
}
Toss that in init_ something or other.
SteveLV702
02-08-2012, 02:25 PM
You need to set the vbulletin register varible to 0 I think.
So
if(VB_API)
{
$vbulletin->options['allowregistration'] = "0";
}
Toss that in init_ something or other.
okay to confirm what file this going into make sure doing right...
SteveLV702
02-08-2012, 02:46 PM
okay did it and Create An Account button is still there now when click it loads the signup form but gives a popup that registrations are disabled.....
for Apple to Approve the App the "Create An Account" button itself needs to be gone....
Zachery
02-15-2012, 11:36 PM
I think we've gone over this, but next step is to create a bug report :)
SteveLV702
02-15-2012, 11:44 PM
ya post is a little old :) did file bug report - http://tracker.vbulletin.com/browse/VBI-690
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.