<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title></title>
        <link>https://interactivetools.com/forum/forum-search.php?k=user%3AGabums85</link>
        <description></description>
        <pubDate>Wed, 22 Apr 2026 04:01:31 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-search.php?k=user%3AGabums85&amp;rss=1" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [Jason] Array_unique being ignored</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2215322#post2215322</link>
          <description><![CDATA[Hi Jason,<br /><br />Thank you for that code. What I meant when I said &quot;main account&quot; could not really be referred to as &quot;isAdmin&quot; since many of us users are &quot;admin&quot; on the account. But I was able to take that code you provided and get it to do what I needed. Here it is just in case anyone else wants to know<br /><br /><code>&lt;?php <br /> <br />  $where = &quot;&quot;; <br />   <br />  if (($CURRENT_USER['fullname']) != 'Admin Account Name') { <br />    $where = &quot; user = '&quot;.mysql_escape($CURRENT_USER['fullname']).&quot;'&quot;;   <br />  } <br />   <br />  list($software_serialRecords, $software_serialMetaData) = getRecords(array(  <br />    'tableName'   =&gt; 'software_serial',  <br />	'orderBy'     =&gt; 'program',  <br />	 'where'      =&gt;  $where,    <br />  )); <br />   <br />?&gt;</code><br /><br />Thank you again very much for your help!<br />Gab<br />]]></description>
          <pubDate>Tue, 28 Feb 2012 16:13:56 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2215322#post2215322</guid>
        </item>
                <item>
          <title>Re: [Jason] Array_unique being ignored</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2215291#post2215291</link>
          <description><![CDATA[Thank you for the wonderfully speedy reply. I used the code you provided and it does work in removing the duplicates. However, I do need the have the foreach statement (I believe) in order to have certain programs be listed depending on the user. So this code:<br /><code>&lt;?php foreach ($software_serialRecords as $record): ?&gt;<br />&lt;?php if (($CURRENT_USER['fullname']) == ($record['user'])): ?&gt;</code><br />I still need to use. I'm not sure how though. I've tried putting it before and after the code you provided but it doesn't work. I've also tried:<br /><code>&lt;?php if (($CURRENT_USER['fullname']) == ($software_serialRecords['user'])): ?&gt;</code>	<br />So I wouldn't have to depend on the foreach statement, but nothing shows up in the drop down menu.<br /><br /><br />\\\\\\\\\ UPDATE \\\\\\\\<br /><br />I added this line:<br /><code>'where'      =&gt;  mysql_escapef(&quot; user = ? &quot;, $CURRENT_USER['fullname'] ),</code><br />to here:<br /><code>&lt;?php<br />  list($software_serialRecords, $software_serialMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'software_serial',<br />	'orderBy'     =&gt; 'program',<br />	 'where'      =&gt;  mysql_escapef(&quot; user = ? &quot;, $CURRENT_USER['fullname'] ),  <br />  ));<br />?&gt;</code><br />and now it shows the listings for the specific user. HOWEVER, I also need the option to have the main account show ALL listings. So if your signed in under just you user name, only your records show up (which it does) but when you are signed in to the main account then all the listings show up... Still trying to figure that part out...<br />]]></description>
          <pubDate>Fri, 24 Feb 2012 14:37:24 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2215291#post2215291</guid>
        </item>
                <item>
          <title>Array_unique being ignored</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2215288#post2215288</link>
          <description><![CDATA[Hello all,<br /><br />I have a dropdown menu that pulls a list of &quot;programs&quot; I have entered into the CMS as a list item. It works fine except that if a program is used more than once, the drop down shows each occurrence of the program. I want it to show just once. I found some code for array_unique but I just can't seem to get it to work.<br /><br /><blockquote><br />&lt;?php<br />  list($software_serialRecords, $software_serialMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'software_serial',<br />	'orderBy'     =&gt; 'program',<br />  ));<br />?&gt;<br /></blockquote><br /><blockquote><br />&lt;?php foreach ($software_serialRecords as $record): ?&gt;<br />&lt;?php if (($CURRENT_USER['fullname']) == ($record['user'])): ?&gt;	<br />     <br />&lt;?php $programLimit = array(); ?&gt;<br />&lt;?php $programLimit[] = $record['program']; ?&gt;<br />&lt;?php $programLimit = array_unique($programLimit); ?&gt;<br />																	 <br />&lt;?php for ($i = 0; $i&lt;count($programLimit); $i++) { ?&gt;<br />																	 <br />&lt;option value=&quot;software_serials_program.php?program=&lt;?php echo $record['program'] ?&gt;&quot;&gt;&lt;?php echo ($programLimit[$i]) ?&gt;&lt;/option&gt;<br />																	 <br />&lt;?php ;} ?&gt;<br />																	<br />&lt;?php endif ?&gt;<br />																	 <br />&lt;?php endforeach ?&gt;<br /></blockquote><br /><br />The above code works just fine in populating the drop down with the correct programs... but it completely ignores the array_unique code I have used and shows the duplicates. Any idea on why?<br /><br />Thanks!<br />Gab<br />]]></description>
          <pubDate>Fri, 24 Feb 2012 14:06:55 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2215288#post2215288</guid>
        </item>
                <item>
          <title>Re: [Jason] Membership plugin - author specific photo</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214985#post2214985</link>
          <description><![CDATA[It worked! But alas, I was informed that I have to have the code to pull from the Blog Avatar table and not the account manager... ::sigh::<br /><br />::EDIT::<br /><br />So as much as I would love to take credit for this being solved... my boss is the one who figured out the code :)<br /><br />Here it is if anyone wants to know:<br /><br /><code>&lt;?php $post_author = $record['createdBy.username'] ?&gt;<br />										<br />&lt;!-- SET VARIABLE TO DETERMINE IF USER UPLOADED AN IMAGE --&gt;<br />&lt;?php $avatar_match = 0; ?&gt;<br />										<br />&lt;!-- LOAD AVATAR --&gt;<br />&lt;?php foreach ($blog_avatarsRecords as $record): ?&gt;<br />     &lt;?php if ($record['name'] == $post_author): ?&gt; <br />          &lt;?php foreach ($record['avatar'] as $upload): ?&gt;<br />               &lt;img src=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot; width=&quot;75&quot; height=&quot;75&quot; /&gt; <br />	  &lt;?php endforeach ?&gt; <br />          &lt;?php $avatar_match +=1; ?&gt;<br />     &lt;?php endif ?&gt; <br />&lt;?php endforeach ?&gt;<br />										<br />&lt;!-- IF NO RECORDS MATCH, LOAD GENERIC IMAGE --&gt;<br />&lt;?php if ($avatar_match == 0): ?&gt; <br />     &lt;img src=&quot;images/fpo_avatar.jpg&quot; width=&quot;75&quot; height=&quot;75&quot; /&gt; <br />&lt;?php endif ?&gt;</code><br /><br />Thank you very much to everyone who has been helping me through this the last few days. Hopefully the above code helps others too.<br />Gab<br />]]></description>
          <pubDate>Tue, 31 Jan 2012 14:22:05 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214985#post2214985</guid>
        </item>
                <item>
          <title>Re: [gkornbluth] Membership plugin - author specific photo</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214969#post2214969</link>
          <description><![CDATA[Hey everyone,<br /><br />Ok I got it working kinda but there is some funky stuff going on. I'm going to attach a stripped down file to see if maybe that will help. So when I did the error testing again that Tom recommended, I noticed that the uploaded images from the Blog_Avatars table won't work unless there is an avatar upload form in the Accounts table as well... So now I have them both up and both with images downloaded to the tables. Anyways, using this code:<br /><br /><code>&lt;?php if ($record['createdBy.avatar']): ?&gt; <br />     &lt;?php foreach ($blog_avatarsRecord['avatar'] as $upload): ?&gt;    <br />          &lt;img src=&quot;&lt;?php echo $upload['thumbUrlPath'] ?&gt;&quot; width=&quot;&lt;?php echo $upload['thumbWidth'] ?&gt;&quot; height=&quot;&lt;?php echo $upload['thumbHeight'] ?&gt;&quot; /&gt;<br />     &lt;?php endforeach ?&gt; <br />&lt;?php else : ?&gt; <br />      &lt;img src=&quot;images/fpo_avatar.jpg&quot; width=&quot;75&quot; height=&quot;75&quot; /&gt; <br />&lt;?php endif ?&gt;</code><br /><br />Causes the last image that has been added to the manager to be the one that shows up when there is an image created by the user. So my boss uploaded her image after I had, and now for my posts, her image comes up as well as on her own posts. The else statement works. This is the closest I have gotten with every variation of the code I can think of...<br /><br />Thanks again everyone! You're lifesavers :)<br />]]></description>
          <pubDate>Tue, 31 Jan 2012 11:33:40 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214969#post2214969</guid>
        </item>
                <item>
          <title>Re: [Tom P] Membership plugin - author specific photo</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214946#post2214946</link>
          <description><![CDATA[Wow...pretty neat! So I tested out the helper function for both the Accounts Table and the New Blog Image Table I created. I was a bit confused at the fact that when I ran the test for each one, there was a createdBy.avatar for both. I originally set up the Account Table to have the upload name of &quot;avatar&quot; and the Blog Image Table to have the upload name of &quot;upload_image&quot;. But the &quot;createdBy.upload_image&quot; never came up. So I changed that to &quot;avatar&quot; as well. Here are the results...<br /><br />For this code:<br /><code>&lt;?php foreach ($accountsRecords as $record) :?&gt;  <br />&lt;?php showme($record); ?&gt; <br />&lt;?php die(); ?&gt; <br />&lt;?php foreach ($record['createdBy.avatar'] as $upload): ?&gt;  <br />&lt;img src=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot; width=&quot;75&quot; height=&quot;75&quot; /&gt;  <br />&lt;?php endforeach ?&gt;  <br />&lt;?php endforeach ?&gt;</code><br />i got this:<br /><code>[createdBy.avatar] =&gt; Array ( )</code><br /><br />for this code:<br /><code>&lt;?php foreach ($blog_avatarsRecords as $record) :?&gt;  <br />&lt;?php showme($record); ?&gt; <br />&lt;?php die(); ?&gt; <br />&lt;?php foreach ($record['createdBy.avatar'] as $upload): ?&gt;  <br />&lt;img src=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot; width=&quot;75&quot; height=&quot;75&quot; /&gt;  <br />&lt;?php endforeach ?&gt;  <br />&lt;?php endforeach ?&gt;</code><br /><br />i got a huge string of information. But most notably it linked to my image (yay). So I changed the code to read as follows:<br /><code>&lt;?php foreach ($blog_avatarsRecord['createdBy.avatar'] as $upload): ?&gt;  <br />&lt;img src=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot; width=&quot;75&quot; height=&quot;75&quot; /&gt;  <br />&lt;?php endforeach ?&gt;<br />&lt;?php if (!$blog_avatarsRecord['createdBy.avatar']): ?&gt;   <br />	 &lt;img src=&quot;images/fpo_avatar.jpg&quot; width=&quot;75&quot; height=&quot;75&quot; /&gt; <br />&lt;?php endif ?&gt;</code><br /><br />but it shows up for EVERY posting. Not solely the one that I created. I wanted the &quot;fpo&quot; image to populate if the user has not uploaded their own image yet...<br /><br />I can't tell you all how much I appreciate you everyone hanging in there with me for this and trying to help out. I feel like we are getting close(ish) and just wanted to cheer you on a bit longer :)<br />Thank you so much!<br />]]></description>
          <pubDate>Mon, 30 Jan 2012 18:43:17 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214946#post2214946</guid>
        </item>
                <item>
          <title>Re: [Gabums85] Membership plugin - author specific photo</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214935#post2214935</link>
          <description><![CDATA[So I tried the new table and it still wont work. Every time I try adding 'createdBy', I get the &quot;undefined index&quot; error :(<br />]]></description>
          <pubDate>Mon, 30 Jan 2012 15:08:54 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214935#post2214935</guid>
        </item>
                <item>
          <title>Re: [Jason] Membership plugin - author specific photo</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214932#post2214932</link>
          <description><![CDATA[Hmmm... still not working but no error message this time. If I look at the page in firebug it looks like it cannot find the uploaded image. If I do an if statement like so:<br /><br /><code>&lt;?php foreach ($accountsRecord['avatar'] as $upload): ?&gt;<br />          &lt;img src=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot; width=&quot;75&quot; height=&quot;75&quot; /&gt;<br />&lt;?php endforeach ?&gt;<br />&lt;?php if (!$accountsRecord['avatar']): ?&gt;  <br />	 &lt;img src=&quot;images/fpo_avatar.jpg&quot; width=&quot;75&quot; height=&quot;75&quot; /&gt;<br />&lt;?php endif ?&gt;</code><br /><br />The fpo image does show up where the uploaded image should...<br /><br /> I'm going to try setting up the image in a different table and see if that makes a difference. I'll let you know what happens. Thank you!<br />]]></description>
          <pubDate>Mon, 30 Jan 2012 14:02:33 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214932#post2214932</guid>
        </item>
                <item>
          <title>Re: [Jason] Membership plugin - author specific photo</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214927#post2214927</link>
          <description><![CDATA[Hi Jason,<br /><br />Thank you so much for your reply. I was hoping all I would need is code like that...but I cannot seem to get it to work. When I use this:<br /><br /><code> &lt;?php foreach ($accountsRecords['createdBy.avatar'] as $upload): ?&gt; <br />        &lt;img src=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot; width=&quot;75&quot; height=&quot;75&quot; /&gt;<br />&lt;? php endforeach ?&gt;</code><br /><br />I get this error:<br /><blockquote>Notice: Undefined index: createdBy.avatar in /home/ovation2/public_html/mriintranet/index.php on line 68 Warning: Invalid argument supplied for foreach() in /home/ovation2/public_html/mriintranet/index.php on line 68 </blockquote><br /><br />When I try this:<br /><code>&lt;?php foreach ($accountsRecords as $record) :?&gt; <br />     &lt;?php foreach ($record['createdBy.avatar'] as $upload): ?&gt; <br />          &lt;img src=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot; width=&quot;75&quot; height=&quot;75&quot; /&gt;<br />     &lt;?php endforeach ?&gt; <br />&lt;?php endforeach ?&gt;</code><br /><br />I get the same error. Any thoughts?<br />]]></description>
          <pubDate>Mon, 30 Jan 2012 13:41:13 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214927#post2214927</guid>
        </item>
                <item>
          <title>Re: [gkornbluth] Membership plugin - author specific photo</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214916#post2214916</link>
          <description><![CDATA[Hi Jerry,<br /><br />Thanks for your reply. I've tried to figure out your suggestions but I feel so lost. I've tried this:<br /><br /><blockquote><br />&lt;?php foreach ($accountsRecords as $record): ?&gt;<br />									&lt;?php foreach ($record['avatar'] as $upload) { <br />    									if (mysql_count('uploads', &quot;tableName = 'accountsRecords' AND fieldName = 'uploads' AND recordNum = '&quot;.mysql_escape($record['num']).&quot;'&quot;)) { <br />      										<b>print '&lt;img src='&lt;?php echo $upload['urlPath'] ?&gt;' width=&quot;75&quot; height=&quot;75&quot; /&gt;';</b><br />    										} else {<br />											print '&lt;img src=&quot;images/avatar_fpo.jpg&quot; width=&quot;75&quot; height=&quot;75&quot; /&gt;';<br />										}<br />									?&gt;</blockquote><br /><br />But I can't even get the code to be error free. The bolded text always has that red error in Dreamweaver that tells you your not doing something right... Any other thoughts would be greatly appreciated. <br />Thanks!<br />]]></description>
          <pubDate>Mon, 30 Jan 2012 11:01:55 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214916#post2214916</guid>
        </item>
                <item>
          <title>Membership plugin - author specific photo</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214890#post2214890</link>
          <description><![CDATA[Hello all,<br /><br />I was hoping someone could help me out here. I have added a photo uploader under user accounts so that way, when a user posts something, their image will show up next to their post. I found this code <code>&lt;?php echo $record['createdBy.fullname'] ?&gt;</code> that works perfect for adding the users name that posted the information but I can't seem to get anything to work for images.<br /><br />I've tried <br /><code>&lt;?php foreach ($record['avatar'] as $upload): ?&gt;<br />&lt;?php echo $upload['createdBy.avatar'] ?&gt;<br />&lt;?php endforeach ?&gt;</code><br /><br />But that doesn't work.. No image shows up at all...I've tried...<br /><blockquote><br />&lt;?php list(list($current_user_with_uploads),) = getRecords(array('tableName' =&gt; 'accounts', 'where' =&gt; mysql_escapef('num = ?', $CURRENT_USER['num']), 'allowSearch' =&gt; false)); ?&gt; <br />&lt;?php if (sizeof(@$current_user_with_uploads['avatar'])): $upload = $current_user_with_uploads['avatar'][0] ?&gt; <br />&lt;img src=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot; /&gt;<br />&lt;?php else: ?&gt; <br />&lt;img src=&quot;images/fpo_avatar.jpg&quot; width=&quot;75&quot; height=&quot;75&quot; /&gt;<br />&lt;?php endif ?&gt;<br /></blockquote><br /><br />Where I get an image (my image) but it shows up for EVERY post. I'm assuming because it is using &quot;current_user&quot; commands and I'm the one signed in. Is there anything I can do to make this work?<br /><br />Thanks!<br />Gab<br />]]></description>
          <pubDate>Fri, 27 Jan 2012 17:45:23 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214890#post2214890</guid>
        </item>
              </channel>
    </rss>
  