vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Moderators Functions - One-touch Spam Ban and Cleanup (https://vborg.vbsupport.ru/showthread.php?t=156444)

Alibass 08-30-2007 07:48 AM

Quote:

Originally Posted by mfyvie (Post 1328654)
Hmm, strange. I don't know enough about the template hook system to comment, but I would have thought that just adding the hook would be enough, but maybe there's more to it than that. Well at least you've resolved the problem manually in any case.

So sorry mfyvie, yes adding the hook worked as you said and I wrote the wrong thing in previous post as I was modifying postbit to show One-touch Ban & Clean at the bottom of each post and PM. Thats the way I wanted it on my site.

j_86 08-30-2007 08:55 AM

Any chance of having a move threads feature rather than deleting them? We have a 'Litter Tray' forum to move threads to instead of deleting.

mfyvie 08-30-2007 10:35 AM

Quote:

Originally Posted by JimpsEd (Post 1328730)
Any chance of having a move threads feature rather than deleting them? We have a 'Litter Tray' forum to move threads to instead of deleting.

My feeling on this is that it makes little sense to move spam to such an area. I have a trash / dupes forum as well, but that's where I put stupid questions from my users. The aim of a spammer is to get his message through, and since this is a spam tool the best thing to do is delete it, rather than move it somewhere else. I'm happy to be convinced otherwise, but I still can't see the logic in this...

Apophis 08-30-2007 11:34 AM

Quote:

Originally Posted by mfyvie (Post 1328654)
This is most strange. The relevant code can be found in the plugin called "Insert into templates" at postbit_display_start:

Code:

eval('$template_hook[postbit_user_popup] .= " ' . fetch_template('postbit_onetouchban') . '";');
The php concatenation operator ".=" is used there. This means, append the contents, rather than replace them. This seems to work correctly on other systems, but I've no idea why it isn't working on yours. Basically what is happening is that something else should resetting that hook on each iteration, but that isn't happening, so this hook keeps growing and growing as you proceed down the page. Are you running an older version of vbulletin (bug maybe?) or perhaps another hack is causing this behaviour?

You can work around it by changing the ".=" to just "=" but this will kill any other mods that might be using this template hook (though you probably don't have any).

I'm running 3.6.7 PL1 right now. I just haven't gotten around to upgrading to 3.6.8. Maybe I'll do that today and see if the problem still exists.

The only other plugins I have that are using postbit_display_start are v3 Arcade and Yet Another Award System 3.6.

I'll do that upgrade and then report back if the problem still exists.

mfyvie 08-30-2007 11:38 AM

Apophis - I also run 3.6.7 PL1, so unlikely an issue there. Try disabling those products just for a few minutes (and any others that use other hooks in postbit, not just display_start) and see if that resolves it. From there it should be easy to pinpoint.

Apophis 08-30-2007 11:58 AM

Quote:

Originally Posted by mfyvie (Post 1328839)
Apophis - I also run 3.6.7 PL1, so unlikely an issue there. Try disabling those products just for a few minutes (and any others that use other hooks in postbit, not just display_start) and see if that resolves it. From there it should be easy to pinpoint.


Disabling YAAS didn't help nor did disabling v3 Arcade.

Moving on to products that hook into other areas of postbit:

AnyMedia BBCode 3.0.3: No Change
vBSEO: No Change
nCode Image Resizer: No Change
vBGoogleMap Member Edition: No Change

That's all I could find for products/plugins that tie into any postbit_ hook.

mfyvie 08-30-2007 12:06 PM

Ok, in that case I'm out of ideas :-) When I get a chance I'll have to take a look at alternative ways of implementing that, in the meantime you could try my suggestion of changing ".=" to "=" to fix it. Let's see if anyone else reports the same issue.

Apophis 08-30-2007 12:09 PM

Quote:

Originally Posted by mfyvie (Post 1328861)
Ok, in that case I'm out of ideas :-) When I get a chance I'll have to take a look at alternative ways of implementing that, in the meantime you could try my suggestion of changing ".=" to "=" to fix it. Let's see if anyone else reports the same issue.

As having the functionality in the postbit isn't of great importance to me, I simply disabled that plugin and can do it from the users profile instead. I'll give the ".=" to "=" fix a whirl a little later today and see if that does the trick for me.

Small issues such as the postbit one aside, this is a great product and will save me, and my moderators, a lot of time when it comes to dealing with spammers! Thanks for the contribution!

hypertextfever 08-30-2007 03:36 PM

What a wonderful mod. Thanks so much!!!

ishare 08-30-2007 05:02 PM

INSTALLED!
Very usefull mod. Thanks a lot for this share...


All times are GMT. The time now is 03:02 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.01933 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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