Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-07-2012, 09:33 PM
SteveLV702 SteveLV702 is offline
 
Join Date: Oct 2009
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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...
Reply With Quote
  #2  
Old 02-08-2012, 12:36 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 02-08-2012, 12:55 AM
SteveLV702 SteveLV702 is offline
 
Join Date: Oct 2009
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #4  
Old 02-08-2012, 04:24 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 02-08-2012, 02:25 PM
SteveLV702 SteveLV702 is offline
 
Join Date: Oct 2009
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery View Post
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...
Reply With Quote
  #6  
Old 02-08-2012, 02:46 PM
SteveLV702 SteveLV702 is offline
 
Join Date: Oct 2009
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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....
Attached Images
File Type: jpg 2012-02-08 at 07.43.44.jpg (33.4 KB, 0 views)
File Type: jpg 2012-02-08 at 07.43.47.jpg (42.0 KB, 0 views)
Reply With Quote
  #7  
Old 02-15-2012, 11:36 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think we've gone over this, but next step is to create a bug report
Reply With Quote
  #8  
Old 02-15-2012, 11:44 PM
SteveLV702 SteveLV702 is offline
 
Join Date: Oct 2009
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ya post is a little old did file bug report - http://tracker.vbulletin.com/browse/VBI-690
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:52 PM.


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.04287 seconds
  • Memory Usage 2,252KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (2)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete