6,451

(13 replies, posted in PunBB 1.2 bug reports)

Try this. Open up include/email.php and locate the row:

$headers = 'From: '.$from."\n".'Date: '.date('r')."\n".'MIME-Version: 1.0'."\n".'Content-transfer-encoding: 8bit'."\n".'Content-type: text/plain; charset='.$lang_common['lang_encoding']."\n".'X-Mailer: PunBB Mailer';

Replace it with

$headers = 'From: '.$from."\r\n".'Date: '.date('r')."\r\n".'MIME-Version: 1.0'."\r\n".'Content-transfer-encoding: 8bit'."\r\n".'Content-type: text/plain; charset='.$lang_common['lang_encoding']."\r\n".'X-Mailer: PunBB Mailer';

And see if that helps, if it doesn't just say so and we will try something different.

No, I haven't. PunBB + studies + freelance work is keeping me quite busy at the moment. I have neither the time nor the inclination to start another project on top of PunBB. At least not now.

6,453

(12 replies, posted in Programming)

That did the trick. Thanks a bunch :)

6,454

(13 replies, posted in PunBB 1.2 bug reports)

Aha. If you read the page it links to, there appears to be a problem with linebreaks in the mails sent out by PunBB. I'll have a look at it later tonight.

6,455

(12 replies, posted in Programming)

Louis: That didn't affect anything. Also, I don't want to remove the margin, i want it to be there in all browsers.

6,456

(12 replies, posted in Programming)

What should I do to get the following page to render identically in IE and Firefox. The problem is the list. In Firefox there is no margin below the list, but in IE and Opera, there's a good 10 pixels of margin.

http://w1.421.telia.com/~u42121130/test.html

Please note that the page I'm creating doesn't look at all like this. I just wanted to illustrate the problem.

True. In the first betas of PunBB they were called "Light and Blue", "Dark and Green" etc. I didn't like that.

What about that link to texturizer.net? Do you mean we should have thumbnails of all the styles in profile.php? In that case, no no no :D

You are right. You are being extremely picky. I used host.com because it was the shortest domain I could think of that made any kind of sense.

6,459

(18 replies, posted in PunBB 1.2 troubleshooting)

Louis: I'm sorry, but I just can't see what is so obvious to you. It has nothing to do with "URL fopen wrappers" if that's what you meant. Trying to include a file via an URL when URL fopen wrappers are disabled leads to a different error message.

6,460

(13 replies, posted in PunBB 1.2 bug reports)

Hmm, you say it didn't help. What happens then?

6,461

(13 replies, posted in PunBB 1.2 bug reports)

If you're using PunBB 1.1 or later it should only be a matter of changing maxlength="25" to a higher value in admin_options.php. If you're using an older version, it's a bit harder. The line to edit is line 395.

6,462

(18 replies, posted in PunBB 1.2 troubleshooting)

I don't use extern.php, because I need access to $cur_user['style'] to be able to show the same style on the site as in the forums.

Here's some code:

<?php

define('PUN_TURN_OFF_MAINT', 1);
define('PUN_QUIET_VISIT', 1);

$pun_root = '../forums/';
@include $pun_root.'include/common.php';

// If PUN isn't defined, config.php is missing or corrupt
if (!defined('PUN'))
    exit('config.php doesn\'t exist or is corrupt. Please run install.php to install PunBB first.');

?>

And then the topic list:

<?php

$result = $db->query('SELECT t.id, t.subject FROM '.$db->prefix.'topics AS t,'.$db->prefix.'forums AS f WHERE t.forum_id=f.id AND f.admmod_only=0 AND t.moved_to IS NULL ORDER BY t.last_post LIMIT 15') or error('Unable to fetch topic list', __FILE__, __LINE__, $db->error());

while ($cur_topic = $db->fetch_assoc($result))
{
    if ($pun_config['o_censoring'] == '1')
        $cur_topic['subject'] = censor_words($cur_topic['subject']);

    if (pun_strlen($cur_topic['subject']) > 30)
        $cur_topic['subject'] = trim(substr($cur_topic['subject'], 0, 24)).' ...';

    echo "\t\t\t\t\t\t\t".'<b>·</b> <a href="http://punbb.org/forums/viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a><br>'."\n";
}

?>

6,463

(18 replies, posted in PunBB 1.2 troubleshooting)

In that case, I really have no idea what might be wrong. I very much doubt it's a bug in PunBB. Have you tried googling and trying out some possible solutions from the search results?

6,464

(18 replies, posted in PunBB 1.2 troubleshooting)

Paul: The Zend Engine is something different from Zend Optimizer.

JohnS: If it can't find the file at all, you would get a different error message, so the path is most likely correct.

What PHP versions are you using?

Here's how to check if Zend Optimizer is running.

6,465

(18 replies, posted in PunBB 1.2 troubleshooting)

Might I ask if you have Zend Optimizer installed? The reason I ask is this.

6,466

(93 replies, posted in PunBB 1.2 discussion)

This is good stuff. Keep working! :D

6,467

(6 replies, posted in PunBB 1.2 discussion)

1. There is currently no IPB->PunBB converter available. However, Chacmool has written one for phpBB-PunBB and modifying it to also convert IPB databases shouldn't be too difficult.

2. It will be updates as long as I think it needs updating. If I ever tire of working on PunBB, I'm sure someone else will take over. However, if you are looking for a constant flow of new features, you will have to look elsewhere.

3. Modifying colors, borders and stuff like that is possible in the current version (via css-files). Styling the next big release of PunBB (1.2) will be easier though.

6,468

(93 replies, posted in PunBB 1.2 discussion)

That sounds like a good idea. I like the markup of the index page you did.

lukepuuk wrote:

Thanks, but that's the line for the 'normal' reply text field. It was rows="20" cols="95", I changed it to rows="15" cols="60".

But I meant the quick reply text field. It's this size in all my browsers.

Ah, my mistake. Have a look in viewtopic.php. It's somewhere at the end of the script. I think you will find it.

lukepuuk wrote:

BTW, in IE my forum shows grey borders. That's also on Windows?
http://ego.raggers.net/forum

What do you mean by grey borders? Like these forums? In that case, no.

Man, that text area really is huge. I wonder if that is specific to Safari. To change the text area you need to edit post.php. Go to line 453 and replace:

<td class="puncon2"> <textarea name="req_message" rows="7" cols="80"></textarea></td>

with

<td class="puncon2"> <textarea name="req_message" rows="7" cols="60"></textarea></td>

or whatever value suits your layout.

6,471

(180 replies, posted in PunBB 1.2 troubleshooting)

alinear wrote:

Sorry I hadn't 'disabled' it per se -- I had 'disabled' it in the browser in the sense that I had it shutting off ad/content filtering.

But can't you just make Norton not tamper with HTTP_REFERER? There must be some setting for it.

alinear wrote:

Is there any simple way to temporarily disable the check?

No, the only way is to disable it is by commenting out the code you did above.

alinear wrote:

I tried commenting out the function (as above) but this does not help -- it still gives me the same issue so long as my firewall isn't disabled.

That's not possible. If you commented out the code as you showed in your previous post, the referer check is disabled completely. If you were getting the error message even after commenting out that code, you must have been watching a cached version of the page or something. You didn't just forget to upload after you made the changes?

6,472

(8 replies, posted in PunBB 1.2 troubleshooting)

Well, it's a problem for me :) Please tell me if it ever happens again.

6,473

(180 replies, posted in PunBB 1.2 troubleshooting)

You say you've disabled Norton Internet Security, but you don't know if it solved the problem. Does it help or not?

6,474

(8 replies, posted in PunBB 1.2 troubleshooting)

Hmm, that's odd. Does it always happen or has it just happened once or twice?

6,475

(8 replies, posted in PunBB 1.2 troubleshooting)

And you didn't get an error message?