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.

Custom Widget Button

Go down

Custom Widget Button Empty Custom Widget Button

Post by Azi April 11th 2013, 10:27 pm



I got my custom button to work and everything is smoothe in the js module, my code is found here,
Code:
[table class=award][tr][td][color=CHANGEME][b]Awarded  &  Thread Locked![/b][/color]
[/td][/tr][/table]');

Which works all fine and well, but its open to the public, i can't set permissions on who can see/use this button?

Now i know you can make a button from a widget and in the widget options you can choose to allow guests/members/mod/admin see it and thats what i want, but when i tried transfering the same code into a widget it broke it. This code can be found here,
Code:
<script type="text/javascript">
buttons.add('Award', '<table class="award"><tr><td align="left" align="left">[font color="CHANGEME"][strong]Awarded&ThreadLocked![/strong][/font]</td></tr></table>');
</script>

I'm not sure what the issue is, when i do this and click save and set it for moderator+ to only be able to view it, i get this : http://puu.sh/2yef8

I'm just wondering how i can do this.
Azi
Azi
Forumember

Female Posts : 61
Reputation : 1
Language : English/Russian

Back to top Go down

Custom Widget Button Empty Re: Custom Widget Button

Post by Azi April 15th 2013, 6:26 pm

bump
Azi
Azi
Forumember

Female Posts : 61
Reputation : 1
Language : English/Russian

Back to top Go down

Custom Widget Button Empty Re: Custom Widget Button

Post by Azi April 17th 2013, 8:59 pm

bump
Azi
Azi
Forumember

Female Posts : 61
Reputation : 1
Language : English/Russian

Back to top Go down

Custom Widget Button Empty Re: Custom Widget Button

Post by Azi April 24th 2013, 8:43 pm

bump
Azi
Azi
Forumember

Female Posts : 61
Reputation : 1
Language : English/Russian

Back to top Go down

Back to top


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