Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,201 through 14,225 (of 32,519 total)
  • Author
    Search Results
  • #134711
    barrowr
    Participant

    Thanks Robin.

    If I hide author within the widget options it hides the avatar too, so I can’t go down that route.

    Looked at the coded and I have been amending the lines at 798. Unfortunately no being too php savvy I can’t fathom which part is related to the avatar and the author link. Removing the line removes the avatar and the link. I could do with knowing which part of the code relates to which function.

    Thanks again

    #134710
    sashabenson
    Participant

    Hi there! I really need some help with finding some shortcode for a custom wordpress page. I need to display a post count by a user. I have been searching for days and I cannot get anything to work. Any help you can give me would be most appreciated!

    #134708
    redknite
    Participant

    i can’t seem to get this to work… so it’s supposed to look like this?:

    <?php do_action( 'bbp_theme_before_reply_author_details' ); ?>
    $user = get_userdata( bbp_get_reply_author_id() );
    if ( !empty( $user->user_nicename ) ) {
    $user_nicename = $user->user_nicename;
    echo “@”.$user_nicename;
    }
    <?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true ) ); ?>

    I get a parse error when i do this. What am i doing wrong?

    #134704
    ahammer
    Participant

    We would like to completely hide the freshness column throughout the forums. Could you please point me to other documentation or to the code to remove/hide freshness?

    WP version 3.5.1
    bbpress version 2.3.2
    http://www.swpp.org/forums

    Thanks

    #134699
    cscarnevale
    Participant

    Hi Linq and ianbee,

    What do I do with that code? Where do I paste it?

    Thanks, Chris

    #134698
    cscarnevale
    Participant

    Hi Linq and ianbee,

    What do I do with that code? Where do I paste it?

    Thanks,

    Chris

    #134696
    cscarnevale
    Participant

    Hi Linq and ianbee, What would I do with that code? Where would I put it?

    Thanks.

    Rami
    Participant

    I’m trying to add a Twitter share button in the loop-single-reply.php so the button appears before each reply’s content:

    …….
    <?php do_action( ‘bbp_theme_before_reply_content’ ); ?>
    **** [HERE the twitter share button code] *****
    <?php bbp_reply_content(); ?>
    ……….

    using the Twitter data-url parameter as: data-counturl=”<?php echo bbp_get_reply_url(); ?>

    PROBLEM=SHARE WORKS+COUNTER DOESN’T: The button is sharing the page but not COUNTING. I tried to check everything around the twitter button, but I want to ask for your help in case the place and data-counturl is not correct for BBPRESS.

    Please help!

    Thanks
    Ramiro.

    #134674

    In reply to: Filter Breadcrumbs

    Shmoo
    Participant

    If the link will always be the same you can remove the Root and manually add a custom one.

    This is default.
    <?php bbp_breadcrumbs(); ?>

    Remove the Root.
    <?php bbp_breadcrumbs( array( 'include_home' => false ) ); ?>

    Than add your custom link before the Breadcrumbs tag.
    <a href="google.com">Google</a> <?php bbp_breadcrumbs( array( 'include_home' => false ) ); ?>

    Something like that ?

    #134669
    Shmoo
    Participant

    Sorry, I need to close a few Tabs in my editor because I was looking inside the wrong template.

    This gets the login form.
    <?php bbp_get_template_part( 'form', 'user-login' ); ?>

    And of course that file is located where it should be:

    wp-content / plugins / bbpress / templates / default / bbpress / form-user-login.php

    Duh, stupid me!

    #134668
    Shmoo
    Participant

    Just curious,

    When I sneakpeak in the ShortCode section I notice you can call the login form by.

    <?php bbp_get_template_part( 'form', 'topic' ); ?>

    This works great inside my templates and the bbPress login form pop’s up where I need him to be.

    View post on imgur.com

    But now I need to add some classes for CSS reasons and I wandering where I can find the code-snippet of the default form used.

    ?

    #134657
    sublbc
    Participant

    Hey all, i run this site, and im determined that it should all be ran by wordpress, its all going great etc. But, as soon as i installed my forum, i see that it uses this ugly style, with background color etc.

    What id really like is no shadow on the text, no background, small border around the different forums and thats pretty much it.

    Heres before: http://puu.sh/32WkF.png
    Heres how i want it to be: http://puu.sh/32Wpf.png

    I hope you understand my problem :/
    Ive read this http://codex.bbpress.org/step-by-step-guide-to-creating-a-custom-bbpress-theme/ but i cant seem to find the necessary files.

    I hope you can help me out 🙂

    #134654
    Robin W
    Moderator

    Sorry was being thick and quoted the code for the login display.

    Having had a look at the widget, there is an option in the recent topics widget itself to hide author ie when you add the widget to a sidebar, you get options for no. posts to show, show author, show date etc. – does that not work?

    That links to line 798 in the widgets php, so there would be you next step.

    #134653
    Robin W
    Moderator

    https://bbpress.org/forums/topic/include-mention-in-bbp_get_reply_author_link-function-args/

    #134649
    Shmoo
    Participant

    Go to the next path.

    wp-content / plugins / bbpress / templates / default / bbpress / content-archive-forum.php

    Copy the BOLD file into your Theme folder inside a new folder called [ bbpress ]

    Like this:

    wp-content / themes / [ your-theme-name ] / bbpress / content-archive-forum.php

    Open the new ‘ content-archive-forum.php ‘ file and remove the following lines of code and save the changes.

    
    <div class="bbp-search-form">
    
    	<?php bbp_get_template_part( 'form', 'search' ); ?>
    
    </div>
    
    
    #134645

    In reply to: Login Widget

    Shmoo
    Participant

    You can find the Widgets of bbPress right here.

    wp-content / plugins / bbpress / includes / common / widgets.php

    Thats the file you need to have. By default I don’t think you can drag your Widget-code out of there and start using it inside any other WP project. You probably have to add and redesign it to make it work.

    Shmoo
    Participant

    I just deleted my previous work where I had grouped all my forums inside Categories and made all forums solo – no parent Forums anymore.

    The only question I have is how do I manually query for forums based on ID’s.

    On the forums-archive template ( forums index ) I would like to group all my forums manually together, fake ‘categories’ I will make of static HTML inside the archive-template and now i’m only searching for a piece of code how to list them.

    Lets say:

    Name fake cat. in HTML
    – (forum_id = 23) forum_name – topics – replies
    – (forum_id = 37) forum_name – topics – replies
    – (forum_id = 15) forum_name – topics – replies

    I wished this would work..

    
    <?php if ( bbp_has_forums( array( 'forum_id' => 23 ) ) ) : ?>
    <?php bbp_get_template_part( 'loop', 'forums' ); ?>
    <?php endif; ?>
    
    #134638
    axeleus
    Participant

    After installing the plugin and view the topics, found in the Error Console

    Error: TypeError: $(...).on is not a function
    Source: /wp-content/plugins/bbpress/templates/default/js/topic.js?ver=2.3.2
    Line: 22

    Fixed bug with changing the .on to .live at line 22 and 27

    #134634
    barrowr
    Participant

    Hi Robin,

    Thanks for the advice. I tried that and it had no effect. I actually commented that whole section as a test and no change. Is this the right code snippet to make this change?

    Thanks

    Rob

    #134629
    Shmoo
    Participant

    Tried this but it doesn’t work..

    
    <?php
    if ( is_singular( bbp_get_forum_post_type() ) || bbp_is_query_name( 'mac' ) ) {
    	include(TEMPLATEPATH.'/page-one.php');
    }
    else {
    	include(TEMPLATEPATH.'/page-two.php');
    }
    ?>
    
    #134628
    Shmoo
    Participant

    Just test this..

    Copy the following file into your Twenty Ten Theme folder.

    wp-content/plugins/bbpress/extras/archive-forum.php

    And inside that file delete this line <?php get_sidebar(); ?>
    Hope that gives you an idea.

    #134625
    canutedechou
    Participant

    Wow. it works
    When i put the embeb code it shows the player
    But with the wordpress code wich soundcloud gives you it doesnt
    I update to the latest wordpress version coss i read that there was a better soundcloud integration, but that code in particular doesnt work.
    But, the fact that embeb code does work is a great advance
    im gonna see how to enable wordpress code
    thanks a lot!

    #134609

    Topic: Forum URL's

    in forum Troubleshooting
    mistincat
    Participant

    Hi,

    I have my forum index pasted into a page via the shortcode, this page displays fine.

    My structure look like this:

    mysite.com/community/

    The “community” page is one that has a fair bit of styling.

    When i click on a forum to read, for example “rules” i get redirected to a crazy URL which looks something like:

    mysite.com/forums/forum/rules/

    How can i change it to, for example: mysite.com/commuinty/rules/

    Thanks.

    #134605
    drobato
    Participant

    I’m running wordpress 3.5.1 and bbpress 2.3.2. I’m having difficulty viewing/editing a users profile.

    When you click on the name of the person who started a topic, or on your own “Edit Profile” link, the site “spins” for quite awhile then displays a very large page that has a large number of that users profile displayed over and over again. If I click on one of the links in any of the profiles…like “Topics Started” all is well. I get the users profile with a list of the topics they have started to the right of it.

    It’s just the first link that has the problem. It looks like thte code is caught in an infinite loop that just keeps returning the users profile over and over again.

    I’m wondering if it could be the bbpress.php file causing the problem. I thought I had the default version with a few things commented out. Here’s what I have:

    <?php 
          get_header();
    ?>
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    		<div class="post" id="post-<?php the_ID(); ?>">
    
    			<h1><?php the_title(); ?></h1>
    
    			<?php // include (TEMPLATEPATH . '/inc/meta.php' ); ?>
    
    			<div class="entry">
    
    				<?php the_content(); ?>
    
    				<?php wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); ?>
    
    			</div>
    
    			<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    
    		</div>
    		
    		<?php // comments_template(); ?>
    
    		<?php endwhile; endif; ?>
    
    <?php //get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Thanks in advance.

    #134563

    In reply to: Allow HTML from users

    Hansaplastique
    Participant

    Thanks Jared – I very much appreciate the link. Works like a charm! 🙂

    Minor issue with the code: it is missing “function” in front of the “ja_filter_bbpress_allowed_tags” definition.

Viewing 25 results - 14,201 through 14,225 (of 32,519 total)
Skip to toolbar