Scheduled Maintenance: 10-11-2025 Electricity company maintenance between 09:00 and 15:00.

3.2 & 3.3 Extensions Database 3.2 / 3.3Image Upload

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
User avatar

seacoast
Users
Users
Posts: 159
Joined: 28 Aug 2017, 19:58
    Windows 10 Firefox

Re: Image Upload

Post by seacoast »

dmzx wrote: 09 May 2020, 18:00
seacoast wrote: 09 May 2020, 17:59 I think there might be a conflict with this ext.


https://github.com/sajaki/RecentTopics
What is the conflict?
Yes confirmed it....when I disable recent topics the issue goes away.

Recent topics ON looks like this:
recenttopicON.png

Recent topics OFF looks like this:
recenttopicOFF.png
In addition, if I change the number of pages to 1 in recent topics, the problem goes away.
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

Solidjeuh
Donator
Donator
Posts: 348
Joined: 13 Dec 2014, 02:40
    Windows 10 Firefox

Re: Image Upload

Post by Solidjeuh »

I'm getting a console error in Firefox

This page uses the non-standard property "zoom". Consider using calc () in the relevant property values or use "transform" together with "transform-origin: 0 0".

In file: sweetalert2.all.min.js
Forum voor NL Extensie vertalingen ---> https://www.supportforum.be
----------------------------------------------------------------------------

User avatar

martin
Admin
Admin
Posts: 5106
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Image Upload

Post by martin »

Use a real browser then :rolling:
Image

User avatar

Solidjeuh
Donator
Donator
Posts: 348
Joined: 13 Dec 2014, 02:40
    Windows 10 Firefox

Re: Image Upload

Post by Solidjeuh »

martin wrote: 11 May 2020, 13:18 Use a real browser then :rolling:
I do... Firefox :eyes2: :rolling:

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: Image Upload

Post by Sniper_E »

I had a layout problem with the pagination also so I changed the imageupload_index_body.html template.

I moved the pagination up in the header of the block and...
Moved the message from the <p> to a <div with class. (It needed some space around the message)

Code: Select all

{% if IMAGEUPLOAD_USE_UPLOAD and IMAGEUPLOAD_INDEX_ENABLE and UCP_IMAGEUPLOAD_INDEX and loops.images|length %}

{% if IMAGEUPLOAD_IS_COLLAPSIBLE %}
	<a class="category{% if S_IMAGEUPLOAD_HIDDEN %} hidden-category{% endif %} imageupload-category"></a>
{% endif %}

<div class="forabg">
	<div class="inner">
		<ul class="topiclist">
			<li class="header">
				<dl class="row-item">
					<dt>{{ lang('IMAGEUPLOAD_UPLOADED_IMAGES') }}</dt>
					<dd style="border: none; float: right">
						{% if loops.pagination|length or IMAGEUPLOAD_PAG_IMAGES %}
						<div class="pagination">
							{{ IMAGEUPLOAD_PAG_IMAGES }}
							{% if loops.pagination|length %}
								{% INCLUDE 'pagination.html' %}
							{% else %}
								&bull; {{ PAGE_NUMBER }}
							{% endif %}
						</div>
						{% endif %}
					</dd>
				</dl>
				{% if IMAGEUPLOAD_IS_COLLAPSIBLE %}
				<a href="{{ U_IMAGEUPLOAD_COLLAPSE_URL }}"
					class="collapse-btn imageupload-collapse"
						data-hidden="{{ S_IMAGEUPLOAD_HIDDEN }}"
						data-ajax="phpbb_collapse"
						data-overlay="true"
						data-title-alt="{{ lang('IMAGEUPLOAD_COLLAPSIBLE_CATEGORIES_TITLE', ((not S_IMAGEUPLOAD_HIDDEN) * 1)) }}"
						title="{{ lang('IMAGEUPLOAD_COLLAPSIBLE_CATEGORIES_TITLE', (S_IMAGEUPLOAD_HIDDEN * 1)) }}">
						<i class="fa {% if S_IMAGEUPLOAD_HIDDEN %}fa-plus-square{% else %}fa-minus-square{% endif %}"></i>
					</a>
				{% endif %}
			</li>
		</ul>
		<ul class="forums collapsible" style="max-height:210px; overflow-x:hidden; overflow-y:auto;">
			<li class="row-items">
				<dl>
					<dt>
						<fieldset class="fields1">
							<div class="post bg2">{% if S_IMAGEUPLOAD_CHAT_INSERT %}{{ lang('IMAGEUPLOAD_INDEXPAGE_CHAT') }}{% else %}{{ lang('IMAGEUPLOAD_INDEXPAGE') }}{% endif %}</div>
							<div class="panel upload_inner">
								<div class="inner">
								{% for images in loops.images %}
									<div style="float:left; text-align: center;" class="upload_enabled">
										<div class="imageupload_index-preview" onclick="imageuploadClick(this)">
											<img class="imageupload_index" id="{{ images.ID }}" src="{{ images.IMAGEPATH }}" title="{{ images.FILENAME }}" alt="{{ images.WIDTH }} {{ lang('PIXEL') }} * {{ images.HEIGHT }} {{ lang('PIXEL') }} - {{ images.SIZE }}" />
										</div>
										<div class="imageupload-name">
											{% if S_IMAGEUPLOAD_CHAT_INSERT %}
											{{ images.FILENAME }}&nbsp;<i onclick="insert_text(' [img]{{ images.IMAGEPATH }}[/img] ');" data-mchat-action="add" title="{{ lang('IMAGEUPLOAD_INSERT_MCHAT_IMAGE') }}" class="icon fa-arrow-circle-o-up fa-fw"></i>
											{% else %}
											{{ images.FILENAME }}
											{% endif %}
										</div>
									</div>
								{% endfor %}
								</div>
							</div>
						</fieldset>
					</dt>
					<dd style="border: none">&nbsp;</dd>
				</dl>
			</li>
		</ul>
	</div>
</div>

{% endif %}
Image
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar

martin
Admin
Admin
Posts: 5106
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Image Upload

Post by martin »

Now get 50 images uploaded your soon change ya mind. :whistl: also add collapse icon to it.

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: Image Upload

Post by Sniper_E »

I don't understand that. The original template is back up on my site, see the awkward layout?

User avatar

martin
Admin
Admin
Posts: 5106
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Image Upload

Post by martin »

Original template the pagi was out side the box but it never got released as i moved it inside the frame.
ED.png
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

martin
Admin
Admin
Posts: 5106
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Image Upload

Post by martin »

Try this cators for a few images or lots.

Code: Select all

{% if IMAGEUPLOAD_USE_UPLOAD and IMAGEUPLOAD_INDEX_ENABLE and UCP_IMAGEUPLOAD_INDEX and loops.images|length %}

{% if IMAGEUPLOAD_IS_COLLAPSIBLE %}
	<a class="category{% if S_IMAGEUPLOAD_HIDDEN %} hidden-category{% endif %} imageupload-category"></a>
{% endif %}

<div class="forabg">
	<div class="inner">
		<ul class="topiclist">
			<li class="header">
				<dl class="row-item">
					<dt>{{ lang('IMAGEUPLOAD_UPLOADED_IMAGES') }}</dt>
					<dd style="border: none">&nbsp;</dd>
				</dl>
				{% if IMAGEUPLOAD_IS_COLLAPSIBLE %}
				<a href="{{ U_IMAGEUPLOAD_COLLAPSE_URL }}"
					class="collapse-btn imageupload-collapse"
						data-hidden="{{ S_IMAGEUPLOAD_HIDDEN }}"
						data-ajax="phpbb_collapse"
						data-overlay="true"
						data-title-alt="{{ lang('IMAGEUPLOAD_COLLAPSIBLE_CATEGORIES_TITLE', ((not S_IMAGEUPLOAD_HIDDEN) * 1)) }}"
						title="{{ lang('IMAGEUPLOAD_COLLAPSIBLE_CATEGORIES_TITLE', (S_IMAGEUPLOAD_HIDDEN * 1)) }}">
						<i class="fa {% if S_IMAGEUPLOAD_HIDDEN %}fa-plus-square{% else %}fa-minus-square{% endif %}"></i>
					</a>
				{% endif %}
			</li>
		</ul>
		<ul class="forums collapsible" style="max-height:210px; overflow-x:hidden; overflow-y:auto;">
			<li class="row-items">
				<dl>
					<dt>
						<fieldset class="fields1">
                                                {% if loops.pagination|length or IMAGEUPLOAD_PAG_IMAGES %}
			                        <div class="pagination">
				                     {{ IMAGEUPLOAD_PAG_IMAGES }}
				                   {% if loops.pagination|length %}
					            {% INCLUDE 'pagination.html' %}
				                   {% else %}
					          &bull; {{ PAGE_NUMBER }}
				               {% endif %}
			                        </div>
			                           {% endif %}
							<p>{% if S_IMAGEUPLOAD_CHAT_INSERT %}{{ lang('IMAGEUPLOAD_INDEXPAGE_CHAT') }}{% else %}{{ lang('IMAGEUPLOAD_INDEXPAGE') }}{% endif %}</p> 
							<div class="panel upload_inner">
								<div class="inner">
								{% for images in loops.images %}
									<div style="float:left; text-align: center;" class="upload_enabled">
										<div class="imageupload_index-preview" onclick="imageuploadClick(this)">
											<img class="imageupload_index" id="{{ images.ID }}" src="{{ images.IMAGEPATH }}" title="{{ images.FILENAME }}" alt="{{ images.WIDTH }} {{ lang('PIXEL') }} * {{ images.HEIGHT }} {{ lang('PIXEL') }} - {{ images.SIZE }}" />
										</div>
										<div class="imageupload-name">
											{% if S_IMAGEUPLOAD_CHAT_INSERT %}
											{{ images.FILENAME }}&nbsp;<i onclick="insert_text(' [img]{{ images.IMAGEPATH }}[/img] ');" data-mchat-action="add" title="{{ lang('IMAGEUPLOAD_INSERT_MCHAT_IMAGE') }}" class="icon fa-arrow-circle-o-up fa-fw"></i>
											{% else %}
											{{ images.FILENAME }}
											{% endif %}
										</div>
									</div>
								{% endfor %}
								</div>
							</div>
						</fieldset>
					</dt>
					<dd style="border: none">&nbsp;</dd>
				</dl>
			</li>
		</ul>
	</div>
</div>

{% endif %}
Add this the the ext css file

Code: Select all

p {
  padding-top: 5px;
  padding-left: 5px;
  margin-bottom: 2px !important;
}
before
77.png
after
66.png
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

Scanialady
Users
Users
Posts: 310
Joined: 06 Apr 2015, 18:04
    Windows 10 Chrome

Re: Image Upload

Post by Scanialady »

seacoast wrote: 09 May 2020, 23:34
dmzx wrote: 09 May 2020, 18:00
seacoast wrote: 09 May 2020, 17:59 I think there might be a conflict with this ext.


https://github.com/sajaki/RecentTopics
What is the conflict?
Yes confirmed it....when I disable recent topics the issue goes away.


In addition, if I change the number of pages to 1 in recent topics, the problem goes away.
I confirm this problem, too. If there is more than one page on recent topics I get the pagination from there in image upload, too.
-
If you want to get German translations for extensions: ask me.

User avatar

martin
Admin
Admin
Posts: 5106
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Image Upload

Post by martin »

I suspect its posts_per_page as they both use the same setting in the acp.

User avatar

Scanialady
Users
Users
Posts: 310
Joined: 06 Apr 2015, 18:04
    Windows 10 Chrome

Re: Image Upload

Post by Scanialady »

It would be nice if you could narrow down the problem and change the appropriate class. I personally would appreciate a correction.

User avatar

seacoast
Users
Users
Posts: 159
Joined: 28 Aug 2017, 19:58
    Android Chrome

Re: Image Upload

Post by seacoast »

One minor suggestion....seems to me that having both the single image option AND the multiple image option is redundant because users can upload a single image in the multiple upload section. Just my thought.

User avatar

martin
Admin
Admin
Posts: 5106
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Image Upload

Post by martin »

Both options are better as i upload a single image and get the link right away and post it on another site.

Now if u used the multi for one image i then have to go to the index to see the image and then get the link.

Also there is now a new layout for images on the index long name images are shorted via the browser.
new.png
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

SAGreen
Users
Users
Posts: 15
Joined: 23 Feb 2020, 19:17
    Windows 10 Firefox

Re: Image Upload

Post by SAGreen »

Hi,
I have a problem displaying images in UCP. When I click on it, a pop-up window will not appear, but an image with data will appear under the footer of the forum and the whole site will be scattered, see attached screen...

Image

I also tried it on the default prosilver theme, but this error also manifested itself there. I would also like to ask where can I resize the HSIMG (URL-IMG link) to a certain width and height in px, and also if it is possible to delete images in UCP in bulk and not one by one. Thank you in advance for the info. Regards, Scott
Let's Go CommAndeR

Post Reply Previous topicNext topic