View Full Version : Keeping new posts by a specific username or userid from showing up in the 'New Posts'
romeshomey
10-25-2004, 03:48 PM
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 (mailto:romeshomey@yahoo.com) 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
if ($_REQUEST['do'] == 'getnew' OR $_REQUEST['do'] == 'getdaily')
BELOW that FIND (1st occurance)
AND delthread.primaryid IS NULL
BELOW that ADD
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 (https://vborg.vbsupport.ru/showthread.php?t=69326)
jluerken
11-24-2004, 12:32 PM
Assuming that your newsbot creates new threads:
** UNTESTED **
In search.php FIND
if ($_REQUEST['do'] == 'getnew' OR $_REQUEST['do'] == 'getdaily')
BELOW that FIND (1st occurance)
AND delthread.primaryid IS NULL
BELOW that ADD
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
Assuming that your newsbot creates new threads:
** UNTESTED **
In search.php FIND
if ($_REQUEST['do'] == 'getnew' OR $_REQUEST['do'] == 'getdaily')
BELOW that FIND (1st occurance)
AND delthread.primaryid IS NULL
BELOW that ADD
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?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.