Database Configuration

 

Tutorial: Allowing Multiple Option Selections

Example:

Profile Manager Premium supports multiple options for selection boxes. However, the Database Wizard will not create these kind of form fields automatically. You should first create a regular drop down menu database field. Then follow the tutorial below to make it an multiple option field.

The example discussed in this tutorial is a database field called "seeking". Members can seek one or more of these answers:

  • Man
  • Woman
  • Couples
  • Groups
  • Friends

    Here is how to do it:

    1. Go to Admin -> Preferences -> Database
    2. Add this line to "Fields including multiple data"


       "seeking"   =>   6,

    3. Add this into the registration form:

       <select name="seeking" multiple size="6">
         <option>Man</option>
         <option>Woman</option>
         <option>Couples</option>
         <option>Groups</option>
         <option>Friends</option>
         <option>PenPal</option>
       </select>


    4. Add this into the modification form:

       <select name="seeking" multiple size="6">
         <option %%SELECTED:seeking:Man%%>Man</option>
         <option %%SELECTED:seeking:Woman%%>Woman</option>
         <option %%SELECTED:seeking:Couples%%>Couples</option>
         <option %%SELECTED:seeking:Groups%%>Groups</option>
         <option %%SELECTED:seeking:Friends%%>Friends</option>
         <option %%SELECTED:seeking:PenPals%%>PenPals</option>
       </select>


    %%SELECTED:field:value%% simply prints "selected" if there is a "value" text inside "field" database field. Same way, there is also a CHECKED function for checkboxes.

    5. Add this into the profile template:

    seeking: %%SEPERATE:seeking:, %%


    %%SEPERATE:field:delimiter%% simply prints "field" database field, and if there is more than one value for it, it seperates the values with "delimeted" text.

    6. Add this new field to search using "in_field", "if_field" will not work for multiselection fields. So it would look like this in search:

       <select name="in_seeking">
         <option>Man</option>
         <option>Woman</option>
         <option>Couples</option>
         <option>Groups</option>
         <option>Friends</option>
         <option>Penpal</option>
       </select>

  • Features Overview

     

    Membership

      Let your visitors become a part of your site by creating profiles and posting pictures.
     

    Customize

      Gives you the power to make your site work the way your organization does.
     

    Manage

      Build and manage your membership database easily.
     

    Payments

      Receive subscription payments from your members.
     

    Documentation

     

    Frequently Asked Questions

      Find answers to most frequently asked questions.
     

    Most Useful Forum Threads

      Links to most useful threads on the support forum.
     

    Designing Membership Area

      Learn how to customize your member area and integrate it with the rest of your site.
     

    Database Customization

      Customize your profile fields to create registration forms with your own questions.
     

    Category Builder

      Create and deploy category based user directories on your site.
     

    Subscriptions

      Collect subscription payments from your members.
     

    Include Generator

      Integrate various profile and application data and forms into your site.
     

    Tutorials

      Find a list of all tutorials for Profile Manager Premium.
     

    Forum

      Post your questions and search existing posts to find answers.

    Movie Tutorials

     

    Windows Installer

      Watch how easily your can install PM Premium on your site with couple of clicks.
     

    Application Builder

      Create your own applications to let users enter and browse their own content.
     

    Export

      Watch how you can export existing user data in Excel or any other data format.
     

    phpBB Integration

      Watch how easily you can integrate with an existing phpBB in your site.
     

    Search Form Builder

      Create your own custom profile search forms.
     
      © Copyright 2008 Interlogy LLC. Home | Products | Services | Support | Blog | Contact