PDA

View Full Version : Add-On Releases - Mobile Device Style Assignment


Pages : 1 [2]

dartho
08-05-2007, 08:23 AM
That would be to do with teh Style / Skin rather than this mod - what skin are you using? I'd suggest using https://vborg.vbsupport.ru/showthread.php?t=151186 It may not be the prettiest, but it is the most functional with fewest issues...

alfaowner
08-05-2007, 02:11 PM
changed to the mobi one but I guess its my bberry not storing cookies for some reason as it happens on your dartho skin too

nnjj.net
08-06-2007, 07:06 PM
is it working on 3.6.8?

MotoUp
08-06-2007, 07:17 PM
is it working on 3.6.8?I am running 3.6.8 with no problems.

nnjj.net
08-07-2007, 08:51 AM
thanks buddy I will install it then :)

ZGeek
08-19-2007, 10:36 AM
I keep getting "Invalid File Specified" when trying to import on 3.6.8 anyone got a work around?

dartho
08-19-2007, 09:03 PM
G'day,
Is this on the "product mobile enabled36 2.1.2.xml" file?

I haven't updated my test site to 3.6.8 yet (still 3.6.7 PL1) but others on 3.6.8 have successfully installed and used it. I'll upgrade my test site today and confirm it's OK

JTS2005
08-20-2007, 02:43 AM
I am running 3.6.8 with no problems.

the alabama skin isnt working with 3.6.8 atleast for me it isnt.

bigwest
08-27-2007, 07:28 PM
<font color="Red">PLEASE NOTE: the following problem IS NOT due to the plugin that is offered in this thread!!!!</font>

I am posting it here because I want to install this plugin (mobile device style assignment) but need to solve the following problem first.

A few months back I installed something that would automatically detect if a user was browser into my site on a cell phone and switch them to a lite template style I had installed on my forum, similar to what the plugin in this thread is intended to do.

Now, I want to get rid of that feature. (so I can install this plugin)

Yet when I go to my installed plugin's I see no such plugin. I guess it's possible it was some type of hack instead of a plugin but for the life of me I can't remember how I did this.

I was hoping maybe somebody here might have an idea of what I did and then be able to help figure out how to get rid of this feature. Where my I look to remove this automatic detection and style switcher?

Thank you in advance for your time!!

dartho
08-27-2007, 09:13 PM
@ bigwest - If there are no plug-ins, it could be that you edited the global.php file...
@ ZGeek - no problems under 3.6.8 that I can find
@ JTS2005 - how so? I know others are using it under 3.6.8. I'm not really intending on doing any more work on the alabama dartho skin, but hope to update the mobi skin to be more PDA-centric (the original mobi skin will stay) when I get some more free time

bigwest
08-27-2007, 09:44 PM
@ bigwest - If there are no plug-ins, it could be that you edited the global.php file...That's what I was thinking so I replaced my global.php file with an original but still no luck.

Any other ideas?

Oh and thank you for your response, I really do appreciate it.

dartho
08-28-2007, 01:06 AM
You could also check the includes/init.php file. Some style stuff is assigned in here also I believe. Should be a section towards the end of the file - just search "$styleid"

bigwest
08-28-2007, 02:29 PM
You could also check the includes/init.php file. Some style stuff is assigned in here also I believe. Should be a section towards the end of the file - just search "$styleid"I don't see anything in there that looks out of place in that file.

Is there anyway it could be something in the database?

I wonder what would happen if I deleted the mobile style I have installed?

I read earlier in this thread that this plugin detects the iPhone, that is AMAZING!!! That's the main reason I am wanting to solve this problem. I have iPhone users that want to view my site in it's regular form on their iPhone and they can't switch the style.

dbirosel
09-19-2007, 11:20 PM
Hello!
I?ve a problem, from mobiles devices works fine, but If ahythig choose dartho Mobile alabama style in a PC, after cannot back to default style, even turn off the browser (IE7 or Firefox), Mobile Style is not default style in ACP. And isn?t possible choose style in dartho mobile alabama skin, I can not view this option.
Thanks in advanced
(sorry for my english)
I'm having this problem too!! Any solution yet???

dbirosel
09-19-2007, 11:20 PM
works well in IE and Opera though. Firefox it points to the mobile alabama template.

dartho
09-20-2007, 10:22 AM
You will need to add a link somewhere in teh alabama style which points to your default style, if you add something like

<a href=http://www.mydomain.com/index.php?styleid=xx>Default Style</a>

(where xx is teh styleid number of your default style) to your footer template, that will give users a link back to the default home page - of course modify the URL to reflect your own domain/configuration.

Tralala
09-28-2007, 04:35 AM
Hi and thanks for the iPhone exclusion support. Now can we please add iPod Touch to the list of excluded devices? :)

User Agent:

Mozilla/5.0 (iPod; U; CPU like Mac OS X; en)
AppleWebKit/420.1 (KHTML, like Gecko)
Version/3.0 Mobile/3A100a Safari/419.3

dartho
09-28-2007, 05:02 AM
I think you should be able to add it yourself in the AdminCP. In the "User Agent Exceptions" section it has iPhone by default, if you make it 'iPhone, Mozilla/5.0 (iPod; U; CPU like Mac OS X; en)' that should do it. Any other browsers with that same portion of USERAGENT string would also not be detected as a mobile device either.

ALternatively, you could probably just go with "iPhone, iPod" if no other iPod devices have web browsers in them?

The exceptions just need to be any portion of the user agent string. I would assume that any device with Mozilla/5.0 in teh useragent string should be able to cope with the standard VB styles, so that may be worth trying out also?

dartho
09-28-2007, 05:06 AM
Just found the following useragents via google - all apparently from iPhones and an iPod. Common among them are "Mozilla/5.0", "Safari/419" and "AppleWebKit/420" One of these strings would trap both iPhones and iPods

[28/Feb/2007:23:14:06 +0000] "Mozilla/5.0 (iPhone; U; ARM OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Safari/419.3 Version/3.0 Mobile/241"
[15/Mar/2007:06:17:14 +0000] "Mozilla/5.0 (iPhone; U; XXXXX OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Safari/419.3 Version/3.0 Mobile/241"
[22/Mar/2007:06:39:15 +0000] "Mozilla/5.0 (iPhone; U; XXXXX like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Safari/419.3 Version/3.0 Mobile/241"
[28/Apr/2007:07:50:00 +0100] "Mozilla/5.0 (iPhone; U; PPC like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A001a Safari/419.3"
[15/May/2007:01:00:58 +0100] "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A523a Safari/419.3"
[28/May/2007:00:00:35 +0100] "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A537a Safari/418.4"
[12/Jun/2007:04:13:45 +0100] "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3"
[21/Jun/2007:16:42:06 +0100] "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A538a Safari/419.3"
[01/Aug/2007:18:23:01 +0100] "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1C25 Safari/419.3"
[22/Aug/2007:03:58:51 +0100] "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1C28 Safari/419.3"
[07/Sep/2007:00:20:48 +0100] "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko)" - spoof?
[08/Sep/2007:13:54:10 +0100] "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A538b Safari/419.3" - spoof?
[09/Sep/2007:02:32:03 +0100] "Mozilla/5.0 (iPod; U; CPU like Mac OS X; en) AppleWebKit/420.1 (KHTML,like Gecko) Version/3.0 Mobile/3A100a Safari/419.3"

Tralala
09-28-2007, 08:37 AM
Great, thanks dartho... much appreciated.

RaceJunkie
10-10-2007, 01:39 PM
Is there anything that can be done about this message?

Out-of-Date Custom Templates Found!

There are currently 13 customized template(s) that need to be updated or reverted. Some sections of vBulletin may not function if you do not do this!

Mobi
editpost
FORUMDISPLAY
modifyoptions
modifysignature
navbar
newreply
newthread
pm_newpm
postbit_deleted
postbit_legacy
SHOWTHREAD
showthread_quickreply
USERCP

dartho
10-10-2007, 11:13 PM
If this is this for the Alabama style you can ignore them. You'd be better off going for this skin

edit: which it seems you have already done...

RaceJunkie
10-10-2007, 11:16 PM
If this is this for the Alabama style you can ignore them. You'd be better off going for this skin

edit: which it seems you have already done...


I am using this (https://vborg.vbsupport.ru/showthread.php?t=151186) one

dartho
10-11-2007, 09:15 PM
This is one of my styles - you can safely ignore the 'out-of-date' messages with this style too. If the warnings annoy you, you can 'edit' the templates and save them without making changes.

RaceJunkie
10-11-2007, 10:28 PM
This is one of my styles - you can safely ignore the 'out-of-date' messages with this style too. If the warnings annoy you, you can 'edit' the templates and save them without making changes.

Thanks I love this mod. I have been looking a way to browse my site from my phone and now that is possible.

Aidden
10-13-2007, 10:35 PM
I hate making posts like this as I know how hard developers work on their mods, and I dont want to sound like I'm begging for stuff, but I wanted to throw something out.

Unlike others who wanted to use the standard style for an iPod/iPhone, I want a specific style for only an iPod/iPhone.

How hard woudl it be to make/modify this mod to actually add custom inputs after a default was created?

So create a default mobile entry gong to styleID 2, then start entering new lines.

iPhone = StyleID 3
BB 8700 = StyleID 8

etc.....

This seems like it would future proof your mod and eleviate specific requests. Of course I say this coming from an ignorant standpoint of not being a developer and understanding what its going to take.

Spinball
10-14-2007, 11:50 AM
Tested www.avforums.com/forums/index.php with this hack, but this hack doesn't work.
Your site works fine. I'm usinga Nokia N73.
Any ideas before I give up?

Still doesn't work with my Nokia N73. I get the usual style.

dartho
10-14-2007, 09:13 PM
I just checked you site - and the "AV Forums for PDAs" is the same as you default skin. Is this the only 'mobile' skin?

Aidden
10-17-2007, 05:21 PM
So is adding a 3rd option "ipod" in addition to the PDA and Mobile options difficult to do?

I have been playing with the code and seem to have only screwed things up royally.

Endurer
10-18-2007, 07:39 PM
Doesn't work when I have unchecked the 'allow user selection' in style manager. Is there a work around available to get it working without having to allow users to use the mobile style on regular http version.

dartho
10-18-2007, 08:42 PM
@ Endurer - No, if you allow users to select their own style then they will also be able to select any mobile style you have installed.

On my site I don't allow users to choose their own style - this add-on will still work and force a 'mobile' style on them when a mobile device is detected.

@Aidden - I should be able to do something with an ipod option today - I'll look at adding some user defined custom entries too

dartho
10-19-2007, 02:24 AM
New 2.1.3 Version Released

Added in iPhone/iPod as a seperate category.
*Added in ability to add user defined useragent strings.

This can be used for assigning a style to specific mobile devices, or even to specific web browsers, search engines or any 'visitor' to your site which has a unique user agent string.

I've only done limited testing - could any iphone/ipod users confirm things are working as expected?

Thanks

Aidden
10-19-2007, 03:07 AM
Doesn't seem to be working for my iPod.

I completely removed my previous modified code. installed the new, and now my iPod seems to be hitting the mobile style.

dartho
10-19-2007, 03:51 AM
Could you post the user agent string ? (check in Online Users with User Agenst enbled) This hack checks for the strings: "iPhone" or "iPod"

If I visit your site with a spoofed UA of 'Ipod' I *do* get your "iPhorum"

thanks

principino1984
10-19-2007, 06:14 AM
great hack man! installed right now! I'm gonna personalize it a little in the next few days ;)

puertoblack2003
10-21-2007, 01:24 AM
not workin for me when i upgraded like the mobile and pda its not switching over to assigned style..going back to old version which it was working fine.

dartho
10-22-2007, 12:50 AM
oops! There was a issue with matching multiple categories, as such ipods were detected as generic mobile devices.

This should now be fixed in version 2.1.3b (double check the version number after upgrading) :up:

357Magnum
10-26-2007, 08:51 AM
why isnt the link working to DL??

mano1.com
11-15-2007, 08:03 PM
(edit: NEVERMIND it works! :) great work! thank you)

da_judge
11-16-2007, 09:39 PM
Bloody good this... helped me loads as im always out and about... nice work

Chris 96 WS6
11-19-2007, 02:31 PM
n/m Working great!

Chris 96 WS6
12-03-2007, 01:04 PM
I have a member using a Treo 700wx (windows 5.0), this mod isn't working correctly on his phone.

dartho
12-03-2007, 07:10 PM
Have you enabled "PDA device detection" and pointed it at the same styleid as "mobile device detection"? The 3 device types detected do not operlap - so unless you want a user of one of these device types to get your default style, you need to configure them all. I should really write some decent instructions.

If this is not the case, are you able to check the useragent string for this user? (when they are online, view "Who's Online" and sekect "yes" for "User Agent" in the options at the bottom of the screen.

Thanks

Chris 96 WS6
12-19-2007, 09:22 PM
Thanks.

Now, can you help me getting this to work with the iPhone?

Since it has a full HTML browser and wi-fi, I have sort of a medium weight skin I want to load just for iphones...

I'm assuming the user agent is "iPhone" but I will go ahead and check it with who's online.

Doctorlingua
01-16-2008, 08:34 PM
Thank you, this is just what we needed. Our company employs teachers who move around town all day between classes. This is going to help them post to an internal forum from their phones or blackberries and tell us how they're getting on with their students.

Soonerdude
01-23-2008, 03:47 AM
Hi, I just upgraded my vbulletin from 3.6.5 to 3.6.8 patch level 2. Now I'm getting the following error on the top of every page. When I disable the Mobile Device Style Assignment mod, it goes away. I don't want to have to uninstall this mod, my members love it.

Warning: preg_match() [function.preg-match]: Unknown modifier '5' in /global.php(237) : eval()'d code on line 25

Thanks.

dartho
01-23-2008, 04:06 AM
This should work on 3.6.8 PL2 (thats what I run it under). Have you changed the settings since upgrading (or just before?) - and what is your URL (you can PM URL if you prefer)

Thanks

hydn
01-25-2008, 01:47 PM
Will this hack add the "post by device/browser type" when user post? Which style has that feature?

THanks

dartho
01-25-2008, 08:22 PM
no, but you could probably edit the postbit templates of the style you use add a "Posted by mobile device" line

Guest210212002
02-07-2008, 01:11 AM
/me clicks install

Are there any conditionals associated with this? I'd really like to auto-redirect WAP users to the forum page if they come in on the portal.

dartho
02-07-2008, 01:32 AM
I'm using vbAdvanced and all I did was edit the adv_portal template for my mobile style and replaced the contents with

$stylevar[htmldoctype]
<html>
<head>
<title>$vboptions[hometitle] <if condition="$pagetitle">- $pagetitle</if></title>

$headinclude

</head>
<body>

$header

$navbar

<div><a href="forum.php">Click here to go to the forums!</a></div>

$footer

</body>
</html>


You could however replace it with a meta redirect such as:

<html>
<head>
<title>Redirecting to mobile friendly</title>
<META http-equiv="refresh" content="2;URL=http://URL_TO_FORUM_HOME">
</head>
<body>
<p>
Redirecting to mobile site...
</p>
</body>
</html>

MotMann
02-09-2008, 11:43 AM
I use alabama Style. I have select, that User can switch to the Style. I have the right Style ID.
But, the corrcet Style dont be displayed on my iPhone :(

And. if i set direct the style, the Letters and Icons are to small.

What shell i do?

An a lot of W3C Org problems exist :(

Chadi
02-09-2008, 05:46 PM
Ok, I'm confused. How do I know what the style ID is for the default style and the mobile style I uploaded? I can't believe that I cannot find that info.

On a side note, can someone explain how to provide a drop down list for style selection (regardless if visiting via a computer or pda/mobile device). Thanks.

Obi Wan
02-13-2008, 06:57 AM
nice work

voter
02-13-2008, 10:41 AM
It was working with emulators yester after I installed.
But today any mobile phone emulator I have tried to open my site wap.viparmenia.com shows Error: Status code 413.

Dartho or anybody? - HELP!

dartho
02-13-2008, 11:05 AM
not sure why you would get a 413 error. Howerer - going wap.viparmenia.com from a desktop browser works a treat - but it seems that your wap. address simply redirects to you default URL with a styleid=xx parameter on the URL? This doesn't seem to be in keeping with how this add-on is designed...

Visiting http://viparmenia.com/vb/index.php?styleid=17 directly via an emulator works fine (and quick) but visiting via wap.viparmenia.com ytakes a long long time to load, but ultimately works OK, however it is still a redirect.

You should double check all your settings for this addon and also for your wap.viparmenia.com sub domain to make sure it is not a redirect, but is parked on teh same root as the primary domain.

dartho
02-13-2008, 11:11 AM
OK - I just had another look. Not sure what you are doing, but your portal is stiull being rendered in the full style and mobile emulators/devices are probably giving up (it has a huge amount of data)

Edit the adv_portal template in the CMPS group for teh mobile styles and replace the contents with

<html>
<head>
<title>Redirecting to mobile friendly</title>
<META http-equiv="refresh" content="2;URL=http://URL_TO_FORUM_HOME">
</head>
<body>
<p>
Redirecting to mobile site...
</p>
</body>
</html>


make sure to change the URL in the code above

dartho
02-13-2008, 11:16 AM
Ok, I'm confused. How do I know what the style ID is for the default style and the mobile style I uploaded? I can't believe that I cannot find that info.

On a side note, can someone explain how to provide a drop down list for style selection (regardless if visiting via a computer or pda/mobile device). Thanks.

The drop down box would be a style dependant thing as opposed to this modification.

You can get the styleid number by clicking on teh "GO" next the the style of your choice in Style Manager. In the next screen up the top of the main frame you will see teh following:

Fonts / Colors etc.: StyleName (id: xx)

where xx is the styleid number

Jase2
02-13-2008, 02:35 PM
Hello Dartho,

thanks for this release, I hope you can keep it going.

Does this work with vB 3.7 BETA 4?

Regards Jason :)

Jase2
02-13-2008, 04:14 PM
Doesn't work with 3.7, says xml error when trying to import.

Please can you release this for 3.7?

Thanks,

Regards Jason :)

dartho
02-13-2008, 10:11 PM
I can and will, but in the mean time if you choose to ignore version when installing, it should work fine .

MissKalunji
02-13-2008, 11:36 PM
OK - I just had another look. Not sure what you are doing, but your portal is stiull being rendered in the full style and mobile emulators/devices are probably giving up (it has a huge amount of data)

Edit the adv_portal template in the CMPS group for teh mobile styles and replace the contents with

<html>
<head>
<title>Redirecting to mobile friendly</title>
<META http-equiv="refresh" content="2;URL=http://URL_TO_FORUM_HOME">
</head>
<body>
<p>
Redirecting to mobile site...
</p>
</body>
</html>


make sure to change the URL in the code above
Thanks it works :)

Robert Waanders
02-14-2008, 07:55 AM
great mod, marked as installed!

Jase2
02-19-2008, 05:58 PM
I can and will, but in the mean time if you choose to ignore version when installing, it should work fine .

That's great Dartho. I'll wait until you release it for 3.7 and when 3.7 goes GOLD!

Regards Jason :)

GetGamer.com
02-20-2008, 04:48 PM
I've got this installed and working on both 3.7.0 b4 and 3.6.4, however even with PDA detection enabled (and redirected to the proper style), my iPAQ hw6515 (running Windows Mobile 2003) is still displaying the default forum style.

Edit #1: My iPhone properly detects and displays the mobile style, but so far another other devices seem to fail.

Edit #2: I've narrowed it down to a conflict with my default style (or so it seems). If I navigate to this subforum (http://www.bigblueball.com/forums/instant-messaging-news/) with a mobile device, the mobile skin displays. The default skin for that forum (and all subforums within it) is different from the forum home (http://www.bigblueball.com/forums/) and the rest of the forums. Navigate to those other forums and you get the default skin, not the mobile skin. So apparently there is something in my default skin that is causing the mobile detection to fail. Any clues?

dartho
02-25-2008, 03:06 AM
Could be a conflict with another add-on you have installed. Try modifying the "Detect Mobile Device" plugin and change it's execution order to 10. If that doesn't work, try 1. If that doesn;t work chgange back to 5 and let us know :)

mariocaz
02-25-2008, 05:16 AM
Hi dartho,

I want to install your great mod, but I have a little question.

If I install it, also I have to install another skin for the mobile phone, pda, etc., I have right now 3 skins in my forum and when I install a mod sometimes I have to edit the template files of my 3 skins (lost of work), so if I have another skin to use this mod, also will I have to install all the mods that I have in this skin ??, I hope not because install mods now in 4 skins will be a little hard for me.

thank you my friend, maybe my question is stupid, but I want to be sure of that.

cheers,

Mario

GetGamer.com
02-25-2008, 04:14 PM
Could be a conflict with another add-on you have installed. Try modifying the "Detect Mobile Device" plugin and change it's execution order to 10. If that doesn't work, try 1. If that doesn;t work chgange back to 5 and let us know :)Ok, I changed the execution order to both 10 and to 1, but with the same results.

It works fine on this site (http://www.getgamer.com/forum/), but not this site (http://www.bigblueball.com/forums/) (it doesn't detect Windows Mobile).

dartho
02-25-2008, 07:09 PM
mariocaz - usually you will not want to make template changes to mobile styles. The templates are totally different, and quite probably will not work. But yes, you will need to make changes to templates in all styles.

GetGamer - I'm not sure, there must be a conflict somewhere, if you PM me an admin accoiunt with the ability to edit pugins I could have a look?

mariocaz
02-25-2008, 07:34 PM
So if I install a mobile style and leave like that (original) without any modification of all my mods that I have installed and also the future mods.

The skin(style) will work fine like that ?

Thank you again.

dartho
02-25-2008, 10:31 PM
Yes and No - it really depends on the modification installed.

Some do automatic template edits which will hopefully NOT work for your mobile style due to the fact that the templates in the mobile style are so different to the default style (and other full featured vBulletin styles).

There are some modifications that need their plugins edited so they don;t affect your mobile style - this is a case by case basis.

It is always best to test on a not live site before implementing on your live site so you can work out if you have any conflicts.

GetGamer.com
02-26-2008, 12:10 AM
dartho, thanks for all your help. It's working properly now. I had to be sure to check the boxes allowing the mobile style to be user-selectable. Even though I've configured vBulletin to not show the style chooser, if the mobile style isn't checked in the style manager, the mobile style won't show up unless the user is logged in.

Pirat3
02-26-2008, 02:17 AM
Does this detect a iPhone? Is there any cellular/iphone friendly themes out there?

dartho
02-26-2008, 02:46 AM
Yep - supports iPhone. There are a few suitable styles out there, see the list at the end of teh first post on this page, one of which I wrote and support as best I can. There may be others also...

MoMan
02-27-2008, 03:35 PM
Is there any way I can prevent all users but mobile users from seeing/using the mobile skin? I don't want regular members using PCs to access the mobile style because they might know how to switch back.

Jase2
02-27-2008, 03:39 PM
Hi Dartho,

Will you start on the release for 3.7 when it goes GOLD. Since they aren't adding any more features to 3.7, maybe it's a good time to start now?

Also, are you able to make a skin which is like the default vB style? I'll pay you if needed.

Regards Jason :)

RedGTiVR6
02-27-2008, 05:11 PM
I'd be interested in the 3.7 release as well.

dartho
02-27-2008, 07:56 PM
Is there any way I can prevent all users but mobile users from seeing/using the mobile skin? I don't want regular members using PCs to access the mobile style because they might know how to switch back.

If you allow users to change skins, they will be able to select your mobile skin. If you Only allow users to use a specific skin, then they can not change unless they are on a mobile device and you have tis add-on installed, at which poin they will be forced to your mobile skin.

mariocaz
03-08-2008, 07:55 PM
Wow since some time ago I wanted to install this great mod, today I installed it and it is awesome!!

Now I can enter to my forum in my mobile device. :)

Thank you very much dartho!

mariocaz
03-09-2008, 07:15 PM
My friend only I see that the disable for the iPods is not working. :confused:

And thank you a lot for the fix for the VbAdvanced Portal. :up:

dartho
03-10-2008, 12:07 AM
Hi Mario,
As an admin, things work a little differently (you can override style selections)

You should log out and test, or even better is to have a test user account with no extra privileges which you log in with so you can see what a normal users sees.

WreckRman2
03-10-2008, 03:51 AM
No uninstall code....

mariocaz
03-10-2008, 04:29 AM
Hi Mario,
As an admin, things work a little differently (you can override style selections)

You should log out and test, or even better is to have a test user account with no extra privileges which you log in with so you can see what a normal users sees.

Ok my friend I will check it with a normal user and tell you the results ok.

mariocaz
03-10-2008, 04:36 AM
mmmm I entered to te forum without log in and the same thing if the mod is disabled for iPods (I have one iPod Touch), I still see the mobile template if I entered with it.

Can you take a look into this my friend ?

KenDude
03-10-2008, 05:22 AM
Dartho,

I use it on my site but I noticed recently when connecting with a Windows Mobile 6 device (BlackJack 1 upgraded) that it seems that VBadvanced is causing it to push things over, if you go to www.caymanclub.net with a mobile device you'll see what I mean. Any suggestions on how to fix that?

dartho
03-10-2008, 10:57 AM
@IndyWebDesign - just remove the product - there ar eno DB changes or files to remove

@mariocaz - Sorry, now I understand. An iPod is detected as a mobile device - if you wish it to use your default Style, you will need to enable it and set it to use you default styleid.

@kendude - I think that would be an issue with whatever style you are using as opposed to the add-on. It outputs no code at all which will change how a particular style will appear.

mariocaz
03-10-2008, 05:10 PM
Ok thank you dartho, so I canĀ“t disable the mobile template for the iPods putting disabled in the in the control panel of this mod ?

dartho
03-10-2008, 08:24 PM
That's right - if the iPods style assignment gets disabled, then iPod devices will fall back under generic mobile devices ..

mariocaz
03-10-2008, 09:29 PM
Ok thank you now I understand.

nicolerork
03-12-2008, 03:50 PM
Does this not work on 3.6.8 ?

mariocaz
03-12-2008, 04:01 PM
Of course work in 3.6.8 yo can see it in the top of this site.

Also I have installed there and works perfectly.

nicolerork
03-12-2008, 04:07 PM
Ah, nevermind. I figured it ou!

tehtide
03-14-2008, 10:04 PM
Ok... we have this installed on our site, http://www.clan-tlb.com, with vbAdvanced as our home page. The issue is this.. when you browse to the site with Windows Mobile 6, there are 3 broken image links, and the login doesn't work. Any one have any ideas?

thanks

mariocaz
03-14-2008, 10:13 PM
Solution by dartho:
Edit the adv_portal template in the CMPS group for the mobile styles and replace the contents with

<html>
<head>
<title>Redirecting to mobile friendly</title>
<META http-equiv="refresh" content="2;URL=http://URL_TO_FORUM_HOME">
</head>
<body>
<p>
Redirecting to mobile site...
</p>
</body>
</html>


make sure to change the URL in the code above

This is the best solution my friend.

dartho
03-14-2008, 10:39 PM
Ok... we have this installed on our site, http://www.clan-tlb.com, with vbAdvanced as our home page. The issue is this.. when you browse to the site with Windows Mobile 6, there are 3 broken image links, and the login doesn't work. Any one have any ideas?

thanks

Those broken image links and login issues are nothing to do with this addon - all this does is detect a mobile device and assign a style accordingly.

The first of the broken images is http://www.clan-tlb.com/images/buttons/collapse_tcat.gif which doesn't exist, neither do the other two - http://www.clan-tlb.com/images/buttons/sendtofriend.gif and http://www.clan-tlb.com/images/buttons/printer.gif seems there are some paths wrong somewhere... I think you need to do some more editing of your vbadvanced templates

As for the login not working - does it work from your forums home page (as opposed to the vbAdvanced page?)

Personally I'd suggest the same as Mario. Feel free to click "Mark as Installed" also... ;)

tehtide
03-14-2008, 11:16 PM
Ok... I'll take a look.

The crazy thing is that it work on every other device that we have used... it is just the Windows Mobile 6 that isn't playing friendly.

thanks for all your help guys!

tehtide
03-15-2008, 12:07 AM
Ok... I found in the vbAdvanced CMPS templates where the issues were... took a bit but now it's working...

Dartho... one thing in your style in order to fix the login issue I changed the following:
<form action="login.php?do=login" method="post">
to
<form action="$vboptions[bburl]/login.php?do=login" method="post">

and all was fixed!!!

thanks for the help...

dartho
03-15-2008, 12:58 AM
glad it's working for you..

BTW:

I changed the following:
<form action="$vboptions[bburl]/login.php?do=login" method="post">
to
<form action="$vboptions[bburl]/login.php?do=login" method="post">


you mean from <form action="login.php?do=login" method="post"> to <form action="$vboptions[bburl]/login.php?do=login" method="post">

Yep - that would need to be done to make the logging on work on a vBadvanced page if you had vBa CMPS installed in the root of your domain and vBulletin in a directory off your root.

Jase2
03-16-2008, 10:32 PM
*Jason eagerly awaits the 3.7 release* :p

Regards Jason :)

dartho
03-17-2008, 12:49 AM
Relased for 3.7 HERE

:)

Jase2
03-17-2008, 04:43 PM
Dartho, I cannot thank you enough, much appreciated!

Have you updated your style, or not? Is there any chance you could create a style, specifically for the default vB...same colours?

Thanks!

Regards Jason :)

peterpigman
03-21-2008, 01:22 PM
As for the login not working - does it work from your forums home page (as opposed to the vbAdvanced page?)


On the forum page.

dartho
03-21-2008, 08:40 PM
On the forum page.

You're having same issue? Did you try tehtide's solution in post #347?

peterpigman
03-22-2008, 07:09 AM
You're having same issue? Did you try tehtide's solution in post #347?

I will give it a go.

peterpigman
03-22-2008, 12:26 PM
No that didn't work. It may be my phone as others are logging in ok.

PlymWS
03-22-2008, 02:43 PM
Installed and worked first time. Fantastic mod. Thx.

Phaedrus
03-22-2008, 04:42 PM
Works awesomely... I had to figure out that the style number is different than the listing order...

DUH!

edytwinky
03-26-2008, 07:58 PM
I tried this and checked out my forums on my Treo and it didn't recognize it.

mariocaz
04-10-2008, 03:11 PM
Is the mod working on 3.6.9 ??, because since I upgrade my forum the mod is not working for me. help !!

dartho
04-11-2008, 03:11 AM
@mariocaz - Your site looks to be working fine with mobile detection from where I am - what's the problem as you see it?

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

www.tcstangs.com/forum/

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

My HTC mogul with WM 6 works fine, but 6.1 users with a Q9 and 755p treo users are getting the full version of the forum.

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

www.tcstangs.com/forum/

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

My HTC mogul with WM 6 works fine, but 6.1 users with a Q9 and 755p treo users are getting the full version of the forum.

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

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

Anyone know of a good workaround for this?

J105C
04-21-2008, 12:13 AM
Oh, the problem was I didn't have the mobile skin set as "user selectable" in the style manager.. thus if you were not logged in you got the full version. If you were logged in, you saw it fine.

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

Anyone know of a good workaround for this?
True, I'm waiting for this as well. I dont want my users able to select the mobile skin. I only want it to be 'forced' when they visit my site from a mobile device.

J105C
04-21-2008, 01:01 AM
I just tried 2 other mobile styles including the one you sent me. This is what I get:

Wrong mime-type, I got text/html; charset=ISO-8859-1, but I want text/vnd.wap.wml.

Stryker412
04-26-2008, 10:42 PM
I upgraded my forum to 3.6.10 and now I cannot post in the mobile version.

Froggy32701
04-27-2008, 01:53 AM
I upgraded my forum to 3.6.10 and now I cannot post in the mobile version.


I have no issues? Did you revert all of the mobile templates?

tekguru
04-27-2008, 02:28 PM
I didn't revert but fixed the issue by taking the mod XML, looked for all <form> lines and added a

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


after each and reloaded. I also changed the version number to 3.6.10.

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

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

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

On looking that template it looks like there is one to many closing IFs in there which I removed to fix that problem.

dartho
04-30-2008, 06:25 AM
This add-on should work fine on 3.6.10 - style issues have apparently come up, but thats not to do with this particular add-on. I'll be looking into them when I get a chance, only *just* got back from holidays....

Stryker412
05-02-2008, 11:46 AM
This add-on should work fine on 3.6.10 - style issues have apparently come up, but thats not to do with this particular add-on. I'll be looking into them when I get a chance, only *just* got back from holidays....

The error I'm getting since upgrading to 3.6.10 and now 3.7 is:

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

I can read the forum fine, but cannot post at all.

Ted S
05-02-2008, 04:28 PM
The error I'm getting since upgrading to 3.6.10 and now 3.7 is:

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

I can read the forum fine, but cannot post at all.

You'll need to edit EVERY template that posts data to add the security hash variable from the latest update (3.6.10 and 3.7.0).


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


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

MissKalunji
05-02-2008, 04:50 PM
here youc an get a list of whch template : https://vborg.vbsupport.ru/showpost.php?p=1502304&postcount=48

Stryker412
05-02-2008, 06:21 PM
Can someone be kind enough to test my site on a mobile device. I reinstalled the product entirely. I must have had an old version because the new colors are great and easier on the eyes. One question, how can I get it to highlight new sections with posts again instead of just bolding them?

Stryker412
05-02-2008, 06:58 PM
You'll need to edit EVERY template that posts data to add the security hash variable from the latest update (3.6.10 and 3.7.0).

[/COLOR][/FONT]

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

That worked, thank you.

Reinhart
06-18-2008, 04:07 AM
Any way to let users disable the skin manually?
Normal Skin Chooing doesnt seem to work with this installed.

dartho
06-18-2008, 04:40 AM
That's the idea of this add-on, the user doesn't get a choice! If you wish to allow users to choose, just install the styles and allow users to change them, no need for this addon...

Reinhart
06-18-2008, 05:38 AM
Yeah I guess I was thinking maybe.. a link or something that lets people disable it... because 90% of the time I WANT it to be forced. but I know some people (on PSP in this case) want to view it normally... and I dont know the "code" to disable it for PSP... any some other devices.

Edit: Also since I have you here... any idea how to get Adsense's new "Mobile Ads" going on your skin?
Cant figure it out.

Would be a good addon!!!

dartho
06-18-2008, 05:47 AM
I got it working under 3.7 - some guidelines here: https://vborg.vbsupport.ru/showthread.php?t=174375&page=9

That might be enough to get you going...

jambo_1969
08-02-2008, 11:13 AM
Works great on 3.6.8.

Members happy and aside from basic colour issues which I'll change, seems to be working okay.

Apart from iphone users who want an iphone version.

Pah.

Reinhart
08-04-2008, 02:00 AM
Any way to override this for PSP devices?
Have a few people complaining about it.

dartho
08-04-2008, 06:19 AM
Yep - just add the useragent string for PSP's in the 'Useragent Exceptions' box - just the text "PSP" should be enough do it ...

vbreal
08-04-2008, 04:47 PM
its not overiding for iphone or insinct.

is the iphone the same as ipod? i

MissKalunji
08-04-2008, 04:54 PM
yep it is....

Perhaps you forgot some setting?

dartho
08-04-2008, 10:23 PM
its not overiding for iphone or insinct.

is the iphone the same as ipod? i

I don;t know what an instinct is, and the iPhone is treated the same as an iPod by this addon. Have you specified a style for both mobile devices and then also for iphones?

vbreal
08-04-2008, 10:24 PM
i reinstalled and reinstalled and it works now.

dartho
08-04-2008, 11:53 PM
ah good - glad it's working for you now.

edytwinky
10-22-2008, 03:09 PM
Is there a way to add an option of this template to where users can select if they want to change to the original template?

Some users have browsers that are good enough to view the regular forum instead of the mobile version and would like to use that.

dartho
10-22-2008, 09:10 PM
sorry, no not with this mod.

SiLkk
11-16-2008, 03:27 PM
I am having a difficult time getting Blackberries to be work with this, it seems it will not redirect to the mobi Mobile/Cell Phone Style. Does this work with Blackberries?

dartho
11-16-2008, 08:34 PM
as far as I know it does. Post the user-agent string of one of the devices it is not working with and I'll check. You can view user agent strings via the Who's Online page

MissKalunji
11-17-2008, 02:59 PM
yeah it works with blackberries....it works with the BB browser and Opera

edytwinky
12-03-2008, 09:29 PM
how do you get this to redirect for iPhones?

My buddies iPhones go to the regular site and not the mobile version.

I've removed the word iPhone from Useragent Exceptions and it still pulls up the full version of the site.

dartho
12-04-2008, 03:39 AM
You should be able configure which skin you wish to display to iPhone devices in teh options...

Bakushan
12-04-2008, 02:16 PM
When I turn on the exceptions list, i get this error:

Warning: preg_match() [function.preg-match]: Unknown modifier '5' in /global.php(237) : eval()'d code on line 13

dartho
12-04-2008, 04:16 PM
do you have any forward slashes in the exception string? If so, escape it with a back slash. ie: "mozilla/4.0" becomes "mozilla\/4.0" Let me know if that was the issue and I'll look at updating the add-on....
thanks

Bakushan
12-04-2008, 07:12 PM
yes, there were three of them:

"Mozilla/5.0 (Linux; U; Android 0.5; en-us) AppleWebKit/522+ (KHTML, like Gecko) Safari/419.3"

it now looks like:

"Mozilla\/5.0 (Linux; U; Android 0.5; en-us) AppleWebKit\/522+ (KHTML, like Gecko) Safari\/419.3"

and the error is gone..

(this is the Android G1 useragent i believe... just waiting on a user to test it for me to verify)

Bakushan
12-04-2008, 07:15 PM
FYI, i wonder if the comma in the useragent will make it not work since they are comma-separated?

MissKalunji
12-04-2008, 07:35 PM
yes, there were three of them:

"Mozilla/5.0 (Linux; U; Android 0.5; en-us) AppleWebKit/522+ (KHTML, like Gecko) Safari/419.3"

it now looks like:

"Mozilla\/5.0 (Linux; U; Android 0.5; en-us) AppleWebKit\/522+ (KHTML, like Gecko) Safari\/419.3"

and the error is gone..

(this is the Android G1 useragent i believe... just waiting on a user to test it for me to verify)

how is it suppose to look? i have some android users

dartho
12-05-2008, 02:34 AM
You don't have to have a complete useragent - you could simple have the word "Android" and that would catch it. Should probably change it to use carriage returns or '|' symbols ...

Deathweaver
01-06-2009, 08:11 AM
We've just installed this Add-On at our board, but some users prefer to choose the original style. Using a simple cookie this could be a usefull extension.

Just change the beginning of the Plugin at style_fetch Hook like this to check for an cookie:

$noMobile = $_COOKIE['bbNoMobile'];
if ($vbulletin->options['mob_detect_enabled'] == 1 && $noMobile != 1) {
...
}


Then you have to provide a possibility to set the cookie:

<?php
setcookie('bbNoMobile', '1', time()+3600*24*30, '/', '%your_bb_url%');
if (strpos($HTTP['HTTP_REFERER'], '%your_bb_url%')) {
header("Location: ".$HTTP['HTTP_REFERER']);
} else {
header("Location: http://%your_bb_url%/");
}
?>

Save this to a file called e.g. switch.php and replace %your_bb_url% with your board hostname. Now you only have to provide a link to switch.php.

Perhaps it is possible to include this feature and integrate the switch.php code as plugin into vBulletin. Unfortunately I'm not very skilled in vB Plugin development.

stemmy
01-30-2009, 07:17 AM
This is probably a veruy simple answer but I cant find it !!

I am running VBA and I did the mods you requested to removed VBA sections.

Now when I look at the forum the first page is all crammed to the left. The rest of the forum looks fine.

Please can you help me sort this. Thanks in advance.

www.photography-forum.org

dartho
01-30-2009, 08:52 PM
I couldn't see anything wrong with your forum? No mobile style was disaplyed either - I assume you removed it?

slehmann
05-12-2009, 05:32 PM
how do you get this to redirect for iPhones?

My buddies iPhones go to the regular site and not the mobile version.

I've removed the word iPhone from Useragent Exceptions and it still pulls up the full version of the site.

having the same problem, how do you fix that?

dartho
05-13-2009, 12:35 AM
It should be reasonably straight forward - in vBulletin Options, check that ipod device detection is enabled, and ensure that the style ID is correct.

I no longer have a 3.6 board. The 3.7 version of this should also work with 3.6 (as it does with 3.8) - give that a try, it has a better interface for vbulletin options settings

BlueChipEarth
06-01-2009, 01:09 PM
I have a client who needs to moderate his forum from his Blackberry, so I needed to hide this style from him specifically.

I went into the plugin manager and opened up "Detect Mobile Device and Assign Style"

I changed the bottom if statements accordingly:


if ($mobile==1 && $vbulletin->userinfo['userid'] != 27462)
{
// echo "<!-- Mobile Device -->";
$styleid=$vbulletin->options['mobile_skin'];
}
else if($mobile==1 && $vbulletin->userinfo['userid'] == 27462)
{
$styleid=1;
$vbulletin->options['styleid'] = $styleid;
}

else if ($pda==1 && $vbulletin->userinfo['userid'] != 27462)
{
// echo "<!-- PDA Device -->";
$styleid=$vbulletin->options['pda_skin'];
}
else if ($pda==1 && $vbulletin->userinfo['userid'] == 27462)
{
$styleid=1;
$vbulletin->options['styleid'] = $styleid;
}
else if ($ipod==1 && $vbulletin->userinfo['userid'] != 27462)
{
// echo "<!-- IPOD Device -->";
$styleid=$vbulletin->options['ipod_skin'];
}
else if ($custom1==1 && $vbulletin->userinfo['userid'] != 27462)
{
// echo "<!-- CUSTOM1 Device -->";
$styleid=$vbulletin->options['custom1_skin'];
}


And it works great! Thanks, and I hope this helps someone else.

chuanjer
05-07-2010, 05:52 AM
The mobile version of my forum was running smoothly till yesterday.

Lost connection to MySQL server during query

I seem to be getting a database timeout for the mobile site. Is this plugin known to have any database connection issues?

I'm running vB 3.6.8. I've tried viewing it from different phones but I get the same error.

dartho
05-07-2010, 08:03 AM
this plugin has no database activity of its own

todomaquinas
04-20-2013, 10:14 PM
Version 4.2.0 Tested on level 3 and it works perfectly.

Congratulations on this simple and useful Mod

A greeting.