vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - Mobile Phone / iPhone / PDA Detection and Style Assignment (https://vborg.vbsupport.ru/showthread.php?t=226946)

Fluke667 02-27-2012 09:33 PM

if ($styleid==XXX) {
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "\n". "\n". "\n". "\n". "\n". "\n". "Posted via Mobile Device" . "\n";
}


This works :)

sportscolumn 03-25-2012 05:51 AM

I'm having a little trouble with this plugin. It works fine when I view it in Firefox and Safari but when I set my user agent to Iphone via Safari, the "switch to full style" link doesn't work.

For example, i have the fullstyle id as 3.

But while this works http://forum.domain.com/index.php?styleid=3 works in firefox and safari, it doesn't work in iphone.

Any suggestions? Thanks

dartho 03-25-2012 12:49 PM

From the description:
Quote:

What can it do?
Detects most mobile phones and force the user to a specific style (users will not be able to select other styles from a mobile device with this add-on installed).
This one for V4 *migyt* work ... https://vborg.vbsupport.ru/showthrea...48#post2179248

sportscolumn 03-25-2012 02:38 PM

Quote:

Originally Posted by dartho (Post 2313109)
From the description:


This one for V4 *migyt* work ... https://vborg.vbsupport.ru/showthrea...48#post2179248

noob question. I'm running 3.8.x, are you saying I should replace the code in your product-mobdetect product with the code you linked to?

Also, where do plugins and products live on the server?

thanks

dartho 03-25-2012 09:48 PM

Quote:

Originally Posted by sportscolumn (Post 2313143)
noob question. I'm running 3.8.x, are you saying I should replace the code in your product-mobdetect product with the code you linked to?

yep - give it a try
Quote:

Also, where do plugins and products live on the server?

thanks
You managed to install this one? Same place - AdminCP, manage products and plug-ins

sportscolumn 03-26-2012 02:26 AM

Quote:

Originally Posted by dartho (Post 2313274)
yep - give it a try


You managed to install this one? Same place - AdminCP, manage products and plug-ins

I meant where it lives on the server. I'm used to dealing with wordpress where the themes, plugins and css files are all in a certain folder on the server.

I suspect the styles are uploaded to the database in vbulletin?

dartho 03-26-2012 03:25 AM

OK - plugins etc all live in the database also, except where you explicitly upload additional files to your server, in which case they often live in your forum root depending on where the developer wanted them (a plugins code can include external files as it's just a PHP eval)

Yep - styles are also in the database

sportscolumn 03-26-2012 05:28 PM

Quote:

Originally Posted by dartho (Post 2313336)
OK - plugins etc all live in the database also, except where you explicitly upload additional files to your server, in which case they often live in your forum root depending on where the developer wanted them (a plugins code can include external files as it's just a PHP eval)

Yep - styles are also in the database

thanks for your help.

Deafmute 08-03-2012 10:57 AM

works vb 3.8x?

Max Taxable 08-03-2012 01:48 PM

Quote:

Originally Posted by Deafmute (Post 2353990)
works vb 3.8x?

Yep... Works on mine just fine.


All times are GMT. The time now is 12:21 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.01114 seconds
  • Memory Usage 1,740KB
  • 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
  • (7)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