Staff Options
4 posters
Page 3 of 3
Page 3 of 3 • 1, 2, 3
Staff Options
First topic message reminder :
Alright, first off, I'd just like to state that all the Javascript codes I used do not conflict with each other so it's a bit vague to me why the sudden change of the Table code on the same script won't work since it's adding an extra button code to your forum.
As for that, in case you would ask what are the Javascript in my forum, the following stated are the codes:
1. Rainbow name code
2. Christmas decoration code
3. Staff options
4. The modified profile code which introduces people automatically
5. Select content code
6. The custom navigation bar code
7. Nivo slider
http://www.medievalchaos.net/forum In case you need my forum link.
Okay, now here's the problem, I'd like for these codes to work on my Staff options code:
Whenever I replace the codes in the original Staff Options code in the widget here:
The button completely disappears.
I tried modifying the Javascript but still nothing happened:
I really don't get why it won't appear because [Language] far as I know, it would be the same result even if you change the code originally inputted over and over again.
To summarize everything up, please help me how I can make the 4 table codes provided above work on the original code in the widget and the javascript already. I've been trying to solve this for some time but my capacity to solve it isn't enough.
As for that, in case you would ask what are the Javascript in my forum, the following stated are the codes:
1. Rainbow name code
2. Christmas decoration code
3. Staff options
4. The modified profile code which introduces people automatically
5. Select content code
6. The custom navigation bar code
7. Nivo slider
http://www.medievalchaos.net/forum In case you need my forum link.
Okay, now here's the problem, I'd like for these codes to work on my Staff options code:
- Code:
[table style="background: url('http://i810.photobucket.com/albums/zz27/kaizer20/Information-2_zpsd6d5163c.png') no-repeat left center #cfdce8; border: 1px solid #b8c5d0; padding: 5px 5px 5px 30px; width: 97%; font-weight: bold; color: #26547a; border-radius: 3px;"][tr][td](Information)
[/td][/tr][/table]
- Code:
[table style="background: url('http://i810.photobucket.com/albums/zz27/kaizer20/lock_zps4a88582b.png') no-repeat left center #d7e2b7; border: 1px solid #b7c19a; padding: 5px 5px 5px 30px; width: 97%; font-weight: bold; color: #626f3d; border-radius: 3px;"][tr][td](Lock)[/td][/tr][/table]
- Code:
[table style="background: url('http://i810.photobucket.com/albums/zz27/kaizer20/WarningSign-2_zps143f18bd.png') no-repeat left center #F2C7C7; border: 1px solid #ED6B6B; padding: 5px 5px 5px 30px; width: 97%; font-weight: bold; color: #A11F1F; border-radius: 3px;"][tr][td](Warn a member)[/td][/tr][/table]
- Code:
[table style="background: url('http://i810.photobucket.com/albums/zz27/kaizer20/Smiley_Face-2_zps5eabd338.png') no-repeat left center #ffff7f; border: 1px solid #ffff30; padding: 5px 5px 5px 30px; width: 97%; font-weight: bold; color: #ffcd05; border-radius: 3px;"][tr][td]Approved by a pro staff!
[/td][/tr][/table]
Whenever I replace the codes in the original Staff Options code in the widget here:
- Code:
<script type="text/javascript">
buttons.list('Staff Tools', {
"Info": "<table style='background:url\(http://i810.photobucket.com/albums/zz27/kaizer20/Information-1.png\) no-repeat; font-family:verdana; font-weight:bold; font-size:13px; color:#000; text-align:left; padding-left:5px; width:500px; height: 75px; text-shadow: 1px 1px #808080;' align='center'><tr><td style='line-height:16px;' valign='top' align='center' width='100%'><br />\(YOUR TEXT HERE\)</td></tr></table>",
"Solved and Locked": "<table style='background:url\(http://i810.photobucket.com/albums/zz27/kaizer20/checkmark-1.png\) no-repeat; font-family:verdana; font-weight:bold; font-size:25px; color:#FFFFFF; text-align:left; padding-left:5px; width:500px; height: 75px; text-shadow: 1px 1px #808080;' align='center'><tr><td style='line-height:16px;' align='left'></td></tr></table>",
"Approved": "<table style='background:url\(http://i810.photobucket.com/albums/zz27/kaizer20/Smiley_Face-1.png\) no-repeat; font-family:verdana; font-weight:bold; font-size:25px; color:#FFFFFF; text-align:left; padding-left:5px; width:500px; height: 75px; text-shadow: 1px 1px #808080;' align='center'><tr><td style='line-height:16px;' align='left'></td></tr></table>",
"Warning": "<table style='background:url\(http://i810.photobucket.com/albums/zz27/kaizer20/WarningSign-1.png\) no-repeat; font-family:verdana; font-weight:bold; font-size:13px; color:#fff; text-align:left; padding-left:5px; width:500px; height: 75px; text-shadow: 1px 1px #808080;' align='center'><tr><td style='line-height:16px;' valign='top' align='center' width='100%'><br />\(Who will you give the warning to and then please indicate the following steps to be done to avoid the mistake in the future BELOW the warning sign\)</td></tr></table>"
}, "bbcode_list_1");</script>
The button completely disappears.
I tried modifying the Javascript but still nothing happened:
- Code:
(function(){var d={add:function(b,e,c){$(function(){if(document.getElementById("text_edit")){void 0==c&&(c="");var a=document.createElement("span");a.innerHTML='<button class="button2" style="height: 22px; margin-right: 5px;" onClick="bbfontstyle(\''+e+"', '"+c+"'); return false;\">"+b+"</button>";document.getElementById("new_buttons_area").appendChild(a)}})},list:function(b,e,c){$(function(){if(document.getElementById("text_edit")){var a=document.createElement("span");a.innerHTML='<input type="button" style="height: 22px; margin-right: 5px;" value="'+ b+'" onclick="selectWysiwyg(this, \''+c+'\');" class="button2">';document.getElementById("text_edit").appendChild(a);a=document.createElement("div");a.id=c;a.className="select";a.style.visibility="hidden";for(var d in e)a.innerHTML+="<button onmouseout=\"this.className='';\" onmouseover=\"this.className='selectHover';\" onclick=\"bbfontstyle('"+buttons.escape(e[d])+"', '');selectWysiwyg(this, '"+c+"');return false;\">"+d+"</button><br>";document.getElementById("text_editor_select_controls").appendChild(a)}})}, init:function(){$(function(){if(document.getElementById("text_edit")){var b=document.createElement("div");b.id="new_buttons_area";b.style.paddingTop="5px";document.getElementById("text_edit").parentNode.insertBefore(b,document.getElementById("text_edit").nextSibling)}})},escape:function(b){return b.replace(/'/g,"\\'").replace(/"/g,'\\"')}};window.buttons=d;d.init()})();
I really don't get why it won't appear because [Language] far as I know, it would be the same result even if you change the code originally inputted over and over again.
To summarize everything up, please help me how I can make the 4 table codes provided above work on the original code in the widget and the javascript already. I've been trying to solve this for some time but my capacity to solve it isn't enough.
Re: Staff Options
Azi wrote:Interesting Kaizer, i did ALL of my custom buttons in JS as opposed to scripting them into a widget.
i'm not going to post the whole code, but
- Code:
buttons.add('Award!', '[table class=award][tr][td][color=CHANGEME][b]Awarded & Thread Locked![/b][/color]
[/td][/tr][/table]');
This was the only variant of the original i could get the quick reply to spit out. If you change the "award" it breaks, or any other non-HTML characteristics that aren't in their own language. Writing this in JS worked just fine though. I think your original code was just wrong as opposed to you jumping through all these hoops. I'll take a look at it when i get home.
What I wanted to avoid was having others seen it as opposed to what I can see in CEA. I'd like avoid it being visible to members. And shouldn't it be <table class="award"> instead of the BBC way, but meh. The code you provided above is the first method I used but it's visible, now that I'm trying to install it in a widget to provide it for moderators only, that's a different story, I have however found out another method, but I'm still keeping this thread opened so that I can be provided with a solution if ever my method won't work.
Re: Staff Options
Kaizer Lee wrote:Azi wrote:Interesting Kaizer, i did ALL of my custom buttons in JS as opposed to scripting them into a widget.
i'm not going to post the whole code, but
- Code:
buttons.add('Award!', '[table class=award][tr][td][color=CHANGEME][b]Awarded & Thread Locked![/b][/color]
[/td][/tr][/table]');
This was the only variant of the original i could get the quick reply to spit out. If you change the "award" it breaks, or any other non-HTML characteristics that aren't in their own language. Writing this in JS worked just fine though. I think your original code was just wrong as opposed to you jumping through all these hoops. I'll take a look at it when i get home.
What I wanted to avoid was having others seen it as opposed to what I can see in CEA. I'd like avoid it being visible to members. And shouldn't it be <table class="award"> instead of the BBC way, but meh. The code you provided above is the first method I used but it's visible, now that I'm trying to install it in a widget to provide it for moderators only, that's a different story, I have however found out another method, but I'm still keeping this thread opened so that I can be provided with a solution if ever my method won't work.
Exactly, when its in js you don't need script <>, i just posted a thread on how to do it aswell. I got it to make the button but it doesn't output the second variable,
- Code:
<script type="text/javascript">
buttons.add('Award!!!!', '<table class=award><tr><td align="left"><font color="CHANGEME"><strong>Awarded & Thread Locked!</strong></font></td></tr></table>');
</script>
I've been trying to see if i can just change the JS module script so that only 'x' user can see the button, like u1, u34, ---. But as for the widget script, i can't get it to spit the code.
Azi- Forumember
- Posts : 61
Reputation : 1
Language : English/Russian
Re: Staff Options
I was able to make it appear but my problem was normal members could see it as well.
Re: Staff Options
Kaizer Lee wrote:I was able to make it appear but my problem was normal members could see it as well.
really? lol its easy, i'll trade you haha give me the code you're using in your widget if you can get it to work.
If you've got the script in the widget management all you have to do is set it to the left or right widget menu and click save > then click the +/-(Rights) > uncheck members/guests > save
Azi- Forumember
- Posts : 61
Reputation : 1
Language : English/Russian
Re: Staff Options
Azi wrote:Kaizer Lee wrote:I was able to make it appear but my problem was normal members could see it as well.
really? lol its easy, i'll trade you haha give me the code you're using in your widget if you can get it to work.
If you've got the script in the widget management all you have to do is set it to the left or right widget menu and click save > then click the +/-(Rights) > uncheck members/guests > save
The code I did was in the template at first so it's visible to the members. Next was widget until the whole page turned stupid. It's the same one I saw in CEA, the only difference was that it really appeared as a table lol, but not sure if yours appear as well since I only saw text or it's just my computer/browser.
And I tried it already, btw, and this problem's solved. I found another way around it. I'll ask if I can share the tutorial since we're not once to give away hard codes (This being proven ._. took awhile e_e)
Please lock this now, thanks for the time .
Re: Staff Options
Topic Solved & Locked |
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.
Page 3 of 3 • 1, 2, 3
Similar topics
» Customization question, custom domain name options? also pay options?
» help : new options
» What do these options mean and do?
» domain name options
» Sub menu options
» help : new options
» What do these options mean and do?
» domain name options
» Sub menu options
Page 3 of 3
Permissions in this forum:
You cannot reply to topics in this forum