vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Forum Display Enhancements - Mobile Phone / iPhone / PDA Detection and Style Assignment (https://vborg.vbsupport.ru/showthread.php?t=173239)

Biker_GA 05-02-2009 07:16 PM

In your mobile style, edit your adv_portal template to something like this:

Code:

$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 05-06-2009 08:19 PM

thanks.

I've figured how to do it using htaccess.

Thanks again.

dancue 05-07-2009 08:23 PM

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 05-08-2009 03:52 AM

Excellent mod.. I'm putting it at our forum

dancue 05-11-2009 11:30 AM

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 05-11-2009 11:41 AM

**banging head on desk**

From the description of the mod:

Quote:

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 05-12-2009 02:30 AM

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 05-12-2009 03:09 AM

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 05-12-2009 03:22 AM

Quote:

Originally Posted by Biker_GA (Post 1808505)
**banging head on desk**

From the description of the mod:



Bold by me.

:)

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

Biker_GA 05-12-2009 04:40 AM

Why should something that is "by design" be fixed? It's SUPPOSED to be that way.

dartho 05-12-2009 07:02 AM

Quote:

Originally Posted by dt-pain (Post 1809108)
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?

Please visit http://vbdev.org/test-mob-detect.php from your device and copy/paste the output here.

Here's a sample of what it will display to you (I visited in Firefox from my desktop):

Code:

No Mobile Device Detected

HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8


dt-pain 05-12-2009 03:12 PM

Quote:

Originally Posted by Biker_GA (Post 1809118)
Define not working. I have members using many different Blackberry models (including the Curve) and they're singing my praises for this mod. LOL


This is what they said:

I'm useing my Nextel Balckberry Curve and I am on the Home page. I put in Ballerscafe.com.
Everything came up real quick compared to usual which will make me want to use my phone to log on more often.
But on the left under the strip of field and stores list all I' getting is a whole line about 8 Capitol Edge Icons and the last one is the USPN Icon.
I'm not seeing Davis Dg,Extreme or any of the others

Biker_GA 05-12-2009 03:22 PM

Bingo.. You have vBAdvanced on the main page. Replace your adv_portal template with something like this:

Code:

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

This will redirect your mobile users right into the forums. There's an issue with CMS and this mod working well together. :)

Once you do this, your mobile users will be kneeling and kissing your feet. :D

dt-pain 05-12-2009 05:29 PM

Yes I did do that. I made some changes thinking this will force the redirect to the mobile style. However I don't think anyone else is having this issue only that one person.

PHP Code:

$stylevar[htmldoctype]
<
html>
<
head>
$headinclude
<meta http-equiv="Refresh" content="2; URL=http://www.ballerscafe.com/forum/index.php?styleid=15" />
</
head>
<
body>

$header

$navbar
<div align="center"><a href="http://www.ballerscafe.com/forum/index.php?styleid=15">Portal Disabled in Mobile View Click here if your browser does not automatically redirect you.</a></div>

$footer

</body>
</
html


Biker_GA 05-12-2009 05:37 PM

I'd take the style ID out. This particular mod is supposed to force mobile devices to the mobile style.

How competent is your Blackberry user? It's possible they have some browser settings that aren't right on the decvice. (Ensure javascript is turned on, etc etc etc.)

I'd also tell the user to do a hard reset on the device. Remove the battery while the device is still operating. Leave the battery out for 30 seconds, then put it back in. This will cure many issues a user may be having with the Blackberry, including rendering issues on some sites.

dancue 05-13-2009 08:56 PM

Quote:

Originally Posted by Biker_GA (Post 1809154)
Why should something that is "by design" be fixed? It's SUPPOSED to be that way.

OH COME ON!!...I'm pretty sure this was not "DESIGNED" to be this way. It happens to be this way because the mod redirects people automatically to a particular style.

Thank you for your sarcasm. It truly is a pleasure to read your replies, but if you don't mind, could you please allow the coder of this mod to give me an answer.

dartho 05-13-2009 10:02 PM

Actually - it was by design, I wanted to *know* that a mobile user could read the forum OK using a specific style. By giving mobile users a choice, they could load up a style that does not render on their device and never be able to get back again.

Also, I don't think there was any sarcasm in Biker_GA's comment. He has gone out of his way to help you in the last couple pages.

Anyway - if you head back to around post #219 and read on from there, you will find a post with an attached variation to this mod that will do what you seem to be asking for.

dancue 05-14-2009 12:04 AM

Thank you dartho.

That worked for me. My apologies to Biker. Thank you also for your help.

dancue 05-14-2009 12:16 AM

Would be cool to incorporate a floating notification asking the user if they want to switch back to the mobile style.

Similar to this. Of course this would only appear if the user is on a mobile browser.

dancue 05-15-2009 12:59 AM

Dartho,
Is there an if condition that I could use on a template that would allow me to detect if the user is on a mobile browser?

I want to say "If user is on mobile device then do not show"

dartho 05-15-2009 01:35 AM

No - not really depending on what you are trying to do you'd likely need to use plugins.

However, assuming they are viewing your site via a mobile device using a mobile style, you can simply edit the template in the mobile style.

gcxboxps 05-17-2009 10:58 PM

Thanks, this works perfectly on 3.8.2

Trana 05-18-2009 04:47 PM

I used the code listed to forward from the VBA adv_portal template to the forum home. I hit the forum home, no problem, but when I click on a forum I am redirected back to the original forwarder page (the VBA template).

Any idea what I am missing?

nureeves 05-19-2009 05:15 AM

help...
i have enabled this product, and i also have installed its mobile style
but default style on PC user change to mobile style ... how i could fix this?

thanks

dartho 05-19-2009 11:05 AM

I'm guessing you have vbadvanced and your forums integrated? I've never done this before, there's probably a vbadvanced plugin you could edit to get around it. I'll *try* and have a look into it...

Blackheart_72 05-19-2009 03:41 PM

Installed and takes mobile users to the mobile skin but when they post and hit submit it clears the text area and does not post.

Cheers

Trana 05-19-2009 04:02 PM

Quote:

Originally Posted by dartho (Post 1813411)
I'm guessing you have vbadvanced and your forums integrated? I've never done this before, there's probably a vbadvanced plugin you could edit to get around it. I'll *try* and have a look into it...

No, the CMPS page is not integrated with the site. It is in a separate directory.

Aexo 05-20-2009 07:53 PM

hello

I'd like that when you enter to forum with a mobile, the forum ask you what template do you like to use.
Is it posible?

Xeye 05-21-2009 11:41 PM

Thanks dartho, it works great.

Quote:

Originally Posted by Aexo (Post 1814273)
hello

I'd like that when you enter to forum with a mobile, the forum ask you what template do you like to use.
Is it posible?

It would be great if we can let members to choose between few mobile styles, I wish to see it in next version <3

Megatr0n 05-25-2009 01:29 PM

Quote:

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

dartho,

I installed this plugin but when I connect from my phone I don't see the option anywhere on the mobile skin to change the skin? I've cleared the cookies and everything but nada.

dartho 05-25-2009 01:51 PM

That's either the mobile style or your settings not showing a style chooser, not this add-on.

Megatr0n 05-25-2009 01:55 PM

I haven't touched the settings. Was I suppose to after installing?

Can, you help me with this?

BlueChipEarth 05-26-2009 03:42 PM

Quote:

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

Dartho, I had this same problem and indeed it was because I didn't have "Allow User Selection" enabled.

Everything works great!

Installed!

(Also, I'm using your style, looks great!)

dartho 05-26-2009 10:05 PM

Megatr0n - what style are you using? If it is this style you will need to also install this add-on to add an optional style chooser

Megatr0n 05-26-2009 11:18 PM

Quote:

Originally Posted by dartho (Post 1817754)
Megatr0n - what style are you using? If it is this style you will need to also install this add-on to add an optional style chooser

Ohhhh.... :D

BGObsession 05-26-2009 11:45 PM

Dartho,
Thanks for the fine mod. I redid the adv_portal template code per your recommendations, which did work to put a redirect link on the first log-in screen. My follow up question is, when I log-in on my blackberry, here's what I'm seeing as links listed:

Blogs
Your Blog
Recent Entries
Best Entries
Best Blogs
Blog List
Search Blogs
Home New Posts User CP
*and my "Portal disabled for Mobile Devices. Click here to go to Forums" link just inserted

Obviously the 'Blog-related links are getting pulled from the Blog software. How can I get rid of all that? Since there doesn't appear to be a fix to have mobile users directed to the 'Forums' page only, I'd prefer that the only thing that be on the initial screen are:

Log-in fields
Home
New Posts
User CP
'Portal disabled for Mobile Devices. Click here to go to Forums' link

Thanks in advance for your help (I'd also be curious how to move the 'Portal disabled' verbage down a couple of lines so its not shoved up against the other links?).

abrecher 05-28-2009 08:44 PM

Users are directed to a custom CMS I have running on index.php on my site. How can I force the mobile users to go to forum.php ?

dartho 05-28-2009 10:44 PM

@BGObsession - You've obviously fixed it - looks fine to me
@abrecher - see other thread you posted same Question in

BGObsession 05-28-2009 11:22 PM

Any reason you can think of it would appear 'fixed' in 'mobile' skin on my site (from a PC), while still showing all of those blog options on a portable device (cleared cache on my device, still showing up)? And its not just on the initial screen, every single screen starts with that list of blog options no matter where I navigate....

Frustrating....

dartho 05-29-2009 12:37 AM

I had look at the source - the blogs addon is adding in a dropdown menu for blogs which a desktop browser is smart enough to know not to display, but the mobile browser - not so smart.

If you delete the contents of the blog_navbar_link_menu template in your mobile style, that should stop it showing up


All times are GMT. The time now is 09:32 AM.

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.01609 seconds
  • Memory Usage 1,836KB
  • 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)bbcode_php_printable
  • (10)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