vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=245950

Stylevar Search
by Dead Eddie
06 Jul 2010 00:58

4 Attachment(s)
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

Dr.osamA 06 Jul 2010 05:31

2 Attachment(s)
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

KURTZ 06 Jul 2010 11:02

screen shots?

Dead Eddie 07 Jul 2010 00:46

Quote:

Originally Posted by Dr.osamA (Post 2065106)
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.

Quote:

Originally Posted by KURTZ (Post 2065185)
screen shots?

Updated.

Dr.osamA 07 Jul 2010 03:42

thanx man

now it is 100%

ozzy47 08 Jul 2010 23:22

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.

Dead Eddie 09 Jul 2010 00:44

Quote:

Originally Posted by ozzy47 (Post 2066538)
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?

ozzy47 09 Jul 2010 22:16

To the custom folder is where I uploaded it!

Dead Eddie 10 Jul 2010 18:14

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.

ozzy47 11 Jul 2010 15:49

I re uploaded everything again and it is working now!

Neo_obs 06 Aug 2010 18:20

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

Dead Eddie 07 Aug 2010 16:07

Quote:

Originally Posted by Neo_obs (Post 2080128)
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.

Dead Eddie 08 Aug 2010 01:17

It looks like I've resolved the "Headers already sent" issue. Let me know if you're still seeing it.

Neo_obs 18 Aug 2010 03:57

Awesome, they are fixed.

One thing that would be awesome to add, a select all button at the bottom next to reset and revert.

Hippy 04 Sep 2010 22:50

something vb4 seems to be missing .. thanks


All times are GMT. The time now is 13:06.

Powered by vBulletin® Version 3.8.14
Copyright © 2022, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.