vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=161)
-   -   vB 3.5 Lite !! 0.02 BETA !! (https://vborg.vbsupport.ru/showthread.php?t=92071)

dartho 05-28-2006 10:02 PM

This is not my work - I asked sometime back and someone posted this. It works under 3.5.4 for me from my PDA.

To make your mobile style automagically selected when a mobile device is detected edit your global.php, search for :
Code:

// #############################################################################
// if user can control panel, allow selection of any style (for testing purposes)
// otherwise only allow styles that are user-selectable

and add the following immediately above it:
Code:

// BROWSER DETECT
 
  $browsers = array(
      "Windows CE",
      "WebTV",
      "AvantGo",
      "Blazer",
      "PalmOS",
      "lynx",
      "Go.Web",
      "Elaine",
      "ProxiNet",
      "ChaiFarer",
      "Digital Paths",
      "UP.Browser",
      "Mazingo",
      "Mobile",
      "T68",
      "Syncalot",
      "NetFront",
      "Danger",
      "Symbian",
      "Nokia",
      "Xiino",
      "AU-MIC",
      "EPOC",
      "BlackBerry",
      "Wireless",
      "Handheld"
      );
 
  if(preg_match('/('.implode('|', $browsers).')/i', $_SERVER['HTTP_USER_AGENT'], $match))
  {
      $mobile=1;
  }
  else if (isset($_SERVER['HTTP_UA_OS']))
  {
      if (strstr($_SERVER['HTTP_UA_OS'],"POCKET PC") !== false)
      {
          $mobile=1;
      }
  }
  else
  {
      $mobile=0;
  }
 
  if ($mobile==1)
  {
      //echo "You are on a mobile device!";
      $styleid='9';
  } 
// END BROWSER DETECT

Change the 3rd last line " $styleid='9'; " to the style number of your mobile/pda Style. You can add user agent strings of other browsers to the list.

**NOTE - YOU CAN NOT OVERRIDE THIS, IF YOU ARE ON A MOBILE DEVICE THIS WILL BE THE ONLY STYLE YOU CAN USE

ON another note, if you need to get to otherwise unavailable screens when in your mobile style - just manually enter in the URL you want to go to...

Zachery 05-29-2006 06:42 AM

darth mind if I adapt this and make it a product to do this?

Lil status update I've been working on the style somewhat trying to get the new thread interface working right.

dartho 05-29-2006 02:34 PM

Be my guest. I've searched for where I got the info form in the first place, but to no avail as yet...

I have been using a modified version of "Alabama" style (which in itself is a modified version of the "Archive" or PDA style) for a while to work with PDAs. This was under 3.0.9, I only ugraded to 3.5.4 yesterday, so am using this style for the moment till I can redo my mobile style for 3.5.4. I'm not a coder, so it's very much a trial and error thing for me.

I'm looking forward to any further mods you make to it. I have a few regular PDA users (320x240 resolution) including myself and would be happy to test for you.

Zachery 05-29-2006 06:31 PM

I've got a cell coming in a few days and I'll be getting a DS lite in the near future (release day hopefully). Both which should help speed things up.

cdoyle 07-01-2006 01:14 AM

Hi, has there been any update for this style?

I would like to have it on my forum, but with no way for the user to go back to a normal style. I really can't use it yet.

dartho 07-01-2006 01:34 AM

it shouldn't too hard to have a link which goes to the default style. worst case is have a post with a link to your forum home using default style:


www.website.name/forum/index.php?styleid=xxx

where xxx is the styleid number of your default style...

SnitchSeeker 07-05-2006 07:54 AM

Quote:

Originally Posted by Zachery
Overtime I plan to continue development of this to include a plugin to auto switch to the style on identified pda / mobile phone user agents.

and continue the slimlined templates in other places, at least as much as possible, preferably for the usercp (or at least parts).

Has this been done yet?

This looks great Zachery! I just want to wait to install it until it is fully developed.

Zachery 07-06-2006 10:04 AM

Not yet, the cost to develop on my phone would be atad much.

EricaJoy 07-07-2006 10:50 AM

Quote:

Originally Posted by dartho
This is not my work - I asked sometime back and someone posted this. It works under 3.5.4 for me from my PDA.

To make your mobile style automagically selected when a mobile device is detected edit your global.php, search for :
Code:

// #############################################################################
// if user can control panel, allow selection of any style (for testing purposes)
// otherwise only allow styles that are user-selectable

and add the following immediately above it:
Code:

// BROWSER DETECT
 
  $browsers = array(
      "Windows CE",
      "WebTV",
      "AvantGo",
      "Blazer",
      "PalmOS",
      "lynx",
      "Go.Web",
      "Elaine",
      "ProxiNet",
      "ChaiFarer",
      "Digital Paths",
      "UP.Browser",
      "Mazingo",
      "Mobile",
      "T68",
      "Syncalot",
      "NetFront",
      "Danger",
      "Symbian",
      "Nokia",
      "Xiino",
      "AU-MIC",
      "EPOC",
      "BlackBerry",
      "Wireless",
      "Handheld"
      );
 
  if(preg_match('/('.implode('|', $browsers).')/i', $_SERVER['HTTP_USER_AGENT'], $match))
  {
      $mobile=1;
  }
  else if (isset($_SERVER['HTTP_UA_OS']))
  {
      if (strstr($_SERVER['HTTP_UA_OS'],"POCKET PC") !== false)
      {
          $mobile=1;
      }
  }
  else
  {
      $mobile=0;
  }
 
  if ($mobile==1)
  {
      //echo "You are on a mobile device!";
      $styleid='9';
  } 
// END BROWSER DETECT

Change the 3rd last line " $styleid='9'; " to the style number of your mobile/pda Style. You can add user agent strings of other browsers to the list.

**NOTE - YOU CAN NOT OVERRIDE THIS, IF YOU ARE ON A MOBILE DEVICE THIS WILL BE THE ONLY STYLE YOU CAN USE

ON another note, if you need to get to otherwise unavailable screens when in your mobile style - just manually enter in the URL you want to go to...

Instead of forcing the styleid, would it be possible to display a different page to a mobile browser? Something like "you have a mobile browser! would you like to see a mobile formatted version or a regular formatted version of the site?" then give them the option to choose which version to use.

dartho 07-11-2006 05:19 AM

probably, but I'm not sure how to do this...

Anyone? Bueller?

Zachery 07-11-2006 09:08 AM

I plan to start working on this again soon, big apologies for no updates recently.

jackceltic1888 09-06-2006 06:39 PM

Great skin, works brill!

However I would like to know, if you can add a new thread FUCN on to it?

mashby 10-26-2006 11:46 PM

Any chance of upgrading this theme to 3.6?

Zachery 10-27-2006 04:19 PM

You can use it with 3.6. THe lite style is designed to not use anything fancy.

dartho 11-07-2006 01:31 PM

Quote:

Originally Posted by Zachery
darth mind if I adapt this and make it a product to do this?

Lil status update I've been working on the style somewhat trying to get the new thread interface working right.

I've now done this here you're still welcome to use it as you please!

MissKalunji 11-07-2006 02:55 PM

for some reason i'm not able to login from my Sidekick

MotoUp 11-24-2006 05:17 PM

Will this work with 3.6.4?

dartho 11-24-2006 08:47 PM

Sure will...

MotoUp 11-27-2006 01:37 PM

Great style, I love it. Can't wait for updates!

MotoUp 11-27-2006 03:43 PM

I just noticed in my AdminCP, after installing this style, I now have 13 templates that need reverted. Should I revert these or not? I am running vb 3.6.4.

dartho 11-27-2006 08:27 PM

Those 13 templates are the mobile style - as they are coded as being for 3.5.x, VB thinks they might need to be reverted. You can safely dismiss this message.

MotoUp 11-27-2006 08:31 PM

Great. Thanks! One more question...is there a way I can change the font for the mobile style? I'd like to make it just a touch smaller...

SaN-DeeP 11-29-2006 08:07 AM

Screenshot missing, can you please readd again ?>

tekstylez 12-04-2006 02:07 PM

When accessing my site via web based browser, it is showning the mobile style, not the default style...

brvheart 12-21-2006 04:43 PM

how can I add a "new thread" feature for this or a new reply...that would make this great!!


*installs* been looking for this for a long time :)

brvheart 12-21-2006 04:56 PM

To get back to one of your other styles I have released this:

quickstyle chooser at top of forum click here

here is the code:

at top of header add this:

PHP Code:

<!-- Start Quick Style Chooser -->
<
tr>
        <if 
condition="$show['quickchooser']">
                <
td class="tfoot">
                        <
select name="styleid" onchange="switch_id(this, 'style')">
                                <
optgroup label="$vbphrase[quick_style_chooser]">
                                        
$quickchooserbits
                                
</optgroup>
                        </
select>
 <
b><i>Quick Style Chooser</b></i>
                </
td>
        </if>
<!-- 
End Quick Style Chooser --> 

I adapted from my regular release to take the cell/table out for this style...

Niber 01-18-2007 10:15 AM

Very nice!

The only requests I'm getting are.

+ PM functionality
+ New Post functionality

Great product!

Neal-UK 01-31-2007 05:29 PM

Any chance of a nav menu? Great style, update for 3.6 ;-)

dartho 02-01-2007 01:38 PM

check this post for a mobile friendly navigation menu

Neal-UK 02-01-2007 02:05 PM

For some reason when I use the drop down it doesn't change page though....

verbosity 02-14-2007 10:31 PM

Great Template! ...Bare with me if this has been asked about so far, but I just realized that there is no way to reply to a PM with this template (installed a week or two ago). Is this forthecoming by any chance?

MissKalunji 02-14-2007 11:27 PM

there is one on vbulletin.com that actually has pm in it its basically for mobile thats the one i use

lem 03-15-2007 01:45 AM

Hello I have tried to upload this plugin every way I know how and keep getting a "Invalid File Specified". How do you install this? How does the user select what version of vb they want?

Thanks,

Andy

Zachery 03-15-2007 06:28 PM

Its not a plugin. its a style.

SaN-DeeP 03-15-2007 07:51 PM

Quote:

Originally Posted by Zachery (Post 1204315)
Its not a plugin. its a style.

can you please update the screenshot ?

lem 03-15-2007 07:53 PM

How do you get out of that style once you are in it ;) I'm trapped and I cant get out!

Andy

lem 03-15-2007 08:05 PM

Here is a screenshot from my site. I cant figure out how to switch back to the old style!

Quote:

Originally Posted by lem (Post 1204359)
How do you get out of that style once you are in it ;) I'm trapped and I cant get out!

Andy


dartho 03-16-2007 05:50 AM

Try http://powerstroke.org/index.php?styleid=1

SnitchSeeker 03-16-2007 08:33 PM

Any chance for a 3.6 update? I have used this style in the past but now I use 3.6 and it won't let me.

sweede 03-17-2007 12:43 PM

I added this to my site without any issues.

I added
HTML Code:

<form action="$vboptions[forumhome].php" method="get">
<table cellpadding="2" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<if condition="$show['quickchooser']">
<tr><td><select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits
</optgroup>
</select></td></tr></if>
</table>
</form>

To the footer template for the chooser in the bottom of the page and then I added
PHP Code:

if ($_SERVER['HTTP_UA_PIXELS']) {
    
$_POST['styleid'] = 14;
    
define('STYLEID'14);
    
$vbulletin->userinfo['styleid'] = 14;
    
$styleid 14;    


to the top of the global.php file right before the init.php include so that it forces my Windows CE device to use the Lite style (which is style ID 14, you will have to change your style accordingly.)


All times are GMT. The time now is 08:07 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.01334 seconds
  • Memory Usage 1,839KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (5)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