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

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

Re: Image Upload

Post by Sniper_E »

I see you hate to be quoted so sorry about this...
Bruce Banner wrote: 28 Nov 2023, 22:11And now you speak to me as if I should be the one apologising.

PS I notice you never bothered to thank me when I pointed out that error in the code of your UCP Sidebar extension, nor have you corrected the error. You're welcome. I won't ever be contacting you again.
Maybe we both need to apologize.
I apologize for reading 1 MB when you clearly stated 1 GB. I even quoted you in my first response as 1 GB and still it didn't register in my brain.
And after reading it again my brain still registered 1 MB. I promise you, I was being the idiot not seeing your 1 GB. My bad.

But Bruce, please go look at my first response to your question at what I said, "Raise the php.ini to 2 MB" You did not change it.
Martin gives details on what's going on and instructs you to, " Set the php.ini to 2 MB" You did it and it fixes your issue.

I mean what's up with that? Your issue could have been fixed on that first response of I gave you. You could have come back with, "That worked, Thanks"

I thanked you at .com for pointing out that typo in one of the links. Out of 4 years in that topic I had 1 page. Now 5 pages, the extra 4 pages have been from recently giving you support. And my support to you has not been in just that topic but all over. No thanks needed. You chose to go to battle in here with someone that was trying to help you instead of taking the fix he gave you and shaking his hand with a smile when it worked. That's your bad.

No apologies from you needed if you don't feel you need to, you were just flowing with your emotions.
Please let me know if there's anything else I can't help you with.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar

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

Re: Image Upload

Post by martin »

Sniper_E wrote: 29 Nov 2023, 04:54
Please let me know if there's anything else I can't help you with.
I have a sore bum.
Image

User avatar

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

Re: Image Upload

Post by Sniper_E »

Well you're in the right place for that. That is definitely something I can't help you with.
You just need to quite using your wife's sex toys without supervision. LOL
Last edited by Sniper_E on 03 Dec 2023, 12:05, edited 1 time in total.

User avatar

toklat
New user
New user
Posts: 1
Joined: 29 Nov 2023, 21:32
    Windows 10 Chrome

Re: Image Upload

Post by toklat »

It's not a bug, rather cosmetic.
The commas between the allowed file extensions are not in the right place:
Image
Open /controller/imageupload.php
Line 274:

Code: Select all

$imageupload_allowed_extensions = implode(' ,', $allowed_extensions_array);
Replace with:

Code: Select all

$imageupload_allowed_extensions = implode(', ', $allowed_extensions_array);
Image

User avatar

yusufdj
Users
Users
Posts: 11
Joined: 21 Mar 2018, 00:02
    Windows 10 Chrome

Re: Image Upload

Post by yusufdj »

[progress][/progress]

User avatar

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

Re: Image Upload

Post by Sniper_E »


Progress: of image uploaded
100%

User avatar

SpIdErPiGgY
Users
Users
Posts: 117
Joined: 04 Feb 2021, 23:54
    Windows 10 Firefox

Re: Image Upload

Post by SpIdErPiGgY »

Is it possible to use simple header and footer, or non of both...?
It's too "crowded" with that header and footer.
Image

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6464
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Re: Image Upload

Post by dmzx »

SpIdErPiGgY wrote: 05 Sep 2025, 05:55 Is it possible to use simple header and footer, or non of both...?
It's too "crowded" with that header and footer.
What do you mean do you have image?

User avatar

SpIdErPiGgY
Users
Users
Posts: 117
Joined: 04 Feb 2021, 23:54
    Windows 10 Firefox

Re: Image Upload

Post by SpIdErPiGgY »

dmzx wrote: 05 Sep 2025, 07:48
SpIdErPiGgY wrote: 05 Sep 2025, 05:55 Is it possible to use simple header and footer, or non of both...?
It's too "crowded" with that header and footer.
What do you mean do you have image?
It would be nice to have the popup like this:

1.png
Instead of this:


2.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

Topic Author
dmzx
Founder
Founder
Posts: 6464
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Re: Image Upload

Post by dmzx »

imageupload_body.html
Replace with Replace the preceding lines with the following

Code: Select all

{% INCLUDE 'simple_header.html' %}

<form method="post" id="add_imageupload" {{ S_FORM_ENCTYPE }}>
	<div class="panel" id="showdiv">
		<div class="inner">
			<h2>{{ lang('IMAGEUPLOAD_UPLOAD_SECTION') }}</h2>
			<p>{{ lang('IMAGEUPLOAD_UPLOAD_MESSAGE') }}</p>
			<p>{{ IMAGEUPLOAD_ALLOWED_SIZE }}</p>
			<dl>
				<dt><label>{{ lang('IMAGEUPLOAD_NEW_FILENAME') }}{{ lang('COLON') }}</label> <input class="inputbox autowidth" type="file" name="filename" size="52" /></dt>
				<dd><label>{{ lang('ALLOWED') }} {{ lang('EXTENSION') }}{{ lang('COLON') }}</label>{{ IMAGEUPLOAD_ALLOWED_EXT }}</dd>
			</dl>
		</div>
	</div>
	<div class="panel bg2">
		<div class="inner">
			<fieldset class="submit-buttons">
				<input class="button1" id="submit" name="submit" value="{{ lang('SUBMIT') }}" type="submit" />&nbsp;
				{{ S_FORM_TOKEN }}
			</fieldset>
		</div>
	</div>
</form>

{% if FILENAME %}
<div class="panel bg2">
	<div class="inner">
		<fieldset class="fields2">
			<h4 id="showdiv">{{ lang('IMAGEUPLOAD_SUCCEEDED') }}<br /><br />{{ WIDTH }} {{ lang('PIXEL') }} * {{ HEIGHT }} {{ lang('PIXEL') }} - {{ SIZE }}</h4>
			<p id="codes">
				{% if IMAGEUPLOAD_ENABLE_DIRECT_LINK %}
				<label id="codehtml">{{ lang('IMAGEUPLOAD_DIRECT_LINK') }}{{ lang('COLON') }}</label><br />
				<input type="text" value="{{ FILENAME }}" id="link" /><i class="buttoncopy" data-copytarget="#link">{{ lang('IMAGEUPLOAD_COPY') }}</i><br />
				{% endif %}
				{% if IMAGEUPLOAD_ENABLE_URL_LINK %}
				<label id="codehtml">{{ lang('IMAGEUPLOAD_URL_LINK') }}{{ lang('COLON') }}</label><br />
				<input type="text" value="[url={{ FILENAME }}]{{ lang('IMAGEUPLOAD_BY') }} {{ SITENAME }}[/url]" id="url" /><i class="buttoncopy" data-copytarget="#url">{{ lang('IMAGEUPLOAD_COPY') }}</i><br />
				{% endif %}
				{% if IMAGEUPLOAD_ENABLE_IMG_LINK %}
				<label id="codehtml">{{ lang('IMAGEUPLOAD_IMG_LINK') }}{{ lang('COLON') }}</label><br />
				<input type="text" value="[img]{{ FILENAME }}[/img]" id="img" /><i class="buttoncopy" data-copytarget="#img">{{ lang('IMAGEUPLOAD_COPY') }}</i><br />
				{% endif %}
				{% if IMAGEUPLOAD_ENABLE_URL_IMG_LINK %}
				<label id="codehtml">{{ lang('IMAGEUPLOAD_URLIMG_LINK') }}{{ lang('COLON') }}</label><br />
				<input type="text" value="[url={{ FILENAME }}][img]{{ FILENAME }}[/img][/url]" id="urlimg" /><i class="buttoncopy" data-copytarget="#urlimg">{{ lang('IMAGEUPLOAD_COPY') }}</i><br /><br />
				{% endif %}
				<div id="showdiv">
					<img id="upload" src="{{ FILENAME }}" title="{{ lang('IMAGEUPLOAD_BY') }} {{ SITENAME }}" /><br />
				</div>
			</p>
		</fieldset>
	</div>
</div>
{% endif %}

{% if S_IMAGEUPLOAD_ENABLE_MULTI %}
{% INCLUDE 'imageupload_multi_upload.html' %}
{% endif %}

{% INCLUDE 'simple_footer.html' %}
overall_header_navigation_append.html
Replace with Replace the preceding lines with the following

Code: Select all

{% if IMAGEUPLOAD_USE_UPLOAD and IMAGEUPLOAD_NAV_ENABLE and not IMAGEUPLOAD_CENTER_ENABLE %}
<li data-last-responsive="true"><a href="{{ U_IMAGEUPLOAD_UPLOAD }}" target="_blank" title="{{ lang('IMAGEUPLOAD_UPLOAD') }}" role="menuitem"><i class="icon fa-upload" aria-hidden="true"></i><span>{{ lang('IMAGEUPLOAD_UPLOAD') }}</span></a></li>
{% else %}
<li data-last-responsive="true"><a href="{{ U_IMAGEUPLOAD_UPLOAD }}" onclick="popup('./imageupload', 670, 300); return false;" title="{{ lang('IMAGEUPLOAD_UPLOAD') }}" role="menuitem" data-navbar-reference="imageupload"><i class="icon fa-upload" aria-hidden="true"></i><span>{{ lang('IMAGEUPLOAD_UPLOAD') }}</span></a></li>
{% endif %}
posting_editor_submit_buttons.html
Replace with Replace the preceding lines with the following

Code: Select all

{% if IMAGEUPLOAD_USE_UPLOAD and IMAGEUPLOAD_POST_ENABLE and not IMAGEUPLOAD_CENTER_ENABLE	%}
<input type="button" class="button1" onclick="popup ('{{ U_IMAGEUPLOAD_UPLOAD }}', 670, 300); return false;" value="{{ lang('IMAGEUPLOAD_UPLOAD') }}" title="{{ lang('IMAGEUPLOAD_UPLOAD') }}" />
{% elseif IMAGEUPLOAD_USE_UPLOAD and IMAGEUPLOAD_POST_ENABLE and IMAGEUPLOAD_CENTER_ENABLE %}
<input type="button" class="button1" onclick="popup_center('{{ U_IMAGEUPLOAD_UPLOAD }}'); return false;" value="{{ lang('IMAGEUPLOAD_UPLOAD') }}" title="{{ lang('IMAGEUPLOAD_UPLOAD') }}" />
{% endif %}
popup.center.js & overall_footer_after.html
Find This may be a partial find and not the whole line

Code: Select all

var h = 700,
		w = 700;
Replace with Replace the preceding lines with the following

Code: Select all

var h = 300,
		w = 670;

Adjust the values if you want multiple upload on.


Image

Post Reply Previous topicNext topic