vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Diffrent Table Color For a Certian Forum (https://vborg.vbsupport.ru/showthread.php?t=168926)

DieselMinded 01-28-2008 05:07 AM

Diffrent Table Color For a Certian Forum
 
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?

Code:

<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 [DATE]1201510362[/DATE] at [TIME]1201510362[/TIME] ---------------

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 [DATE]1201510486[/DATE] at [TIME]1201510486[/TIME] ---------------

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
Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" id="threadslist">
To this:
Code:

<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
Code:

:
After
Code:

border
So it's
Code:

<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
Code:

$template_hook[postbit_start]
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

To
Code:

$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?


All times are GMT. The time now is 02:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01060 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete