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>
Previous topicNext topic
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1160
Joined: Oct 14th, '14, 17: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: Nov 28th, '23, 21: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!™

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin Online
Admin
Admin
Status: Online
User theme: Dark
Posts: 5123
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Image Upload

Post by martin »

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

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1160
Joined: Oct 14th, '14, 17: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 Dec 3rd, '23, 11:05, edited 1 time in total.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

toklat
New user
New user
Status: Offline
User theme: Dark
Posts: 1
Joined: Nov 29th, '23, 20: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

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

yusufdj
Users
Users
Status: Offline
User theme: Dark
Posts: 12
Joined: Mar 20th, '18, 23:02
    Windows 10 Chrome

Re: Image Upload

Post by yusufdj »

[progress][/progress]

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1160
Joined: Oct 14th, '14, 17:01
    Windows 10 Chrome

Re: Image Upload

Post by Sniper_E »


Progress: of image uploaded
100%

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

SpIdErPiGgY
Users
Users
Status: Offline
User theme: Dark
Posts: 120
Joined: Feb 4th, '21, 22: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.
🌐 phpBB extensies in het Nederlands
✦ Gratis vertalingen, updates, support en praktische tutorials voor phpBB.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6485
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Image Upload

Post by dmzx »

SpIdErPiGgY wrote: Sep 5th, '25, 03: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?

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

SpIdErPiGgY
Users
Users
Status: Offline
User theme: Dark
Posts: 120
Joined: Feb 4th, '21, 22:54
    Windows 10 Firefox

Re: Image Upload

Post by SpIdErPiGgY »

dmzx wrote: Sep 5th, '25, 05:48
SpIdErPiGgY wrote: Sep 5th, '25, 03: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.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6485
Joined: Jan 13th, '14, 20: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

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

TomaGo
New user
New user
Status: Offline
User theme: Dark
Posts: 1
Joined: Feb 2nd, '24, 20:37
    Mac OS X Chrome

Re: Image Upload

Post by TomaGo »

Hello,

Thank you for this extension, it's what I'm looking for to be autonomous on image hosting.

Would it be possible for the BBCode links to be pasted directly into the message being written? Like with the postimages extension but for local hosting.

Thank you

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

SpIdErPiGgY
Users
Users
Status: Offline
User theme: Dark
Posts: 120
Joined: Feb 4th, '21, 22:54
    Windows 10 Firefox

Re: Image Upload

Post by SpIdErPiGgY »

dmzx wrote: Sep 5th, '25, 06:19
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' %}
Thank you! Just 1 issue ... This edit is losing the ccopy function... Js an css...

Screenshot 2025-11-01 at 11-25-52 phpBB NL Ext Vertalingen • Afbeelding Upload sectie.png
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

yusufdj
Users
Users
Status: Offline
User theme: Dark
Posts: 12
Joined: Mar 20th, '18, 23:02
    Windows 10 Chrome

Re: Image Upload

Post by yusufdj »

Can I add a watermark?

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

lopoto
Users
Users
Status: Offline
User theme: Dark
Posts: 76
Joined: Dec 28th, '14, 00:59
    Mac OS X iPhone

Re: Image Upload

Post by lopoto »

Does anyone have an HSIMG bbcode for imageupload?

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

lopoto
Users
Users
Status: Offline
User theme: Dark
Posts: 76
Joined: Dec 28th, '14, 00:59
    Mac OS X iPhone

Re: Image Upload

Post by lopoto »

It looks like this for me, a link instead of a picture
IMG_4628.jpeg
any tips ?
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

Previous topicNext topic