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)

MotoUp 12-04-2006 09:22 PM

Nope, still broke. I completely uninstalled, and deleted and reuploaded the xml file.

dartho 12-04-2006 09:30 PM

It shouldn't - all looks good on my test board - and it was a such minimal update that basic functionality shouldn't have chnaged at all.

I've changed the version number in the XML to be 1.0.4a so you can double check that it's the latest - perhaps some caching may have happened with the download?

MotoUp 12-04-2006 09:38 PM

Very strange. It is still happening, but it doesn't show 1.0.4a. Any idea how it may be caching? I completely deleted xml file, uninstalled, and reinstalled the plugin...I don't know what else to do...

dartho 12-04-2006 09:42 PM

BTW for anyone that is modifying a skin to work on their site, using firefox with the User Agent Switcher Extension works a treat. You will need to add a new Mobile UserAgent - once installed, Click Tools, User Agent Swtcher, Options, Options..., then click 'User Agents' on the Left and the Add button. Give it a description of "Mobile" and a User Agent "Mobile" - OK your way out and then you can switch between you default User Agent and a Mobile one and test out your mobile skin

Another tip is to enter the following URL javascript:resizeTo(340,420); which will resize your browser window to a similar size as a PDA - you need to add extra height and width for the toolbars and frames etc that are in Firefox - but it gives you a good idea of how things will look on a mobile device

dartho 12-04-2006 09:43 PM

Try with the attached XML

MotoUp 12-04-2006 10:43 PM

Well, That worked, so I redownloaded, and tried from another machine, and it shows 1.0.4a now, and it worked. Thanks for your time and help. I really appreciate it. I love this product! Thanks for your hard work on it.

dartho 12-05-2006 05:04 AM

No worries MotoUp - glad to help. One of these days I'll make the mobile skin I use 3.6 compatible and remove all my hard coded links etc and release it with this too... one day...

AMG021 12-06-2006 01:22 AM

Hey Dartho. So in order for me to get access to my forums from my phone I will just need to install this ? Or i have to install you hack and someone else's hack in order for this hack to function right. I'm lost, help me out please :)

Thanks In Advance

MotoUp 12-06-2006 01:53 AM

This forces a mobile device to a certain style installed on your forum. So if you have a mobile style installed on your boards, when someone logs into your forum from a mobile device, they automatically get the mobile style....

dartho 12-06-2006 01:58 AM

Yep - like MotoUp says - check the 2 links in the description above for 2 mobile device skins you can use. You need to install a Skin, and then this hack to get functionality

da420 12-06-2006 04:51 PM

On my Blackberry wap browser it does not work. It worked up until a couple of updates ago, but now it shows the default skin. I did re-upload the files, completely uninstall the product, and reset the style ID in the admin cp but still brings me to the default style.

dartho 12-06-2006 07:39 PM

Could you double check the version number of this addon as 1.0.4 and if so, would you be able to log on with your Blackberry and then check "Whos Online" and select "Yes" to disaply UserAgent.

If you post the full user agent here (see attached) , I will double check the code. If you PM me a link to your site or put it here, I'll logon with my PDA and check if it works with other devices.

sNator 12-18-2006 06:51 PM

This mod only works when I'am logged in with administrator rights. If I make the style user selectable it works fine but that can't be right? I don't want my ordinary users to browse my site without the banners.

Do you know of any styles that allows posting and posting files? I have tried the WAP style but it have some bugs.

dartho 12-19-2006 11:39 AM

sNator - I've not encountered that problem - got me stumped.... I will investoigate further, but it may not be a quick response.

As for other skins - theres bound to be some out there andI have been working on my own, but I'm yet to make the leap to 3.6.x beyond my test board soits only good for 3.5.x at the moment, and there is a lot of hard coded stuff for my site - not for for public release as yet. I was thining of paying a pro to write a skin, but then I'd have to sell the skin to recoup costs - if anyone is up for this (or wants to do it them self!) they should post here!

dartho 12-20-2006 10:39 AM

sNator - I can't recreate this on my test site - a fresh 3.6.4 install using this hack and Zachary's style - from my PDA. As a guest, and logged in as a user and as an Admin all give me the mobile style expected...

Any other plugins in the GLobal Start section which might be interfereing?

sNator 12-21-2006 11:16 AM

I works fine now, it could have been my phone who caused the problem.
I use the Alabama Mobile skin http://www.vbulletin.com/forum/showp...&postcount=202 which is really fast.

Is it possible to prevent vbadvanced to be loaded somehow?

dartho 12-21-2006 12:06 PM

cool! I use a very modified version of teh 3.0.x alabama skin on 3.5.4 - it is VERY good, but I didn't think all the functions woked on 3.6.x... I didn't realise there was a 3.5.x version released also!

I'll integrate this with my customisations and post up here

I'll post some stuff later (its midnight here) on how to make vbadvanced play nice.

dartho 12-22-2006 02:50 AM

for vbadvanced - I just edited the adv_portal template and removed the side columns - I still show my centre vbadvanced column under the mobile style - here's my adv_portal template:
Code:

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

$headinclude

</head>
<body>

$header

$navbar

<table align="center" class="page" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<if condition="$show['center_column']">
<td valign="top">
$home[centerblocks]
</td>
</if>
</tr>
</table>
$footer
</body>
</html>

You could alternatively overwrite the adv_portal template with a copy of the FORUMHOME template?

hotrodbiker 12-26-2006 07:58 AM

Works like a champ, just tested it with my cell. :D

Silver_2000_)! 12-29-2006 03:22 AM

Nice Mod
Quick question

How can I move it in Admin CP so its below the Vbulletin options ?
Ive tried changing the xml but every time I do it breaks it
Thanks
Doug

dartho 12-29-2006 08:17 AM

Edit the "includes/xml/cpnav_mobile_enabled.xml" file, and change the "dispalyorder=25" in
Code:

<navgroup text="Mobile Device Style" permissions="canadminsettings" hr="true" displayorder="25">
to be a larger number. Alternatively, you could just delete this fiule from your server altogether, and then the options for this mod will only show up in the vBulletin Options menu - it will no longer have its own menu in the left column of your AdminCP.

Hope this helps

Devil Woman 01-09-2007 08:43 AM

Thanks for this works a treat :)

brvheart 01-19-2007 06:52 PM

this works great if I am using a PALM OS treo...but anything running windows mobile it picks up as html....any thoughts?

da420 01-19-2007 07:36 PM

Here is a browser this does not work on. Works fine on Opera Mini, and the Cingular WAP browser, but the regular blackberry browser it brings up the forum default.

Mozilla/2.0 (compatible, MSIE 3.02, Windows CE, PPC, 240x320) Blackberry8700/4.1.0 Profile/MIDP-2.0

dartho 01-19-2007 08:26 PM

** Updated **
da420 - Should be OK for your Blackberry now and most of not all others
brvheart - I'm not sure, I exclusively use a Windows Mobile device, I did just add a little more support in this latest release which might fix you up. try installing the latest one. If you still have issues, have a look at my site - www.thewholeforce.com with you mobile device as a and let me knwo if that works.

Thanks

brvheart 01-19-2007 09:09 PM

ok, got it installed getting new Treo 700w tomorrow so will post back with results :) thanks Dartho ;)

punchbowl 01-24-2007 06:54 PM

is there a way to prevent users picking(or seeing) the style when not on a mobile device?

nice work

dartho 01-24-2007 07:38 PM

Yes - simply don't make it user selectable!

*fredtissue clicks install ?

MotoUp 01-24-2007 07:44 PM

I tried that too, but then the handheld wouldn't detect it.

dartho 01-24-2007 08:17 PM

Wow - you're right!

I've always forced a single style and not allowed users to select their own - it works OK then.

I'll look into 'hiding' a style.

Eq4bits 01-25-2007 07:42 PM

has the problem with it detecting Mozilla browser as a mobile device been cleared up? *Most* of my users use Mozilla as their browser .....

dartho 01-26-2007 09:38 PM

I don;t think anyone has reported this as being a problem? By Mozilla, you mean Firefox? That is the only browser I use and I have had no issues....

Eq4bits 01-26-2007 10:10 PM

Mozilla is Mozilla, similar to firefox and by the same peeps... it's essentially the old netscape 4.0. I installed and used the mobile_alabama style/skin, but when i reloaded the forum here on my desktop comp it auto detected it as a mobile device. In my vb options i have it set to where the default overides users choice.. whatever... they can't 'choose' any style other than the default.

dartho 01-26-2007 11:31 PM

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

Eq4bits 01-26-2007 11:39 PM

I used to have that turned on, but it's not now.... can't seem to find it in vb options....

dartho 01-26-2007 11:39 PM

WHen you view"Who's Online" you should have an option at the bottom of the list to view teh user agent string

Lizard King 01-27-2007 03:54 AM

This is really a good modification. Thanks for this.

ymy 01-27-2007 04:00 AM

Installed thanks and working nice

dartho 01-27-2007 12:55 PM

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

tekstylez 01-29-2007 02:29 PM

great hack... just one thing..

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


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.01374 seconds
  • Memory Usage 1,822KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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