anyway to restrict what appears in the latest topics
4 posters
Page 1 of 1
anyway to restrict what appears in the latest topics
I have a member who creates endless threads which barely get a reply but more or less ensure no one else's threads appear in the scrolling new topics widget.
Is there anyway to restrict a members posts or threads appearing in the latest posts.
the easiest way I suppose would be to kick him out, but he hasnt broken any rules and its not something I want to do.
about 1 in 10 of his threads are interesting.
there must be some sort of way to do it via CSS or java script.
someone please help
Is there anyway to restrict a members posts or threads appearing in the latest posts.
the easiest way I suppose would be to kick him out, but he hasnt broken any rules and its not something I want to do.
about 1 in 10 of his threads are interesting.
there must be some sort of way to do it via CSS or java script.
someone please help
Re: anyway to restrict what appears in the latest topics
hello
i think iam not sure iam not home to check it right now but i think there is an option
AP...General...Messages & Emails...Configuration...Post edit duration limit for a member
i think iam not sure iam not home to check it right now but i think there is an option
AP...General...Messages & Emails...Configuration...Post edit duration limit for a member
Re: anyway to restrict what appears in the latest topics
@Flappypaddles Go to the ACP > Modules > HTML & JS > Javascript codes management > Create new javascript
Set it to work in all the pages.
If you want to change the person, then look at this line in the code:
Change the
to the account URL of the person you want to remove from the Latest topics widget.
- Code:
$(function() {
var filteredMembers = [ '/u1' ],
i = 0,
j = filteredMembers.length;
for (; i < j; i++) {
$('#recent_topic_list .topic_row').each(function() {
if ( $(this).find('a[href="' + filteredMembers[i] + '"]').html() ) $(this).remove();
});
}
});
Set it to work in all the pages.
If you want to change the person, then look at this line in the code:
- Code:
var filteredMembers = [ '/u1' ],
Change the
|
Re: anyway to restrict what appears in the latest topics
Ace 1 wrote:@Flappypaddles Go to the ACP > Modules > HTML & JS > Javascript codes management > Create new javascript
- Code:
$(function() {
var filteredMembers = [ '/u1' ],
i = 0,
j = filteredMembers.length;
for (; i < j; i++) {
$('#recent_topic_list .topic_row').each(function() {
if ( $(this).find('a[href="' + filteredMembers[i] + '"]').html() ) $(this).remove();
});
}
});
Set it to work in all the pages.
If you want to change the person, then look at this line in the code:
- Code:
var filteredMembers = [ '/u1' ],
Change theto the account URL of the person you want to remove from the Latest topics widget.
- Code:
'/u1'
cheers for that it sort of works, when logged in as an admin it doesnt seem to block him but when logged in as a normal user it blocks most of them, still seems to a be a couple in the list of 15 topics.
although it may be he is not online at the moment and not creating endless threads.
I will get back to you when he has been posting some more
Re: anyway to restrict what appears in the latest topics
Yeah but are you trying to get rid of the topics that he created? Because that little script gets rid of the topics where he was the most recent poster.
Re: anyway to restrict what appears in the latest topics
I am trying to get it so that his posts do not show in the recent topics. Whether he created the thread or not.Ace 1 wrote:Yeah but are you trying to get rid of the topics that he created? Because that little script gets rid of the topics where he was the most recent poster.
He is a very prolific poster and few others get a look in on the scrolling topics when he is in full flow.
I have checked with a new user I created and it does not seem to be working at all. both threads and reply's still show in the scrolling list
Re: anyway to restrict what appears in the latest topics
I'm going to need your forum URL. And a test account, if you'd please.
Re: anyway to restrict what appears in the latest topics
ok I will send you a pmAce 1 wrote:I'm going to need your forum URL. And a test account, if you'd please.
Re: anyway to restrict what appears in the latest topics
@Flappypaddles I looked at your forum and I got this script to work:
Add this either as a Javascript code enabled in all the pages or within
tags within the widget HTML.
- Code:
$(function() {
var filteredMembers = [ '/u81' ],
i = 0,
j = filteredMembers.length;
for (; i < j; i++) {
$('#comments_scroll_div .js-marquee > a').each(function() {
if ( $(this).attr('href') == filteredMembers[i] ) {
$(this.previousSibling, this.nextSibling).remove();
$(this).prevUntil('a').prev().andSelf().remove();
$(this.previousSibling).remove();
$(this.previousSibling).remove();
$(this.nextSibling).remove();
$(this).remove();
}
});
}
});
Add this either as a Javascript code enabled in all the pages or within
|
Re: anyway to restrict what appears in the latest topics
Ace 1 wrote:@Flappypaddles I looked at your forum and I got this script to work:
- Code:
$(function() {
var filteredMembers = [ '/u81' ],
i = 0,
j = filteredMembers.length;
for (; i < j; i++) {
$('#comments_scroll_div .js-marquee > a').each(function() {
if ( $(this).attr('href') == filteredMembers[i] ) {
$(this.previousSibling, this.nextSibling).remove();
$(this).prevUntil('a').prev().andSelf().remove();
$(this.previousSibling).remove();
$(this.previousSibling).remove();
$(this.nextSibling).remove();
$(this).remove();
}
});
}
});
Add this either as a Javascript code enabled in all the pages or withintags within the widget HTML.
- Code:
<script></script>
well I tried it and the users posts still appear in the scrolling latest topics
Re: anyway to restrict what appears in the latest topics
Try this code:
And btw, where are you putting this?
- Code:
$(function() {
var filteredMembers = [ '/u81' ],
i = 0,
j = filteredMembers.length;
for (; i < j; i++) {
$('#comments_scroll_div .js-marquee > a').each(function() {
if ( $(this).attr('href').indexOf(filteredMembers[i]) != -1 ) {
$(this.previousSibling, this.nextSibling).remove();
$(this).prevUntil('a').prev().andSelf().remove();
$(this.previousSibling).remove();
$(this.previousSibling).remove();
$(this.nextSibling).remove();
$(this).remove();
}
});
}
});
And btw, where are you putting this?
Re: anyway to restrict what appears in the latest topics
in a java script moduleAce 1 wrote:Try this code:
- Code:
$(function() {
var filteredMembers = [ '/u81' ],
i = 0,
j = filteredMembers.length;
for (; i < j; i++) {
$('#comments_scroll_div .js-marquee > a').each(function() {
if ( $(this).attr('href').indexOf(filteredMembers[i]) != -1 ) {
$(this.previousSibling, this.nextSibling).remove();
$(this).prevUntil('a').prev().andSelf().remove();
$(this.previousSibling).remove();
$(this.previousSibling).remove();
$(this.nextSibling).remove();
$(this).remove();
}
});
}
});
And btw, where are you putting this?
Re: anyway to restrict what appears in the latest topics
YesFlappypaddles wrote:in a java script moduleAce 1 wrote:Try this code:
- Code:
$(function() {
var filteredMembers = [ '/u81' ],
i = 0,
j = filteredMembers.length;
for (; i < j; i++) {
$('#comments_scroll_div .js-marquee > a').each(function() {
if ( $(this).attr('href').indexOf(filteredMembers[i]) != -1 ) {
$(this.previousSibling, this.nextSibling).remove();
$(this).prevUntil('a').prev().andSelf().remove();
$(this.previousSibling).remove();
$(this.previousSibling).remove();
$(this.nextSibling).remove();
$(this).remove();
}
});
}
});
And btw, where are you putting this?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: anyway to restrict what appears in the latest topics
@flappypaddles Then replace the script with this:
- Code:
var filteredMembers = ['/u81'],
i = 0,
j = filteredMembers.length;
for (; i < j; i++) {
$('#comments_scroll_div .js-marquee > a').each(function() {
if ($(this).attr('href').indexOf(filteredMembers[i]) != -1) {
$(this.previousSibling, this.nextSibling).remove();
$(this).prevUntil('a').prev().andSelf().remove();
$(this.previousSibling).remove();
$(this.previousSibling).remove();
$(this.nextSibling).remove();
$(this).remove();
}
});
}
Re: anyway to restrict what appears in the latest topics
Hi just seen it is working, however not quite as I wished. when he posts a lot they get removed, but it essentially restricts the scrolling topics to making his posts invisible.Ace 1 wrote:@flappypaddles Then replace the script with this:
- Code:
var filteredMembers = ['/u81'],
i = 0,
j = filteredMembers.length;
for (; i < j; i++) {
$('#comments_scroll_div .js-marquee > a').each(function() {
if ($(this).attr('href').indexOf(filteredMembers[i]) != -1) {
$(this.previousSibling, this.nextSibling).remove();
$(this).prevUntil('a').prev().andSelf().remove();
$(this.previousSibling).remove();
$(this.previousSibling).remove();
$(this.nextSibling).remove();
$(this).remove();
}
});
}
it's supposed to show the last 15, if he posts 10 then it only shows 5, I was rather hoping it would show the other 10 previous posts by other people before he posted not just make his invisible. I guess that may be a little harder to do though.
does that make sense to you?
Re: anyway to restrict what appears in the latest topics
Yeah, essentially, I would have to make a script that searches for all recent topics (in chronologically descending order). That would be more of a long-term project. You could honestly just change the number of shown posts to about 25 or 30.
Re: anyway to restrict what appears in the latest topics
no probs as I have found a workaround for now, I just merge all his inane topics into one thread.Ace 1 wrote:Yeah, essentially, I would have to make a script that searches for all recent topics (in chronologically descending order). That would be more of a long-term project. You could honestly just change the number of shown posts to about 25 or 30.
thanks for trying though.
would it be possible to exclude a specific section from the latest topics or would that also have similar results as I though I might banish him to his own section for creating threads.
Similar topics
» Changing latest topics into latest posts?
» How to load up a forum with topics & stay off the scrolling latest topics list
» latest topics
» Latest topics ?
» Latest Topics
» How to load up a forum with topics & stay off the scrolling latest topics list
» latest topics
» Latest topics ?
» Latest Topics
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum