Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum theme not working…

  • @cybarmitzvah

    Participant

    Thanks Stephen Edgar for the help, in request by him, I am posting this here and starting this new topic:

    disable front end editing

    So basically on the forum, when someone clicks edit my profile at the top of the page, it goes to the backend. Even though, it would be preferable to go to the front end. Currently, the only way a user can go to the front end is by clicking their name next to a post or in a topic/replies sequence.

    I am using the mesocolumn theme and am new to wordpress. site: http://www.astronomertalk.com

    I also moved template-full-width.php, to my child theme, and called it bbpress.php. After doing this, nothing has changed except now the forum specific sidebar, that came with the theme, does not show up.

    Source code from bbpress.php:

    <?php
    /*
    Template Name: Full Width
    */
    ?>
    
    <?php get_header(); ?>
    
    <?php do_action( 'bp_before_content' ); ?>
    <!-- CONTENT START -->
    <div class="content full-width">
    <div class="content-inner">
    
    <?php do_action( 'bp_before_blog_home' ); ?>
    
    <!-- POST ENTRY -->
    <div id="post-entry">
    <section class="post-entry-inner">
    
    <?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
    
    <article <?php post_class('post-single page-single'); ?> id="post-<?php the_ID(); ?>">
    
    <h1 class="post-title entry-title"><?php the_title(); ?></h1>
    
    <div class="post-content">
    <div class="entry-content"><?php the_content( __('...Continue reading', TEMPLATE_DOMAIN) ); ?></div>
    <?php wp_link_pages('before=<div id="page-links">&after=</div>'); ?>
    
    </div><!-- POST CONTENT END -->
    
    </article>
    
    <?php endwhile; ?>
    <?php comments_template(); ?>
    <?php else : ?>
    <?php get_template_part( 'lib/templates/result' ); ?>
    <?php endif; ?>
    
    </section>
    </div>
    <!-- POST ENTRY END -->
    
    <?php do_action( 'bp_after_blog_home' ); ?>
    
    </div><!-- CONTENT INNER END -->
    </div><!-- CONTENT END -->
    
    <?php do_action( 'bp_after_content' ); ?>
    
    <?php get_footer(); ?>

    Thank You,
    JB

Viewing 15 replies - 26 through 40 (of 40 total)
  • @cybarmitzvah

    Participant

    naa stil did not work.

    Hopefully Robin will be on tomorrow.

    @robkk

    Moderator

    @cybarmitzvah

    so it still goes to the backend?

    also list all of your plugins

    @robin-w

    Moderator

    Robin is busy showing pigs at an agricultural show.

    As far as I can see you’re making good progress with Rob.

    naa stil did not work.

    What did not work, you’ve now lost the toolbar and got profile edit? But just in the footer as well?

    Can we have a summary of what your remaining issue is?

    @cybarmitzvah

    Participant

    Ok, let me be more clear.

    #1, I want the edit profile button to appear in the far right of the menu, which would be the top right of the site.

    #2, get the edit profile button out of the footer.

    #3, The edit profile button does not like to anyones profile, it gets a 404 error.

    #4, get the edit profile button to look more like this sites, like where its the username with their picture and a drop down menu appears when you hover over it.

    @robkk

    Moderator

    @cybarmitzvah

    make an account for me then ill get #1 , #2 and #3 real quick.

    @robkk

    Moderator

    okay heres how to get full width

    this should be your bbpress.php in your child themes root directory wp-content/awesome/bbpress.php

    you can also remove the css that i gave you from this topic

    Hide author/admin

    since i removed the post author info in the template.

    <?php get_header(); ?>
    
    <?php do_action( 'bp_before_content' ); ?>
    <!-- CONTENT START -->
    <div class="content">
    <div class="content-inner">
    
    <?php do_action( 'bp_before_blog_home' ); ?>
    
    <!-- POST ENTRY END -->
    <div id="post-entry">
    <section class="post-entry-inner">
    
    <?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
    
    <!-- POST START -->
    <article <?php post_class('post-single page-single'); ?> id="post-<?php the_ID(); ?>">
    
    <h1 class="post-title entry-title"><?php the_title(); ?></h1>
    
    <?php do_action( 'bp_before_page_content' ); ?>
    <div class="post-content">
    <div class="entry-content"><?php the_content( __('...more &raquo;',TEMPLATE_DOMAIN) ); ?></div>
    <?php wp_link_pages('before=<div id="page-links">&after=</div>'); ?>
    </div>
    <?php do_action( 'bp_after_page_content' ); ?>
    
    </article>
    <!-- POST END -->
    
    <?php endwhile; ?>
    
    <?php else : ?>
    
    <?php get_template_part( 'lib/templates/result' ); ?>
    
    <?php endif; ?>
    
    </section>
    </div>
    <!-- POST ENTRY END -->
    
    <?php do_action( 'bp_after_blog_home' ); ?>
    
    </div><!-- CONTENT INNER END -->
    </div><!-- CONTENT END -->
    
    <?php do_action( 'bp_after_content' ); ?>
    
    <?php get_footer(); ?>

    and heres some css

    .bbpress .content {
    	width: 100%;
    }

    this should get you full width

    @robkk

    Moderator

    to move the edit profile link right use this.

    replace the original edit profile code with this.

    // Filter wp_nav_menu() to add profile link
    add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' );
    function my_nav_menu_profile_link($menu) {  
        if (!is_user_logged_in())
            return $menu;
        else
            $current_user = wp_get_current_user();
            $user=$current_user->user_login ;
            $profilelink = '<li id="bbp-editpro"><a href="http://www.astronomertalk.com/forums/users/' . $user . '/edit">Edit Profile</a></li>';
            $menu = $menu . $profilelink;
            return $menu;
         
    }

    custom css

    #bbp-editpro {
    	float: right;
    }

    that should move it right.

    @robkk

    Moderator

    this should hide the edit profile link in the footer

    .footer-right #bbp-editpro {
    	display: none;
    }

    @cybarmitzvah

    Participant

    Hi Robkk,

    I tried making an account, but its hard because I cannot log out. Making an account takes like 10 seconds though.

    When I went to the backend to log out, and clicked it, heres what I got:

    Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-login.php on line 414
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-login.php on line 426
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 883
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 884
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 885
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 886
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 887
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 888
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 891
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 892
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 893
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 894
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 897
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 898
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 899
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 900
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 1121

    Pretty crazy.

    Ok, so your code solved moving the edit profile button to the far right, and removed it from the footer, yet all the above problems still remain.

    If you send me an email at astronomertalk@gmail.com, or make an account on Astronomertalk.com list your email or something, I can probably give u the FTP info and you can experiment with it.

    TY,
    JB

    @robkk

    Moderator

    Ok, so your code solved moving the edit profile button to the far right, and removed it from the footer, yet all the above problems still remain.

    I probably dont need an account anymore, and im not going to experiment with your site with ftp.

    The other error your getting your going to have to contact your theme developer so they can see whats up with your theme.

    Tell me the url you get when you get the 404 on the edit profile link.

    @cybarmitzvah

    Participant

    Tell me the url you get when you get the 404 on the edit profile link.

    http://www.astronomertalk.com/forums/users/veghar123/edit

    @robkk

    Moderator

    thats weird its part of your directory in your root installation.

    like on that error

    /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php

    the url should have had the current logged in user , like your the admin so it should be

    http://www.astronomertalk.com/forums/users/admin/edit

    @cybarmitzvah

    Participant

    send me an email at astronomertalk@gmail.com, Ill let you get on the backend. Just somehow prove the email is yourself, maybe include a screenshot of the backend of your profile on this site, which only you can access.

    @robkk

    Moderator

    posting this so you know its me who sent you that email.

    do i really have to have a picture??

    @marialuiza234

    Participant

    Yes your right

Viewing 15 replies - 26 through 40 (of 40 total)
  • You must be logged in to reply to this topic.
Skip to toolbar