LIB53 (@lib53)

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • @lib53

    Member

    Sorry for the double post, but I took control of the account and I’m not able to reproduce the error from my session. Her password was reset. Perhaps there is some security setting or browser issue causing wordpress to flag users for reviews? I don’t know much about PHP/MySQL and WordPress so what I’m saying might be stupid…

    @lib53

    Member

    One of my users is having the exact same problem, except it’s only one of my users, everyone else is fine. My forums have been running for over a month with no problems, but suddenly this user can’t publish posts without me approving it in dashboard. It becomes marked as “Pending Review”. The only thing that sets her account apart is the number of edits she makes is much higher than anyone else, because she opens a news topic and frequently updates the opening post with new information.

    EDIT: I am using bbPress 2.1

    @lib53

    Member

    Ah I see, thank you for the link. I guess I’ll keep any work I do to myself then, it’s a learning experience for me. Too bad it got punted to 2.2 though, I’m already feeling really excited and impatient for 2.1 hehe

    @lib53

    Member

    I’m making a post count plugin for bbpress 2.1, but the problem is that I’m new to PHP/MySQL, WordPress, and bbPress. From what I understand, I need to add a row called ‘post count’ to the usermeta table and hook the ‘bbp_theme_after_reply_form_submit_button’ action hook with a function that increases ‘post count’ by 1. I believe I must assign this newly hooked action a low priority as well so that the increase only comes after the post gets submitted into the database.

    I should also add a function that builds all post counts for first time run, and even leave a button possibly called “rebuild post count” in the dashboard to run the function. Preferably, I’d like to add a feature where it can run itself every now and then to ensure things the posts are accurate.

    I can count up everyone’s post count by filtering through the ‘posts’ table. All replies and topics are labeled as ‘reply’ and ‘topic’ in the post_type column, and there is a post_author column as well. Given these two columns, writing this function should be very simple. But I’m new to PHP/MySQL, and only a computer science student… So even this is a bit of work for me :(

    Additionally, I can add another row so we can add artificial post count increase or decrease as well. Another row is needed because we don’t want the build/rebuild post count function mentioned above overwriting any increase or decrease an admin wants to have in effect. I personally need this row because I’m moving a 2yr old community off of IPB.

    In reply to: HTML Code

    @lib53

    Member

    Users do not have the capability unfiltered_html

    https://codex.wordpress.org/Roles_and_Capabilities#unfiltered_html

    User a role editing plugin to enable that capabilty

    https://codex.wordpress.org/Roles_and_Capabilities#Resources

    This is unsafe, because users can write malicious code. I wrote a post asking about more details on modifying the capability at its core here:

    https://wordpress.org/support/topic/modify-unfiltered_html-to-allow-more-tags?replies=1

    Hopefully I can get some attention so there’s a safe halfway point where we can allow more html tags without rendering our sites insecure…

Viewing 5 replies - 1 through 5 (of 5 total)