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
Super Close Threads v1.0 Details »»
Super Close Threads v1.0
Version: 1.00, by g-force2k2 g-force2k2 is offline
Developer Last Online: May 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-28-2002 Last Update: Never Installs: 38
 
No support by the author.

As requested by Ice Melee...

a big thanks to GoldKnight for helping me beta test this one and get things squared away

What does this hack do?

Well if your and Administrator and at times you don't want anyone editing or replying to a closed thread (including Moderators and S Moderators) this hack will prevent then from doing so...

Super Close and Super Open thread are special admin features that i have included in the admin optioins... once a super close is implemented it will decline moderators and smoderators from replying editing and even accessing the edit thread options...

It is a new type of close that can only be induced by an Administrator in the admin thread options... a Super Close will overide both a close and an open thread at anytime...

Well i hope that some use can be made of this hack

To Dos?
File Modifiactions (10)
Template Modifiactions (2)
Template Additions (1)

If you like this hack i'd be greatful if you clicked install regards... Enjoy...

g-force2k2

Show Your Support

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

Comments
  #42  
Old 09-29-2002, 01:48 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Question: Does this add queries? If so, how many and on what pages?
Reply With Quote
  #43  
Old 09-29-2002, 02:47 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Tha Rock
Question: Does this add queries? If so, how many and on what pages?
It doesn't add any queries to my knowledge regards...

g-force2k2
Reply With Quote
  #44  
Old 09-29-2002, 03:07 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good, I shall install it then

On a side note: g-force: how's those requests coming along [the hacks i requested a while ago]
Reply With Quote
  #45  
Old 10-23-2002, 07:52 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a problem, PHP people, help me please!

if ($thread[open]) {
$replyclose="https://vborg.vbsupport.ru/images/reply.gif";
$thread[closereason]="";
} else {
$replyclose="https://vborg.vbsupport.ru/images/threadclosed.gif";
if (trim($thread[closereason])) {
$thread[closereason]=bbcodeparse2($thread[closereason],0,1,1,1);
eval("\$thread[closereason] = \"".gettemplate("showthread_closereason")."\";" );
} else {
$thread[closereason] = "";
}
}

That is what I have in my showthread.php file...

I have to replace it with:

// +++++++ Super Close Thread Hack [ g-force2k2 ] +++++++
if(($thread[open] == 0) OR ($thread[open] == 2)) {
$replyclose='https://vborg.vbsupport.ru/images/threadclosed.gif';
} else {
$replyclose='https://vborg.vbsupport.ru/images/reply.gif';
}
// +++++++ Super Close Thread Hack [ g-force2k2 ] +++++++


I'm sure there's an easy fix for this but I don't know what it is
Reply With Quote
  #46  
Old 10-23-2002, 08:13 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Attached is a PHP file of my instructions so hopefull it doesn't parse the image code.
Reply With Quote
  #47  
Old 10-24-2002, 04:12 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump, please help!
Reply With Quote
  #48  
Old 10-24-2002, 05:13 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I managed to fix it for myself! Ok it took me a bit of thinking though [I had no idea where to start!], but in the end I just used some intelligence and tried a few tricks and looked at the PHP, tried to understand it and got a grip of it and fixed it for myself! At first I had a problem that it wasn't calling the template for closereason but I also fixed that, but then I had a problem with it showing the reply image instead of close image but I fixed that too!

Thanks for a great hack, now i can superclose threads
Reply With Quote
  #49  
Old 02-03-2003, 03:30 AM
mehungie2 mehungie2 is offline
 
Join Date: Dec 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do i integrate this hack with close reason hack. im having problems with the showthread.php modifications. please help
Reply With Quote
  #50  
Old 02-09-2003, 12:09 AM
mehungie2 mehungie2 is offline
 
Join Date: Dec 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i hate to double post but can someone help me with this?
Reply With Quote
  #51  
Old 03-23-2003, 04:32 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's a nice hack but it would be nice if moderators couldn't alter these threads at all. Currently they can move/delete them still.

I fixed that on my board by adding the code to more sections of postings.php.

eg, at the top of a section under (for example)
PHP Code:
// ############################### start stick / unstick thread ############################### 
you get an 'if' action thing. In this case
PHP Code:
 if ($HTTP_POST_VARS['action'] == 'stick' OR ($action == 'stick' AND $s == $session['dbsessionhash'])) { 
. Under this you get
PHP Code:
$threadid=verifyid("thread",$threadid);
  
$threadinfo=getthreadinfo($threadid);

  if (!
$threadinfo[visible]) {
    
$idname="thread";
    eval(
"standarderror(\"".gettemplate("error_invalidid")."\");"); 
. Just put
PHP Code:
// +++++++ Super Close Thread Hack [ g-force2k2 ] +++++++
  
if(($threadinfo[open] == 2) AND ($bbuserinfo[usergroupid] != 6)) {
    
show_nopermission();
  }
// +++++++ Super Close Thread Hack [ g-force2k2 ] +++++++ 
underneath any function you don't want moderators to have power for, such as deleting/moving a superclosed thread.

Also, in postings.php, it would be better if 'the thread has been successfully superopen/superclose'' read 'super-opened/super-closed or something. Just change
PHP Code:

    $action 
"superclose";
  } elseif(
$threadinfo[open] == 2) {
    
$threadinfo[open] = 1;
    
$action "superopen"
to
PHP Code:
    $action "super-closed";
  } elseif(
$threadinfo[open] == 2) {
    
$threadinfo[open] = 1;
    
$action "super-opened"
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 08:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10693 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
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
  • (6)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
  • (3)pagenav_pagelink
  • (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_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