Announcement

Collapse
No announcement yet.

Exclude specific users/usergroups or forum sections from activity stream?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mark.B
    replied
    Excluding forums from the Activity Stream isn't a feature of vBulletin 4, it's just not designed that way.
    vbulletin.org is the best place to ask - the vB support team are not programmers and we can't really provide any more help on this than Lynne has already posted (albeit several years ago).

    Leave a comment:


  • Budget101
    replied
    Ok, I've edited both the post and thread files as listed with the same forum that I want to exclude... herein lies the odd issue. The Thread one works perfectly and they don't display in the activity stream (as desired), however, the Post doesn't work properly and they DO display regardless.

    vb/activitiystream/view/perm/forum/post.php

    I've attached a screenshot, I used the exact same code on both files. Any ideas as to why this wouldn't work or what I may be missing?

    Leave a comment:


  • Thierry Martin
    replied
    Originally posted by Lynne View Post
    ...If you guys need more help with modifying code, you really need to take this discussion over to vbulletin.org, the modification site.

    We're not modifying the code, we're fixing it!

    Thanks for the code, Lynne, I think it's easy for programmers and tech support people to forget that there are people who don't know how it all works. I even googled "PHP queries" and couldn't figure out where to add the lines. The first three places I tried completely blanked out the activity stream page.

    Now it works!
    Last edited by Thierry Martin; Sun 17th Jun '12, 12:14pm.

    Leave a comment:


  • borbole
    replied
    Originally posted by JayDogg View Post
    Ooooh OK, I finally found what you are talking about. So that line navigates to the files on the back end of vBulletin on the server. See this is what I wanted to avoid as I don't want to screw anything up with the code unless I know exactly what I'm doing. Hence my request for more literature because I'm a noob.
    You do not have anything to worry about. Even if you won''t add the code right that will cause an error, all you have to do is reupload the file from a fresh vb package and you should be all set. Or make first a backup of the file that you will edit.

    Originally posted by JayDogg View Post
    Going by the vBulletin manual, it seems I have to contact the .org side of things because this is considered a mod. I'm really trying not to sign up to any more forums as I have enough on my plate already.
    That is correct. All coding/styling related questions should be asked over at vb.org. As that site handels that part.

    Originally posted by JayDogg View Post
    Regarding the above codes, I'm using FileZilla. When I navigate to the above .php files, it'll let me add files to the queue. From there I'm lost. A list of Local files and Remote files show up in a box, but I have no clue on what to do from there.
    Right click at the file and choose for the Download option and it will be downloaded at a location of your choosing at your pc and you can make the edits there. Make sure to use a decent php editor program btw.

    Originally posted by Thierry Martin View Post


    What exactly is the line we add your code after? Not everybody knows what "the queries" means.
    Add it after this bit of code at both files mentioned above.

    Code:
    t.visible <> 2

    Leave a comment:


  • Lynne
    replied
    This is the only query in the post.php file I referenced above:
    Code:
                SELECT
                    p.postid AS p_postid, p.threadid AS p_threadid, p.title AS p_title, p.visible AS p_visible, p.userid AS p_userid, p.pagetext AS p_pagetext, p.username AS p_username,
                    t.threadid AS t_threadid, t.title AS t_title, t.forumid AS t_forumid, t.pollid AS t_pollid, t.open AS t_open, t.postusername AS t_postusername,
                    t.views AS t_views, t.visible AS t_visible, t.postuserid AS t_postuserid, t.postuserid AS t_userid, t.replycount AS t_replycount,
                    fp.pagetext AS t_pagetext
                FROM " . TABLE_PREFIX . "post AS p
                INNER JOIN " . TABLE_PREFIX . "thread AS t ON (p.threadid = t.threadid)
                INNER JOIN " . TABLE_PREFIX . "post AS fp ON (t.firstpostid = fp.postid)
                WHERE
                    p.postid IN (" . implode(",", array_keys($this->content['postid'])) . ")
                        AND
                    p.visible <> 2
                        AND
                    t.visible <> 2
    So, you would add "AND t.forumid NOT IN (2) ' to the end of that:
    Code:
                SELECT
                    p.postid AS p_postid, p.threadid AS p_threadid, p.title AS p_title, p.visible AS p_visible, p.userid AS p_userid, p.pagetext AS p_pagetext, p.username AS p_username,
                    t.threadid AS t_threadid, t.title AS t_title, t.forumid AS t_forumid, t.pollid AS t_pollid, t.open AS t_open, t.postusername AS t_postusername,
                    t.views AS t_views, t.visible AS t_visible, t.postuserid AS t_postuserid, t.postuserid AS t_userid, t.replycount AS t_replycount,
                    fp.pagetext AS t_pagetext
                FROM " . TABLE_PREFIX . "post AS p
                INNER JOIN " . TABLE_PREFIX . "thread AS t ON (p.threadid = t.threadid)
                INNER JOIN " . TABLE_PREFIX . "post AS fp ON (t.firstpostid = fp.postid)
                WHERE
                    p.postid IN (" . implode(",", array_keys($this->content['postid'])) . ")
                        AND
                    p.visible <> 2
                        AND
                    t.visible <> 2
                        AND
                    t.forumid NOT IN (2)
    Only change the forum id to what you want.

    If you guys need more help with modifying code, you really need to take this discussion over to vbulletin.org, the modification site.

    Leave a comment:


  • Thierry Martin
    replied
    Originally posted by Lynne View Post
    I stated exactly what files the queries were in. Do you not see the query I am talking about in vb/activitiystream/view/perm/forum/post.php and vb/activitiystream/view/perm/forum/thread.php?

    What exactly is the line we add your code after? Not everybody knows what "the queries" means.

    Leave a comment:


  • JayDogg
    replied
    Originally posted by Lynne View Post
    I stated exactly what files the queries were in. Do you not see the query I am talking about in vb/activitiystream/view/perm/forum/post.php and vb/activitiystream/view/perm/forum/thread.php?
    Ooooh OK, I finally found what you are talking about. So that line navigates to the files on the back end of vBulletin on the server. See this is what I wanted to avoid as I don't want to screw anything up with the code unless I know exactly what I'm doing. Hence my request for more literature because I'm a noob.

    Going by the vBulletin manual, it seems I have to contact the .org side of things because this is considered a mod. I'm really trying not to sign up to any more forums as I have enough on my plate already.

    Regarding the above codes, I'm using FileZilla. When I navigate to the above .php files, it'll let me add files to the queue. From there I'm lost. A list of Local files and Remote files show up in a box, but I have no clue on what to do from there.

    Leave a comment:


  • Lynne
    replied
    I stated exactly what files the queries were in. Do you not see the query I am talking about in vb/activitiystream/view/perm/forum/post.php and vb/activitiystream/view/perm/forum/thread.php?

    Leave a comment:


  • JayDogg
    replied
    Originally posted by borbole View Post
    You don''t need the link to Lynne 's other threads about the subject at hand as she has already posted the code abovefor what you need to do.
    Maybe I don't "need" it, but it would still be nice to have.
    Originally posted by Lynne View Post
    Yeah, as borbole stated, I posted the code that I had posted before, so I'm not sure what you are asking about.
    It would be nice to see any additional literature that you may have added along with those codes. Unfortunately I'm extremely new at all this and a simple "add this to the query." doesn't help me much.

    I've looked through vbulletin and couldn't find anything that looked like a query to me. I'm guessing I have to go digging through the back end of the server to stick this code somewhere?

    I apologize for my noobness.

    Leave a comment:


  • Lynne
    replied
    Yeah, as borbole stated, I posted the code that I had posted before, so I'm not sure what you are asking about.

    Leave a comment:


  • borbole
    replied
    Originally posted by JayDogg View Post

    Lynn, You've said it a bunch of times that you've answered the question before, can you provide a link to that thread? Obviously it's not showing up in peoples' searches.
    You don''t need the link to Lynne 's other threads about the subject at hand as she has already posted the code abovefor what you need to do.

    Leave a comment:


  • JayDogg
    replied
    After doing a search and finding this thread along with this one, https://www.vbulletin.com/forum/show...=1#post2297990 I'd still like to ask the question again in hopes of getting pointed in the right direction.

    Lynn, You've said it a bunch of times that you've answered the question before, can you provide a link to that thread? Obviously it's not showing up in peoples' searches.

    I'd really like to know if there is a simple setting under vB that I'm missing because all those code thingies above are Greek to me.

    Leave a comment:


  • tongpo3205
    replied
    Originally posted by Lynne View Post
    I've posted this before. It should give you and idea of what you need to do for now:
    Thanks very much for the help. That worked a treat

    Leave a comment:


  • Lynne
    replied
    Originally posted by Paul M View Post
    You dont need quotes around numbers
    Whoops, you are right, my bad.

    Leave a comment:


  • Paul M
    replied
    You dont need quotes around numbers

    Leave a comment:

widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X