The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
UKBL ~ Choose Multiple Forum Colors - like VB.Org Details »» | |||||||||||||||||||||||||||||||||||||||
UKBL ~ Choose Multiple Forum Colors - like VB.Org
Developer Last Online: Feb 2012
UKBL ~ Choose Multiple Forum Colors - like VB.Org With recent requests to do something similar to VB.org without all the complications of seperate CCS scripts and pages, Now you'll be able to change your forums color, Just like VB.org This hack will show you how to make and customise your own forum styles - Great Fun PLEASE NOTE, The demo Screenshots are not the Colors you will be getting They are just quick examples i made to show different colors. The Colours are custom made by you when you Edit the CSS in your Styles template folder Lets get Started First you will need to decide how many colors you want, For example we'll chose just 4, but you can have as many or as little as you want. Then decide which forum style you want to use to offer your color changes, I've used just the VB default style for this example. So here we go.......... 1. Go to your Admin CP and select Style Manager 2. Click the Link at the bottom - Add New Style 3. Parent Style - Select the Style that you want to offer Color Changes on, Normally this would be your chosen default style, and name it Default - Green Allow User selection - Yes Display order - 20 Then Save 4. You will see that you've created a copy of your default style called default green. Now we'll need to play with our Colors 5. On your defalt Green style click on All Style Options and GO, scroll down untill you come to the Body CSS Then basically you need to work your way down this changing Background Colors, font colors etc,, If you click on one of the colored squares you will bring up a selector of colors which can let you chose the color you want without having to know Hex color numbers. Trust me, I've not done this before and already within minutes i was making different forum styles, It really is that simple, The key word here is experiment You'll love it To see your changes save and then click on the Forum Home Page link at the top right of your screen. So basically thats what we need to do to make our different color Styles, Do a new Default Style for each color you want. Color Squares Next we'll need our color Squares Just make your own in the color which best represents your Style and save to your forums /images/misc folder To fit nicely in the bottom navbar, I made mine 13 x 13 pixels and made them in paint.net, You can use photoshop or even windows paint Half way there Now comes the Fun Part We need to Make our Color Squares Clickable so for that we'll have to edit a bit of code. Open Notepad or a similar Text editor and add the following Code Code:
<a href="link.com"><img src="picture.jpg"></a> Code:
<a href="http://www.ukbusinesslive.co.uk/forum/index.php?styleid=5"><img src="picture.jpg"></a> If you already havn't done so, Upload your Color squares to your forums image/misc folder and use the full url to link to that in the code, so now our code will be like this Code:
<a href="http://www.ukbusinesslive.co.uk/forum/index.php?styleid=5"><img src="http://www.ukbusinesslive.co.uk/forum/images/misc/green.png"></a> Code:
<a href="http://www.ukbusinesslive.co.uk/forum/index.php?styleid=5"><img src="http://www.ukbusinesslive.co.uk/forum/images/misc/green.png"></a> Code:
<a href="http://www.ukbusinesslive.co.uk/forum/index.php?styleid=5"><img src="http://www.ukbusinesslive.co.uk/forum/images/misc/green.png"></a> <a href="http://www.ukbusinesslive.co.uk/forum/index.php?styleid=6"><img src="http://www.ukbusinesslive.co.uk/forum/images/misc/red.png"></a> <a href="http://www.ukbusinesslive.co.uk/forum/index.php?styleid=7"><img src="http://www.ukbusinesslive.co.uk/forum/images/misc/blue.png"></a> Code:
Choose Your Color <a href="http://www.ukbusinesslive.co.uk/forum/index.php?styleid=5"><img src="http://www.ukbusinesslive.co.uk/forum/images/misc/green.png"></a> <a href="http://www.ukbusinesslive.co.uk/forum/index.php?styleid=6"><img src="http://www.ukbusinesslive.co.uk/forum/images/misc/red.png"></a> <a href="http://www.ukbusinesslive.co.uk/forum/index.php?styleid=7"><img src="http://www.ukbusinesslive.co.uk/forum/images/misc/blue.png"></a> and thats it :up: save your work Next we'll need to upload the code to our footer template of our Parent Style Go to Default (Parent) style in the Admin CP and select All style Options > Edit Templates > Footer and then find Code:
<strong> You'll see that it will copy to all the child styles automatically You should get something along the lines of this Thats all folks Please Click Install and i'll support 100% Download Now
Screenshots
Show Your Support
|
Comments |
#82
|
|||
|
|||
Excellent :up:
|
#83
|
|||
|
|||
So I thought.
The first two members on the web site to try it said the colors were not changing for them when they clicked a colored square. They are using IE8. I tried it with IE8 and it works fine for me???? Here is the code I'm using.... Code:
<center>Layout Options | <span class="smallfont">Width:</span><a target="_top" href="http://www.publicwarriors.com/forums/index.php?styleid=46">Narrow </a><span class="smallfont">Color:</span> <a href="http://www.publicwarriors.com/forums/index.php?styleid=32"><img title="Default Style - Tan" alt="Default Tan" src="http://www.publicwarriors.com/forums/images/colors/default_tan.gif" border="0" height="9" width="9"></a> <a href="http://www.publicwarriors.com/forums/index.php?styleid=10"><img title="Black" alt="Black" src="http://www.publicwarriors.com/forums/images/colors/black.gif" border="0" height="9" width="9"></a> <a href="http://www.publicwarriors.com/forums/index.php?styleid=14"><img title="Gray" alt="Gray" src="http://www.publicwarriors.com/forums/images/colors/gray.gif" border="0" height="9" width="9"></a> <a href="http://www.publicwarriors.com/forums/index.php?styleid=18"><img title="Blue" alt="Blue" src="http://www.publicwarriors.com/forums/images/colors/blue.gif" border="0" height="9" width="9"></a> <a href="http://www.publicwarriors.com/forums/index.php?styleid=12"><img title="Dark Blue" alt="Dark Blue" src="http://www.publicwarriors.com/forums/images/colors/darkblue.gif" border="0" height="9" width="9"></a> <a href="http://www.publicwarriors.com/forums/index.php?styleid=22"><img title="Light Blue" alt="Light Blue" src="http://www.publicwarriors.com/forums/images/colors/lightblue.gif" border="0" height="9" width="9"></a> <a href="http://www.publicwarriors.com/forums/index.php?styleid=24"><img title="Royal Blue" alt="Royal Blue" src="http://www.publicwarriors.com/forums/images/colors/royalblue.gif" border="0" height="9" width="9"></a> <a href="http://www.publicwarriors.com/forums/index.php?styleid=16"><img title="Perfect Blue" alt="Perfect Blue" src="http://www.publicwarriors.com/forums/images/colors/perfectblue.gif" border="0" height="9" width="9"></a> <a href="http://www.publicwarriors.com/forums/index.php?styleid=28"><img title="Red" alt="Red" src="http://www.publicwarriors.com/forums/images/colors/red.gif" border="0" height="9" width="9"></a> <a href="http://www.publicwarriors.com/forums/index.php?styleid=27"><img title="Coral" alt="Coral" src="http://www.publicwarriors.com/forums/images/colors/coral.gif" border="0" height="9" width="9"></a> <a href="http://www.publicwarriors.com/forums/index.php?styleid=26"><img title="Chestnut" alt="Chestnut" src="http://www.publicwarriors.com/forums/images/colors/chestnut.gif" border="0" height="9" width="9"></a> <a href="http://www.publicwarriors.com/forums/index.php?styleid=29"><img title="Rosy Brown" alt="Rosy Brown" src="http://www.publicwarriors.com/forums/images/colors/rosybrown.gif" border="0" height="9" width="9"></a> <a href="http://www.publicwarriors.com/forums/index.php?styleid=30"><img title="Gold" alt="Gold" src="http://www.publicwarriors.com/forums/images/colors/gold.gif" border="0" height="9" width="9"></a></center> |
#84
|
|||
|
|||
The beauty of this hack is the fact that its quite easy to do the links are in fact clickable pictures and if your using the basic code there can't really be a problem??
Code:
<a href="yourstyle.com"><img src="picture.jpg"></a> Test each url in your brower see if it goes where its meant to I've just checked a url http://publicwarriors.com/forums/index.php?styleid=28 and it goes to the brown style also with http://publicwarriors.com/forums/index.php?styleid=10 thats brown also ?? You have every style going to the brown style, I think you've not set somthing up right in your style manager??? |
#85
|
|||
|
|||
Quote:
Everything is good now... thanks! |
#86
|
|||
|
|||
Quote:
Well done again |
#87
|
|||
|
|||
Members?
Both of them love it!! |
#88
|
|||
|
|||
There's probably no way this would work with 3.6.8 right?
|
#89
|
|||
|
|||
This is Basic Html, It would work with VB 2.2 if people still have it
|
#90
|
||||
|
||||
It bothered me that regardless of what page you were on this would redirect you to index.php when you change the color so I wrote up a simple javascript so when a user selects a different color they stay on the page they were viewing.
Place this above your color images: Quote:
Quote:
Enjoy |
#91
|
|||
|
|||
Thank you for this. It works perfectly for me. However, I have 2 questions.
1) How do I remove the pull-down style selection list so this is the only way to change styles? 2) How do I make this the only way to select a new style in the UserCP? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|