Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter aimeec

    (@aimeec)

    Thanks a lot. I’ve decided to use wp-people instead of Lennart’s as it seems easier. they have different features though.

    Forum: Fixing WordPress
    In reply to: registration

    You need to log out first from your admin account. This will then lead you to the new user registration.
    Aimee

    Forum: Plugins
    In reply to: help with functions.php
    Thread Starter aimeec

    (@aimeec)

    thanks anyway, podz. I’m still trying to tweak it, but nothing’s happening. :-(. I should wait for Lennart’s reply

    Forum: Plugins
    In reply to: help with functions.php
    Thread Starter aimeec

    (@aimeec)

    I’ve tried that but it isn’t there. What I would like to know is that if I add a plugin/hack, should I add the function in the functions.php found in wp-includes, or should I make a new file with all plugin functions in it?

    Forum: Plugins
    In reply to: where to fin myhack.php
    Thread Starter aimeec

    (@aimeec)

    Just to check:
    I’m working on the get-authors hack. and this is what my my-hacks.php file look
    like. Is this correct?
    <? php
    Press Return twice
    <?php
    #require_once(ABSPATH . ‘wp-hilite.php’);
    add_filter(‘the_content’, ‘hilite’);
    ?>
    <?php
    function get_authors($postCount = true, $excludeAdmin = true, $showFullName = false, $detailLink = ”) {
    global $tableusers, $tableposts, $wpdb, $author, $siteurl, $blogfilename;
    echo “<div id=’authors’>”;
    echo “

    “;
    echo “</div>”;
    }
    /////////////////////////////////////////////////////////////////////
    function get_user_table($userid) {
    if ($userid) {
    $data = get_userdata($userid);
    if ($data->ID) {
    echo “<table id=\”user_table\”>”;
    echo “<tr>”;
    echo “</tr><tr>”;
    echo “<th>Name</th><td>”. ($data->user_firstname . $data->user_lastname ? “$data->user_firstname $data->user_lastname” : ‘ ‘) . “</td>”;
    echo “</tr><tr>”;
    echo “<th>Nick</th><td>” . ($data->user_login ? $data->user_login : ‘ ‘) . “</td>”;
    echo “</tr><tr>”;
    echo “<th>Email</th><td>” . ($data->user_email ? “user_email\”>$data->user_email” : ‘&nbsp’) . “</td>”;
    echo “</tr><tr>”;
    echo “<th>Description</th><td>” . ($data->user_description ? $data->user_description : ‘ ‘) . “</td>”;
    echo “</tr><tr>”;
    echo “<th>Posts</th><td>” . ($posts ? “ID\”>$posts” : ‘ ‘) . “</td>”;
    echo “</tr><tr>”;
    echo “</tr>”;
    echo “</table>”;
    return;
    }
    }
    echo “Unknown user!”;
    }
    ?>
    Now enter
    ?>

    Forum: Plugins
    In reply to: get authors

    I’m new at this. But just a question, can I put the function call (function signature) anywhere in index.php? or is there a specific line for this? Again, thanks.

    Thread Starter aimeec

    (@aimeec)

    OIC. Thanks a lot for the info. I still need to look at this Wiki though to check it out. 🙂

    Thread Starter aimeec

    (@aimeec)

    hahahaha…Didn’t notice that. And oh! that’s an extremely quick reply. I’m off to bed right now. It’s late in Vietnam. I’ve been looking at the files and realized most of the questions above are so unnecessary because they are just right in front of my face. Stupid, lazy me. Will try again 2-morrow (er, today, later today).
    Thanks

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