MyBB Hacks

Full Version: ¿¿Special Announcement for closed threads??
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
well, we had a big meeting with my forum staff today
and we're going to close plenty amounts of threads (from 2009)

Sadly there is a lot of important information, and we can't deal with necroposters

Is there anyway with xthreads or php conditionals if thread closed edit a certain template (header include i though) to show a overlay announcement that follows the screen and says a message?
or a edit at start and end of the page

with the conditional i can continue with the rest i think ^^U

il really appreciate your help guys
Hi Glas,

are all these threads in the same forum (or group of forums)? Is there a situation where a thread is closed and you do not want this message to display?
Well, the announcement was meant to be global but now that i think about it

My news system is quite weird

Proportal grabs news from FID X, and all threads in FID X are closed by default, to prevent post, but they include a link like "Press here to read the complete article and comment", once you click you get to the real thread in their correspondent FID (not x)

If users reads those shorts news they will get the announcement, and it's not the idea


so uhm yeah, i think i need to disable it on ONE fid =/

Code:
<if $thread['closed'] then>
Thread is closed you fool
</if>


Probably won't work in header/headerinclude, but should work in showthread.
Add an additional and if you wish to exclude it specifically somewhere.

Note, I'm assuming you literally mean 'closed thread', as opposed to the user not having permission to post.

(06-21-2012 09:22 AM)ZiNgA BuRgA Wrote: [ -> ]

Code:
<if $thread['closed'] then>
Thread is closed you fool
</if>


Probably won't work in header/headerinclude, but should work in showthread.
Add an additional and if you wish to exclude it specifically somewhere.

Note, I'm assuming you literally mean 'closed thread', as opposed to the user not having permission to post.


well i think

Code:
<if $thread['closed'] and $fid['x']then>
Thread is closed you fool
</if>


il try this at the weekend, hopefully works

=D thanks pal

If you want it per forum basis in showthread, you can use $thread['fid']
is it possible to be "all exept one?"
or something like

<if $thread['closed'] and $fid['>!1']then>
Thread is closed you fool
</if>

PHP Code:
<if $thread['closed'] && $thread['fid'] != X then>
// lol
</if>

You guys rock!! <3!

My final code

Code:
<if $thread['closed'] && $thread['fid'] != 32 then>
<div class="ougc_annbars_red">
Estas a punto de hacer Necropost, o revivir un post muerto. <br />
Por hacer esto podrias recibir una infraccion.<br />
<br><br />
El necropost consiste en revivir temas de mas de 90 dias de antiguedad<br />
Si quieres escribir sobre un tema que ya existe, te sugerimos crear un nuevo tema
</div>
</if>

[/quote]

Reference URL's