Seite 2 von 2

Re: [3.2] "Kann Themen als neu markieren" geht nicht

Verfasst: 12.09.2017 17:45
von schnagga
Die Zeit hatte ich schon bei einer Minute. Entscheidend ist aber:
Check permission and make sure the last post was not already bumped
Ist mir jetzt aber fast schon egal. Könnte man sicher auch noch in der Datenbank "vermurksen".... :wink:

Vielen Dank Euch allen!

Re: [3.2] "Kann Themen als neu markieren" geht nicht

Verfasst: 12.09.2017 18:15
von canonknipser
schnagga hat geschrieben: Könnte man sicher auch noch in der Datenbank "vermurksen".... :wink:
Ja, in der topics-Tabelle die Spalten topic_bumped und topic_bumper auf 0 (null) setzen ;)

Re: [3.2] "Kann Themen als neu markieren" geht nicht

Verfasst: 28.01.2018 16:53
von NicoM
Hallo,

ich habe volle Berechtigung und im Admin-Bereich eine 1-Tages-Begrenzung eingegeben. Dann einmal gebumped und jetzt is nix mehr mit bumpen.

Damit ich's richtig verstehe: Man kann ein Thema nur einmal als neu markieren, ja?
Will ich diese Begrenzung aufheben, muss ich den Code ändern. Richtig?

Re: [3.2] "Kann Themen als neu markieren" geht nicht

Verfasst: 28.01.2018 18:19
von canonknipser
Ja - oder darauf antworten ;)

Re: [3.2] "Kann Themen als neu markieren" geht nicht

Verfasst: 05.11.2022 12:54
von donsenilo
Dr.Death hat geschrieben: 12.09.2017 16:49

Code: Alles auswählen

/**
* Bump Topic Check - used by posting and viewtopic
*/
function bump_topic_allowed($forum_id, $topic_bumped, $last_post_time, $topic_poster, $last_topic_poster)
{
    global $config, $auth, $user;

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

    // Check bump time range, is the user really allowed to bump the topic at this time?
    $bump_time = ($config['bump_type'] == 'm') ? $config['bump_interval'] * 60 : (($config['bump_type'] == 'h') ? $config['bump_interval'] * 3600 : $config['bump_interval'] * 86400);

    // Check bump time
    if ($last_post_time + $bump_time > time())
    {
        return false;
    }

    // Check bumper, only topic poster and last poster are allowed to bump
    if ($topic_poster != $user->data['user_id'] && $last_topic_poster != $user->data['user_id'])
    {
        return false;
    }

    // A bump time of 0 will completely disable the bump feature... not intended but might be useful.
    return $bump_time;
} 
Aus welcher Datei stammt diese Funktion ?

Re: [3.2] "Kann Themen als neu markieren" geht nicht

Verfasst: 05.11.2022 14:20
von Kirk
Dies ist in der ./includes/functions_content.php ab Zeile 290 vorhanden.