Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter kiadri

    (@kiadri)

    Thread Starter kiadri

    (@kiadri)

    This is what I have now:

    <?php
        /*
        //Template Name: author
        */
    
        /* get all options: */
        include (TEMPLATEPATH . '/functions/bfa_get_options.php');
        get_header(); ?>
    
        <?php // $author = 2; //TESTING ONLY ?>
        <?php $thisauthor = get_userdata(intval($author));
        if ($thisauthor) :
        $values = get_cimyFieldValue($author, false);
        foreach ($values as $value) {
        $values_by_name[$value['NAME']] = cimy_uef_sanitize_content($value['VALUE']);
        }
        ?>
        <div style="float: right;">
        <?php if(function_exists('get_avatar')) { echo get_avatar($thisauthor->user_email, 96, "" ); } ?>
        </div>
    
        <h3><?php echo $thisauthor->first_name . " " . $thisauthor->last_name; ?></h3>
        <p>Website: <?php if ($thisauthor->user_url) { ?>
        user_url . '">' . $thisauthor->user_url . ''; ?>
        <?php } ?></p>
        <p>Email: <?php if ($thisauthor->user_email) { ?>
        user_email . '">' . $thisauthor->user_email . ''; ?>
        <?php } ?></p>
        <p>Weblog: <?php echo $values_by_name['WEBLOG']; ?></p>
        <p>Telephone: <?php echo $values_by_name['PHONE']; ?></p>
        <p>Mobile: <?php echo $values_by_name['MOBILE']; ?></p>
        <p>Business address: <?php echo $values_by_name['ADDRESS']; ?></p>
        <p><?php echo $thisauthor->user_description; ?> </p>
        <p>Qualifications: <?php echo $values_by_name['QUALIFICATIONS']; ?></p>
        <p>Services: <?php echo $values_by_name['SERVICES']; ?></p>
    
        <?php else:
        echo "<h2>Sorry, Author ID $author has not filled out their freelance profile yet.</h2>";
        endif; ?>
        <?php get_footer(); ?>

    Services is not showing up, ditto weblog, phone, mobile and biographical info aka user_description. Also changed the title of the page and that change isn’t showing up either. vtxyzzy: you’ve got mail.

    And thank you for all the help so far, though I am a little bit confused about MichaelH’s <p>Birth Date:<?php echo cimy_uef_sanitize_content(get_cimyFieldValue(1, 'BIRTH-DATE')); ?></p> Are you saying I should put all the values seperated by commas in the ‘BIRTH-DATE’ section?

    Cheers, Marisa.

    Thread Starter kiadri

    (@kiadri)

    <?php /* get all options: */
        include (TEMPLATEPATH . '/functions/bfa_get_options.php');
        get_header(); ?>
    
        <?php
        $thisauthor = get_userdata(intval($author));
        ?>
        <div style="float: right;">
        <? if(function_exists('get_avatar')) { echo get_avatar($thisauthor->user_email, 96, "" ); } ?> </div>
    
        <h3>You're currently viewing <?php echo $thisauthor->first_name . " " . $thisauthor->last_name; ?>'s freelance profile </h3>
        <p><h4> General information </h4></p>
        <p>user_url; ?>"><? echo $thisauthor->user_url; ?>
        user_email; ?>"><? echo $thisauthor->user_email; ?>
        <p>Telephone:<?php echo $thisauthor->TELEPHONE; ?></p>
        <p>Mobile:<?php echo $thisauthor->mobile; ?></p>
        <p>Business address:<?php echo $thisauthor->address; ?></p>
        <p><h4>Editing experience and information</h4></p>
        <p><?php echo $thisauthor->user_description; ?> </p>
        <p>Qualifications:<?php echo $thisauthor->qualifications; ?></p>
        <p>Services:<?php echo $thisauthor->services; ?></p>
        <p><h4>Social networking & chat</h4></p>
        <p>AIM ID:<?php echo $thisauthor->user_aim; ?></p>
        <p>Yahoo ID:<?php echo $thisauthor->user_yahoo; ?></p>
        <p>Twitter ID:<?php echo $thisauthor->user_twitter; ?></p>
        <p>MSN ID:<?php echo $thisauthor->user_msn; ?></p>
        <p>ICQ ID:<?php echo $thisauthor->user_icq; ?></p>
        <p>Skype ID:<?php echo $thisauthor->user_skype; ?></p>
    kiadri

    (@kiadri)

    I used Author Avatars plugin to create a page listing all members with a link from each member’s name to their profile/author page.

    My problem is now getting the CIMY USER EXTRA FIELDS to show up on the author page.

    Thread Starter kiadri

    (@kiadri)

    Ok I am really daft at php so I probably need someone to write it out for me or something. I tried putting in what you suggested but it still isn’t showing up on the public page.

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