Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jlmno

    (@jlmno)

    Awesome thank you very much! Now onto the Alkivia profile page…

    Thread Starter jlmno

    (@jlmno)

    here is what I have in the whole file. I get an error on line 68, which is the line with the second foreach.

    $roles = ak_get_roles(true);                                                // Available roles (translated)
    $dt_format = get_option('date_format') . ' | ' . get_option('time_format');  // Date-Time format
    
    ?>
    <div id="mini-profiles">
    <?php foreach ( $users as $user ) : ?>
    	<h1 class="user-name"><?php echo $user['display_name']; ?></h1>
    	<div class="short-profile">
    		<?php
        	/* Sample to get the thumbnail instead the avatar.
            	if ( ak_get_object('akucom')->activeComponent('gallery') ) {
        	    	echo aoc_get_user_image($user['ID'], 'alignleft', true);  // Get thumnail.
    	        }
        	*/
            ?>
    		<div class="image"><a href="<?php echo $baselink . urlencode($user['user_login']); ?>"><?php echo get_avatar($user['ID'], $avatar_size) ?></a></div>
    	<p><?php echo $roles[ak_get_user_role($user['ID'])];
        if ( empty($user['user_url']) || 'http://' == $user['user_url'] ) {
            echo '</p>';
        } else { ?>
            <br /><?php _e('My site:', $i18n); ?>
    	    <a href="<?php echo $user['user_url']; ?>" target="_blank"><?php echo substr($user['user_url'], 7); ?></a></p>
    	<?php }
    	$userData = get_userdata($user['ID']);
        if ( ! empty($userData->description) ) {
            echo wpautop('<p class="title">' . __('About Me', $i18n) . '</p>' . $userData->description);
        }
    	?>
    <?php
    	$values = get_cimyFieldValue($user->ID, false);
    
    	foreach ($values as $value) {
    		echo $value['LABEL'].": ";
    		echo cimy_uef_sanitize_content($value['VALUE'])."<br />";
    	}
    	?>
    
    	</div>
    <?php endforeach; ?>
    </div>
    <?php echo $pager; ?>

    thanks for your response!

Viewing 2 replies - 1 through 2 (of 2 total)