• I need help, and sorry if this has been explained before, but I’ve been through all the Codex and support forums and I still cant make a profile page. Duh!

    What I’m trying to create is a pop up profile page so that when a member’s name is clicked on, you/me/other members can see their details from the profiles they’ve written
    (name/description/URI/hobbies/etc) on a separate page. Seems simple enough, but apparently not for me.

    I’m running WP version 2.0.5 – my site is http://www.casualvices.com, and based on the

    following support topic http://wordpress.org/support/topic/35206 here’s what I’ve done so far…

    Before the comment loop started in comments.php, I inserted the following…

    ‘<?php
    $profiles = $wpdb->get_results(“SELECT ID, user_description FROM $wpdb->users”);
    foreach($profiles as $profile) {
    $desc[$profile->ID] = $profile->user_description;
    }
    ?>

    <?php if ( $comments ) : ?>

    <ol id=”commentlist”>

    <!—the loop–>

    <?php foreach ($comments as $comment) : ?>

    • <p><?php comment_type(__(‘<!— guest profile here –>’), __(‘Trackback’),

      __(‘Pingback’)); ?><?php comment_author_link() ?> <?php comment_date(‘m/j/y’) ?> <?php

      comment_time() ?> PST <?php edit_comment_link(__(“Edit This”), ‘ |’); ?></p>
      <?php comment_text() ?>

    • <?php endforeach; ?>

      <!—end loop–>

      Then immediately outside the commemt loop I inserted the following…

      <?php echo $desc[$comment->user_id]; ?>’

      When I go to comments, I get the following error…

      WordPress database error: [Unknown column ‘user_description’ in ‘field list’]
      SELECT ID, user_description FROM wp_users

      Any solutions or advice would be greatly appreciated. Thanks.

      Colt 45
      http://www.casualvices.com

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Need Subscriber profile page’ is closed to new replies.