Posted May 31st 2013, 5:28 pm
hello how to add staff option like in the quick reply?
Go to page : 1, 2, 3
Message (Page 1 of 3)
Posted May 31st 2013, 5:28 pm
Posted May 31st 2013, 10:11 pm
(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('Image', '[img]', '[/img]');
buttons.list('Test List', {
'Code': '[code],[/code]',
'Bump': 'Bumping this topic!',
'Image': '[img],[/img]'
}, 'bbcode_list_1');
buttons.list('Test List', {
'Happy': ':)',
'Sad': ':(',
}, 'bbcode_list_2');
Posted May 31st 2013, 10:19 pm
Posted May 31st 2013, 10:28 pm
buttons.add('Image', '[img]', '[/img]');
buttons.list('Test List', {
'Code': '[code],[/code]',
'Bump': 'Bumping this topic!',
'Image': '[img],[/img]'
}, 'bbcode_list_1');
buttons.list('Test List', {
'Happy': ':)',
'Sad': ':(',
}, 'bbcode_list_2');
Posted May 31st 2013, 10:34 pm
Posted May 31st 2013, 10:43 pm
Since the problem is now solved i will locked this and move to archive section. [color=green][b]~Locked and Moved[/b][/color] :happy:
[table class="solved"][tr][td]Approved[/td][/tr][/table]
Posted May 31st 2013, 10:48 pm
(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("span");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("span");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.list('Staffs Option', {
'Approved': '[table class=solved][tr][td]Approved[/td][/tr][/table]',
}, 'bbcode_list_1');
Last edited by Mark on May 31st 2013, 11:06 pm; edited 1 time in total
Posted May 31st 2013, 10:52 pm
Posted May 31st 2013, 10:56 pm
Posted May 31st 2013, 11:10 pm
Mark wrote:Well if you want to display it on the quick reply, check the In the Topics, but if you want to display it also on the full text editor, just check the All Pages.
Btw, i update the codes on post #10. Replace it with the new code.
Message (Page 1 of 3)
Similar topics
Permissions in this forum:
You cannot reply to topics in this forum
|
|
In total there is 0 user online :: 0 Registered, 0 Hidden and 0 Guests
Users browsing this forum: None