Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Mobile Device Style Assignment Details »»
Mobile Device Style Assignment
Version: 2.1.3b, by dartho dartho is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.8 Rating:
Released: 11-06-2006 Last Update: 11-16-2007 Installs: 386
Supported Uses Plugins
Additional Files Translations  

This is my first released hack, be nice.

This hack will detect when a mobile device connects to your site and allow you to override the default style/skin with one you specify.

Just install the product-file and set which style is your mobile device style via the AdminCP. Has been tested with several 3.6.x versions up to 3.6.8

I am also releasing a skin I wrote (it is based on vbmechanics Alabama skin, so updated or modified would be a more accurate description) for my own needs - it could probably be tidied up a lot more, but it works for me - take it as it is, I may offer limited support for this skin if I get time (no promises), and feel free to offer suggestions. Mobi - My super light skin is probably the one to go for, it has much greater functionailty.

=Install Instructions=
Go to Plugin System, Manage Products in your AdminCP and click Add/Import Product link at the end of the page
Browse for the product-mobile_enabled36-x.x.x.xml product file and click 'import'
Refresh your admincp page and in VBulletin Options, select the settings for 'Mobile Device Detection'
Change the styleid of your mobile skin in "Mobile Device Style" to the StyleID number of your mobile device skin
Change the styleid of your PDA skin in "PDA Device Style" to the StyleID number of your PDA device skin
Your mobile/pda skin must be user selectable (although you can disbale the ability for users to change styles in vBulletin Options)
Thats it!

=Upgrade Instructions=
Go to Plugin System, Manage Products in your AdminCP and click Add/Import Product link at the end of the page
Browse for the product-mobile_enabled36-x.x.x.xml product file
Choose to overwrite
Click 'import'
Re-configure Styleid of mobile/pda skin if required

VERSION 1.0.7a
Based on initial release - supports assigning one alternative style to ALL detected mobile devices

VERSION 2.1.2
Now allows the addition of exceptions and also specifying a skin for Pocket PCs (Windows CE devices) and a skin for all otehr detected mobile devices.
I've also released a very light skin HERE which is great for cell/Mobile phones

LAST UPDATE 22-October 2007
VERSION 2.1.3 - removed, small bug
VERSION 2.1.3a
  • Added ability to assign different styles to IPods/iPhones (In addiotn to Windows CE devices and other detected mobile devices
  • Added ability to assign specific style to a user defined device (based on user agent string).

    You will need to know the useragent string, or a unique fragment of the user agent string to do this. One exmple of how this can be used would be to assign a specific style to say Firefox users, perhaps a different style for Blackberry users, or you could assign a specific style to search engines (beware when doing this - google apprently doesn't like people displying different content to search engines)

To upgrade, simply overwrite product - your existing settings should be preserved.

I've left the previous version available for download - to get the new version, download and install the attached XML

**BACKUP YOUR DB BEFORE INSTALLING**

Other Mobile / Lite Skins:

Mobile - My super light skin
iPhone / iPod Touch Optimised Style
Alabama
VBLite
WAP Plugin - this is a similar product and skin which I didn't find till after I'd made this one - it seems to be more directed at WAP devices as opposed to all Mobile Devices, and appears to no longer be supported, but worth having a look at.


Remember to click install and give a rating :up:

keywords: Mobile, PDA, Autodetect, Autoselect, WAP, Skin, portal, cell, phone, iphone

3.7 Version Here

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #362  
Old 04-13-2008, 11:43 PM
punch punch is offline
 
Join Date: Nov 2002
Location: Minnesota
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dartho, i have some treo users, and a Q9 (WM 6.1) complaining that they can't pull up the mobile version.. but i'm testing it just fine on my windows mobile 6 phone (HTC mogul).

www.tcstangs.com/forum/

Really clueless why people are having problems. They are getting the full version of the forum. I'm using 2.1.3b.

My HTC mogul with WM 6 works fine, but 6.1 users with a Q9 and 755p treo users are getting the full version of the forum.
Reply With Quote
  #363  
Old 04-14-2008, 12:06 AM
punch punch is offline
 
Join Date: Nov 2002
Location: Minnesota
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by punch View Post
dartho, i have some treo users, and a Q9 (WM 6.1) complaining that they can't pull up the mobile version.. but i'm testing it just fine on my windows mobile 6 phone (HTC mogul).

www.tcstangs.com/forum/

Really clueless why people are having problems. They are getting the full version of the forum. I'm using 2.1.3b.

My HTC mogul with WM 6 works fine, but 6.1 users with a Q9 and 755p treo users are getting the full version of the forum.
Oh, the problem was I didn't have the mobile skin set as "user selectable" in the style manager.. thus if you were not logged in you got the full version. If you were logged in, you saw it fine.

The problem I have no is that I already had a few skins selectable by logged-in users and now I know some idiot is going to select the Mobile skin as their default skin. I'm going to get a PM within a few hours I bet.

Anyone know of a good workaround for this?
Reply With Quote
  #364  
Old 04-21-2008, 12:13 AM
J105C J105C is offline
 
Join Date: Mar 2008
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by punch View Post
Oh, the problem was I didn't have the mobile skin set as "user selectable" in the style manager.. thus if you were not logged in you got the full version. If you were logged in, you saw it fine.

The problem I have no is that I already had a few skins selectable by logged-in users and now I know some idiot is going to select the Mobile skin as their default skin. I'm going to get a PM within a few hours I bet.

Anyone know of a good workaround for this?
True, I'm waiting for this as well. I dont want my users able to select the mobile skin. I only want it to be 'forced' when they visit my site from a mobile device.
Reply With Quote
  #365  
Old 04-21-2008, 01:01 AM
J105C J105C is offline
 
Join Date: Mar 2008
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just tried 2 other mobile styles including the one you sent me. This is what I get:

Wrong mime-type, I got text/html; charset=ISO-8859-1, but I want text/vnd.wap.wml.
Reply With Quote
  #366  
Old 04-26-2008, 10:42 PM
Stryker412 Stryker412 is offline
 
Join Date: May 2005
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I upgraded my forum to 3.6.10 and now I cannot post in the mobile version.
Reply With Quote
  #367  
Old 04-27-2008, 01:53 AM
Froggy32701 Froggy32701 is offline
 
Join Date: Aug 2005
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stryker412 View Post
I upgraded my forum to 3.6.10 and now I cannot post in the mobile version.

I have no issues? Did you revert all of the mobile templates?
Reply With Quote
  #368  
Old 04-27-2008, 02:28 PM
tekguru tekguru is offline
 
Join Date: May 2007
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't revert but fixed the issue by taking the mod XML, looked for all <form> lines and added a

PHP Code:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]/> 
after each and reloaded. I also changed the version number to 3.6.10.

Al I had then to do was go into the style editor to save each template to clear the 'you may need to edit flags. However when doing this I got on threadadmin_editthread:

Quote:
The following error occurred when attempting to evaluate this template:
The conditional on line 34 appears to be missing its beginning tag (<if>). This may cause unexpected behavior.

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
On looking that template it looks like there is one to many closing IFs in there which I removed to fix that problem.
Reply With Quote
  #369  
Old 04-30-2008, 06:25 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This add-on should work fine on 3.6.10 - style issues have apparently come up, but thats not to do with this particular add-on. I'll be looking into them when I get a chance, only *just* got back from holidays....
Reply With Quote
  #370  
Old 05-02-2008, 11:46 AM
Stryker412 Stryker412 is offline
 
Join Date: May 2005
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
This add-on should work fine on 3.6.10 - style issues have apparently come up, but thats not to do with this particular add-on. I'll be looking into them when I get a chance, only *just* got back from holidays....
The error I'm getting since upgrading to 3.6.10 and now 3.7 is:

"Your submission could not be processed because a security token was missing or mismatched."

I can read the forum fine, but cannot post at all.
Reply With Quote
  #371  
Old 05-02-2008, 04:28 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stryker412 View Post
The error I'm getting since upgrading to 3.6.10 and now 3.7 is:

"Your submission could not be processed because a security token was missing or mismatched."

I can read the forum fine, but cannot post at all.
You'll need to edit EVERY template that posts data to add the security hash variable from the latest update (3.6.10 and 3.7.0).

Quote:
Details: Find
<input type="hidden" name="s" value="$session[sessionhash]" />
and after it, add
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />


- http://www.vbulletin.com/forum/showthread.php?t=268123
Reply With Quote
Reply

Thread Tools

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 11:14 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.04652 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
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)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete