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,676 2007-03-22 02:10
Re: How to include new post in block (9 replies, posted in General discussion)
3,677 2007-03-22 02:08
Re: IE7 Fix(es) (27 replies, posted in PunBB 1.2 troubleshooting)
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 2007-03-22 02:02
Re: IE7 Fix(es) (27 replies, posted in PunBB 1.2 troubleshooting)
It's messed up in IE7 as well
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
3,679 2007-03-22 01:04
Re: "Not logged in" - weird cookie problem (8 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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 2007-03-22 01:01
Re: not sending mails (47 replies, posted in PunBB 1.2 troubleshooting)
It's impossible via an unmodded PunBB register.php: check the code for yourself
3,681 2007-03-22 00:40
Re: "Not logged in" - weird cookie problem (8 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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 2007-03-21 23:07
Re: Mybb to punbb (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
3,683 2007-03-21 23:02
Re: "Not logged in" - weird cookie problem (8 replies, posted in PunBB 1.2 modifications, plugins and integrations)
$pun_user? The global variable user data is stored in?
What's telling you that you're not logged in?
3,684 2007-03-21 22:15
Re: Mybb to punbb (5 replies, posted in PunBB 1.2 discussion)
I'd try converting from MyBB to another forum software that PunBB already converts to.
3,685 2007-03-21 20:57
Re: Automatic Image Upload with Thumbnails (154 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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
3,686 2007-03-21 20:56
Re: "Not logged in" - weird cookie problem (8 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Setting the cookie doesn't change pun_user: that takes another pageview.
3,687 2007-03-21 20:46
Re: not sending mails (47 replies, posted in PunBB 1.2 troubleshooting)
Users provide an email address upon registering
3,688 2007-03-21 10:54
Re: Charset problem in mysql? (3 replies, posted in PunBB 1.2 troubleshooting)
'lang_encoding' => 'windows-1257',
Try changing it to UTF-8
3,689 2007-03-21 10:34
Re: external login / logout (7 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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 2007-03-21 10:31
Re: i can't upload an avatar (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 2007-03-21 10:28
Re: Charset problem in mysql? (3 replies, posted in PunBB 1.2 troubleshooting)
What charset is your language pack using?
3,692 2007-03-21 01:53
Re: external login / logout (7 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Well, it seems a better solution than editing your table to add PunBB's columns or PunBB's table to add your columns
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)
3,693 2007-03-21 01:42
Re: external login / logout (7 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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.
3,694 2007-03-21 00:14
Re: Automatic Image Upload with Thumbnails (154 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Indeed: a group option (disabled by default but enabled for mods/admins) sounds like the right idea here
3,695 2007-03-20 23:55
Re: New posts is posessed (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.
3,696 2007-03-20 23:45
Re: Memory management/buffering php issue - expert help needed (6 replies, posted in Programming)
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));
}
?>
3,697 2007-03-20 23:31
Re: Memory management/buffering php issue - expert help needed (6 replies, posted in Programming)
Moved to Programming
3,698 2007-03-20 20:59
Re: topic status (7 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Moved to Modifications
3,699 2007-03-20 20:58
Re: New posts is posessed (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
3,700 2007-03-20 10:32
Re: Cannot use string offset as an array (3 replies, posted in PunBB 1.2 troubleshooting)
There's no line 1153 in a default PunBB setup: you'll need to copy/paste your line