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.

Add custom button to the Editor

View previous topic View next topic Go down

Add custom button to the Editor

Post by HaxballGreece on August 23rd 2016, 9:31 pm

Technical Details


Forum version : #phpBB3
Position : Administrator
Concerned browser(s) : Mozilla Firefox, Google Chrome, Internet Explorer
Who the problem concerns : All members
Forum link : ( link is hidden, you must reply to see )

Description of problem

I want to add a new button to the SCEditor. I have referred to some discussion in this and other sites related to the subject but I can't find a solution. I'm not very proficient with coding, so I will state the problems I've been facing and will also give you the description of what I want from said button.

As i stated above, having looked through some threads other users have posted, I have found two types of scripts I could work with.
First one is this
http://help.forumotion.com/t132795-add-button-on-sc-editor

Second one is this
http://www.punbb.biz/t319-javascript-how-to-add-buttons-in-your-sceditor


Having followed the instructions in said topics, I can't even get the button to appear!! Am I doing something wrong?
What do I need to do in order to at least make these non-complicated buttons to appear on the editor's toolbar and also function properly?

Now, let me describe the use I want for the custom button I want to add. I want it to mimic the dropdown effect the "URL" button has and also want it to have multiple text areas. Basically, I want to create a form, which the user fills out. When finished, user clicks the insert button and the text he filled is added to the main text area, modified to include some explanatory text. For example, there will be three fields called "number of goals","number of assists", "number of fouls" where the user inserts whatever and then, after clicking insert, whatever the user typed appears in this way: "Goals-3 Assists-2 Fouls-10".


So, I kindly ask from you to explain the way I can make a drop down with multiple text fields. Please keep in mind that the scripts I tried above for some reason don't work for me. It would help me very much to know If I made a mistake or it is the scripts fault.

Thank you in advance for your response!

HaxballGreece
New Member

Posts : 8
Reputation : 1
Language : Greek,English,Deutsch,Francais

http://haxball.forumgreek.com

Back to top Go down

Re: Add custom button to the Editor

Post by SLGray on August 23rd 2016, 9:46 pm



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

Re: Add custom button to the Editor

Post by HaxballGreece on August 23rd 2016, 10:09 pm

I knew someone would post this. I want to further clarify; Yes, the functionality is about the same but there are reasons I would rather not disclose right now that I want this done with the addition of a button.

HaxballGreece
New Member

Posts : 8
Reputation : 1
Language : Greek,English,Deutsch,Francais

http://haxball.forumgreek.com

Back to top Go down

Re: Add custom button to the Editor

Post by Draxion on August 24th 2016, 3:41 am

Hi there,

The JavaScripts provide the code for the function on the button to work and provide an ID for the button on the editor to appear. However, they mainly show up like you want it via the CSS coding on the Stylesheet.

Draxion
Helper
Helper

Male Posts : 572
Reputation : 84
Language : English
Location : USA

http://dawnofthedragons.forumotion.com/

Back to top Go down

Re: Add custom button to the Editor

Post by HaxballGreece on August 24th 2016, 12:17 pm

I understand that the first script i linked requires requires CSS. The thing is even with using CSS I can't get the button to appear on the editor. That is the problem.

HaxballGreece
New Member

Posts : 8
Reputation : 1
Language : Greek,English,Deutsch,Francais

http://haxball.forumgreek.com

Back to top Go down

Re: Add custom button to the Editor

Post by SLGray on August 24th 2016, 9:39 pm

Do you have JavaScript Management activated?


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

Re: Add custom button to the Editor

Post by HaxballGreece on August 24th 2016, 9:57 pm

You can lock the topic, I think I have found an error on my part. Sorry to bother you and thank you for the feedback!

HaxballGreece
New Member

Posts : 8
Reputation : 1
Language : Greek,English,Deutsch,Francais

http://haxball.forumgreek.com

Back to top Go down

Re: Add custom button to the Editor

Post by SLGray on August 24th 2016, 10:06 pm

Locked as Requested


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

View previous topic View next topic Back to top


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