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)

ldma 05-02-2008 02:28 PM

Another little problem I'm having is that I'm running VBAdvanced and it looks horrible and doesn't work in the mobile style. Is there anyway I can divert users straight to the forum index bypassing VBA? Possibly just with a template hack?

ldma 05-02-2008 03:19 PM

Ok in answer to my own question, I did what very other site does with this issue, and just created an "m" sub-domain and redirected it with .htaccess on my hostrs cpanel to the index page.

MissKalunji 05-02-2008 03:40 PM

Quote:

Originally Posted by ldma (Post 1505840)
Ok in answer to my own question, I did what very other site does with this issue, and just created an "m" sub-domain and redirected it with .htaccess on my hostrs cpanel to the index page.

uh? i just used a forwarder instead in the template of vbadvanced

but your seems more fun so what it would be m.urwebsite.com ?

ldma 05-02-2008 05:25 PM

Yep....just like Facebook! :p

http://m.ajarnforum.net

The beauty of it is that it's just a vanilla redirect that does nothing, but just allows me to give mobile users the impression I'm catering specifically for them with their own url....this plugin does the rest, and I avoid VBA.

On the other hand if people do go to the regular address, I've set up meta refresh in the mobile template's portal template. The disadvantage is that it does display it first before diverting.

gopherhockey 05-11-2008 06:45 PM

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.

----

Using Windows Mobile 6 on a Sprint Touch device.

gopherhockey 05-11-2008 07:02 PM

Quote:

Originally Posted by gopherhockey (Post 1516360)
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.

----

Using Windows Mobile 6 on a Sprint Touch device.

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.

gopherhockey 05-11-2008 07:16 PM

This is super cool. Instantly my favorite mod. Nice job!

Don't know why they couldn't have done this type of thing built-in... they are too busy making forums into facebook software and not concentrating on functionality of a real forum system I guess.

Oh well, thats what vbulletin.org is for! ;)

dartho 05-11-2008 09:23 PM

This has just been fixed in the mobile style ...
Quote:

Originally Posted by gopherhockey (Post 1516360)
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.

----

Using Windows Mobile 6 on a Sprint Touch device.


gopherhockey 05-14-2008 12:31 PM

Ok, so using this for a few days now I have noticed a few things:

First, it only works when you are logged into the forums. Is this normal?

Second, I have not had anyone but myself see this work. (I am an adminstrator). Blackberry devices, other mobile 6 or even mobile 5 devices - so far it only works for me.

My guess is I'm missing some security setting that allows this to work for people?

On my forums, I do not allow people to select other styles. We have one default style, thats it. This mobile style I thought can be "forced" but do you need special user or group rights to have this work?

Sure enough, if I log into a test user on my phone this does not work...

I do have the setting in vb "Allow users to change styles" set to no.

gopherhockey 05-14-2008 12:57 PM

I believe I have fixed my issue. While I have the forums set to not allow users to change their styles, I did not click the checkbox on the mobile style when I installed it, allowing users to actually use it.

Apparently with this unchecked the admin can select it, but nobody else can. This must be checked and does not get checked by default when installed (at least it didn't for me)

ANGELO2K8 05-15-2008 05:53 AM

Is there any way this hack can force a custom text message in the users sig saying he/she is posting from a mobile device?

I noticed they do this at the blackberry forums. It would be a good addition to this hack.

dartho 05-15-2008 09:29 AM

I'm sure a plugin could be written to do this, but not sure how myself ...

MissKalunji 05-15-2008 06:18 PM

i know there's one you can get and integrate with vb howardsforum is using one let me try to find the proper name

https://vborg.vbsupport.ru/showthrea...w.howardforums

Darkstarproject 05-20-2008 08:58 PM

Just what I needed!! Thanks, I'll be testing this all the time.

verino 05-21-2008 06:37 AM

Thank's and installed.

Just need to test it with my friends :D

Robert Waanders 05-23-2008 08:35 AM

Installed it on my forum, works great! Thanks for all of your effort.

Robert

verino 05-23-2008 11:55 PM

Quote:

Originally Posted by gopherhockey (Post 1516360)
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.

----

Using Windows Mobile 6 on a Sprint Touch device.

Got the same problem. Any idea ?

dartho 05-24-2008 12:27 AM

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

verino 05-24-2008 04:08 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...

Yeah, that make sense.

I'll check for update, thank's a lot.

Captain Tycoon 06-14-2008 02:14 PM

Installed and Marked! Excellent!

b-roll 06-15-2008 11:17 AM

I love this mod. Thank you Dartho!

I works perfectly on iphone and touch, but I'm having problems with other devices. A number of my readers are using blackberrys. I've added the models independently in the custom list like this:

Quote:

BlackBerry8330, BlackBerry8703, BlackBerry8703e, BlackBerry8830, BlackBerry, LG-VX8700
Since I'm not sure how to see the user agents for these devices, I'm only guessing what to put in the system.

It was working for one Blackberry user, but now that I've added a new blackberry model, it's not working for them.

I'm confused as to what is automatically detected - and what should be "custom" detected.

Also, how can you verify the useragent? Someone mentioned a spot in the vbulletin CP, but I can't find it.

Thanks for all of you help!

kev

dartho 06-15-2008 12:07 PM

All blackberry devices should be detected by default. Make sure you have enabled "Mobile Device Detection" in addition to "Enable iPhone / iPod Device Detection?" These can point to the same style.

You can view a users useragent string by checking "Who's Online" and then setting the view useragent string option to Yes.

firefox100 06-18-2008 03:50 PM

There is any way to avoid that users can "choose" this Style?

I have the problem that my users choose from the menu "Select Style" and it's impossible to return to normal style.

Great work dartho. :)

dartho 06-18-2008 09:44 PM

I don't allow users to change styles (this can be set in vBulletin Options) but if you do allow users to change styles this might work for removing a particular style form the quick chooser:

Edit your 'options' template which should look like this:
Code:

<option value="$optionvalue" class="$optionclass" $optionselected>$optiontitle</option>
and change it to the following:
Code:

<if condition="($optionvalue!=x) && ($optiontitle!='yyyyyy')">
<option value="$optionvalue" class="$optionclass" $optionselected>$optiontitle</option>
</if>

where x is the styleid of your mobile style and yyyyyy is the name of your mobile style. The name is case sensative!

This should stop it being added to the drop down list.

MissKalunji 06-18-2008 09:52 PM

Thanks Dartho Perfectly!

jbeam 06-21-2008 06:54 PM

I am not sure if it's the detection or the style causing the problem, but I do not get the style that is set for wireless devices until the user logs in.

Meaning, if I go to the main forum page on my WM5 phone, I get the default style. Once I login, I get the style spcified for wireless devices.

Anyone else have this problem?

I am running this detection add-on and the Mobile, Cell, Phone, PDA and iPhone style (https://vborg.vbsupport.ru/showthread.php?t=174375) with the Extend and customize add-on (https://vborg.vbsupport.ru/showthread.php?t=182692).

dartho 06-21-2008 10:09 PM

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.

Venturing 06-22-2008 08:06 AM

Installed and seems to be working well for me. Many thanks!

firefox100 06-23-2008 01:46 PM

Quote:

Originally Posted by dartho (Post 1552979)
I don't allow users to change styles (this can be set in vBulletin Options) but if you do allow users to change styles this might work for removing a particular style form the quick chooser:

Edit your 'options' template which should look like this:
Code:

<option value="$optionvalue" class="$optionclass" $optionselected>$optiontitle</option>
and change it to the following:
Code:

<if condition="($optionvalue!=x) && ($optiontitle!='yyyyyy')">
<option value="$optionvalue" class="$optionclass" $optionselected>$optiontitle</option>
</if>

where x is the styleid of your mobile style and yyyyyy is the name of your mobile style. The name is case sensative!

This should stop it being added to the drop down list.

Thanks dharto, work perfectly!

Great Mod. :up:

reefland 06-26-2008 12:22 AM

Can I ask where <img src... is replaced by <a href...? I am trying to brand my mobile skin with a very light version of my logo but whenever, and where ever, I add <img src it is replaced with <a href

dartho 06-26-2008 01:06 AM

that is changed in the Replacement Variables section of the mobile style options. You would likely need to remove all off them - if you remove these then all images will show up in the mobile style

Alternatively, you could swap the order of the tags around in the IMG declaration. Try something like :
<img border="0" src="image.jpg" />

I've only tested this in a desktop browser and it works fine there - I image other mobile browsers shouldn't have an issue either...

EmpireZ 06-30-2008 04:23 AM

Thanks for this Darko,
I have a probelm though, Not sure if it is this mod. I tracked it down and seems when I disable this mod it works fine, but I enable this mod and error shows. I know vb put in new securtiy measures too. Here is the error when members try to post/reply using mobile. (Using your mobile skin btw)

Code:

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 preformed before you received this error.


dartho 06-30-2008 05:10 AM

That won't be related to this add-on.

If you post in the thread for the style, I will then know which version of which style you are using and can better help!

EmpireZ 06-30-2008 06:25 AM

Ok, No probelm. I downloaded the latest version of your 3.7 style and seems to be working ok. Ill post in the skin thread if I get the error again.

dartho 06-30-2008 06:29 AM

Cool - thanks. I wasn't being pedantic - when you post in a add-on's thread, the add-on author can see what version you last downloaded which makes troubleshooting easier...

myadsl 07-03-2008 10:50 AM

Is there a way to exclude Opera Mini when using this mod?

dartho 07-03-2008 11:06 AM

Sure is - work out what the Opera Mini useragent string is (you can do this when an opera mini user is online by selecting to view User Agent strings in Who's Online), and add it to the exclusions section :up:

Tom_S 07-04-2008 02:23 AM

I have looked in this thread and do not see the fix or understand the way to resolve getting this to work if you have vBadvanced CMPS installed. Any help?

Thanks in advance...

dartho 07-04-2008 04:14 AM

Best way to get vbadvanced to work with this style is to not use it. Edit your adv_portal template and replace it's contents wit something like

PHP Code:

$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
title>$vboptions[hometitle] <if condition="$pagetitle">- $pagetitle</if></title>

$headinclude

</head>
<
body>

$header

$navbar
<p><a href="forum.php">Portal disabled for Mobile Devices.  Click here to go to Forums</a></p>

$footer

</body>
</
html

Change the "forum.php" link to be your forums home page.

If you wanted to and had the time to work it out, you could probably strip back vbadvanced with in this style and still have some content there...

Tom_S 07-04-2008 05:08 AM

Ahhh...Now it is coming back to me. See I had it installed pre-3.7.0 and uninstalled it sometime back after a major crash and never reinstalled but didn't remember that bypass. Thanks my friend. And I will make time to do those extra edits you suggest. They make perfect sense and sound worth the extra time. Thanks. :D


All times are GMT. The time now is 10:55 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.01477 seconds
  • Memory Usage 1,841KB
  • 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
  • (1)bbcode_php_printable
  • (7)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