In PunBB 1.2 it's not working properly, I will check it, in 1.3 it working well
1,026 2008-12-20 13:41
Re: Forum rules does not allow formatting? (4 replies, posted in Discussions)
1,027 2008-12-20 13:36
Re: Arcade Help -- PLEASE (2 replies, posted in PunBB 1.2 troubleshooting)
Make sure that your PHP is support short tags (<? ?>). Check up file php.ini: short_open_tag should be on.
1,028 2008-12-20 13:26
Re: BBcode in RSS feeds (12 replies, posted in PunBB 1.3 discussion)
Try:add this after 330 line of extern.php:
include FORUM_ROOT.'include/parser.php';
Than add this code after 335 line of extern.php:
if ($forum_config['o_smilies'] == '1')
$cur_post['message'] = do_smilies($cur_post['message']);
if ($forum_config['p_message_bbcode'] == '1')
$cur_post['message'] = do_bbcode($cur_post['message']);
Is there is what you want? Maybe it will be needed to add link to css-file to function "output_rss"
1,029 2008-12-20 12:12
Re: Important topic section (3 replies, posted in PunBB 1.2 discussion)
Maybe it would be better to highlight important threads? List of threads are created at "viewforum.php" on lines 143-190
1,030 2008-12-20 11:58
Re: User Roles or Groups? (6 replies, posted in PunBB 1.3 discussion)
No, there is no features, that you have described, in core. It can be an extension.
1,031 2008-12-17 15:58
Re: FORUM_ROOT?? :s (8 replies, posted in PunBB 1.3 troubleshooting)
No, it's not. There is no special tools to change code from 1.2 to 1.3
1,032 2008-12-17 14:50
Re: FORUM_ROOT?? :s (8 replies, posted in PunBB 1.3 troubleshooting)
forum_htmlspecialchars -> forum_htmlencode. Look at forum pages which functions is used now
1,033 2008-12-17 14:42
Re: FORUM_ROOT?? :s (8 replies, posted in PunBB 1.3 troubleshooting)
In vars and function prefix "pun_" should be replaced with "forum_"
1,034 2008-12-17 14:39
Re: would you just give me an remind abt [img] tag. (2 replies, posted in PunBB 1.2 troubleshooting)
1,035 2008-12-17 14:33
Re: FORUM_ROOT?? :s (8 replies, posted in PunBB 1.3 troubleshooting)
You should modify your code. For example
Replace PUN_ROOT constant with FORUM_ROOT
$pun_user should be $forum_user
$db it's $forum_db now
PUN_ADMIN should be FORUM_ADMIN
And some others vars and functions should be replace.
1,036 2008-12-17 12:33
Re: [Extension] Adding Images To Navlinks 1.2 (29 replies, posted in PunBB 1.3 extensions)
Extensions don't use 'o_additional_navlinks' key in config table, but they can use the same method as for generating additional navlinks to add link to correct place at navbar.
The PM link is added to the sub-navbar in a rather strange way...
Agree with you, we will discussed it.
If I had PM installed. How would I get an image navpm.png to show ?
If all installed extensions will use method like this in 'fn_generate_navlinks_end' hook:
array_insert($links, 'pm', '<li id="navextra"><a href="pm_link">pm_link</a></li>');
you can check up for navlinks of installed extension with this code:
if (isset($links['pm']))
Also you need to change priority for your 'fn_generate_navlinks_end' hook.
1,037 2008-12-17 10:53
Re: pun_poll discussion (19 replies, posted in PunBB 1.3 extensions)
No, it is not. I think it will be finished at the next week.
1,038 2008-12-17 10:49
Re: User Roles or Groups? (6 replies, posted in PunBB 1.3 discussion)
Add an extension request, please. Describe more exactly what features you want to have.
1,039 2008-12-17 10:42
Re: Pun Karma (5 replies, posted in PunBB 1.3 discussion)
We will upgrade extension pun_karma for 1.3.2
1,040 2008-12-17 10:36
Re: Move "online now" list to top of main.tpl (7 replies, posted in PunBB 1.3 additions)
This script will show only online users:
<?php
require_once FORUM_ROOT.'lang/'.$forum_user['language'].'/index.php';
if ($forum_config['o_users_online'] == '1')
{
// Fetch users online info and generate strings for output
$query_online = array(
'SELECT' => 'o.user_id, o.ident',
'FROM' => 'online AS o',
'WHERE' => 'o.idle=0',
'ORDER BY' => 'o.ident'
);
$result_online = $forum_db->query_build($query_online) or error(__FILE__, __LINE__);
$num_guests = $num_users = 0;
$users = array();
while ($forum_user_online = $forum_db->fetch_assoc($result_online))
{
if ($forum_user_online['user_id'] > 1)
{
$users[] = ($forum_user['g_view_users'] == '1') ? '<a href="'.forum_link($forum_url['user'], $forum_user_online['user_id']).'">'.forum_htmlencode($forum_user_online['ident']).'</a>' : forum_htmlencode($forum_user_online['ident']);
}
}
if (!empty($users))
{
?>
<div id="brd-online" class="gen-content">
<p><?php echo implode($lang_index['Online list separator'], $users) ?></p>
</div>
<?php
unset($users);
}
}
?>
1,041 2008-12-16 08:48
Re: Integration to PhpFreechat - Retrieving Cookie From PunBB Fail (4 replies, posted in PunBB 1.3 discussion)
There is function "cookie_login" in "<FORUM_ROOT>/include/functions.php", not "check_cookie"
1,042 2008-12-16 08:16
Re: Read permissions and bots? (3 replies, posted in PunBB 1.3 discussion)
No, they can't. We think that use of method, like in phpBB, is not secure. It is easy to substitute UserAgent-value in HTML-request
1,043 2008-12-16 07:53
Re: [SOLVED] Install hotfix -> character 0xe28093 of encoding "UTF8" ... (2 replies, posted in PunBB 1.3 troubleshooting)
That error mean that your database encoding is LATIN1, not UTF-8. You need to change it.
1,044 2008-12-16 07:33
Re: Serious formatting problem in viewtopic.php (1 replies, posted in PunBB 1.3 bug reports)
This problem was discussed here
1,045 2008-12-16 07:28
Re: Styles won't appear? (9 replies, posted in PunBB 1.3 troubleshooting)
If some users choose a style that you want to delete you should update the table <DB_PREFIX>_users with this SQL:
UPDATE <DB_PREFIX>_users
SET style = 'Oxygen'
WHERE style = '<Another Style>'
Then remove the style from the "style" directory.
1,046 2008-12-16 07:07
Re: How to edit structure of punbb CSS across all themes (5 replies, posted in PunBB 1.3 troubleshooting)
No, it is not. Just interesting what changes do you want to do? Maybe, there is other way to do what you needed
1,047 2008-12-15 16:23
Re: Wordpress Theme Integration!!? (9 replies, posted in PunBB 1.3 discussion)
1,048 2008-12-15 16:03
Re: [request (debug help)] BBcode [center][/center] (9 replies, posted in PunBB 1.3 extensions)
Hi, I think this will be work (after ps_do_bbcode_replace hook):
$pattern[] = '#\[hr\]#i';
$replace[] = '</p><hr/><p>';
1,049 2008-12-15 15:44
Re: punBB 1.3 external login (6 replies, posted in PunBB 1.3 troubleshooting)
Check out cookie values after setting it with script, that you have posted above (domain and path)
1,050 2008-12-15 14:20
Re: [request (debug help)] BBcode [center][/center] (9 replies, posted in PunBB 1.3 extensions)
No, it wouldn't. <hr /> tags not displayed at the page because of css:
.brd br, .brd hr, .brd .hr, .brd .hidden {
display: none;
}