The upgrades for phpBB seem to be done via a script i.e. the whole thing is automated just like doing a fresh install except with greater potential for a total cock up.

There is a rather good tutorial here
http://codewalkers.com/tutorials/53/1.html
It contains all the information, including complete code for a image gallery mod. It doesn't deal with file uploading or restricted access etc but that is something for the PunBB end of things.

I will have a look at autothumbnail.

Do you actually want the script to create the thumbnails. If so, does your installation of php have GD support enabled.

Having at a quick look at hotscripts, there are plenty of gallery creation scripts about. Rickard may be into reinventing the wheel but personally I am happier stealing other peoples wheels.

You have to think through exactly how you want it to work before you can start thinking about how to do it. For example

1. Upload images to a separate directory using the attachment mod method.
2. When someone posts a picture and uploads a link will take you to the picture. Now, is that one large picture on its own with a link back to a thumbnail gallery or would the link take you to a thumbnail gallery.
3. If you are going to use a thumbnail gallery where is is linked from. No point in linking from individual posts, a simply link at the top of the board should do.

See what I mean. Working out the way you want it to work is probably the most difficult bit. Once you know exactly what you want to do the rest is just code bashing.

2,780

(2 replies, posted in PunBB 1.2 show off)

Excellent site and a first class job of integrating the board into the design.

That was a waste of time. He seems to have installed Invision on a page all of its own.

2,782

(6 replies, posted in General discussion)

Congratulations to you and your sister. Given the horizontal close eyed posture I would have though a budding England penalty taker.

#Joey+.sister>:first-child
(I am told thats the CSS selector for a nephew)

RNilsson wrote:

Bear in mind that xml/xslt/sablotron is not available on every webhost when designing the solution which it may be.

True. Another solution is to base the front page of a website on a template like main.tpl. Everytime a news item is added via PunBB a new static webpage would be generated from the template incorporating the latest news update. Anyway, I am off topic as usual. I think the original poster wanted exactly the opposite didn't he smile though I think that using PunBB to post news items is a better solution than using a news script to post PunBB topics.

Rickard wrote:

I'm thinking about how to implement this for PunBB 1.2. Not sure how I will solve it though.

I've been looking at this sort of thing as well; I have a need to put an article/commenting system on a site with PunBB as a forum. It would be nice to combine the two. So far I have come to three conclusions

1. The output which appears as articles or news items on the sites front page should be static rather than dynamic. There is no point in querying a database every time a page is loaded when the page only changes twice a week.
2. The posting of comments is the same as posting replies so it is pointless to duplice this functionality, just use PunBB.
3. If a forum is going to be designated as a news forum then forum permissions will have to be altered to allow only certain people to start new topics which will become the news items.

I am beginning to fall in love with xml/xslt so I am thinking of using PunBB to ouput news/articles as xml files and then generating static xhtml using xslt via sablotron for the sites front page.

If anybody wants a blog which could be made to work with PunBB then they could do worse than look at Wordpress which is also a php/mysql system.

2,785

(11 replies, posted in Programming)

You should bear in mind is that you can run multiple scripts from one database. All you have to do is make sure when you install them you specify a prefix for the tables to prevent attempting to create more than one table with the same name. For instanace you could install PunBB with a prefix of "pun" and then install a blog script with the prefix "blog". Things only get difficult when you try to integrate the login system i.e. so the blog uses PunBB's login/membership system so users don't have to login seperately for the blog and PunBB. Hopefully someone else can point you in the right direction for doing that.

The other option is modding PunBB to use topics as news items and replies to them as comments but that requires quite a lot of work. In particular you would have to be able to set permissions for individual forums otherwise anybody could post a new topic which would appear as a blog/news item. I think there are already some posts around here about using PunBB as a news system.

2,786

(20 replies, posted in PunBB 1.2 discussion)

Rickard wrote:

As you can see in the changelog, a few bugs have popped up in 1.1.1, but they aren't all that serious. Do you think I should release 1.1.2 or should I wait a while?

Would it do any harm to publish the code for some of the easier fixes so the technically minded could do their own fixing? After all, I am sure some of the bugfixes are a lot simpler to do than, for example, installing a large mod.

2,787

(20 replies, posted in PunBB 1.2 discussion)

JohnS wrote:

But surely some of these mods are a definite plus to punbb. Why aren't they incorporated into the next version?

Because some of us are using PunBB specifically because it doesn't have a bloated feature set. If PunBB came with Polls, Private Messaging and various other bits and bobs time would have to be spend ripping them back out. There are of course mods which simply improve the functionality of existing features which could be incorporated.

You also get your old website if you just enter PunBB Resource which is exactly the situation I thought it better to avoid in the future.

Thats better. Layout looks fine.

Two little things.
First, here in the UK we spell it CENTRE. (I keep doing the same thing, it's spending too much time coding in American that does it).
Second, isn't it going to get confusing for search engines having two sites called PunBB Resource. Having two sites decicated to PunBB I don't see as a problem, but having them called the same thing might be.

PunBB 4 All
Everything PunBB
Dales PunBB Centre

P.S. Why are my posts showing up in Swedish time  (GMT+1)

2,790

(42 replies, posted in General discussion)

I assumed it was because he was always in the doghouse.

2,791

(18 replies, posted in PunBB 1.2 show off)

Interesting, so he just converted an IPB Skin to a a ready made portal. Well I suppose thats one way of doing it.

2,792

(26 replies, posted in PunBB 1.2 discussion)

Since it is a Warez board it might be just as well not to have your name on it. Matt Meacham should be so lucky.

2,793

(42 replies, posted in General discussion)

Thanks for the name change. A whole new image at the press of a key. I wish real life was that simple.

2,794

(18 replies, posted in PunBB 1.2 show off)

It's Invision Board I think.

2,795

(42 replies, posted in General discussion)

And I will take Paul before anybody else does.

Just tried it in Mozilla 1.5, same problem, though it works fine in Netscape 4.8. It is curious that this is the only site that is having problems with Mozilla based browsers which indicates that it's a combination of things i.e. server plus browser.

The only thing I have been able to track down is that Gecko based browsers have a problem if the mime type of css files is set incorrectly by the server. Try putting an .htaccess file in your root directory (assuming Apache) with this

AddType text/css .css

Just done some more research on this. It appears this problem is fairly widespread and the world is littered with servers who have mine type set as text/plain. The problem is that in compliance mode Mozilla Firebird insists on the server mime type matching the document mime type in the webpage. If it doesn't then it will just ignore the css file. The quick way to test for this problem would be to change the doctype definition in main.tpl to one which would throw Firebird into quirks mode (or just remove the doctype alltogether). This problem does not affect IE or Opera because they are simply not very fussy about mime types.

This is interesting stuff. It occurs to me that post vetting as is being worked on would also be useful to anybody who wanted to develop news/articles/tutorial mods where it was also essential that submissions were vetted prior to making it onto the board.

I have just tried in in Firebird 0.7. You are right, it doesn't work. I used a developer add in to display the styesheet and it finds it and displays the contents OK. If you view page information it also shows the correct link to the styelsheet. I am baffled.

Working in IE5, IE5.5 and IE6 OK.

What happens if you log in a a member and change your stylesheet preference? Could you post another test post, the newest one that shows up is two days old.

2,799

(14 replies, posted in PunBB 1.2 troubleshooting)

BTW: exactly the same thing happens if you leave out the closing comma.

I just had an idea.

if (!isset($lang_common))
    exit('There is no valid language pack \''.$language.'\' installed. Plese check $language setting in config.php.');

The whole of en_common.php is one array. If there is an error in the array then $lang_common will not initialise so isset($lang_common) will return false. Sorry for the non technical input, I'm no coder, but that looks to me like the commonsense explanation. Would the answer be to initialise $lang_common at the top the language file before getting to the array?

2,800

(14 replies, posted in PunBB 1.2 troubleshooting)

I deleted a closing quotation mark in en_common.php to make this line

'Delete posts'  =>  'Delete multiple posts,

(note the missing end quotation mark)

I uploaded the doctored file to my server. Now take a look
http://www.post21.co.uk/punbb