vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=247)
-   -   Forum Style - Lightweight Style for Small Screen Devices (cell phone, iphone, mobile, android) (https://vborg.vbsupport.ru/showthread.php?t=249277)

dartho 08-24-2010 10:00 PM

Forum Style - Lightweight Style for Small Screen Devices (cell phone, iphone, mobile, android)
 
1 Attachment(s)
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 :o
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.

dartho 08-25-2010 04:43 AM

1 Attachment(s)
F.A.Q.

Q. How can I integrate Abe1's Post Thanks Hack?
A. See here: https://vborg.vbsupport.ru/showthrea...43#post2305643


Q. There is no style chooser - how do I get back to the default style?
A. Install and configure "Lightweight Style Options"

Q. What bits of the CSS change which colours?
A. Download and unzip the attached "CSS Image Basic Map.zip" file to a temp directory, open "css-map.html" and hover your mouse over the section you're interested in changing the colour of - it will tell you the variable in the lightweight.css.php file to edit. At the moment, it only shows the background colour, but it is intuitive to work out the foreground colour (var name ends in FC as opposed to BG) If you need to get more granular, you're on your own :o


Q. I Have VBAdvanced installed in integration m ode and it messes up this style.
A. as per post https://vborg.vbsupport.ru/showpost....&postcount=167 with a minor chnage, create a plugin:
Product: vBulletin
Hook Location: Global Complete
Title: Disable vBAdvanced for Lightweight Style
Execution Order: 2
Code:
PHP Code:

if (STYLEID == x)
  
define('SKIP_OUTPUT'1); 

IMPORTANT - Make sure to replace "x" with the ID to your lightweight style.

Q. Can we resize the images?
A. A simple javascript image resizer can be added to the header template. check the following post (and the one immediately after it) https://vborg.vbsupport.ru/showthrea...07#post2184007)

Alternatively, you can use replacement variables to turn images into links, check this post: https://vborg.vbsupport.ru/showthrea...nt#post2097304

*** ALL OF THE FOLLOWING BLOCK SHOULD BE RESOLVED IN THE LATEST VERSION 1.0.3 ***
Q. The CSS is incomplete, I see
Code:

body { color: ; background:; margin: 0px; font-size ....
What's up with that?
A. I used short tages in the CSS.PHP file which may not be enabled on all systems. [s]In the next release I'll update to not use these. In teh mean time, unzip and upload the attached lightweight.css.longtag.zip file and use it instead.[/s] Install the latest CSS version - this has been fixed

Q. Could you use the same paging system like vb standard styles in thread view so that user can choose first/last page instead of navigating it one by one?
A. Yes! It will get included when I release again, in the mean time check out post 103 (https://vborg.vbsupport.ru/showpost....&postcount=103)

Q. The editor is messed up in 4.1.4 - how to fix?
A. See https://vborg.vbsupport.ru/showpost....&postcount=397 for a fix.

Q. The option to hide "What's Going On" / "Who's Online" isn't working with the 'Lightweight Style Options' add-on
A. See this post for a fix: https://vborg.vbsupport.ru/showthrea...31#post2264831

Q. The PM list is showing "Array" rather than the sender
A. See this post: https://vborg.vbsupport.ru/showthrea...97#post2271597

Q. My New Reply page is screwed up with vertical cmilies and stuff
A. Delete the contents of the editor_clientscript template and replace the contents of the editor_ckeditor template with that of the editor_toolbar_off template

Q, Birthdays are just showing as "Array" on forumhome?
A. See thread https://vborg.vbsupport.ru/showthrea...72#post2273172

Q. I see Array instead of thread tags?
A. See post https://vborg.vbsupport.ru/showpost....&postcount=618

Q. I see <br /> instead of line breaks when quoting, full reply
A. See post: https://vborg.vbsupport.ru/showpost....&postcount=617
if this doesn;t work, check this post also************************************************** ******************************

Q. How do I get rid of all those template out of date messages in control panel home?
A. You could edit and save each one without actually making changes or you could run the following query on your database:

UPDATE template SET version = '4.1.9', mergestatus = 'none' WHERE styleid=XX;

change XX to the styleid number of the mobile style and 4.1.9 to whatever the version number currently is.

########## TO BE FIXED IN NEXT RELEASE VERSION 1.0.4##########
Q. How do I add 'Next' 'Prev' in Pagenav?
A. See post https://vborg.vbsupport.ru/showthrea...73#post2280973

Bluefin221 08-25-2010 06:21 AM

This looks very smart Dartho, I have installed it. I've submitted a test post and when you hit reply it quotes the text which is great, once I type in my message and hit submit the post submits however it does not return you to the forum, instead you get the quote box with your text just sitting waiting on being submitted.

dartho 08-25-2010 06:36 AM

I can not reproduce this behaviour on my test site vbdev.org.

dartho 08-25-2010 07:08 AM

What type of device are you using to submit the thread?

DAMINK 08-25-2010 07:40 AM

I notice when you choose the light theme you cant change back?
That sucks.
Guess i have to hack the theme a bit.
Still i like it. Good for my mobile.

sulasno 08-25-2010 07:41 AM

tagged and thanks

dartho 08-25-2010 07:48 AM

Quote:

Originally Posted by DAMINK (Post 2089232)
I notice when you choose the light theme you cant change back?
That sucks.
Guess i have to hack the theme a bit.
Still i like it. Good for my mobile.

I'm going to release an addon product which enables such options. In the mean time have a look in the header template and search for

Code:

<vb:if condition="$vbulletin->options['ls_default_style_link']==1">
                        <a class="toplinks" href="{vb:raw $vbulletin->options['ls_navbar_home']}?{vb:raw session.sessionurl}styleid={vb:raw vboptions.ls_default_style}">{vb:raw vboptions.ls_default_link}</a>
                </vb:if>

and replace with

Code:

                        <a class="toplinks" href="forum.php?{vb:raw session.sessionurl}styleid=xxx">Desktop</a>
where xxx is your default styleid. change the href to suit your site also.

There are 2 instances that need to be edited as described above

DAMINK 08-25-2010 09:16 AM

Cheers Dartho.
Great option mate. Big thumbs up.

Kolbi 08-25-2010 10:08 AM

nice :)

Are there big changes since version 2.11?


All times are GMT. The time now is 09:16 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.02164 seconds
  • Memory Usage 1,763KB
  • 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
  • (3)bbcode_code_printable
  • (1)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
  • (3)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