To make it w3c valid, just put the scripts in /include/js/common.js and replace <br> with <br />
26 2010-05-18 12:54
Re: [MOD] Select ALL in search category box (1 replies, posted in PunBB 1.3 extensions)
27 2010-05-18 12:21
Topic: [MOD] Select ALL in search category box (1 replies, posted in PunBB 1.3 extensions)
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";
28 2010-05-17 20:11
Topic: [Fixed: 1694] Bad looking titles of categories in search form (1 replies, posted in PunBB 1.3 bug reports)
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;
}
29 2010-05-17 19:57
Re: [Fixed: 1683] Guest email revealed... (4 replies, posted in PunBB 1.3 bug reports)
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.
30 2010-05-17 19:53
Topic: [Fixed: 1683] Guest email revealed... (4 replies, posted in PunBB 1.3 bug reports)
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> '.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> '.forum_htmlencode($cur_post['username']).'</span></a></span>';
...
31 2010-05-16 09:44
Re: Integration question (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
32 2010-05-15 20:45
Re: [BUG] IE8 incorrect display of write message, image attached (2 replies, posted in PunBB 1.3 troubleshooting)
Same on reporting:
33 2010-05-15 20:40
Re: [BUG] IE8 incorrect display of write message, image attached (2 replies, posted in PunBB 1.3 troubleshooting)
Damn... wrong section... could someone move it to bugs or troubleshoting?
34 2010-05-15 20:37
Topic: Email revealed in guest post... (0 replies, posted in PunBB 1.3 troubleshooting)
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
35 2010-05-15 20:36
Topic: [BUG] IE8 incorrect display of write message, image attached (2 replies, posted in PunBB 1.3 troubleshooting)
Any idea how to fix it?
36 2010-05-15 12:19
Topic: Integration question (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