Question about how editor can be used
Question about how editor can be used
http://thesgn.com/board/index.php?pages/Members/
I have a table here (up there) that lists all the members of the clan I'm in.
So I want to know if Editor can be used to directly add members to the table [on that page] and save them so that everyone can see the changes.
My next question is, can I hide the add, edit, delete buttons to only admins of the site? I realize this would involve some sort of integration between XenForo (software we use) and DataTables/editor. I would rather not have to do that, so can I only show the buttons to certain ip addresses?
Thanks!
Replies
Hey,
I think this is what Editor has been designed for. This example is very close to yours on your site.
http://editor.datatables.net/examples/advanced/joinArray.html
I have to admit that i don't know if there is a built in funktion for this. But if you are familar with javascript or php you can do it by yourself. I don't think that ckecking the ip address is a good approach to this. The ip's have to be static and other problems. Better is to use your login data for filtering the user access/rights.
Yves
As in add a new row to the table? Yes, certainly. As @zodiacs points out, that is the whole point of Editor!
You would simply not define the three editing buttons in the
aButtons
array of buttons in your DataTables configuration. Exactly how you determine if a user is logged in or not though is left up to the system you have in place for user management.Allan
Thanks!
I wouldn't know the first thing about how to determine if users are logged in or not.
Me neither for your system :-). Editor doesn't provide login / session libraries, so it would need to be based on whatever you are currently using (assuming you currently have something in place for that).
Allan