Disable others extensions and try to upload archive with extension again, please.
451 2009-09-16 06:32
Re: Please help on adding Smile msg bar (9 replies, posted in PunBB 1.3 troubleshooting)
452 2009-09-16 06:21
Re: how to link to categories? (6 replies, posted in PunBB 1.3 troubleshooting)
You can replace query at lines 68-83 of "<FORUM_ROOT>/index.php" with this one.
453 2009-09-16 05:55
Re: PHP help (str_replace isn't working) (5 replies, posted in Programming)
The line
$AmountArray[$field]=ereg_replace(' ','',$AmountArray[$field]);
will be:
$AmountArray[$field]=str_replace(' ','',$AmountArray[$field]);
Here is the descriptions of explode and str_replace functions.
454 2009-09-15 10:40
Re: LDAP authentication (3 replies, posted in Feature requests)
Now there is no extension for LDAP support in PunBB. But you can use this extension, which was developed by a FluxBB user.
455 2009-09-15 10:15
Re: [extension release] pun_quote 2.0.2 (40 replies, posted in PunBB 1.3 extensions)
Study the code of the function "do_bbcode" in the file "<FORUM_ROOT>/include/parser.php". This function replaces bbcode tags with HTML tags
456 2009-09-15 10:08
Re: Karma (pun_karma) (23 replies, posted in Supported extensions)
The new version of pun_karma 1.1 has been released.
Changes from previous version:
Added icons instead of +, -, X characters
Added calculating of users karma.
457 2009-09-15 07:32
Re: how to link to categories? (6 replies, posted in PunBB 1.3 troubleshooting)
In the current version of PunBB there are no links to categories. But it is a nice idea, and we will implement it in future releases of PunBB.
You can create a page with categories by yourself. It will not so hard. As a base for this page you can get the file "<FORUM_ROOT>index.php". To get forums of some specific category you can use this query:
// Print the categories and forums
$query = array(
'SELECT' => 'c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster',
'FROM' => 'categories AS c',
'JOINS' => array(
array(
'INNER JOIN' => 'forums AS f',
'ON' => 'c.id=f.cat_id'
),
array(
'LEFT JOIN' => 'forum_perms AS fp',
'ON' => '(fp.forum_id=f.id AND fp.group_id='.$forum_user['g_id'].')'
)
),
'WHERE' => 'fp.read_forum IS NULL OR fp.read_forum=1 AND c.id = '.$cat_id,
'ORDER BY' => 'c.disp_position, c.id, f.disp_position'
);
$cat_id in this peace of code is the category id.
458 2009-09-15 06:51
Re: Attachments (pun_attachment) (118 replies, posted in Supported extensions)
There was no error, just can't open the file after downloading
Is uploaded file attached to the post?
459 2009-09-14 12:24
Re: Tags (pun_tags) (55 replies, posted in Supported extensions)
The new version of pun_tags 1.4 has been released.
To get it, you can use pun_repository or visit the download page.
Changes from previous version:
Added page where an administrator could see all tags and edit them.
460 2009-09-14 12:12
Re: My dream? Disabling visit timeout (6 replies, posted in PunBB 1.3 additions)
I have just realised there is this hook call in the forum_setcookie:
fn_forum_setcookie_startI can use that without even hacking the code. Am I right?
Hooks are so beautiful!
Yes, you are right. The hook will look like:
<hook id="fn_forum_setcookie_start"><![CDATA[
global $forum_config;
$time_threshold = time() + $forum_config['o_timeout_visit'];
if ( ($expire >= $time_threshold-3) && $expire <= $time_threshold+3 ) // 3 secs of safety net
$expire = 0;
// Enable sending of a P3P header
header('P3P: CP="CUR ADM"');
if (version_compare(PHP_VERSION, '5.2.0', '>='))
setcookie($name, $value, $expire, $cookie_path, $cookie_domain, $cookie_secure, true);
else
setcookie($name, $value, $expire, $cookie_path.'; HttpOnly', $cookie_domain, $cookie_secure);
return TRUE;
]]></hook>
461 2009-09-14 08:33
Re: PHP help (str_replace isn't working) (5 replies, posted in Programming)
Try to debug the function "ShipUpdate" with help of var_dump function or some debug tools for PHP.
462 2009-09-14 08:29
Re: add text link to brd-navlinks <ul> (solved) (8 replies, posted in PunBB 1.3 additions)
How can one add links to be seen by signed-in users only?
The place where navlinks are generated is the function "generate_navlinks" (lines 413-469 of "<FORUM_ROOT>/include/functions.php").
This peace of code is used to determine whether the user is authorized or not
if (!$forum_user['is_guest'])
{
//Your code here
}
463 2009-09-14 08:08
Re: store unread posts (2 replies, posted in PunBB 1.3 troubleshooting)
I mean, the posts are not saved as unread when user will logout. This is very annoying. It is possible to fix that?
All unread posts stored in the cookie now and when user logout all unread messages erased.
Maybe there is any extension to save unread posts id in db?
There is now such extension now, add an extension request to Wiki, please.
465 2009-09-14 07:59
Re: disabling quick post through hook (3 replies, posted in PunBB 1.3 troubleshooting)
To hide Quick Post form it will be enough this code:
<hook id="vt_quickpost_end"><![CDATA[
$tpl_main = str_replace('<!-- forum_qpost -->', '', $tpl_main);
]]></hook>
466 2009-09-14 07:49
Re: Smile icons (2 replies, posted in PunBB 1.3 extensions)
What is the version of pun_bbcode extension?
467 2009-09-14 07:39
Re: how to link to categories? (6 replies, posted in PunBB 1.3 troubleshooting)
If I understand you correctly, you want to show certain categories depending on user's language in the profile?
468 2009-09-14 07:24
Re: Please help on adding Smile msg bar (9 replies, posted in PunBB 1.3 troubleshooting)
What browser are you using? Check this in the browser options.
469 2009-09-14 07:11
Re: My dream? Disabling visit timeout (6 replies, posted in PunBB 1.3 additions)
You don't need to edit the function "forum_setcookie". You need to find where this function is called in the core and set the expiry time to 0 (the files "<FORUM_ROOT>/include/functions.php", "<FORUM_ROOT>login.php", "<FORUM_ROOT>profile.php", "<FORUM_ROOT>register.php").
470 2009-09-11 12:47
Re: email link bugs (3 replies, posted in PunBB 1.3 discussion)
This post was removed after the e-mail had been sent to you.
471 2009-09-11 12:41
Re: username URL: http://[FORUMURL]/username (1 replies, posted in Feature requests)
Thanks for the idea. We will think how to do this in the best way.
472 2009-09-11 04:06
Re: Bots? Theres is an website that spam your forums? (9 replies, posted in General discussion)
pun_antispam extension use CAPTCHAs.
475 2009-09-10 13:30
Re: pun_pm link not in navigation (2 replies, posted in PunBB 1.3 troubleshooting)
Go to "<FORUM_URL>/admin/settings.php?section=features" and enable "Put the PM Inbox link into the main navigation menu" option