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!

Beretta1526 05-18-2011 04:45 PM

I just installed this on vB 3.8.5 a few minutes ago. I'll see if I get any feedback from my members that could be helpful. I manage the forum from mobile quite a bit, and this is great.

Quote:

Originally Posted by dartho
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.

I would be interested in how to force search engines, robots, spiders, etc. to use this version. I've hacked mine so that a non-member cannot see the "style chooser" on my page, but that shouldn't matter I suppose.

THANK YOU!!!

.

Beretta1526 05-18-2011 05:35 PM

I would like to add options to the style in the vBulleting Options panel, similar to the "Mobile Style Options" that allow you to append all posts with either the mobile user agent (browser, etc) or custom text like (posted via mobile). In fact, this is the very same options from your original "mobile" style that I'm referring to. Should I attempt to take this on myself, or will you be adapting some of those awesome options to the "Lightweight" style?

I'm going to have to make it a point to donate for all this hard work.

Thanks again!

.

MissKalunji 05-18-2011 06:33 PM

Thank you again! I'm sticking to 3.8 as well

benFF 05-18-2011 07:24 PM

Quote:

Originally Posted by dartho (Post 2197152)
[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
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
Thanks for the code for default style link, I'll put that in.

You need to add the "dot_hot_new" variants to that as well :)

Also the logo is never actually used...?

dartho 05-18-2011 09:29 PM

Quote:

Originally Posted by Beretta1526 (Post 2197247)
I would be interested in how to force search engines, robots, spiders, etc. to use this version. I've hacked mine so that a non-member cannot see the "style chooser" on my page, but that shouldn't matter I suppose.
.

I used the mobile detect hack and added search engine useragent snipperts to teh user defined section (Yahoo!,Baiduspider+,Googlebot,msnbot,Slurp)

Quote:

Originally Posted by Beretta1526 (Post 2197261)
I would like to add options to the style in the vBulleting Options panel, similar to the "Mobile Style Options" that allow you to append all posts with either the mobile user agent (browser, etc) or custom text like (posted via mobile). In fact, this is the very same options from your original "mobile" style that I'm referring to. Should I attempt to take this on myself, or will you be adapting some of those awesome options to the "Lightweight" style?

I'm going to have to make it a point to donate for all this hard work.

Thanks again!

.

I'll do something at some stage. You could try the following for appending useragents to posts: https://vborg.vbsupport.ru/showthread.php?t=185987

Quote:

Originally Posted by benFF (Post 2197293)
You need to add the "dot_hot_new" variants to that as well :)

Also the logo is never actually used...?

Thanks, and yes - I should probably do a logo rather than text.

MagicThemeParks 05-18-2011 11:14 PM

Yes! 3.8x lives! :up:

I'll be adding this to the sites that I don't plan on moving to another forum software :D

0ptima 05-18-2011 11:58 PM

Thanks. Will install this when I upgrade to 3.8.7

bestmilan 05-19-2011 02:13 AM

1 Attachment(s)
I found a small bug... when you click on the "Register" button you can see duplicate login fields (please see the attached image).

One more thing... we allow unregistered users to post but it seems that they can not post by using the lightweight style (this was true i believe also with the previous mobile version). It wouldn't be a big problem itself if the submit reply button and the new thread button were disabled on the lightweight skin for unregistered users... but right now it gives unregistered users a wrong impression that they are able to post.

AND THANK YOU VERY MUCH FOR YOUR HARD WORK ON THIS NEW LIGHTWEIGHT STYLE... IT'S VERY NICE AND VERY USEFUL !!!

BirdOPrey5 05-19-2011 02:39 AM

I'm loving it. Donation sent for Branding Free!

Made some customizations but never could have done it without this style to build off of.

Got it up and running, if my users don't find any bugs I will be removing the old mobile styles I have.

https://vborg.vbsupport.ru/external/2011/05/30.jpg

Alfa1 05-19-2011 11:09 PM

Are blog and groups supported?

dartho 05-20-2011 12:02 AM

no they aren't

dartho 05-20-2011 12:10 AM

@brad - I have been unable to reproduce the issue you are having with duplication of login boxes. Could you check the templates to see if it's duplicated there?

Inregards to guest voting, wht type of human verification do you have for guest posts?

Alfa1 05-20-2011 12:14 AM

Do you have plans to add support for blog and / or groups?

dartho 05-20-2011 12:43 AM

No plans for blogs, groups is partially implemented and may become fully implemented later on. I'm just focusing on getting forums right at the moment

bestmilan 05-20-2011 01:15 AM

Thank you dartho for the fast reply :)

UPDATE: Deleting duplicate login code from the "register" and "register_rules" templates solved the problem.


Regarding duplicate login boxes...

When I search the lightweight skin templates for this piece of code...

Code:

login.php?do=login
...I can find it in 3 templates:

1) navbar
2) register
3) register_rules

My other custom skins have the code only inside the navbar template.


Regarding to guest/ unregistered user posting... we use the vB Human Verificatin Manager (random question to prevent spam).

BirdOPrey5 05-20-2011 02:39 AM

Suggestion to add the standard "border-radius" to the CSS for IE9 and presumably future browser compatibility.

Info here: http://stackoverflow.com/questions/6...r-radius-in-ie
(Note you don't need to declare 4 values for IE9, just one is needed like moz and webkit.)

dartho 05-20-2011 12:38 PM

Updated to rev 1.0.1!
Removed navbar/login code from registration templates, also fixed other disaply issues in rego pages
Added in human verify stuff for those that allow guests to post
Fixed inconsistencies in CSS regards to forum/thread disaplay
Updated link to default style so will remain on same page - thanks BOP5
Tidied up some other stuff I notiuced along the way

I've also started work on a "Lighweight STyle (3.8.7) Toolkit/Options" similar to what I did with the old mobile style, but with improved code. Also a few extras...

Enjoy

viper357 05-20-2011 12:52 PM

Thanks for the update. Really stupid question here :p but how do you upgrade a style, must I use the 'Merge into style' option?

Beretta1526 05-20-2011 01:57 PM

Quote:

Originally Posted by dartho (Post 2197965)
Updated to rev 1.0.1!
Removed navbar/login code from registration templates, also fixed other disaply issues in rego pages
Added in human verify stuff for those that allow guests to post
Fixed inconsistencies in CSS regards to forum/thread disaplay
Updated link to default style so will remain on same page - thanks BOP5
Tidied up some other stuff I notiuced along the way

I've also started work on a "Lighweight STyle (3.8.7) Toolkit/Options" similar to what I did with the old mobile style, but with improved code. Also a few extras...

Enjoy

You rock. I'll be updating this today sometime. I'll just remove it and reinstall it since I didn't make any modifications. This time, however, I may add a "Today's Posts" to the navbar or replace the "New Posts" with it.

.

BirdOPrey5 05-20-2011 03:34 PM

In the threadbit template, the line:
Code:

<div class="sticky">
is it supposed to be
Code:

<div class="sticky$thread[statusicon]">
Just curios... Or are all sticky threads supposed to have the same class?

Alfa1 05-20-2011 04:07 PM

Quote:

Originally Posted by dartho (Post 2197811)
No plans for blogs, groups is partially implemented and may become fully implemented later on. I'm just focusing on getting forums right at the moment

Thanks for the swift reply. Groups is way more important than blog for me, as groups are heavily used, while blog is rarely used.

Beretta1526 05-20-2011 04:44 PM

Updated and reinstalled. Painless and simple.

.

The Dawg 05-20-2011 09:17 PM

Thanks!

ravenscape 05-20-2011 11:58 PM

Quote:

Originally Posted by dartho (Post 2197965)
Updated to rev 1.0.1!
Removed navbar/login code from registration templates, also fixed other disaply issues in rego pages
Added in human verify stuff for those that allow guests to post
Fixed inconsistencies in CSS regards to forum/thread disaplay
Updated link to default style so will remain on same page - thanks BOP5
Tidied up some other stuff I notiuced along the way

I've also started work on a "Lighweight STyle (3.8.7) Toolkit/Options" similar to what I did with the old mobile style, but with improved code. Also a few extras...

Enjoy

I just installed the update after getting some very positive feedback on yesterday's release from my forum members. Looks great.

bestmilan 05-21-2011 12:38 AM

Quote:

Originally Posted by dartho (Post 2197965)
Updated to rev 1.0.1!
Removed navbar/login code from registration templates, also fixed other disaply issues in rego pages
Added in human verify stuff for those that allow guests to post
Fixed inconsistencies in CSS regards to forum/thread disaplay
Updated link to default style so will remain on same page - thanks BOP5
Tidied up some other stuff I notiuced along the way

I've also started work on a "Lighweight STyle (3.8.7) Toolkit/Options" similar to what I did with the old mobile style, but with improved code. Also a few extras...

Enjoy


THIS IS AN AWESOME UPDATE !!!

Quote:

Added in human verify stuff for those that allow guests to post
I especially appreciate this part... already tested it and works great :)


DONATION SENT TODAY FOR BRANDING FREE (2 sites)

THANK YOU !!!

Lee A Burnett 05-21-2011 04:46 PM

Great work dartho!

I did find one thing - There's an extra "> in template forumhome_forumbit_level2_nopost

Code:

<div class="windowbg">">

killerkraft 05-21-2011 07:45 PM

Hi dartho!,

What could i've made wrong?

When users from a mobile phone get inside the forum they just get a page saying that they dont have permission and they must refresh the page.
And no login box appears.

Can you help me ?

KK

dartho 05-21-2011 09:06 PM

@Lee - thanks, will fix in next release
@killerkraft - could you link me to your forum to look

killerkraft 05-21-2011 09:24 PM

Yes, of course.

www.digitalzapping.net

You will see the default style, and if you try to change to your style, witch i called "Estilo Portatil" before loggin in you will be stuck there.

Of course that if you login in the normal style and then change, everything will be ok.

Please check and advise.

Thanks,

KK

dartho 05-21-2011 11:05 PM

Try editing the STANDARD_ERROR_LOGIN and STANDARD_ERROR_LITE templates, search for:
Code:

<div class="bodywrapping">
and replace with
Code:

<div class="bodywrapping">
$header
$navbar

Tiy may want to edit your previous post before any spammers get it and remove username and password


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