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 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
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 August 23rd 2016, 9:46 pm



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 : 51453
Reputation : 3519
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 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.
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 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
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 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.
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 August 24th 2016, 9:39 pm

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 : 51453
Reputation : 3519
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 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!
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 August 24th 2016, 10:06 pm

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 : 51453
Reputation : 3519
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