Solved: 5 Days, 16 Hours, 49 Minutes ago How translate this? Image upload by postimages
#1
Solved: 5 Days, 16 Hours, 49 Minutes ago
Hi guys. 

Is there a way to translate "Add image to post" (see attached image, please)? I am talking about this plugin: https://postimages.org/mybb

This plugin has only one file: image_upload.php

<?php
if(!defined("IN_MYBB"))
{
	die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}

$plugins->add_hook("pre_output_page","image_upload");

function image_upload_info()
{
	return array(
		"name"			=> "Image Upload",
		"description"	=> "The easiest way to attach images to posts",
		"website"		=> "http://community.mybb.com/mods.php?action=view&pid=765",
		"author"		=> "Postimage Team",
		"authorsite"	=> "http://postimage.org/",
		"version"		=> "1.0.3",
		"compatibility" => "*"
	);
}

function image_upload($page)
{
	return str_replace("</head>","<script type='text/javascript' src='//mod.postimage.org/mybb.js' charset='utf-8'></script>\n</head>",$page);
}
?>


And I don`t see "Add image to post". Is there a way to translate it?

Thank you.


Attached Files Thumbnail(s)
   
Reply
#2
Solved: 5 Days, 16 Hours, 49 Minutes ago
You can mention the javascript file manually with a edited version

Download the JS :- https://mod.postimage.org/mybb.js

And search for the term ''Add image to post'' and change it to something else whatever you want . Then upload the js file to your hosting file manager and edit the plugin and change the url to your manual uploaded file path.
Reply
#3
Solved: 5 Days, 16 Hours, 49 Minutes ago
Paradox was faster, please delete
 
Reply
#4
Solved: 5 Days, 16 Hours, 49 Minutes ago
(2025-01-10, 06:46 AM)PARADOX987 Wrote: You can mention the javascript file manually with a edited version

Download the JS :- https://mod.postimage.org/mybb.js

And search for the term ''Add image to post'' and change it to something else whatever you want . Then upload the js file to your hosting file manager and edit the plugin and change the url to your manual uploaded file path.

Thank you for your reply.

Do you mean that (after translate and upload the js file) I will have to change this path //mod.postimage.org/mybb.js to //mywebsite.com/etcetc?

Maybe this is a stupid question, but if I will change the url with the future location path, images will be upload to my server? Because I don`t really want that (that is why I choosed this plugin because I don't want to fill my web hosting with images).
Reply
#5
Solved: 5 Days, 16 Hours, 49 Minutes ago
(2025-01-10, 06:53 AM)bv64 Wrote: Paradox was faster, please delete

It's okay, you can still help me if you want. Could you answer this question for me?

Quote:Do you mean that (after translate and upload the js file) I will have to change this path //mod.postimage.org/mybb.js to //mywebsite.com/etcetc? 

Maybe this is a stupid question, but if I will change the url with the future location path, images will be upload to my server? Because I don`t really want that (that is why I choosed this plugin because I don't want to fill my web hosting with images).
Reply
#6
Solved: 5 Days, 16 Hours, 49 Minutes ago
without domain, just the "ectect" to the file, for example jscripts/mybb.js

Quote: images will be upload to my server?
no

And one more note: in over 20 years of forum experience, I have never used an external image hoster, a reasonable web space offer usually includes enough space
Hosting images externally always brings with it the risk that the provider will close and then all the images will be gone
 
Reply
#7
Solved: 5 Days, 16 Hours, 49 Minutes ago
(2025-01-13, 09:30 AM)bv64 Wrote: without domain, just the "ectect" to the file, for example jscripts/mybb.js

Quote: images will be upload to my server?
no

And one more note: in over 20 years of forum experience, I have never used an external image hoster, a reasonable web space offer usually includes enough space
Hosting images externally always brings with it the risk that the provider will close and then all the images will be gone

I don't want to load up my web hosting with images and I don't mind that they may disappear someday, as they are not important.

Thank you very much for your help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)