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.

"Notice" with buttons in Reply / Quick Reply

+2
mangaka
Sandara
6 posters

Go down

"Notice" with buttons in Reply / Quick Reply Empty "Notice" with buttons in Reply / Quick Reply

Post by Sandara May 20th 2013, 6:24 am

Is it possible that the Notice in this tutorial can be added as buttons in reply and/or quick reply, so that the mods and admins do not need to input the same table class code over and over again?
Sandara
Sandara
Forumember

Female Posts : 106
Reputation : 5
Language : English, Filipino
Location : Somewhere over the rainbow

Back to top Go down

"Notice" with buttons in Reply / Quick Reply Empty Re: "Notice" with buttons in Reply / Quick Reply

Post by mangaka May 20th 2013, 8:22 am

Weird.It's work at my Forum Razz

Maybe you can show me the CSS you pasted at your CSS Stylesheet?I will fix it if there's any wrong code.And maybe you give me some screenshot,please?
mangaka
mangaka
Forumember

Female Posts : 121
Reputation : 5
Language : Indonesia
Location : Well

Back to top Go down

"Notice" with buttons in Reply / Quick Reply Empty Re: "Notice" with buttons in Reply / Quick Reply

Post by Mati May 20th 2013, 3:11 pm

mangaka wrote:Weird.It's work at my Forum Razz

Maybe you can show me the CSS you pasted at your CSS Stylesheet?I will fix it if there's any wrong code.And maybe you give me some screenshot,please?

Is not what she's asking for, you got it wrong.
Mati
Mati
Hyperactive

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

"Notice" with buttons in Reply / Quick Reply Empty Re: "Notice" with buttons in Reply / Quick Reply

Post by Sandara May 20th 2013, 4:29 pm

mangaka wrote:Weird.It's work at my Forum Razz

Maybe you can show me the CSS you pasted at your CSS Stylesheet?I will fix it if there's any wrong code.And maybe you give me some screenshot,please?

Matti_7 wrote:
mangaka wrote:Weird.It's work at my Forum Razz

Maybe you can show me the CSS you pasted at your CSS Stylesheet?I will fix it if there's any wrong code.And maybe you give me some screenshot,please?

Is not what she's asking for, you got it wrong.

Yup mangaka, Matti_7's right. I know the tutorial is working (i tried it and it works), what I want to ask is if it is possible that i make a customized button which will be located in the post reply or / and quick reply so that instead of me typing "table class="cpinfo"" and a series of text after that, i'll just click the button. I want it to be done for uniformity (for the mods and other admins).
Sandara
Sandara
Forumember

Female Posts : 106
Reputation : 5
Language : English, Filipino
Location : Somewhere over the rainbow

Back to top Go down

"Notice" with buttons in Reply / Quick Reply Empty Re: "Notice" with buttons in Reply / Quick Reply

Post by Sir Chivas™ May 20th 2013, 4:32 pm

Hi,

You can create a new BBcode using LGBB; here's the forum:
http://www.avacweb.com/t428-13-create-new-bbcodes-with-new-lgbb

However, the forum needs registration, which that's your decision whether you want to register or not. Wink
Sir Chivas™
Sir Chivas™
Helper
Helper

Male Posts : 6983
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

https://aforums.org

Back to top Go down

"Notice" with buttons in Reply / Quick Reply Empty Re: "Notice" with buttons in Reply / Quick Reply

Post by Sandara May 20th 2013, 5:12 pm

^ thanks for the reply. Sadly, what i wanted to have is a button (after seeing "This will not add new buttons to the editors, that's not what LGBB does, LGBB is just the parser, allowing these bbcodes to be turned into html").

Edit: I tried this but it doesn't work, so i removed the codes. http://www.avacweb.com/t993-how-to-create-a-new-text-editor-button. The exact code i did was:

Code:

(function(){var f={add:function(c,d,b){$(function(){if(document.getElementById("html_edit")){void 0==b&&(b="");var a=document.createElement("span");a.innerHTML='<button class="button2" style="height: 22px; margin-right: 5px;" onClick="bbfontstyle(\''+d+"', '"+b+"'); return false;\">"+c+"</button>";document.getElementById("new_buttons_area").appendChild(a)}})},list:function(c,d,b){$(function(){if(document.getElementById("text_edit")){var a=document.createElement("span");a.innerHTML='<input type="button" style="height: 22px; margin-right: 5px;" value="'+ c+'" onclick="selectWysiwyg(this, \''+b+'\');" class="button2">';document.getElementById("new_buttons_area").appendChild(a);a=document.createElement("div");a.id=b;a.className="select";a.style.visibility="hidden";for(var e in d)a.innerHTML=/,/.test(d[e])?a.innerHTML+("<button onmouseout=\"this.className='';\" onmouseover=\"this.className='selectHover';\" onclick=\"bbfontstyle('"+d[e].replace(/(.*),.*/,"$1")+"', '"+d[e].replace(/.*,(.*)/,"$1")+"');selectWysiwyg(this, '"+b+"');return false;\">"+e+"</button><br>"): a.innerHTML+("<button onmouseout=\"this.className='';\" onmouseover=\"this.className='selectHover';\" onclick=\"bbfontstyle('"+d[e]+"', '');selectWysiwyg(this, '"+b+"');return false;\">"+e+"</button><br>");document.getElementById("text_editor_select_controls").appendChild(a)}})},init:function(){$(function(){if(document.getElementById("html_edit")){var c=document.createElement("div");c.id="new_buttons_area";c.style.paddingTop="5px";document.getElementById("html_edit").parentNode.insertBefore(c,document.getElementById("html_edit").nextSibling)}})}}; window.buttons=f;f.init()})();
buttons.add('Test', '[table class="cpinfo"][tr][td]Test post. Testing 123.
[/td][/tr][/table]');


I think i did something not right? Any help please?
Sandara
Sandara
Forumember

Female Posts : 106
Reputation : 5
Language : English, Filipino
Location : Somewhere over the rainbow

Back to top Go down

"Notice" with buttons in Reply / Quick Reply Empty Re: "Notice" with buttons in Reply / Quick Reply

Post by Sandara May 23rd 2013, 12:00 am

bump
Sandara
Sandara
Forumember

Female Posts : 106
Reputation : 5
Language : English, Filipino
Location : Somewhere over the rainbow

Back to top Go down

"Notice" with buttons in Reply / Quick Reply Empty Re: "Notice" with buttons in Reply / Quick Reply

Post by Sandara May 23rd 2013, 8:54 pm

bump again.
Sandara
Sandara
Forumember

Female Posts : 106
Reputation : 5
Language : English, Filipino
Location : Somewhere over the rainbow

Back to top Go down

"Notice" with buttons in Reply / Quick Reply Empty Re: "Notice" with buttons in Reply / Quick Reply

Post by SLGray May 23rd 2013, 9:45 pm

Please don't double/triple post. Your post need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button instead!


"Notice" with buttons in Reply / Quick Reply 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 : 51482
Reputation : 3519
Language : English
Location : United States

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

Back to top Go down

"Notice" with buttons in Reply / Quick Reply Empty Re: "Notice" with buttons in Reply / Quick Reply

Post by Sandara May 26th 2013, 4:54 pm

bump
Sandara
Sandara
Forumember

Female Posts : 106
Reputation : 5
Language : English, Filipino
Location : Somewhere over the rainbow

Back to top Go down

"Notice" with buttons in Reply / Quick Reply Empty Re: "Notice" with buttons in Reply / Quick Reply

Post by Sandara May 28th 2013, 10:58 am

bump, pleaaaase.
Sandara
Sandara
Forumember

Female Posts : 106
Reputation : 5
Language : English, Filipino
Location : Somewhere over the rainbow

Back to top Go down

"Notice" with buttons in Reply / Quick Reply Empty Re: "Notice" with buttons in Reply / Quick Reply

Post by Sandara May 30th 2013, 8:47 pm

bump, bump, bump.
Sandara
Sandara
Forumember

Female Posts : 106
Reputation : 5
Language : English, Filipino
Location : Somewhere over the rainbow

Back to top Go down

"Notice" with buttons in Reply / Quick Reply Empty Re: "Notice" with buttons in Reply / Quick Reply

Post by Sandara June 9th 2013, 5:22 pm

pleeeeeeease, bump.
Sandara
Sandara
Forumember

Female Posts : 106
Reputation : 5
Language : English, Filipino
Location : Somewhere over the rainbow

Back to top Go down

"Notice" with buttons in Reply / Quick Reply Empty Re: "Notice" with buttons in Reply / Quick Reply

Post by kirk June 9th 2013, 10:13 pm

Sandara wrote:^ thanks for the reply. Sadly, what i wanted to have is a button (after seeing "This will not add new buttons to the editors, that's not what LGBB does, LGBB is just the parser, allowing these bbcodes to be turned into HTML").

Edit: I tried this but it doesn't work, so i removed the codes. http://www.avacweb.com/t993-how-to-create-a-new-text-editor-button. The exact code i did was:


I think i did something not right? Any help please?

Have you tried asking for help over there?
This is something avacweb staff will have to help with.



kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Back to top

- Similar topics

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