
Jason
Staff
/ Moderator

Dec 21, 2011, 9:38 AM
Post #2 of 6
(943 views)
Shortcut
|
|
Re: [videopixel] Website membership: content based on user
[In reply to]
|
Can't Post
|
|
Hi, Since $CURRENT_USER doesn't retrieve any upload information, you need to have a separate query to retrieve that user's record and uploads For example:
<?php if ($CURRENT_USER): ?> <?php list($accountRecord, $accountMetaData) = getRecords(array( 'tableName' => 'accounts', 'allowSearch' => false, 'limit' => 1, 'where' => "num = '".intval($CURRENT_USER['num'])."'", )); $assets = array(); if ($accountRecord) { $assets = $accountRecord[0]['assets']; } ?> <?php foreach ($assets as $upload): ?> //output images <?php endforeach ?> <?php endif ?> Hope this helps get you started. --------------------------------------------------- Jason Sauchuk - Programmer interactivetools.com Hire me! Save time by getting our experts to help with your project. http://www.interactivetools.com/consulting/
|