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 01-29-2007 08:43 PM

Should be easy to fix... - are you able to let me know the user agent string for the people who are having issues?

dartho 01-29-2007 08:49 PM

Never mind - I think I found the issue, new version released.

brvheart 01-30-2007 03:30 PM

are you going to release the modded style that you use for 3.6.x? :D

tekstylez 02-03-2007 12:10 PM

Quote:

Originally Posted by dartho (Post 1170044)
Never mind - I think I found the issue, new version released.

worked... thank you!

Eq4bits 02-03-2007 06:00 PM

Quote:

Originally Posted by dartho (Post 1168093)
OK - download, installed and tested Mozilla 1.7.13 - no issues for me using this version. The user agent string I get is "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414"

Would you be able to check your useragent string and let me know so I can ensure compatibility with thnis mod?

Thanks

This is what is 'current' in the Who's Online, I had to uninstall this mod and the skin to have my regular style show up instead of the mobile one
Quote:

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414
Mozilla/4.0 (compatible; MSIE 7.0; AOL 9.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Me
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

dartho 02-05-2007 09:53 AM

None of those useragents should trigger this hack to select the mobile skin.

If you had to uninstall the skin as well as the mod, I would think that the mobile skin you installed was being selected as default? Also be aware that as an admin, if you manually select the mobile skin you will ALWAYS get the mobile skin until you select another.

To test this mod, fully, it would be best to make sure you arelogged off logoff so that you are viewing the site as a guest, and perhaps use a dummy user account also to test.

Did you test on my site at www.thewholeforce.com ?

Sorry I can;t offer a solution, but as yet I am unable to find the cause of your problems...

Spinball 02-06-2007 07:12 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?

aceofspades 02-07-2007 09:01 PM

I really need a hack that will allow me to force users using IE6 to use one style and everyone else to use a different style.

Could this be used for that?

James

dartho 02-07-2007 09:33 PM

Try the attached. This WILL NOT work in conjunction with the Mobile Detect hack - I should be able to integrate though - let me know how it goes

Tralala 02-23-2007 01:44 PM

Thanks for a wonderful hack, dartho... that older "WAP detector" was unsupported and never really worked right for me.

I ended up putting manual links in subscription emails (with "?styleid=9" appended) saying, "To view this thread more easily on a smartphone or PDA, click here."

Your mod is much nicer and cleaner, obviously. So thanks for sharing. :up:

Quote:

Originally Posted by tekstylez (Post 1169826)
I have a few users who are saying they are getting the mobile skin displayed on thier MAC OS... Is this plugin detecting MAC's as mobile devices? Is there a fix for this??

Quote:

Originally Posted by dartho (Post 1170044)
Never mind - I think I found the issue, new version released.

Can anyone confirm that this does NOT affect users logging in from Safari? FWIW:

The complete Safari user-agent string running on a PPC processor is:
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/XX (KHTML, like Gecko) Safari/YY
and on an Intel processor is:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/XX (KHTML, like Gecko) Safari/YY

dartho 02-23-2007 08:10 PM

I tested those useragent strings and both worked as normal (ie. NOT detected as a mobile device)

dartho 02-23-2007 08:13 PM

oops - also need to add this:
Code:

<script language="JavaScript">
  function menu_jump(path) {
    window.location.href = path.options[path.selectedIndex].value;
  }
</script>

in the headinclude template for the nav template below to work...

Quote:

Originally Posted by dartho (Post 1168311)
Glad you like it. I'm the only person on my site making use of it, but I guess I'm the most important ;)

Here's a template mod which I really like on my site for navigation.

Delete everything in your Mobile skin navbar template, and replace your header template with the following (edit red bits to suit your site/requirements):

Code:

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD width="100%" class="alt1">
<center>
<a href="http://www.yousite.com"><img src="your_sites_small_logo.jpg" border=0></a>
</center>
</TD>
</tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="15" bgcolor="#ffffff">
<div align="center">
<select name="jump" onchange="menu_jump(this);">
<option selected>Mobile Navigation</option>
<option value="search.php?do=getnew">New Posts</option>
<option value="search.php?do=getdaily">Todays Posts</option>
<option value="private.php?">Private Messages</option>
<option value>----------------</option>
<option value="http://yoursite.com">Home Page</option>
<option value="forum.php">Forums</option>
<option value="search.php?">Search</option>
<option value="online.php">Who's Online</option>
<option value="sendmessage.php">Contact Us</option>
</select>
</div>
</td>
</tr>
</table>
$spacer_open
$_phpinclude_output

You can see how easy it is to add other options - I've modified most of mine to be PDA suitable...

Enjoy


Tralala 02-23-2007 08:14 PM

Quote:

Originally Posted by dartho (Post 1189321)
I tested those useragent strings and both worked as normal (ie. NOT detected as a mobile device)



k, thanks very much dartho!

/clicks INSTALL

ArAb4NoKiA 03-06-2007 04:31 AM

Hello,

it's not working on Nokia N70 ??!!

Regards,

dartho 03-06-2007 07:23 AM

New version release with more compatibility - should be good for the N70 now. If it isn't, are you able to get a copy of the user agent string and post here?

da420 03-06-2007 08:11 AM

Getting this error at the top of my pages with the hack enabled when updated to the latest version.

Did complete uninstall/reinstall, and updated my settings...

Code:

Warning: preg_match(): Unknown modifier 'M' in /global.php(237) : eval()'d code on line 64

dartho 03-06-2007 09:07 AM

Sorry - Fixed!

I will now save the previous version when adding a new one to make it easy to roll back should such issues happen again...

ABeautifulBrown 03-08-2007 01:17 PM

I installed this and it made all my templates look like the mobile one?

ArAb4NoKiA 03-09-2007 12:13 PM

it worked fine

thanks :)

dartho 03-09-2007 09:05 PM

ArAb4NoKiA: Thanks for the feedback - feel free to click MARK AS INSTALLED

Quote:

Originally Posted by ABeautifulBrown (Post 1198766)
I installed this and it made all my templates look like the mobile one?

The only case I thonk this could happen due to this hack would be if you are using a browser which is being detected as a mobile device browser... What OS/Browser are you using?

If you log off your site - is it still the mobile skin? How about if you disable this hack?
thanks

punch 03-18-2007 04:55 AM

I installed this tonight on my board and it worked great! Used the Mobile Alabama style.

Thanks so much, surfing my board on my motorola Q + evdo is awesome. Marked installed!

paramorefans 03-21-2007 04:49 PM

hey thanks for the hack!

Iam having some issues though, I dont own any blackberrys or PDAs
but some of my users do, all i have is a Sony Ericsson 300i, which has an internet browser, but it always displays me my default skin, it must be the phone right?
http://www.mobilealmanac.com/p_391-S...son-W300i.html


Code:

The W300i allows for HTTP internet browsing via Cingular's MEdia Net. The browser supports HTML 4.01, xHTML 1.0, CSS and Java script (ECMA script), and WAP 2.
would any of you be so kind and try to access my website with a PDS?
www.paramorefans.com/boards

dartho 03-21-2007 09:14 PM

Quote:

The W300i allows for HTTP internet browsing via Cingular's MEdia Net. The browser supports HTML 4.01, xHTML 1.0, CSS and Java script (ECMA script), and WAP 2.
Sounds like it is going via a proxy/gateway which could intefere with browser detection??

I visited your site with my PDA and got your normal site also, so you may have more than one issue - have you installed a mobile friendly skin and configured the plugin? I'd recomend this one http://www.vbulletin.com/forum/showp...&postcount=202 - just choose to ignore the version when importing it.

paramorefans 03-21-2007 09:51 PM

<a href="http://paramorefans.com/boards/index.php?styleid=30" target="_blank">http://paramorefans.com/boards/index.php?styleid=30</a>

yeah the skin is already uplaoded and i configured the plug in.

dartho 03-21-2007 10:05 PM

:confused: still not working for me from my PDA - I get your standard skin with that URL (page source says styleid 29) ...

My host crashed yesterday, so my site is offline - should be back in 12 hours :mad: when it is, I'll do some more testing, but I'm a little stumped at the moment....

paramorefans 03-22-2007 05:50 PM

Well in the source it shows id= 30

http://www.paramorefans.com/boards/?styleid=30

Code:

style type="text/css" id="vbulletin_css">
<!--
/* vBulletin 3 CSS For Style 'Mobille Skin' (styleid: 30) */
body
{

One question and sorry if it sounds stupid; do i have to check the mobile style?
if its checked a normal user can select it from the quick template change
if its not only admins can manually select it.

thanks.

punch 03-27-2007 04:03 AM

dartho, I've been using your software for a week now and I love it. But I'm not a big fan of the mobile alabama style, when using PM's it's formatting is horrible. I've tried a few other "lite" styles but Mobile is the best looking, however it's got problems under IE in windows mobile 5 when you go into the usercp.

I know you have nothing to do with that style but I was wondering if you still working on a 3.6.x mobile friendly style like you said in an ealier post? I've searched on vb.org and vb.com and can't find anyone who's developed a nice clean "Defacto" lite mobile style that works with 3.6.x. Mobile_alabama works fine in anything outside of the usercp.

I just wish there was a great style out there that works with 3.6.x and the latest palm/windows mobile browsers.

dartho 03-27-2007 12:01 PM

@paramorefans - sorry, yes - the style must be user selectable

@punch - I actually lost my mobile skin a whle back, and had to go back to the standard Alabama with only a few changes i've added :( If you want - try the attached - it may need some work which I am willing to do as I get time which is at a premium at the moment.

It's been tested only a little under 3.6.4 - (I haven't upgraded from 3.5 yet) It will also add a few extra templates for vBAdvanced - this shouldn't hurt if you don't use VBA. I would suggest installing it with no parent.

dartho 05-14-2007 06:31 AM

Punch - how'd that modded alabama style work out? I'm gonna upgrade to 3.66 in coming weeks and am wondering if you've had any issues?

v12kid 05-14-2007 07:13 AM

Quote:

Originally Posted by dartho (Post 1247225)
Punch - how'd that modded alabama style work out? I'm gonna upgrade to 3.66 in coming weeks and am wondering if you've had any issues?

same question :)

tekguru 06-03-2007 10:59 AM

Ditto on the query!

dartho 06-03-2007 11:36 AM

I've checked his (Punch's) website with my PDA and he appears to be using the skin attached above with this hack, so I would assume that it works OK for him!

tekguru 06-03-2007 03:43 PM

Looks that way - working well for me as well too :)

dartho 06-04-2007 09:52 PM

Good stuff! Feel free to come back with suggestions on the skin also (click Install too ;) )...

tekguru 06-05-2007 04:19 AM

Quote:

Originally Posted by dartho (Post 1261334)
Good stuff! Feel free to come back with suggestions on the skin also (click Install too ;) )...

Not a problem, will do. Which skin in particular? Using VbLite at the moment. Oh and yes I've clicked :)

dartho 06-05-2007 04:46 AM

I meant the skin attached to Post #108 (about 8 posts above this one) - I think it is better than the VB Lite skin, and I will work on it as I get the time and have the need.

Members who have released hacks can see who have clicked "installed" their on their hacks in the thread - you're not showing up as one of them?

tekguru 06-05-2007 04:59 AM

Alabama Mod we did try but the test team advises there were a few problems with it liek nop Quick Reply box working and some sort of problem with the unread posts.

Honest I've clicked on the button for all mods I've installed this is under IE7 though and nothing ever seems to happen.

dartho 06-05-2007 05:10 AM

Really? I'll look into it and post here when I have it tested (and working) properly under 3.6.7.

BTW - not that it really accounts for much anyway, but "Installed" is showing now - cheers!

tekguru 06-06-2007 03:23 PM

So the guys tell me :( Not using it myself!

If you can update it I for one would apprecaite it as according to the control panel it is out of date and needss updating quite a lot to work with 3.6.7PL1.

Yep I finally got the status to change :)

dartho 06-06-2007 09:35 PM

Ah OK - that'll be because all the templates state they are for older versions of vb - doesn't affect how it works.

I will test functionality fully under 3.6.7PL1 and update the version numbers of the templates.


All times are GMT. The time now is 12:53 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.01558 seconds
  • Memory Usage 1,835KB
  • 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
  • (5)bbcode_code_printable
  • (11)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