Bump Topic for topic authors [Infinite number of times]

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Anti-Spam Guide
Post Reply
eXTrimaL
Registered User
Posts: 18
Joined: Tue Nov 12, 2019 4:07 pm

Bump Topic for topic authors [Infinite number of times]

Post by eXTrimaL »

At the moment, the author of a topic can bump its topic only once.
How to make the author able to bump their topics an infinite number of times?

Many thanks in advance for any help!

eXTrimaL
Registered User
Posts: 18
Joined: Tue Nov 12, 2019 4:07 pm

Re: Bump Topic for topic authors [Infinite number of times]

Post by eXTrimaL »

:?:

User avatar
mrgoldy
Development Team Member
Development Team Member
Posts: 1350
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

Re: Bump Topic for topic authors [Infinite number of times]

Post by mrgoldy »

Topic authors can bump their topic more than once, but not if no replies have been made.
You can also lower the bump interval through your ACP.

Alternatively the quickest solution is to open includes/functions_content.php[c].
Find the function [c]bump_topic_allowed
(around like 290).
And remove the || $topic_bumped from the first if check.

Code: Select all

// Check permission and make sure the last post was not already bumped
if (!$auth->acl_get('f_bump', $forum_id) || $topic_bumped)
{
	return false;
}
will become

Code: Select all

// Check permission and make sure the last post was not already bumped
if (!$auth->acl_get('f_bump', $forum_id))
{
	return false;
}

eXTrimaL
Registered User
Posts: 18
Joined: Tue Nov 12, 2019 4:07 pm

Re: Bump Topic for topic authors [Infinite number of times]

Post by eXTrimaL »

Thank you so much!!! Replacing the code helped!
This is what I needed! ;)

Post Reply

Return to “Extension Requests”