Page 1 of 1

html javascript

PostPosted: Fri Jan 14, 2011 5:05 pm
by cybergenesis
Enjoying the script.

Where can I modify the html output, specifically would like to remove "control panel" link in the upper right hand corner for a user and also remove the export xml and remove rss feed from the user logged in area?

Where do I modify the javascript validation for registration to require telephone to be validated?

Thanks for help in advance.

Re: html javascript

PostPosted: Fri Jan 14, 2011 6:57 pm
by shannah
1. Removing certain links like "control panel" and export XML can either be done via permissions or by overriding actions to require a different permission. Check the xataface wiki for info on permissions or actions... there should be some examples on how to disable actions in both the wiki and the forum.

2. For making a field mandatory you can either change it to a not null field in the database, or you can add the validators:required=1 directive for the field in the fields.ini file for the users table.

Re: html javascript

PostPosted: Fri Jan 14, 2011 9:37 pm
by cybergenesis
Thanks Shannah,
I was able to make all the changes I wanted. Thanks for fast reply.