Easy write for staff on editor
5 posters
Page 1 of 1
Easy write for staff on editor
Hello.. Well my problem is this..
I am using this code in Forum Widgets and its visible only for staff.
I am using this code in Forum Widgets and its visible only for staff.
- Code:
<script>jQuery(function(){jQuery(function(){jQuery('<a class="sceditor-button" unselectable="on" title="BBCode ( Ready Code)"><div unselectable="on" style="background-image:url(https://cdn1.iconfinder.com/data/icons/fatcow/16/text_letter_omega.png)"></div></a>').insertBefore('.sceditor-button-size').click(function(){jQuery('#text_editor_textarea').sceditor("instance").insertText("<center>???code???</center>")})})});</script>
- Code:
[font=Comic Sans MS][size=16][color=red][/color][/size][/font]
Last edited by Marios94 on November 19th 2013, 11:54 am; edited 1 time in total
Re: Easy write for staff on editor
bump
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Re: Easy write for staff on editor
Hello
You need just html code for this:
If yes try this:
You need just html code for this:
- Code:
[font=Comic Sans MS][size=16][color=red][/color][/size][/font]
If yes try this:
- Code:
<font style="Comic Sans MS" size="16px" color="#ff0000"></font>
Re: Easy write for staff on editor
This code should work as the first code u wrote in the reply from. for example if i use this:
<font style="Comic Sans MS" size="16px" color="#ff0000">Text Here!</font>
i should have as preview message this:
Text Here!
Unfortunately this code doesn't work..
<font style="Comic Sans MS" size="16px" color="#ff0000">Text Here!</font>
i should have as preview message this:
Text Here!
Unfortunately this code doesn't work..
Re: Easy write for staff on editor
Then you can use css.
Paste this in css stylesheet:
Paste this in css stylesheet:
- Code:
.stms {
font-family: "Comic Sans MS",Arial,Verdana,Tahoma;
color: #f00;
text-height: 16px;
}
- Code:
<span class="stms"></span>
Re: Easy write for staff on editor
now it doesn't show the button...
To show you my problem...
I have this widget that i named BBcode. In this widget i have this code:
Here the text
Just this...
To show you my problem...
I have this widget that i named BBcode. In this widget i have this code:
- Code:
<script>jQuery(function(){jQuery(function(){jQuery('<a class="sceditor-button" unselectable="on" title="BBCode ( Έτοιμος Κώδικας)"><div unselectable="on" style="background-image:url(https://cdn1.iconfinder.com/data/icons/fatcow/16/text_letter_omega.png)"></div></a>').insertBefore('.sceditor-button-size').click(function(){jQuery('#text_editor_textarea').sceditor("instance").insertText("<center>????? Here the text ?????</center>")})})});</script>
- Code:
[font=Comic Sans MS][size=16][color=#ff0000]Here the text[/color][/size][/font]
Here the text
Just this...
Re: Easy write for staff on editor
How you removed this - ????? Here the text ????? - and added what you want?
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: Easy write for staff on editor
That 's what i want.. TO make a code that as soon as you press the button to paste one code so the result will be as the one above..
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Re: Easy write for staff on editor
What exactly happens when you press the button now?
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: Easy write for staff on editor
the way i gave the code it shows :
- Code:
<center>????? Here the text ?????</center>
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Re: Easy write for staff on editor
Hello Marios94,
Widgets do not preserve bbcodes, they instead are converted to HTML. If you want this to be visible only to staff do the following.
Administration Panel > Modules > HTML & JAVASCRIPT > HTML pages management
create a new HTML page, name what you wish, and paste the source code:
If you do everything correctly the button should apply the correct bbcodes.
Widgets do not preserve bbcodes, they instead are converted to HTML. If you want this to be visible only to staff do the following.
Administration Panel > Modules > HTML & JAVASCRIPT > HTML pages management
create a new HTML page, name what you wish, and paste the source code:
- Code:
<!--
jQuery(function(){jQuery(function(){jQuery('<a class="sceditor-button" unselectable="on" title="BBCode ( Έτοιμος Κώδικας)"><div unselectable="on" style="background-image:url(https://cdn1.iconfinder.com/data/icons/fatcow/16/text_letter_omega.png)"></div></a>').insertBefore('.sceditor-button-size').click(function(){jQuery('#text_editor_textarea').sceditor("instance").insertText("[font=Comic Sans MS][size=16][color=#ff0000]Here the text[/color][/size][/font]")})})});
-->
- Code:
<script src="/MYHTMLPAGE"></script>
If you do everything correctly the button should apply the correct bbcodes.
Re: Easy write for staff on editor
I used the exact code to the HTML, and then i went to widget i added both links: the first was "/h1-page" and the other one "*link of forum*/h1-page" but in both occasions, the button did not appear to the text editor.
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Re: Easy write for staff on editor
Because the code you want is for the old editor .
No one has done any new codes for the Staff buttons lol. Just informing anyone if they're wondering since I've asked this problem too ._.
No one has done any new codes for the Staff buttons lol. Just informing anyone if they're wondering since I've asked this problem too ._.
Re: Easy write for staff on editor
How did you copy the HTML script I provided? I've been noticing the code tags have been messing with scripts adding line breaks where they're not needed.Marios94 wrote:I used the exact code to the HTML, and then i went to widget i added both links: the first was "/h1-page" and the other one "*link of forum*/h1-page" but in both occasions, the button did not appear to the text editor.
If you haven't, copy the script I've provided using the 'select content' button.
Try this also instead of the other script tags:
- Code:
<script type="text/javascript" src="/h1-page"></script>
This script is for the sceditor.
Re: Easy write for staff on editor
Seth i did that and the code u gave me, made the button disappear..
Lets try the second one u just gave me
Edit: Still nothing
Lets try the second one u just gave me
Edit: Still nothing
Re: Easy write for staff on editor
That is very weird, I have it working perfect on my test forum.
So to clarify you've done the following:
Created HTML page with script:
Created widget with script source, applied to forum.
So to clarify you've done the following:
Created HTML page with script:
Created widget with script source, applied to forum.
Re: Easy write for staff on editor
Ok, so i show? I Show you:
HTML:
Widget:
Reply Form:
HTML:
Widget:
Reply Form:
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Re: Easy write for staff on editor
Well there's one more thing for you to try then, because I'm not exactly sure what could be preventing it from working.
Are your forum widget settings set as the following?
Left and/or right need to be at 180 depending on which column this widget is in.
If that isn't it perhaps you should try resyncing your forum.
Administration Panel > General > Forum > Configuration
Scroll to bottom, tick 'Resynchronize your forum', and save.
Are your forum widget settings set as the following?
Left and/or right need to be at 180 depending on which column this widget is in.
If that isn't it perhaps you should try resyncing your forum.
Administration Panel > General > Forum > Configuration
Scroll to bottom, tick 'Resynchronize your forum', and save.
Re: Easy write for staff on editor
the settings are like that and also, i made the resynchronize but still nothing!
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Re: Easy write for staff on editor
up
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Re: Easy write for staff on editor
Hello Marios94,
Apologies for the wait as I've just figured the issue as to why it is not showing today. Chrome cannot read scripts in comments which renders the past method useless.
Please do the following.
Administration Panel > Modules > HTML & JAVASCRIPT > HTML pages management
Edit your old page, delete the contents, and paste this in its place:
Edit your current widget, delete the contents, and paste this in its place:
Apologies for the wait as I've just figured the issue as to why it is not showing today. Chrome cannot read scripts in comments which renders the past method useless.
Please do the following.
Administration Panel > Modules > HTML & JAVASCRIPT > HTML pages management
Edit your old page, delete the contents, and paste this in its place:
- Code:
jQuery('#modBouton').click(function(){
jQuery('#text_editor_textarea').sceditor("instance").insertText("[font=Comic Sans MS][size=16][color=#ff0000]Here the text[/color][/size][/font]");
});
Edit your current widget, delete the contents, and paste this in its place:
- Code:
<script type="text/javascript">jQuery(function(){
jQuery(function(){
jQuery('<a id="modBouton" class="sceditor-button" unselectable="on" title="BBCode ( Έτοιμος Κώδικας)"><div unselectable="on" style="background-image:url(https://cdn1.iconfinder.com/data/icons/fatcow/16/text_letter_omega.png)"></div></a>').insertBefore('.sceditor-button-size');
});
});
jQuery.getScript('/h2-page');
</script>
- Code:
jQuery.getScript('/h2-page');
Re: Easy write for staff on editor
Seth you are amazing!! Thank you very much!! The code works!!! Topic solved!
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Similar topics
» Can't use easy editor mode in homepage message box?
» Staff button on text editor
» Staff colors without changing them in the editor
» Fast BBCodes for Staff in posts on editor
» How do you add a custom button for staff only to the message editor?
» Staff button on text editor
» Staff colors without changing them in the editor
» Fast BBCodes for Staff in posts on editor
» How do you add a custom button for staff only to the message editor?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum