Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Styles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB 3.5 Lite !! 0.02 BETA !! Details »»
vB 3.5 Lite !! 0.02 BETA !!
Version: 0.02, by Zachery Zachery is offline
Developer Last Online: May 2017 Show Printable Version Email this Page

Version: 3.5.0 RC1 Rating:
Released: 07-12-2005 Last Update: 07-29-2005 Installs: 145
Template Edits
Is in Beta Stage  
No support by the author.

This is a beta version of vBulletin 3.5 lite.

and it is just that. LITE!

There will be updates to this, including better error message support and re-written comon templates.

But for now, its fairly basic, but it gets the job done well

Preview




Added - 5:26 AM 7/30/2005
Alright, looks like I got the bugged niiped in the butt, I had copied code and not replaced it with the proper varibles when releasing.

Should be all good to go now (uploading in a moment and sending an email)


Other notes for version 0.2
- Fixed small lack of phrase (hard coded english)
- Removed the table from the navbar (the breadcrumb)
- Updated for (not really, just downloaded from) RC1

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #122  
Old 05-28-2006, 10:02 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #123  
Old 05-29-2006, 06:42 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #124  
Old 05-29-2006, 02:34 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #125  
Old 05-29-2006, 06:31 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #126  
Old 07-01-2006, 01:14 AM
cdoyle cdoyle is offline
 
Join Date: Oct 2004
Posts: 462
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #127  
Old 07-01-2006, 01:34 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #128  
Old 07-05-2006, 07:54 AM
SnitchSeeker's Avatar
SnitchSeeker SnitchSeeker is offline
 
Join Date: Sep 2004
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #129  
Old 07-06-2006, 10:04 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not yet, the cost to develop on my phone would be atad much.
Reply With Quote
  #130  
Old 07-07-2006, 10:50 AM
EricaJoy EricaJoy is offline
 
Join Date: Sep 2002
Location: New York, NY
Posts: 236
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #131  
Old 07-11-2006, 05:19 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Anyone? Bueller?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:49 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06403 seconds
  • Memory Usage 2,319KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete