• I need to display the User Defined Fields as public on the users profile page

    Here is my custom El Aleph Profile page

    <?php get_header(); ?>
    <div id="contentwrapper"><div id="content">
    	<div class="user-profile">
    	<?php if (have_users()) { the_user() ;  ?>
    	<?php aleph_the_user_avatar('<div style="float:none; padding-right:25px;" class="user-avatar">', '</div><hr>'); ?>
    			<h2 class="title">About <?php aleph_the_user_posts_link(); ?></h2> <small>&nbsp;&nbsp;<?php aleph_the_user_complete_name(); ?></small><br />
    			<div class="content"><?php aleph_the_user_description(); ?>
    
    				<h3>Member Since: </h3><?php aleph_the_user_registration_date(); ?><br />
    				<?php if (aleph_is_active_taxonomy('author-contacts')) { ?>
    
    				<?php } ?>
    
    				<?php if (aleph_is_active_taxonomy('author-interests')) { ?>
    					<h3 class="clear"><?php _e('Interests - Stock Symbols', 'aleph'); ?></h3>
    					<p><?php aleph_the_user_interests(' ', ', ', ' '); ?></p>
    				<?php } ?>
    
    			</div> <!-- /content -->
    
    	<?php } else { ?>
    			<h1 class="title"><?php _e('Sorry', 'aleph'); ?></h1>
    			<div class="content">
    				<p><?php _e('You tried to see the profile of a non existent user.') ?></p>
    			</div>
    	<?php } ?>
    
    	</div>
    	</div></div> <!-- Closes Content -->
    
    	<div class="sidebar">
    		<?php get_sidebar(); ?>
    	</div>
    <?php get_footer(); ?>

    here is the code I thought I should use to include “user defined fields” in my public profiles

    <?php
    if( get_user_option(your_company_name, $curauth->ID) ):
    echo get_user_option(your_company_name, $curauth->ID);
    endif;
    ?>

    this only displays the custom field information for that user if the user is signed in……?

    I have a “view our member” page whisk lists all users and links to a custom profile.php page

    what do I insert into the profile page to display the “user defined fields” as public to anyone who chooses to browse through the members/users

    WP 2.6.5

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter enlightenmental

    (@enlightenmental)

    Update:

    removed El Aleph plugin

    installed Profiler plugin

    problem solved

    original code for profiler.php

    if($user_description != '')
    	{
    		$output .= "<h3>About Me</h3>";
    		$output .= "<p>$user_description</p>";
    	}

    code I added to insert “User Defined Fields” from Register plus plugin
    `if($your_company_name != ”)
    {
    $output .= “<h3>Company Name</h3>”;
    $output .= “<p>$your_company_name</p>”;
    }`

    works like a charm…

    next I plan to use the previous post code

    <?php
    if( get_user_option(your_company_name, $curauth->ID) ):
    echo get_user_option(your_company_name, $curauth->ID);
    endif;
    ?>

    to create a page that will show unique user information when they sign in and access that page. custom per each user, defined by a certain User Defined Field (yeah!)

    to the creators of these plugins: THANK YOU! Your Intelligence is awesome

    thx enlighten. very helpful.

    I had no problem dispalying Register Plus extra fields in Aleph’s profile.php.

    Just use:
    echo get_usermeta(aleph_get_user_ID(),'telephone');

    and it’s all done

    Stefano

    Hi Garubi.

    Where did you enter that line? I’m rater new at programming.

    Jakob

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Using Register Plus & El Aleph to create public profile pages… HELP!’ is closed to new replies.