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
Stylevar Search Details »»
Stylevar Search
Version: .6, by Dead Eddie Dead Eddie is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.0.4 Rating:
Released: 07-05-2010 Last Update: 08-07-2010 Installs: 51
Uses Plugins
Re-useable Code Additional Files Translations Is in Beta Stage  
No support by the author.

Frustrated using the Stylevar interface, I wrote a quick interface that allows admins to do the following:
  • View updated stylevars for the style (including stylevars updated in parent styles)
  • Search for stylevar by type (background, border, color, etc.)
  • Search for stylevar by value (see the note about this below)
  • Select multiple stylevars for editing
  • Revert multiple stylevars at a time
My idea was to create a stopgap until VBulletin 4.1 is released to still allow me to quickly and efficiently modify the style for my site.

Search by value was one of the key things I wanted to do. Unfortunately, the raw stylevar definitions are not stored, instead it's stored in the database as a serialized PHP array. As I didn't want to unpackage all the stylevars to do a simple search, I cheated. This means that searching for an integer will likely fail (searching for colors, images and strings should work).

Installation is simple. Import the xml file product-asp_de_stylevarsearch.xml, then copy the files up in their packaged directories. Likewise, to uninstall the product, uninstall it, and remove the files:

includes/xml/cpnav_vbstylevarsearch.xml
admincp/searchstylevar.php

Hope you find it useful.

Changelog
.01 - Initial Version
.02 - Updated to fix implode error when variable was null
.03 - Updated search to search for both the lower and upper case version of the value search.
.5 - Updated search to search both hexidecimal and RGB values. Additionally, I'm taking into account the shortcut hexidecimal notation. For example, searches for #FFF will also search #FFFFFF and (255,255,255), along with the lower case versions of these values.
.6 - Fixed "headers already sent" bug

Download Now

File Type: zip Stylevar Search v.6.zip (7.8 KB, 165 views)

Screenshots

File Type: png Menu.png (21.1 KB, 0 views)
File Type: png Search by Type:Value.png (28.5 KB, 0 views)
File Type: png Stylevar Listing.png (50.3 KB, 0 views)

Show Your Support

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

Comments
  #12  
Old 08-06-2010, 04:20 PM
Neo_obs Neo_obs is offline
 
Join Date: Mar 2006
Location: Disneyland, CA
Posts: 363
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am getting this error when trying to update stylevars (multiple and single selections)

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/forum/includes/adminfunctions.php:285) in /home/xxxxx/public_html/forum/admincp/searchstylevar.php on line 302
Reply With Quote
  #13  
Old 08-07-2010, 02:07 PM
Dead Eddie's Avatar
Dead Eddie Dead Eddie is offline
 
Join Date: Apr 2004
Location: at Home...
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Neo_obs View Post
I am getting this error when trying to update stylevars (multiple and single selections)


Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/forum/includes/adminfunctions.php:285) in /home/xxxxx/public_html/forum/admincp/searchstylevar.php on line 302
I took a quick look, and I think I see what the issue is. Didn't quite see why it's only happening under certain circumstances, but I think I should be able to have it fixed/tested this afternoon.
Reply With Quote
  #14  
Old 08-07-2010, 11:17 PM
Dead Eddie's Avatar
Dead Eddie Dead Eddie is offline
 
Join Date: Apr 2004
Location: at Home...
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It looks like I've resolved the "Headers already sent" issue. Let me know if you're still seeing it.
Reply With Quote
  #15  
Old 08-18-2010, 01:57 AM
Neo_obs Neo_obs is offline
 
Join Date: Mar 2006
Location: Disneyland, CA
Posts: 363
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome, they are fixed.

One thing that would be awesome to add, a select all button at the bottom next to reset and revert.
Reply With Quote
  #16  
Old 09-04-2010, 08:50 PM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

something vb4 seems to be missing .. thanks
Reply With Quote
  #17  
Old 09-04-2010, 09:15 PM
Merjawy's Avatar
Merjawy Merjawy is offline
 
Join Date: Sep 2002
Location: USA
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice indeed

makes life a bit well,, lets just say fun

Thanks
Reply With Quote
  #18  
Old 01-30-2011, 04:44 PM
punchbowl punchbowl is offline
 
Join Date: Nov 2006
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't think we can search stylevars by value in 4.1? We have
Quote:
Show Only Customized StyleVars
now though.
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 04:10 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.06334 seconds
  • Memory Usage 2,301KB
  • Queries Executed 25 (?)
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
  • (2)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
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (4)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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