Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 12 Years ago Showing a thread is closed.
#1
Solved: 12 Years ago
www.smiteforums.com

As you can see, I have done a fairly large amount of modifications to the thread display and post bit. Basically, I am wanting to display a red notice at the top of the thread, similar to the notices I have on the index, just informing the user when a thread is closed.

Is this something that can be done with core edits or would I be better off using some sort of a plugin?
#2
Solved: 12 Years ago
If you are using Template Conditionals:
<if $thread['closed'] then>Thread closed, blabla.</if>

In your forumdisplay_thread* templates. Otherwise, maybe you can use some CSS trick.
class="threadclass_{$folder}"

Then in your global.css:
*[class*="threadclass_*lock*"] {
	// dadada
}

You should probably wait for the CSS experts on the last though.
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
#3
Solved: 12 Years ago
In template:

<span class="thread_closed_{$thread['closed']}">What to display if the thread is closed</span>

In global.css:

.thread_closed_0 {
display:none;
}
.thread_closed_1 {
/* Styling */
color:pink;
background:yellow;
font-weight:strong;
padding:300px;
}
Please don't PM me for support. Smile
#4
Solved: 12 Years ago
Yep, there is a simple way to do it.
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
#5
Solved: 12 Years ago
I just want to say, I love the simplicity of your site. I never realized how much removing most of the postbit makes everything a lot less cluttered. Smile
[Image: type-460x42_cborder-000000_ctop-3B3B3B_c...FFCC00.png]
eVolution Gaming
- Proudly Powered by MyBB
#6
Solved: 12 Years ago
It looks really nice in Red too Toungue
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


#7
Solved: 12 Years ago
(2013-01-22, 04:33 AM)Omar G. Wrote: Yep, there is a simple way to do it.

And that would be? No luck with Seabody's response, it just seems to show it on all threads.
#8
Solved: 12 Years ago
Perhaps, then (took a peek at your source code and it wasn't displaying how I expected):

<span class="thread_closed{$thread['closed']}">What to display if the thread is closed</span>

.thread_closed {
display:none;
}
.thread_closed1 {
/* Styling */
color:pink;
background:yellow;
font-weight:strong;
padding:300px;
}
Please don't PM me for support. Smile
#9
Solved: 12 Years ago
Worked perfectly, thanks for the help Seabody.
#10
Solved: 12 Years ago
What template do you put the following in?
<span class="thread_closed{$thread['closed']}">What to display if the thread is closed</span> 
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)