![]() |
Changing Closed Thread Button
We recently switched from vb3 to vb4 and learned that buttons are no longer images. We understand that buttons are now controlled by control_content_background stylevar. But that applies to all content buttons such Reply to Thread, Post New Thread, Closed Thread, etc.
We'd like to change the background and hover background of Closed Thread button only, how do we do that? |
Which close thread button are you referring to, there are a couple of them?
|
Closed Thread button in showthread
where are the other locations? |
Sorry, my fault. I see what you are asking. I read "close" thread. BRB.
--------------- Added 06 Nov 2013 at 02:52 --------------- Edit the "SHOWTHREAD" template Templates might vary from version to version, so double check. (Top Buttons) Search HTML Code:
<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&noquote=1"class="newcontent_textcontrol" id="newreplylink_top"><vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a> Replace HTML Code:
<vb:comment> Search HTML Code:
<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&noquote=1"class="newcontent_textcontrol" id="newreplylink_top"><vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a> Replace HTML Code:
<vb:comment> Modify the CSS accordingly and add this to your "additionalcss" template. Code:
.closed_thread_button { |
thanks tbworld, we'll give it a try :)
|
With this method you could change the CSS background property and load a seperate image instead of a CSS generated button. I put it together quickly and verbosely so you can see the modifications. The are other (more elegant) ways to handle this, but I wanted to keep it simple.
|
All times are GMT. The time now is 01:12 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|