vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - topicKill - antibump of topic (https://vborg.vbsupport.ru/showthread.php?t=150341)

coffee 11-26-2007 11:50 PM

Installed here.

What to change to use thread[dateline] instead of thread[lastpost] ?

Gigavol 12-31-2007 08:00 AM

Great mod. I found that this version of it caused an error in my quick replies and posts, though. Specifically the hook variable in class_dm_threadpost begins with an extra }. I guess it is a conflict with some other things I have installed: passiveVid, MiserableUser, IPInfo, Members Who Have Visited, and randomImages (passiveVid being the most recent).

After posting, here is the error displayed briefly by vB:
Parse error: syntax error, unexpected '}' in /home/abc/public_html/forums/includes/class_dm_threadpost.php(829) : eval()'d code on line 1
The line dealt with $hoof, so I printed it out right before the error and this is what was printed:
}if ($this->info['thread']['killed'] == TRUE) { $this->post_save_each_post($doquery); $thread->set('lastpost', $this->info['thread']['lastpost']); $thread->save();

I hope this is of some value.

Cheers!

YLP1 01-27-2008 01:15 AM

AWESOME mod!!!

dknelson 05-04-2008 11:12 AM

Has anybody tried this on 3.7? I'm getting ready to upgrade and am trying to figure out which of my installed mods will work.

KEKforce 08-01-2008 06:11 PM

Works perfectly with 3.7.x (3.7.2)

MDK-Indy 08-01-2008 07:37 PM

Quote:

Originally Posted by KEKforce (Post 1589372)
Works perfectly with 3.7.x (3.7.2)

No, work not perfektly...

It Works, but with many errors...

inciarco 09-06-2008 01:26 AM

Coders Shack, is it possible for you to provide us the Changes on Plugins "topicKill - Show Killed Icon" and "topicKill - Template Edits" that can Work on vB 3.7.3? :confused:

I've seen that the Mod Works but Don't Display the Icon and also Don't Display the Changes threadbit "Las Post by", both of this Changes made by the 2 Mentioned Plugins. (The Topic Gets Killed, doesn't Update the Date of the Thread, but those 2 Small Details that Show the Thread as Killed don't Display). (In my Tests the rest of the Features work Well on vB 3.7.3).

I'd appreciate that a Lot, I like a lot this Mod and would like to Continue Using it on vB 3.7.3.

My Best Regards.

:)

DJA 09-07-2008 03:59 PM

I love this product. Thanks.

Is there a way to make it 'stealth'? It would be great if I could kill a thread, but no indication would appear; no one would know. The post would just silently slip down the queue.

So, I'd need to change the code so that there would be no 'kill' icon and no 'last post'. It would appear to look like any other thread.

Is that possible?

inciarco 09-23-2008 03:36 PM

I can see on vB 3.7.3 that somehow the Field "Kill" is created on the "thread" table, and that the Mod allows the User to Stablish the Status Killed (1) or Revived (0) for that Field for each Thread.

But somehow in the Plugin "topicKill - Show Killed Icon" that corresponds to a "threadbit_process", the Code

Code:

// show killed folder?
                if (($thread['killed']) && ($vbulletin->options['topicKill_enabled']))                {
                        $thread['statusicon'] = '_killed';
                }

don't detects the field $thread['killed'], not even by using it directly on the threadbit Template; what is wrong in that sentence that vB 3.7.3 don't read the Field "Killed" of the Table "thread" for the respective Thread? :confused:

I think the logic of the Sentence is right but it beats me why vB373 don't read the value of the field "killed" from the table "thread".

Perhaps this same thing is happening on the Plugin "topicKill - Template Edits" on the Code lines,

Code:

        $vbulletin->templatecache['threadbit'] = preg_replace('#\$thread\[lastpostdate\] \"\.\(\(\!\$show\[\'detailedtime\'\]\) \? \(\"<span class=\\\"time\\\">\$thread\[lastposttime\]</span>\"\) : \(\"\"\)\)\.\"<br />#i', '".(($thread[killed] == FALSE) ? ("$thread[lastpostdate] " . ((!$show[\'detailedtime\']) ? ("<span class=\"time\">$thread[lastposttime]</span>") : ("")) . "<br />") : ("last post<br />"))."', $vbulletin->templatecache['threadbit']);
}

somehow seems like the Code isn't detecting the Condition "$thread[killed] == FALSE" and always assigns it a False Value (0) or perhaps Nothing, so it always displays the default Code without the Changes when Killed = 1 (TRUE). :confused:

I hope Coders Shack or other Forumer with Experience can give us the Solution. :o

:)

ravenscape 03-06-2009 09:45 PM

I'm interested in a hack/plug-in with this functionality. Does this actually work with 3.7.x? Is there another hack/plug-in with this functionality that works with 3.7?

inciarco 03-08-2009 03:08 PM

Quote:

Originally Posted by ravenscape (Post 1762076)
I'm interested in a hack/plug-in with this functionality. Does this actually work with 3.7.x? Is there another hack/plug-in with this functionality that works with 3.7?

The Mod on vB373, but has the Bug that don't Change on the Thread's List of ForumDisplay (Threadbit Template) the Icon of the Thread Changed for the Killed Icon of the Mod (https://vborg.vbsupport.ru/external/2011/07/109.jpg).

I've tried by myself to do that Change in various ways (my knowledge is limited) and Haven't been able to do it.

Coders Shack, could you please point us into a Solution to be able to see the Killed Thread's Icon on the Threadbits? :confused:

Everything Else Works Fine, that's the Only Detail, and is Important to see which Thread's are Killed and Revive them if wanted to, otherwise it'd be very Hard to Remember and Locate those Killed Threads. We Appreciate Your Help Coders Shack. ;)

My Best Regards.

:)

fishmaster 05-20-2011 07:01 PM

Any other similar mods to this one out there?

Mont 06-15-2011 11:39 AM

I installed it and it works great for my classifieds ad section to keep users from bumping posts only to get them up top. Thanks for a great mod!

inciarco 07-03-2011 04:11 PM

Quote:

Originally Posted by inciarco (Post 1763229)
The Mod on vB373, but has the Bug that don't Change on the Thread's List of ForumDisplay (Threadbit Template) the Icon of the Thread Changed for the Killed Icon of the Mod (https://vborg.vbsupport.ru/attachmen...1&d=1182482222).

I've tried by myself to do that Change in various ways (my knowledge is limited) and Haven't been able to do it.

Coders Shack, could you please point us into a Solution to be able to see the Killed Thread's Icon on the Threadbits? :confused:

Everything Else Works Fine, that's the Only Detail, and is Important to see which Thread's are Killed and Revive them if wanted to, otherwise it'd be very Hard to Remember and Locate those Killed Threads. We Appreciate Your Help Coders Shack. ;)

My Best Regards.

:)

For the Icon to Display on threadbit at vB38x, is necessary to Change the Following Plugin "topicKill - Show Killed Icon" to:

Code:

// show killed folder?

$var_killed = $vbulletin->db->query_read("
            SELECT killed
            FROM " . TABLE_PREFIX . "thread
            WHERE threadid = " . intval($thread['threadid']) . "
        ");
$var_killed = $vbulletin->db->fetch_array($var_killed);
$var_killed = $var_killed['killed'];

                if ($var_killed == 1 AND $vbulletin->options['topicKill_enabled'])                {
                        $thread['statusicon'] = '_killed';
                }

For some reason the threadbit_process don't Detect the $thread['killed'] so is necessary to Search those Values with the $vbulletin->db->query_read and the $vbulletin->db->fetch_array and the $var_killed['killed'].

Perhaps You Know what to do for the the $thread['killed'] be Used at the threadbit_process Hook Location.

My Best Regards.

:)


All times are GMT. The time now is 12:59 PM.

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.01263 seconds
  • Memory Usage 1,758KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)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