Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 10,751 through 10,775 (of 32,521 total)
  • Author
    Search Results
  • #151379
    Stephen Edgar
    Keymaster

    Can you open up your Xenforum’s database in phpMyAdmin, open the forum table and take a screenshot and post it here please.

    (Your Xenforum’s forum table may include a prefix, in the screenshot below mine is xf_forum)

    It should look similar to mine here, I need to check that the table format matches what I am using.

    https://i.cloudup.com/mnIqTR-W8m.png

    #151378
    Stephen Edgar
    Keymaster

    Add the following to your functions.php file

    
    function custom_bbp_list_forums() {
      $args['separator'] = '<br />';
     
      return $args;
    }
     
    add_filter('bbp_before_list_forums_parse_args', 'custom_bbp_list_forums' );
    

    That will result in something like this, depending on your themes styles:

    #151377
    Stephen Edgar
    Keymaster

    Add the following CSS to your custom CSS and you should be good to go:

    #bbpress-forums span.bbp-author-ip {
    word-wrap: break-word;
    }
    

    I have added word-wrap: break-word; to bbPress CSS in #2675

    
    span.bbp-author-ip {
    	font-family: 'Helvetica Neue', Arial, Helvetica, 'Nimbus Sans L', sans-serif;
    	font-size: 11px;
    	font-weight: bold;
    	word-wrap: break-word;
    	color: #aaa;
    }
    
    #151373
    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

    #151370
    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.

    #151369
    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

    #151357
    Robkk
    Moderator
    .bbp-login-links a {
    font-size:14px;
    display:block;
    }
    #151356
    godavid33
    Participant

    I just installed the latest version of BP from the WP repo
    WP 3.9.2

    When I go to a buddypress group forum page, it says the forum is empty (which it is) and displays the new topic editor. I can’t fill out any post content for some reason though, the box is grayed out. The html doesn’t say it is disabled. If I click the “code” WYSIWYG button, I can then type but if I remove the tick marks I cannot once again. Title and tags are both completely working, though obviously I can’t create a topic because I cant add content….

    Help please πŸ™

    #151355
    Robkk
    Moderator

    try

    .bbpress #content {
    width:100%
    } 

    else try

    .bbpress #content .clearfix {
    width:100%
    }
    #151353
    Robkk
    Moderator

    this should hide the edit profile link in the footer

    .footer-right #bbp-editpro {
    	display: none;
    }
    #151351
    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.

    #151350
    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

    #151349
    Anonymous User
    Inactive

    bbpress/includes/topics/template.php

    #151343
    mouna84
    Participant

    Hi there,

    I’m using: wordpress version 3.9.2–de_DE
    bbpress version 2.5.4

    The site I need help with is: http://darjinan.com/forum/

    I deleted the sidebar by copying page.php and renaming it to bbpress.php. But I can’t figure out how to center my forum. Here’s the code:

    
    <?php 
    /**
     * Theme Page Section for our theme.
     *
     * @package ThemeGrill
     * @subpackage Accelerate
     * @since Accelerate 1.0
     */
    ?>
    
    <?php get_header(); ?>
    
    	<?php do_action( 'accelerate_before_body_content' ); ?>
    
    	<div id="primary">
    		<div id="content" class="clearfix">
    			<?php while ( have_posts() ) : the_post(); ?>
    
    				<?php get_template_part( 'content', 'page' ); ?>
    
    				<?php
    
    					do_action( 'accelerate_before_comments_template' );
    					// If comments are open or we have at least one comment, load up the comment template
    					if ( comments_open() || '0' != get_comments_number() )
    						comments_template();					
    	      		do_action ( 'accelerate_after_comments_template' );
    				?>
    			<?php endwhile; ?>
    
    		</div><!-- #content -->
    	</div><!-- #primary -->
    	
    	<?php /*accelerate_sidebar_select();*/ ?>
    
    	<?php do_action( 'accelerate_after_body_content' ); ?>
    
    <?php get_footer(); ?>
    
    

    Can someone please help me? I’m a complete newbie to html and css.
    Thank you.

    #151333
    Robkk
    Moderator

    will need that code, would appreciate it

    ill try it to find out.

    Darn, tell me any steps if you remember

    i didnt use much php

    #151330
    Robkk
    Moderator

    it didnt work for awhile on localhost , then i editing the href link to make it work.

    use 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><a href="http://www.astronomertalk.com/forums/users/' . $user . '/edit">Edit Profile</a></li>';
            $menu = $menu . $profilelink;
            return $menu;
         
    }
    #151329
    cybarmitzvah
    Participant

    it works now??

    yes

    ill test out that profile link ,

    if you think its social login , deactivate and see if robins profile link code works.

    still not working

    im sure its just positioning it with css , but hey it doesnt have to be floated right, not a big deal if it is or not.

    will need that code, would appreciate it πŸ™‚

    i just achieved this today. But it required a lot of work with my theme.

    Darn, tell me any steps if you remember

    TY
    JB

    #151328
    Robkk
    Moderator

    works not, I just did not have the <?php in my site.

    it works now??

    So I just added the code from Robin W’s link,

    however it does not work,

    ill test out that profile link ,

    if you think its social login , deactivate and see if robins profile link code works.

    Plus, I would prefer it to stay all the way to the right.

    im sure its just positioning it with css , but hey it doesnt have to be floated right, not a big deal if it is or not.

    Plus, preferably, look more like this sites, with the username and photo of the person logged in, in the top right.

    i just achieved this today. But it required a lot of work with my theme.

    #151327
    cybarmitzvah
    Participant

    So I just added the code from Robin W’s link,

    however it does not work,

    Layout and functionality – Examples you can use

    I get the edit profile button for logged in users, however, it does not link to their profile. Could it be that I am using social login.?

    Plus, I would prefer it to stay all the way to the right. Plus, preferably, look more like this sites, with the username and photo of the person logged in, in the top right.

    JB

    #151326
    cybarmitzvah
    Participant

    Nice!

    works not, I just did not have the <?php in my site.

    Robkk
    Moderator

    My goal is this: Attach BadgeOS rewards to users using specific words within forum posts;

    I feel like that is going to be a paid project

    http://jobs.wordpress.net/

    #1 outsourcing service for WordPress

    #151323
    sidelancer
    Participant

    Thanks a lot! Worked for me. I couldn’t find the code in bbpress to change the forum headings but your code worked right away.

    gxechidna
    Participant

    My goal is this: Attach BadgeOS rewards to users using specific words within forum posts; however I can’t find where I might be able to inject the code to search through the post text.

    Please be kind, any PHP knowledge I hold is self taught and filled with huge gaps. I know I’ll need to use “strpos” with the post text and an IF statement, but I’m just lost as to where in the plugin/theme code I need to use it.

    Thank you!

    #151318

    In reply to: Image click/resize

    Robkk
    Moderator

    was it just a link or using the img button ??

    example with img button

    #151317
    Robkk
    Moderator

    in my child theme i have one functions.php

    this is the entire code.

    <?php
    
    /* Add custom functions below */
    add_filter('show_admin_bar', '__return_false');
Viewing 25 results - 10,751 through 10,775 (of 32,521 total)
Skip to toolbar