vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Reason for closing thread (https://vborg.vbsupport.ru/showthread.php?t=40190)

Xenon 10-13-2002 03:08 PM

you should be able to use $thread[closereason] in your forumdisplaybit templates...

C.Birch 10-13-2002 04:03 PM

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


ZiRu$ 10-13-2002 07:31 PM

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

Xenon 10-14-2002 04:32 PM

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...

N9ne 10-16-2002 05:34 PM

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.

N9ne 10-16-2002 07:44 PM

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...

Xenon 10-16-2002 09:46 PM

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=''.....

!!!cyr0n_k0r 10-17-2002 04:55 AM

the screen shots dont work.

N9ne 10-17-2002 03:33 PM

Xenon: I can't find anything like that in newreply.php...I can't even find open=0...

Xenon 10-17-2002 07:41 PM

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..


All times are GMT. The time now is 10:27 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
  • Page Generation 0.01673 seconds
  • Memory Usage 1,765KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete