myhosting.com/forums/someonesforum/index.php
would be translated by .htaccess to
myhosting.com/forums/index.php?forum=someonesforum

627

(9 replies, posted in PunBB 1.2 bug reports)

That's because unicode is multi-byte, which uses 2 bytes instead of 1 for a single character.

chucky wrote:

+1, if you have 200 forums on a shared server plz TELL me who this webhost is !!! big_smile big_smile big_smile

Dreamhost. That's where PunBB-hosting is.

softlinks are a very simple and efficient way to deal with multi-forums ... ( i think that's what every forum hosting service like mypunbb does )

Hardly, just sending the identifier through the URL is much easier.

This is in viewtopic.php I take it? smile

That's because the main query is set to be unbuffered, so when another query runs after it the resultset gets deleted. You can change this by replacing true with false in the last argument of the main query.

630

(4 replies, posted in General discussion)

This is not a standard PunBB feature and thus not a bug.

Try disabling your adblocking software, and if that doesn't solve the issue, contact the webmaster of that forum.

Yes, I posted that link as a reference on how to use it smile

It is the mathematical markup format used by eg. Wikipedia.
http://en.wikipedia.org/wiki/LaTeX
http://en.wikipedia.org/wiki/Wikipedia:LaTeX

There is a LaTeX mod wink

Did you run install_mod.php when installing the mod?

635

(3 replies, posted in PunBB 1.2 discussion)

Use this: http://be2.php.net/manual/en/ref.ftp.php

It's the same query most likely.

How is that safer?

Correct me if I'm wrong, but wouldn't making a new post in the forum result in update_forum() being run and fixing this issue?
It's certainly worth a try I'd say.

News scripts are scripts like those on the front page of punbb.org. With this change, you'd be able to make a 'simple' join, like so:

SELECT p.message, t.subject FROM topics AS t INNER JOIN posts AS p ON t.first_post_id = p.id

This would fetch the first post in a topic and the subject of the topic.

Enable debug mode and post the full error please.

Doesn't GeSHi require you to start highlighted code with their opening tags (if applicable)? So you'd do

<?php $var = "my var"; ?>

642

(0 replies, posted in PunBB 1.2 bug reports)

In the posts table, hide_smilies is defined as an integer:

hide_smilies TINYINT(1) NOT NULL DEFAULT 0

Yet in post.php, it is being inserted as a character:

$db->query('INSERT INTO '.$db->prefix.'posts (poster, poster_id, poster_ip, message, hide_smilies, posted, topic_id) VALUES(\''.$db->escape($username).'\', '.$pun_user['id'].', \''.get_remote_address().'\', \''.$db->escape($message).'\', \''.$hide_smilies.'\', '.$now.', '.$tid.')') or error('Unable to create post', __FILE__, __LINE__, $db->error());

I encountered this error when porting PunBB to Sybase, which wasn't too keen on this implicit conversion.

EDIT: edit.php has this 'bug' too, on line 127.

That's actually a rather good suggestion.

644

(4 replies, posted in PunBB 1.2 troubleshooting)

It's because Firefox caches the last version of the page (modified by Javascript). The function is there to prevent users clicking the button twice when the site is lagging for example. Not much can be done about it except for removing the Javascript code.

Just a shot in the dark, but try running the following query in phpMyAdmin or so:

UPDATE prefix_users SET last_post = 1181910840 WHERE group_id != 3

Replace 'prefix_' with your prefix.

No, the check is at the top of the page and should work just fine. Unless you've modified it, I believe the message function calls exit(); at the end.

No, MattF is correct, it should stop the displaying of the whole page. Quite odd.

Ack, sorry. Looked over that. I just didn't see it in the part where a user is being added =P

Hrmm, it seems register.php doesn't check if registration is enabled when processing the form at all... I'd see this as a bug actually.

Are you sure nobody just got hold of your DB info? It certainly seems more plausible.