vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Mobile Device Style Assignment (https://vborg.vbsupport.ru/showthread.php?t=130983)

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.

Code:

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
Code:

$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 Code:

<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
Code:

<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

Quote:

Originally Posted by chadi (Post 1439529)
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

Quote:

Originally Posted by dartho (Post 1442096)
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
Code:

<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

Quote:

Originally Posted by dartho (Post 1442551)
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 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 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

Quote:

Originally Posted by dartho (Post 1450429)
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, but not this site (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.


All times are GMT. The time now is 09:12 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01554 seconds
  • Memory Usage 1,827KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete