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 12/23 2003, 04:56 +01:00
    EMail: info@baseportal.com

    Merry Christmas and a Happy New Year to all baseportal users!!! ;-))


      See you next year ;-)

    Your reply:

    Name: EMail: WWW:
    Subject:
    Text:
    Timezone:

    Post a new message


 All messages from this thread: To the list 
    Message from Dina on 12/25 2003, 10:05 -05:00
    EMail: mivtzoyim@juno.com

    Add "visible" flag


      Hi! I'm a total newbie, and I must say that baseportal is incredible!

      I'm making a database listing contact information. I want people to be able to add their own, but I'd like to see and confirm entries before they show up on the main page.

      I thought of a way to do this, by having a "Visible" field, which by default is false, when a new entry is added. I would then be able go into the database and change the flag to true, allowing the entry to be visible on the site.

      My question is, is it possible to do this, and how? :)
      - Have a field that creates a default value when users input information, that they can neither see nor modify?
      - Have the main page hide entries with a "Visible" value of false?

      And incidentally, is there a way to be alerted when someone adds an entry?

      [Warning: I'm a real non-geek. My programming knowledge is limited to HTML, although I'm not afraid of messing around with code.]

      Thanks for any help you can offer!
     Post a reply

    Message from Christoph Bergmann on 1/3 2004, 18:16 +01:00
    EMail: info@baseportal.com

    Re: Add "visible" flag


      Yes, this is possible and you have exactly the right idea. Follow these steps:

       - add a field "Visible" of the type "checkbox" to your database
       - in your template add "Visible==1" to the <do action=all..> tag:

      <do action=all Visible==1 ...>

      thats it ;-)

     Post a reply
     
 Messages from 2850 to 3000: To the input form 
<< Newest messages | < Newer messages | To the input form | Older messages > | Oldest messages >>


Back to the homepage

© baseportal.com. All rights reserved. Terms of use



baseportal.com