vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Strike thread thread title on Closed NonSticky Thread (https://vborg.vbsupport.ru/showthread.php?t=98938)

Cyricx 10-20-2005 10:00 PM

Strike thread thread title on Closed NonSticky Thread
 
This was requested by J82980BA3E43 in this thread

https://vborg.vbsupport.ru/showthread.php?t=98927

What this does is it will add a line through the thread title of a closed thread that is not a sticky.

1 Template edit and your done :)


EDIT template -- threadbit

FIND:
Code:

<if condition="$show['gotonewpost']">
        <strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong>
<else />
        <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a>
</if>

REPLACE IT WITH:
Code:

<!-- ##### START HACK - Strike through close threads ##### -->
<if condition="($thread[open] == 0) AND ($thread[sticky] == 0)">
<if condition="$show['gotonewpost']">
<strong><strike><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strike></strong>
<else />
<strike><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strike>
</if>
<else />
<if condition="$show['gotonewpost']">
        <strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong>
<else />
        <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a>
</if>
</if>
<!-- ##### END HACK - Strike through close threads ##### -->

Done :)

If you use the ajax moderation to close a thread you won't see the effects until you refresh the page.

Though anyone just loading the page of course will see the strike.

Cyricx 10-21-2005 12:32 PM

It's too fricken early... will a mod please move this to the forumdisplay modifications forum :P

The Realist 10-21-2005 12:49 PM

Thanks, ticks install.

Tony G 10-21-2005 12:53 PM

Moving now. :)

J82980BA3E43 10-21-2005 01:01 PM

thanks for your fast answer, ticks install. :nervous:

Chris M 10-21-2005 03:42 PM

The [high]<strike>[/high] tag is not XHTML valid... Use:

HTML Code:

<span style="text-decoration: line-through;">...</span>
:)

Other than that, nice :)

If you want a plugin version, use the one attached :)

Chris

trancetopia 10-21-2005 05:57 PM

Quote:

Originally Posted by Chris M
The [high]<strike>[/high] tag is not XHTML valid... Use:

HTML Code:

<span style="text-decoration: line-through;">...</span>
:)

Other than that, nice :)

If you want a plugin version, use the one attached :)

Chris

Awesome, thanks Chris.

Kihon Kata 10-21-2005 06:28 PM

Quote:

Originally Posted by Chris M
The [high]<strike>[/high] tag is not XHTML valid... Use:

HTML Code:

<span style="text-decoration: line-through;">...</span>
:)

Other than that, nice :)

If you want a plugin version, use the one attached :)

Chris

Chris, where do I add that XML? What I mean is that I know where to add the XML to in HOOK location?

Cyricx 10-21-2005 08:48 PM

Instead of doing the template edit you would go to your Admincp -> Plugin System -> Download / Upload Plugins -> Scroll to the very bottom of the screen and click Browse. Locate the file and then click Import.

Thanks Chris!!! If you want, release yours as a plugin and I'll have a moderator delete this thread :)

Kihon Kata 10-21-2005 08:54 PM

Quote:

Originally Posted by Cyricx
Instead of doing the template edit you would go to your Admincp -> Plugin System -> Download / Upload Plugins -> Scroll to the very bottom of the screen and click Browse. Locate the file and then click Import.

Thanks Chris!!! If you want, release yours as a plugin and I'll have a moderator delete this thread :)

omg, how dumb am I?


All times are GMT. The time now is 01:04 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.01158 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_html_printable
  • (3)bbcode_quote_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