View Full Version : Diffrent Table Color For a Certian Forum
DieselMinded
01-28-2008, 05:07 AM
Hello All ,
I have 1 forum on my board that allows Cuss words , People seem to forget what forum there in ,All i want to do is make the Table outline RED when your viewing that forum , so members always know where they are .
How can i pull this off?
Thanks
Gio~Logist
01-28-2008, 06:42 AM
Why not add something like this to the forumdisplay?
<if condition="$foruminfo[forumid] == 'x'">YOU CAN F****** CURSE IN THIS DAMN FORUM</if>
I was kidding with the statement obviously, but it'd work. Same conditional if you're looking to change the border.
DieselMinded
01-28-2008, 06:46 AM
What template would i add this to ? and where , and where would it show ?
Thanks Alot
I really just want the table boarder to be RED
--------------- Added 1201510362 at 1201510362 ---------------
I Added
<if condition="$foruminfo[forumid] == '6'">YOUR IN THE BAD LANDS</if>
Under $navbar on Forum Dispaly but it dont show in threads , how do i make it show in threads?
Thanks
--------------- Added 1201510486 at 1201510486 ---------------
Well you know... I installed the Add a Banner to any forum and selected it to show this image on threads also
https://vborg.vbsupport.ru/external/2008/01/2.jpg
its stale looking and i really just want the Outline of the Postbit To be RED in that fourm/ all threads
Thanks
Gio~Logist
01-28-2008, 06:56 AM
In the forumdisplay template
Change this
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" id="threadslist">
To this:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" id="threadslist" <if condition="$foruminfo[forumid] == 'x'">style="border 2px solid #ff0000;"</if>>
In $foruminfo[forumid] == 'x', make sure to change x to the proper forumid of the forum where you want this to be applied to.
Let me know how it works out.
DieselMinded
01-28-2008, 07:04 AM
I did that and theres no change at all ??
Not on threads or forum display
yes i changed x to 6
http://www.dieselbombers.com/forumdisplay.php?f=6
Gio~Logist
01-28-2008, 07:10 AM
Oops. Forgot to add the : Afterborder
So it's
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" id="threadslist" <if condition="$foruminfo[forumid] == 'x'">style="border: 2px solid #ff0000;"</if>>
DieselMinded
01-28-2008, 07:18 AM
Success !! now how do i make the threads Do that, and threads from that forum on the Search page to have a red outline
Also Give me your pay pal Information ;)
Gio~Logist
01-28-2008, 01:24 PM
The threads, you'd probably have to edit the postbit template itself:
Try changing
$template_hook[postbit_start]
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
To
$template_hook[postbit_start]
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" <if condition="$forum[forumid] == 'x'">style="border: 2px solid #ff0000;"</if>>
DieselMinded
01-28-2008, 02:32 PM
WORKS !!!
Now how about on the search page , just allow the table arond the threads from that forum to be red
Thanks
DieselMinded
01-29-2008, 07:11 PM
Is this possible?
DieselMinded
02-05-2008, 06:19 PM
bummer
DieselMinded
02-22-2008, 05:13 PM
I will pay Pal $20 to anyone who can get the Border around the posts on new posts thats in this forum
GameWizard
02-25-2008, 06:22 PM
I'd be willing to help, but I'm slightly confused how you'd like to accomplish this consider the "New Posts" Page has all the posts in 1 table, including the same border for all the posts. I could possibly make the cell of the specific posts from your desired forum turn red, but not the border of the cell.
DieselMinded
02-25-2008, 07:09 PM
Yes Just the Cell Around New Posts from This Particular Forum To be Red , so when someone is searching new posts its obvious Which ones are not like the other :)
GameWizard
02-26-2008, 10:53 AM
What do you mean by "Searching for"? Do you in fact mean the search.php?do=getnew link (the "New Posts" link in the navbar)? or actual search results? Please confirm this and I'll get on it.
DieselMinded
02-26-2008, 03:27 PM
Yes New Post Searches I want Posts from a certain Forum ID to have a red border insted for a normal one on the search page
--------------- Added 1204084235 at 1204084235 ---------------
You going to do it?
GameWizard
02-27-2008, 12:51 PM
Unfornately, I wasn't able to get this to work. As the problem seems to be that the conditional I am using:
<if condition="$forumid == x"></if>
It's accurate, however the search results page will not recognize this due to the fact that it does not actually display forums, but rather only posts/threads. So it ignores this conditional altogether.
There probably is a compromise to your problem though. Such as creating a unique "New Posts" link which shows posts from only specific forums, namely the one you want, while leaving anything else out.
Effectively you can setup either 2 links, one that will pull new posts from the entire board exclude the forum you want, and the second link showing only the posts from the desired forum.
Or Option B) When you enter the desired board, the new posts link will change to that which will only show the new posts in that particular board, rather than the entire forum.
DieselMinded
04-05-2009, 09:39 AM
worked again for another forum thanks !
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.