1,301

(13 replies, posted in PunBB 1.2 troubleshooting)

Smartys wrote:

Rickard: except all of the post is shown, it's just "hidden" by the div

$substr_sql = ($db_type != 'sqlite') ? 'SUBSTRING' : 'SUBSTR';
$sql = 'SELECT p.id AS pid, p.poster AS pposter, p.posted AS pposted, p.poster_id, '.$substr_sql.'(p.message, 1, 1000) AS message, t.id AS tid, t.poster, t.subject, t.last_post, t.last_post_id, t.last_poster, t.num_replies, t.forum_id FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'topics AS t ON t.id=p.topic_id WHERE p.id IN('.$search_results.') ORDER BY '.$sort_by_sql;

It is? smile

1,302

(13 replies, posted in PunBB 1.2 troubleshooting)

Because we don't want to show the full post and parsing only part of a post is quite difficult. What if we show the first 200 characters and we end up in the middle of a quote or a code tag?

1,303

(32 replies, posted in PunBB 1.2 troubleshooting)

What's even more weird about this is that the script never outputs anything, not even a blank page (macosx sent me a link). It doesn't appear to timeout either. It's been "loading" in one of my firefox tabs for 10 minutes now. I wonder if this only happens on files that don't exist. What happens if you place this script in your PunBB root folder:

<?php

if (file_exists('index.php'))
    echo 'yes';
else
    echo 'no';

?>
Jérémie wrote:

Can we cron it ?

If you're going to cron it, I would suggest "croning" mysqldump instead.

Try using $cur_posting['id] instead.

1,306

(114 replies, posted in PunBB 1.2 discussion)

I'm not sure. That's Paul's area smile

One potential change regarding the tpl files is that each style will have its own set of tpl files.

1,307

(114 replies, posted in PunBB 1.2 discussion)

Smartys wrote:

Probably something where you give it a user agent/IP list and if a guest matches that, they get fed a certain style and are marked as a certain bot smile

I.e. something that could easily be implemented as an extension smile

eddy81 wrote:

Please put the Private messages and the poll in smile it cost me always 2 days to put that in well smile

I plan on making the extension system in such a way that PMs and polls are possible. What this means is that PunBB 1.3 won't "ship" with those features, but installing them won't require you to edit any scripts.

Well, 644 should suffice, but only if the user that runs your webserver is also the owner of the folder and the files in the folder. Try removing the file called config something in the cache directory.

1,309

(32 replies, posted in PunBB 1.2 troubleshooting)

What is weird about this isn't that it can't determine the load averages but that the page doesn't even load properly.

1,310

(6 replies, posted in PunBB 1.2 troubleshooting)

E-mail them the error message.

1,311

(114 replies, posted in PunBB 1.2 discussion)

fakhrudin wrote:

plus a search engine managing section (like ipb)

What the hell is that?

1,312

(32 replies, posted in PunBB 1.2 troubleshooting)

Ok, one more check. What does the following PHP script output:

<?php

if (file_exists('/proc/loadavg'))
    echo 'yes';
else
    echo 'no';

?>

1,313

(32 replies, posted in PunBB 1.2 troubleshooting)

Try the two checks Smartys posted individually. Do they both fail or is it just file_exists or is_readable?

Also, have a look in your apache error_log. Maybe there's something in there.

1,314

(32 replies, posted in PunBB 1.2 troubleshooting)

This must be a bug in PHP. What PHP version are you running? Under what operating system?

1,315

(32 replies, posted in PunBB 1.2 troubleshooting)

Try re-uploading the admin scripts. Maybe one of them is corrupt or something.

Can you access e.g. admin_forums.php?

1,316

(32 replies, posted in PunBB 1.2 troubleshooting)

What do you mean by "unable to access"?

1,317

(114 replies, posted in PunBB 1.2 discussion)

Well, here's a list of a few things you can expect in 1.3:

- Better markup and CSS (less markup, more accessible etc)
- "Fancy URLs" (via mod_rewrite)
- Proper extension support
- New topic read marking
- Post moderation (maybe user registration moderation)
- Multiple moderator groups
- Improved feeds (topic feeds, RSS, Atom, XML etc)
- "Translatable" admin interface
- Per-style templates

That's about it. On top of that there are of course lots and lots of minor tweaks and improvements.

1,318

(5 replies, posted in PunBB 1.2 troubleshooting)

The instructions were wrong. Search for:

setcookie($cookie_name, serialize(array($user_id, md5($cookie_seed.$password_hash))), $expire, $cookie_path, $cookie_domain, $cookie_secure);

and replace it with:

setcookie($cookie_name, serialize(array($user_id, md5($cookie_seed.$password_hash))), 0, $cookie_path, $cookie_domain, $cookie_secure);

Noted smile

Have a look at how quick post is displayed viewtopic.php.

Hmm, i thought I did. I must have forgotten.

1,322

(4 replies, posted in Archive)

Ja.

I am on my dev machine smile

Done.

1,325

(4 replies, posted in Archive)

Problemet är att ditt webbhotell inte tillåter att man inkluderar filer på det sättet (via en URL). Det går att fixa så att du inkludera extern.php direkt (med en relativ sökväg) genom att göra några mindre ändringar i extern.php, men jag rekommenderar nog att du antingen väntar på 1.3 eller att du använder t.ex. news generator (plugin) och inkluderar nyheterna som statisk html.