copperuta Posted April 21 Posted April 21 (edited) I want the last bump limit to be 12 hours, but applied per topic not for the user in general. Currently, it's set to: Daily limit: unlimited Last bump limit: 12 hours Last post limit: unlimited But this setup restricts users to bumping only one of their topics every 12 hours the cooldown applies to all their topics, not just the one bumped. That’s exactly what I want to “fix.” To reproduce: Apply the mentioned settings, create two topics, bump one topic, then try to bump the other - you’ll see the cooldown applies to both of them. 41 minutes ago, terabyte said: Basically, if a post was made 1 hour later and they decide they want to bump the topic, they should be able to. Correct? Yes, but only if 12 hours have already passed since the last bump of this topic. Edited April 21 by copperuta
Management terabyte Posted April 21 Author Management Posted April 21 1 hour ago, copperuta said: Yes, but only if 12 hours have already passed since the last bump of this topic. This is going to be tricky. Right now, the bump topic modification works based on the last post date. To do what you want, I'd have to add a completely separate table to store the time a user bumps a specific topic. On big sites with lots of topics and users, the table would fill up really quickly and add a lot of extra processing. I'll have a look at the code once I'm back home on Wednesday and see if there is any good way to implement this change. Board Rules - Available Products - Need a Custom Work? < Don't PM me for support, post in the forum or submit a ticket from the client area instead! >
copperuta Posted April 22 Posted April 22 By the way, I just found this post: On 3/26/2018 at 3:22 PM, Baboulinet54 said: Hello,I'm not sure this is the correct place to post this but the "Get support link" redirected me so...I tried this puglin but I have a quick question regarding the configuration. If I configure some limits (let's say 1 bump per day), then the member will be only able to do 1 bump on all the forum. Is there a way to configure apply this limit to topics? So he has 10 topics, he can bump them one per day for example. Regards,Babouline That’s exactly what I mean, so I’m not the only one experiencing this.
Management terabyte Posted April 23 Author Management Posted April 23 In that case, the daily limit is indeed global, like the last bump limit. The only per-topic setting is the last post limit one. The first 2 settings are global only because trying to save each bump time would use a lot of resources on big sites, so I decided to avoid the issue completely from the start: Quote To do what you want, I'd have to add a completely separate table to store the time a user bumps a specific topic. On big sites with lots of topics and users, the table would fill up really quickly and add a lot of extra processing. If I recall right, in that case, the user changed settings like this: Daily limit: unlimited Last bump limit: unlimited Last post limit: 24 hours That configuration let the user wait a whole day before bumping their topics, and they were fine with that. Your case is indeed similar, but you want the post limit to apply only if the last post is from the topic starter rather than anyone, which I can understand. Would a new setting to enforce the last post limit of 12 hours only if the user bumping is the one who made the last post work for you? I'll add the new setting only for the v5 version, but I can provide you with a different version with those changes hardcoded separately in case. I see you posted a ticket, and I assume it's for a custom version of the plugin(?). I'll check it together with all the others later. Board Rules - Available Products - Need a Custom Work? < Don't PM me for support, post in the forum or submit a ticket from the client area instead! >
copperuta Posted April 24 Posted April 24 21 hours ago, terabyte said: Would a new setting to enforce the last post limit of 12 hours only if the user bumping is the one who made the last post work for you? Yes, that would work for me. It would also prevent users from abusing the bump button by combining it with a post, which is good. But what if they don’t post anything and only use the bump button? Then the limit wouldn’t apply, since their last post would always be older than 12 hours.
Management terabyte Posted April 24 Author Management Posted April 24 No worries there. I have a way to check the last bump time, which is also what the de-bump function uses. It will work like this: Topic starter (TS) makes a reply => must wait 12 hours to bump Someone else makes a reply => TS can bump the topic (even if the TS's last reply was made 1 hour ago) TS bumps or replies to the topic => TS must wait 12 hours to bump the topic copperuta 1 Board Rules - Available Products - Need a Custom Work? < Don't PM me for support, post in the forum or submit a ticket from the client area instead! >
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now