For sure. This extension is very usefull for photo forums.John connor wrote:it will be marked as abandon which would be a shame.
Yes, indeed - we're preparing to move our (very old) phpBB2 photo forum to phpbb3.1, andouiouiphoto wrote:For sure. This extension is very usefull for photo forums.John connor wrote:it will be marked as abandon which would be a shame.
ext\bb3mobi\imgposts\styles\prosilver\template\event\topiclist_row_prepend.html
,Code: Select all
<!-- IF topicrow.FILSE_EXIST --><img src="{topicrow.ATTACH_IMG}" width="{FIRST_IMAGES_TOPIC}" height="{FIRST_IMAGES_TOPIC}" alt="" />
Code: Select all
<!-- IF topicrow.FILSE_EXIST --><a href="{topicrow.U_VIEW_TOPIC}"><img src="{topicrow.ATTACH_IMG}" width="{FIRST_IMAGES_TOPIC}" height="{FIRST_IMAGES_TOPIC}" alt="" /></a>
Code: Select all
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 12
Code: Select all
GROUP BY a.post_msg_id DESC LIMIT 12
Code: Select all
FROM phpbb_attachments a, phpbb_posts p, phpbb_topics t
Code: Select all
phpbb_topics t
Code: Select all
AND (mimetype = "image/jpeg" OR mimetype = "image/png" OR mimetype = "image/gif")
Code: Select all
AND ' . $this->db->sql_in_set('extension', $ext_type) . '
Code: Select all
$ext_type = array('jpeg', 'jpg', 'JPG', 'gif', 'png', 'bmp');
Code: Select all
$sql = 'SELECT a.attach_id, a.post_msg_id, a.extension, p.post_id, p.topic_id, p.post_time, p.post_visibility
FROM ' . ATTACHMENTS_TABLE . ' a, ' . POSTS_TABLE . ' p, ' . TOPICS_TABLE . ' 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 ' . $this->config['last_images_attachment_count'] .' ';
Code: Select all
$sql = 'SELECT a.attach_id, a.post_msg_id, a.extension, p.post_id, p.topic_id, p.post_time, p.post_visibility
FROM ' . ATTACHMENTS_TABLE . ' a, ' . POSTS_TABLE . ' p
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 ' . $this->config['last_images_attachment_count'] .' ';