html javascript
Archived from the Web Auction Discussion forum.
cybergenesis — Fri Jan 14, 2011 5:05 pm
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.
shannah — Fri Jan 14, 2011 6:57 pm
-
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.
-
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.
cybergenesis — Fri Jan 14, 2011 9:37 pm
Thanks Shannah,
I was able to make all the changes I wanted. Thanks for fast reply.