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
  #2  
Old 08-29-2002, 04:26 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshot A :: the super close thread redirect

Note: it can be configured in the template

g-force2k2
Reply With Quote
  #3  
Old 08-29-2002, 04:27 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshot B :: Admin Options Drop Down list

Of course the Moderators S Moderators don't have permission to use this action

g-force2k2
Reply With Quote
  #4  
Old 08-29-2002, 04:28 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshot C :: Threads Edit Thread Options

This option is only available to the Administrators to Moderators and S Moderators this option is not viewable

g-force2k2
Reply With Quote
  #5  
Old 08-29-2002, 04:30 AM
Goldknight's Avatar
Goldknight Goldknight is offline
 
Join Date: Aug 2002
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since I already have one so...

[high]* Goldknight install
[/high]

As I stated before.. you have been on the roll for making hacks and release hacks. As usual, always best hacker in my book.
Reply With Quote
  #6  
Old 08-29-2002, 06:30 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add any extra queries?
Reply With Quote
  #7  
Old 08-29-2002, 08:33 AM
kmfdm_kid2000's Avatar
kmfdm_kid2000 kmfdm_kid2000 is offline
 
Join Date: Mar 2002
Location: Where Towers Crumble (NYC)
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This one's REALLY Functional, especially for my community, thanks...

[high]* kmfdm_kid2000 Installs
[/high]

Takes a bit, but VERY Worth it...Now if only someone would fill in
MY REQUEST, I'd be ONE happy person
Reply With Quote
  #8  
Old 08-29-2002, 08:34 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, g-force2k2, buddy, here I am looking for my daily "fix" from you.

Here is the code I have in the showthread.php:

Code:
if ($thread[open]) {
  $closereason="";
  eval("\$replyopenclosed = \"".gettemplate("showthread_replyopen")."\";");
} else {
  $thread[closereason]=bbcodeparse2($thread[closereason],0,1,1,1);
  eval("\$closereason = \"".gettemplate("showthread_closereason")."\";");
  if (ismoderator($thread[forumid],'canopenclose')) {
    eval("\$replyopenclosed = \"".gettemplate("showthread_replyclosedmod")."\";");
  } else {
    eval("\$replyopenclosed = \"".gettemplate("showthread_replyclosed")."\";");
   }
}
And here is the code you want me to replace it with:

Code:
// +++++++ 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 ] +++++++
Ok, now, how do I incorporate your code into what I have so everything stays working? Everything else in the install file went in without a hitch.
Reply With Quote
  #9  
Old 08-29-2002, 08:50 AM
kmfdm_kid2000's Avatar
kmfdm_kid2000 kmfdm_kid2000 is offline
 
Join Date: Mar 2002
Location: Where Towers Crumble (NYC)
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sucks having to install a hack on top of another...I somehow intergrated the Strike Thru Closed topics with this one on the first try, but there was only 1 small line of PHP that needed intergration...For what it's worth, maybe this'll help someone down the road...*NOTE* This is for having this hack intergrated with Strike thru closed topics!!!

In forumdisplay.php Replace:

PHP Code:
 $thread[newoldhot]='folder';
      if (!
$thread[open]) {
        
$thread[newoldhot]='lock'.$thread[newoldhot];
      } 
with:

PHP Code:
// +++++++ Super Close Thread Hack [ g-force2k2 ] +++++++
      
$thread[newoldhot]='folder';
      if((
$thread[open] == 0) OR ($thread[open] == 2)) {
        
$thread[newoldhot]='lock'.$thread[newoldhot]; 
// Strike-Through Hack
    
$thread[title] = "<span class='locked'>$thread[title]</span>";
    
// End Strike-Through Hack
      
}
// +++++++ Super Close Thread Hack [ g-force2k2 ] +++++++ 
Both hacks work nicely together then...

Thanks again for a GREAT hack!!!

EDIT: There's More stuff that you have to do to get that Strike through Hack to work, but those things are described on the thread for that hack...This is the only instance where they kinda "Brush Against" each other...
Reply With Quote
  #10  
Old 08-29-2002, 08:55 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's how I did it.

Code:
// +++++++ Super Close Thread Hack [ g-force2k2 ] +++++++
      $thread[newoldhot]='folder';
      if(($thread[open] == 0) OR ($thread[open] == 2)) {
        $thread[newoldhot]='lock'.$thread[newoldhot];
// +++++++ Super Close Thread Hack [ g-force2k2 ] +++++++

	// Strike-Through Hack
	$thread[title] = "<span class='locked'>$thread[title]</span>";
	// End Strike-Through Hack
      }
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 01:55 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.08980 seconds
  • Memory Usage 2,308KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_code
  • (2)bbcode_php
  • (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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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