Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Design Tool: Show what Stylevars are used on a Page Details »»
Design Tool: Show what Stylevars are used on a Page
Version: 1.0.0, by calorie calorie is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.0.4 Rating:
Released: 07-08-2010 Last Update: Never Installs: 30
Uses Plugins
 
No support by the author.

This add-on allows you to see what stylevars are used on a particular webpage.

For example, you see this in the HTML source:
Code:
<link rel="stylesheet" type="text/css" href="css.php?styleid=1&amp;langid=1&amp;d=1278694674&amp;td=ltr&amp;sheet=bbcode.css,editor.css,popupmenu.css,reset-fonts.css,vbulletin.css,vbulletin-chrome.css,vbulletin-formcontrols.css" />
You would then go to this link to see the CSS information:
Code:
http://www.domain.com/forum/css.php?styleid=1&langid=1&d=1278694674&td=ltr&sheet=bbcode.css,editor.css,popupmenu.css,reset-fonts.css,vbulletin.css,vbulletin-chrome.css,vbulletin-formcontrols.css

You also see this in the HTML source:
Code:
<link rel="stylesheet" type="text/css" href="css.php?styleid=1&amp;langid=1&amp;d=1278694120&amp;td=ltr&amp;sheet=additional.css" />
You would then go to this link to see the CSS information:
Code:
http://www.domain.com/forum/css.php?styleid=1&langid=1&d=1278694120&td=ltr&sheet=additional.css

The information you see depends on what link in the HTML source you visit:
Code:
http://www.domain.com/forum/css.php?sheet=foobar.css,etc.css
This add-on adds information to the CSS so you can see what stylevars are used.


The additional information you can see with this add-on is as follows...
  • The CSS templates and stylevars in use from the link in the HTML source:
    Code:
    /****************************************************************************************************
     Usage count of Stylevars from each CSS template 
    ****************************************************************************************************
    
     Template :: additional.css
    	 Stylevar :: bbcode_quote_padding (used 1 time) 
    	 Stylevar :: border_radius (used 1 time) 
    	 Stylevar :: postbit_boxed_background (used 1 time) 
    	 Stylevar :: postbit_boxed_border (used 1 time) 
    	 Stylevar :: postbit_boxed_fontSize (used 1 time) 
    	 Stylevar :: postbit_boxed_padding (used 1 time) 
    
    ****************************************************************************************************/
  • The raw CSS templates where the above stylevars are used:
    Code:
    /****************************************************************************************************
     Begin Raw Template :: additional.css
    ****************************************************************************************************
    .attachments example {
    	border: {vb:stylevar postbit_boxed_border};
    	background: {vb:stylevar postbit_boxed_background};
    	margin: 20px {vb:math {vb:stylevar bbcode_quote_padding.paddingLeft}+20px};
    	-moz-border-radius: {vb:stylevar border_radius};
    	padding: {vb:stylevar postbit_boxed_padding};
    	font-size: {vb:stylevar postbit_boxed_fontSize};
    } 
    ****************************************************************************************************
     End Raw Template :: additional.css
    ****************************************************************************************************/
  • The parsed CSS templates with the stylevars replaced with values:
    Code:
    /****************************************************************************************************
     Begin Parsed Template :: additional.css
    ****************************************************************************************************/
    .attachments example {
    	border: 1px solid #cdcece;
    	background: #ececec none;
    	margin: 20px 30px;
    	-moz-border-radius: 5px;
    	padding: 5px 10px 5px 10px;
    	font-size: 12px;
    } 
    /****************************************************************************************************
     End Parsed Template :: additional.css
    ****************************************************************************************************/


The point of this add-on is to try and display stylevars in a more informative way, so you have a better method of finding what stylevars to edit when making your style customizations. This add-on adds extra information to the CSS as comments, and so it over doubles the size of the CSS, but you only want to use this add-on when you are designing so you can more easily find the stylevars or CSS templates to edit.


Versions:
  • This add-on should work with vB 4.0.2, vB 4.0.3, and vB 4.0.4
  • This add-on was only tested on vB 4.0.3 with FF 3.5 and IE 8

Installation:
  1. Import the attached file as a product via the ACP
  2. Hard refresh your front-end page to be rid of cache
  3. View the HTML source and go to a css.php page

Un-installation:
  1. Uninstall the add-on using the menu via the ACP
  2. Hard refresh your front-end page to be rid of cache


This add-on only changes the CSS on the fly. It does nothing to the databased CSS so if you see something, or not see something, the "trick" is to hard refresh (e.g., Crtl-F5) the front-end page to be rid of any cached CSS held by your browser.

Download Now

File Type: xml product-stylevarsonpage.xml (3.8 KB, 178 views)

Show Your Support

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

Comments
  #2  
Old 07-09-2010, 11:38 PM
sulasno sulasno is offline
 
Join Date: Feb 2010
Posts: 588
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tagged and thanks

waiting for 4.0.5 to be released and will install Mod to it
Reply With Quote
  #3  
Old 07-10-2010, 07:29 AM
fxwoody's Avatar
fxwoody fxwoody is offline
 
Join Date: Jun 2010
Location: On Earth
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's an interesting Mod Calorie It should be added in Firebug
Tks and tagged
Reply With Quote
  #4  
Old 07-10-2010, 10:14 AM
Rebecca217 Rebecca217 is offline
 
Join Date: May 2002
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks very useful! Thanks for this! Tagged.
Reply With Quote
  #5  
Old 07-11-2010, 03:08 PM
Da-Vinci Da-Vinci is offline
 
Join Date: Mar 2010
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What a great tool, well done installed and rated 5.
Reply With Quote
  #6  
Old 12-14-2010, 11:01 AM
mohammad6006's Avatar
mohammad6006 mohammad6006 is offline
 
Join Date: May 2008
Location: IRAN (Tabriz)
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this show cods for administrators or everybody?
Reply With Quote
  #7  
Old 12-14-2010, 09:34 PM
skol skol is offline
 
Join Date: Oct 2008
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Everybody,just like Firebug in Firefox..But this is really useful thanks.
Reply With Quote
  #8  
Old 12-14-2010, 09:57 PM
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Location: Uk
Posts: 1,191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice mod and very useful for us guys thanks!
Reply With Quote
  #9  
Old 01-04-2011, 01:14 PM
masonox masonox is offline
 
Join Date: Feb 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod, has helped out a lot finding the small pesky stuff that eluded me.
Reply With Quote
  #10  
Old 01-04-2011, 01:32 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice and useful
tagging this for future reference
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 09:11 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.04850 seconds
  • Memory Usage 2,316KB
  • Queries Executed 24 (?)
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
  • (8)bbcode_code
  • (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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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