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 12 users online :: 0 Registered, 0 Hidden and 12 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] script does not work
Page 1 of 1 • Share
I would like to know where to put this script to see it in {} CKEditor on all pages
Reply : Yes
new topic : No
- Code:
<script type="text/javascript" src="http://sd-2.archive-host.com/membres/up/164771344549570006/bottonimoderazionebbcode/bottonimoderazionecode.js"></script>
Reply : Yes
new topic : No
Hey, try replacing the code you posted with this :
or this :
That should work in JS codes management.
The other code should have been placed in the templates, because it's HTML.
- Code:
document.write('<script type="text/javascript" src="http://sd-2.archive-host.com/membres/up/164771344549570006/bottonimoderazionebbcode/bottonimoderazionecode.js"></script>');
or this :
- Code:
$.getScript('http://sd-2.archive-host.com/membres/up/164771344549570006/bottonimoderazionebbcode/bottonimoderazionecode.js');
That should work in JS codes management.
The other code should have been placed in the templates, because it's HTML.
it does not work properly ...Reply : Yes...new topic : No I did it in any case also posting_body
I do not understand why it does not work,this is the code
thanks in advance
I do not understand why it does not work,this is the code
- Code:
$(function(){$(function(){
$(' <a class="sceditor-button" unselectable="on" title="New"><div unselectable="on" style="background-image:url(http://icons.iconarchive.com/icons/chrisbanks2/cold-fusion-hd/16/news-alt-icon.png)"></div></a>').insertBefore('.sceditor-button-emoticon').click(function(){
$('#text_editor_textarea').sceditor("instance").insertText("[table class=notewarningx][tr][td]","[/td][/tr][/table]");
});
})});$(function(){$(function(){
$(' <a class="sceditor-button" unselectable="on" title="Off topic"><div unselectable="on" style="background-image:url(http://icons.iconarchive.com/icons/fatcow/farm-fresh/16/application-delete-icon.png)">Off topic</div></a>').insertBefore('.sceditor-button-emoticon').click(function(){
$('#text_editor_textarea').sceditor("instance").insertText("[table class=notewarning][tr][td]","[/td][/tr][/table]");
});
})});$(function(){$(function(){
$(' <a class="sceditor-button" unselectable="on" title="Info"><div unselectable="on" style="background-image:url(http://icons.iconarchive.com/icons/aha-soft/people/16/user-info-icon.png)">Info</div></a>').insertBefore('.sceditor-button-emoticon').click(function(){
$('#text_editor_textarea').sceditor("instance").insertText("[table class=noteclassic][tr][td]","[/td][/tr][/table]");
});
})});$(function(){$(function(){
$(' <a class="sceditor-button" unselectable="on" title="Attenzione"><div unselectable="on" style="background-image:url(http://icons.iconarchive.com/icons/double-j-design/ravenna-3d/16/Alert-icon.png)">Attenzione</div></a>').insertBefore('.sceditor-button-emoticon').click(function(){
$('#text_editor_textarea').sceditor("instance").insertText("[table class=notetip][tr][td]","[/td][/tr][/table]");
});
})});$(function(){$(function(){
$(' <a class="sceditor-button" unselectable="on" title="Evidenzia"><div unselectable="on" style="background-image:url(http://icons.iconarchive.com/icons/creative-freedom/free-funktional/16/07-Draw-icon.png)">evidenzia</div></a>').insertBefore('.sceditor-button-emoticon').click(function(){
$('#text_editor_textarea').sceditor("instance").insertText("[ic]","[/ic]");}); })});
thanks in advance
It was probably ignorant of me not to ask before, but could you explain what you're trying to achieve ? As best you can, take your time.
P.S.
Sorry I didn't answer sooner, I took Sunday off.
P.S.
Sorry I didn't answer sooner, I took Sunday off.
well..I inserted this code in the module javascript -> all pages
quick answer : yes
Reply is new topic : not work
where am I wrong ?
question ;
if I want to insert a script in the template in which I have to add?
thank you very much for your availability
- code:
- Code:
$(function(){$(function(){
$(' <a class="sceditor-button" unselectable="on" title="New"><div unselectable="on" style="background-image:url(http://icons.iconarchive.com/icons/chrisbanks2/cold-fusion-hd/16/news-alt-icon.png)"></div></a>').insertBefore('.sceditor-button-emoticon').click(function(){
$('#text_editor_textarea').sceditor("instance").insertText("[table class=notewarningx][tr][td]","[/td][/tr][/table]");
});
})});$(function(){$(function(){
$(' <a class="sceditor-button" unselectable="on" title="Off topic"><div unselectable="on" style="background-image:url(http://icons.iconarchive.com/icons/fatcow/farm-fresh/16/application-delete-icon.png)">Off topic</div></a>').insertBefore('.sceditor-button-emoticon').click(function(){
$('#text_editor_textarea').sceditor("instance").insertText("[table class=notewarning][tr][td]","[/td][/tr][/table]");
});
})});$(function(){$(function(){
$(' <a class="sceditor-button" unselectable="on" title="Info"><div unselectable="on" style="background-image:url(http://icons.iconarchive.com/icons/aha-soft/people/16/user-info-icon.png)">Info</div></a>').insertBefore('.sceditor-button-emoticon').click(function(){
$('#text_editor_textarea').sceditor("instance").insertText("[table class=noteclassic][tr][td]","[/td][/tr][/table]");
});
})});$(function(){$(function(){
$(' <a class="sceditor-button" unselectable="on" title="Attenzione"><div unselectable="on" style="background-image:url(http://icons.iconarchive.com/icons/double-j-design/ravenna-3d/16/Alert-icon.png)">Attenzione</div></a>').insertBefore('.sceditor-button-emoticon').click(function(){
$('#text_editor_textarea').sceditor("instance").insertText("[table class=notetip][tr][td]","[/td][/tr][/table]");
});
})});
$(function(){$(function(){
$(' <a class="sceditor-button" unselectable="on" title="Evidenzia"><div unselectable="on" style="background-image:url(http://icons.iconarchive.com/icons/creative-freedom/free-funktional/16/07-Draw-icon.png)">evidenzia</div></a>').insertBefore('.sceditor-button-emoticon').click(function(){
$('#text_editor_textarea').sceditor("instance").insertText("[ic]","[/ic]");});})});
quick answer : yes
Reply is new topic : not work
where am I wrong ?
question ;
if I want to insert a script in the template in which I have to add?
thank you very much for your availability
AH ! I see the problem ! You're using
as a dropping point for your buttons. The emoticon button is not available in the full editor. I'd recommend changing
to
instead.
|
|
|
@jessy use this CSS rule to center the buttons :
- Code:
.sceditor-container .sceditor-toolbar {
text-align:center;
}
- 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