vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Reason for Closing Thread (https://vborg.vbsupport.ru/showthread.php?t=69625)

WhSox21 09-18-2004 10:00 PM

Reason for Closing Thread
 
This hack is my first released free hack.

It runs no extra queries so it should not make any load times longer.

How it works:
Once you click on Close thread in the Thread Tools menu, it will pop up with a javascript alert asking for the reason you are closing. You may click cancel or ok. If you inputted something into the box it will save it and appear at the top right above the first post.

Modifications:
1 Table Modification
3 File Modifications
5 Template Modifications
1 Template Addition

Please click install if you install this hack.

www.hackvb.com - For your custom hacks!

*Note: This was only tested on vb 3.0.3. I have not tested it on any other versions and theoretically it should work, but I'm not sure.

Boofo 09-19-2004 02:55 PM

Interesting hack. ;) You need to fix the instructions file for the following, though.

FIND:
-------------------
<!-- / toolbar -->
-------------------
BELOW IT ADD:
-------------------
$reaons
-------------------

Shouldn't that be $reason?

* Boofo clicks the install button. ;)

WhSox21 09-19-2004 03:04 PM

Should be fixed now... Let me know if you have any troubles. I'd like to know if everything goes smoothly.

alqafelah 09-19-2004 03:13 PM

thanks WhSox21
Great work :)
i'm clicked install it but i have error whene i save modification of SHOWTHREAD template :


The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in ***/***/includes/adminfunctions_template.php(3055) : eval()'d code on line 131

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

WhSox21 09-19-2004 03:15 PM

I forgot the biggest part of the hack. I reuploaded the instructions!

Working on that for you. I have no idea why it gave you that error. It didn't give me that error.

WhSox21 09-19-2004 03:18 PM

I see the problem. Where it says:
Code:

<if condition="$show['closethread']">
<script type="text/javascript">
<!--
function get_reason()
{
        if (document.getElementById('ao_oct').checked == true)
        {
                var answer = prompt('What is your reason for closing this thread?', '');
                document.threadadminform.reason.value = answer;
        }
}
// -->
</script>
<if condition="$show['closethread']">

It has <if condition="$show['closethread']"> at the bottom that should be </if>

I fixed that now. I also updated the install file.

alqafelah 09-19-2004 03:28 PM

work fine .. thanks alot :)

Vivi Ornitier 09-19-2004 04:15 PM

does it work for quick reply closin?

WhSox21 09-19-2004 04:33 PM

What do you mean exactly? As of now it only works when you use the thread tools menu.

alqafelah 09-19-2004 04:38 PM

back :)

Whene i not write reason it show :

Reason thread was closed:
null

can you cancel show all table of reason if not reason? OR can i put default reason ?


All times are GMT. The time now is 12:04 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.01004 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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