Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Mobile Phone / iPhone / PDA Detection and Style Assignment Details »»
Mobile Phone / iPhone / PDA Detection and Style Assignment
Version: 1.0.1, by dartho dartho is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.8.4 Rating:
Released: 10-27-2009 Last Update: Never Installs: 306
Supported Uses Plugins
 

This add-on will detect most mobile phones, iPhones, PDAs and other mobile browsing devices and automatically for the user to a specific vBulletin style.

Release Information
1.0.1 Initial release for 3.8 ported over from 3.7 version

THIS IS IDENTICAL CODE TO THE 3.7 RELEASE!

I only re-released as soooo many people ask the question "is this OK for 3.8" You do not need to upgrade if you already have installed! However - should there be any changes in the future, it will likely happen here.

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). If you have multiple styles installed which are optimized for small screen mobile devices, iPhones, WIndows Mobile devices you can assign a specific style to each of these groups.

Whilst designed with mobile device users in mind, you could also assign styles to self defined browsers. For example you can assign an alternative style to Internet Explorer users whilst Firefox users get the default style. You could also assign an alternative style to Google or Yahoo spiders.

Instructions:
0. Install styles which you wish to assign to Mobile/PDA/iPhone users - some links will appear at the bottom of this post
1. Download the product file
2. Install via Product Manager
3. Configure options via vBulletin Options, Mobile Device Detection (should appear at end)
4. Start browsing from your mobile device!
5. Click "Mark as Installed"

If upgrading from a previous 3.5 or 3.6 version, you will need to uninstall that and the install this one.

To uninstall simply uninstall the product - there are no database changes or additional files.

Styles released on vBulletin which you can use:
Dartho's Mobile, Cell, Phone, PDA, iPhone Style for vBulletin 3.7 (<-- yep, that's mine)
ElForro's iPhone / iPod Touch Optimized Style
Zachery's vB Lite Style
vBMechanics Mobile Alabama Style

Due to the stripped down nature of these mobile styles, you will find that most for 3.5 and 3.6 will work quite happily on 3.5, 3.6, 3.7 & 3.8 although additional features introduced in vBulletin in recent years such as Social Groups, Blogs and Photo Galleries will not show well on a small screen. All should display your actual forums well.

Download Now

File Type: xml product-mobdetect38.xml (11.7 KB, 2230 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Alihandro, TTayfun

Comments
  #112  
Old 09-05-2011, 12:48 AM
TacticalNuke TacticalNuke is offline
 
Join Date: Mar 2007
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dartho,

Thanks for the mod. I've downloaded and am using the lightweight style. I also downloaded and installed the options and mobile detection and style assignment.

I'm having some issues with the options and style assignment. The options installs alright but none of the changes actually implement. By that I mean I can access the options under vbulletin options, but nothing happens when I change the options. When I install detection, it doesn't even show up under vbulletin options.

I tried both disabling all my other plugins and disabling them before reinstalling but neither appears to work. Do you have any ideas?
Reply With Quote
  #113  
Old 09-05-2011, 03:41 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're in the mobile device detection addon thread for vb3.8, there is a vb3.8 lightweoight style, but there is no "options" add-on for the "vb3.8 lightweight style", which is why they probably don't work
Reply With Quote
  #114  
Old 10-06-2011, 12:21 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
Try this:

Edit the vbcms_page template in the mobile style and replace

HTML Code:
{vb:raw toolbar}
<div class="vbcms_content">
{vb:raw layout}
</div>
with something like

HTML Code:
<div class="vbcms_content">
Home page unavailable in mobile view, click <a href="forum.php">HERE</a> to view forums.
</div>
What coding do I need to get this to work on 3.8.4 vbacmps?
Reply With Quote
  #115  
Old 10-06-2011, 03:31 PM
pgowder's Avatar
pgowder pgowder is offline
 
Join Date: Nov 2001
Location: West Columbia, SC
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to allow people to go back to the full style?
Reply With Quote
  #116  
Old 10-06-2011, 04:42 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pgowder View Post
Is there a way to allow people to go back to the full style?
Its an addon for this mod.
https://vborg.vbsupport.ru/showthrea...ghlight=Mobile
Reply With Quote
  #117  
Old 10-06-2011, 11:59 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blind-eddie View Post
What coding do I need to get this to work on 3.8.4 vbacmps?

Edit the adv_portal template in the style and replace it's contents with the following or something similar:

Code:
$stylevar[htmldoctype]
<html>
<head>
$headinclude
<meta http-equiv="Refresh" content="2; URL=forum.php" />
</head>
<body>

$header

$navbar
<div align="center"><a href="forum.php">Portal Disabled in Mobile View - Click here if your browser does not automatically redirect you.</a></div>

$footer

</body>
</html>
Alternatively the adv_portal template can be edited to only show the centre column.

You can do this by removing the left and right column block conditionals in the template in your mobile style. Find and delete the following 2 blocks of code:

Code:
		<if condition="$show['left_column']">
			<td width="$vba_style[portal_leftcolwidth]"<if condition="$show['center_column'] OR $show['right_column']"> style="padding-$stylevar[right]: $vba_style[portal_colspacing]px"</if>>
				$home[leftblocks]
			</td>
		</if>
Code:
		<if condition="$show['right_column']">
			<td valign="top" width="$vba_style[portal_rightcolwidth]"<if condition="$show['center_column'] OR $show['left_column']"> style="padding-$stylevar[left]: $vba_style[portal_colspacing]px"</if>>
				$home[rightblocks]
			</td>
		</if>
I've tweaked my vbadvanced templates a bit more to make them viewable in this style
Reply With Quote
  #118  
Old 01-13-2012, 01:01 AM
djjeffa's Avatar
djjeffa djjeffa is offline
 
Join Date: Aug 2004
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there any way to add Posted via Mobile Device to all the posts?
Reply With Quote
  #119  
Old 01-13-2012, 05:24 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This will modify the post text and append a message to it, this means that the user could then edit the post again and remove the text if they wished, but it works for the most part. Disabling the pplugins will not remove the text from posts already made.

Create 2 plugins and change the XXX to the styleid number of your mobile style:
1.
Product:vBulletin
Hook Location:newreply_post_start
Title: Posted via Mobile Device NewPost
Execution Order:5
Plugin PHP Code:
Code:
if ($styleid==XXX) {
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "Posted via Mobile Device" . "\n";
}
2.
Product:vBulletin
Hook Location:newthread_post_start
Title: Posted via Mobile Device NewThread
Execution Order:5
Plugin PHP Code:
Code:
if ($styleid==XXX) {
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "Posted via Mobile Device" . "\n";
}
Reply With Quote
  #120  
Old 01-20-2012, 02:03 AM
Mythotical Mythotical is offline
 
Join Date: Jun 2004
Location: Booneville, AR, USA
Posts: 1,428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just wanted to let you know I have tested this on vB 4.1.10 and it works perfect. Thanks.
Reply With Quote
  #121  
Old 02-27-2012, 09:04 PM
Fluke667 Fluke667 is offline
 
Join Date: Feb 2007
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
This will modify the post text and append a message to it, this means that the user could then edit the post again and remove the text if they wished, but it works for the most part. Disabling the pplugins will not remove the text from posts already made.

Create 2 plugins and change the XXX to the styleid number of your mobile style:
1.
Product:vBulletin
Hook Location:newreply_post_start
Title: Posted via Mobile Device NewPost
Execution Order:5
Plugin PHP Code:
Code:
if ($styleid==XXX) {
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "Posted via Mobile Device" . "\n";
}
2.
Product:vBulletin
Hook Location:newthread_post_start
Title: Posted via Mobile Device NewThread
Execution Order:5
Plugin PHP Code:
Code:
if ($styleid==XXX) {
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "Posted via Mobile Device" . "\n";
}



i want make 5 empty lines and than "Posted via Mobile Device", but howto?


This isnt working:

Code:
"\n";
"\n";
"\n";
"\n";
"\n";
"\n";
if ($styleid==XXX) {
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "Posted via Mobile Device" . "\n";
}
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:21 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05348 seconds
  • Memory Usage 2,355KB
  • Queries Executed 26 (?)
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
  • (8)bbcode_code
  • (2)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete