News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Bump Topics

Started by Tyrsson, July 04, 2008, 04:17:28 PM

Previous topic - Next topic

Tyrsson

Link to Mod


Compatibility
For SMF 2.0 beta 3 (and above)
(It will NOT work SMF 1.x - and I don't intend to make one for it. The reason is that changes in 2.x made it easier to write with alot less edits.)

Introduction
Enables the bumping of topics.

Note: Since it affects the ordering and reduces the effectiveness of the indexes, it may result in slower queries on larger/busier forums.

Note: Bug: Re-calculating the forum stats via Forum Maintenance will undo any bumped topics from being on the BoardIndex as latest post.

Features
o Allows topic starter/last poster/admins to bump a topic back to the top.
- Effects BoardIndex/MessageIndex/Display/Recent/Unread
- Can only bump 24hrs after the last post/bump
- Admins excluded from wait
- Can't bump locked topics
- Guests can NEVER bump
- No admin settings whatsoever
o Supports Languages
- English/English-utf8
- English_British/English_British-utf8
I welcome translations for other languages. Please post the translated language strings in the Support Topic.

Installation
Any previous versions of this mod MUST be uninstalled BEFORE installing this version.

Simply install the package to install on the SMF Default Core Theme ONLY.

Useful Links
SMF Package Parser
Manual Installation Of Mods
How Do I Modify Files?

Donate
Has this modification helped you? Support the developer by Donating

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
v1.0 - 29th June 2008
o Initial release
PM at your own risk, some I answer, if they are interesting, some I ignore.

karlbenson


Alpay

#2
Dear karlbenson
I would like permission to translate your mod, Bump Topics  into Turkish. If you accept, I also want to kindly ask you to release it in the mod site, so that I won't be violating any redistribution rules via redistibuting the mod myself. Thank you in advance.

Quote// Start of Bump Topics Mod
$txt['bump'] = 'Konuyu Yukarı Taşı';
$txt['bump_open'] = '(';
$txt['bump_close'] = ')';
$txt['bumped'] = 'Yukarı Taşındı';
$txt['bumped_last'] = 'Son Yukarı Taşıma: ';
$txt['bump_times_singular'] = 'kere';
$txt['bump_times_plural'] = 'kere';
$txt['nobump_eligible'] = 'Sadece konuyu başlatan, son mesaj sahibi ve yöneticiler konuları yukarı taşıma özelliğini kullanabilir.';
$txt['nobump_wait'] = 'Konuyu (yeniden) yukarı taşımak için son mesajın/son yukarı taşımanın üzerinden 24 saat geçmiş olması gerekir.';
$txt['nobump_guests'] = 'Ziyaretçiler konuları yukarı taşımayaz.';
$txt['nobump_locked'] = 'Kilitli konular yukarı taşınamaz.';
// End of Bump Topics Mod

Best Regards,
Alpay


edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

karlbenson

Thx Alpay. I'll be sure to add them for the next version of the mod.

chrisb

i would like to see this feature added for 1.1.5, This would be very useful our site as we have alot of posts and it would keep the top ones at the top at least

Apllicmz

hello uddate portuguese and brazilian

But firt i see that erro when i install


<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Start of Bump Topics Mod
$txt['bump'] = 'Bump';
$txt['bump_open'] = '(';
$txt['bump_close'] = ')';
$txt['bumped'] = 'lombado';
$txt['bumped_last'] = 'Último lombado: ';
$txt['bump_times_singular'] = 'tempo';
$txt['bump_times_plural'] = 'times';
$txt['nobump_eligible'] = 'Apenas o tema de arranque, o último cartaz e administradores que estão autorizados a lombada o tópico.';
$txt['nobump_wait'] = '24 horas deve decorrer após o último poste/anterior lombada do tópico antes que você pode (re)bump it.';
$txt['nobump_guests'] = 'Os visitantes não podem dar lombada aos tópicos.';
$txt['nobump_locked'] = 'Os tópicos Bloqueados não pode ser lombados.';
// End of Bump Topics Mod
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.portuguese-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Start of Bump Topics Mod
$txt['bump'] = 'lombar';
$txt['bump_open'] = '(';
$txt['bump_close'] = ')';
$txt['bumped'] = 'lombado';
$txt['bumped_last'] = '&Uacute;ltimo lombado: ';
$txt['bump_times_singular'] = 'vez';
$txt['bump_times_plural'] = 'vezes';
$txt['nobump_eligible'] = 'Apenas o tema de arranque, o &uacute;ltimo cartaz e administradores que est&atilde;o autorizados a lombada o t&oacute;pico.';
$txt['nobump_wait'] = '24 horas deve decorrer ap&oacute;s o &uacute;ltimo poste/anterior lombado do t&oacute;pico antes que voc&ecirc; pode (re)lombar ele.';
$txt['nobump_guests'] = 'Os visitantes n&atilde;o podem dar lombada aos t&oacute;picos.';
$txt['nobump_locked'] = 'Os t&oacute;picos Bloqueados n&atilde;o pode ser lombados.';
// End of Bump Topics Mod
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Start of Bump Topics Mod
$txt['bump'] = 'Bump';
$txt['bump_open'] = '(';
$txt['bump_close'] = ')';
$txt['bumped'] = 'lombado';
$txt['bumped_last'] = 'Último lombado: ';
$txt['bump_times_singular'] = 'tempo';
$txt['bump_times_plural'] = 'times';
$txt['nobump_eligible'] = 'Apenas o tema de arranque, o último cartaz e administradores que estão autorizados a lombada o tópico.';
$txt['nobump_wait'] = '24 horas deve decorrer após o último poste/anterior lombada do tópico antes que você pode (re)bump it.';
$txt['nobump_guests'] = 'Os visitantes não podem dar lombada aos tópicos.';
$txt['nobump_locked'] = 'Os tópicos Bloqueados não pode ser lombados.';
// End of Bump Topics Mod
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.brazilian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Start of Bump Topics Mod
$txt['bump'] = 'lombar';
$txt['bump_open'] = '(';
$txt['bump_close'] = ')';
$txt['bumped'] = 'lombado';
$txt['bumped_last'] = '&Uacute;ltimo lombado: ';
$txt['bump_times_singular'] = 'vez';
$txt['bump_times_plural'] = 'vezes';
$txt['nobump_eligible'] = 'Apenas o tema de arranque, o &uacute;ltimo cartaz e administradores que est&atilde;o autorizados a lombada o t&oacute;pico.';
$txt['nobump_wait'] = '24 horas deve decorrer ap&oacute;s o &uacute;ltimo poste/anterior lombado do t&oacute;pico antes que voc&ecirc; pode (re)lombar ele.';
$txt['nobump_guests'] = 'Os visitantes n&atilde;o podem dar lombada aos t&oacute;picos.';
$txt['nobump_locked'] = 'Os t&oacute;picos Bloqueados n&atilde;o pode ser lombados.';
// End of Bump Topics Mod
]]></add>
</operation>
</file>



karlbenson

@chrisb
I'm sure a 1.1.5 would be popular, but unfortunately I don't intend to write one for it.

@joomlamz
Thx.

Have you got any other mods installed?  I suspect that it won't be compatible with my ignore topics mod.

elmak

Bumped topic continues to show that board as having unread topics?

reo4ua

Karl:

Thanks for the mod.  Possible to add permissions to bump by user group?

Thanks,
Ray

karlbenson

Possibly in future (for instance if you had an annoying user who kept bumping every one of his topics every day)
At the moment only the admin, topic starter or last poster can bump the topic.

chrisb

Quote from: karlbenson on July 06, 2008, 03:46:11 PM


Why will you not write any for 1.1.5, There are alot of people running that forum and they are happy that the new forum will work.


karlbenson

Quote from: karlbenson in readme
The reason is that changes in 2.x made it easier to write with alot less edits.

Whilst I appreciate there are lots of people running 1.1.x (I'm running a 1.1.x forum too.)
I'm now starting to write things for 2.x which are alot easier to do than they are for 1.1.x.
I am therefore now mostly focusing on 2.x for mods.  But where it is easy to make a 1.1.x compatible version (which little or no changes) I will do. Unfortunately this isn't one of them.

Bigguy

Very nice mod; I just installed it. I asked for a mod like this a long time ago I think so glad to see it's out. I had a little problem with the modifications.english.php file when installing but I think it's due to another mod I have installed. (Users online today) I got it figured though. ;)

When that mod is installed and you try to install this one it gives an error:


$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden'
// Start of Bump Topics Mod
$txt['bump'] = 'Bump';
$txt['bump_open'] = '(';


There is no ; on the end of this line:

$txt['uot_hidden']='Hidden'

Once I put one there it worked fine.....guess it's not really caused by your mod but by the users online today mod not having that extra ; at the end.

Jade Elizabeth

Hey Karl :D
Your mod wont install because I have member colour link installed....Obviously I want it to work still. I dunno what to do for these lines, can you help me please?

MessageIndex.php
This is my line:
'link' => !empty($row['last_id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['last_id_member'] . '">' . $row['last_display_name'] . '</a>' : (!empty($modSettings['MemberColorGuests']) ? '<span style="color:'.$modSettings['MemberColorGuests'].';">' : '').$row['last_display_name'].(!empty($modSettings['MemberColorGuests']) ? '</span>' : '')

Your line:
'link' => (!empty($row['last_id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['last_id_member'] . '">' . $row['last_display_name'] . '</a>' : $row['last_display_name']) . ( !empty($row['bump_timestamp']) && $row['bump_timestamp'] >= $row['last_poster_time'] ? ' <span title="'.$txt['bumped_last'].strip_tags(timeformat($row['bump_timestamp'], true)).'">'.$txt['bump_open'].$txt['bumped'].$txt['bump_close'].'</span>' : '' ),



Subs-BoardIndex.php

My line:
'link' => $row_board['poster_name'] != '' ? (!empty($row_board['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_board['id_member'] . '">' . $row_board['real_name'] . '</a>' : (!empty($modSettings['MemberColorGuests']) ? '<span style="color:'.$modSettings['MemberColorGuests'].';">' : '').$row_board['real_name'].(!empty($modSettings['MemberColorGuests']) ? '</span>' : '')) : $txt['not_applicable'],
),


Your line:
'link' => $row_board['poster_name'] != '' ? (!empty($row_board['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_board['id_member'] . '">' . $row_board['real_name'] . '</a>' : $row_board['real_name']). ( !empty($row_board['bump_timestamp']) && $row_board['bump_timestamp'] >= $row_board['poster_time'] ? ' <span title="'.$txt['bumped_last'].strip_tags(timeformat($row_board['bump_timestamp'], true)).'">'.$txt['bump_open'].$txt['bumped'].$txt['bump_close'].'</span>' : '' ) : $txt['not_applicable'],
),
'bump_timestamp' => forum_time(true, $row_board[(empty($row_board['bump_timestamp']) || $row_board['poster_time'] > $row_board['bump_timestamp'] ? 'poster_time' : 'bump_timestamp')]),



Recent.php

My line:
'link' => !empty($row['id_last_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_last_member'] . '" title="' . $txt['profile_of'] . ' ' . $row['last_poster_name'] . '">' . $row['last_poster_name'] . '</a>' : (!empty($modSettings['MemberColorGuests']) ? '<span style="color:'.$modSettings['MemberColorGuests'].';">' : '').$row['last_poster_name'].(!empty($modSettings['MemberColorGuests']) ? '</span>' : '')


Your line:
'link' => (!empty($row['id_last_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_last_member'] . '">' . $row['last_poster_name'] . '</a>' : $row['last_poster_name']) . ( !empty($row['bump_timestamp']) && $row['bump_timestamp'] >= $row['last_poster_time'] ? ' <span title="'.$txt['bumped_last'].strip_tags(timeformat($row['bump_timestamp'], true)).'">'.$txt['bump_open'].$txt['bumped'].$txt['bump_close'].'</span>' : '' )

I don't feel like breaking anything and I'm unsure of the syntax for these blocks. I did stare at them a while ;). Also there may be others out there with the same issue ;).
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Sakae

Real portuguese (brazilian) translation (joomlaz translation makes no sense at all, seems he used a automatic translator):

<file name="$languagedir/Modifications.brazilian.php" error="skip">
   <operation>
      <search position="end" />
         <add><![CDATA[
// Começo da modificação Bump Topics
$txt['bump'] = 'Bump';
$txt['bump_open'] = '(';
$txt['bump_close'] = ')';
$txt['bumped'] = 'levantado';
$txt['bumped_last'] = 'Última levantada: ';
$txt['bump_times_singular'] = 'tempo';
$txt['bump_times_plural'] = 'vezes';
$txt['nobump_eligible'] = 'Apenas o tema de início, o último usuário que enviou a mensagem e administradores estão autorizados a levantar o tópico.';
$txt['nobump_wait'] = 'Você deve aguardar 24 horas antes de dar um novo Bump';
$txt['nobump_guests'] = 'Visitantes não podem dar Bump nos tópicos.';
$txt['nobump_locked'] = 'Tópicos bloqueados não podem ser levantados.';
// Final da modificação Bump Topics
]]></add>
   </operation>
</file>

<file name="$languagedir/Modifications.brazilian-utf8.php" error="skip">
   <operation>
      <search position="end" />
         <add><![CDATA[
// Start of Bump Topics Mod
$txt['bump'] = 'lombar';
$txt['bump_open'] = '(';
$txt['bump_close'] = ')';
$txt['bumped'] = 'lombado';
$txt['bumped_last'] = '&Uacute;ltimo lombado: ';
$txt['bump_times_singular'] = 'vez';
$txt['bump_times_plural'] = 'vezes';
$txt['nobump_eligible'] = 'Apenas o tema de arranque, o &uacute;ltimo cartaz e administradores que est&atilde;o autorizados a lombada o t&oacute;pico.';
$txt['nobump_wait'] = '24 horas deve decorrer ap&oacute;s o &uacute;ltimo poste/anterior lombado do t&oacute;pico antes que voc&ecirc; pode (re)lombar ele.';
$txt['nobump_guests'] = 'Os visitantes n&atilde;o podem dar lombada aos t&oacute;picos.';
$txt['nobump_locked'] = 'Os t&oacute;picos Bloqueados n&atilde;o pode ser lombados.';
// End of Bump Topics Mod
]]></add>
   </operation>
</file>
http://www.tigrelog.com.br
l: simple p: machines

Adish - (F.L.A.M.E.R)

can there be a setting made as such that only a specific section of the forum can have this bump feature ? As i have a request section in my forum, i would like to keep it only for that section alone.. and also some special sections where needed...

Please tell me what to do, to add in this type of setting.

Thank you.

karlbenson

It would be a large undertaking to make it enabled per-board.
For the forseeable future I don't think I'll have the time to add it as a feature, nor really do I have the desire to expand the functionality.

But never say never.

Adish - (F.L.A.M.E.R)

well, best of luck with that.... please try it if you can do it.. i will be very greatful to you.. Thank you.

swan

Does this mod work with 1.1.5?

If not is there one that does?

Advertisement: