6,351

(33 replies, posted in PunBB 1.2 troubleshooting)

There's nothing wrong with the code or the query. It's something with the communication between PHP and MySQL on your server. What version of MySQL are you using?

Also, do have root access to the server? In that case, could you tail -f the mysqld logfile when attempting to open the admin page?

6,352

(15 replies, posted in PunBB 1.2 troubleshooting)

Well, no. You chmod the avatar directory itself. If you are using an FTP client to do it, it should just be a matter of right-clicking the avatar-directory and selecting something like "Change permissions" or something similar. Then, enter 777 or make sure that all checkboxes are checked.

6,353

(4 replies, posted in PunBB 1.2 troubleshooting)

Is the clock set correctly on the server? Have you set the server timezone in admin/options correctly? Have you set the timezone in your user profile correctly?

About the recent posts thing, have a look in faq.html that was included in the download.

6,355

(0 replies, posted in News)

And now I received a Japanese language pack. This time our thanks go out to Mitsuhiro Yoshida of mitstek.com. In order for search to work properly in current versions of PunBB, a small change has to be made to one of the scripts. Instead of posting it here, I wrote it down in a topic in the forums. You can find it here.

It's weird how language packs have a tendency to end up in my inbox two at a time. It seems almost every time I post one of these news bits, I've already done one similar earlier that day or the day before. Oh well, the world is a strange place.

The information below applies to PunBB 1.1, 1.1.1 and 1.1.2. Versions after that are not affected.

In order for search to work when using the japanese lang pack, a small change must be made to search.php. Open up the file in a text editor and go to line 56. There, replace the text 'shift_jis' with 'EUC-JP'. Save and upload the file.

6,357

(0 replies, posted in News)

Thanks to Janis Indans, you can now find a Latvian language pack on the downloads page.Liels paldies!

6,358

(2 replies, posted in PunBB 1.2 discussion)

Have a look in faq.html. The replacement tag for including files in the templates is pun_include, i.e.

<pun_include "menu.txt">

Have a look at http://punres.cactuz.nu/

6,360

(3 replies, posted in PunBB 1.2 show off)

Prodhe wrote:

Thanks for an excellent forum, Mr. Andersson! (just like in Matrix - "Mr. Andersson"!)

Yepp, that's me :D

I recommend that you contact the mod author directly. His e-mail can be found here: http://punbb.org/forums/viewtopic.php?id=3084

6,362

(4 replies, posted in General discussion)

Joey wrote:

Mod Request:

Can we have a Mod that measures Rickard's ego count? It's interesting to watch how he deals with all this praise...

;)

I get really obnoxious. I don't say hello when I bump into old friends and stuff like that. Oh, also, fame and fortune doesn't make you happy! It's lonely at the top.

6,363

(2 replies, posted in PunBB 1.2 discussion)

Have a look at this mod.

6,364

(12 replies, posted in PunBB 1.2 show off)

Ah, much better. I like it this way.

Ok, great. Do that.

You are correct. I'll update the lang pack.

6,367

(31 replies, posted in Feature requests)

Frank H wrote:

nah, really, if you check into it... what this table would need to store, is like 30 bytes per read post for that session ... (user id = int(10), topic id = int(10), unix timestamp =int(10) == 30bytes)

Actually, it's only 12 bytes. An integer takes up 4 bytes (32 bits).

Frank H wrote:

2'236'962 read posts in store for that session, and considering that the cookie will default time out in like 10 minutes or so, you either should have a very quick hand or an extreme wide audience ... just over 3700 pageviews/s (Edit: forum pageviews that is)

MAX_ROWS will limit the number of rows in a HEAP table long before that.

6,368

(31 replies, posted in Feature requests)

MarcB wrote:

Frank H: can leave an item in memory with PHP?

No, not without third party extensions to PHP.

Edit: See shmop.

6,369

(31 replies, posted in Feature requests)

Ok, first of all. People all over the world have been using vBulletin 2 (which works just like PunBB) for years now and I have never ever seen anyone "complain" about it there. What's up?

There are known implementations, but they are all ugly. The most common implementation is storing the topics you've read in an array that is then serialized and saved in a cookie. I believe this is also the simplest way of doing it. There are issues though. How long should you wait before a topic is considered unread again? How many topics should the forum keep track of? If your visiting a large forum with topic IDs like 231874 and you read 200 topics, that cookie will become quite large (about 2000 bytes).

The second possible solution is using the database like Frank H suggested. However, it would mean at least two to three more queries (SELECT read topics, UPDATE new topics and DELETE old topics) for every single page view. Sure, one could use a HEAP table that will speed it up, but there's still the general communication overhead when talking to the database. Also, HEAP tables are only supported by MySQL and most hosts have set MAX_ROWS to a low value so that their customers don't use up too much memory.

The jury's still out on this one.

6,370

(16 replies, posted in General discussion)

Sleep? We don't need no stinkin' sleep!

Hahaha

But what's the use of the quickreply if you still have to click a button before you can enter a reply? If you have to click to show it, you might as well click "Post reply" and get the full post screen.

6,373

(9 replies, posted in PunBB 1.2 discussion)

Have a look at the files in include/template/. Especially main.tpl.

I actually think hej is swedish, danish and norwegian.

Well, maybe. There's also the quickjump down there though. Just click Go and you jump back to the forum view.