Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Forum: Plugins
    In reply to: User Profile Pages

    Hi moshu – I did read the replies, the Author_Templates from codex, and https://guff.szub.net/2005/01/31/get-author-profile But I’ve failed to comprehend its (plugin’s) complexity ??

    Forum: Plugins
    In reply to: User Profile Pages

    I am able to link to users’ profiles from the sidebar, etc. But I was wondering, can we add a user image (avatar) to their profile pages by altering the author.php?

    I already did that, but the result is still “No categories”.

    And I apologize for asking this question twice. The other topic with my complete coding: https://www.ads-software.com/support/topic/79855

    Thread Starter clarissa

    (@clarissa)

    Thank you for the fast replies!

    ladydelaluna – I’ve copied the code exactly but it still showed as “No categories”.

    Otto42 – I do have categories other than 1 and 6. Currently, I have eight total.

    Here is the complete code of my sidebar.php (from Blix)

    <hr class=”low” />

    <!– subcontent …………………………… –>
    <div id=”subcontent”>

    <?php /**
    * Pages navigation. Disabled by default because all new pages are added
    * to the main navigation.
    * If enabled: Blix default pages are excluded by default.
    */
    ?>
    <h2>Pages</h2>
    <ul class=”pages”>
    <?php
    $excluded = BX_excluded_pages();
    wp_list_pages(‘title_li=&sort_column=menu_order&exclude=’.$excluded);
    ?>

    <?php if (is_home() || is_page()) { ?>

    <?php
    /**
    * If a page called “about_short” has been set up its content will be put here.
    * In case that a page called “about” has been set up, too, it’ll be linked to via ‘More’.
    */
    $pages = BX_get_pages(‘with_content’);
    if ($pages) {
    foreach ($pages as $page) {
    $page_id = $page->ID;
    $page_title = $page->post_title;
    $page_name = $page->post_name;
    $page_content = $page->post_content;

    if ($page_name == “about”) $more_url = ‘More‘;
    if ($page_name == “about_short”) {
    $about_title = $page_title;
    $about_text = BX_remove_p($page_content);
    }
    }
    if ($about_text != “”) {
    echo “<h2>“.$about_title.”</h2>\n”;
    echo “”.$about_text;
    if ($more_url != “”) echo ” “.$more_url;
    echo “\n”;
    }
    }
    ?>

    <h2>Categories</h2>

    <ul class=”categories”>
    <?php wp_list_cats(‘sort_column=name&optioncount=1&exclude=1, 2’); ?>

    <h2>Authors:</h2> <ul class=”categories”>
    <?php wp_list_authors(‘exclude_admin=0&hide_empty=0’); ?>

    <?php } ?>

    <?php if (is_single()) { ?>

    <h2>Calendar</h2>

    <?php get_calendar() ?>

    <h2>Most Recent Posts</h2>

    <ul class=”posts”>
    <?php BX_get_recent_posts($p,10); ?>

    <?php } ?>

    <?php if (is_page(“archives”) || is_archive() || is_search()) { ?>

    <h2>Calendar</h2>

    <?php get_calendar() ?>

    <?php if (!is_page(“archives”)) { ?>

    <h2>Posts by Month</h2>

    <ul class=”months”>
    <?php get_archives(‘monthly’,”,”,’

    • ‘,’
    • ‘,”); ?>

      <?php } ?>

      <h2>Posts by Category</h2>

      <ul class=”categories”>
      <?php wp_list_cats(‘sort_column=name&hide_empty=0’); ?>

      <?php } ?>

      </div> <!– /subcontent –>

    To BPartch – I wanted to do exactly that – exclude some categories from my sidebar. However, when I included your code above, my categories displayed “None”. Do you think you can help? Thanks!

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