baseportal | ||
Start | ||
baseportal message board | |
Welcome to the baseportal message board... Please read the FAQ.
|
Selected message: | To the list |
Message from Christoph Bergmann on 10/2 2003, 16:13 +01:00 EMail: info@baseportal.com Re: Password Protection with User DatabaseThen write
instead of
do_all "", "name_in", "password_in"; } else You can add more parameters to do_all "..." as you like ;-) |
|
All messages from this thread: | To the list |
Message from Thom on 10/1 2003, 05:26 +00:00 EMail: misc@thewhistleshop.com Password Protection with User DatabaseI've set up a database using the "Password Protection with User Database" template. When I try to change the "Order of Output" (using the "Setting" tab in my my administation area), I end up with two separate tables - the top one is still in cronological order, the one below it is in the order that I want it to be (sorted by the 1st text field). I don't quite understand how I should add the commands into the html. I'm assuming that I should add it where the "do_all" line is, but I don't know exactly what to add there.. Thanks! |
Message from Christoph Bergmann on 10/1 2003, 18:19 +01:00 EMail: info@baseportal.com Re: Password Protection with User DatabaseThe example from the library uses a different method to display the database - you can't mix it with the "setting" tab. Please post the HTML code of your page. Its surely just a simple thing you have to add... |
Message from Thom on 10/1 2003, 23:24 +00:00 EMail: misc@thewhistleshop.com Re: Password Protection with User DatabaseChristoph, Thank you for the reply. Since I don't understand yet how to make adjusments, my html looks pretty much exactly like it does in the library section of your website, except that I added a few lines of text at the top of the page. I'd like to be adjust things like having the entries sorted alphabetically, change the number of entries shown per page, etc.
Multiple entries of the same title are acceptable (this will give us a better idea of how many people know a given tune).
if($Password ne "" && $Password eq $password_in) { do_all "", "name_in", "password_in"; } else { out "<b>Access denied!</b>"; $name_in=""; }
|
Message from Christoph Bergmann on 10/2 2003, 16:06 +01:00 EMail: info@baseportal.de Re: Password Protection with User DatabaseAs you assumed the line do_all "", "name_in", "password_in"; is where you have to make changes, inside the "". I.g. reverse the sorting looks like: do_all "sort=-", "name_in", "password_in"; or sort alphabetically with field "Name" and set the number of shown entries to 15: do_all "Name==* range^=0,15", "name_in", "password_in"; Its exactly the same you would write in the <do action=all ...> tag. You find more about queries, sorting and the range in the documentation: http://baseportal.com/doku/index.html#a20 and about parameters here: http://baseportal.com/doku/index.html#a54 ;-) |
Message from Thom on 10/1 2003, 23:38 +00:00 EMail: misc@thewhistleshop.com Re: Password Protection with User DatabaseOne other question - I'd like to get rid of the "modify" and "delete" options shown for each entry. How do I do this without being able to do it with the tabs in the administration section? In other words, I want others to be able to add their entries when they log-in, but I want me to be the only one that can actually change or delete the entries. Thanks again! |
|
Messages from 3300 to 3450: | To the input form |
> Password Protection with User Database from Thom on 10/1 2003, 05:26 +00:00 Re: Password Protection with User Database from Christoph Bergmann on 10/1 2003, 18:19 +01:00 Re: Password Protection with User Database from Thom on 10/1 2003, 23:24 +00:00 Re: Password Protection with User Database from Christoph Bergmann on 10/2 2003, 16:06 +01:00 Re: Password Protection with User Database from Thom on 10/1 2003, 23:38 +00:00 |
Re: Password Protection with User Database from Christoph Bergmann on 10/2 2003, 16:13 +01:00 |
<< Newest messages | < Newer messages | To the input form | Older messages > | Oldest messages >> |
© baseportal.com. All rights reserved. Terms of use |