My other version... In testing...
For 1.2.10
1 2006-01-19 17:13
Re: Mark topics as read v1.1 (92 replies, posted in PunBB 1.2 modifications, plugins and integrations)
2 2006-01-15 16:02
Re: форум hostel.nstu.ru (9 replies, posted in Archive)
? ?????? ??????? ???? ??????, ??? ??? ??? ?? ???????? ???? ?????? ? ???? ????????, ????? ? ??????? ????. ????? ????????? ? ???????????. ??, ??, ????? ?? ?????? ??????. ???, ???? ??, ?????? ?? ? ?????? ? ?????? ???, ??? ?? ?????, ??????? ????????? ? «??-??».
?? ??...
3 2005-12-31 14:56
Re: Ники (7 replies, posted in Archive)
??? ???????? ????? ????????? ??????, ? ??????? ????????? ????????????.
??? ????? ?????? ?????????? ?? ?????:
$result = $db->query('SELECT user_id, ident, group_id FROM '.$db->prefix.'online, '.$db->prefix.'users WHERE idle=0 && user_id = id ORDER BY ident', true) or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());
?? ? ??? ???????? ????????? ??????, ? ??????? ???????????? ?????????. ???? 1 - ?????. ???? 2 - ?????????...
???
if ($pun_user_online['user_id'] > 1)
$users[] = "\n\t\t\t\t".'<dd><a href="profile.php?id='.$pun_user_online['user_id'].'">'.pun_htmlspecialchars($pun_user_online['ident']).'</a>';
else
...
???????? ??:
if ($pun_user_online['user_id'] > 1) {
if ($pun_user_online['group_id'] == 1)
$pun_user_online['ident'] = "<B><I>".pun_htmlspecialchars($pun_user_online['ident'])."</I></B>";
elseif ($pun_user_online['group_id'] == 2)
$pun_user_online['ident'] = "<B>".pun_htmlspecialchars($pun_user_online['ident'])."</I>";
else
$pun_user_online['ident'] = pun_htmlspecialchars($pun_user_online['ident']);
$users[] = "\n\t\t\t\t".'<dd><a href="profile.php?id='.$pun_user_online['user_id'].'">'.$pun_user_online['ident'].'</a>';
} else
...
????? - ?????? ???????, ????? - ???????? ? ?????? ???????...
????????? ??????????? ? ???? ?????????? ? ??????? ?????? ???? "color" ???????? ????????... ? ?????, ????????????? ??????...
????? ???? "g_color" ? ??????? prefix_groups... varchar[30], ?? ????????? ???????? "default"
??????:
$result = $db->query('SELECT user_id, ident, group_id, g_color FROM '.$db->prefix.'online, '.$db->prefix.'users, '.$db->prefix.'groups WHERE idle=0 && user_id = id && group_id = g_id ORDER BY ident', true) or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());
? ?????? ??????:
?????
$users[] = "\n\t\t\t\t".'<dd><a href="profile.php?id='.$pun_user_online['user_id'].'">'.pun_htmlspecialchars($pun_user_online['ident']).'</a>';
else
...
????????? ???:
if ($pun_user_online['g_color'] != "default")
$pun_user_online['ident'] = "<Font color=\"".$pun_user_online['g_color']."\">".$pun_user_online['ident']."</font>";
?? ??? ???-?? ? ???? ????...
4 2005-12-09 00:39
Re: RSS feed of new posts, with content (2 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Fatal error: Call to a member function on a non-object in ...\include\parser.php on line 39
line 39-44
// Load the functions script
require PUN_ROOT.'include/functions.php';
require PUN_ROOT.'include/parser.php';
// Load DB abstraction layer and try to connect
require PUN_ROOT.'include/dblayer/common_db.php';
replace
// Load DB abstraction layer and try to connect
require PUN_ROOT.'include/dblayer/common_db.php';
// Load the functions script
require PUN_ROOT.'include/functions.php';
require PUN_ROOT.'include/parser.php';
Load DB abstraction layer and try to connect first!
Sorry, i'm russian...
5 2005-12-08 16:01
Re: Связка easysmile и PBB Gallery у кого-нибудь работает ? (6 replies, posted in Archive)
?????? 488 - ??? ????????? ??? ?????????:
<img style="width:<?php echo $pun_config['g_max_width_thumbs']+$pun_config['g_thumbs_margin']; ?>px;height:<?php echo $pun_config['g_max_height_thumbs']+$pun_config['g_thumbs_margin']; ?>px;border:1px solid #<?php echo $pun_config['g_thumbs_bordercolor']; ?>;" src="<?php echo $pun_config['g_rep_upload'].'/'; ?>pix.gif">
? ????? ???? ??? ????????? ??? ??????...
????????:
<a href="gallery.php?pid=<? echo $cur_img['id']; ?>">
<img style="width:<?php echo $pun_config['g_max_width_thumbs']+$pun_config['g_thumbs_margin']; ?>px;height:<?php echo $pun_config['g_max_height_thumbs']+$pun_config['g_thumbs_margin']; ?>px;border:1px solid #<?php echo $pun_config['g_thumbs_bordercolor']; ?>;" src="<?php echo $pun_config['g_rep_upload'].'/'; ?>pix.gif">
</A>
? ? ?????????? ??? ????????? ?????????, ?? ??????????...
6 2005-12-08 15:08
Re: Открываем ссылки в новом окне (2 replies, posted in Archive)
7 2005-12-08 15:06
Re: Связка easysmile и PBB Gallery у кого-нибудь работает ? (6 replies, posted in Archive)
? ???? ?? ????????... ??????? ? ? ???? ???????...
? ????? ?????? ???:
?????? 410
require PUN_ROOT.'include/parser.php';
? ??????? ? ??????? ? ????? ??????, ????? 27-?...
?.?. ?????:
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
?????? ?? ???????? - ?? ????... ??????? ???? ??????????...