Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,201 through 14,225 (of 32,503 total)
  • Author
    Search Results
  • 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.

    #134555

    In reply to: Allow HTML from users

    If you need to alter the tags allowed, see this code snippet:

    Modify/change the default allowed tags for bbPress

    That should get you started.

    #134544
    Robin W
    Moderator

    Think you just need to comment out line 143 of widgets.php
    <h4><?php bbp_user_profile_link( bbp_get_current_user_id() ); ?></h4>

    Then the avatar will show but not the name.

    Line 142 has the avatar code, so you can just use that where you need to put the avatar.

    #134542

    In reply to: Allow HTML from users

    Hansaplastique
    Participant

    Thanks Jared, I appreciate you taking the time to reply …

    My question remains how do I correctly add style or class to the allowed tags without modifying the actual formatting.php file 🙁

    #134541

    In reply to: Allow HTML from users

    @hansaplastique Images can already be added. In your case you just need to add style to the approved attributes for the img tag.


    @tbermudas
    bbPress supports oembed (assuming you have it turned on in the settings) just like WordPress. So all you need to do is post the URL of the video (don’t link it) and it should automagically embed it.

    #134520
    csburdick
    Participant

    Hi there, I just upgraded my theme and bbPress (from old to current versions,) and after hours of reconfiguring, I have nearly everything in place. Except…

    On my Forums page (http://www.trianglezclub.com/forums/), I’m using the shortcode [bbp-forum-index] to display the list, and for some reason there’s a weird search box appearing above everything on that page.

    [bbp-forum-index] is the only thing I have in the editor for that page.

    Thanks for any help!

    Rami
    Participant

    Hello guys,

    WHAT I WOULD LIKE TO DO 🙂
    =======================

    Add facebook/twitter buttons in the [bbp-topic-index] (for each topic in the table) and then in the topic itself (when you are reading the topic, let’s say above the title)

    WHAT I TRIED WITH NO SUCCESS 🙁
    ============================

    e.g. I embedded the facebook in loop-topics.php (quite don’t remember the file name, it’s the one doing the topics index) and the buttons are correctly positioned for each topic, but the TOPIC SHOWS THE PAGE SOCIAL COUNT, in other words, each topic in the index shows the same count, the page count.

    HELP! – hooks? guides? example?
    ================================

    I read in other post (tags jetpack social?) a mention from John (bbPress) about hooking bbp_get_topic_content and bbp_get_reply_content, I have no idea what does hook mean. Has anybody implemented social buttons or could guide us on what to explore to do it ourselves?

    That would be amazing for many.

    cheers
    Ramiro.

    #134498

    Not enough information to help really. I don’t see any actual useful error message, though it looks like your page output halts in bbPress’s breadcrumb. You’ll need to look through your output, do some searching through the code, and debug what’s going on.

    Start here: https://codex.wordpress.org/Debugging_in_WordPress

    #134496

    There are too many unknowns. Try installing the Debug Bar plugin, and read up about debugging your installation here: https://codex.wordpress.org/Debugging_in_WordPress

    #134494

    Hmm, first of all the bbPress stylesheet shouldn’t be loading on sites that do not have bbPress activated. If it is, then there is a problem some where, because it shouldn’t be.

    If you want to customize the bbPress CSS, you’ll want to:

    Copy:

    wp-content/plugins/bbpress/templates/default/css/bbpress.css

    to:

    wp-content/themes/[YOUR-THEME]/css/bbpress.css

    When bbPress runs, it will load your theme’s bbpress.css instead of it’s own.

    #134488

    You should be resetting the width on #container, not .post.

    #134486
    Abberz
    Participant

    It should but then again some themes aren’t compatible with bbpress what I do is I use custom pages with the shortcodes that way I know it displays right

    #134478
    #134468
    saracup
    Participant

    I have a multi-site installation of WordPress. I have created a local bbpress stylesheet in my theme that I want to load ONLY if the site administrator has activated the bbpress plugin. I am unclear on the conditional statement (e.g., “if(function_exists..”) to accomplish this as I do with other plugins that are optional. I have tried the following in my functions.php file but it throws an error. Please advise:

    <?php 
    //Load the bbpress styles if bbpress is installed //
    if (class_exists( 'bbPress' ) ) {
    ?>
    <link rel="stylesheet" id="bbpress_style" href="<?php echo get_stylesheet_directory_uri(); ?>/bbpress.css" type="text/css" media="screen" />
    <? } ?>

    Any input would be appreciated. Thank you!

    #134467
    oskarlin
    Participant

    I’m looking for a widget or a php funcion for listing latest replies including latest topics width its topic text.

    Because of limited space I don’t want two separate listings for recent created topics and then recent replies. For me the topic text is also some kind of reply to the topic title.

    #134399
    Stephen Edgar
    Keymaster

    It is indeed, just follow the instructions via the docs 🙂

    https://codex.bbpress.org/bbpress-in-your-language/

    #134395
    guylabbe
    Participant

    Hi,
    This seems very simple to do but I couldn’t get it working. I want the default bbpress theme but wrapped with my theme.

    I added the CSS file in my theme and I added a forum index shortcode in the main forum page. Right now the forum index renders OK (the forum index is the content, everything is correctly wrapped by my theme, interpreted by page.php I guess).

    But as soon I get to a topic page, it’s the single.php or page.php that is used, without any bbpress template file (no breadcrumbs, etc., there is only the post).

    I don’t want to customize bbpress, just want the bbpress template to appear in my theme content templates. Any way to do this easily? I would like to avoid customize all pages one by one and keep built it theme integrity…

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