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)

dartho 02-19-2009 03:04 AM

what's the useragent string of the flip phone?

^SuiCyde^ 02-20-2009 12:39 AM

Quote:

Originally Posted by dartho (Post 1529550)
That wouldn't be to do with this add-on, it would be caused by the style you are using - check the styles threads for updates...

if that's the case how would i go about correcting that within the style if i am not using your mobile style but rather one that i created myself that works very well except for the security token missing

GOPHER said something to the extent of

Ahhh.. I did the <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> thing and it worked. Thought maybe the 3.7 version would have that in there already.

where do i add this?

dartho 02-20-2009 04:00 AM

From memory, you'd need to add <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> to every form on your site that POSTs data...

jonah1892 03-03-2009 06:20 PM

does this work with 3.8.1

Tourmeister 03-08-2009 02:28 AM

Quote:

Originally Posted by jonah1892 (Post 1759481)
does this work with 3.8.1

I have the same question. I just updated to 3.8.1 and I have folks asking me to get this mod installed.

dartho 03-08-2009 04:24 AM

works for me

Tourmeister 03-08-2009 06:10 AM

Excellent. I will download and give it a try! Thanks.

Sooner95 03-11-2009 11:18 PM

since i have upgraded to 3.8.1 it is hot or miss if it works..

On my Samsung Instinct, if i use Opera Mini, it works...default browser, it does not. Another user it did not work at all for him anymore..

Any ideas?

Sooner95 03-11-2009 11:21 PM

geez..ok now it works..LOL nevermind..

student4ever 03-21-2009 12:33 AM

I'm new to vB and just installed v3.8.1. Already had a couple people request this for the site. Any word on updating it for v3.8?

thanks!

Tourmeister 03-21-2009 02:27 AM

Quote:

Originally Posted by student4ever (Post 1773046)
I'm new to vB and just installed v3.8.1. Already had a couple people request this for the site. Any word on updating it for v3.8?

thanks!

Working perfect for me on 3.8.1.

www.twtex.com

student4ever 03-21-2009 03:45 AM

Quote:

Originally Posted by Tourmeister (Post 1773087)
Working perfect for me on 3.8.1.

www.twtex.com

thanks - sounds like it's worth installing

roymogg 03-21-2009 03:17 PM

Dartho,

The mod went in a treat no problems at all - tweaked the vbadvanced template just to remove the side blocks rather than completely removing as i wish to use some of the modules like the calendar. Other than that this was a easy hack.

One small issue I found is it is possible to get at the forum default template via the usecp panel and the search cloud links. Is there some mod I must do to overcome this or is it going through the relevant templates and editing them out?

great mod installed and nominated

RoyMogg:D

www.bizface.co.uk

dartho 03-21-2009 09:35 PM

when using this add-on it shouldn't be possible to change to any other style ... ?

GCSkye 03-24-2009 09:13 PM

Quote:

Originally Posted by dartho (Post 1773706)
when using this add-on it shouldn't be possible to change to any other style ... ?

I think it should be. My members are having an issue with their devices changing to the mobile skin and they can't switch to anything else.

Site: EverCube.Net, Currently on 3.8.1

Is it possible to have the mobile detection only detect if they are mobile when they first visit on there device?

Biker_GA 03-27-2009 12:17 PM

If your users are using the mobile style, it shouldn't be possible to change the style. That's by design. Now if they're logging in via mobile, and later, when logging in via the PC they're still getting the mobile style, there's a setting that isn't quite right.

GCSkye 03-27-2009 11:25 PM

Quote:

Originally Posted by Biker_GA (Post 1778181)
If your users are using the mobile style, it shouldn't be possible to change the style. That's by design. Now if they're logging in via mobile, and later, when logging in via the PC they're still getting the mobile style, there's a setting that isn't quite right.

People have mobile devices that can handle nicer skins. By choose my members don't all want the mobile skin when on a mobile device. Complaints have surfaced over this. I'm using a custom made Mobile skin and my members have a choose to change.

Regardless of the matter, you provided no help. Troll another question.

Still looking for help on this matter.

Biker_GA 03-28-2009 05:21 PM

Learn to read...... All I stated was this style was automatically assigned to mobile devices and usually can not be changed. Your troll comment was neither warranted or appreciated. It also states as part of the description for this modification:

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.
You can create your own mobile style and then specify that style as the default.

You can also specify a different style for Windows CE and iPhone users.

However, allowing users to specify the style they wish to use via a mobile device is not a feature of this package.

GCSkye 03-28-2009 07:56 PM

I'm looking for someone that knows how to get this to only detect there first visit instead of constantly assigning them to mobile skin. Basically, it will put them on the mobile skin - but if they wish they can switch skins without it forcing them back onto it.

One time detection.


Example: I have opera mobile users. Some want to use the default skin and some can't handle it on there mobile so they prefer the mobile skin. If needed, I want them to be able to change skins.

Sorry if I was unclear at first, I understand what this mod does. I have it successfully set up.

EverCube.net

dartho 03-28-2009 10:30 PM

Whilst it's not what I wrote this addon for, as I don't allow user to change styles at all (I like to have a pretty good idea how things look to visitors to my site and forcing fixed styles on them achieves this), it could probably be done easy enough...

GCSkye 03-29-2009 06:03 AM

I have sent you a pm, thanks for the mod thus far. Works great.

dartho 03-29-2009 07:46 AM

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)

GCSkye 03-31-2009 07:13 AM

Figured cookie would be the way to go for a start. You could add an option into vbulletin option to allow this feature to be off and on if you find an alternative to cookie.

An idea would be to have it check the serial of the mobile device and store it for a day as a mobile device that had been detected already. Once it does that it will no longer detect what skin it needs to be changed to. (Again this can be a feature admins can enable and disable and possible choose to manually flush the sql or have it automatically done x days)

An alternative to sql could be a file in ftp.

GCSkye 03-31-2009 07:25 AM

Added it to my forum and when I went to view a forum (not on mobile) I got this error:

http://evercube.net/images/errorA.png

I am currently running 3.8.1 vbulletin, and I have reinstalled the old version of the mod.

dartho 03-31-2009 10:02 AM

Bugger - looks like I missed a closing brace, I've updated the attachment above in my last post - give it another go!

nNJ 04-01-2009 02:57 AM

Wow, its insanely lucky I checked this tonight.

Out of the blue, I thought it would be a good idea to check back here to see if there were any updates that DIDN'T force a user to use a predefined (assumably mobile) theme.

It just so happens it payed off.. What are the odds..

Anyway, in the second scenario above, if a user changes his or her skin from the mobile skin, and are unable to change back, they can choose the style manually by typing the style id into the url.

Example:
Domain.com/forums/index.php?styleid=3.

Thanks a lot dartho, I'm on my mobile device atm, but tomorow I'm going to be uninstalling the original hack, and installing this one.

IMHO, you ought to develope this idea further. I think it will be well received by the community.

To be honest, its extremely annoying to visit my own forum (on my phone) and not be able to choose my own style. There's only so much you can do with a mobile style, and some phones can handle the full skins.

Forcing a user to use a skin doesn't make sense to me. IMO, defaulting a mobile user's to a mobile theme makes sense, not giving them the option to change it doesn't.

As an idea for a future release (should you decide to make one) would be to make the "force" aspect of this mod a boolean, (am I phrasing this right?) so that users can turn it on/off in their admin cp's.

Overall, I love this hack. This new release without the "force" just makes it that much better.

Great job, and thanks dartho!

nNJ 04-01-2009 03:03 AM

Wow, its insanely lucky I checked this tonight.

Out of the blue, I thought it would be a good idea to check back here to see if there were any updates that DIDN'T force a user to use a predefined (assumably mobile) theme.

It just so happens it payed off.. What are the odds..

Anyway, in the second scenario above, if a user changes his or her skin from the mobile skin, and are unable to change back, they can choose the style manually by typing the style id into the url.

Example:
Domain.com/forums/index.php?styleid=3.

Thanks a lot dartho, I'm on my mobile device atm, but tomorow I'm going to be uninstalling the original hack, and installing this one.

IMHO, you ought to develope this idea further. I think it will be well received by the community.

To be honest, its extremely annoying to visit my own forum (on my phone) and not be able to choose my own style. There's only so much you can do with a mobile style, and some phones can handle the full skins.

Forcing a user to use a skin doesn't make sense to me. IMO, defaulting a mobile user's to a mobile theme makes sense, not giving them the option to change it doesn't.

As an idea for a future release (should you decide to make one) would be to make the "force" aspect of this mod a boolean, (am I phrasing this right?) so that users can turn it on/off in their admin cp's.

Overall, I love this hack. This new release without the "force" just makes it that much better.

Great job, and thanks dartho!

GCSkye 04-01-2009 05:28 AM

Quote:

Originally Posted by dartho (Post 1780928)
Bugger - looks like I missed a closing brace, I've updated the attachment above in my last post - give it another go!

Not that time, you got it. Strongly appreciate this and I can see others are as well. Only complaint I got from this mod is members couldn't change there skin at will. Thanks for the updates.


Quote:

Originally Posted by nNJ (Post 1781508)
To be honest, its extremely annoying to visit my own forum (on my phone) and not be able to choose my own style. There's only so much you can do with a mobile style, and some phones can handle the full skins.

Forcing a user to use a skin doesn't make sense to me. IMO, defaulting a mobile user's to a mobile theme makes sense, not giving them the option to change it doesn't.

Exactly what I was thinking. Glad to see dartho took some action on this.


Quote:

Originally Posted by nNJ (Post 1781508)
As an idea for a future release (should you decide to make one) would be to make the "force" aspect of this mod a boolean, (am I phrasing this right?) so that users can turn it on/off in their admin cp's.

Exactly what I was suggesting. Would be something to look forward too.

Sooner95 04-06-2009 10:24 PM

Ok, I give up. ever since upgrading to 3.8.1 this has not worked. Now i am running 3.8.2 and still no good. I have removed it, reinstalled it, adjusted the settings, and still nothin.

I really like this addon, as do several of my users, but it's not doing us any good now.

also tried to put in a defined string for my phone..

TELECA-/2.0 (BREW 3.1.5; U; EN-US;SAMSUNG; SPH-M800; Teleca/Q05A/INT) MMP/2.0 Profile/MIDP-2.1 Configuration/CLDC-1.1

Still does not detect the mobile theme.

dartho 04-07-2009 03:34 AM

try adding just "SPH-M800" as a user defined useragent string and see how you go. I know it's obvious, but you also need to configure a style for the custom/user defined section and enable it ...

Sooner95 04-07-2009 07:14 PM

Did all that, still nadda..even tried another "lite" style and it still goes to my default.

GCSkye 04-07-2009 09:29 PM

Quote:

Originally Posted by Sooner95 (Post 1785985)
Did all that, still nadda..even tried another "lite" style and it still goes to my default.

Did you edit it in your vbulletin options to select the new style as the mobile default?

dartho 04-07-2009 09:57 PM

If I spoof my useragent string to TELECA-/2.0 (BREW 3.1.5; U; EN-US;SAMSUNG; SPH-M800; Teleca/Q05A/INT) MMP/2.0 Profile/MIDP-2.1 Configuration/CLDC-1.1 and visit your site, I get your mobile style :confused:

Sooner95 04-09-2009 05:39 PM

GC- Yes, that was done..

dartho. well if it works then it works..not much else I can say. I have notcied that it works more often using Opera Mini, than anything else..so I am just going to write it off as a crappy phone browser.

Appreciate the time..

Patrickftw 04-11-2009 05:58 AM

Is it compatible with vBulletin 3.8.x? Because I can't seem to get it to work.

Biker_GA 04-11-2009 03:17 PM

Running it on 3.8.1 and it works wonderfully.

Sooner95 04-11-2009 08:34 PM

Just to confirm..seems I am the only one that has an issue..my other members state it works good..so that's enough for me..

Thanks again..

on 3.8.2

jgruberman 04-30-2009 02:33 PM

PROBLEM:

Quote:

Installed... all looks good until I go to hit submit on a reply to a thread and I get:

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

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you receved this error.

SOLUTION:


In the SHOWTHREAD template in your mobile style, find:

Code:

<input type="hidden" name="s" value="$session[sessionhash]" />
Directly Below, ADD:

Code:

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

dartho 04-30-2009 09:32 PM

Thanks, but that is a problem (and solution) with the style you have installed - nothing to do with this add-on.

dancue 05-02-2009 06:31 PM

This is great. Works well with 3.8.

Now. How do I get it to go directly to index.php instead of the vbadvanced page?


All times are GMT. The time now is 04:29 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.01615 seconds
  • Memory Usage 1,837KB
  • 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
  • (2)bbcode_code_printable
  • (12)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