vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=237)
-   -   Lightweight Style for VB3.8.7 iPhone/Mobile/Cell/PDA (https://vborg.vbsupport.ru/showthread.php?t=263822)

dartho 05-17-2011 10:00 PM

Lightweight Style for VB3.8.7 iPhone/Mobile/Cell/PDA
 
1 Attachment(s)
A few have asked for this, hope you like it.

As the title suggests, this is a lightweight style for vBulletin 3.8.7 (and probably most versions before that - A quick test showed it also working under vBulletin 3.7.7!)

It's lightweight (low bandwidth) and works well on most handheld / mobile devices. Some have been know to use it on their desktops and I personally use it for Google as a way of significantly reducing the bandwidth they use.

====================
Install Instructions
====================
  • Backup
  • Download and extract ZIP file locally
  • Upload contents of forum folder to your forum root
  • Go into your AdminCP->Style Manager->Download / Upload Styles
  • In the "Import Style XML File" section browse to "lightweight-vbulletin-3.8.7-style.xml" (extracted form the zip file)
  • If you are running a version of vbulletin other than 3.8.7, select Yes in "Ignore Style Version"
  • Click the "Import" button.
  • Edit the header template and change the 2nd line to reflect the Style ID of your default style and location of your home page (forum.php or index.php) and text for the anchor (Default Style).
    Code:

    <a class="toplinks" href="$_SERVER[PHP_SELF]?<if condition="$_SERVER['QUERY_STRING']">$_SERVER[QUERY_STRING]&amp;</if>styleid=1">Default Style</a>
  • Return to vBulletin.org and click "Mark as Installed"
  • Reply to this thread leaving feedback and a rating
====================
Release History
====================
18th May 2011 - 1.0.0 Initial Release
20th May 2011 - 1.0.1 Bug Fixes and enhancements
====================
Screen Shots
====================
https://vborg.vbsupport.ru/attachmen...1&d=1305693901 https://vborg.vbsupport.ru/attachmen...1&d=1305694377
====================
Branding Free
====================
If you wish to remove the branding/copyright notice from the footer - send me a donation of an amount you can afford, or that you think is fair/reasonable, it's up to you how much. (can't get much fairer than that) You can do this by clicking the "Support Developer" link above (a few lines below the "Mark as Installed" link).

====================
Bugs fixes for next release
====================
Issue:
extra "> in template forumhome_forumbit_level2_nopost
Resolution:
Search for
Code:

<div class="windowbg">">
Replace with
Code:

<div class="windowbg">
Issue:
Inconsistencies in disaplying locked forums
Resolution:
See this post

Thanks.

BirdOPrey5 05-18-2011 11:20 AM

This is great that you have updated this for 3.8.7 and are not leaving the 3.x series behind! Downloading now!

viper357 05-18-2011 12:09 PM

Top class, looks very neat and smart, thanks. :) Just one thing I had to do different to your instructions was to have my Default Style a parent of this style to stop the random album images mod from displaying at the top. Apart from that everything else seems to be 100%

dartho 05-18-2011 12:25 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2197116)
This is great that you have updated this for 3.8.7 and are not leaving the 3.x series behind! Downloading now!

I still haven't upgrade to 4 yet, I think I'll stick with 3.8 for life :rolleyes:

I just (quickly) tested this, and it also works on 3.7

@Viper - you could also write a plugin to disable that add-on if this style is used:

Title: Disable Products For Lightweight Style
Hook:style_fetch
PHP Code:

//replace x below with the styleid of lightweight style
if (STYLEID==x) {
// Disable "Latest Album Pictures - Forum Home"
$vbulletin->options['afm_onoff']=0;


Edit - in the above, if it doesn't work, try the following code (one of them should work)
PHP Code:

//replace x below with the styleid of lightweight style
if ($styleid==x) {
// Disable "Latest Album Pictures - Forum Home"
$vbulletin->options['afm_onoff']=0;



viper357 05-18-2011 12:43 PM

Perfect, thanks Dartho. I'll give that a try.

BirdOPrey5 05-18-2011 01:10 PM

dartho- I'm not following the logic of when a thread is highlighted in light blue in showthread and when its not. I know bold means unread but what does the highlight indicate?

Edit: Actually I'm not sure about the bold either...

Also with regards to the Default Style link, if you -or anyone interested- use this code it will keep the user on the same URL when changing back to the default style:
Code:

<a class="toplinks" href="$_SERVER[PHP_SELF]?<if condition="$_SERVER['QUERY_STRING']">$_SERVER[QUERY_STRING]&amp;</if>styleid=1">Default Style</a>

dartho 05-18-2011 01:19 PM

[s]If you link me up with an example, I could look. via PM is OK.[/s]
Worked it out. Not highlight is 'hot' new threads (thread_hot_new). I'll fix that up.

To fix, edit the CSS, search for
Code:

.new, ._new, .forumnew
replace with
Code:

.new, ._new, .forumnew, ._hot_new, ._dot_hot_new
search for
Code:

.thread_dot, .thread_hot, .thread_dot_hot, .thread_, .thread_lock,.thread, .thread_moved, .thread_new
replace with
Code:

.thread_dot, .thread_hot, .thread_dot_hot, .thread_, .thread_lock,.thread, .thread_moved, .thread_new, .thread_hot_new, .thread_dot_hot_new
Thanks for the code for default style link, I'll put that in.

BirdOPrey5 05-18-2011 01:48 PM

Thanks. :up:

MikesSite 05-18-2011 02:11 PM

Amazing! Can't wait to install. Thanks. Long live vB 3.X!!!!!

The Dawg 05-18-2011 03:13 PM

Good stuff. Thank you!


All times are GMT. The time now is 03:08 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.01223 seconds
  • Memory Usage 1,748KB
  • 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
  • (8)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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