Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
Recent Tutorials
Top posting users this month
Top Achievers
Who is online?
In total there are 33 users online :: 0 Registered, 0 Hidden and 33 Guests :: 2 Bots
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
[SOLVED] Button servimg
Page 1 of 1 • Share
I would like to create a button with this code as do
- Code:
<div style="position: fixed; right: 1px; z-index: 10000; top: 32px;">
<a onclick="javascript:window.open('http://www.servimg.com/upload.php','','scrollbars=yes,resizable=no,width=780,height=530')" href="javascript:void(1)"> <img class="host" style="vertical-align: middle; width: 30px; height: 22px;" title="Upload con Servimg" src="http://i84.servimg.com/u/f84/16/90/45/33/img-sc11.png" /></a></div>
SLGray wrote:The editor already has a button for Servimg (host an image) if your forum uses Servimg.
yes to upload....This and archive images
you can put in the toolbar? thanks for the replySLGray wrote: Are you creating a customized editor toolbar?
So you want to make servimg a popup window, like the following tutorial ?
http://hilfe.forumieren.com/t41825-tutoalle-versionen-servimg-komfortables-hochladen-von-bildern-in-einem-popup
http://hilfe.forumieren.com/t41825-tutoalle-versionen-servimg-komfortables-hochladen-von-bildern-in-einem-popup
@jessy yeah, I can make a button, but I'll work on it tomorrow if that's alright ? It's late here and tired + coding don't mix.
@jessy add the script below in "all the pages" :
- Code:
$(function() {
if ($.sceditor) {
$.sceditor.command.set('servimg-popup', {
exec : function() {
javascript:window.open('http://www.servimg.com/upload.php','','scrollbars=yes,resizable=no,width=780,height=530');
},
txtExec : function() {
javascript:window.open('http://www.servimg.com/upload.php','','scrollbars=yes,resizable=no,width=780,height=530');
},
tooltip : 'Upload con Servimg'
});
toolbar = toolbar.replace(/servimg/, 'servimg,servimg-popup');
}
});
document.write('<style type="text/css">.sceditor-button-servimg-popup div { background:url(http://i84.servimg.com/u/f84/16/90/45/33/img-sc11.png) no-repeat center center !important; background-size:16px 16px !important; }</style>');
Looks like JSON..
If you format the data as a string it'll give you :
The error says "You are not logged in" so I'm assuming that's what's giving you, your error.
If you format the data as a string it'll give you :
- Code:
name : And 'Sorry, an error
size :
error : You are not logged in
The error says "You are not logged in" so I'm assuming that's what's giving you, your error.
- Sponsored content
Similar topics
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum