Page 1 of 5

[BETA] Bump Topic 0.0.3

Posted: Sat Aug 20, 2005 1:55 am
by Joe Belmaati

Code: Select all

##############################################################
## MOD Title: Bump Topic
## MOD Author: Joe Belmaati < belmaati@gmail.com > (Joe Belmaati) N/A
## MOD Description: This MOD adds a "Bump Topic" button in viewtopic.
## When clicked, an automatic hidden post is added to the topic updating
## the topic time and new post flags.
## MOD Version: BETA 0.0.3
##
## Installation Level: Easy
## Installation Time: 10 Minutes
## Files To Edit: (6)
##              viewforum.php
##              viewtopic.php
##              language/lang_english/lang_admin.php
##              language/lang_english/lang_main.php
##              templates/subSilver/viewtopic_body.tpl
##              templates/subSilver/subSilver.cfg
##
## Included Files: (7)
##              bump.php
##              admin_post_bumps.php
##              includes/functions_bump.php
##              templates/subSilver/bump_body.tpl
##              templates/subSilver/admin/post_bumps.tpl
##              templates/subSilver/images/lang_english/bump.gif
##              db_update.php
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: It is VERY important to acknowledge that this
## MOD is powered by the MOD insert_post written by Netclectic
## and other ideas for coding this up were derived from Manipe's
## Topic Posters MOD. Also a big thank you to Thatbitextra for
## creating the bumptopic graphic button. :-)
##
## You can either perform the SQL commands manually,
## or you can upload and run db_update.php. Remember to delete
## this file once the database update has been performed.
##############################################################
## MOD History:
##
##   2005-08-23 - BETA 0.0.3
##      - changed: only topic starter, mod, and admin can auto bump
##      - added: viewtopic-like admin module to monitor bump posts
##
##   2005-08-22 - BETA 0.0.2
##      - fixed: potential session error in bump.php
##      - changed: post bumps are hidden
##      - added: admin module to purge post bumps
##
##   2005-08-20 - BETA 0.0.1
##      - initial BETA
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
Image

Synopsis

This MOD adds a "bump topic" button next to the post buttons at the bottum of every post. It enabeles anyone to bump the post without any further ado. All posting related matters are handled automatically, and whoever bumped the topic will simply receive a small pop-up that confirms that the bump has taken place. In the pop-up there is also a link to close the pop-up and return to the forum that the topic was in plus a similar link that jumps to the topic instead.

Admin gets a new module entitled "Post Bumps" under the Forum Admin. This module enables admin to purge all Auto bump posts and resync topics accordingly.

Special attention has been paid to the following:
:arrow: Auto bump does not count as a user post
:arrow: Auto bump does not insert data into the search tables
:arrow: Auto bump posts are hidden
:arrow: Auto bump posts are marked "[BUMP]" In viewforum (topic last post) and link to last post is removed.
:arrow: Auto bump posts do not trigger email notification (who wants to go look at a topic that has merely been bumped).
:arrow: Auto bump posts do not count when computing topic pagination for topics and viewforum topic "go to page".
:arrow: Only Topic Starter, Admin, and Moderator can auto bump posts.

Ideas for improvements (ACP):
:arrow: Settable allowed bump interval
:arrow: Settable max bumps per topic

This MOD is made in response to a request in the MOD request forum. Then I noticed that a bump mod already exists. I don't know how that MOD would differ from this one and which one would fit your needs the best. Try both I'd say....

DEMO

DOWNLOAD

Posted: Sat Aug 20, 2005 3:03 am
by Mr. Regulator
instructions please????

No .txt file included

Posted: Sat Aug 20, 2005 7:42 am
by ScarabWeb
Mr. Regulator wrote: instructions please????

No .txt file included

The instructions are in the INSTALL.mod file which can be opened in any text editor.

Looks like a neat MOD, I'll be trying it out later today!

Posted: Sat Aug 20, 2005 8:30 am
by Joe Belmaati
Yes, look for INSTALL.mod. Those are the instructions. I have added a demo site. No need to register. Bump til your heart's content :D

Posted: Sat Aug 20, 2005 5:35 pm
by cardude
Thanks for making this. I will try it on my board.

Posted: Sat Aug 20, 2005 8:14 pm
by 3Di
very nice, Joe.

Posted: Sat Aug 20, 2005 9:24 pm
by James78
Nice mod, however I think one thing should be added (something very useful). Can you include a "return to last topic" link in the pop up, I think it'd be more useful that way, Thanks :D

Posted: Sat Aug 20, 2005 9:28 pm
by ScarabWeb
Just an idea... wouldn't it be nicer if it did not add the message *bump*? I mean, this way you might as well just post reply and add *bump* to the post.
I thought it would bump the post to teh top without adding anything to the actual post.

Posted: Sat Aug 20, 2005 9:31 pm
by James78
ScarabWeb wrote: Just an idea... wouldn't it be nicer if it did not add the message *bump*? I mean, this way you might as well just post reply and add *bump* to the post.
I thought it would bump the post to teh top without adding anything to the actual post.


how about this: he should also put in a option so when the Admins in the ACP, you can set a option to "yes" or "no" to post replies when someone bumps

Posted: Sat Aug 20, 2005 9:31 pm
by cardude
ScarabWeb wrote: Just an idea... wouldn't it be nicer if it did not add the message *bump*? I mean, this way you might as well just post reply and add *bump* to the post.
I thought it would bump the post to teh top without adding anything to the actual post.


That would be nice. I like it when they don't say anything, they just bring it to the top of the subforum, and mark it as unread.

The other mod made a post that said bump, bump, bump, and that is why I requested something different.

Sorry to complain.

Posted: Sat Aug 20, 2005 9:32 pm
by 3Di
ScarabWeb wrote: Just an idea... wouldn't it be nicer if it did not add the message *bump*? I mean, this way you might as well just post reply and add *bump* to the post.
I thought it would bump the post to teh top without adding anything to the actual post.


Like a BBcode, so..
* Le Bump * BBcode, sounds cool.. :)

i guess the goal of this mod was what it really does... by my side.

Posted: Sun Aug 21, 2005 6:50 am
by »»EDDY««
Spammer MOD;-)

Posted: Sun Aug 21, 2005 9:42 am
by Joe Belmaati
James78 wrote: Nice mod, however I think one thing should be added (something very useful). Can you include a "return to last topic" link in the pop up, I think it'd be more useful that way, Thanks :D
Absolutely, no problem.

As for the other suggestions - I see the point. Adding a post puts all of phpBBs existing architecture to work (bringing the topic to the top of the forum, adding un-read flags etc). If I simply update the posting time of the topic, then there will be trouble down the line, and replies will be listed as posted before the topic itself. A workaround could be to hide the bump post and add an admin tool to purge bump posts from time to time. I'll try to think of a way to bump the post without adding a post, though....

Posted: Sun Aug 21, 2005 11:02 am
by Cybertims
I added this MOD but now get this error when bumping a post....
phpBB : Critical Error

Error updating sessions table

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' session_topic = '0' WHERE session_id = 'ed48a7f2937da565

UPDATE phpbb_sessions SET session_time = 1124622040, session_page = , session_topic = '0' WHERE session_id = 'ed48a7f2937da565dfb3a5094f42b937'

Line : 305
File : /homepages/22/d116823222/htdocs/forum/includes/sessions.php


That is what appears in the little window instead of the bump confirmation.

Any ideas?

Cheers

Posted: Sun Aug 21, 2005 11:08 am
by Joe Belmaati
This would be a clash with another MOD. The field 'session_topic' does not exist in a standard phpBB distribution. Any idea what MOD would be adding this field?