vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Keeping new posts by a specific username or userid from showing up in the 'New Posts' (https://vborg.vbsupport.ru/showthread.php?t=70973)

romeshomey 10-25-2004 03:48 PM

Keeping new posts by a specific username or userid from showing up in the 'New Posts'
 
I am trying to figure out how to keep the search.php from showing posts from a specified username or userid in the 'New Posts' area.

We are using the articlebot and if you don't log in for a long period of time, there are 1000's of posts from the NewsBots.

What I need is something so I can assign a group or certain usernames or userid's from being shown when someone goes to see the 'New Posts'.

I sat here for about 5 hours last night trying to figure it out but came up empty handed.

If anyone knows how I can do this, or may already have a hack that does this, please contact me via email or reply here.

Thanks guys.

romeshomey 10-27-2004 03:33 AM

Anyone? :(

Andreas 10-27-2004 07:09 AM

Assuming that your newsbot creates new threads:

** UNTESTED **

In search.php FIND
PHP Code:

if ($_REQUEST['do'] == 'getnew' OR $_REQUEST['do'] == 'getdaily'

BELOW that FIND (1st occurance)
PHP Code:

AND delthread.primaryid IS NULL 

BELOW that ADD
PHP Code:

AND thread.postuserid != 1234 

(1234 must be replaced with the userid of your bot)

DeanoG 10-27-2004 02:27 PM

if your bot is posting in a forum that is dedicated to news / rss feeds your could try the forum Exclude hack.

[vB 3.0.3] - Use exclude in search process related query string

jluerken 11-24-2004 12:32 PM

Quote:

Originally Posted by KirbyDE
Assuming that your newsbot creates new threads:

** UNTESTED **

In search.php FIND
PHP Code:

if ($_REQUEST['do'] == 'getnew' OR $_REQUEST['do'] == 'getdaily'

BELOW that FIND (1st occurance)
PHP Code:

AND delthread.primaryid IS NULL 

BELOW that ADD
PHP Code:

AND thread.postuserid 1234 

(1234 must be replaced with the userid of your bot)

This is not working for me. Can anyone give a helping hand on that?

romeshomey 05-08-2005 01:36 PM

Thanks guys. Sorry it took me so long to reply. Really helped out. Thanks again.

I had to change this line from

AND thread.postuserid = 1234

to

AND thread.postuserid != '1234'

works now.

New question.

Now that I have that solved. How do I get the 'Number of New Posts' on the Forum Home page to not count that userid as well when it counts the new posts.

For instance, if I limit a user from the search.php it still counts those posts as new posts on the forum home.

T3MEDIA 05-08-2005 02:23 PM

Quote:

Originally Posted by KirbyDE
Assuming that your newsbot creates new threads:

** UNTESTED **

In search.php FIND
PHP Code:

if ($_REQUEST['do'] == 'getnew' OR $_REQUEST['do'] == 'getdaily'

BELOW that FIND (1st occurance)
PHP Code:

AND delthread.primaryid IS NULL 

BELOW that ADD
PHP Code:

AND thread.postuserid != 1234 

(1234 must be replaced with the userid of your bot)

Kerby any idea how to add this to the admincp? that would be nice.

romeshomey 05-20-2005 03:33 PM

OK, new question.

I eliminated the bots posts from showing up on the search page, but now need to eliminate their posts from being counted on the forum home page.

For example, their posts arent showing up on the search page, but their posts are still counted here.

Your Info:
User: romeshomey
New Posts: 29
New Threads: 27
Private Messages: 0 Unread, Total 20.

How can I eliminate this?

JohnBee 06-17-2005 02:43 PM

same here, I use a newsbot to post news for discussion using my vBulletin
forums and I also would like to stop his posts from showing up as new posts.

can someone please help get this done?


All times are GMT. The time now is 10:26 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.01318 seconds
  • Memory Usage 1,747KB
  • 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
  • (9)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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