Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Reason for closing thread Details »»
Reason for closing thread
Version: 1.00, by Xenon Xenon is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-22-2002 Last Update: 01-10-2004 Installs: 77
 
No support by the author.

We hope most of you can use it
Sinecure has had the idea, which i thought is something nearly everbody who has ever been a mod wanted to have for a long time
I have to thank sinecure for the good templates, and for finding the funny mistakes i have made *gg*

edit:
nuno, i think we can do something similar for deleted threads too

Ok, basicly this hack does exactly as it says. After you click the "Open/Close Thread" link you will be prompted to enter a reason for closing the thread. After you submit the reason for closing that thread, the reason will appear ABOVE the first post in that thread, in its own seperate box.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #152  
Old 10-13-2002, 03:08 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you should be able to use $thread[closereason] in your forumdisplaybit templates...
Reply With Quote
  #153  
Old 10-13-2002, 04:03 PM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tryed that did not work

PHP Code:
<tr align="center">
    <
td bgcolor="{firstaltcolor}"><img src="{imagesfolder}/$thread[newoldhot].gif" border="0" alt=""></td>
    <
td bgcolor="{secondaltcolor}">$thread[icon]</td>
    <
td bgcolor="{firstaltcolor}" align="left" width="70%"><normalfont>$thread[gotonew$paperclip$thread[movedprefix]$thread[typeprefix]<a href="showthread.php?s=$session[sessionhash]&threadid=$thread[threadid]">$thread[title$thread[closereason] </a></normalfont> <smallfont>$thread[pagenav]</smallfont></td>
    <
td bgcolor="{secondaltcolor}" width="30%" nowrap><normalfont>$thread[postedby]</normalfont></td>
    <
td bgcolor="{firstaltcolor}"><normalfont><a href="javascript:who($thread[threadid])">$thread[replycount]</a></normalfont></td>
    <
td bgcolor="{secondaltcolor}"><normalfont>$thread[views]</normalfont></td>
    
$threadrating
    
<td bgcolor="$backcolor">
        <
table cellpadding="0" cellspacing="0" border="0" width="100%" id="ltlink"><tr align="right">
            <
td nowrap><smallfont>$thread[lastreplydate] <font color="{timecolor}">$thread[lastreplytime]</font><br>
            
by <a href="member.php?action=getinfo&find=lastposter&threadid=$thread[threadid]"><b>$thread[lastposter]</b></a></smallfont></td>
            <
td nowrap>&nbsp;<a href="showthread.php?s=$session[sessionhash]&goto=lastpost&threadid=$thread[threadid]"><img src="{imagesfolder}/lastpost.gif" border="0" alt="Go to last post"></a></td>
        </
tr></table>
    </
td>
</
tr
Reply With Quote
  #154  
Old 10-13-2002, 07:31 PM
ZiRu$'s Avatar
ZiRu$ ZiRu$ is offline
 
Join Date: Jan 2002
Location: Manitoba, Canada
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Xenon
it should be that it still have the old message until you delte it and write another one..

the username isn't included in the official release, if you use the modifications i told in the thread, they should work, but it's not 100% because i didn't test em
i know man....but i did test it.....i used your newest release and the showing name add-on
Reply With Quote
  #155  
Old 10-14-2002, 04:32 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry c.birch my fault, you have to edit forumdisplay.php
find this
PHP Code:
$threads=$DB_site->query("
SELECT 
$dotuserid $votequery ".iif($foruminfo[allowicons],'icon.title as icontitle,icon.iconpath,','')."
    thread.threadid,thread.title,lastpost, forumid,pollid,open,replycount,postusername,postuserid,
    lastposter,thread.dateline,views,thread.iconid,notes,thread.visible,sticky,votetotal,attach
    FROM thread
    "
.iif($foruminfo[allowicons],'LEFT JOIN icon ON (icon.iconid = thread.iconid)','')."
    
$dotjoin
    WHERE 
$threadids 
or similar and after votetotal,attach
add
,closereason

ziru$: well i can't give full support on add-on i posted i the thread because some wanted as long as i don't test them myself how the work...
i've planned to update the hack but i don't have much time these days...
Reply With Quote
  #156  
Old 10-16-2002, 05:34 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Zirus: I have this installed on 2.2.8, the instructions that Xenon posted a page back or so, they work fine. I closed a thread. It showed the reason and who did it. I opened it. I closed it, deleted the full reason already there, put in something else and it still showed who closed it.
Reply With Quote
  #157  
Old 10-16-2002, 07:44 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've found a problem, when I close a thread, give a reason, then open it and then I go to newreply.php [I have a hack so that there's a checkbox to close thread upon newreply and newthread], when I close the thread in that way, the thread is closed but the reason comes up again! [it shouldn't, as I haven't given a reason!] and it uses the same username as the person who gave that reason when it was closed first...
Reply With Quote
  #158  
Old 10-16-2002, 09:46 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tha Rock, that's a problem with your quickclose hack.

i don't know it exactly, but somewhere in newreply you'll find something similar like this:
Code:
$DB_site->query("UPDATE thread SET open=0.....
you have to change it to:
Code:
$DB_site->query("UPDATE thread SET open=0,closereason=''.....
Reply With Quote
  #159  
Old 10-17-2002, 04:55 AM
!!!cyr0n_k0r !!!cyr0n_k0r is offline
 
Join Date: Apr 2002
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the screen shots dont work.
Reply With Quote
  #160  
Old 10-17-2002, 03:33 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Xenon: I can't find anything like that in newreply.php...I can't even find open=0...
Reply With Quote
  #161  
Old 10-17-2002, 07:41 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well i don't know the hack, so i can't help you out then, you should ask in the supportthread of that hack...

normally such a line has to be in it, because that would be the query to close a thread..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:11 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.08974 seconds
  • Memory Usage 2,334KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete