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

[BETA] Bump Topic 0.0.3

Post 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
Last edited by Joe Belmaati on Mon Aug 22, 2005 11:53 pm, edited 4 times in total.
Image
Mr. Regulator
Registered User
Posts: 18
Joined: Fri Aug 19, 2005 4:30 pm

Post by Mr. Regulator »

instructions please????

No .txt file included
User avatar
ScarabWeb
Registered User
Posts: 107
Joined: Sat May 07, 2005 3:09 pm
Contact:

Post 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!
ScarabWeb :: Affordable Hosting Solutions
High Quality Hosting to fit everyone's need!
Shared / Reseller / VPS / Dedicated Hosting
cPanel :: WHM :: Fantastico Deluxe :: RVSkin
Joe Belmaati
Registered User
Posts: 2110
Joined: Sun Sep 28, 2003 7:35 pm
Location: Denmark

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

Post by cardude »

Thanks for making this. I will try it on my board.
User avatar
3Di
Former Team Member
Posts: 16053
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano 🇮🇹 - Frankfurt 🇩🇪
Name: Marco
Contact:

Post by 3Di »

very nice, Joe.
To request support for our extensions you can also contact me here: phpBB Studio

Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
🚀 Looking for a specific feature or alternative option? We will rock you! 🚀
User avatar
James78
Registered User
Posts: 811
Joined: Sat Jul 30, 2005 4:54 pm
Location: Washington, USA
Contact:

Post 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
User avatar
ScarabWeb
Registered User
Posts: 107
Joined: Sat May 07, 2005 3:09 pm
Contact:

Post 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.
ScarabWeb :: Affordable Hosting Solutions
High Quality Hosting to fit everyone's need!
Shared / Reseller / VPS / Dedicated Hosting
cPanel :: WHM :: Fantastico Deluxe :: RVSkin
User avatar
James78
Registered User
Posts: 811
Joined: Sat Jul 30, 2005 4:54 pm
Location: Washington, USA
Contact:

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

Post 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.
User avatar
3Di
Former Team Member
Posts: 16053
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano 🇮🇹 - Frankfurt 🇩🇪
Name: Marco
Contact:

Post 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.
To request support for our extensions you can also contact me here: phpBB Studio

Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
🚀 Looking for a specific feature or alternative option? We will rock you! 🚀
»»EDDY««
Registered User
Posts: 220
Joined: Mon Jun 02, 2003 10:14 am
Location: Poland/Slupsk
Contact:

Post by »»EDDY«« »

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


cooling system & water cooling
Joe Belmaati
Registered User
Posts: 2110
Joined: Sun Sep 28, 2003 7:35 pm
Location: Denmark

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

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

Post 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?
Image
Post Reply

Return to “[2.0.x] MODs in Development”