Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
UKBL ~ Choose Multiple Forum Colors - like VB.Org Details »
UKBL ~ Choose Multiple Forum Colors - like VB.Org
Mod Version: 1.00, by UKBusinessLive (Designer) UKBusinessLive is offline
Developer Last Online: Feb 2012 I like it Show Printable Version Email this Page

vB Version: 3.8.1 Rating: (9 votes - 5.00 average) Installs: 64
Released: 18 Feb 2009 Last Update: Never Downloads: 568
Not Supported Template Edits Re-usable Code Translations  

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Now we will need to add our url of our style to the Front of that code like this


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You can find out which Style id you need in the Style Manager in your AdminCP, Next we add the url of our color square.

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Then we add a spacer Code to the end of our coded like this  



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thats it, Then you do that with all the colors and save them one after the other, so you end up with one long line of code


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thats the code done, Now to add a few words to the Front of it


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Remember to add a unedited Link back to your normal Style so members can keep using the original, You can use a white color square for this.

and thats it 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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and below it add your code, Then save.

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

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

Screenshots

Click image for larger version

Name:	choser.png
Views:	510
Size:	48.9 KB
ID:	95081   Click image for larger version

Name:	bluepage.png
Views:	177
Size:	50.8 KB
ID:	95086   Click image for larger version

Name:	orangepage.png
Views:	160
Size:	50.8 KB
ID:	95087   Click image for larger version

Name:	redpage.png
Views:	202
Size:	50.4 KB
ID:	95088  

Click image for larger version

Name:	greenpage.png
Views:	240
Size:	51.0 KB
ID:	95089  

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.
  #16  
Old 18 Feb 2009, 17:30
rapidphim rapidphim is offline
 
Join Date: Feb 2007
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?
Reply With Quote
  #17  
Old 18 Feb 2009, 17:58
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Real name: Gerry
Originally Posted by rapidphim View Post
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?
You edit the child style which you us your default forum as the parent, Changing the Style template CSS is so easy and the results can be viewed instantly after being saved, each template should take no more than 3 to 5 minutes.

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
Reply With Quote
  #18  
Old 18 Feb 2009, 20:53
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
thanks for sharing now if only I could create some nice colours as I would most likely create something that looks like yours
Reply With Quote
  #19  
Old 18 Feb 2009, 21:13
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Real name: Gerry
Originally Posted by hornstar1337 View Post
thanks for sharing now if only I could create some nice colours as I would most likely create something that looks like yours
LOL, I did that in minutes because i was adding it to here , But its so easy to play with, given time you could make some nice complimentry color styles for your Forum.

Experiment, Thats the fun Part
Reply With Quote
  #20  
Old 18 Feb 2009, 21:18
pein87's Avatar
pein87 pein87 is offline
 
Join Date: Sep 2008
Your awesome with javascript mate well done do you do paid services my js isnt the best?
Reply With Quote
  #21  
Old 18 Feb 2009, 21:27
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Real name: Gerry
Originally Posted by pein87 View Post
Your awesome with javascript mate well done do you do paid services my js isnt the best?
For you buddy, a donation will suffice Pm me your problem and i'll help where i can, But this hack wasn't done with JS
Reply With Quote
  #22  
Old 21 Feb 2009, 13:41
KevinL KevinL is offline
 
Join Date: Apr 2005
Originally Posted by hornstar1337 View Post
thanks for sharing now if only I could create some nice colours as I would most likely create something that looks like yours
Try this site... http://www.colourlovers.com/ it has a lot of colors to work off

UK, nice work once again!
Reply With Quote
  #23  
Old 21 Feb 2009, 14:59
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Real name: Gerry
Originally Posted by KevinL View Post
Try this site... http://www.colourlovers.com/ it has a lot of colors to work off

UK, nice work once again!
Thanks kev
Reply With Quote
  #24  
Old 21 Feb 2009, 16:32
atmaca's Avatar
atmaca atmaca is offline
 
Join Date: Jan 2008
Location: Turkey/Gazi Antep
Real name: Abdullah
Thank you, very nice (:
Reply With Quote
  #25  
Old 21 Feb 2009, 16:41
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Real name: Gerry
Originally Posted by atmaca View Post
Thank you, very nice (:
Thanks, Don't forget to click installed if you use
Reply With Quote
  #26  
Old 23 Feb 2009, 07:12
dvbusuario's Avatar
dvbusuario dvbusuario is offline
 
Join Date: Oct 2007
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!
__________________

Webmaster: http://www.ElDestrampe.net
Reply With Quote
  #27  
Old 23 Feb 2009, 18:18
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Real name: Gerry
Originally Posted by dvbusuario View Post
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!

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.

Reply With Quote
  #28  
Old 28 Feb 2009, 21:30
Amadeus Cho Amadeus Cho is offline
 
Join Date: Feb 2009
tagged.

if it's half as easy as you say you've done a great job
Reply With Quote
  #29  
Old 01 Mar 2009, 09:43
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Real name: Gerry
Originally Posted by Amadeus Cho View Post
tagged.

if it's half as easy as you say you've done a great job
Thanks, Let us know how you got on
Reply With Quote
  #30  
Old 09 Mar 2009, 09:50
Gweebs Gweebs is offline
 
Join Date: Jan 2009
Thanks....

Going to have some fun with this later...
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 14:57.

Layout Options | Width: Wide Color: