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 08-22-2013, 01:20 PM
alexNL alexNL is offline
 
Join Date: Aug 2013
Location: Amsterdam
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default This forum has an app available

I am not sure if this is the correct forum or not but seems like the only place to ask this.

We run vB 4.2.1 and have the mobile suite (from vB) running with (for now) the Android App. I wondered if it would be possible to notify users who visit the site from an Android device (which defaults to the mobile skin) about the Android App.

I know I have seen this kind of functionality, I checked with vB but learned it is not part of the suite/theme. Anyone any idea if this is possible?
Reply With Quote
  #2  
Old 08-23-2013, 06:56 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I understand you correctly, you want to detect if the person is using an android device and display some kind of a notification that you have an APP available.

You would need to modify the detection software for the mobile style or add an additional detection routine just for the 'android' devices that vb's mobile APP runs with.

Look at "/includes/init.php" approximately line 560.

One of the things I do is after detection, I do some additional detection, and then store the device information in the users account. If you did something like this you could give him a message not only on the mobile but also if he viewed your board from a desktop.

Anyway, take a look at vb's code there. It's a starting point.

What your asking to do is not hard, but I haven't seen a MOD out there you can just plug-in. @BOP5 has an additional mobile detection script you might want to check out in the vb4 mod section, that may be some sort of help -- I don't know. I found it easier just to modify the core code.
Reply With Quote
  #3  
Old 08-23-2013, 08:24 AM
alexNL alexNL is offline
 
Join Date: Aug 2013
Location: Amsterdam
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi tbworld, thanks for your reply! I will check out the code (and see what BOB5 did aswell). I initially thought it was part of a skin or maybe even from an app, since Tapatalk does this (and it even looks like a system message).

If I can however manually show a popover or anything to direct our visitors to the app that is fine aswell (since that is the only reason to show it).

Thanks again,
Alex
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:23 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.04402 seconds
  • Memory Usage 2,175KB
  • Queries Executed 13 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete