Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 10-25-2004, 03:48 PM
romeshomey romeshomey is offline
 
Join Date: Oct 2002
Location: Ohio
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 10-27-2004, 03:33 AM
romeshomey romeshomey is offline
 
Join Date: Oct 2002
Location: Ohio
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone?
Reply With Quote
  #3  
Old 10-27-2004, 07:09 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #4  
Old 10-27-2004, 02:27 PM
DeanoG DeanoG is offline
 
Join Date: Feb 2002
Location: UK
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 11-24-2004, 12:32 PM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #6  
Old 05-08-2005, 01:36 PM
romeshomey romeshomey is offline
 
Join Date: Oct 2002
Location: Ohio
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 05-08-2005, 02:23 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 05-20-2005, 03:33 PM
romeshomey romeshomey is offline
 
Join Date: Oct 2002
Location: Ohio
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 06-17-2005, 02:43 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:10 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.04172 seconds
  • Memory Usage 2,245KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (9)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete