<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Membership Plugin Help</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Membership-Plugin-Help-72641</link>
        <description></description>
        <pubDate>Sat, 07 Nov 2026 00:41:06 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Membership-Plugin-Help-72641" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [kcmedia] Membership Plugin Help</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2211764#post2211764</link>
          <description><![CDATA[Hi Craig,<br /><br />I took a look and there are a couple of issues here.<br /><br /> - The field in the Accounts table is called &quot;kids_portfolio&quot;, so this is the field you need to reference using $CURRENT_USER.<br /> - In your where clause you need to specify which field you are searching against.  For example:<br /><br /><code>'where'       =&gt; &quot;title = '&quot;.mysql_escape($CURRENT_USER['kids_portfolio']).&quot;'&quot;,</code><br /><br />- I noticed that you are using the &quot;title&quot; of field of the kids_name section as the value field in your list boxes.  Although this is okay for a very small scale, it can cause certain problems.  First, if you ever need to change the name of a child, it will break all of your associations.  Also, if you have more than 1 child with the same name (ie, John Smith), then the parent of 1 child will be able to see records associated with the other.  I would recommend using the &quot;num&quot; field as the value for the list options (you can still use title for the label without a problem).  For information on how to set this up, see here: (<a target="_blank" href="http://www.interactivetools.com/kb/article.php?Populate-a-list-field-from-another-section-15">http://www.interactivetools.com/kb/article.php?Populate-a-list-field-from-another-section-15</a>)<br /><br />That being said, you can structure your queries like this:<br /><br /><code> // load records<br />  list($kids_diaryRecords, $kids_diaryMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'kids_diary',<br />    'where'       =&gt; &quot;kids_name = '&quot;.mysql_escape($CURRENT_USER['kids_portfolio']).&quot;'&quot;,<br />    'perPage'     =&gt; '5',<br />  )); <br /><br />  // load records<br />  list($kids_galleryRecords, $kids_galleryMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'kids_gallery',<br />    'where'       =&gt; &quot;kids_name ='&quot;.mysql_escape($CURRENT_USER['kids_portfolio']).&quot;'&quot;,<br />    'perPage'     =&gt; '10',<br />  ));<br /><br />  // load records<br />  list($kids_nameRecords, $kids_nameMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'kids_name',<br />    'where'       =&gt; &quot;title = '&quot;.mysql_escape($CURRENT_USER['kids_portfolio']).&quot;'&quot;,<br />    'limit'       =&gt; '1',<br />  ));<br />  $kids_nameRecord = @$kids_nameRecords[0]; // get first record</code><br /><br />Hope this helps<br />]]></description>
          <pubDate>Fri, 10 Jun 2011 12:11:23 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2211764#post2211764</guid>
        </item>
                <item>
          <title>Re: [Jason] Membership Plugin Help</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2211744#post2211744</link>
          <description><![CDATA[Hi Jason<br /><br />i did that but i keep getting errors on the page and still didnt work.<br /><br />here is the code for the page.<br />]]></description>
          <pubDate>Thu, 09 Jun 2011 16:23:08 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2211744#post2211744</guid>
        </item>
                <item>
          <title>Re: [kcmedia] Membership Plugin Help</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2211738#post2211738</link>
          <description><![CDATA[Hi Craig,<br /><br />What you can do then is get the value of that drop down for the user that is currently logged in like this:<br /><br />NOTE, I'm assuming the name of the field is &quot;kid&quot;<br /><br /><code>  $CURRENT_USER['kid']</code><br /><br />You can then use this value in the where clause of your other queries to get records that only pertain to that kid.  Exactly how you would use this value will depend on what the actual value of the list options is (ie, num, name, etc) and how you've set this up to relate to the other tables.<br /><br />Hope this helps get you started.<br />]]></description>
          <pubDate>Thu, 09 Jun 2011 12:26:24 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2211738#post2211738</guid>
        </item>
                <item>
          <title>Re: [Jason] Membership Plugin Help</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2211711#post2211711</link>
          <description><![CDATA[Hi Jason<br /><br />in the user account i created a drop down list that relates to the kids name so it shows a list of all kids added to the system.<br />]]></description>
          <pubDate>Wed, 08 Jun 2011 15:50:00 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2211711#post2211711</guid>
        </item>
                <item>
          <title>Re: [kcmedia] Membership Plugin Help</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2211705#post2211705</link>
          <description><![CDATA[Hi Craig,<br /><br />How does a parent's user account related to the kid's records?<br /><br />Let me know and we'll see what we can come up with.<br /><br />Thanks<br />]]></description>
          <pubDate>Wed, 08 Jun 2011 12:33:50 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2211705#post2211705</guid>
        </item>
                <item>
          <title>Re: [Jason] Membership Plugin Help</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2211691#post2211691</link>
          <description><![CDATA[Hi Jason<br /><br />well i have 3 sections setup the best way would be for you to take a look at the CMS admin and see how i have set it up would that be alright.<br /><br />but what i have is 3 multi sections<br /><br />1 will store the kids name<br />1 will store a gallery<br />1 will store a diary<br /><br />the gallery and diary both have a drop down list that gets the kids name from it to relate the records together based on the kids information.<br />]]></description>
          <pubDate>Tue, 07 Jun 2011 16:18:10 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2211691#post2211691</guid>
        </item>
                <item>
          <title>Re: [kcmedia] Membership Plugin Help</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2211676#post2211676</link>
          <description><![CDATA[Hi Craig,<br /><br />I've taken a look at your page and it looks like you're off to a great start.<br /><br />A couple of things I noticed to begin with:<br /> - This piece of code here isn't needed:<br /><code> // error checking<br />  $errorsAndAlerts = alert();<br />  if (@$CURRENT_USER) {<br />    $errorsAndAlerts = &quot;You are already logged in! &lt;a href='{$GLOBALS['WEBSITE_LOGIN_POST_LOGIN_URL']}'&gt;Click here to continue&lt;/a&gt; or &lt;a href='?action=logoff'&gt;Logoff&lt;/a&gt;.&quot;;<br />  }</code><br /><br />This code is usually only used on the login or forgotten password pages as it's meant to alert someone that they are currently logged in.<br /><br />- Also, you're using &quot;whereRecordNumberInUrl()&quot; to fetch records for a number of sections (google_analytics, portfolio_meta, slogan, kids_name).  Since there is no number in the url, it will only ever get the first record in the list.  Typically, you only would ever use &quot;whereRecordNumberInUrl()&quot; on 1 section on a page.  If any of these sections are single record sections, you can remove the &quot;where&quot; clause entirely since there will only ever be 1 record in that section.<br /><br />That being said, what information are do you want to display about a particular child.  How is this information stored and how is it related to the accounts section (ie, the person currently logged in)?<br /><br />Let me know and we'll see if we can make some suggestions.<br /><br />Hope this helps<br />]]></description>
          <pubDate>Tue, 07 Jun 2011 11:41:29 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2211676#post2211676</guid>
        </item>
                <item>
          <title>Membership Plugin Help</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2211664#post2211664</link>
          <description><![CDATA[Hi<br /><br />I have started the process of designing the membership pages and have it so that the users can login to the site that works great but now i am stuck on how to only show each user the information on the page that they are allowed to see as each user is only allowed to see their childs information and no others.<br /><br />Also with this site the members are added to the cms by the staff only there is no signup page or anything like that. <br /><br />Can someone help me here is the url for the membership login<br /><br /><a target="_blank" href="http://www.waggachildcare.com.au/kids-portfolio.php">http://www.waggachildcare.com.au/kids-portfolio.php</a><br /><br />the login is test and the password is test<br /><br />i have also included the page that will show all the information that is required.<br /><br />some help would be great thanks<br />]]></description>
          <pubDate>Tue, 07 Jun 2011 04:51:23 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2211664#post2211664</guid>
        </item>
              </channel>
    </rss>
  