vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   Killing Spam in VB5 - need sql help (https://vborg.vbsupport.ru/showthread.php?t=325064)

JWC 05-11-2017 02:07 AM

Killing Spam in VB5 - need sql help
 
Hey guys,

So I've been working on a tool that analyzes posts, urls in posts, sources etc and determines which posts are spam. So far it does a fantastic job of separating the spam from the ham, but I've run into a block.

I don't want to delete the post, I just want to make it invisible. In the DB (I'm doing this entirely outside of the VB codebase) I mark the post as "invisible = 2" which from other posts leads me to believe it would be invisible. When I return to the page - post is still there.

So - what am I missing? Is there another table I need to update? Is there an ajax call I can hit ti make the post invisible on it's own? This forum has hundreds of thousands of members and the spam, while not terrible, is dispersed throughout - so it's hard to clean it by hand.

Thanks!
-John

Paul M 05-11-2017 09:55 AM

Are you sure you are talking about vB5 ?

There is no "invisible" field in the node table, so I'm not sure what you are setting.

JWC 05-11-2017 11:24 AM

Quote:

Originally Posted by Paul M (Post 2586385)
Are you sure you are talking about vB5 ?

There is no "invisible" field in the node table, so I'm not sure what you are setting.

Yes VB5 - specifically 5.0.5 (we have some breaking issues when attempting an upgrade). The invisible field is in the post table - am I barking up the wrong tree entirely? How do I make the connection between the node / thread / post tables?

Also, in the process of trying to hunt this down I changed some data in the post table and didn't see any changes to the post itself. Is that cached in another table somewhere?

Paul M 05-11-2017 02:34 PM

vB5 does not use the post table at all.

All the data for posts (& threads) is stored in the node & text tables.

noypiscripter 05-13-2017 08:02 AM

Paul is right.

But to answer your question granted you are really using vB5. You can "soft delete" a post by calling the deleteNodesAsSpam($nodeid, $hard) node API passing the node id of the post and false to the $hard parameter.


All times are GMT. The time now is 01:45 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.01002 seconds
  • Memory Usage 1,718KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete