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)

punch 04-13-2008 11:43 PM

dartho, i have some treo users, and a Q9 (WM 6.1) complaining that they can't pull up the mobile version.. but i'm testing it just fine on my windows mobile 6 phone (HTC mogul).

www.tcstangs.com/forum/

Really clueless why people are having problems. They are getting the full version of the forum. I'm using 2.1.3b.

My HTC mogul with WM 6 works fine, but 6.1 users with a Q9 and 755p treo users are getting the full version of the forum.

punch 04-14-2008 12:06 AM

Quote:

Originally Posted by punch (Post 1490040)
dartho, i have some treo users, and a Q9 (WM 6.1) complaining that they can't pull up the mobile version.. but i'm testing it just fine on my windows mobile 6 phone (HTC mogul).

www.tcstangs.com/forum/

Really clueless why people are having problems. They are getting the full version of the forum. I'm using 2.1.3b.

My HTC mogul with WM 6 works fine, but 6.1 users with a Q9 and 755p treo users are getting the full version of the forum.

Oh, the problem was I didn't have the mobile skin set as "user selectable" in the style manager.. thus if you were not logged in you got the full version. If you were logged in, you saw it fine.

The problem I have no is that I already had a few skins selectable by logged-in users and now I know some idiot is going to select the Mobile skin as their default skin. I'm going to get a PM within a few hours I bet.

Anyone know of a good workaround for this?

J105C 04-21-2008 12:13 AM

Quote:

Originally Posted by punch (Post 1490051)
Oh, the problem was I didn't have the mobile skin set as "user selectable" in the style manager.. thus if you were not logged in you got the full version. If you were logged in, you saw it fine.

The problem I have no is that I already had a few skins selectable by logged-in users and now I know some idiot is going to select the Mobile skin as their default skin. I'm going to get a PM within a few hours I bet.

Anyone know of a good workaround for this?

True, I'm waiting for this as well. I dont want my users able to select the mobile skin. I only want it to be 'forced' when they visit my site from a mobile device.

J105C 04-21-2008 01:01 AM

I just tried 2 other mobile styles including the one you sent me. This is what I get:

Wrong mime-type, I got text/html; charset=ISO-8859-1, but I want text/vnd.wap.wml.

Stryker412 04-26-2008 10:42 PM

I upgraded my forum to 3.6.10 and now I cannot post in the mobile version.

Froggy32701 04-27-2008 01:53 AM

Quote:

Originally Posted by Stryker412 (Post 1500179)
I upgraded my forum to 3.6.10 and now I cannot post in the mobile version.


I have no issues? Did you revert all of the mobile templates?

tekguru 04-27-2008 02:28 PM

I didn't revert but fixed the issue by taking the mod XML, looked for all <form> lines and added a

PHP Code:

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

after each and reloaded. I also changed the version number to 3.6.10.

Al I had then to do was go into the style editor to save each template to clear the 'you may need to edit flags. However when doing this I got on threadadmin_editthread:

Quote:

The following error occurred when attempting to evaluate this template:
The conditional on line 34 appears to be missing its beginning tag (<if>). This may cause unexpected behavior.

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
On looking that template it looks like there is one to many closing IFs in there which I removed to fix that problem.

dartho 04-30-2008 06:25 AM

This add-on should work fine on 3.6.10 - style issues have apparently come up, but thats not to do with this particular add-on. I'll be looking into them when I get a chance, only *just* got back from holidays....

Stryker412 05-02-2008 11:46 AM

Quote:

Originally Posted by dartho (Post 1503050)
This add-on should work fine on 3.6.10 - style issues have apparently come up, but thats not to do with this particular add-on. I'll be looking into them when I get a chance, only *just* got back from holidays....

The error I'm getting since upgrading to 3.6.10 and now 3.7 is:

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

I can read the forum fine, but cannot post at all.

Ted S 05-02-2008 04:28 PM

Quote:

Originally Posted by Stryker412 (Post 1505679)
The error I'm getting since upgrading to 3.6.10 and now 3.7 is:

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

I can read the forum fine, but cannot post at all.

You'll need to edit EVERY template that posts data to add the security hash variable from the latest update (3.6.10 and 3.7.0).

Quote:

Details: Find
<input type="hidden" name="s" value="$session[sessionhash]" />
and after it, add
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />


- http://www.vbulletin.com/forum/showthread.php?t=268123

MissKalunji 05-02-2008 04:50 PM

here youc an get a list of whch template : https://vborg.vbsupport.ru/showpost....4&postcount=48

Stryker412 05-02-2008 06:21 PM

Can someone be kind enough to test my site on a mobile device. I reinstalled the product entirely. I must have had an old version because the new colors are great and easier on the eyes. One question, how can I get it to highlight new sections with posts again instead of just bolding them?

Stryker412 05-02-2008 06:58 PM

Quote:

Originally Posted by Ted S (Post 1505905)
You'll need to edit EVERY template that posts data to add the security hash variable from the latest update (3.6.10 and 3.7.0).

[/COLOR][/FONT]

- http://www.vbulletin.com/forum/showthread.php?t=268123

That worked, thank you.

Reinhart 06-18-2008 04:07 AM

Any way to let users disable the skin manually?
Normal Skin Chooing doesnt seem to work with this installed.

dartho 06-18-2008 04:40 AM

That's the idea of this add-on, the user doesn't get a choice! If you wish to allow users to choose, just install the styles and allow users to change them, no need for this addon...

Reinhart 06-18-2008 05:38 AM

Yeah I guess I was thinking maybe.. a link or something that lets people disable it... because 90% of the time I WANT it to be forced. but I know some people (on PSP in this case) want to view it normally... and I dont know the "code" to disable it for PSP... any some other devices.

Edit: Also since I have you here... any idea how to get Adsense's new "Mobile Ads" going on your skin?
Cant figure it out.

Would be a good addon!!!

dartho 06-18-2008 05:47 AM

I got it working under 3.7 - some guidelines here: https://vborg.vbsupport.ru/showthrea...=174375&page=9

That might be enough to get you going...

jambo_1969 08-02-2008 11:13 AM

Works great on 3.6.8.

Members happy and aside from basic colour issues which I'll change, seems to be working okay.

Apart from iphone users who want an iphone version.

Pah.

Reinhart 08-04-2008 02:00 AM

Any way to override this for PSP devices?
Have a few people complaining about it.

dartho 08-04-2008 06:19 AM

Yep - just add the useragent string for PSP's in the 'Useragent Exceptions' box - just the text "PSP" should be enough do it ...

vbreal 08-04-2008 04:47 PM

its not overiding for iphone or insinct.

is the iphone the same as ipod? i

MissKalunji 08-04-2008 04:54 PM

yep it is....

Perhaps you forgot some setting?

dartho 08-04-2008 10:23 PM

Quote:

Originally Posted by vbreal (Post 1591271)
its not overiding for iphone or insinct.

is the iphone the same as ipod? i

I don;t know what an instinct is, and the iPhone is treated the same as an iPod by this addon. Have you specified a style for both mobile devices and then also for iphones?

vbreal 08-04-2008 10:24 PM

i reinstalled and reinstalled and it works now.

dartho 08-04-2008 11:53 PM

ah good - glad it's working for you now.

edytwinky 10-22-2008 03:09 PM

Is there a way to add an option of this template to where users can select if they want to change to the original template?

Some users have browsers that are good enough to view the regular forum instead of the mobile version and would like to use that.

dartho 10-22-2008 09:10 PM

sorry, no not with this mod.

SiLkk 11-16-2008 03:27 PM

I am having a difficult time getting Blackberries to be work with this, it seems it will not redirect to the mobi Mobile/Cell Phone Style. Does this work with Blackberries?

dartho 11-16-2008 08:34 PM

as far as I know it does. Post the user-agent string of one of the devices it is not working with and I'll check. You can view user agent strings via the Who's Online page

MissKalunji 11-17-2008 02:59 PM

yeah it works with blackberries....it works with the BB browser and Opera

edytwinky 12-03-2008 09:29 PM

how do you get this to redirect for iPhones?

My buddies iPhones go to the regular site and not the mobile version.

I've removed the word iPhone from Useragent Exceptions and it still pulls up the full version of the site.

dartho 12-04-2008 03:39 AM

You should be able configure which skin you wish to display to iPhone devices in teh options...

Bakushan 12-04-2008 02:16 PM

When I turn on the exceptions list, i get this error:

Warning: preg_match() [function.preg-match]: Unknown modifier '5' in /global.php(237) : eval()'d code on line 13

dartho 12-04-2008 04:16 PM

do you have any forward slashes in the exception string? If so, escape it with a back slash. ie: "mozilla/4.0" becomes "mozilla\/4.0" Let me know if that was the issue and I'll look at updating the add-on....
thanks

Bakushan 12-04-2008 07:12 PM

yes, there were three of them:

"Mozilla/5.0 (Linux; U; Android 0.5; en-us) AppleWebKit/522+ (KHTML, like Gecko) Safari/419.3"

it now looks like:

"Mozilla\/5.0 (Linux; U; Android 0.5; en-us) AppleWebKit\/522+ (KHTML, like Gecko) Safari\/419.3"

and the error is gone..

(this is the Android G1 useragent i believe... just waiting on a user to test it for me to verify)

Bakushan 12-04-2008 07:15 PM

FYI, i wonder if the comma in the useragent will make it not work since they are comma-separated?

MissKalunji 12-04-2008 07:35 PM

Quote:

Originally Posted by Bakushan (Post 1678636)
yes, there were three of them:

"Mozilla/5.0 (Linux; U; Android 0.5; en-us) AppleWebKit/522+ (KHTML, like Gecko) Safari/419.3"

it now looks like:

"Mozilla\/5.0 (Linux; U; Android 0.5; en-us) AppleWebKit\/522+ (KHTML, like Gecko) Safari\/419.3"

and the error is gone..

(this is the Android G1 useragent i believe... just waiting on a user to test it for me to verify)

how is it suppose to look? i have some android users

dartho 12-05-2008 02:34 AM

You don't have to have a complete useragent - you could simple have the word "Android" and that would catch it. Should probably change it to use carriage returns or '|' symbols ...

Deathweaver 01-06-2009 08:11 AM

We've just installed this Add-On at our board, but some users prefer to choose the original style. Using a simple cookie this could be a usefull extension.

Just change the beginning of the Plugin at style_fetch Hook like this to check for an cookie:
PHP Code:

$noMobile $_COOKIE['bbNoMobile'];
if (
$vbulletin->options['mob_detect_enabled'] == && $noMobile != 1) {
...


Then you have to provide a possibility to set the cookie:
PHP Code:

<?php
setcookie
('bbNoMobile''1'time()+3600*24*30'/''%your_bb_url%');
if (
strpos($HTTP['HTTP_REFERER'], '%your_bb_url%')) {
    
header("Location: ".$HTTP['HTTP_REFERER']);
} else {
    
header("Location: http://%your_bb_url%/");
}
?>

Save this to a file called e.g. switch.php and replace %your_bb_url% with your board hostname. Now you only have to provide a link to switch.php.

Perhaps it is possible to include this feature and integrate the switch.php code as plugin into vBulletin. Unfortunately I'm not very skilled in vB Plugin development.

stemmy 01-30-2009 07:17 AM

This is probably a veruy simple answer but I cant find it !!

I am running VBA and I did the mods you requested to removed VBA sections.

Now when I look at the forum the first page is all crammed to the left. The rest of the forum looks fine.

Please can you help me sort this. Thanks in advance.

www.photography-forum.org


All times are GMT. The time now is 10:31 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.01697 seconds
  • Memory Usage 1,834KB
  • 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_php_printable
  • (10)bbcode_quote_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