[ABD] Images from posts

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
User avatar
girello
Registered User
Posts: 169
Joined: Tue Mar 30, 2010 8:53 am
Location: italia

Re: [BETA] Images from posts

Post by girello »

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()
User avatar
LadyAnna
Registered User
Posts: 97
Joined: Mon Feb 08, 2010 10:17 am
Location: Sweden
Name: Anna Broman

Re: [BETA] Images from posts

Post by LadyAnna »

I just enabled the latest version (1.0.4), seem there's some language variables not properly set in english, see attached image:
Image
Image

Other then that it seem to work properly :)
Thunder_one
Registered User
Posts: 119
Joined: Sat May 09, 2015 11:00 pm

Re: [BETA] Images from posts

Post by Thunder_one »

In ACP missing language variables

Can you also change the images have been displayed where are not uploaded via file attachment?

Many users upload their images also high elsewhere.
kraul
Registered User
Posts: 9
Joined: Tue Mar 31, 2015 12:12 am

Re: [BETA] Images from posts

Post by kraul »

Miri4ever wrote: This mod would be great, but I don't work often with attachments and attachments could be deleted by users. I really really would like if this MOD would be able to display all images included inside the post with the [img] command to display them. At my forums most images created this way and not over attachments.
+1 (or only first [img] in the post)
User avatar
[email protected]
Registered User
Posts: 191
Joined: Sun Sep 15, 2013 11:49 am
Location: bb3.mobi
Name: Anvar Stybaev

Re: [BETA] Images from posts

Post by [email protected] »

There is support bbcode img.
[DEV/Beta] More extensions

Hopefully Google correctly translate my text// I do not support in private messages!
User avatar
MuhClaren
Registered User
Posts: 126
Joined: Sat Feb 21, 2015 5:23 am

Re: [BETA] Images from posts

Post by MuhClaren »

Hello friend. I've updated your extension language file for english. This update will help the problems posted above. When you have time, please add this update to your extension package. Best regards.

Code: Select all

$lang = array_merge($lang, [
	'ACP_IMG_FROM_POSTS'			=> 'Images from posts',

	'ACP_IMG_POSTS'					=> 'Display Settings',
	'ACP_IMG_POSTS_EXPLAIN'			=> 'Configure the image display settings',
	'ACP_IMG_POSTS_DESCRIPTION'		=> 'Here you can customize display of images posted in forum.',

	'LAST_IMAGES_ATACHMENT'			=> 'Recent Posts',
	'IMAGES_PLACE_TYPE'				=> 'Place display',
	'IMAGES_IGNORE_FORUM'			=> 'Ignored forums',
	'IMAGES_IGNORE_TOPIC'			=> 'Ignored topics',
	'IMAGES_ATTACHMENT_ALL'			=> 'Images from other forums',
	'IMAGES_ATTACHMENT_ALL_EXPLAIN'	=> 'Display images on this forum from other forums?',
	'IMAGES_IGNORE_TOPIC_EXPLAIN'	=> 'Comma separated topic ID to exclude certain topics from display',
	'IMAGES_BOTTOM_TYPE'			=> 'Displayed at the bottom of the board index page',
	'IMAGES_TOP_INVERT'				=> 'Display unit in top of forum',
	'IMAGES_TOP_INVERT_EXPLAIN'		=> 'Display the thumbnail block on the top of page?',
	'IMAGES_CAROUSEL_TYPE'			=> 'Scroll images',
	'IMAGES_CAROUSEL_TYPE_EXPLAIN'	=> 'Ability to scroll images by clicking on appropriate buttons.',
	'IMAGES_COUNT_IMG_MIN'			=> 'Image minimum',
	'IMAGES_COUNT_IMG_MIN_EXPLAIN'	=> 'Minimum number of images for display',
	'IMAGES_COUNT_IMG'				=> 'Image maximum',
	'IMAGES_SIZE_IMG'				=> 'Image width maximum',

	'IMAGES_PLACE_TYPE_OFF'			=> 'Turned off',
	'IMAGES_PLACE_TYPE_INDEX'		=> 'On index page',
	'IMAGES_PLACE_TYPE_VIEW'		=> 'In list of topics',
	'IMAGES_PLACE_TYPE_ALL'			=> 'Both: On index page/In list of topics',

	'IMAGES_SETTINGS'				=> 'Thumbnail settings',
	'IMAGES_NEW_PATH'				=> 'Path for storing thumbnails',
	'IMAGES_NEW_PATH_EXPLAIN'		=> '<span class="error">Thumbnails folder should have permissions of CHMOD: 777</span>',
	'IMAGES_HEIGHT_WIDTH'			=> 'Create a square thumbnail?',

	'FIRST_IMAGES_TOPIC'			=> 'Display in Topic List',
	'FIRST_IMAGES_TOPIC_ON'			=> 'Enable Images in Topic List?',
	'FIRST_IMAGES_FLOAT'			=> 'Display the thumbnail on the left?',

	'WATERMARKS'                   => 'Watermarks',
	'WATERMARKS_EXPLAIN'           => 'Enter the text that will be generated for the watermark, or leave it blank if the watermark is not needed.',
	'IMAGES_ATACHMENT'             => 'Image Type',
	'IMAGES_ATACHMENT_EXPLAIN'     => 'To show thumbnails for attachments, select Attachments. To show thumbnails for [img] tags, select [img] Images. To show both, select All. <span class="error">(not recommended, as it will significantly increase the load)</span>',
	'ACP_IMG_MANAGE_POSTS'         => 'Manage Thumbnails',
	'ACP_IMG_MANAGE_POSTS_EXPLAIN' => 'Here you can delete all or unused thumbnails, as well as configure the automatic deletion of the thumbnails cache.',
	'CLEAR_CACHE'                  => 'Clear the thumbnail cache',
	'CLEAR_ALL_SUCCESS'            => 'The thumbnails cache has been successfully cleared',
	'CLEAR_OLD_SUCCESS'            => 'Unused thumbnails have been successfully removed',
	'CLEAR_OLD'                    => 'Remove unused thumbnails',
	'CLEAR_ALL'                    => 'Remove all thumbnails',
	'CLEAR_ALL_ERROR'              => 'Unable to clear the thumbnails cache (thumbnail folder may not exist)',
	'CLEAR_ALL_EMPTY'              => 'Thumbnails cache is empty',
	'CLEAR_OLD_ERROR'              => 'Failed to remove unused thumbnails',
	'NO_IMAGES_TO DELETE'          => 'Abandoned or unused thumbnails found',
	'CLEAR_CACHE_BY_CRON'          => 'Configure automatic thumbnail deletion using CRON',
	'CRON_SET'                     => 'Enable automatic thumbnail deletion',
	'CRON_PRUNE'                   => 'Frequency of job',
	'CREATE_THUMBS'                => 'Checking and creating thumbnails',
	'FORUMS_EXPLAIN'               => 'Select a forum for which to create thumbnails',
	'NUM_THUMBS'                   => 'The number of messages being processed',
	'NUM_THUMBS_EXPLAIN'           => 'Select the desired number of messages to process',
	'THUMB_CREATED'                => '<strong>Total checked thumbnails: % d created:% d</strong><br />The following thumbnails were created<br />%s',
	'THUMB_NOT_NEED_CREATE'        => '<strong>Total checked thumbnails: %d</strong>. Thumbnails queued for creation not found',
	'NOT_FORUM_SELECTED'           => 'You must select the forum, please try again.',
	'IMAGES_MODE_IMG'              => '[img] Images',
	'IMAGES_MODE_ATT'              => 'Attachments',
	'IMAGES_MODE_ALL'              => 'All',
	'IMAGES_PHPBB_GALLERY'         => 'Images from Gallery',
	'IMAGES_PHPBB_GALLERY_EXPLAIN' => 'If enabled, images from the Gallery Extension will be available for thumbnails. <a href="https://www.phpbb.com/customise/db/mod/phpbb_gallery/">&laquo;phpBB Gallery 3.1 Extension&raquo;</a><br />This is optional, and not required in your installation.',
	'LOG_IMG_FROM_POSTS_CONFIG'    => '<strong>Images from posts</strong> settings applied',
	'LOG_CLEAR_IMG_CACHE'          => '<strong>Images from posts</strong> cleared thumbnails cache',
]
);
User avatar
cece74
Registered User
Posts: 498
Joined: Mon Jan 12, 2015 8:55 pm

Re: [BETA] Images from posts

Post by cece74 »

After 1.0.4:

Code: Select all

General Error
SQL ERROR [ mysql4 ]

Too many connections [1040]
User avatar
[email protected]
Registered User
Posts: 191
Joined: Sun Sep 15, 2013 11:49 am
Location: bb3.mobi
Name: Anvar Stybaev

Re: [BETA] Images from posts

Post by [email protected] »

MuhClaren, Ok, english update.
[DEV/Beta] More extensions

Hopefully Google correctly translate my text// I do not support in private messages!
HillClimb
Registered User
Posts: 7
Joined: Thu Mar 27, 2014 4:08 am

Re: [BETA] Images from posts

Post by HillClimb »

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_images

Code: Select all

AND p.post_id = t.topic_first_post_id
and also in helper.php function last_images_attachment

Code: Select all

AND t.topic_first_post_id = a.post_msg_id
So that the carousel only displays the photo attachments from the first post within each topic
Howy
Registered User
Posts: 35
Joined: Sun Jun 14, 2015 12:53 pm

Re: [BETA] Images from posts

Post by Howy »

Cool,
Many thanks
User avatar
ouiouiphoto
Registered User
Posts: 91
Joined: Mon Jun 15, 2015 5:30 am

Re: [BETA] Images from posts

Post by ouiouiphoto »

Just installed on the index page on my forum

http://www.ouiouiphoto.fr/Forum

Work like a scharm. I have just change the CSS to have a better integration with my theme. Thanks a lot
User avatar
ouiouiphoto
Registered User
Posts: 91
Joined: Mon Jun 15, 2015 5:30 am

Re: [BETA] Images from posts

Post by ouiouiphoto »

I have one question. This extension show images attached inside my forum. I have say yes "Display images on this forum from other forums?" but if a user use the img bbcode with a link to an image on another site the image thumbnail does not display

I'm i doing something wrong ?

Thanks
John45
Registered User
Posts: 199
Joined: Sat Jun 08, 2013 2:54 am

Re: [BETA] Images from posts

Post by John45 »

[email protected] wrote:MuhClaren, Ok, english update.
Can you make it work with images like this:

Code: Select all

https://lh5.ggpht.com/d3BA_S7zZD3VtniVVvBZWEUg3YGQWKwkTiBJq6gMANRfxJ61VoVnA48OPSiqFx0_7A8=w300
An image that doesn't have the .PNG or .JPG extension.
HillClimb
Registered User
Posts: 7
Joined: Thu Mar 27, 2014 4:08 am

Re: [BETA] Images from posts

Post by HillClimb »

Really like this extension

Small bug for you to fix

In ACP I have display place set to "On Index Page/In List of Topics" i.e. it puts an image carousel on both index.php and viewforum.php

However, if the forum does not have any topics yet then the following PHP warning message is displayed
[phpBB Debug] PHP Warning: in file [ROOT]/ext/bb3mobi/imgposts/event/listener.php on line 106: array_unique() expects parameter 1 to be array, null given


To fix this, all that is needed is in imgpost/event/listener.php, replace this

Code: Select all

		$topic_ids = array_unique($topic_ids);
with this

Code: Select all

      if (!empty($topic_ids))
      {
			  $topic_ids = array_unique($topic_ids);
      }
User avatar
Miri4ever
Registered User
Posts: 618
Joined: Sat Mar 07, 2015 11:18 am

Re: [BETA] Images from posts

Post by Miri4ever »

Sometimes this extension seems strange. Sometimes it appear, no images are display at all at forum, and more and more topics got edited sometimes images appear and got filled. If creating topic inside a moderator forum and moving them to the right it seems, the ext not looking inside those.

I also added a new forum and moved a lot of topics with images inside there. At the bottom of it, it should display the image slider, but it won't show off at all. The slider is activated for all forum except 2 private. All others forum having this slider but the new one not. Have try to enable and changed settings a lot , flushed all caches and folders caches, but it still not show up at this only forum.
Homepage: Terra Oceanica

Extension Developments:
PHPBB Games Solitaire, MChat Poker, MChat Black Jack, MChat Cards, MChat Trivia
PHPBB Special Effects, Mousepointers, X-Mas Themes and Designs for PBWoW Style.
Supported work: (**New Updated** UCP Sidebar), Tables, Hide, PBWow3 Style

Return to “Abandoned Extensions”