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.

"Notice" with buttons in Reply / Quick Reply

View previous topic View next topic Go down

"Notice" with buttons in Reply / Quick Reply

Post by Sandara on 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
Forumember

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

Back to top Go down

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

Post by mangaka on 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
Forumember

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

Back to top Go down

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

Post by Mati on 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
Active Poster

Posts : 1873
Reputation : 281
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://elite-gaming.forumotion.net/

Back to top Go down

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

Post by Sandara on 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
Forumember

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

Back to top Go down

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

Post by Sir Chivas™ on 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



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

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

Post by Sandara on 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
Forumember

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

Back to top Go down

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

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

bump

Sandara
Forumember

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

Back to top Go down

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

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

bump again.

Sandara
Forumember

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

Back to top Go down

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

Post by SLGray on 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!


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


SLGray
Administrator
Administrator

Male Posts : 35645
Reputation : 2374
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

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

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

bump

Sandara
Forumember

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

Back to top Go down

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

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

bump, pleaaaase.

Sandara
Forumember

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

Back to top Go down

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

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

bump, bump, bump.

Sandara
Forumember

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

Back to top Go down

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

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

pleeeeeeease, bump.

Sandara
Forumember

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

Back to top Go down

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

Post by kirk on 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
Forumaster

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

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