Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Unsupported Styles Dirs Details »»
Unsupported Styles Dirs
Version: 1.0.7, by gizmo4321 gizmo4321 is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 3.5.8 Rating:
Released: 01-30-2006 Last Update: 02-09-2006 Installs: 7
Uses Plugins
 
No support by the author.

Purpose of this product
vBulletin supports the ability to use multiple styles or 'skins' for your web site. As long as all of the styles use the same basic color schemes, this is great, but what happens if you want to have several drastically different color schemes? Now you've got problems, because the various icons that are used either have harsh edges because they aren't anti-aliased into the background color properly, or else they have ugly looking edges for the same reason. vBulletin allows you to handle this to a degree by allowing you to specify different folders for the item status and attachment icons, the text editor controls, and the miscellaneous , polls, ratings, reputations, and buttons images in the StyleVars settings for each style. However, there is no provision for setting style specific folders for the rank or smilie icons, or icons that come from the 'icons' folder. In addition, although you can specify a title image for each Style, if you are like most sites, your title is actually composed of several images pasted together. This pasting of images requires you to make fundamentally the same change in every style even though the only thing that changes in each style is simply the path to the stored image, again, based on the style that you are using.

Capabilities
UnsupportedStylesDir now gives you the ability to have rank, smilie, and icon images per style. It also adds a new global variable ($USDHeaderImageStylePath) that you can use in your templates to set the path to your title graphics. Now you have the capability to have multiple styles with vastly different color schemes that can all inherit the same base template; no more template modifications to support what are essentially trivial changes.

Where Can I See It In Action?
The current version is running at www.aoaforums.com, if you want to see it. I hope you find it useful. As this is freeware, I cannot be expected to provide on-demand support. However, if you have a problem or need something added, I will do my best to try to help.

It was developed on vBulletin 3.5.1, and should work on newer versions (we are currently on 3.5.4)

Usage
To use, simply install the product from the AdminCP Plugins|Manage Products menu, then find the USD_INIT plugin from the AdminCP Plugins|Plugin Manager menu. Edit the plugin code, find the section near the top with the comment "User Configurables" and change your settings as necessary. The comments in the code should make everything clear (I hope).

Upgrade Instructions
To upgrade from a previous version, you'll need to go the the USD_INIT plugin, and copy everything between the
/*******************User configurables****************/

and the

/****************** End User Configurables**************/

markers. Once you've done that, import the updated product, go to the USD_INIT plugin, and paste what you copied from the old plugin back to this plugin, in the same spot.

Update History
1.0.5 - Initial Public Release
1.0.6 - Fixed minor bug with arguments to strncmp function
If you don't want to go through the upgrade process, go to the USD_INIT plugin and find the line with the strncmp statement, which will look like this:
Code:
	$bDoReplacement = (strncmp($Temp, '<img src="') == 0);
and replace it with this:
Code:
	$bDoReplacement = (strncmp($Temp, '<img src="', 10) == 0);
1.0.7 - Added style support for message editor icons

Show Your Support

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

Comments
  #2  
Old 01-31-2006, 04:42 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ta! The first one to install... thanks!
Reply With Quote
  #3  
Old 01-31-2006, 09:20 PM
gizmo4321 gizmo4321 is offline
 
Join Date: Nov 2004
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool! Let me know how it works for you.
Reply With Quote
  #4  
Old 01-31-2006, 09:39 PM
LincolnForums LincolnForums is offline
 
Join Date: Oct 2005
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i dont get it,

I thought you could change the path to different sets in the Style options?
Reply With Quote
  #5  
Old 02-01-2006, 01:04 AM
gizmo4321 gizmo4321 is offline
 
Join Date: Nov 2004
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As I mentioned above, most you can, but a few you cannot. In particular (and the reason I wrote this), the Ranks, Smilies, and certain of the general icons (such as the ones used for threads) do not give you the ability to change paths for different sets.
Reply With Quote
  #6  
Old 02-01-2006, 09:19 AM
IrPr IrPr is offline
 
Join Date: Mar 2005
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gizmo4321
As I mentioned above, most you can, but a few you cannot. In particular (and the reason I wrote this), the Ranks, Smilies, and certain of the general icons (such as the ones used for threads) do not give you the ability to change paths for different sets.
Now i got this

Installed

Cheers
Reply With Quote
  #7  
Old 02-01-2006, 11:28 AM
gizmo4321 gizmo4321 is offline
 
Join Date: Nov 2004
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great! I hope it works for you!
Reply With Quote
  #8  
Old 02-01-2006, 01:04 PM
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where does it add the new dir options?
Reply With Quote
  #9  
Old 02-01-2006, 02:43 PM
gizmo4321 gizmo4321 is offline
 
Join Date: Nov 2004
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have to edit the USD_INIT plugin code. The comments contained in the code explain how to set the variables.

I though about adding a configuration setting in the AdminCP, and I may still do that.
Reply With Quote
  #10  
Old 02-01-2006, 09:05 PM
LincolnForums LincolnForums is offline
 
Join Date: Oct 2005
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gizmo4321
As I mentioned above, most you can, but a few you cannot. In particular (and the reason I wrote this), the Ranks, Smilies, and certain of the general icons (such as the ones used for threads) do not give you the ability to change paths for different sets.

thanks for explaining, i was just a little confused
Reply With Quote
Reply

Thread Tools

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 03:18 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.04761 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
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_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete