vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   how to display a "closed" message at the end of title? (https://vborg.vbsupport.ru/showthread.php?t=267954)

radiofranky 08-04-2011 05:16 PM

how to display a "closed" message at the end of title?
 
hi,
I was wondering if there is mod that add "closed" to the thread title when is closed?

thanks

Badshah93 08-04-2011 06:03 PM

Open threadbit template

Find

Code:

{vb:raw thread.prefix_rich}
                                                </span>
                                        </vb:if>

Add After it

Code:

<vb:if condition="$thread[open] == 0"><b>Closed </b></vb:if>

radiofranky 08-05-2011 04:38 AM

thanks. How do I do if I want to change the font color of the title once the thread is closed?

again, thanks

Spyike 08-05-2011 04:42 AM

Are you looking to change the entire markup of the thread or only the "Closed" text?

HMBeaty 08-05-2011 04:47 AM

Use this:
HTML Code:

<vb:if condition="!$thread[open]"><div style="color:#AD0002;font-weight: bold">Closed </div></vb:if>

Badshah93 08-05-2011 04:47 AM

Quote:

Originally Posted by radiofranky (Post 2229526)
thanks. How do I do if I want to change the font color of the title once the thread is closed?


again, thanks

ahh, its so simple, you should use your mind and try to get answer your self as i given u idea in prev post, else you won't learn it.

anyway


Open Threadbit Template

Find:

Code:

{vb:raw thread.threadtitle}

Replace it with

Code:

<vb:if condition="$thread[open] != 0">{vb:raw thread.threadtitle}<vb:else />
<font color="red">{vb:raw thread.threadtitle}</font></vb:if>


radiofranky 08-05-2011 07:56 PM

Quote:

Originally Posted by Spyike (Post 2229529)
Are you looking to change the entire markup of the thread or only the "Closed" text?

I'm looking for the entire markup. Thanks

--------------- Added [DATE]1312577824[/DATE] at [TIME]1312577824[/TIME] ---------------

Thanks. :)

Quote:

Originally Posted by Sherif (Post 2229534)
ahh, its so simple, you should use your mind and try to get answer your self as i given u idea in prev post, else you won't learn it.

anyway


Open Threadbit Template

Find:

Code:

{vb:raw thread.threadtitle}

Replace it with

Code:

<vb:if condition="$thread[open] != 0">{vb:raw thread.threadtitle}<vb:else />
<font color="red">{vb:raw thread.threadtitle}</font></vb:if>




All times are GMT. The time now is 10:15 PM.

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.00958 seconds
  • Memory Usage 1,731KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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