My other version... In testing...
For 1.2.10

http://www.swelfs.jino-net.ru/mod.txt

2

(9 replies, posted in Archive)

>> http://hostel.nstu.ru/

? ?????? ??????? ???? ??????, ??? ??? ??? ?? ???????? ???? ?????? ? ???? ????????, ????? ? ??????? ????. ????? ????????? ? ???????????. ??, ??, ????? ?? ?????? ??????. ???, ???? ??, ?????? ?? ? ?????? ? ?????? ???, ??? ?? ?????, ??????? ????????? ? «??-??».

?? ??...

3

(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>";

?? ??? ???-?? ? ???? ????...

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...

?????? 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>

? ? ?????????? ??? ????????? ?????????, ?? ??????????...

http://punres.org/doku.php?id=how-tos:o … new_window

? ???? ?? ????????... ??????? ? ? ???? ???????...

? ????? ?????? ???:

?????? 410

require PUN_ROOT.'include/parser.php';

? ??????? ? ??????? ? ????? ??????, ????? 27-?...

?.?. ?????:

define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';

?????? ?? ???????? - ?? ????... ??????? ???? ??????????...