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.

Type a passphrase into Widget to get privileges

View previous topic View next topic Go down

Type a passphrase into Widget to get privileges

Post by TG-Forums on November 26th 2011, 12:52 am

Ok, so I made a widget whereu enter a password... Can I make it so that if a user enters the right pass phrase, it checks the username and adds them to a group and/or allows them to view specific topic(s)/thread(s)?

TG-Forums
New Member

Posts : 17
Reputation : 1
Language : English

Back to top Go down

Re: Type a passphrase into Widget to get privileges

Post by ioncube on November 26th 2011, 1:59 am

As far as I know data submission forms other than those specified by FM aren't possible; however a workaround can be achieved.

1] You make a widget inside a div id or class & hide it using display:none in css
2] You make another widget (pure html) the likes of a input tag
3] Use js to check the characters user inputs to your second widget (characters will be predefined in js)
4] If characters match use jquery css() property to toggle display properly of first widget.

Thats how I would do it

ioncube
Forumember

Male Posts : 279
Reputation : 41
Language : eng
Location : Pakistan

http://defencedog.blogspot.com/

Back to top Go down

Re: Type a passphrase into Widget to get privileges

Post by TG-Forums on November 27th 2011, 2:43 am

I need to show multiple pages... is there any way to access the FM groups/users through code?

TG-Forums
New Member

Posts : 17
Reputation : 1
Language : English

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