3,676

(9 replies, posted in General discussion)

You can only use pun_include on files in the include/user directory. I would instead create a php file that gets the results from extern.php

3,677

(27 replies, posted in PunBB 1.2 troubleshooting)

lie2815 wrote:

What is not valid XHTML?
The problem is, I can't fix it anymore

Your calendar page: you have some odd pun_include at the top of the page that hasn't been processed, for example

3,678

(27 replies, posted in PunBB 1.2 troubleshooting)

It's messed up in IE7 as well wink
You'll have to wait for Paul: I think it may have something to do with the way your page is set up and the fact that it's not valid XHTML

The expiration value needs to be time() + 86400: that's the way the setcookie function works, based on unix timestamps
Basically, you're setting a cookie that your browser immediately rejects as being too old

3,680

(47 replies, posted in PunBB 1.2 troubleshooting)

It's impossible via an unmodded PunBB register.php: check the code for yourself smile

I'm not clear what the situation here is
Are you setting the cookie on one page and then navigating to the forums?

3,682

(5 replies, posted in PunBB 1.2 discussion)

We're considering ways to make the converter better for 1.3: hopefully it should be easier to add modules for new forum systems smile

$pun_user? The global variable user data is stored in?
What's telling you that you're not logged in?

3,684

(5 replies, posted in PunBB 1.2 discussion)

I'd try converting from MyBB to another forum software that PunBB already converts to.

I think just having it as a regular group option is ideal. Then, if a forum wants to go with the "Banned Uploaders" idea, they can. And if another forum wants to have a special group for "Uploaders" they can as well wink

Setting the cookie doesn't change pun_user: that takes another pageview.

3,687

(47 replies, posted in PunBB 1.2 troubleshooting)

Users provide an email address upon registering

3,688

(3 replies, posted in PunBB 1.2 troubleshooting)

Lithuanian language pack wrote:

'lang_encoding'            =>    'windows-1257',

Try changing it to UTF-8

You're on the right track. First thing you need to do is add PunBB's common.php to your pages. Then, when you login to your game, you'll want to call that function, where $user_id is their ID in PunBB's user table, $password_hash is the user's password as taken from PunBB's users table, and $expire is whatever you feel like (since you're using sessions, setting it to 0 will make it act like a session). That will set the cookie and PunBB's check_cookie function should deal with the rest.

3,690

(5 replies, posted in PunBB 1.2 troubleshooting)

Well, that error message is triggered in two places: the first is when the image type as reported by your browser doesn't match and the second is when PHP detects that the image is a GIF but the reported image type isn't.

3,691

(3 replies, posted in PunBB 1.2 troubleshooting)

What charset is your language pack using?

Well, it seems a better solution than editing your table to add PunBB's columns or PunBB's table to add your columns smile
When integrating two system which are already fully developed, I think it's better to keep both systems intact. Especially when they may have columns that do the same thing but in a contradictory way (ie: storing passwords hashed versus unhashed)

Well, PunBB is going to be looking for the columns it wants for users. You might be better off simply having your registration process create an account for the user in PunBB and have your login process log them in to the forum and the game.

Indeed: a group option (disabled by default but enabled for mods/admins) sounds like the right idea here smile

3,695

(8 replies, posted in PunBB 1.2 troubleshooting)

extern.php isn't a mod, although you could certainly have added mods to it.
If you have shell access, running the date command a few times might turn up something.

I found this comment:

d dot duquenoy at kdland dot org
01-Jun-2006 08:26
My function to know how much bytes imagecreate or imagecreatetruecolor require before using it.
<?php
function getNeededMemoryForImageCreate($width, $height, $truecolor) {
  return $width*$height*(2.2+($truecolor*3));
}
?>

Moved to Programming wink

Moved to Modifications wink

3,699

(8 replies, posted in PunBB 1.2 troubleshooting)

1.3 wouldn't help you in the "stuff randomly turning off" department, all it does is make the icons turn off once read.
The visit timeout reflects how long your "session" can be active for before you're marked as having visited the forums. 1800 seconds is 30 minutes. That means if you visit the forum and go inactive for a half hour, all the posts are marked as old. If that's not what's happening, my best guess is a problem with the server or a bad modification

There's no line 1153 in a default PunBB setup: you'll need to copy/paste your line