PDA

View Full Version : Forum Display Enhancements - Mobile Phone / iPhone / PDA Detection and Style Assignment


Pages : [1] 2

dartho
03-16-2008, 10:00 PM
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.

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 (https://vborg.vbsupport.ru/member.php?u=110638) Mobile, Cell, Phone, PDA, iPhone Style (https://vborg.vbsupport.ru/showthread.php?t=174375) for vBulletin 3.7 (<-- yep, that's mine)
ElForro's (https://vborg.vbsupport.ru/member.php?u=132539) iPhone / iPod Touch Optimized Style (https://vborg.vbsupport.ru/showthread.php?t=171947)
Zachery's (https://vborg.vbsupport.ru/member.php?u=18025) vB Lite Style (https://vborg.vbsupport.ru/showthread.php?t=92071)
vBMechanics Mobile Alabama Style (http://www.vbulletin.com/forum/showthread.php?p=1085230#post1085230)

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 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.

3.6 Version can be found here (https://vborg.vbsupport.ru/showthread.php?t=130983)

Marked as Beta until I get some feedback, and 3.7 goes Gold

Release Information
1.0.0 Initial release for 3.7 ported over from 3.6.8 version

R1lover
03-17-2008, 12:53 AM
I'll give it a shot... thank you very much!

R1lover
03-17-2008, 01:00 AM
I just tested this as much as I could with the iPhone and it works awesome!

Very well done!

Nominated too!

NeuroLancer
03-17-2008, 01:14 AM
Great :up:

5 stars and nominated also.

R1lover
03-17-2008, 01:19 AM
Well I may have a little issue... it seems I can't change skins now on Firefox or IE7.

any ideas? www.exactservers.com is the test site.

R1lover
03-17-2008, 01:29 AM
Ok, I had to include Firefox and IE in the excluded list at the bottom in order to change skins from the default now.

I'm not sure this is a good thing as there are many browsers and I'm not sure the proper name for all of them to insert here?

would IE7 be just like that? what about IE6?

Edit... I was able to turn off :user defined detection" and now it works perfect.

dartho
03-17-2008, 01:30 AM
G'day R1lover,

This add-on Forces the style on visitors - with this installed and enabled users of mobile devices are no longer able to select their own styles.

It should not affect people browsing from a PC - only mobile devices - and you should need to add exclusions for browsers such as INternet Explorer or Firefox etc.

If this is a bug introduced in the porting from 3.6 to 3.7 I'd be interested in following up to make sure it's working as designed.

Thanks

R1lover
03-17-2008, 01:31 AM
[Edit: Just read your followup post - replying now]

...

Hello, thank you.... I was able to turn off the user defined option I listed above and it works perfect.

dartho
03-17-2008, 01:38 AM
Excellent, happy to hear it's working as it should!

User defined is for if you find a user with a mobile device which is not detected by this addon - you can then check their user-agent string and add it into the user defined list. If this does happen, you can let me know here and I will update the add-on accordingly.

mariocaz
03-17-2008, 04:46 AM
Dartho,

What are the differences in this version and the one of 3.6.8 ?

dartho
03-17-2008, 05:37 AM
Very little really this release includes a couple display enhancements in the AdminCP (you don't need to know the styleid number now, it provides a drop down of installed styles). and there is extra catching of mobile devices which is quite possibly redundant, but included none-the-less.

Mostly released as people asked for a 3.7 version and they likely feel more comfortable knowing it was written under vBulletin 3.7

mariocaz
03-17-2008, 06:17 AM
Thank you my friend and of course when I have 3.7 I will install it for sure.

Also I think I will need a new mobile template for 3.7, right ?

Zaiaku
03-17-2008, 04:07 PM
I like this alot but I need to find some better styles for pda and other devices.

KURTZ
03-17-2008, 04:15 PM
really interesting hack ... ;)

SEOvB
03-17-2008, 06:39 PM
I'm going to make a SEO friendly google skin, but what would i need to enter to make sure google is reading this skin, rather then the user default?

thanks for the awesome idea

dartho
03-17-2008, 08:32 PM
FRDS - "Googlebot" should do it for Google (Full User Agent string is "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)")

I believe there is some fine print on Google somewhere saying you must dispaly the same stuff to them as you do to regular visitors, it may be worth investigating, although I wouldn't think doing things like removing ads and welcome blocks etc whilst keeping the content the same would be an issue? Make sure you check this

Jase2
03-18-2008, 11:37 AM
Hi Dartho,

Great to see you have moved this to 3.7. I asked a question in your other 3.6 thread, but I think it's best asking here. Will you be updating your style for 3.7...is there any chance you can base the style around the default style for vB?

Thanks!

Regards Jason :)

aggiefan
03-18-2008, 06:59 PM
any chance you might get this ready to use with the new skyfire browser.... just got my beta and skyfire is awesome but this script does not redirect me to our mobile site like pocket IE does.

i dont know what specifically skyfire identifies itself as but its not currently working with this script and i suspet more and more users will be going to this browser because its awesome.

dartho
03-18-2008, 09:09 PM
@Jase2 - yes, I will release the mobi style for 3.7 - if you check the thread, you'll see that I did add a new CSS file yesterday which is based roughly on vBullein's default colour scheme.

@aggiefan - Use your PDA to browse your site with Skyfire, then form your PC check who is online, turn on display user agent and check the User Agent string of your skyfire browser. You can post it here, or send me a PM. Although if it does indeed render pages that well, you might want to add it to the exceptions list!

tazzarkin
03-19-2008, 01:21 PM
As always, you are a genius...

Jase2
03-19-2008, 05:39 PM
Dartho, you are great!! I will wait for the style release for 3.7 before applying this hack ;)

Thanks!

Regards Jason :)

nanaimobar
03-20-2008, 04:43 PM
Can iPhone, cell phones, and other mobile devices connect to a strictly https site?

dartho
03-20-2008, 08:22 PM
Yes - most would support https...

Jase2
03-20-2008, 08:24 PM
Hi Dartho,

Sorry to bother you again. But when do you plan to release the style for 3.7? Pretty soon, I hope.

Regards Jason :)

WEBDosser
03-24-2008, 07:06 AM
question, in Custom/User Defined Useragent String there is listed firefox but nothing else.

which means if someone visits my site using firefox they will see the modi style even if they are not using mobile?.. is anyway around that.

plus what other mobile browsers can i put there in the list you see i don't use mobile web myself so is new to me..

dartho
03-24-2008, 07:47 AM
You don't need to have anything listed in Custom useragents - it is disabled by default and I suggest you leave it that way.

I'll remove the default "firefox" text which was in there as a kind of reality check - you can test things are working by enabling the Custom section and viewing your site with Firefox.

You could however use the "Custom/User Defined Useragent String" to display a specific style to Firefox users only (it doesn;t have to be mobile)

WEBDosser
03-24-2008, 08:07 AM
thanks for that.. i did work that out just after i posted here.. D!OH

and i tested with pocketPC and it works fine, thankyou :) excellent work.

Jase2
03-28-2008, 12:57 AM
Installed -- thank you very much!

Regards Jason :)

Jase2
04-02-2008, 07:05 PM
Hello Dartho,

Doesn't seem to work on this: http://www.operamini.com/demo/ Any ideas why?

dartho
04-02-2008, 09:18 PM
Jase - I'm not sure you have it configured correctly. I used that site to test mine and a couple other sites I know to be using this add-on. Yours was the only one not to work. You should double check you settings

Jase2
04-02-2008, 10:54 PM
As far as I know Dartho, all settings are correct. I have them set to "yes" and to use the 'mobile' style. Using vB 3.7 RC2. It loads, but it uses my default style.

dartho
04-02-2008, 11:29 PM
Is the mobile style in Style manager ticked as user selectable?

Jase2
04-03-2008, 12:07 AM
Oops, somehow it wasn't ticked. It's now working. Thanks! Keep up the good work.

RichTJ99
04-07-2008, 11:27 PM
Hi,

Is it possible to send a user to the mobile style & then allow them to have the option to leave the mobile style? We have it turned on & some of our users are "stuck" in the style.

I have a Palm Treo 700wx & I am stuck myself :)

Thanks,
Rich

dartho
04-08-2008, 01:04 AM
@RichTJ99 - no, not really with this as it is. There may be work arounds, but they would likely include cookies or DB queries....

I could possibly modify this so that rather than force a mobile style, it just places a link at the top of the page to the mobile style and perhaps a link at the bottom of the page within your mobile style to the full style?

RichTJ99
04-08-2008, 03:01 AM
When using fatwallet.com on my treo, it sends me to fatwallet.mobi, there is a link to visit the full version of the site.

Would it be possible to mimic that similar to your suggestion?

Can you put a link to both the mobile & full version styles on the top of each page (for mobile users)? Would that make sense? If its a text link it shouldnt really slow things down (maybe).

Thanks,
Rich

MissKalunji
04-08-2008, 03:40 AM
working good so far thanks!

dartho
04-08-2008, 04:32 AM
When using fatwallet.com on my treo, it sends me to fatwallet.mobi, there is a link to visit the full version of the site.

Would it be possible to mimic that similar to your suggestion?

Can you put a link to both the mobile & full version styles on the top of each page (for mobile users)? Would that make sense? If its a text link it shouldnt really slow things down (maybe).

Thanks,
Rich

If you intend on having a .mobi domain for mobile devices, or even a mobile.mydomain.com subdomain, have a look at "Different Domain, Different Style (https://vborg.vbsupport.ru/showthread.php?t=174381)". That will do what you need. Then it's just a matter of putting links in your navbar or header or where ever you want...

RichTJ99
04-08-2008, 11:50 AM
Im just not sure how to get the job done without forcing the user to be stuck using the mobile style.

dartho
04-08-2008, 12:26 PM
It sounds like you have a mobi domain, by definition that should be a mobile compliant site.

Rather than forcing them with this addon, simply educate your users - if they want a mobile interface, use .mobi, if they want a full version use the .com You could use DDDS for the .mobi and no detection on the .com and add a link in the .com navbar or footer to the mobile site.

I had a look at your site, and it seems you have something similar to this in place. I'd suggest asking your mobile device using members what they want

Fatwallet looks like it sets cookies to keep track of mobile preferences. A bit outside my area of knowledge at the moment.

ldma
05-02-2008, 02:28 PM
Another little problem I'm having is that I'm running VBAdvanced and it looks horrible and doesn't work in the mobile style. Is there anyway I can divert users straight to the forum index bypassing VBA? Possibly just with a template hack?

ldma
05-02-2008, 03:19 PM
Ok in answer to my own question, I did what very other site does with this issue, and just created an "m" sub-domain and redirected it with .htaccess on my hostrs cpanel to the index page.

MissKalunji
05-02-2008, 03:40 PM
Ok in answer to my own question, I did what very other site does with this issue, and just created an "m" sub-domain and redirected it with .htaccess on my hostrs cpanel to the index page.

uh? i just used a forwarder instead in the template of vbadvanced

but your seems more fun so what it would be m.urwebsite.com ?

ldma
05-02-2008, 05:25 PM
Yep....just like Facebook! :p

http://m.ajarnforum.net

The beauty of it is that it's just a vanilla redirect that does nothing, but just allows me to give mobile users the impression I'm catering specifically for them with their own url....this plugin does the rest, and I avoid VBA.

On the other hand if people do go to the regular address, I've set up meta refresh in the mobile template's portal template. The disadvantage is that it does display it first before diverting.

gopherhockey
05-11-2008, 06:45 PM
Installed... all looks good until I go to hit submit on a reply to a thread and I get:

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

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you receved this error.

----

Using Windows Mobile 6 on a Sprint Touch device.

gopherhockey
05-11-2008, 07:02 PM
Installed... all looks good until I go to hit submit on a reply to a thread and I get:

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

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you receved this error.

----

Using Windows Mobile 6 on a Sprint Touch device.

Ahhh.. I did the <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> thing and it worked. Thought maybe the 3.7 version would have that in there already.

gopherhockey
05-11-2008, 07:16 PM
This is super cool. Instantly my favorite mod. Nice job!

Don't know why they couldn't have done this type of thing built-in... they are too busy making forums into facebook software and not concentrating on functionality of a real forum system I guess.

Oh well, thats what vbulletin.org is for! ;)

dartho
05-11-2008, 09:23 PM
This has just been fixed in the mobile style ...
Installed... all looks good until I go to hit submit on a reply to a thread and I get:

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

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you receved this error.

----

Using Windows Mobile 6 on a Sprint Touch device.

gopherhockey
05-14-2008, 12:31 PM
Ok, so using this for a few days now I have noticed a few things:

First, it only works when you are logged into the forums. Is this normal?

Second, I have not had anyone but myself see this work. (I am an adminstrator). Blackberry devices, other mobile 6 or even mobile 5 devices - so far it only works for me.

My guess is I'm missing some security setting that allows this to work for people?

On my forums, I do not allow people to select other styles. We have one default style, thats it. This mobile style I thought can be "forced" but do you need special user or group rights to have this work?

Sure enough, if I log into a test user on my phone this does not work...

I do have the setting in vb "Allow users to change styles" set to no.

gopherhockey
05-14-2008, 12:57 PM
I believe I have fixed my issue. While I have the forums set to not allow users to change their styles, I did not click the checkbox on the mobile style when I installed it, allowing users to actually use it.

Apparently with this unchecked the admin can select it, but nobody else can. This must be checked and does not get checked by default when installed (at least it didn't for me)

ANGELO2K8
05-15-2008, 05:53 AM
Is there any way this hack can force a custom text message in the users sig saying he/she is posting from a mobile device?

I noticed they do this at the blackberry forums. It would be a good addition to this hack.

dartho
05-15-2008, 09:29 AM
I'm sure a plugin could be written to do this, but not sure how myself ...

MissKalunji
05-15-2008, 06:18 PM
i know there's one you can get and integrate with vb howardsforum is using one let me try to find the proper name

https://vborg.vbsupport.ru/showthread.php?t=132820&highlight=www.howardforums

Darkstarproject
05-20-2008, 08:58 PM
Just what I needed!! Thanks, I'll be testing this all the time.

verino
05-21-2008, 06:37 AM
Thank's and installed.

Just need to test it with my friends :D

Robert Waanders
05-23-2008, 08:35 AM
Installed it on my forum, works great! Thanks for all of your effort.

Robert

verino
05-23-2008, 11:55 PM
Installed... all looks good until I go to hit submit on a reply to a thread and I get:

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

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you receved this error.

----

Using Windows Mobile 6 on a Sprint Touch device.

Got the same problem. Any idea ?

dartho
05-24-2008, 12:27 AM
That wouldn't be to do with this add-on, it would be caused by the style you are using - check the styles threads for updates...

verino
05-24-2008, 04:08 AM
That wouldn't be to do with this add-on, it would be caused by the style you are using - check the styles threads for updates...

Yeah, that make sense.

I'll check for update, thank's a lot.

Captain Tycoon
06-14-2008, 02:14 PM
Installed and Marked! Excellent!

b-roll
06-15-2008, 11:17 AM
I love this mod. Thank you Dartho!

I works perfectly on iphone and touch, but I'm having problems with other devices. A number of my readers are using blackberrys. I've added the models independently in the custom list like this:


BlackBerry8330, BlackBerry8703, BlackBerry8703e, BlackBerry8830, BlackBerry, LG-VX8700


Since I'm not sure how to see the user agents for these devices, I'm only guessing what to put in the system.

It was working for one Blackberry user, but now that I've added a new blackberry model, it's not working for them.

I'm confused as to what is automatically detected - and what should be "custom" detected.

Also, how can you verify the useragent? Someone mentioned a spot in the vbulletin CP, but I can't find it.

Thanks for all of you help!

kev

dartho
06-15-2008, 12:07 PM
All blackberry devices should be detected by default. Make sure you have enabled "Mobile Device Detection" in addition to "Enable iPhone / iPod Device Detection?" These can point to the same style.

You can view a users useragent string by checking "Who's Online" and then setting the view useragent string option to Yes.

firefox100
06-18-2008, 03:50 PM
There is any way to avoid that users can "choose" this Style?

I have the problem that my users choose from the menu "Select Style" and it's impossible to return to normal style.

Great work dartho. :)

dartho
06-18-2008, 09:44 PM
I don't allow users to change styles (this can be set in vBulletin Options) but if you do allow users to change styles this might work for removing a particular style form the quick chooser:

Edit your 'options' template which should look like this:
<option value="$optionvalue" class="$optionclass" $optionselected>$optiontitle</option>


and change it to the following:

<if condition="($optionvalue!=x) && ($optiontitle!='yyyyyy')">
<option value="$optionvalue" class="$optionclass" $optionselected>$optiontitle</option>
</if>

where x is the styleid of your mobile style and yyyyyy is the name of your mobile style. The name is case sensative!

This should stop it being added to the drop down list.

MissKalunji
06-18-2008, 09:52 PM
Thanks Dartho Perfectly!

jbeam
06-21-2008, 06:54 PM
I am not sure if it's the detection or the style causing the problem, but I do not get the style that is set for wireless devices until the user logs in.

Meaning, if I go to the main forum page on my WM5 phone, I get the default style. Once I login, I get the style spcified for wireless devices.

Anyone else have this problem?

I am running this detection add-on and the Mobile, Cell, Phone, PDA and iPhone style (https://vborg.vbsupport.ru/showthread.php?t=174375) with the Extend and customize add-on (https://vborg.vbsupport.ru/showthread.php?t=182692).

dartho
06-21-2008, 10:09 PM
G'day jbeam,

I am guessing that your issue is that the style is not checked as user selectable in Style manager.

As you are an admin, you can view non-selectable styles - this explains why the style doesn't show up till you log in with admin credentials.

Venturing
06-22-2008, 08:06 AM
Installed and seems to be working well for me. Many thanks!

firefox100
06-23-2008, 01:46 PM
I don't allow users to change styles (this can be set in vBulletin Options) but if you do allow users to change styles this might work for removing a particular style form the quick chooser:

Edit your 'options' template which should look like this:
<option value="$optionvalue" class="$optionclass" $optionselected>$optiontitle</option>
and change it to the following:

<if condition="($optionvalue!=x) && ($optiontitle!='yyyyyy')">
<option value="$optionvalue" class="$optionclass" $optionselected>$optiontitle</option>
</if>where x is the styleid of your mobile style and yyyyyy is the name of your mobile style. The name is case sensative!

This should stop it being added to the drop down list.
Thanks dharto, work perfectly!

Great Mod. :up:

reefland
06-26-2008, 12:22 AM
Can I ask where <img src... is replaced by <a href...? I am trying to brand my mobile skin with a very light version of my logo but whenever, and where ever, I add <img src it is replaced with <a href

dartho
06-26-2008, 01:06 AM
that is changed in the Replacement Variables section of the mobile style options. You would likely need to remove all off them - if you remove these then all images will show up in the mobile style

Alternatively, you could swap the order of the tags around in the IMG declaration. Try something like :
<img border="0" src="image.jpg" />

I've only tested this in a desktop browser and it works fine there - I image other mobile browsers shouldn't have an issue either...

EmpireZ
06-30-2008, 04:23 AM
Thanks for this Darko,
I have a probelm though, Not sure if it is this mod. I tracked it down and seems when I disable this mod it works fine, but I enable this mod and error shows. I know vb put in new securtiy measures too. Here is the error when members try to post/reply using mobile. (Using your mobile skin btw)

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

If this occurred unexpectedly, please inform the administrator and describe the action you preformed before you received this error.

dartho
06-30-2008, 05:10 AM
That won't be related to this add-on.

If you post in the thread for the style, I will then know which version of which style you are using and can better help!

EmpireZ
06-30-2008, 06:25 AM
Ok, No probelm. I downloaded the latest version of your 3.7 style and seems to be working ok. Ill post in the skin thread if I get the error again.

dartho
06-30-2008, 06:29 AM
Cool - thanks. I wasn't being pedantic - when you post in a add-on's thread, the add-on author can see what version you last downloaded which makes troubleshooting easier...

myadsl
07-03-2008, 10:50 AM
Is there a way to exclude Opera Mini when using this mod?

dartho
07-03-2008, 11:06 AM
Sure is - work out what the Opera Mini useragent string is (you can do this when an opera mini user is online by selecting to view User Agent strings in Who's Online), and add it to the exclusions section :up:

Tom_S
07-04-2008, 02:23 AM
I have looked in this thread and do not see the fix or understand the way to resolve getting this to work if you have vBadvanced CMPS installed. Any help?

Thanks in advance...

dartho
07-04-2008, 04:14 AM
Best way to get vbadvanced to work with this style is to not use it. Edit your adv_portal template and replace it's contents wit something like


$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>$vboptions[hometitle] <if condition="$pagetitle">- $pagetitle</if></title>

$headinclude

</head>
<body>

$header

$navbar
<p><a href="forum.php">Portal disabled for Mobile Devices. Click here to go to Forums</a></p>

$footer

</body>
</html>


Change the "forum.php" link to be your forums home page.

If you wanted to and had the time to work it out, you could probably strip back vbadvanced with in this style and still have some content there...

Tom_S
07-04-2008, 05:08 AM
Ahhh...Now it is coming back to me. See I had it installed pre-3.7.0 and uninstalled it sometime back after a major crash and never reinstalled but didn't remember that bypass. Thanks my friend. And I will make time to do those extra edits you suggest. They make perfect sense and sound worth the extra time. Thanks. :D

thompson
07-04-2008, 11:44 AM
anybody with an example site for testing with mobile phone ?

Paxion
07-05-2008, 07:09 PM
<a href="http://www.mobile.starcityracing.com" target="_blank">www.mobile.starcityracing.com</a>

The mobile is a redirect to my forum using this style.

For anyone else interested, to help my users stay logged in i've created a forum(link) to one of my other styles. Example in the forum index at the bottom is a forum (Link) called Mobile Out. If the user clicks the link it directs them to one of my other styles. From there they can do whatever it is they want.

I've had some blackberry reports saying the drop down menu doesn't work, so i created the mobile subdomain as an easy option to get into the style. So easy in, easy out.

thompson
07-06-2008, 08:09 AM
thanks paxion.

which style do you use for this ? really simple and very good.

Fireproof
07-08-2008, 02:11 AM
I just got an iPod Touch and checked out my site with it. It always shows the "light skin" even though I have turned OFF the iphone/itouch detection.

Anyone else have this problem?

dartho
07-08-2008, 03:59 AM
That is by design. You need to enable iPhone detection, and tell it which skin to use - even if it just the default one.

'Mobile Device Detection' detects ALL mobile devices. Enabling PDA / iPhone / Custom device detection then overrides the style set initially by the Mobile detection with the one you specify.

Fireproof
07-08-2008, 01:48 PM
That is by design. You need to enable iPhone detection, and tell it which skin to use - even if it just the default one.

'Mobile Device Detection' detects ALL mobile devices. Enabling PDA / iPhone / Custom device detection then overrides the style set initially by the Mobile detection with the one you specify.

Ahhh, I get it now. Got it. Thanks for the help!!

tpearl5
07-11-2008, 01:25 PM
has anyone gotten this to work on the lg voyager?

dartho
07-11-2008, 11:58 PM
If you can let me know the USERAGENt string I can make sure it is compatible...

IcheeWaWa
07-12-2008, 12:57 PM
I had to do this for my wife. The useragent string is:

400x240 LGE VX10000

Added it under Custom/User Defined Useragent String and it worked fine.

dartho
07-12-2008, 01:17 PM
I forgot about custom useragnet strings :) Will add this one in next version...

Banana
07-22-2008, 10:23 PM
'Mobile Device Detection' detects ALL mobile devices. Enabling PDA / iPhone / Custom device detection then overrides the style set initially by the Mobile detection with the one you specify.

Can I be clear.

If the above option is "Yes" then does this override my "No" option "Enable iPhone / iPod Device Detection?" ?

Thanks

dartho
07-22-2008, 11:47 PM
An iPhone/iPod is a mobile device and falls into that generic category. You can then override this default and select an alternative style for for iPhones/iPods. If you wish to have your default style display on these devices you need to configure it as such

Banana
07-23-2008, 10:41 AM
What I wish to do is:force the PDA style for all mobile devices EXCEPT iPhone/iPod users who I want to be able to choose their own style.

How do I achieve this please.

dartho
07-23-2008, 11:29 AM
Add 'iPhone' to "Useragent Exceptions". Devices matching user agents strings listed here will not be detected as a mobile device.

Akakios1
07-30-2008, 07:36 PM
Dartho,

Just wanted to say you're my hero! I've installed your mobile products and they work perfectly! I had to mess around with it but I got it going and going good! It was all my end.. the messing around!

Thanks for doing what you do!

Jhonnyf
08-04-2008, 02:29 PM
excelente... thank you

dartho
08-04-2008, 10:24 PM
Glad it's working for you!

gpc10347
08-06-2008, 03:12 AM
Nice mod! Installed and aside from a small issue with CMPS, it went smooth as silk...

Future feature request: Perhaps a Bypass CMPS option so the mobile user lands inside the forums with having to see whatever garbage I put out front?

And if it's already in there, pretend that it's easy to miss so I don't develop a complex...

Thanks!!

dartho
08-07-2008, 11:06 AM
You'll need to edit your adv_portal temaplte in this skin - See here for a sample: https://vborg.vbsupport.ru/showthread.php?p=1566413#post1566413

gpc10347
08-07-2008, 01:07 PM
You'll need to edit your adv_portal temaplte in this skin - See here for a sample: https://vborg.vbsupport.ru/showthread.php?p=1566413#post1566413


Perfect solution.

I modified my set up to a stripped version that I still don't like so a meta refresh/redirect page was what I was out looking for but your 'cover' page is fine... Might use both..

Mod of the month for my money.. (or lack of my money...)

Thanks!

Jah-Hools
08-08-2008, 12:22 PM
Seems all very exciting..!!

A few questions before I jump in please.

1) If forum moderators use Iphones and Blackberrys can they still do all their moderation tasks? (Delete as spam, moderate threads, Soft delete, hard delete, ban users, move threads, merge threads etc)

2) Is there any reason a member already using an Iphone to post on the forum would be unhappy if they were suddenly forced to use the dedicated Iphone style? Or should they all jump for joy?

3) Conceptual comprehension problem.. Is this a "one stop' set up for Iphone, Windows Mobile, and Blackberry viewing? - or do I also have to go get and install those individual style templates myself? (in other words - Is this a 'style router' or does it take care of everything - device detection and style templates.)

Many thanks!

:)

dartho
08-08-2008, 12:54 PM
This is just a "style router" and can detect most mobile devices. It can also differentiate 'Windows CE' and iPhone devices and assign defined styles to these devices if you wish.

Moderation tasks are taken care of in styles, not this. Given the stripped back nature of mobile styles I doubt you'll have anything but basic delete posts/threads moderation tools.

Your iphone users may jump for joy if they pay a premium for bandwidth and you force them to a low bandwidth style, but that will come at a loss of functionality - I'm sure they'll let you know :D

Jah-Hools
08-08-2008, 01:06 PM
Ahh, Ok I get it!

Many thanks for explaining..

Would it be uncool of me to ask where to get the styles from to use with this?

Iphone
Blackberry (but "mobile view" seems to work fine)
Windows Mobile
(any others needed? Palm?)

Can you (or anyone) advise / suggest a configuration that would be good to run with? My forum members are quite geeky, hip to technology, so quite a lot of PDAs in use..

Sorry for being so lame..

Thanks

dartho
08-08-2008, 01:32 PM
All the ones I know of are listed in the first post :up:

I'd go with mine first for all devices :) Then see what they say from there...

the Elforro one looks real purty, your iPhone users may like that. It might work OK for PDA's too

Jah-Hools
08-08-2008, 01:57 PM
oops! Thanks, missed that.. Doh!

EvilJohn
08-09-2008, 01:37 AM
Thanks, installed.

lim(x?-5x?) = ∞
08-11-2008, 12:19 PM
Whats ther difference between "Enable This Product?" and "Enable Mobile Device Detection?" options?

dartho
08-11-2008, 09:40 PM
You can have mobile device detection disabled (Nokia, Ericsson phones etc), and iPhone and/or Windows CE Device detection enabled.

Or disable the entire product

Ted S
08-11-2008, 11:26 PM
Again.... great addon and skin. I've spent some time customizing the skin for my particular sites [as everyone probably should] and my users are loving it. Every site needs to use this.

dartho
08-12-2008, 12:21 AM
Thanks. Here's hoping vBulletin do something about being mobile friendly out of teh box come version 4!

ArnyVee
08-22-2008, 12:16 PM
++ tagged ++

Don't have a big need for this now, but I probably will in the near future. :D

cmeinck
08-28-2008, 03:48 PM
Is there a way to turn off the detection on some templates. Here's my dilemma. I have two mobile templates. The second is a modification of main template, sans ads. When people hit the default template with an iPhone, I want them directed to mobile template #1. However, I also want to offer them the option of selecting mobile template #2.

If this add-on doesn't work, can anyone offer recommendations as to what code I have to use on the default template to make the initial template assignment?

Thanks

dartho
08-28-2008, 09:47 PM
by template I assume you mean style? This addon forces the style, can't be changed by the user.

Mellow
08-31-2008, 02:11 PM
It would be cool if this would detect a phone then ask the user if they wanted the PC or Moble style.

dartho
09-02-2008, 07:46 AM
This is planned one day ... one day.....

Beth
09-04-2008, 01:27 AM
Can I change from the standard colours to match my site? and if so, how? I've tried changing on my test forums, and the colours I've changed to are showing up in the little boxes in the Admin CP - but not on the style that loads on the forum. :confused:

dartho
09-04-2008, 02:22 AM
if you are referring to my mobile style, HI Beth, all colours are defeined in the wireless.css file - not in the Admincp.. This is the thread for the autodetect addon which can be used with any style

Beth
09-04-2008, 05:11 AM
Oh d'uh! :o Sorry! Playing catch up with all the developments in vB and my head is melted! I had downloaded this and marked it so I could install it when i was less melted!

Thanks Dartho.

I'll probably be back - but on the right subject for the thread.

masterweb
09-07-2008, 07:18 AM
Installed dude, i'll test this during the day and i'll post here if any problem appears, thanks a lot and NOMINATED!!!.

vox666
09-07-2008, 08:39 PM
Goooood!!!!

Mansour
09-07-2008, 08:48 PM
Hi

Good job, I was looking for something like this. thanks.

I have some suggestions, is it possible to show the number of user who are accessing the forum through a mobile device?

Add the total number of mobile users in "Currently Active Users".
Show mobile icon next to a username in "What's Going On?" box.
Show mobile icon next to a username in the post if he currently logged on using mobile.


Thanks for this grate add-on.

dartho
09-11-2008, 12:17 PM
Nice suggestions - I guess these would be done based on which style a user is viewing your site with. I'm a bit busy, but if I have a moment of clarity, I'll have a go - if anyone else has an idea how to do this, I'd be happy to incorporate it or you could make an add-on ...

codemafia
09-14-2008, 04:16 PM
it would really be nice if this mod not only switched the skin for mobile users but also only displayed certain forums for forum users aswell. If this may have sparked a light bulb for you and its something you code in the future please update me!

sweede
09-15-2008, 09:08 PM
Nokia sidekick user agent
Mozilla/5.0 (Danger hiptop 3.4; U; rv:1.7.12) Gecko/20050920

kyle1745
09-18-2008, 01:30 AM
Ok I installed this and it seems to adjust to the mobile style on my Blackberry but I am unable to see my forums. I did have to add the recommended template change to disable vbadvanced, but even with that I get the mobile page, but I am unable to see any forums. Its just a page with title links and footer.

I am running vBulletin 3.7.3 Patch Level 1...

Thanks for any ideas,
Kyle

inbrissy
09-18-2008, 02:22 AM
might be a silly question, but would it be possible to have an option to set for specific users to NOT view the optimized skin?

Mainly because things like "Who is online" options are not available in these optimized skins, which is useful for the moderators and admins.

With this enabled, you can't go back to the original skin.

dartho
09-18-2008, 02:32 AM
Kyle - could you let meknow your sites address and I'll have a look

inbrissy - I wouldn't iumagine it would be too difficult, there are probably other addon's which can stop speficied users/groups from using specific styles.

MentaL
09-20-2008, 01:47 AM
This work with a PSP browser?

MentaL
09-20-2008, 02:00 AM
Anyone wanting to help me make a SEO friendly list Ide appreciate it, ive got so far.


Googlebot
MSNbot
Yahoo Slurp

dartho
09-20-2008, 03:38 AM
Yep - works on PSPs

As for the search engines list, keep an eye on Who's Online for a few days with Display User Agent turned on and you'll soon find the active ones on your site

kyle1745
09-21-2008, 09:09 PM
Sent you a PM with my site.

Kyle - could you let meknow your sites address and I'll have a look

inbrissy - I wouldn't iumagine it would be too difficult, there are probably other addon's which can stop speficied users/groups from using specific styles.

dethfire
09-26-2008, 07:39 PM
is it confirmed this detects all mobile devices?

dartho
09-26-2008, 09:10 PM
no, it doesn;t detect all mobile devices

dethfire
09-26-2008, 09:24 PM
no, it doesn;t detect all mobile devices

is there a list that could be added so it does?

dartho
09-26-2008, 09:48 PM
no, as the list is variable and rather large. Suffice to say it detects many, if not most, and there is a facility for the site admin to manually add detection of any unsupported devices he or she may discover

ekantnl
09-29-2008, 07:50 AM
Hello Dartho,

your mod is working like a charme on the mobile devices I have seen till now. Thank you for your work!

I have a question / feature request. I dont know if it is possible or not to code it.

Some forums and subforums are redirected (Forum Link) to vbulletin scripts like vbclassified, reviewpost etc. These scripts do not look good on a mobile device.

So.. Is it possible to exclude certain forums to show up when viewing with a mobile device?

Eric

dartho
09-29-2008, 11:44 AM
You just want to hide the forums from forumhome, or you don;t even want posts to show which are in these forums (say in "New Posts")?

You could possibly hide forums with a few extra conditionals in your templates - but to hide threads/posts from searches etc also is a bit more involved.

It may be easier to disable the add-ons rather than hide them so that mobile users will see them as normal forums and still get the content without the bells and whistles...

SIINSI
10-08-2008, 12:41 AM
For some reason, some of my users are getting the "Posted via Mobile Device" under there posts even when posting from a PC. Any ideas why?

I have 3 styles. A light style a dark style and your mobile style.

Thanks,
Miguel

dartho
10-08-2008, 12:51 AM
That won't be related to this - what addon are you using to append that message?

robgtheengineer
10-11-2008, 02:29 PM
Not working on Zavine.com. Installed this plugin with the mobile theme.

Fungsten
10-12-2008, 08:00 PM
For some reason, some of my users are getting the "Posted via Mobile Device" under there posts even when posting from a PC. Any ideas why?

I have 3 styles. A light style a dark style and your mobile style.

Thanks,
Miguel

Some of my users are getting that too. I left a message for the author of the Mobi style.

dartho
10-12-2008, 11:56 PM
Not working on Zavine.com. Installed this plugin with the mobile theme.

I'm guessing it is mis-configured - or possibly conflicting with another add-on.

nhlchuck
10-20-2008, 10:44 PM
Is there a way, on the users end, if the site has auto detect on that I can view the standard style on an Ipod and not the mobile?

dartho
10-21-2008, 12:36 AM
you can specify which style to display to ipod/iphone users.

m@ilm@n
10-28-2008, 04:23 PM
Silly question im sure, everything seems to be working great but any time the user post his/her signature is not attached to the post? Is there any way to edit this so that if you do post from your mobile that your sig will be attached so when you get back on your PC your sig is in your posts?

trigatch4
10-29-2008, 03:31 PM
1) When users are viewing the mobile version, there is no way to change BACK to the other styles, even with style selection enabled and numerous styles active.

2) I LOVE the fact that its optimized for mobile, but most of my mobile users are visiting from phones that have "full web browsers" and I was hoping for a style that, while optimized for mobile, still includes graphics and pictures and all that jazz... just quicker to load and with proper dimensions...

Appreciate help on either of these!

dartho
10-29-2008, 09:20 PM
1) That is correct - it is by design. If you wish to allow users to change between styles, then you don't need this add-on

2) Assuming you ar eusing the mobile style I made, you can 'enable' smiles and images by removing the 'replacement variables' defined in the style

nureeves
10-30-2008, 02:35 AM
hello ..
i've installed it on my forum, but my default style still loaded rather than its mobile style
did i miss something? i use opera on mobile

trigatch4
10-30-2008, 02:56 PM
Dartho... you make good points. The thing is, I want to FORCE the user to the mobile version initially but be able to switch/use the full version if they wish. Otherwise, if it STARTS on the full version and they are able to switch TO the mobile version, I think they are much less likely to see where/how to switch since there is so much going on. Whereas a link to use the FULL VERSION on the mobile theme would be easily spotted.

Secondly, where can I find the Replacement Variables?

EDIT: Regardless, I should add you've done a great job and thanks for the valuable addition to the community!

gim
10-31-2008, 06:14 PM
Thanks for this great plugin :)

zane99
11-02-2008, 02:55 PM
Hi, great mod.

However seems to be running ok for some users and not others. at the moment i think its the majority of blackberry users which it is not working for.

any ideas?

cheers

dartho
11-02-2008, 07:45 PM
They are probably new models which have a useragent which sin;t detected by this add-on. could you check their useragent strings and post back here or PM me?

wma
11-03-2008, 08:57 PM
hello,

a great work! it works fine for my mobile users, include iphone & co.

now, some users ask to change the rule, how the detector works. some iphone user (and others) want to visit my board with the original style. i think i can realize taht with the following steps:


1. make a subdomain like mobile.exampleforum.com

2. route the new subdomain (http forwarding at the server) to one of the mobile style url, to let the detector find wich style is prefered (cellular or iphone)

3. if a mobile user want to visit the board with normaly style, he can visit www.exampleboard.com

4. but ... i must find the variable $_SERVER['HTTP_USER_AGENT'] in the normaly style to kill them. because the detector want to route the mobile users to the style.

and 5th: my problem is, i didn't find your variable $_SERVER['HTTP_USER_AGENT'] in the styles. can you give me a tipp please?

and the next problem is, i don't want that the PC users can visit my mobile styles. and i didn't know how i can solve these problem.

i think, i install the add-on but only on my mobile style...


is there any way to solve my wish?


sorry for my bad english ;-)

best regards,
tom

dartho
11-03-2008, 09:59 PM
I think it may be easier to go about this in the opposite manner.

This is untested!

Create a sub-domain like "pc.exampleforum.com" and park it on the same web space as your main forum

Create a new plugin called "Force to Default Style" on "fetch_style" hook execution order 10 with the following code:

$pc_url= "pc.exampleforum.com";
if(preg_match('/'.$pc_url.'/i', $_SERVER['HTTP_HOST'], $match))
{
$styleid=x;
}


change the x on th line $styleid=x; to be the styleid number of your default style.

Tell your mobile users that if they wish to view the default style, they should visit pc.exampleforum.com or add a link in your mobile style navbar to this subdomain called "Default STyle" or some such thing.

This way mobile visitors to your site are still detected and given a mobile skin, but they can choose to view the site using the default style.

If you make your mobile styles not user selectable, they will not be able to view you site form their PC's via the mobile style (they could with User Agent spoofing - but there's not much you can do about that)

Hope this helps.

nb - this will only work correctly if all your links are relative - hard code full path links and addons such as VBSEO may break this.

dartho
11-03-2008, 10:05 PM
Dartho... you make good points. The thing is, I want to FORCE the user to the mobile version initially but be able to switch/use the full version if they wish. Otherwise, if it STARTS on the full version and they are able to switch TO the mobile version, I think they are much less likely to see where/how to switch since there is so much going on. Whereas a link to use the FULL VERSION on the mobile theme would be easily spotted.

Secondly, where can I find the Replacement Variables?

EDIT: Regardless, I should add you've done a great job and thanks for the valuable addition to the community!

Check the post above (https://vborg.vbsupport.ru/showthread.php?p=1658919#post1658919)for a work around which may make it possible for mobile users to choose to view the site via it's default style.

Replacement Variables are in your admincp - Styles and Templates, Style Manager, All Style Options (for the mobile style) right at the very end.

Quarterbore
11-03-2008, 11:44 PM
dartho,

Can we work on a small test script that would show the user what useragents are associated with their mobile device? I am going to play with the code and post here if I get a fix but I have one member that this is not working for and they can't help me figure out what the issue is either.

I'll post what I come up with...

That was easier then I expected...

Create a file "test.php" and to that file add:


<?php
echo 'User Agen Test Script.<p>';
echo 'Your user agent: <p>';
echo $_SERVER['HTTP_USER_AGENT'];
exit();
?>


When your users access the file their browser says something like:

User Agent Test Script:

Your use agent:

BlackBerry8310/4.2.2Profile/MDP-2.0 Configuration/CLDC-1.1 VendorID/102

From that, you can add useragents to give access to mobile users!

You can see the test script here:

http://www.vbclassified.com/test.php

dartho
11-04-2008, 02:59 AM
Good stuff, QB :up:

fredang85
11-06-2008, 03:54 PM
What do you need to edit in the template for only a few forums to show up?

Thanks.

gamerfu
11-13-2008, 06:29 AM
PSP is not detected. PSP drop-down menu will not auto-refresh when choosen "Mobile" style.

dartho
11-13-2008, 07:31 AM
PSPs should be detected - what is the user agent string of the device?

ceech
11-13-2008, 03:53 PM
thanks for this. just installed.

RedTrinity
11-14-2008, 09:45 AM
Great add-on, installed and testing at the moment!

One of my users (who is using her phone internet to test the site) has reported that it all works well with accessing/login etc, but when she tries to submit a post, she gets logged out.

Strangely enough, the post was still made, but it was blank apart from the "Posted via mobile device" auto message.

Any ideas? Appreciate your help :)

zane99
11-14-2008, 05:58 PM
ah ok i fix one problem now onto another lol:

https://vborg.vbsupport.ru/external/2008/11/48.jpg

When users try to post it says security token missing or something........


Help?

dartho
11-14-2008, 07:33 PM
GamerGirl - That would be related to the style, not this addon. I see you're using the one I wrote and the add-on that goes with it. Are you using the latest version? I also see it's been modified slightly. Do you still get errors if you revert all templates to their original state (make a backup forst so you can re-implment your changes)

Zane - that's related to the style which isn't my one, however if you do a search in that style for:

<input type="hidden" name="s" value="$session[sessionhash]" />


and add this underneath:


<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />


that should fix it

gamerfu
11-15-2008, 08:23 AM
PSPs should be detected - what is the user agent string of the device?
I will ask my user what browser and PSP version they are using.

biome.pat
11-19-2008, 05:17 PM
Just noting that Google Chrome pretends to be safari, so if you have an exception for a safari style, google chrome will use it too.

omanmoon.net
11-23-2008, 11:49 AM
mmmmm
now it's not work after upgrade to 3.7.4 PL1

after sign in the page change to white color only !!

before logged in the forum showing no problem ! @_@

TheWhite
11-27-2008, 03:46 AM
1) That is correct - it is by design. If you wish to allow users to change between styles, then you don't need this add-on

2) Assuming you ar eusing the mobile style I made, you can 'enable' smiles and images by removing the 'replacement variables' defined in the style

What do i have to do to add just the smiles in the posts and replying?

grecostimpy
11-30-2008, 06:21 PM
I think it may be easier to go about this in the opposite manner.

This is untested!

Create a sub-domain like "pc.exampleforum.com" and park it on the same web space as your main forum

Create a new plugin called "Force to Default Style" on "fetch_style" hook execution order 10 with the following code:

$pc_url= "pc.exampleforum.com";
if(preg_match('/'.$pc_url.'/i', $_SERVER['HTTP_HOST'], $match))
{
$styleid=x;
}


change the x on th line $styleid=x; to be the styleid number of your default style.

Tell your mobile users that if they wish to view the default style, they should visit pc.exampleforum.com or add a link in your mobile style navbar to this subdomain called "Default STyle" or some such thing.

This way mobile visitors to your site are still detected and given a mobile skin, but they can choose to view the site using the default style.

If you make your mobile styles not user selectable, they will not be able to view you site form their PC's via the mobile style (they could with User Agent spoofing - but there's not much you can do about that)

Hope this helps.

nb - this will only work correctly if all your links are relative - hard code full path links and addons such as VBSEO may break this.

To get around the detection (since some users like the full version on their phone and some like the mobile version) and accomplish a much less intricate way of what you propose above, can I just create a subdomain mobile.mydomain.com that redirects to the styleid of the mobile style on the main domain?

If you want the mobile style, you visit mobile.mydomain.com (and get redirected to the styleid of the mobile style) ...if you want the full version you visit mydomain.com. Would there be any effects from doing this? Would it work correctly? My guess would be that they may get cookied and stuck in the mobile style....

OR....could a second instance of VB be created on the subdomain (pointing to the same database) and somehow just use the mobile style? (I believe you already have a hack for this)

Thanks! EXCELLENT mods dartho, my users are raving.

grecostimpy
12-01-2008, 06:45 PM
To get around the detection (since some users like the full version on their phone and some like the mobile version) and accomplish a much less intricate way of what you propose above, can I just create a subdomain mobile.mydomain.com that redirects to the styleid of the mobile style on the main domain?

If you want the mobile style, you visit mobile.mydomain.com (and get redirected to the styleid of the mobile style) ...if you want the full version you visit mydomain.com. Would there be any effects from doing this? Would it work correctly? My guess would be that they may get cookied and stuck in the mobile style....

OR....could a second instance of VB be created on the subdomain (pointing to the same database) and somehow just use the mobile style? (I believe you already have a hack for this)

Thanks! EXCELLENT mods dartho, my users are raving.

Nevermind my last post above....I parked a subdomain on top of my main domain and used your Diff Domains / Diff Styles mod. Works perfectly! Thanks!

caliman
12-02-2008, 09:46 PM
Is there anyway to force users to a skin THEN allow then the option to switch back to the default skin?
If not, it would be a great feature.

ArnyVee
12-03-2008, 12:38 AM
That's one of the add-ons, is it not?

I just installed this today and am testing it out. The customizable add-on helps with that Caliman.

caliman
12-03-2008, 01:13 AM
That's one of the add-ons, is it not?

I just installed this today and am testing it out. The customizable add-on helps with that Caliman.

Which one?

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).

ArnyVee
12-03-2008, 05:12 AM
This is the one I used Caliman...

https://vborg.vbsupport.ru/showthread.php?t=182692

caliman
12-03-2008, 05:38 AM
Thanks Arny but that won't do what I want... I have it too...

Add a link to the default style?
Select whether to add a link in navbar or footer to get back to the default style,
This will not work in conjunction with add-ons that force the user to a style - select NO LINK if you are using such an add-on

dartho
12-04-2008, 03:37 AM
See here https://vborg.vbsupport.ru/showthread.php?p=1658919#post1658919 for a possible way to do this....

24hourForum.com
12-04-2008, 03:47 AM
thank you installed

caliman
12-04-2008, 04:16 AM
See here https://vborg.vbsupport.ru/showthread.php?p=1658919#post1658919 for a possible way to do this....

Thank you. I may go this route. Although I have VBSEO of course. :erm:

dartho
12-04-2008, 06:57 AM
VBSEO *may* not cause issues - or it may... I guess you'll soon tell us :-) I don;t use it, but they seem to be a helpful bunch, so if you do have issues they may be able to come up with a work around/fix...

WoodiE
12-08-2008, 10:19 AM
I'm having a problem with this mod that when a member views the site using his or her cell phone then later goes and views the site on their PC via IE or Firefox that the mobile style is still selected for them.

What needs to be changed to allow them to be set to the correct style when viewing the forum on a PC?

dartho
12-08-2008, 07:07 PM
Is this with all members or a single member?

Nadeemjp
12-10-2008, 12:29 AM
will use this for later.
nice hack though

darkdan
12-23-2008, 05:34 PM
Fixed.

Thanks.

dartho
12-23-2008, 09:32 PM
only if configured to do so!

Chevy II
12-30-2008, 11:16 PM
Thanks, installed and works great!

I have a question, or request though. Is it possible to have any users that are connect via a wireless device to not use their normal signature block, and they would use something along the lines of the mandatory statement that must be used on all email sent via blackberrys or Iphones, etc.

Posted from my Blackberry wireless handheld device.

Would this be possible to set in the autodetect add-on?

fta2k
12-31-2008, 06:01 AM
Thanks, installed and works great!

I have a question, or request though. Is it possible to have any users that are connect via a wireless device to not use their normal signature block, and they would use something along the lines of the mandatory statement that must be used on all email sent via blackberrys or Iphones, etc.

Posted from my Blackberry wireless handheld device.

Would this be possible to set in the autodetect add-on?


If it's your own site why not just make a second user such as Chevy II Mobile with all the same permissions and make your own signature block for that id.




By the way, installed and working great along with the hide from chooser addon.

Thanks.

Goomzee
12-31-2008, 06:07 AM
thankx

jbeam
01-22-2009, 02:03 PM
I have been running this mod for several months now and I don't think I can live without it. I use my phone (MotoQ) keep up to date and check on the forum when I am away from the computer and I find it works great.

However, I have a couple folks with the Blackberry Curve that are not getting their PM's in a timely manor. I have asked and it doesn't seem like anyone but Curve users have this problem.

I thought it was maybe a cache issue, so I had them clear their cache on the phones and they still could not see PM's that they know are in their inbox. After a few days, the older PM's show up, but none of the newer ones.

All other functionality seems to be good.

I would be shocked if it's an issue with this mod, but I was wondering if anyone else has had this problem.

Nadeemjp
01-22-2009, 02:40 PM
does this have 3.8 compatibility?

dartho
01-23-2009, 12:06 AM
@jbeam - I doubt it would be related to this addon. Certainly sounds like a caching issue to me. Do they get new PM notification but no PM's showing, or not even notified?

@Nadeemjp - I upgraded my site to 3.8 and this still appears to work OK for me

MissKalunji
01-23-2009, 12:32 AM
yeah mine working on 3.8 too

jbeam
01-26-2009, 02:48 PM
@jbeam - I doubt it would be related to this addon. Certainly sounds like a caching issue to me. Do they get new PM notification but no PM's showing, or not even notified?

I really didn't think it would be this mod either but I figure it was worth asking.

As for the notification / actually getting the PM's, it's been a mixed answer.

Some people say that they get the notification, but then they look they have no new PM's and others are saying that they don't even get notified (however, they might have pop-up notification turned off).

I am going to try and swing by a cell store and play with a Curve and see if I can get it to happen.

Chevy II
01-28-2009, 02:09 AM
Is there a way to hide this style from the drop down menu for users to select the mobile style while logged in regulary from your computer? Because if users select it, there is no way for them to select another style to go back

Thanks

dartho
01-28-2009, 08:13 AM
see here https://vborg.vbsupport.ru/showthread.php?t=183185

harlita
01-29-2009, 03:58 AM
YOU ROCK!!

Running 3.8.1 and testing my site from my HTC Touch Diamond using IEMobile, Skyfire and Opera Mobile.

LOOKS OUTSTANDING!! Redirect is perfect - it autodetects and loads the forums in the mobile style without fail.

Damn fine job there sir.

5 stars.

Kevlar
02-01-2009, 07:58 PM
Some users who automatically get pushed to your mobile style would like the ability to turn it off and go back to the regular default style. Is there an option for this?

Works great otherwise...

Dewaniya
02-06-2009, 12:27 PM
Is it stable?

Chevy II
02-11-2009, 10:26 PM
I am running VB 3.7.4 and have this mod installed as well as Dartho's mobile style and it's working very well. However, yesterday and today I have had reports from 2 different users that have BB Bold's and they are unable to login and it eventually locks up their device.

What could be wrong, has anyone else had this problem with users? Can this be fixed?

Biker_GA
02-18-2009, 10:28 AM
I've run into a slight issue with this and I'll be dipped if I can figure it out. Seems some devices aren't being detected when hitting the site. For example, I have 4 users who all have iPhones. 3 of them continue to see the normal style and only one is being redirected to the mobile style. Getting the same issue with a user who has a Tilt. We're running 3.8 and the detect Windows CE and iPhone have been checked. I even went so far as to include CE, iPhone and Safari in the custom list. Same issue. Not sure if it's an issue with the individual phone, or with the installation. Any ideas?

Edit ---

I think we've fixed it. I added your modification to the portal template for the style and all my users are now seeing the forum in the mobile style. Don't know why that would have affected it, but my mobile users are a happy bunch now. :)

testbot
02-19-2009, 12:09 AM
this seems to work on my pda/smart phone but not my verizon flip phone.

-in before why i have so many phones. hah

dartho
02-19-2009, 03:04 AM
what's the useragent string of the flip phone?

^SuiCyde^
02-20-2009, 12:39 AM
That wouldn't be to do with this add-on, it would be caused by the style you are using - check the styles threads for updates...

if that's the case how would i go about correcting that within the style if i am not using your mobile style but rather one that i created myself that works very well except for the security token missing

GOPHER said something to the extent of

Ahhh.. I did the <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> thing and it worked. Thought maybe the 3.7 version would have that in there already.

where do i add this?

dartho
02-20-2009, 04:00 AM
From memory, you'd need to add <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> to every form on your site that POSTs data...

jonah1892
03-03-2009, 06:20 PM
does this work with 3.8.1

Tourmeister
03-08-2009, 02:28 AM
does this work with 3.8.1

I have the same question. I just updated to 3.8.1 and I have folks asking me to get this mod installed.

dartho
03-08-2009, 04:24 AM
works for me

Tourmeister
03-08-2009, 06:10 AM
Excellent. I will download and give it a try! Thanks.

Sooner95
03-11-2009, 11:18 PM
since i have upgraded to 3.8.1 it is hot or miss if it works..

On my Samsung Instinct, if i use Opera Mini, it works...default browser, it does not. Another user it did not work at all for him anymore..

Any ideas?

Sooner95
03-11-2009, 11:21 PM
geez..ok now it works..LOL nevermind..

student4ever
03-21-2009, 12:33 AM
I'm new to vB and just installed v3.8.1. Already had a couple people request this for the site. Any word on updating it for v3.8?

thanks!

Tourmeister
03-21-2009, 02:27 AM
I'm new to vB and just installed v3.8.1. Already had a couple people request this for the site. Any word on updating it for v3.8?

thanks!

Working perfect for me on 3.8.1.

www.twtex.com

student4ever
03-21-2009, 03:45 AM
Working perfect for me on 3.8.1.

www.twtex.com

thanks - sounds like it's worth installing

roymogg
03-21-2009, 03:17 PM
Dartho,

The mod went in a treat no problems at all - tweaked the vbadvanced template just to remove the side blocks rather than completely removing as i wish to use some of the modules like the calendar. Other than that this was a easy hack.

One small issue I found is it is possible to get at the forum default template via the usecp panel and the search cloud links. Is there some mod I must do to overcome this or is it going through the relevant templates and editing them out?

great mod installed and nominated

RoyMogg:D

www.bizface.co.uk

dartho
03-21-2009, 09:35 PM
when using this add-on it shouldn't be possible to change to any other style ... ?

GCSkye
03-24-2009, 09:13 PM
when using this add-on it shouldn't be possible to change to any other style ... ?

I think it should be. My members are having an issue with their devices changing to the mobile skin and they can't switch to anything else.

Site: EverCube.Net, Currently on 3.8.1

Is it possible to have the mobile detection only detect if they are mobile when they first visit on there device?

Biker_GA
03-27-2009, 12:17 PM
If your users are using the mobile style, it shouldn't be possible to change the style. That's by design. Now if they're logging in via mobile, and later, when logging in via the PC they're still getting the mobile style, there's a setting that isn't quite right.

GCSkye
03-27-2009, 11:25 PM
If your users are using the mobile style, it shouldn't be possible to change the style. That's by design. Now if they're logging in via mobile, and later, when logging in via the PC they're still getting the mobile style, there's a setting that isn't quite right.

People have mobile devices that can handle nicer skins. By choose my members don't all want the mobile skin when on a mobile device. Complaints have surfaced over this. I'm using a custom made Mobile skin and my members have a choose to change.

Regardless of the matter, you provided no help. Troll another question.

Still looking for help on this matter.

Biker_GA
03-28-2009, 05:21 PM
Learn to read...... All I stated was this style was automatically assigned to mobile devices and usually can not be changed. Your troll comment was neither warranted or appreciated. It also states as part of the description for this modification:

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.

You can create your own mobile style and then specify that style as the default.

You can also specify a different style for Windows CE and iPhone users.

However, allowing users to specify the style they wish to use via a mobile device is not a feature of this package.

GCSkye
03-28-2009, 07:56 PM
I'm looking for someone that knows how to get this to only detect there first visit instead of constantly assigning them to mobile skin. Basically, it will put them on the mobile skin - but if they wish they can switch skins without it forcing them back onto it.

One time detection.


Example: I have opera mobile users. Some want to use the default skin and some can't handle it on there mobile so they prefer the mobile skin. If needed, I want them to be able to change skins.

Sorry if I was unclear at first, I understand what this mod does. I have it successfully set up.

EverCube.net

dartho
03-28-2009, 10:30 PM
Whilst it's not what I wrote this addon for, as I don't allow user to change styles at all (I like to have a pretty good idea how things look to visitors to my site and forcing fixed styles on them achieves this), it could probably be done easy enough...

GCSkye
03-29-2009, 06:03 AM
I have sent you a pm, thanks for the mod thus far. Works great.

dartho
03-29-2009, 07:46 AM
OK - try the attached. Basically, if a user has used the style chooser (ie. manually chosen a style), it won't override their choice.

example 1 - user visits via iPhone for first time, they get presented with iPhone skin as configured. If they change teh style to default skin, all visits from here on in will present them with default skin or what ever style they manually choose from then on

example 2 - users visits with small screen old nokia phone, they get presented with mopbile skin as configured. If they change the style to defualt skin, all visits from then on will present them with teh default skin. If their browser can't handle it and they can;t get back to the style chooser. they will not be able to view your site properly again.

proviso's - browser must accept cookeis for this to work (clearing browers cookies will reset)

GCSkye
03-31-2009, 07:13 AM
Figured cookie would be the way to go for a start. You could add an option into vbulletin option to allow this feature to be off and on if you find an alternative to cookie.

An idea would be to have it check the serial of the mobile device and store it for a day as a mobile device that had been detected already. Once it does that it will no longer detect what skin it needs to be changed to. (Again this can be a feature admins can enable and disable and possible choose to manually flush the sql or have it automatically done x days)

An alternative to sql could be a file in ftp.

GCSkye
03-31-2009, 07:25 AM
Added it to my forum and when I went to view a forum (not on mobile) I got this error:

http://evercube.net/images/errorA.png

I am currently running 3.8.1 vbulletin, and I have reinstalled the old version of the mod.

dartho
03-31-2009, 10:02 AM
Bugger - looks like I missed a closing brace, I've updated the attachment above in my last post - give it another go!

nNJ
04-01-2009, 02:57 AM
Wow, its insanely lucky I checked this tonight.

Out of the blue, I thought it would be a good idea to check back here to see if there were any updates that DIDN'T force a user to use a predefined (assumably mobile) theme.

It just so happens it payed off.. What are the odds..

Anyway, in the second scenario above, if a user changes his or her skin from the mobile skin, and are unable to change back, they can choose the style manually by typing the style id into the url.

Example:
Domain.com/forums/index.php?styleid=3.

Thanks a lot dartho, I'm on my mobile device atm, but tomorow I'm going to be uninstalling the original hack, and installing this one.

IMHO, you ought to develope this idea further. I think it will be well received by the community.

To be honest, its extremely annoying to visit my own forum (on my phone) and not be able to choose my own style. There's only so much you can do with a mobile style, and some phones can handle the full skins.

Forcing a user to use a skin doesn't make sense to me. IMO, defaulting a mobile user's to a mobile theme makes sense, not giving them the option to change it doesn't.

As an idea for a future release (should you decide to make one) would be to make the "force" aspect of this mod a boolean, (am I phrasing this right?) so that users can turn it on/off in their admin cp's.

Overall, I love this hack. This new release without the "force" just makes it that much better.

Great job, and thanks dartho!

nNJ
04-01-2009, 03:03 AM
Wow, its insanely lucky I checked this tonight.

Out of the blue, I thought it would be a good idea to check back here to see if there were any updates that DIDN'T force a user to use a predefined (assumably mobile) theme.

It just so happens it payed off.. What are the odds..

Anyway, in the second scenario above, if a user changes his or her skin from the mobile skin, and are unable to change back, they can choose the style manually by typing the style id into the url.

Example:
Domain.com/forums/index.php?styleid=3.

Thanks a lot dartho, I'm on my mobile device atm, but tomorow I'm going to be uninstalling the original hack, and installing this one.

IMHO, you ought to develope this idea further. I think it will be well received by the community.

To be honest, its extremely annoying to visit my own forum (on my phone) and not be able to choose my own style. There's only so much you can do with a mobile style, and some phones can handle the full skins.

Forcing a user to use a skin doesn't make sense to me. IMO, defaulting a mobile user's to a mobile theme makes sense, not giving them the option to change it doesn't.

As an idea for a future release (should you decide to make one) would be to make the "force" aspect of this mod a boolean, (am I phrasing this right?) so that users can turn it on/off in their admin cp's.

Overall, I love this hack. This new release without the "force" just makes it that much better.

Great job, and thanks dartho!

GCSkye
04-01-2009, 05:28 AM
Bugger - looks like I missed a closing brace, I've updated the attachment above in my last post - give it another go!

Not that time, you got it. Strongly appreciate this and I can see others are as well. Only complaint I got from this mod is members couldn't change there skin at will. Thanks for the updates.


To be honest, its extremely annoying to visit my own forum (on my phone) and not be able to choose my own style. There's only so much you can do with a mobile style, and some phones can handle the full skins.

Forcing a user to use a skin doesn't make sense to me. IMO, defaulting a mobile user's to a mobile theme makes sense, not giving them the option to change it doesn't.

Exactly what I was thinking. Glad to see dartho took some action on this.


As an idea for a future release (should you decide to make one) would be to make the "force" aspect of this mod a boolean, (am I phrasing this right?) so that users can turn it on/off in their admin cp's.

Exactly what I was suggesting. Would be something to look forward too.

Sooner95
04-06-2009, 10:24 PM
Ok, I give up. ever since upgrading to 3.8.1 this has not worked. Now i am running 3.8.2 and still no good. I have removed it, reinstalled it, adjusted the settings, and still nothin.

I really like this addon, as do several of my users, but it's not doing us any good now.

also tried to put in a defined string for my phone..

TELECA-/2.0 (BREW 3.1.5; U; EN-US;SAMSUNG; SPH-M800; Teleca/Q05A/INT) MMP/2.0 Profile/MIDP-2.1 Configuration/CLDC-1.1

Still does not detect the mobile theme.

dartho
04-07-2009, 03:34 AM
try adding just "SPH-M800" as a user defined useragent string and see how you go. I know it's obvious, but you also need to configure a style for the custom/user defined section and enable it ...

Sooner95
04-07-2009, 07:14 PM
Did all that, still nadda..even tried another "lite" style and it still goes to my default.

GCSkye
04-07-2009, 09:29 PM
Did all that, still nadda..even tried another "lite" style and it still goes to my default.

Did you edit it in your vbulletin options to select the new style as the mobile default?

dartho
04-07-2009, 09:57 PM
If I spoof my useragent string to TELECA-/2.0 (BREW 3.1.5; U; EN-US;SAMSUNG; SPH-M800; Teleca/Q05A/INT) MMP/2.0 Profile/MIDP-2.1 Configuration/CLDC-1.1 and visit your site, I get your mobile style :confused:

Sooner95
04-09-2009, 05:39 PM
GC- Yes, that was done..

dartho. well if it works then it works..not much else I can say. I have notcied that it works more often using Opera Mini, than anything else..so I am just going to write it off as a crappy phone browser.

Appreciate the time..

Patrickftw
04-11-2009, 05:58 AM
Is it compatible with vBulletin 3.8.x? Because I can't seem to get it to work.

Biker_GA
04-11-2009, 03:17 PM
Running it on 3.8.1 and it works wonderfully.

Sooner95
04-11-2009, 08:34 PM
Just to confirm..seems I am the only one that has an issue..my other members state it works good..so that's enough for me..

Thanks again..

on 3.8.2

jgruberman
04-30-2009, 02:33 PM
PROBLEM:

Installed... all looks good until I go to hit submit on a reply to a thread and I get:

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

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you receved this error.


SOLUTION:

In the SHOWTHREAD template in your mobile style, find:

<input type="hidden" name="s" value="$session[sessionhash]" />

Directly Below, ADD:

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

dartho
04-30-2009, 09:32 PM
Thanks, but that is a problem (and solution) with the style you have installed - nothing to do with this add-on.

dancue
05-02-2009, 06:31 PM
This is great. Works well with 3.8.

Now. How do I get it to go directly to index.php instead of the vbadvanced page?

Biker_GA
05-02-2009, 07:16 PM
In your mobile style, edit your adv_portal template to something like this:


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

$header

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

$footer

</body>
</html>

dancue
05-06-2009, 08:19 PM
thanks.

I've figured how to do it using htaccess.

Thanks again.

dancue
05-07-2009, 08:23 PM
Alright. I guess I am gonna use your code Biker_GA.

Thanks.

btw...What does the two stand for? Isn't that the amount of time in seconds before it redirects?

yellowpeter
05-08-2009, 03:52 AM
Excellent mod.. I'm putting it at our forum

dancue
05-11-2009, 11:30 AM
Alright. Now I have an issue with going back to the normal version. If a user decides they would like to use the normal version of your forum from their phone and they press the button "normal version" it will redirect them to the same skin.

Any fix on this?

Biker_GA
05-11-2009, 11:41 AM
**banging head on desk**

From the description of the mod:

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.

Bold by me.

dt-pain
05-12-2009, 02:30 AM
Seems the Nextel Blackberry Curve is not working well for this mod. Is there a way to add it and make it work? Or is there a new version out yet?

Biker_GA
05-12-2009, 03:09 AM
Define not working. I have members using many different Blackberry models (including the Curve) and they're singing my praises for this mod. LOL

dancue
05-12-2009, 03:22 AM
**banging head on desk**

From the description of the mod:



Bold by me.

:)

hence the "Any fix on this?" question...

Biker_GA
05-12-2009, 04:40 AM
Why should something that is "by design" be fixed? It's SUPPOSED to be that way.