[BETA] Bump Topic 0.0.3

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

[BETA] Bump Topic 0.0.3

Postby Joe Belmaati » Sat Aug 20, 2005 1:55 am

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
Last edited by Joe Belmaati on Mon Aug 22, 2005 11:53 pm, edited 4 times in total.
Image
User avatar
Joe Belmaati
Registered User
 
Posts: 2111
Joined: Sun Sep 28, 2003 7:35 pm
Location: Denmark

Postby Mr. Regulator » Sat Aug 20, 2005 3:03 am

instructions please????

No .txt file included
Mr. Regulator
Registered User
 
Posts: 18
Joined: Fri Aug 19, 2005 4:30 pm

Postby ScarabWeb » Sat Aug 20, 2005 7:42 am

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!
ScarabWeb :: Affordable Hosting Solutions
High Quality Hosting to fit everyone's need!
Shared / Reseller / VPS / Dedicated Hosting
cPanel :: WHM :: Fantastico Deluxe :: RVSkin
User avatar
ScarabWeb
Registered User
 
Posts: 107
Joined: Sat May 07, 2005 3:09 pm

Postby Joe Belmaati » Sat Aug 20, 2005 8:30 am

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
Image
User avatar
Joe Belmaati
Registered User
 
Posts: 2111
Joined: Sun Sep 28, 2003 7:35 pm
Location: Denmark

Postby cardude » Sat Aug 20, 2005 5:35 pm

Thanks for making this. I will try it on my board.
User avatar
cardude
Registered User
 
Posts: 67
Joined: Sat May 07, 2005 2:06 am

Postby 3Di » Sat Aug 20, 2005 8:14 pm

very nice, Joe.
Give Peace A Chance.. Pass ON It!
Image
User avatar
3Di
Registered User
 
Posts: 7983
Joined: Mon Apr 04, 2005 11:09 pm
Location: 45°26' N, 09°10' E

Postby James78 » Sat Aug 20, 2005 9:24 pm

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
User avatar
James78
Registered User
 
Posts: 777
Joined: Sat Jul 30, 2005 4:54 pm
Location: Washington, USA

Postby ScarabWeb » Sat Aug 20, 2005 9:28 pm

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.
ScarabWeb :: Affordable Hosting Solutions
High Quality Hosting to fit everyone's need!
Shared / Reseller / VPS / Dedicated Hosting
cPanel :: WHM :: Fantastico Deluxe :: RVSkin
User avatar
ScarabWeb
Registered User
 
Posts: 107
Joined: Sat May 07, 2005 3:09 pm

Postby James78 » Sat Aug 20, 2005 9:31 pm

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
User avatar
James78
Registered User
 
Posts: 777
Joined: Sat Jul 30, 2005 4:54 pm
Location: Washington, USA

Postby cardude » Sat Aug 20, 2005 9:31 pm

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.
User avatar
cardude
Registered User
 
Posts: 67
Joined: Sat May 07, 2005 2:06 am

Postby 3Di » Sat Aug 20, 2005 9:32 pm

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.
Give Peace A Chance.. Pass ON It!
Image
User avatar
3Di
Registered User
 
Posts: 7983
Joined: Mon Apr 04, 2005 11:09 pm
Location: 45°26' N, 09°10' E

Postby »»EDDY«« » Sun Aug 21, 2005 6:50 am

Spammer MOD;-)
Make a Tiny URL in excellent domain heh.pl


cooling system & water cooling
User avatar
»»EDDY««
Registered User
 
Posts: 220
Joined: Mon Jun 02, 2003 10:14 am
Location: Poland/Slupsk

Postby Joe Belmaati » Sun Aug 21, 2005 9:42 am

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....
Image
User avatar
Joe Belmaati
Registered User
 
Posts: 2111
Joined: Sun Sep 28, 2003 7:35 pm
Location: Denmark

Postby Cybertims » Sun Aug 21, 2005 11:02 am

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
Cybertims
Registered User
 
Posts: 69
Joined: Sat Dec 04, 2004 6:30 pm
Location: London UK

Postby Joe Belmaati » Sun Aug 21, 2005 11:08 am

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?
Image
User avatar
Joe Belmaati
Registered User
 
Posts: 2111
Joined: Sun Sep 28, 2003 7:35 pm
Location: Denmark

Next

Return to [2.0.x] MODs in Development

Who is online

Users browsing this forum: No registered users and 5 guests