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?

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

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:

Code:

<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 !


All times are GMT. The time now is 08:27 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.01079 seconds
  • Memory Usage 1,753KB
  • 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
  • (9)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete