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)

dartho 02-07-2008 01:32 AM

I'm using vbAdvanced and all I did was edit the adv_portal template for my mobile style and replaced the contents with
Code:

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

$headinclude

</head>
<body>

$header

$navbar

<div><a href="forum.php">Click here to go to the forums!</a></div>

$footer

</body>
</html>

You could however replace it with a meta redirect such as:
HTML Code:

<html>
<head>
<title>Redirecting to mobile friendly</title>
<META http-equiv="refresh" content="2;URL=http://URL_TO_FORUM_HOME">
</head>
<body>
<p>
Redirecting to mobile site...
</p>
</body>
</html>


MotMann 02-09-2008 11:43 AM

I use alabama Style. I have select, that User can switch to the Style. I have the right Style ID.
But, the corrcet Style dont be displayed on my iPhone :(

And. if i set direct the style, the Letters and Icons are to small.

What shell i do?

An a lot of W3C Org problems exist :(

Chadi 02-09-2008 05:46 PM

Ok, I'm confused. How do I know what the style ID is for the default style and the mobile style I uploaded? I can't believe that I cannot find that info.

On a side note, can someone explain how to provide a drop down list for style selection (regardless if visiting via a computer or pda/mobile device). Thanks.

Obi Wan 02-13-2008 06:57 AM

nice work

voter 02-13-2008 10:41 AM

It was working with emulators yester after I installed.
But today any mobile phone emulator I have tried to open my site wap.viparmenia.com shows Error: Status code 413.

Dartho or anybody? - HELP!

dartho 02-13-2008 11:05 AM

not sure why you would get a 413 error. Howerer - going wap.viparmenia.com from a desktop browser works a treat - but it seems that your wap. address simply redirects to you default URL with a styleid=xx parameter on the URL? This doesn't seem to be in keeping with how this add-on is designed...

Visiting http://viparmenia.com/vb/index.php?styleid=17 directly via an emulator works fine (and quick) but visiting via wap.viparmenia.com ytakes a long long time to load, but ultimately works OK, however it is still a redirect.

You should double check all your settings for this addon and also for your wap.viparmenia.com sub domain to make sure it is not a redirect, but is parked on teh same root as the primary domain.

dartho 02-13-2008 11:11 AM

OK - I just had another look. Not sure what you are doing, but your portal is stiull being rendered in the full style and mobile emulators/devices are probably giving up (it has a huge amount of data)

Edit the adv_portal template in the CMPS group for teh mobile styles and replace the contents with
Code:

<html>
<head>
<title>Redirecting to mobile friendly</title>
<META http-equiv="refresh" content="2;URL=http://URL_TO_FORUM_HOME">
</head>
<body>
<p>
Redirecting to mobile site...
</p>
</body>
</html>

make sure to change the URL in the code above

dartho 02-13-2008 11:16 AM

Quote:

Originally Posted by chadi (Post 1439529)
Ok, I'm confused. How do I know what the style ID is for the default style and the mobile style I uploaded? I can't believe that I cannot find that info.

On a side note, can someone explain how to provide a drop down list for style selection (regardless if visiting via a computer or pda/mobile device). Thanks.

The drop down box would be a style dependant thing as opposed to this modification.

You can get the styleid number by clicking on teh "GO" next the the style of your choice in Style Manager. In the next screen up the top of the main frame you will see teh following:

Fonts / Colors etc.: StyleName (id: xx)

where xx is the styleid number

Jase2 02-13-2008 02:35 PM

Hello Dartho,

thanks for this release, I hope you can keep it going.

Does this work with vB 3.7 BETA 4?

Regards Jason :)

Jase2 02-13-2008 04:14 PM

Doesn't work with 3.7, says xml error when trying to import.

Please can you release this for 3.7?

Thanks,

Regards Jason :)


All times are GMT. The time now is 05:57 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.01391 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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