![]() |
UKBL ~ Choose Multiple Forum Colors - like VB.Org
1 Attachment(s)
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 :rolleyes: 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 :D Lets get Started :D 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 :D 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 :D 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 https://vborg.vbsupport.ru/ https://vborg.vbsupport.ru/ https://vborg.vbsupport.ru/ https://vborg.vbsupport.ru/ 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 :D:D 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 :D 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 :D You should get something along the lines of this https://vborg.vbsupport.ru/ https://vborg.vbsupport.ru/ https://vborg.vbsupport.ru/ https://vborg.vbsupport.ru/ Thats all folks :D Please Click Install and i'll support 100% |
:) Reserved ;)
|
1st to reply :D nice work gonna try this out now, let you know how it goes!
|
anyway you can make the banner colors change like it does on VB.org? hmmm
|
Thanks ...nice work and thanks for your help!
regards macc |
Quote:
|
Quote:
|
This mod isnt like vbOrg :D
|
Quote:
http://www.ukbusinesslive.co.uk/foru...isc/choser.png ;) |
This looks really ugly but its real nice :)
|
Quote:
I guess when admins change their own colors they'll do it with a bit more care and attention, God forbid anyone having a forum with those colors :erm: :D |
Quote:
https://vborg.vbsupport.ru/ You MUST add some new fields to Database, and use PHP Codes for this, not only edit template :) Only use Main CSS and StyleID for all colors. |
Quote:
Plus this is a quite and simple way for people not advanced in coding and databases, to have a similar function to their site, If i wanted to copy VB.orgs code i'd copy the source code, but thats not the idea. :confused: My Heading states "Choose Multiple Forum Colors - like VB.Org" Notice it says "Like" Not spitting image or a copy. also "With recent requests to do something similar to VB.org without all the complications of seperate CCS scripts and pages" i'm sorry if its not met your expectations :erm: |
Your code works also fine (on my site) !
here i had read that many asked and requested about this code or hack ...but never get help from here -mean vbulletin org. Thanks again UKbusinesslive - nice mod and nice help! regards macc |
Quote:
Always happy to help :D |
so, in order to change the color for the forum, you also have to edit the style CSS to match the color? Is there away for it to change automatically without edit the template CSS for each of style color that you add on?
|
Quote:
I've not done it any other way as to make it more difficult by editing main page CSS and database tables. This is a Hack for the little guy that wants the same result as VB.org but alot easier and quicker. If you did it the way you say you will still have to edit a CSS page for each color, so this ways quicker and easier :D |
thanks for sharing :) now if only I could create some nice colours as I would most likely create something that looks like yours :D
|
Quote:
Experiment, Thats the fun Part :D |
Your awesome with javascript mate well done do you do paid services my js isnt the best?
|
Quote:
|
Quote:
UK, nice work once again! :) |
Quote:
|
Thank you, very nice (:
|
Quote:
|
On the next page is implemented in the script where vbulletin-turkey.com add this hack to implement javascript and ajax
http://www.dynamicdrive.com/dynamici...etswitcher.htm How can you implement to vBulletin? Demo: http://www.vbulletin-turkey.com/ Look at the navbar Thank You! |
Quote:
Thanks for your post but its got nothing to do with my mod, and i recommend you email the admin on that site as opposed to starting a new topic on my thread. :rolleyes: |
tagged.
if it's half as easy as you say you've done a great job :) |
Quote:
|
Thanks....
Going to have some fun with this later... |
very cool i use something like this on my forum, its nicer than the standard dropdown
|
Quote:
It really is a lot easier than it looks and the results are great ;) :D |
Thanks For That.
|
Quote:
|
turkish explain at www.yenibeyin.com
T?rk?e anlatım mevcut. Kendi sitemde kullanıyorum |
Quote:
https://vborg.vbsupport.ru/external/2009/03/37.png You want to delete that, and install my hack instead ;) The problem with the javascript hack is that the member needs to have javascript enabled, otherwise the hack won't work. |
Hey,
Nice hack, say I wanted to keep the default style, but just change the header colours, could that be done? |
Quote:
|
I suggest you replace:
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:
<a href="http://www.ukbusinesslive.co.uk/forum/index.php?styleid=5"><img src="http://www.ukbusinesslive.co.uk/forum/images/misc/green.png" border="0"></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" border="0"></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" border="0"></a> |
Quote:
will update the code in a moment :D |
All times are GMT. The time now is 08:32 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|