WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Aleph] How do I get the userlist? (17 posts)

  1. Chris Andersen
    Member
    Posted 5 years ago #

    Hi,
    I just installed the plugin.
    If I try this link

    I only get an overview over my "WordPress pages".
    What's wrong?

  2. Detective
    Member
    Posted 5 years ago #

    Here is your user list. It's working :)

    The link you posted is invalid because you need to pass a valid username to it (not the word username. For example, try admin).

  3. Chris Andersen
    Member
    Posted 5 years ago #

    Hi Detective,
    thanks for your answer.
    I tried these two:
    - admin
    - alex

    alex is one of my real users. I thought Aleph would just overtake the existing users. Both didn't work. Try to click on the links and you will see.
    It seems like I have to prepare sth. ... and what exactly?

  4. Detective
    Member
    Posted 5 years ago #

    I can see the profile of admin. It seems to work for me.

    The link to alex doesn't work, but if you check here you'll see all your registered users with a link to their profiles. In that list there is no user named alex.

    Aleph provides profiles and user lists for registered users in your site. In your sidebar i see that Alex is a commenter, but he (she?) is not registered, so Aleph can't provide a profile.

    However, it's strange that there is nothing shown. If Aleph couldn't find the user, it should redirect you to the 404 page.

  5. Chris Andersen
    Member
    Posted 5 years ago #

    Hi Detective,
    thx 4 your answer.

    you are right. I didn't see it because the page is totally broken.
    What do I have to do to fix the page again and run Aleph at the same time?

  6. Detective
    Member
    Posted 5 years ago #

    Hi,

    You need to edit the templates used. In the folder wp-content/plugins/el-aleph/template-examples there are two template files: users.php and profile.php. You need to copy those to your theme folder, and edit them according to your needs (so they match your site structure and css clases).

    I hope it works for you and you find my plugin useful. If you think your question is answered, please mark this topic as resolved :)

  7. Chris Andersen
    Member
    Posted 5 years ago #

    Hi Detective,
    thx 4 your answer.

    I've already copied these files to the theme folder. You saw the result
    - Profile Page
    - User Page

    The page is broken. Just compare it with:
    C-SALSA.COM
    and you will see.
    How do I have to change the users.php and profile.php that the result is displayed in my post area and the rest of the site is not broken?

    I'm not a programmer... so it would be cool if you show me an easy solution.

  8. Detective
    Member
    Posted 5 years ago #

    What i always do is to take single.php from your template and use that structure. Please paste your single.php here and i'll make you a simple profile/users page.

  9. Chris Andersen
    Member
    Posted 5 years ago #

    Hello Detective,
    thanks so much. You are great.
    Here is the single.php:

    <?php get_header(); ?>
      <div id="content">
    
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
          <div class="post-nav">
             <span class="previous"><?php previous_post_link('%link') ?></span>
             <span class="next"><?php next_post_link('%link') ?></span>
          </div>
          <div class="post" id="post-<?php the_ID(); ?>">
             <div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
             <div class="title">
                <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    				<?php the_title(); ?></a></h1>
                <div class="postdata">
                   <span class="category"><?php the_category(', ') ?></span>
                   <span class="right mini-add-comment"><a href="#respond">Add comments</a></span>
                </div>
             </div>
             <div class="entry">
             <?php the_content('Continue reading &raquo;'); ?>
             <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
    
             <p class="submeta">written by <strong><?php the_author(); ?></strong>
             <?php
             if(function_exists("the_tags"))
             the_tags('\\\\ tags: ', ', ', '<br />');
             ?>
             </p>
             <?php edit_post_link('Edit', '', ''); ?>
             </div><!--/entry -->
             <?php if (function_exists('link_to_me_textbox')) link_to_me_textbox(''); ?>
             <?php comments_template(); ?>
          </div><!--/post -->
    
    	<?php endwhile; else: ?>
    
             <p>Sorry, no posts matched your criteria.</p>
    
    	<?php endif; ?>
    
      </div><!--/content -->
    
      	   <div id="footer">
    		  	<span class="mangoorange">
             <a href="http://www.i3theme.com">i3Theme 1.6</a> is designed by <a href="http://www.ndesign-studio.com">N.Design Studio</a>, customized by <a href="http://www.mangoorange.com/">MangoOrange&trade;</a>, <br /> sponsored by <a href="http://www.web-hosting-top.com/">Web Hosting Reviews &amp; Free Coupons</a> and <a href="http://www.b4udecide.com/">Top Best Reviews and Providers</a>.
             </span>
    		</div>
    
    </div><!--/left-col -->
    
    <?php
    $current_page = $post->ID; // Hack to prevent the no sidebar error
    include_once("sidebar-right.php"); 
    
    $current_page = $post->ID; // Hack to prevent the no sidebar error
    include_once("sidebar-left.php");
    ?>
    
    <?php get_footer(); ?>
  10. Detective
    Member
    Posted 5 years ago #

    Please note what i pasted from profile.php. You could do the same with users.php :)

    <?php get_header(); ?>
      <div id="content">
      <!-- pasted from example profile.php -->
    	<div class="post user-profile">
    	<?php if (have_users()) { the_user();  ?>
    		<div class="title"><h1>About <?php aleph_the_user_posts_link(); ?> <small>/ <?php aleph_the_user_complete_name(); ?></small></h1></div>
    			<div class="entry">
    				<?php aleph_the_user_description(); ?>
    				<?php if (aleph_is_active_taxonomy('author-contacts')) { ?>
    					<h2><?php _e('Contacts', 'aleph'); ?></h2>
    					<?php aleph_the_user_contacts(); ?>
    
    				<?php } ?>
    				<?php if (aleph_is_active_taxonomy('author-interests')) { ?>
    					<h2 class="clear"><?php _e('Interests', 'aleph'); ?></h2>
    					<?php aleph_the_user_interests(' ', ', ', ' '); ?>
    
    				<?php } ?>
    			</div> <!-- /content -->
    
    	<?php } else { ?>
    			<div class="title"><h1><?php _e('Sorry', 'aleph'); ?></h1></div>
    			<div class="entry">
    				<?php _e('You tried to see the profile of a non existent user.') ?>
    
    			</div>
    	<?php } ?>
    	</div>
      <!-- end profile.php -->
      </div><!--/content -->
    
      	   <div id="footer">
    		  	<span class="mangoorange">
             <a href="http://www.i3theme.com">i3Theme 1.6</a> is designed by <a href="http://www.ndesign-studio.com">N.Design Studio</a>, customized by <a href="http://www.mangoorange.com/">MangoOrange&trade;</a>,  sponsored by <a href="http://www.web-hosting-top.com/">Web Hosting Reviews &amp; Free Coupons</a> and <a href="http://www.b4udecide.com/">Top Best Reviews and Providers</a>.
             </span>
    		</div>
    
    </div><!--/left-col -->
    
    <?php
    $current_page = $post->ID; // Hack to prevent the no sidebar error
    include_once("sidebar-right.php"); 
    
    $current_page = $post->ID; // Hack to prevent the no sidebar error
    include_once("sidebar-left.php");
    ?>
    
    <?php get_footer(); ?>
  11. Chris Andersen
    Member
    Posted 5 years ago #

    Hello Detective,

    thx a lot for the code. I'll try to do the same with the users.php.
    btw.
    How do I avoid the green head?
    --> profile.php

    My page doesn't look green:
    --> C-SALSA.COM

  12. Detective
    Member
    Posted 5 years ago #

    It seems that header subnavigation is being added in your header.php template file.

  13. Chris Andersen
    Member
    Posted 5 years ago #

    that's true...
    do you know what exactly I have to remove?
    Here is the code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title>
    	<?php
    	if(is_home()) {
    		echo get_bloginfo('description') . " &raquo; " . get_bloginfo('name');
    	}
    	else {
    		echo wp_title('', false) . " &raquo; " . get_bloginfo('name');
    	}
    	?>
    </title>
    
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    <!--ich-start-->
    <META NAME="author" CONTENT="http://www.c-salsa.com">
    <!--ich-end-->
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="all" />
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/print.css" type="text/css" media="print" />
    
    <!-- Sidebar docking boxes (dbx) by Brothercake - http://www.brothercake.com/ -->
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/dbx.js"></script>
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/dbx-key.js"></script>
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/dbx.css" media="screen, projection" />
    
    <!--[if lt IE 7]>
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/ie-gif.css" type="text/css" />
    <![endif]-->
    
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <?php wp_head(); ?>
    <!--c-salsa plugin start-->
    <script src="http://www.c-salsa.com/wp-content/plugins/seo-alt-tag-optimizer/font-text-resizer.js" type="text/javascript"></script>
    <!--c-salsa plugin end-->
    </head>
    <body>
    <div id="page">
      <div id="wrapper">
        <div id="header">
          <div id="title"><a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a></div>
          <div class="description"><?php bloginfo('description'); ?></div>
          <?php include (TEMPLATEPATH . '/searchform.php'); ?>
        </div><!-- /header -->
    <!-- -------------------------------Navigation Hauptfenster c-salsa.com --------------- -->
        <div id="left-col">
          <div id="nav">
            <ul>
              <li class="page_item <?php if ( is_home() ) { ?>current_page_item<?php } ?>"><a href="<?php echo get_settings('home'); ?>/" title="Home">Home</a></li>
              <!--<li><a href="/salsa-locations-overview/">Salsa Clubs</a></li>-->
              <li><a href="/salsa-locations/">Salsa Clubs</a></li>
              <li><a href="http://www.c-salsa.com/newsletter/">Newsletter</a></li>
              <li><a href="/salsa-videos-add/">Add Video</a></li>
              <li><a href="http://www.c-salsa-forum.com/">Forum</a></li>
              <li><a href="http://www.c-salsa.com/wp-login.php?">LogIn</a></li>
              <li><a href="http://www.c-salsa.com/wp-login.php?action=register">SignUp</a>
    <!--		  <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=');?>-->
            </ul>
          </div><!-- /nav -->
    
        <?php /* Menu for subpages of current page (thanks to K2 theme for this code) */
        $current_page = $post->ID;
    
        global $notfound;
        if (is_page() and ($notfound != '1')) {
            // Code Remove: to prevent the no sidebar error.
            while($current_page) {
                $page_query = $wpdb->get_row("SELECT ID, post_title, post_status, post_parent FROM $wpdb->posts WHERE ID = '$current_page'");
                $current_page = $page_query->post_parent;
            }
            $parent_id = $page_query->ID;
            $parent_title = $page_query->post_title;
    
            // if ($wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = '$parent_id' AND post_status != 'attachment'")) {
            if ($wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = '$parent_id' AND post_type != 'attachment'")) {
        ?>
        <div id="subnav">
          <ul>
            <div><?php wp_list_pages('sort_column=menu_order&depth=1&title_li=&child_of='. $parent_id); ?>&nbsp;</div>
          </ul>
        </div><!-- /sub nav -->
        <?php } } ?>
  14. Detective
    Member
    Posted 5 years ago #

    You must change the following line:
    if (is_page() and ($notfound != '1'))

    into the following:
    if (!is_user_view() and is_page() and ($notfound != '1'))

    If this works for you, please don't forget to mark this topic as resolved (and if you find the plugin useful, to rate it) :)

  15. Chris Andersen
    Member
    Posted 5 years ago #

    Hi Detective,
    the very first step (display users & profile) is done. Thanks so much. I hope you also support me to setup a good El Aleph running system like your examples - thinking... El Aleph has a lot of potential and could be my no. 1 plugin.

  16. Chris Andersen
    Member
    Posted 5 years ago #

    ... and I rated it awesome 'cause of the big potential... hoping it will turn out for me ;-)

  17. Viktor Chagas
    Member
    Posted 5 years ago #

    hello, I have another question: how do I exclude admin from my user list with El Aleph???

    thanks in advance!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags