View Full Version : === How to change all table border colors at a blow? ===
I would like to add a black flat border to all the tables of my v1.1.4 board. Is there a way to add them all in one operation?
I'm afraid not.
Take a look at this thread how to do it:
http://www.vbulletin.com/forum/showthread.php?threadid=4998
This should be solved in the upcomming vB version 2.0.
Tnx for the info. :)
Hope they'll improve all the styles like on UBB...
You can create replacement variables in vBulletin. Create one for each of the colors you want to change and then you can put those variables in the templates.
If you ever decide to change them again, you only have to change in one place.
That is how I set everything up.
Er... I'm not really PHP experienced so couldn't you please publish them here if possible? :)
Tnx anyway for the tip.
No PHP involved...
Go into your Admin Control Panel. Scroll down on the left until it says "Replacement Variables", Click on Add. Then Type what you want to replace say {tablebackground} in Box #1 then what it should be replaced with say #000000 in box #2. Then in all of your templates just put {tablebackground} where ever you want the background to be black.
You can make as many as you want, to simplify your life.
I didn't realize this could be done that way.
Pretty good hint. Thanks for sharing it with us.
Originally posted by wluke
No PHP involved...
Go into your Admin Control Panel. Scroll down on the left until it says "Replacement Variables", Click on Add. Then Type what you want to replace say {tablebackground} in Box #1 then what it should be replaced with say #000000 in box #2. Then in all of your templates just put {tablebackground} where ever you want the background to be black.
You can make as many as you want, to simplify your life.
Yeah, very easy indeed. :D
Tnx again!
Originally posted by PeF
I didn't realize this could be done that way.
Pretty good hint. Thanks for sharing it with us.
When I started working with vBulletin, I was the same way many people in these forums are. I didn't know PHP. I had read a few tutorials and bought a book but never got around to learning the language.
In order to make the changes I wanted, I spent several days playing around in the control panel and learning what I can do. I found out that 95% of everything can be handled here by using the tools they offered.
While working with the templates I discovered these weird tags <normalfont>, <smallfont> and {tableheadbgcolor} among them. These got my curiosity up. They didn't appear in the code so something had to be replacing them. I looked through the code but couldn't find anything since I didn't know PHP. I then looked through the control panel and found the replacement variables. This is when my life simplified. :)
I still use them even though I am learning more PHP every day and can code in it fairly proficiently now (not as good as Ed, Stallion or Freddie yet though :)). Even looking at incorporating similar features on other projects. As it is right now all but one page (Chat) in the SitePoint community is generated from templates and replacement variables stored in the database. That last page will be added this weekend.
I hope this will finally be added to vbulletin 2.0..
Its a big hassle having to change almost ALL the templates to add this..
Also i hope they add the <body..> info to the templates after you posted/changed/edit etc something
Ahwell I'll just wait and see :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.