News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPied.com:
phpBB old topics locker
December 09, 2005 @ 06:56:06

On phpied.com today, there's their look at their needs in a phpBB module - and how they ended up solving it on their own.

I had this request to implement a feature on a phpBB board whereby topics older than one month to get deleted. A quick search on phpbbhacks.com revealed a result - Auto Lock hack, but it had a disturbing note saying that it's not recommended for larger boards, although I couldn't figure out why. Anyway, the hack looked too involved, with DB changes, new Admin Panel options, etc., so I decided to hack something together quickly. Turned out to be pretty easy. Here' s the result.

Their version uses a simple SQL statement to do a perioding update on the table, marking the ones over a month old as locked. If the update fails, an email is sent. Then, so that no cron job would be needed to make these updates, a semi-random item was placed in the page to run when the user accesses it normally...

5 comments voice your opinion now!
phpbb automatic topic lock phpbb automatic topic lock


blog comments powered by Disqus

Similar Posts

Forumtools.Blogspot.com: Google Maps Tailored For phpBB Forums

Brett Bieber's Blog: Chiara_PEAR_Server Release Droplet for Mac OS X

Davey Shafik's Blog: Sneak Peek: Zend_Service_Server - name and framework subject to change

The Shadow Fox Network: Creating A Scaffold-like Class in PHP or An Automatic CMS For a Table

Ed Eliot's Blog: Automatic merging and versioning of CSS/JS files with PHP


Community Events





Don't see your event here?
Let us know!


testing podcast unittest configure application api release community interview laravel library series threedevsandamaybe developer language list install introduction wordpress code

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework