To make it w3c valid, just put the scripts in /include/js/common.js and replace <br> with <br />

http://zycie.org/mark.png

Maybe it could be done prettier, but heres a solution to add select all from forum category on search box...

Add this to search.php (somewhere in code):

<script type="text/javascript">
function checkall(ca) {
    var cboxes=document.getElementById(ca).getElementsByTagName('input');
    for (j=0; j<cboxes.length; j++) {
        cboxes[j].checked=true;
    }
}
function uncheckall(ca) {
    var cboxes=document.getElementById(ca).getElementsByTagName('input');
    for (j=0; j<cboxes.length; j++) {
        cboxes[j].checked=false;
    }
}
</script>

And modify some lines of search.php... find "A new category since last iteration" and below should be something like:

echo "\t\t\t\t\t\t\t".'<fieldset ...

Change whole line to:

            echo "\t\t\t\t\t\t\t".'<fieldset id="fs'.$cur_forum['cid'].'" style="padding-bottom:8px;">'."\n\t\t\t\t\t\t\t\t".'<legend><span style="border-top:1px dotted #ccc;">'.forum_htmlencode($cur_forum['cat_name']).':</span><br><span style="border-bottom:1px dotted #ccc;"><a href="#" onclick="javascript:checkall(\'fs'.$cur_forum['cid'].'\');" style="text-decoration:none;font-weight:normal;">check all</a> | <a href="#" onclick="javascript:uncheckall(\'fs'.$cur_forum['cid'].'\');" style="text-decoration:none;font-weight:normal;">uncheck all</a></span></legend>'."\n";

I noticed that there is a bug in styles that <legend> in box where you can select categories, where you want to search is the same as on captions on the left... this leads to wrap of categories names in less than half of the box...

Simple fix to stylesheet - add this to the bottom:

.brd .mf-set .mf-box legend span {
    width: 25em;
}    

The other solution is to disable option that guest MUST enter his email to post...

In cache_config.php change 'p_force_guest_email' value to 0.

As you probably noticed, if guest posting is enabled, guest email is being revealed in public... i think it's a bug, so here's a little fix:

// Generate author contact details
...
Line 411 (at least in my file):
if ($cur_post['poster_email'] != '' && !$forum_user['is_guest'] && $forum_user['g_send_email'] == '1')
$forum_page['post_contacts']['email'] = '<span class="user-email'.(empty($forum_page['post_contacts']) ? ' first-item' : '').'"><a href="mailto:'.forum_htmlencode($cur_post['poster_email']).'">'.$lang_topic['E-mail'].'<span>&#160;'.forum_htmlencode($cur_post['username']).'</span></a></span>';
...

Change to:

// Generate author contact details
...
if ($forum_user['is_admmod']) // <-- add this line
if ($cur_post['poster_email'] != '' && !$forum_user['is_guest'] && $forum_user['g_send_email'] == '1')
$forum_page['post_contacts']['email'] = '<span class="user-email'.(empty($forum_page['post_contacts']) ? ' first-item' : '').'"><a href="mailto:'.forum_htmlencode($cur_post['poster_email']).'">'.$lang_topic['E-mail'].'<span>&#160;'.forum_htmlencode($cur_post['username']).'</span></a></span>';
...

31

(1 replies, posted in PunBB 1.3 discussion)

Ok i made it totally different way... replaced all ob_end_clean() to ob_get_clean() in all sections and made functions of it generating content of different sections that i could just put them wherever i want to. For example getforummain() generates <!-- forum_main --> content ... seems to be the easiest way ever... i wonder if there are any disadvantages of it

Same on reporting:
http://zycie.org/pbbbug2.jpg

Damn... wrong section... could someone move it to bugs or troubleshoting?

Hello,
Is it normal behaviour that when ure posting as guest, your email is visible to everyone (under email link there is mailto: insetead of form to send message)? I would consider it as bug...
Best regards,
FlashT

http://zycie.org/pbbbug.jpg

Any idea how to fix it?

36

(1 replies, posted in PunBB 1.3 discussion)

Hi,
I would like to ask if there is a posibility to put the forum into one div in my site so rest of the site contents would stay untouched?
Best regards,
FlashT