Code: Select all
General Error
SQL ERROR [ mysqli ]
Data too long for column 'config_value' at row 1 [1406]
SQL
UPDATE jcp_config SET config_value = '21,23,208,137,270,7,237,258,238,239,241,246,247,248,249,250,242,243,251,252,253,254,255,256,257,9,10,8,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,126,48,49,50,51,52,53,127,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,146,147,148,70,71,72,73,74,75,76,77,78,271,262,263,264,267,22,24,25' WHERE config_name = 'last_images_attachment_ignore'
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 855
CALL: trigger_error()
FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 193
CALL: phpbb\db\driver\driver->sql_error()
FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 329
CALL: phpbb\db\driver\mysqli->sql_query()
FILE: [ROOT]/phpbb/config/db.php
LINE: 148
CALL: phpbb\db\driver\factory->sql_query()
FILE: [ROOT]/phpbb/config/db.php
LINE: 122
CALL: phpbb\config\db->set_atomic()
FILE: [ROOT]/includes/functions.php
LINE: 162
CALL: phpbb\config\db->set()
FILE: [ROOT]/ext/bb3mobi/imgposts/acp/imgposts_module.php
LINE: 240
CALL: set_config()
FILE: [ROOT]/includes/functions_module.php
LINE: 674
CALL: bb3mobi\imgposts\acp\imgposts_module->main()
FILE: [ROOT]/adm/index.php
LINE: 81
CALL: p_master->load_active()
could you explain to us, the exact modification that we have to do to obtain the displaying only for the image from the first post of topics, pleaseHillClimb wrote:Fantastic extension - thanks
It would be great if there was an ACP option to exclude reply photos from the carousels
i.e. add the following to helper.php function last_imagesand also in helper.php function last_images_attachmentCode: Select all
AND p.post_id = t.topic_first_post_id
So that the carousel only displays the photo attachments from the first post within each topicCode: Select all
AND t.topic_first_post_id = a.post_msg_id
Code: Select all
$sql = 'SELECT p.post_id, p.topic_id, p.forum_id, p.post_text, p.post_subject, p.post_time, t.topic_id, t.topic_title
FROM ' . POSTS_TABLE . ' p
LEFT JOIN ' . TOPICS_TABLE . ' t ON t.topic_id = p.topic_id
WHERE post_text '. $this->db->sql_like_expression($this->db->get_any_char() . $chars . $this->db->get_any_char()) . '
' . $sql_where . '
' . $sql_where_forbidden . '
' . $sql_where_topic . '
' . $sql_forum . '
AND p.post_visibility = 1
ORDER BY p.post_time DESC';
Code: Select all
$sql = 'SELECT p.post_id, p.topic_id, p.forum_id, p.post_text, p.post_subject, p.post_time, t.topic_id, t.topic_title
FROM ' . POSTS_TABLE . ' p
LEFT JOIN ' . TOPICS_TABLE . ' t ON t.topic_id = p.topic_id
WHERE post_text '. $this->db->sql_like_expression($this->db->get_any_char() . $chars . $this->db->get_any_char()) . '
' . $sql_where . '
' . $sql_where_forbidden . '
' . $sql_where_topic . '
' . $sql_forum . '
AND p.post_visibility = 1
AND p.post_id = t.topic_first_post_id
ORDER BY p.post_time DESC';
Code: Select all
$sql = 'SELECT a.attach_id, a.post_msg_id, a.physical_filename, a.real_filename, a.extension, a.filetime, t.topic_title
FROM ' . ATTACHMENTS_TABLE . ' a, ' . FORUMS_TABLE . ' f, ' . TOPICS_TABLE . ' t
' . $sql_where . '
AND (mimetype = "image/jpeg" OR mimetype = "image/png" OR mimetype = "image/gif")
AND a.topic_id = t.topic_id
GROUP BY a.post_msg_id DESC';
Code: Select all
$sql = 'SELECT a.attach_id, a.post_msg_id, a.physical_filename, a.real_filename, a.extension, a.filetime, t.topic_title
FROM ' . ATTACHMENTS_TABLE . ' a, ' . FORUMS_TABLE . ' f, ' . TOPICS_TABLE . ' t
' . $sql_where . '
AND (mimetype = "image/jpeg" OR mimetype = "image/png" OR mimetype = "image/gif")
AND a.topic_id = t.topic_id
AND t.topic_first_post_id = a.post_msg_id
GROUP BY a.post_msg_id DESC';
hi anvaral i have again this problem with last release and i only can use 1.02 version.girello wrote:i have this error with new version:
Code: Select all
Errore Generale SQL ERROR [ mysql4 ] Query execution was interrupted [1317] SQL SELECT a.attach_id, a.post_msg_id, a.extension, p.post_id, p.topic_id, p.post_time, p.post_visibility FROM phpbb_attachments a, phpbb_posts p, phpbb_topics t WHERE a.post_msg_id = p.post_id AND (mimetype = "image/jpeg" OR mimetype = "image/png" OR mimetype = "image/gif") AND p.post_visibility = 1 GROUP BY a.post_msg_id DESC LIMIT 9 BACKTRACE FILE: (not given by php) LINE: (not given by php) CALL: msg_handler() FILE: [ROOT]/phpbb/db/driver/driver.php LINE: 855 CALL: trigger_error() FILE: [ROOT]/phpbb/db/driver/mysql.php LINE: 181 CALL: phpbb\db\driver\driver->sql_error() FILE: [ROOT]/phpbb/db/driver/factory.php LINE: 329 CALL: phpbb\db\driver\mysql->sql_query() FILE: [ROOT]/ext/bb3mobi/imgposts/core/helper.php LINE: 485 CALL: phpbb\db\driver\factory->sql_query() FILE: [ROOT]/ext/bb3mobi/imgposts/cron/task/tidy_images.php LINE: 78 CALL: bb3mobi\imgposts\core\helper->clear_cache() FILE: [ROOT]/ext/bb3mobi/imgposts/cron/task/tidy_images.php LINE: 71 CALL: bb3mobi\imgposts\cron\task\tidy_images->cron_tidy_images() FILE: [ROOT]/phpbb/cron/task/wrapper.php LINE: 65 CALL: bb3mobi\imgposts\cron\task\tidy_images->should_run() FILE: [ROOT]/phpbb/cron/manager.php LINE: 79 CALL: phpbb\cron\task\wrapper->is_ready() FILE: [ROOT]/includes/functions.php LINE: 5386 CALL: phpbb\cron\manager->find_one_ready_task() FILE: [ROOT]/index.php LINE: 207 CALL: page_footer()