PDA

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


Pages : [1] 2

dartho
17 Mar 2008, 02:38
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 (http://www.vbulletin.org/forum/member.php?u=110638) Mobile, Cell, Phone, PDA, iPhone Style (http://www.vbulletin.org/forum/showthread.php?t=174375) for vBulletin 3.7 (<-- yep, that's mine)
ElForro's (http://www.vbulletin.org/forum/member.php?u=132539) iPhone / iPod Touch Optimized Style (http://www.vbulletin.org/forum/showthread.php?t=171947)
Zachery's (http://www.vbulletin.org/forum/member.php?u=18025) vB Lite Style (http://www.vbulletin.org/forum/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 (http://www.vbulletin.org/forum/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
17 Mar 2008, 02:53
I'll give it a shot... thank you very much!

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

Very well done!

Nominated too!

NeuroLancer
17 Mar 2008, 03:14
Great :up:

5 stars and nominated also.

R1lover
17 Mar 2008, 03:19
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
17 Mar 2008, 03:29
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
17 Mar 2008, 03:30
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
17 Mar 2008, 03:31
[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
17 Mar 2008, 03:38
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
17 Mar 2008, 06:46
Dartho,

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

dartho
17 Mar 2008, 07:37
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
17 Mar 2008, 08:17
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
17 Mar 2008, 18:07
I like this alot but I need to find some better styles for pda and other devices.

KURTZ
17 Mar 2008, 18:15
really interesting hack ... ;)

SEOvB
17 Mar 2008, 20:39
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
17 Mar 2008, 22:32
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
18 Mar 2008, 13:37
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
18 Mar 2008, 20:59
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
18 Mar 2008, 23:09
@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
19 Mar 2008, 15:21
As always, you are a genius...

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

Thanks!

Regards Jason :)

nanaimobar
20 Mar 2008, 18:43
Can iPhone, cell phones, and other mobile devices connect to a strictly https site?

dartho
20 Mar 2008, 22:22
Yes - most would support https...

Jase2
20 Mar 2008, 22:24
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
24 Mar 2008, 09:06
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
24 Mar 2008, 09:47
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
24 Mar 2008, 10:07
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
28 Mar 2008, 02:57
Installed -- thank you very much!

Regards Jason :)

Jase2
02 Apr 2008, 21:05
Hello Dartho,

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

dartho
02 Apr 2008, 23:18
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
03 Apr 2008, 00:54
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
03 Apr 2008, 01:29
Is the mobile style in Style manager ticked as user selectable?

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

RichTJ99
08 Apr 2008, 01:27
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
08 Apr 2008, 03:04
@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
08 Apr 2008, 05:01
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
08 Apr 2008, 05:40
working good so far thanks!

dartho
08 Apr 2008, 06:32
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 (http://www.vbulletin.org/forum/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
08 Apr 2008, 13:50
Im just not sure how to get the job done without forcing the user to be stuck using the mobile style.

dartho
08 Apr 2008, 14:26
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
02 May 2008, 16:28
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
02 May 2008, 17:19
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
02 May 2008, 17:40
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
02 May 2008, 19:25
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
11 May 2008, 20:45
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
11 May 2008, 21:02
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
11 May 2008, 21:16
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
11 May 2008, 23:23
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
14 May 2008, 14:31
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
14 May 2008, 14:57
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
15 May 2008, 07:53
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
15 May 2008, 11:29
I'm sure a plugin could be written to do this, but not sure how myself ...

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

http://www.vbulletin.org/forum/showthread.php?t=132820&highlight=www.howardforums

Darkstarproject
20 May 2008, 22:58
Just what I needed!! Thanks, I'll be testing this all the time.

verino
21 May 2008, 08:37
Thank's and installed.

Just need to test it with my friends :D

Robert Waanders
23 May 2008, 10:35
Installed it on my forum, works great! Thanks for all of your effort.

Robert

verino
24 May 2008, 01:55
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
24 May 2008, 02:27
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
24 May 2008, 06:08
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
14 Jun 2008, 16:14
Installed and Marked! Excellent!

b-roll
15 Jun 2008, 13:17
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
15 Jun 2008, 14:07
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
18 Jun 2008, 17:50
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
18 Jun 2008, 23:44
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
18 Jun 2008, 23:52
Thanks Dartho Perfectly!

jbeam
21 Jun 2008, 20:54
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 (http://www.vbulletin.org/forum/showthread.php?t=174375) with the Extend and customize add-on (http://www.vbulletin.org/forum/showthread.php?t=182692).

dartho
22 Jun 2008, 00:09
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
22 Jun 2008, 10:06
Installed and seems to be working well for me. Many thanks!

firefox100
23 Jun 2008, 15:46
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
26 Jun 2008, 02:22
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
26 Jun 2008, 03:06
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
30 Jun 2008, 06:23
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
30 Jun 2008, 07:10
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
30 Jun 2008, 08:25
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
30 Jun 2008, 08:29
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
03 Jul 2008, 12:50
Is there a way to exclude Opera Mini when using this mod?

dartho
03 Jul 2008, 13:06
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
04 Jul 2008, 04:23
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
04 Jul 2008, 06:14
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
04 Jul 2008, 07:08
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
04 Jul 2008, 13:44
anybody with an example site for testing with mobile phone ?

Paxion
05 Jul 2008, 21:09
www.mobile.starcityracing.com

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
06 Jul 2008, 10:09
thanks paxion.

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

Fireproof
08 Jul 2008, 04:11
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
08 Jul 2008, 05:59
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
08 Jul 2008, 15:48
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
11 Jul 2008, 15:25
has anyone gotten this to work on the lg voyager?

dartho
12 Jul 2008, 01:58
If you can let me know the USERAGENt string I can make sure it is compatible...

IcheeWaWa
12 Jul 2008, 14:57
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
12 Jul 2008, 15:17
I forgot about custom useragnet strings :) Will add this one in next version...

Banana
23 Jul 2008, 00:23
'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
23 Jul 2008, 01:47
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
23 Jul 2008, 12:41
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
23 Jul 2008, 13:29
Add 'iPhone' to "Useragent Exceptions". Devices matching user agents strings listed here will not be detected as a mobile device.

Akakios1
30 Jul 2008, 21:36
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
04 Aug 2008, 16:29
excelente... thank you

dartho
05 Aug 2008, 00:24
Glad it's working for you!

gpc10347
06 Aug 2008, 05:12
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
07 Aug 2008, 13:06
You'll need to edit your adv_portal temaplte in this skin - See here for a sample: http://www.vbulletin.org/forum/showthread.php?p=1566413#post1566413

gpc10347
07 Aug 2008, 15:07
You'll need to edit your adv_portal temaplte in this skin - See here for a sample: http://www.vbulletin.org/forum/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 Aug 2008, 14:22
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 Aug 2008, 14:54
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 Aug 2008, 15:06
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 Aug 2008, 15:32
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 Aug 2008, 15:57
oops! Thanks, missed that.. Doh!

EvilJohn
09 Aug 2008, 03:37
Thanks, installed.

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

dartho
11 Aug 2008, 23:40
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
12 Aug 2008, 01:26
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
12 Aug 2008, 02:21
Thanks. Here's hoping vBulletin do something about being mobile friendly out of teh box come version 4!

ArnyVee
22 Aug 2008, 14:16
++ tagged ++

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

cmeinck
28 Aug 2008, 17:48
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
28 Aug 2008, 23:47
by template I assume you mean style? This addon forces the style, can't be changed by the user.

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

dartho
02 Sep 2008, 09:46
This is planned one day ... one day.....

Beth
04 Sep 2008, 03:27
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
04 Sep 2008, 04:22
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
04 Sep 2008, 07:11
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
07 Sep 2008, 09:18
Installed dude, i'll test this during the day and i'll post here if any problem appears, thanks a lot and NOMINATED!!!.

vox666
07 Sep 2008, 22:39
Goooood!!!!

Mansour
07 Sep 2008, 22:48
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
11 Sep 2008, 14:17
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
14 Sep 2008, 18:16
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
15 Sep 2008, 23:08
Nokia sidekick user agent
Mozilla/5.0 (Danger hiptop 3.4; U; rv:1.7.12) Gecko/20050920

kyle1745
18 Sep 2008, 03:30
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
18 Sep 2008, 04:22
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
18 Sep 2008, 04:32
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
20 Sep 2008, 03:47
This work with a PSP browser?

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


Googlebot
MSNbot
Yahoo Slurp

dartho
20 Sep 2008, 05:38
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
21 Sep 2008, 23:09
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
26 Sep 2008, 21:39
is it confirmed this detects all mobile devices?

dartho
26 Sep 2008, 23:10
no, it doesn;t detect all mobile devices

dethfire
26 Sep 2008, 23:24
no, it doesn;t detect all mobile devices

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

dartho
26 Sep 2008, 23:48
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
29 Sep 2008, 09:50
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
29 Sep 2008, 13:44
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
08 Oct 2008, 02:41
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
08 Oct 2008, 02:51
That won't be related to this - what addon are you using to append that message?

robgtheengineer
11 Oct 2008, 16:29
Not working on Zavine.com. Installed this plugin with the mobile theme.

Fungsten
12 Oct 2008, 22:00
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
13 Oct 2008, 01:56
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
21 Oct 2008, 00:44
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
21 Oct 2008, 02:36
you can specify which style to display to ipod/iphone users.

m@ilm@n
28 Oct 2008, 18:23
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
29 Oct 2008, 17:31
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
29 Oct 2008, 23:20
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
30 Oct 2008, 04:35
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
30 Oct 2008, 16:56
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
31 Oct 2008, 20:14
Thanks for this great plugin :)

zane99
02 Nov 2008, 16:55
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
02 Nov 2008, 21:45
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
03 Nov 2008, 22:57
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
03 Nov 2008, 23:59
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
04 Nov 2008, 00:05
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 (http://www.vbulletin.org/forum/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
04 Nov 2008, 01:44
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
04 Nov 2008, 04:59
Good stuff, QB :up:

fredang85
06 Nov 2008, 17:54
What do you need to edit in the template for only a few forums to show up?

Thanks.

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

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

ceech
13 Nov 2008, 17:53
thanks for this. just installed.

RedTrinity
14 Nov 2008, 11:45
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
14 Nov 2008, 19:58
ah ok i fix one problem now onto another lol:

https://www.vbulletin.org/forum/external/2008/11/48.jpg

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


Help?

dartho
14 Nov 2008, 21:33
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
15 Nov 2008, 10:23
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
19 Nov 2008, 19:17
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
23 Nov 2008, 13:49
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
27 Nov 2008, 05:46
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
30 Nov 2008, 20:21
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
01 Dec 2008, 20:45
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
02 Dec 2008, 23:46
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
03 Dec 2008, 02:38
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
03 Dec 2008, 03:13
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
03 Dec 2008, 07:12
This is the one I used Caliman...

http://www.vbulletin.org/forum/showthread.php?t=182692

caliman
03 Dec 2008, 07:38
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
04 Dec 2008, 05:37
See here http://www.vbulletin.org/forum/showthread.php?p=1658919#post1658919 for a possible way to do this....

24hourForum.com
04 Dec 2008, 05:47
thank you installed

caliman
04 Dec 2008, 06:16
See here http://www.vbulletin.org/forum/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
04 Dec 2008, 08:57
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
08 Dec 2008, 12:19
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
08 Dec 2008, 21:07
Is this with all members or a single member?

Nadeemjp
10 Dec 2008, 02:29
will use this for later.
nice hack though

darkdan
23 Dec 2008, 19:34
Fixed.

Thanks.

dartho
23 Dec 2008, 23:32
only if configured to do so!

Chevy II
31 Dec 2008, 01:16
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
31 Dec 2008, 08:01
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
31 Dec 2008, 08:07
thankx

jbeam
22 Jan 2009, 16:03
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
22 Jan 2009, 16:40
does this have 3.8 compatibility?

dartho
23 Jan 2009, 02:06
@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
23 Jan 2009, 02:32
yeah mine working on 3.8 too

jbeam
26 Jan 2009, 16:48
@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
28 Jan 2009, 04:09
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
28 Jan 2009, 10:13
see here http://www.vbulletin.org/forum/showthread.php?t=183185

harlita
29 Jan 2009, 05:58
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
01 Feb 2009, 21:58
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
06 Feb 2009, 14:27
Is it stable?

Chevy II
12 Feb 2009, 00:26
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
18 Feb 2009, 12:28
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
19 Feb 2009, 02:09
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
19 Feb 2009, 05:04
what's the useragent string of the flip phone?

^SuiCyde^
20 Feb 2009, 02:39
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
20 Feb 2009, 06:00
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 Mar 2009, 20:20
does this work with 3.8.1

Tourmeister
08 Mar 2009, 04:28
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
08 Mar 2009, 06:24
works for me

Tourmeister
08 Mar 2009, 08:10
Excellent. I will download and give it a try! Thanks.

Sooner95
12 Mar 2009, 01:18
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
12 Mar 2009, 01:21
geez..ok now it works..LOL nevermind..

student4ever
21 Mar 2009, 02:33
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
21 Mar 2009, 04:27
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
21 Mar 2009, 05:45
Working perfect for me on 3.8.1.

www.twtex.com

thanks - sounds like it's worth installing

roymogg
21 Mar 2009, 17:17
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
21 Mar 2009, 23:35
when using this add-on it shouldn't be possible to change to any other style ... ?

GCSkye
24 Mar 2009, 23:13
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
27 Mar 2009, 14:17
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
28 Mar 2009, 01:25
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
28 Mar 2009, 19:21
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
28 Mar 2009, 21:56
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
29 Mar 2009, 00:30
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
29 Mar 2009, 08:03
I have sent you a pm, thanks for the mod thus far. Works great.

dartho
29 Mar 2009, 09:46
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
31 Mar 2009, 09:13
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
31 Mar 2009, 09:25
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
31 Mar 2009, 12:02
Bugger - looks like I missed a closing brace, I've updated the attachment above in my last post - give it another go!

nNJ
01 Apr 2009, 04:57
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
01 Apr 2009, 05:03
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
01 Apr 2009, 07:28
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
07 Apr 2009, 00:24
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
07 Apr 2009, 05:34
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
07 Apr 2009, 21:14
Did all that, still nadda..even tried another "lite" style and it still goes to my default.

GCSkye
07 Apr 2009, 23:29
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
07 Apr 2009, 23:57
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
09 Apr 2009, 19:39
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
11 Apr 2009, 07:58
Is it compatible with vBulletin 3.8.x? Because I can't seem to get it to work.

Biker_GA
11 Apr 2009, 17:17
Running it on 3.8.1 and it works wonderfully.

Sooner95
11 Apr 2009, 22:34
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
30 Apr 2009, 16:33
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
30 Apr 2009, 23:32
Thanks, but that is a problem (and solution) with the style you have installed - nothing to do with this add-on.

dancue
02 May 2009, 20:31
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
02 May 2009, 21:16
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
06 May 2009, 22:19
thanks.

I've figured how to do it using htaccess.

Thanks again.

dancue
07 May 2009, 22:23
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
08 May 2009, 05:52
Excellent mod.. I'm putting it at our forum

dancue
11 May 2009, 13:30
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
11 May 2009, 13:41
**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
12 May 2009, 04:30
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
12 May 2009, 05:09
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
12 May 2009, 05:22
**banging head on desk**

From the description of the mod:



Bold by me.

:)

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

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