Jump to content
CMSTOOLS.ru - форум поддержки и развития CMS

Добавление добавленных фотографий на стену

Recommended Posts

По просьбе http://cmstools.ru/index.php?/files/file/3-vii-engine-license-nulled/ (его 5 пункт)


В albums.php под

$db->query("INSERT INTO `news` SET ac_user_id = '{$user_id}', action_type = 3, action_text = '{$ins_id}|{$img_url}', action_time = '{$server_time}'");


$new_photo = '<a href="/photo'.$user_id.'_'.$ins_id.'_sec=wall" onclick="Photo.Show(this.href); return false"><img src="'.$img_url.'" style="margin-right:5px"></a>';
$db->query("INSERT INTO `wall` SET author_user_id = '{$user_id}', for_user_id = '{$user_id}', text = '{$new_photo}', add_date = '{$server_time}'");
$db->query("UPDATE `users` SET user_wall_num = user_wall_num+1 WHERE user_id = '{$user_id}'");

ЗЫ. Создается по 1 записи на фотографию. Это для того, чтобы вы тоже думали и правили код.

ЗЫЫ. Про + не забываем.


  • Upvote 4
Link to comment
Share on other sites

  • 8 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...