The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Do not include posts from a thread in New Posts.
Hey Everyone,
I finally got my RSS Bot working, and it works great. I am now looking for a way so that it does not spam the New Posts, and other such features. I would like to have it where you have to click that forum to see the posts in there, and that it would not be visible via "New Posts" and in the "VBAdvanced Home". Not sure if there is a hack that exists like this, but I've gone through about 10 pages of the search looking for something along these lines with no hits... So if there already is one, can someone point me in the right direction. Thanks, Drew |
#2
|
||||
|
||||
So, does your bot just post in one forum and that's all that's in the forum? If so, you can remove all users' permissions to search that forum. Otherwise, you'd probably need to add a column to the post table to specify whether a post was a user post or a bot post then include that in the search query where clause.
|
#3
|
|||
|
|||
Yes, my RSS bot posts in one particular forum, I was able to remove that forum on the vBa CMPS, and the newpost button (by adding &exclude=xx) (xx= forum number).
But the only thing I've been unable to do is, on the vBa CMPS it says: New Posts: $newposts, and I have not been able to find where $newposts comes from, so that I can exclude that forum. |
#4
|
||||
|
||||
I have no experience with vBAdvanced, but to find new posts, the query is going to need to access $bbuserinfo['lastvisit'], so I would search for that in the vBa source. Alternately, since it's a counting query, you could search for COUNT(*) . Once you find the query, it would be pretty simple to exclude a forumid.
|
#5
|
||||
|
||||
I've got the same problems .. I use the RSS to feed into 4 seperate forum category's for different news items .. ie .. Sport, Tech, UK News, World News. If anyone finds the method to remove these posts from the users 'new posts' listing, I'd be interested to know.
|
#6
|
|||
|
|||
Ok well I found this, and i'm pretty sure this is waht you are talking about (this is in the /vbb/modules/welcomeback.php)
Code:
if ($vba_options['portal_welcome_newposts']) { $getnewposts = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "post WHERE dateline >= '$bbuserinfo[lastvisit]'"); $newposts = number_format($getnewposts['count']); } } |
#7
|
||||
|
||||
PHP Code:
|
#8
|
|||
|
|||
sweet KirbyDE, it looks like it's working perfectly, but I won't be 100% sure untill the RSS spams 30 new posts
|
#9
|
|||
|
|||
I the forums disabled in search.php so that they dont show up when you click "new posts" ect..
can this be done for the forumhome as well? so that when members log on they dont see example 34 posts 26 thread since last visit they see new posts new threads that they can actually see when clicking "new posts" |
#10
|
|||
|
|||
Sooner95: not quiet sure what you are talking about. Probably because I'm not logged in.
It seems kinda simliar to what I'm talking about, in the CMPS, but I don't see that in my forum index. But from how you explain it, i'm sure it'd be done with the same code almost exactly. Just got to find out where it says 34 Posts, 26 threads since your last visit. So wherever that is, I would try and search through the php to find that, and if there is something along the lines of " $getnewposts = $DB_site->query_first " i would grab that particular code that KirbyDE wrote, and slap it in there (with making a backup of the php file first of course). That's my only idea? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|