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.

Custom Widget Button

View previous topic View next topic Go down

Custom Widget Button

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

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

Back to top Go down

Re: Custom Widget Button

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

bump

Azi
Forumember

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

Back to top Go down

Re: Custom Widget Button

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

bump

Azi
Forumember

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

Back to top Go down

Re: Custom Widget Button

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

bump

Azi
Forumember

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

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