Граффити (действие) в ленту активности, не на стену.
---------- Запрос в БД ----------------------------------------------
PHP:
INSERT INTO se_actiontypes
(actiontype_name, actiontype_icon, actiontype_setting, actiontype_enabled, actiontype_desc, actiontype_text, actiontype_vars, actiontype_media)
VALUES
('newgraffiti', 'action_graffiti.gif', '1', '1', '700501', '700502', '[username1],[displayname1],[username2],[displayname2],[comment]', 0);
Поправьте, если что не так.
---------- Лэнг файл ----------------------------------------
PHP:
<?php die("Access Denied"); ?>
LANGUAGE_CODE:=ru
LANGUAGE_NAME:=Russian
LANGUAGE_LOCALE:=
LANGUAGE_AUTODETECT:=/^ru/i
LANGUAGE_RECORD_FIRST:=700501
LANGUAGE_RECORD_LAST:=700502
700501:=Добавление граффити.
700502:=Граффити <a href='profile.php?user=%1$s'>%2$s</a> в профиле <a href='profile.php?user=%3$s&v=comments'>%4$s</a>
Поправьте, если что не так.
---------- Картинка для ленты ------------------------------------------
![[IMG]](http://www.minitusa.ru/images/bbcode/graffiti.gif)
------------- В файле user_graffiti.php заменить ----------- в разработке ----------
PHP:
$actions->actions_add($user, "postcomment", Array('[username1]', '[username2]', '[comment]'), Array($commenter, $owner->user_info[user_username], $comment_body_encoded));
на
PHP:
$actions->actions_add($user, "newgraffiti", Array($user->user_info['user_username'], $user->user_displayname, $owner->user_info['user_username'], $owner->user_displayname, $comment_body_encoded), Array($commenter, $owner->user_info[user_username], $comment_body_encoded));
Пока получилось это, но ошибка отправления в чужом профиле, хотя все добавления происходят: