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)
-   -   Super Close Threads v1.0 (https://vborg.vbsupport.ru/showthread.php?t=42885)

g-force2k2 08-29-2002 08:07 PM

if you're the only admin that whats to worry about? a simple mod like that? nah its not worth it... if you want it restricted to yourself i will place the code in this post... otherwise something like that isn't worth the effort ;) regards...

g-force2k2

Keyser S?ze 08-29-2002 08:29 PM

at my forum theres 5 admins, tho only 3 are active

and no theres not much to worry about, but just a added security, thats why i said be able to turn that on or off

Boofo 08-29-2002 10:37 PM

Yes, but there is also the closed reason hack (from, you guessed it, Xenon :)) in there. If I enter the first line of code from your hack in my code, there, it works fine, but it shows an empty closed reason at the top for the thread. Any way to have it open up the closed reason to add the reason for closing it also?

Quote:

Originally posted by g-force2k2
Boofo before i attempt any mod for your code... do the templates that are called simply the button coding? regards...

g-force2k2


g-force2k2 08-29-2002 11:55 PM

could you link me to his hack? i didn't see it in his profile x_X and i will build an addon for you Boofo :) regards...

g-force2k2

Boofo 08-30-2002 12:15 AM

Here you go, my friend. :) Thank you. ;)

https://vborg.vbsupport.ru/showthrea...907#post264907

g-force2k2 08-30-2002 12:25 AM

Okay Boofo i just made a slight alteration ;) try this code...

PHP Code:

if ($thread[open] == 1) {
  
$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")."\";");
   }


regards... btw i should have remember he and Sinecure did that one together :P

g-force2k2

Boofo 08-30-2002 12:35 AM

This is the only line you changed from that code, right?

Code:

if ($thread[open] == 1) {
It works, but now I get a blank Closed Thread Reason at the top of the page. :)

Boofo 08-30-2002 12:42 AM

By the way, my regular Open/Close Thread (above the Super Open/Close thread) in the Admin options no longer works. I get a session error. :)

g-force2k2 08-30-2002 01:05 AM

well that could be just your sessions... not the coding but i could be wrong :p i didn't get any sessions... and i don't know why you get a blank reason :p but i'll keep on the look out ;) regards...

g-force2k2

Boofo 08-30-2002 01:08 AM

What about the regular Open/Close Thread in the admin options? Please let me know something as soon as you find out. I really like this hack and don't want to uninstall it if I don't have to. You seem to make pretty good hacks there. :)


All times are GMT. The time now is 12:16 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.01237 seconds
  • Memory Usage 1,740KB
  • 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)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)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