vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Disable Registration - Mobile API Only (https://vborg.vbsupport.ru/showthread.php?t=278217)

SteveLV702 02-07-2012 09:33 PM

Disable Registration - Mobile API Only
 
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

Code:

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

PHP Code:

if(VB_API
{
$vbulletin->options['allowregistration'] = "0";


Toss that in init_ something or other.

SteveLV702 02-08-2012 02:25 PM

Quote:

Originally Posted by Zachery (Post 2297407)
You need to set the vbulletin register varible to 0 I think.


So

PHP Code:

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

1 Attachment(s)
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


All times are GMT. The time now is 03:57 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01379 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete