1

(11 replies, posted in PunBB 1.2 discussion)

Smartys wrote:

For a couple reasons:
A. What happens when I have two identically named forums?
B. It makes the actual text after forum# irrelevant: you can change the name of the forum and keep the same link
C. If we're given the ID in the URL like that, we don't have to do a scan through the forums table for all forums matching that name.

I addressed this in my version of punbb.

A. If you have a non-unique forum title. append the forum id. That will automatically make it unique (obviously still need to check it ... but 99 times out of 100 it will be true)
-- Forum named: The Main Forum => "the-main-forum" (id 1)
-- Forum named: The Main Forum => "the-main-forum-2" (id 2)

C. My solution was to create an md5 hash of the url part and save the hash in a char(32) with a unique index
-- id = 1 -- 288c7cc23607ce5096d62bbe7c7afb1e
-- id = 2 -- 3f93a8178bb0650749b12ee235c15f98

C. b) I dont really see this becoming a problem for the forum link lookup (unless there are millions of forums hehe), but it could become problematic for the topic link lookup (both work the same way), but we can go ahead and eliminate a considerable amount of threads if we know the forum id. Millions of topics is reasonable, but isnt that why we are able to build db clusters with quad-core processors and scsi drives? smile

Smartys wrote:

Q: May I remove the copyright from the source code?

No. The copyright notice in all the source files must be left intact. Any modification or removal of this copyright is illegal under the terms of the GNU General Public Licence.

ty

Smartys wrote:

I think bekko meant the copyright at the top of every PunBB file, which must be kept intact (along with the GPL notice)

But yeah, very cool smile

right.. but

Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)

can be removed/modified? correct?

4

(4 replies, posted in PunBB 1.2 troubleshooting)

Huey wrote:

Eramus
it worked a treat. Easy when you know how. All you have to do is open your eye's?
Thanks

np.. glad i could help smile

hcgtv wrote:

No, you can leave that off, PunBB 1.3 doesn't have it at all. Actually it was something I always removed from any PunBB install, cause it was confusing and also it could get Rickard in trouble if the software is used for something less desirable, like a porn site.

kewlness... ty all for the info

hcgtv wrote:

Cracker Barrel?

mmmm Cracker Barrel smile

we will definitely need to get together.

6

(4 replies, posted in PunBB 1.2 troubleshooting)

you cant do this to categories, but this can be accomplished by changing a group's forum permissions

Administration -> Forums -> Edit

elbekko wrote:

The copyright notice in your files is indeed still required.
In essence you'd be forking PunBB.

Interesting project btw wink

gotcha

does it still need to read?

Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)

or can i include myself?

Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)
Copyright (C) 2007  My Name (my@email.com)

or

Copyright (C) 2007  My Name (my@email.com)

i want to make sure to appropriately/legally give credit where credit is due.

and ty.. im pleased with how easily this has come together smile

not a joke at all, but like i said id like to keep exposure to minimum until i find out what i need to do keep everything kosher. the last thing i want to do is step on anyones toes or get myself in trouble.

what i put together needs a bit of work (specifically my stub file -- index.php) before its shown to anyone, but the punbb team provided an excellent base for doing all of this. smile

Over the past two weeks I have been working on making several modifications to the punbb source. I decided to start with punbb because its very lightweight and very minimalistic, but I knew that my modifications would seriously alter the punbb source/structure (yes I realize that I wont be able to easily upgrade -- but I also dont really need many of the features in 1.3). Id like to know if I still need to include the copyright notices in my files and how to decide on where they need to be placed. I havent decided if I will release this to the public. The answers I receive will help better decide that. Obviously, I dont want to break any laws, but considering my mods below, Im not sure how to tackle it. The meat of what I have is still very similar, but the app structure and request handling have dramatically changed. It works similarly, but it has evolved into a very different beast.

mods include:
- moving all code out of the web root -- using mod_rewrite to push all requests (except images and css) through index.php (completely unrelated to index.php in a stock punbb release)
- elimination of all get variables -- clean urls all around
-- (/viewforum.php?id=1 => /view-forum/id/1 or /[forum-name])
-- (/viewtopic.php?id=23&p=3 => /view-topic/id/23/p/3 or /[forum-name]/[topic-title]/p/3)
-- (/profile.php?id=1&section=essentials => /profile/id/1/section/essentials)
-- also keeps track of thread title changes -- old urls containing the old thread title will still load the correct thread
- eliminated cross-db-compatible switches (im only going to be using mysql)
- converted source to an OO structure (php5) (for instance profile.php was split into 17 objects (2 are abstracts, 1 per section and 1 per action), moderate.php was split into 7 (again, 1 per action) and so on) -- on avg it eliminates 1/2-1/3 of the code that gets parsed per request
- developed a simple template engine so that my designers arent tempted to screw up any php when editing html -- no html in any of the objects
- single code base for running multiple forums (separate dbs) -- forum and options are loaded based on the base url -- allows for different admins, mods, groups, etc per forum, but same users
- using a shared session instead of cookies to keep track of logged in users. this allows me to provide a single sign on to all of the forums.
- login based on email address -- allows users to have multiple usernames -- currently only admin can hand out additional usernames
- added a registry (similar to Zend Framework) for holding reused objects

Id love to show this off, but I just finished implementing the template engine, and it needs some more testing. Plus, my home connection doesnt have enough bandwidth to handle tons of requests. I would also like to resolve my concerns about copyright/license before I expose this to people outside of my dev team. FYI, for now I am planning to keep the link and the copyright notice at the bottom of the page, just slightly modified, so that I am still supporting punbb, because what I started with is well written and was easily modified.