Create a button
4 posters
Page 1 of 1
Create a button
How can I create a button
When click on it
[example]text[/example]
But the truth is a text HTML
like that
<div class="new"><p>example</p></div>
i want [example]text[/example] work on <div class="new"><p>example</p></div>
When click on it
[example]text[/example]
But the truth is a text HTML
like that
<div class="new"><p>example</p></div>
i want [example]text[/example] work on <div class="new"><p>example</p></div>
ahmed Salman- New Member
- Posts : 24
Reputation : 1
Language : en
Re: Create a button
Hi there,
Can you explain your issue a little clearer cause I am a little puzzled on what exactly you are needing? Are you just trying to make a simple button that links to somewhere?
Can you explain your issue a little clearer cause I am a little puzzled on what exactly you are needing? Are you just trying to make a simple button that links to somewhere?
Re: Create a button
that [example]text[/example] show in topic
that is code html i want that working bbcode
ahmed Salman- New Member
- Posts : 24
Reputation : 1
Language : en
Re: Create a button
I want button action in the editor
Lead to the inclusion of this code
[example][/example]
And after sending shows this format
<div class="new"></div>
Lead to the inclusion of this code
[example][/example]
And after sending shows this format
<div class="new"></div>
ahmed Salman- New Member
- Posts : 24
Reputation : 1
Language : en
Re: Create a button
I did not understand you
ahmed Salman- New Member
- Posts : 24
Reputation : 1
Language : en
Re: Create a button
Hi,
To do that, you need to use a Javascript code:
ACP > Modules > HTML & Javascript Management > Javascript Management > Create One
Place: In all pages
Explatation to edit it:
To do that, you need to use a Javascript code:
ACP > Modules > HTML & Javascript Management > Javascript Management > Create One
Place: In all pages
- Code:
$(function(){
$(function(){
$('<a class="sceditor-button sceditor-button-new-button-name" unselectable="on" title="Additional Info on Hover Here"><div unselectable="on" style="background-image:url(http://icons.iconarchive.com/icons/icons8/windows-8/16/City-No-Smoking-icon.png)">NEW_BUTTON_NAME</div></a>').insertAfter('.sceditor-button-fahide').click(function(){
$('#text_editor_textarea').sceditor("instance").insertText("[BBCODE]","[/BBCODE]");
});
});
});
Explatation to edit it:
•Change the class “sceditor-button-new-button-name” to your new button name. Useful if you want to add a button after or before it later.
•Change the title= to a more descriptive, helpful text for the user.
•Change the background-image to what the button will look like.
•Change NEW_BUTTON_NAME to the buttons name.
•Find the class name of the button where you want this placed after and then change insertAfter(‘.sceditor-button-fahide‘) .sceditor-button-fahide to that button’s class name. You can change insertAfter to insertBefore if needed.
Finally, change the insertText as you need it.
NOTE: You can use HTML if you have it enabled on your board.
Re: Create a button
ahmed Salman wrote:I did not understand you
ahmed Salman wrote:?????
Please don't double post. Your posts need to be separated by 24 hours before bumping. Please use the edit button, instead!
|
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: Create a button
ok i have that code css
i want When click the button show [BBCODE][/BBCODE] when i send post that show my code css (.solved)
- Code:
.solved{background:url(http://i35.servimg.com/u/f35/19/50/18/33/solved10.png) no-repeat scroll 99% center #9FF;border:1px solid #0CF;border-radius:5px 5px 5px 5px;color:#999;direction:rtl;margin:10px auto;padding:0 0 2px;width:60%}.solved p{color:#999;font-weight:700;margin:12px 29px 9px 12px;padding-right:18px;text-shadow:0 0 0 #fff}
i want When click the button show [BBCODE][/BBCODE] when i send post that show my code css (.solved)
ahmed Salman- New Member
- Posts : 24
Reputation : 1
Language : en
Re: Create a button
if you cant help me in this
i want hashtag button
i want hashtag button
ahmed Salman- New Member
- Posts : 24
Reputation : 1
Language : en
Similar topics
» Announcment, Expand forum button, Custom like button, Hover over image
» Create a "move" button?
» How do I put multiple options in the button create a new topic
» Change Quote Button, Edit Button and more into the text
» In the mobile version of my forum, the top "create new topic" button does not work.
» Create a "move" button?
» How do I put multiple options in the button create a new topic
» Change Quote Button, Edit Button and more into the text
» In the mobile version of my forum, the top "create new topic" button does not work.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum