SID-01553: PopUp a message for first time when accessing the Twiki Site
| Status: |
Answered |
TWiki version: |
5.1.2 |
Perl version: |
5.8.1 |
| Category: |
JSPopupPlugin |
Server OS: |
RedHat |
Last update: |
13 years ago |
Hi,
I have new requirement to popup a message (basically an agreement) when a user first time accessing the twiki site. Based on his click the page should redirect to relevant page. If a user clicks yes, the actual page should open else user has to be logged out from the session. This has to be repeatedly come for a user who clicks on No button whenver accessing the site.
Let me know if it is easy to achievable. Kindly provide best solutions.
Regards, Srinivas
--
SrinivascharyM - 2012-10-10
Discussion and Answer
I haven't tried it but I believe you could play with this plugin
http://twiki.org/cgi-bin/view/Plugins/JSPopupPlugin
. Make the content to be the message, and include a "No" link to be the logout link (you can just copy it from the actual logout link on your site).
The "Yes" button may be trickier. You could build a form that saves a field in the user topic profile using the save script and redirects to the topic. Using this field on the user profile topic you can check if the user have already clicked on yes before.
Its achievable but maybe not easy if you are not familiar using fields, forms and the scrips of TWiki (scripts are in
http://twiki.org/cgi-bin/view/TWiki/TWikiScripts
).
--
EnriqueCadalso - 2012-10-17
Couldn't you simply modify the login topic to include your terms with the comment that providing your username and password implies agreement?
--
JoshuaTharp - 2012-12-04
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
Peter Thoeny - 2013-03-05
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.