The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

host an image

View previous topic View next topic Go down

In progress host an image

Post by qmars(pkq) on June 30th 2014, 2:46 pm

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?

qmars(pkq)
Forumember

Posts : 219
Reputation : 1
Language : english,persian
Location : iran

http://lemon-13.full-forum.com

Back to top Go down

In progress Re: host an image

Post by SLGray on June 30th 2014, 7:52 pm

Do you mean that Servimg is blocked in your country?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: host an image

Post by qmars(pkq) on July 1st 2014, 6:55 am

@SLGray wrote:Do you mean that Servimg is blocked in your country?
yes bro

qmars(pkq)
Forumember

Posts : 219
Reputation : 1
Language : english,persian
Location : iran

http://lemon-13.full-forum.com

Back to top Go down

In progress Re: host an image

Post by SLGray on July 1st 2014, 7:40 am



When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: host an image

Post by qmars(pkq) on July 1st 2014, 7:42 am

its filter too! bwi
it isnt posible to have my own host on image?

qmars(pkq)
Forumember

Posts : 219
Reputation : 1
Language : english,persian
Location : iran

http://lemon-13.full-forum.com

Back to top Go down

In progress Re: host an image

Post by SLGray on July 1st 2014, 9:38 pm

Well then it sounds like the issue is with your government blocking certain image hosting sites.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: host an image

Post by Pizza Boi on July 3rd 2014, 3:53 pm

Hi Very Happy

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

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

In progress Re: host an image

Post by SLGray on July 3rd 2014, 6:47 pm

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.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: host an image

Post by qmars(pkq) on July 4th 2014, 11:28 am


qmars(pkq)
Forumember

Posts : 219
Reputation : 1
Language : english,persian
Location : iran

http://lemon-13.full-forum.com

Back to top Go down

In progress Re: host an image

Post by qmars(pkq) on July 5th 2014, 8:27 pm

bump

qmars(pkq)
Forumember

Posts : 219
Reputation : 1
Language : english,persian
Location : iran

http://lemon-13.full-forum.com

Back to top Go down

In progress Re: host an image

Post by SLGray on July 5th 2014, 8:35 pm

Replace the link in the JavaScript I linked with the link you posted. Replace the photobucket one with yours.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: host an image

Post by Ange Tuteur on July 5th 2014, 9:58 pm

@SLGray wrote:Replace the link in the JavaScript I linked with the link you posted. Replace the photobucket one with yours.
As Gray has said,

This is the variable you must modify to change the upload service :
Code:
upload : 'http://photobucket.com/upload', // iframe upload url

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: host an image

Post by SLGray on July 5th 2014, 10:05 pm

I can tell you that it will work when you replace the link with yours. I tested it on my forum.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: host an image

Post by qmars(pkq) on July 6th 2014, 1:41 pm

it doesnt work for me
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') });
});

qmars(pkq)
Forumember

Posts : 219
Reputation : 1
Language : english,persian
Location : iran

http://lemon-13.full-forum.com

Back to top Go down

In progress Re: host an image

Post by qmars(pkq) on July 6th 2014, 1:47 pm

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

qmars(pkq)
Forumember

Posts : 219
Reputation : 1
Language : english,persian
Location : iran

http://lemon-13.full-forum.com

Back to top Go down

In progress Re: host an image

Post by SLGray on July 6th 2014, 7:02 pm

If you want to hide the old upload button, just add this to your CSS stylesheet :


Code:
.sceditor-button-servimg {
      display:none !important;
}


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: host an image

Post by qmars(pkq) on July 6th 2014, 8:44 pm

tnx bro
and how about hide
Insert a YouTube video icon
Insert current date icon
Insert current time icon
hidden icon
spoler icon

qmars(pkq)
Forumember

Posts : 219
Reputation : 1
Language : english,persian
Location : iran

http://lemon-13.full-forum.com

Back to top Go down

In progress Re: host an image

Post by SLGray on July 6th 2014, 9:00 pm

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;
}


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: host an image

Post by qmars(pkq) on July 7th 2014, 11:37 am

tnx again
and how can i remove these space place ?

qmars(pkq)
Forumember

Posts : 219
Reputation : 1
Language : english,persian
Location : iran

http://lemon-13.full-forum.com

Back to top Go down

In progress Re: host an image

Post by SLGray on July 7th 2014, 8:04 pm

In the CSS codes I gave you add this to each one:
Code:
background-position: 0px;


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: host an image

Post by qmars(pkq) on July 8th 2014, 11:50 am

@SLGray wrote:In the CSS codes I gave you add this to each one:
Code:
background-position: 0px;
it doesnt work
this code
Code:
.sceditor-button-table div {
  background-position: 0px;
    display: none !important;

qmars(pkq)
Forumember

Posts : 219
Reputation : 1
Language : english,persian
Location : iran

http://lemon-13.full-forum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum