Go Back   vb.org Archive > vBulletin Styles and Graphics > vBulletin Styles > vBulletin 4.x Styles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Forum Style - Lightweight Style for Small Screen Devices (cell phone, iphone, mobile, android) Details »»
Forum Style - Lightweight Style for Small Screen Devices (cell phone, iphone, mobile, android)
Version: 1.0.3, by dartho dartho is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 4.1.8 Rating:
Released: 08-24-2010 Last Update: 12-15-2011 Installs: 897
Re-useable Code  
No support by the author.

A lightweight *forum only style aimed at small screen devices such as Windows Smartphones, Nokias and even iPhones. It has VERY low bandwidth requirements - 15 times less on my site - 20K as opposed to 300K for forumhome.

*forum only - I have done a very small amount of rough work on CMS templates, a simple single column CMS *could* be created to work with this style without too much effort. However I am not sure if you can have a different CMS layout dependent on which style you are using?

This is an update to the mobile style I have previously released.

The changes are predominantly aesthetic to take advantage of larger screens.

It is also much easier to change colour schemes by editing the commented CSS file.


Demo: http://vbdev.org/forum.php?styleid=7

This is a a lightweight style and as such has much reduced functionality/information over the default vBulletin style.

Install instructions:
  • Firstly, if upgrading, I recommend installing this as a new style rather than overwriting your previous install. This way you get to test it first without trashing your existing style.
  • BACKUP YOUR EXISTING lightweight.css.php FILE IF YOU HAVE CSS CUSTOMISATIONS
  • Download ZIP file
  • Unzip to a local/temp directory
  • Edit lightweight.css.php file to customise colours if required
  • Upload contents of the upload directory in the zip file folder to your forum root.
  • Install style XML via Style Manager in your ADMINCP
  • **Install and configure "LightWeight Style Options"
  • See post 2 for a FAQ
  • Click "Mark as Installed"
  • Test it out
  • Leave a rating
  • Leave feedback
  • Enjoy checking your site from your mobile phone without the need to pinch/zoom/wait etc...
Version Control:
1.0.0 - 25 AUG 2010 - Initial Release on vBulletin.org
1.0.1 - 26 AUG 2010 - Fixed "Mark All Forums Read" link in Search results. Released Lightweight Style Options to customise this
1.0.2 - 21 MAR 2011 - Updated to 4.1.2, removed short tags from CSS, fixed some issues discovered since last release, added some stuff.
1.0.3 - 16 DEC 2011 - Updated to 1.0.3, tried to fix all known issues. Nothing new. If you have updated your site as bugs have been found, probably no need to upgrade. But if you're upgrading your site from to 4.1.9, might be worthwhile.
1.0.3a - 16 DEC 2011 - remove test ad hook code accidently left in postbit_legacy template
Branding Free:
The style is free to use. However I ask that you keep links in the footer. If you want to remove them - send me a donation of an amount you can afford, or that you think is fair/reasonable, it's up to you how much.

Download Now

File Type: zip lightweight-style-1.0.0.zip (68.3 KB, 441 views)
File Type: zip lightweight-style-1.0.1.zip (70.5 KB, 2490 views)
File Type: zip lightweight -style-1.0.2a.zip (73.6 KB, 2359 views)
File Type: zip lightweight-style-1.0.3a.zip (72.3 KB, 2859 views)

Screenshots

File Type: png lightweight-screenshot.png (30.6 KB, 2 views)

Show Your Support

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

Comments
  #132  
Old 10-10-2010, 06:49 PM
SemperFideles's Avatar
SemperFideles SemperFideles is offline
 
Join Date: Oct 2006
Location: Northern VA
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just a suggestion. Your instructions are a bit confusing because you state that the user is to upload the contents of the zip file to forum root. In actuality, the contents of the zip file is another folder. Recommend you just zip the contents of that folder and provide it as a download or put all the files that need to be uploaded into a folder called "upload" and the style xml into a folder called "do not upload".

Great style.
Reply With Quote
  #133  
Old 10-11-2010, 06:27 PM
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Location: Pensacola, FL
Posts: 772
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
Edit the template which corresponds to the section you wish to add an avatar to.
Would it be in postbit_legacy template?
Reply With Quote
  #134  
Old 10-11-2010, 11:06 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Octavius. View Post
Would it be in postbit_legacy template?
Certiainly postbit and/or postbit_legacy if it is the postbit you want to show avatars in. both postbit templates are the same, so if you make changes to one, you should copy/paste into the other.
Reply With Quote
  #135  
Old 10-12-2010, 06:09 PM
Cadellin's Avatar
Cadellin Cadellin is offline
 
Join Date: Jan 2009
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great work!

Two feature requests:
1. Is there a way of enabling signatures for all posts on the theme?
2. Redirecting the CMS pages to the forum instead.
Reply With Quote
  #136  
Old 10-13-2010, 07:53 PM
Crimm's Avatar
Crimm Crimm is offline
 
Join Date: Feb 2007
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had troubles with vbadvanced CMPS as well. I played with work arounds, but the only one that has been fully successful so far has been to go into the Integration Output plugin for vBadvanced (Note: This is the plugin that is breaking the style - Disable it and the style works) and take Dartho's mobile detection code:

PHP Code:
if ($vbulletin->options['mobile_skin_enabled'] == 1)   
      {  
      
$mobilebrowsers = array(  
        
"WebTV",  
        
"AvantGo",  
        
"Blazer",  
        
"PalmOS",  
        
"lynx",  
        
"Go.Web",  
        
"Elaine",  
        
"ProxiNet",  
        
"ChaiFarer",  
        
"Digital Paths",  
        
"UP.Browser",  
        
"Mazingo",  
        
"iPhone",  
        
"iPod",  
        
"Mobile",  
        
"T68",  
        
"Syncalot",  
        
"Danger",  
        
"Symbian",  
        
"Symbian OS",  
        
"SymbianOS",  
        
"Maemo",  
        
"Nokia",  
        
"Xiino",  
        
"AU-MIC",  
        
"EPOC",  
        
"Wireless",  
        
"Handheld",  
        
"Smartphone",  
        
"SAMSUNG",  
        
"J2ME",  
        
"MIDP",  
        
"MIDP-2.0",  
        
"320x240",  
        
"240x320",  
        
"Blackberry8700",  
        
"Opera Mini",  
        
"NetFront",  
        
"BlackBerry",  
        
"PSP"  
        
);  
   
        if(
preg_match('/('.implode('|'$mobilebrowsers).')/i'$_SERVER['HTTP_USER_AGENT'], $match))  
        {  
          
$mobile=1;  

        }  
        elseif (
strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml'))  
        {  
          
$mobile=1;  
        }  
        elseif (
strpos($_SERVER['HTTP_ACCEPT'], 'text/vnd.wap.wml'))  
        {  
          
$mobile=1;  
        }  

if (
$mobile != 1) { 
Add that before the Integration Output plugin

The add a

PHP Code:

At the end.

I take no responsibility to the results of that. I know it's dirty, but it's working for now :P

Just thought I'd share, until a permanent fix comes out

You can also wrap the plugin in a if statement to check the style CHOSEN:

PHP Code:
if ($vbulletin->userinfo['styleid'] != MOBILE STYLE ID) { 
Don't forget to close your tag. Note: It only works if they CHOOSE the style. Therefore I have both these if statements in there in case a PC user chooses the lightweight style.

Great work as always Dartho. Again, just sharing knowledge... Backup and test any changes.
Reply With Quote
  #137  
Old 10-13-2010, 10:38 PM
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Location: Pensacola, FL
Posts: 772
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone been able to add avatars in their mobile style? I've tried and it didn't work. I am using vb4.07.
Reply With Quote
  #138  
Old 10-14-2010, 04:33 PM
kawe kawe is offline
 
Join Date: Aug 2008
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Navigation Number Page isn't show anymore on SHOWTHREAD on SHOWPOST
Reply With Quote
  #139  
Old 10-15-2010, 08:05 PM
zohar1979 zohar1979 is offline
 
Join Date: Nov 2007
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I put all this stuff in my forum root, but it doesn't import correctly. Does it have to be in a folder in the Styles folder of my vbulletin FTP?
Reply With Quote
  #140  
Old 10-16-2010, 09:10 AM
RealLifeHacks RealLifeHacks is offline
 
Join Date: Sep 2010
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need help I loved this skin right from the moment i saw it the first time so I installed it (including the "options" addon and the "auto detection". both work just fine btw) but the style overrode my 2 original styles. (atleast i looks like it did)

this is how it looked before:

and this is how it looks now: http://reallifehacks.com/forum.php


i've read that vbadvaned causes problems so i disabled it but it didn't help at all...

also the page doesn't reload after changing the skin with the quick chooser i would be pritty upset if i had to do a rollback on my server (i already uninstalled the skin but the result was the same. my styles are messed up)

i'm running vb 4.0.7 with the following addons installed:

Admin Log In As User 3.21
Footer Link 1
LAM - Quote Img to URL 4.0.6
Lightweight Style Options 1.0.0
Mobile Device Detection 1.0.1
Post Thank You Hack 7.82
SevenSkins Image Resizer 1.0.1
Tabs en vBulletin 4.x 2.0.3
vBadvanced CMPS 4.0.1
vBSEO 3.5.2
vBSEO :: Sitemap Generator 2.6 Beta 2

can someone pls help me out and tell me what i did wrong (i installed it as i was told in the instructions in the first post)
Attached Images
File Type: jpg orgskin.jpg (138.9 KB, 0 views)
File Type: jpg messedupskin.jpg (118.7 KB, 0 views)
Reply With Quote
  #141  
Old 10-16-2010, 10:35 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It soudns like you merged it into your master or default style. You can fix this by uploading tools.php from the vbulletin install package to your admincp and restore your master style (very first setting)
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 04:26 AM.


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.11123 seconds
  • Memory Usage 2,392KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (13)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (7)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete