vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Add-On Releases - Extend and Customise "Mobile" Style Options (https://vborg.vbsupport.ru/showthread.php?t=182692)

dartho 09-15-2008 10:30 PM

untested, but you can try editing the Mobile Device Thread Footer and Mobile Device Post Footer plugins and change
Code:

if (($styleid==$vbulletin->options['mo37_mobile_style']) && ($vbulletin->options['mo37_post_text'] != '')){
if ($vbulletin->options['mo37_post_text']=="UA") $vbulletin->options['mo37_post_text'] = $_SERVER['HTTP_USER_AGENT'];
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "[size=1][i]" . $vbulletin->options['mo37_post_text']. "[/i][/size]" . "\n";
}

to
Code:

if (($styleid==$vbulletin->options['mo37_mobile_style']) && ($vbulletin->options['mo37_post_text'] != '')){
if ($vbulletin->options['mo37_post_text']=="UA") $vbulletin->options['mo37_post_text'] = $_SERVER['HTTP_USER_AGENT'];
$vbulletin->GPC['message'] ="[size=1][i]" . $vbulletin->options['mo37_post_text']. "[/i][/size]" . "\n\n" .  $vbulletin->GPC['message'] ;
}


CrashPush 09-15-2008 10:53 PM

Quote:

Originally Posted by dartho (Post 1622941)
untested, but you can try editing the Mobile Device Thread Footer and Mobile Device Post Footer plugins and change
Code:

if (($styleid==$vbulletin->options['mo37_mobile_style']) && ($vbulletin->options['mo37_post_text'] != '')){
if ($vbulletin->options['mo37_post_text']=="UA") $vbulletin->options['mo37_post_text'] = $_SERVER['HTTP_USER_AGENT'];
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "[size=1][i]" . $vbulletin->options['mo37_post_text']. "[/i][/size]" . "\n";
}

to
Code:

if (($styleid==$vbulletin->options['mo37_mobile_style']) && ($vbulletin->options['mo37_post_text'] != '')){
if ($vbulletin->options['mo37_post_text']=="UA") $vbulletin->options['mo37_post_text'] = $_SERVER['HTTP_USER_AGENT'];
$vbulletin->GPC['message'] ="[size=1][i]" . $vbulletin->options['mo37_post_text']. "[/i][/size]" . "\n\n" .  $vbulletin->GPC['message'] ;
}


Perfect! You're the man! :):up:

cavern 09-16-2008 08:28 PM

I tried searching this but, the 'PC Mode' link does not change the style, on my BlackBerry it stays on the mobile version.

Am I missing the post showing how to fix this?

GodlyChaos 09-16-2008 08:32 PM

Thanks a bunch!!

dartho 09-16-2008 09:22 PM

Quote:

Originally Posted by cavern (Post 1623633)
I tried searching this but, the 'PC Mode' link does not change the style, on my BlackBerry it stays on the mobile version.

Am I missing the post showing how to fix this?

How are you selecting the style in the first place? If you are using teh autodetect mobile device add-on, this 'forces' teh style and it can not be switched away from

cavern 09-16-2008 09:28 PM

Quote:

Originally Posted by dartho (Post 1623665)
How are you selecting the style in the first place? If you are using teh autodetect mobile device add-on, this 'forces' teh style and it can not be switched away from

This plugin has an option for it? 'Add a link to the default style' I have selected: 'Link in Top NavBar'. Default Style Text?: 'Full Version'.

This creates the text on the mobile style called 'Full Version', with a link to the styleid that PC's use.

dartho 09-16-2008 10:03 PM

Sorry - my question should have been: How did you select the Mobile style in the first place? Are you using the Mobile detection add-on?

cavern 09-16-2008 10:22 PM

Quote:

Originally Posted by dartho (Post 1623690)
Sorry - my question should have been: How did you select the Mobile style in the first place? Are you using the Mobile detection add-on?

I see what you are getting at, this function will not work if you are using the Mobile Detection/Enforcement addon as it is overriding the users selection.

dartho 09-16-2008 10:51 PM

Yep - that's right...

NoPretender 09-18-2008 08:41 PM

So is this addon supposed to detect that it's a mobile device, set the style as the Mobile style, and then users are able to switch to PC View if needed? I've been playing with this addon for about 30 minutes now because it's not going straight to mobile version on my blackberry. Figured I should ask to see if it's supposed to or not.

I'm hoping it's like the Auto-Force mobile addon that's available, but I like that you can switch out to the default style among the other options this has available.


All times are GMT. The time now is 05:05 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.02234 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete