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

Reply
 
Thread Tools
Lightweight Style for VB3.8.7 iPhone/Mobile/Cell/PDA Details »»
Lightweight Style for VB3.8.7 iPhone/Mobile/Cell/PDA
Version: 1.0.1, by dartho dartho is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 3.8.7 Rating:
Released: 05-17-2011 Last Update: 05-19-2011 Installs: 248
Re-useable Code  
No support by the author.

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
====================
====================
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.

Download Now

File Type: zip Lightweight-Style-vBulletin3.8.7-1.0.0.zip (104.8 KB, 340 views)
File Type: zip Lightweight-Style-vBulletin3.8.7-1.0.1.zip (105.8 KB, 2660 views)

Screenshots

File Type: png screenshot.png (14.3 KB, 0 views)
File Type: png screenshot2.png (9.8 KB, 0 views)

Show Your Support

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

Comments
  #122  
Old 09-08-2011, 01:37 PM
jskoh jskoh is offline
 
Join Date: Dec 2008
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi, how to change the colour of the category strip? i try Changing it but it doesnt work.
Reply With Quote
  #123  
Old 09-08-2011, 04:43 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit the CSS file
Reply With Quote
  #124  
Old 09-15-2011, 02:37 PM
Clutch Clutch is offline
 
Join Date: Dec 2001
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Max Taxable View Post
AdminCP>Styles and Templates>Style Manager. Then uncheck the box for this style and click "Save display Order."

This will keep the style from being selectable by users but the automatic detection script will still be able to use it.
This does not seem to work for me. The script (style_fetch hook on plugin) will only set the style if it's an active style. I'm looking for a workaround now.

I know it's been a few months, but I'm just now getting back to implementing this after a lot of customization. Thanks dartho.
Reply With Quote
  #125  
Old 09-15-2011, 09:26 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can choose not to allow users to change styles in vBulletin settings, should word then (this is how I use it)
Reply With Quote
Благодарность от:
Max Taxable
  #126  
Old 09-16-2011, 10:22 PM
mastersat's Avatar
mastersat mastersat is offline
 
Join Date: Jan 2010
Location: vbulletin
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will try it
thank you
Reply With Quote
  #127  
Old 09-24-2011, 11:46 AM
infnity8x3 infnity8x3 is offline
 
Join Date: Apr 2009
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I want to try this style out so bad but its conflicting with mods. Mostly cyb_chatbox, cyb_paypall_donate, and the mod that adds little icons to your userCP.

I wish there was a proper way to just disable all the hacks for a specific style. Would make this so easy.

As of now I read an article posted here that says if the hack has an on off switch the it can be controlled with some style fetch template but the userCP icon thingy has no one off switch.
Reply With Quote
Благодарность от:
Max Taxable
  #128  
Old 09-24-2011, 03:54 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pretty much any mod can be disabled for a specific style or styles if you edit the plugins for the mod. You can't go wrong editing every single plugin for a mod but sometimes you don't need to edit every single one...

Basically you need to wrap all of the plugin in this code:

PHP Code:
if (!in_array($vbulletin->userinfo['styleid'], array(2,3,4)))
{
 
  
//All Original Code Here
 

Where 2, 3, and 4 are the styleids you want to disable the mod in. You can add ore remove as many as you want, just separate each with a comma. If there's only 1 you don't need the comma.

Only thing to look out for, if in the plugin there is the line:
Code:
global $vbulletin;
Then you have to put that line above the conditional, like so:

PHP Code:
global $vbulletin;

if (!
in_array($vbulletin->userinfo['styleid'], array(2,3,4)))
{
 
  
//All Original Code Here
 

Reply With Quote
3 благодарности(ей) от:
dartho, infnity8x3, Max Taxable
  #129  
Old 09-24-2011, 11:38 PM
cstreater cstreater is offline
 
Join Date: May 2010
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great style! However, I don't see a report post button or any moderator functionality. Did I do something correct during the install? It seems like I did everything the instructions said to.
Reply With Quote
  #130  
Old 09-26-2011, 01:34 AM
infnity8x3 infnity8x3 is offline
 
Join Date: Apr 2009
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the response and i plan to use your code in the future for the time being i just manually placed the mods in the templates (turned off auto placement) and just removed the one that was just fluff.

Now my problem is switching back and forth between styles. Ok the quick style picker i do not like. Because if some one is in say the arcade they switch to this style and now there page is broken. I know they could do it any way with typing the style into the url but most members wouldn't even think about that. I can comment the style picker out of the template.

But for what ever reason my userCP change style option does not work. Turn off all mods globally with config file it works. Disable all mods in admin control panel it doesn't work so i have no idea whats conflicting I guess I have to edit that out of the template to.

Any easier way of doing this other then editing them out of the template?

Finally (I know dartho has a mod like to this but... Is there any way to auto detect mobile browser and instead off assigning a style, open a notice saying eg we noticed you have mobile would you like to try our mobile version blah blah with link.

Sorry for the wall of text I'm just excited about this project.
Reply With Quote
  #131  
Old 09-26-2011, 11:50 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@infinity8x3 Check https://vborg.vbsupport.ru/showthread.php?t=270928
Reply With Quote
Благодарность от:
infnity8x3
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 08:08 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.05161 seconds
  • Memory Usage 2,373KB
  • 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
  • (4)bbcode_code
  • (2)bbcode_php
  • (1)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
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (23)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)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