¿¿Special Announcement for closed threads??
Glas Offline
Member
***
Posts: 106
Joined: Jul 2010
Post: #1
¿¿Special Announcement for closed threads??
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
06-20-2012 11:51 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #2
RE: ¿¿Special Announcement for closed threads??
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?


[Image: leelink.gif]
MYBB1.6 & XThreads
06-20-2012 09:26 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Glas Offline
Member
***
Posts: 106
Joined: Jul 2010
Post: #3
RE: ¿¿Special Announcement for closed threads??
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 =/
06-21-2012 01:11 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: ¿¿Special Announcement for closed threads??

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.


My Blog
06-21-2012 09:22 AM
Find all posts by this user Quote this message in a reply
Glas Offline
Member
***
Posts: 106
Joined: Jul 2010
Post: #5
RE: ¿¿Special Announcement for closed threads??
(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

06-23-2012 01:22 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #6
RE: ¿¿Special Announcement for closed threads??
If you want it per forum basis in showthread, you can use $thread['fid']

06-23-2012 05:29 AM
Find all posts by this user Quote this message in a reply
Glas Offline
Member
***
Posts: 106
Joined: Jul 2010
Post: #7
RE: ¿¿Special Announcement for closed threads??
is it possible to be "all exept one?"
or something like

<if $thread['closed'] and $fid['>!1']then>
Thread is closed you fool
</if>
(This post was last modified: 06-27-2012 02:00 PM by Glas.)
06-27-2012 01:59 PM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #8
RE: ¿¿Special Announcement for closed threads??

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


Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
06-27-2012 02:03 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Glas Offline
Member
***
Posts: 106
Joined: Jul 2010
Post: #9
RE: ¿¿Special Announcement for closed threads??
You guys rock!! <3!

My final code

Code:
1
2
3
4
5
6
7
8
9
<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]

(This post was last modified: 06-28-2012 02:36 AM by Glas.)
06-28-2012 02:31 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: