host an image
4 posters
Page 1 of 1
host an image
hello forumation
i want to have a button for host an image in new topics
https://servimg.com/ is filter in our country (iran)
could i have my own host in host an image?
i want when user click on a button in new topic after clicking select her/his image and then click save in new topic
is it possible?
i want to have a button for host an image in new topics
https://servimg.com/ is filter in our country (iran)
could i have my own host in host an image?
i want when user click on a button in new topic after clicking select her/his image and then click save in new topic
is it possible?
Re: host an image
Do you mean that Servimg is blocked in your country?


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: host an image


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: host an image
Well then it sounds like the issue is with your government blocking certain image hosting sites.


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: host an image
Hi 
You can try installing a button in the editor (I believe Ange Tuteur can teach you that) but please input the link of the image host you're trying to apply
.
Regards,
Pizza Boi

You can try installing a button in the editor (I believe Ange Tuteur can teach you that) but please input the link of the image host you're trying to apply

Regards,
Pizza Boi
Pizza Boi- Hyperactive
-
Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!
Re: host an image
You will need to locate a image hosting site that is not blocked by your country, then use the code that I linked in my post.


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: host an image
Replace the link in the JavaScript I linked with the link you posted. Replace the photobucket one with yours.


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: host an image
As Gray has said,SLGray wrote:Replace the link in the JavaScript I linked with the link you posted. Replace the photobucket one with yours.
This is the variable you must modify to change the upload service :
- Code:
upload : 'http://photobucket.com/upload', // iframe upload url
Re: host an image
I can tell you that it will work when you replace the link with yours. I tested it on my forum.


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: host an image
it doesnt work for me
im using phpbb3
http://lemon-13.full-forum.com
and these are my codes
im using phpbb3
http://lemon-13.full-forum.com
and these are my codes
- Code:
$(window).load(function() {
var settings = {
image : 'http://s3.picofile.com/file/7921435806/2013_09_03_103300.png', // button image
upload : 'http://lemon-13.com/upload-Center', // iframe upload url
height : '250px', // iframe height
width : '500px' // iframe width
};
$('.sceditor-button-servimg').after('<a class="sceditor-button sceditor-button-pb"><div style="background-image:url(' + settings.image + ')"></div></a>');
$('body').append('<div id="pb_container" class="sceditor-dropdown" style="display:none;"></div>');
$('.sceditor-button-pb').click(function() {
var X = $('.sceditor-button-pb').offset().left;
var Y = $('.sceditor-button-pb').offset().top + 25;
if (!document.getElementById('pb_frame') && $('#pb_container').css('display') == 'none') $('#pb_container').show().css('left',X + 'px').css('top',Y + 'px').append('<iframe id="pb_frame" style="border:none;height:' + settings.height + ';width:' + settings.width + ';" src="' + settings.upload + '"></iframe>');
else if ($('#pb_container').css('display') == 'none') $('#pb_container').show().css('left',X + 'px').css('top',Y + 'px');
else $('#pb_container').hide();
});
$('.sceditor-button:not(.sceditor-button-pb), .sceditor-container textarea, .sceditor-container iframe').click(function() { $('#pb_container').hide() });
$('.sceditor-container iframe').contents().mousedown(function() { $('#pb_container').hide() });
$('.sceditor-button-source').click(function() { $('.sceditor-button-pb').removeClass('disabled') });
});
Re: host an image
oh!
it was work just for reply
but when i checked it on In all the pages its work for topics too
and one more question
how can i remove last host an image icon?
and other one like youtub and insert curent date and...
it was work just for reply
but when i checked it on In all the pages its work for topics too
and one more question
how can i remove last host an image icon?
and other one like youtub and insert curent date and...
Re: host an image
If you want to hide the old upload button, just add this to your CSS stylesheet :
- Code:
.sceditor-button-servimg {
display:none !important;
}


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: host an image
tnx bro
and how about hide
Insert a YouTube video icon
Insert current date icon
Insert current time icon
hidden icon
spoler icon
and how about hide
Insert a YouTube video icon
Insert current date icon
Insert current time icon
hidden icon
spoler icon
Re: host an image
CSS:
- Code:
.sceditor-button-time div {
display: none !important;
}
.sceditor-button-youtube div {
display: none !important;
}
.sceditor-button-fahide div {
display: none !important;
}
.sceditor-button-faspoiler div {
display: none !important;
}


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: host an image
In the CSS codes I gave you add this to each one:
- Code:
background-position: 0px;


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: host an image
it doesnt workSLGray wrote:In the CSS codes I gave you add this to each one:
- Code:
background-position: 0px;
this code
- Code:
.sceditor-button-table div {
background-position: 0px;
display: none !important;
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum