Ответить в теме

решил всё таки поставить данный мод.

2.1.1 [ALPHA]

Не выводит описание, постер - в соц сети.

Прописал так:

[CODE]$sql_insert = "

            INSERT INTO

                " . BB_TOPICS . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_dl_type)

            VALUES

                ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_dl_type $keywords, $description)

        ";


        $sql_update = "

            UPDATE

                " . BB_TOPICS . "

            SET

                topic_title = '$post_subject',

                topic_type = $topic_type,

                topic_dl_type = $topic_dl_type

                keywords = '$keywords',

                descr = '$description'

            WHERE

                topic_id = $topic_id

        ";


        $sql  = ($mode != "editpost") ? $sql_insert : $sql_update;


        if (!DB()->sql_query($sql))

        {

            bb_die('Error in posting #1');

        }


        if ($mode == 'newtopic')

        {

            $topic_id = DB()->sql_nextid();

        }

    }


    $edited_sql = ($mode == 'editpost' && !$post_data['last_post'] && $post_data['poster_post']) ? ", post_edit_time = $current_time, post_edit_count = post_edit_count + 1" : "";


    if ($update_post_time && $mode == 'editpost' && $post_data['last_post'] && !$post_data['first_post'])

    {

        $edited_sql .= ", post_time = $current_time ";

        //lpt

        DB()->sql_query("UPDATE ". BB_TOPICS ." SET topic_last_post_time = $current_time WHERE topic_id = $topic_id LIMIT 1");

    }


    $sql = ($mode != "editpost") ? "INSERT INTO " . BB_POSTS . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, poster_rg_id, attach_rg_sig, keywords, descr) VALUES ($topic_id, $forum_id, " . $userdata['user_id'] . ", '$post_username', $current_time, '". USER_IP ."', $poster_rg_id, $attach_rg_sig)" : "UPDATE " . BB_POSTS . " SET post_username = '$post_username'" . $edited_sql . ", poster_rg_id = $poster_rg_id, attach_rg_sig = $attach_rg_sig WHERE post_id = $post_id";

    if (!DB()->sql_query($sql))

    {

        bb_die('Error in posting #2');[/CODE]

Подскажите ошибку пожалуйста.


Сверху