Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Stylevar Search Details »
Stylevar Search
Mod Version: .6, by Dead Eddie (Coder) Dead Eddie is offline
Developer Last Online: Jan 2020 I like it Show Printable Version Email this Page

vB Version: 4.0.4 Rating: (5 votes - 4.80 average) Installs: 51
Released: 06 Jul 2010 Last Update: 08 Aug 2010 Downloads: 202
Not Supported Uses Plugins Additional Files Re-usable Code Translations Is in Beta Stage  

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

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	Menu.png
Views:	202
Size:	21.1 KB
ID:	119343   Click image for larger version

Name:	Search by Type:Value.png
Views:	315
Size:	28.5 KB
ID:	119344   Click image for larger version

Name:	Stylevar Listing.png
Views:	432
Size:	50.3 KB
ID:	119345  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 06 Jul 2010, 05:31
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Real name: Dr.osama
thanx bro

installed + 5 Stars + translate to Arabic

but i got Warning:
when i choose this option
Search Stylevar by Value and select style

i have this error
Warning: implode() [function.implode]: Invalid arguments passed in [path]/admincp/searchstylevar.php on line 182

add image for explanation
add product in Arabic
Attached Images
File Type: png ara.png (16.9 KB, 99 views)
Attached Files
File Type: xml product-asp_de_stylevarsearch_Arabic.xml (2.1 KB, 1 views)
__________________
Reply With Quote
  #3  
Old 06 Jul 2010, 11:02
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Real name: Christian
screen shots?
Reply With Quote
  #4  
Old 07 Jul 2010, 00:46
Dead Eddie's Avatar
Dead Eddie Dead Eddie is offline
 
Join Date: Apr 2004
Originally Posted by Dr.osamA View Post
thanx bro

installed + 5 Stars + translate to Arabic

but i got Warning:
when i choose this option
Search Stylevar by Value and select style

i have this error
Warning: implode() [function.implode]: Invalid arguments passed in [path]/admincp/searchstylevar.php on line 182

add image for explanation
add product in Arabic
Thanks, I think I've fixed this issue.

Originally Posted by KURTZ View Post
screen shots?
Updated.
Reply With Quote
  #5  
Old 07 Jul 2010, 03:42
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Real name: Dr.osama
thanx man

now it is 100%
__________________
Reply With Quote
  #6  
Old 08 Jul 2010, 23:22
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Aug 2009
Real name: Chris
I get this error when it is installed? xxxx is for my renamed admin folder

The requested URL /xxxxxxx/searchstylevar.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Reply With Quote
  #7  
Old 09 Jul 2010, 00:44
Dead Eddie's Avatar
Dead Eddie Dead Eddie is offline
 
Join Date: Apr 2004
Originally Posted by ozzy47 View Post
I get this error when it is installed? xxxx is for my renamed admin folder

The requested URL /xxxxxxx/searchstylevar.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Did you upload the searchstylevar.php file to your custom admincp folder, or the default one included in the package?
Reply With Quote
  #8  
Old 09 Jul 2010, 22:16
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Aug 2009
Real name: Chris
To the custom folder is where I uploaded it!
Reply With Quote
  #9  
Old 10 Jul 2010, 18:14
Dead Eddie's Avatar
Dead Eddie Dead Eddie is offline
 
Join Date: Apr 2004
Double check the file permission and directory.

I just updated my admin cp directory, and I was still able to access everything. Your error suggests that either the file isn't there, or your server can't see it.
Reply With Quote
  #10  
Old 11 Jul 2010, 15:49
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Aug 2009
Real name: Chris
I re uploaded everything again and it is working now!
Reply With Quote
  #11  
Old 06 Aug 2010, 18:20
Neo_obs Neo_obs is offline
 
Join Date: Mar 2006
Real name: Jeff Baldwin
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
  #12  
Old 07 Aug 2010, 16:07
Dead Eddie's Avatar
Dead Eddie Dead Eddie is offline
 
Join Date: Apr 2004
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
  #13  
Old 08 Aug 2010, 01:17
Dead Eddie's Avatar
Dead Eddie Dead Eddie is offline
 
Join Date: Apr 2004
It looks like I've resolved the "Headers already sent" issue. Let me know if you're still seeing it.
Reply With Quote
  #14  
Old 18 Aug 2010, 03:57
Neo_obs Neo_obs is offline
 
Join Date: Mar 2006
Real name: Jeff Baldwin
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
  #15  
Old 04 Sep 2010, 22:50
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
something vb4 seems to be missing .. thanks
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 23:24.

Layout Options | Width: Wide Color: