The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Add custom button to the Editor

3 posters

Go down

Add custom button to the Editor Empty Add custom button to the Editor

Post by HaxballGreece 23/8/2016, 14:31

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
https://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!
avatar
HaxballGreece
New Member

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

http://haxball.forumgreek.com

Back to top Go down

Add custom button to the Editor Empty Re: Add custom button to the Editor

Post by SLGray 23/8/2016, 14:46



Add custom button to the Editor Slgray10

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

Male Posts : 51554
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Add custom button to the Editor Empty Re: Add custom button to the Editor

Post by HaxballGreece 23/8/2016, 15:09

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.
avatar
HaxballGreece
New Member

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

http://haxball.forumgreek.com

Back to top Go down

Add custom button to the Editor Empty Re: Add custom button to the Editor

Post by Draxion 23/8/2016, 20:41

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
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

Add custom button to the Editor Empty Re: Add custom button to the Editor

Post by HaxballGreece 24/8/2016, 05:17

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.
avatar
HaxballGreece
New Member

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

http://haxball.forumgreek.com

Back to top Go down

Add custom button to the Editor Empty Re: Add custom button to the Editor

Post by SLGray 24/8/2016, 14:39

Do you have JavaScript Management activated?
Add custom button to the Editor Untitl31


Add custom button to the Editor Slgray10

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

Male Posts : 51554
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Add custom button to the Editor Empty Re: Add custom button to the Editor

Post by HaxballGreece 24/8/2016, 14:57

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!
avatar
HaxballGreece
New Member

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

http://haxball.forumgreek.com

Back to top Go down

Add custom button to the Editor Empty Re: Add custom button to the Editor

Post by SLGray 24/8/2016, 15:06

Locked as Requested


Add custom button to the Editor Slgray10

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

Male Posts : 51554
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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