Info
- 19 posts
- 8 voices
- Started 3 years ago by wiseacre
- Latest reply from danblogro
- This topic is not resolved
Members can add tags
-
- Posted 3 years ago #
I current trunk (rev 1886) members can add tags to all existing topics. Is it bug or feature?
-
- Posted 3 years ago #
I do not know the answer from the developers point of view. But for me I would see this as a feature. The more you can let members do the more time is left for the admin to do other more important things.
-
- Posted 3 years ago #
This has always been the case as a feature, or ability for users to add tags to any post they would like to.
-
- Posted 3 years ago #
The downside would be that one user could corrupt your bbpress install with tons of inappropriate tags... but there's no spam check on tags (that I'm aware of).
-
- Posted 3 years ago #
yeah that's a good point
-
- Posted 3 years ago #
The member id is recorded in the database when the tag is added, so if it's a member doing inappropriate tagging, you can deal with them individually. Normally, regular members won't sh*t where they eat. It's not something I would worry about. Instead, install _ck_'s Human Test plugin to keep bots from registering right off the bat.
http://bbpress.org/plugins/topic/human-test/
Also, I think it's been like this for a while with tags, going back to the 0.73 release I think.
-
- Posted 3 years ago #
This is bug for me. In general the forum moderators/administrators moderate/administrate OR writing PHP&SQL, not both.
-
- Posted 3 years ago #
Wait ... what does that have to do with tags?
Members can add tags.
Moderators (and Admin and Key Master) can remove them.
Where did this come into PHP & SQL?
-
- Posted 3 years ago #
@wiseacre: Sorry? Please explain that last reply. Thanks.
-
- Posted 3 years ago #
OK let have one bad guy and one good admin. How admin can identify and fight this bad guy without PHP or SQL knowledge?
chrishajer, I will explain with your own words "The member id is recorded in the database when the tag is added, so if it's a member doing inappropriate tagging, you can deal with them individually."
But in other point of view bbpress admin/key master MUST know PHP & SQL because of undeleteing "deleted" topics and posts. ;)
-
- Posted 3 years ago #
Actually it's a lot easier to figure out who made the tag than you seem to think.
ID's are set in every single tag.
<li id="tag-85_71562">tags</li>Go to http://bbpress.org/forums/profile/71562 and you'll see that I added a tag :) Easy as pie to see I'm a spammer ;)
-
- Posted 3 years ago #
Reading http://bbpress.org/forums/profile/71562 I can't say are you "tag spammer" or not ;)
-
- Posted 3 years ago #
Someone could write a plugin to list all tags added by ID whomever, I suppose, but tag spam is either really clever (that MIGHT be spam, maybe not) or blindingly obvious (mmm 'sex' is not an appropriate tag here), in my experience. And most of the time it's the latter.
-
- Posted 3 years ago #
@wiseacre - is this actually happening or are you just preparing for the future?
-
- Posted 3 years ago #
@Ipstenu - that's pretty neat about the ids, I never knew that. It could still be a plugin, but it's nice to know who added certain tags without a plugin and without looking in the database.
-
- Posted 3 years ago #
@chrishajer - If I get bored enough this week I may make a plugin to show all the tags a person makes (list it on their profile page maybe) or even on mouse-over for admins.... Actually the later sounds smarter. Mouseover the tags and the 'alt' is the person who added them. You'd still need a bit of brains to sort out that 'Gee, JimBob there made these tags in a lot of posts' Dunno, I can think of a few approaches and none appeal to me past common sense :)
@wiseacre If you really want to remove the ability of non-mods to add tags, just edit topic-tags.php in your template.
Wrap
<?php tag_form(); ?>with an 'if mod' sort of deal. Call it a day. -
- Posted 3 years ago #
@chrishajer - I am not using unfinished software - I'm preparing for the future.
@Ipstenu - Thanks!!! I can do this but average key master ... I don't know. I thing bbpress needs a setting for this.@ All - Merry Christmas!!!
-
- Posted 3 years ago #
Ignoring the debate over whether it's a feature or a bug, good or bad, you could just remove the capability from the member role. It's coded in bb-includes/functions.bb-capabilities.php line 170, "edit_tags". You could delete that line and members would not be able to edit tags any longer. I'm not sure if that means they can't add tags to their own post or not though.
Also, instead of modifying a core file like that, you could probably use a plugin to remove that capability from the member role. Or you could create a whole new role that does not have that capability. I think there was a plugin related to custom roles:
http://bbpress.org/forums/topic/disable-posting-and-registration#post-11696
-
- Posted 1 year ago #
This is the solution:
1 - Find
topic-tags.phpfile, in your template folder.2 - In topic-tags.php file, find this line:
<?php tag_form(); ?>3 - Above this line, add the following code:
<?php if ( !bb_current_user_can( 'manage_tags' ) ) {return false;} ?>I hope it is not wrong, I made this change for me and now works ...
[EDIT by chrishajer - there is no bbcode here]
-
You must log in to post.