Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,226 through 14,250 (of 32,519 total)
  • Author
    Search Results
  • #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
    egonitron
    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…

    #134382

    In reply to: Allow HTML from users

    Earthman Media
    Participant

    I am having this problem with span and p tags showing up as code in the posts, after the latest update.

    I tried your advice above and added the following function, but it did not work (p and span tags are still showing, not parsing as html).

    Any advice would be greatly appreciated, please. A screenshot of the output can be viewed here: http://screencast.com/t/CKTLbqHVb

    
    
    add_action( 'bbp_kses_allowed_tags','pyg_kses_allowed_tags',999,1);
    function pyg_kses_allowed_tags($input){
    	return array(
    
    			// paragraphs
    		'p' => array(
    			'style'     => array()
    		),
    		'span' => array(
    			'style'     => array()
    		),
    
    		// Links
    		'a' => array(
    			'href'     => array(),
    			'title'    => array(),
    			'rel'      => array()
    		),
    
    		// Quotes
    		'blockquote'   => array(
    			'cite'     => array()
    		),
    
    		// Code
    		'code'         => array(),
    		'pre'          => array(),
    
    		// Formatting
    		'em'           => array(),
    		'strong'       => array(),
    		'del'          => array(
    			'datetime' => true,
    		),
    
    		// Lists
    		'ul'           => array(),
    		'ol'           => array(
    			'start'    => true,
    		),
    		'li'           => array(),
    
    		// Images
    		'img'          => array(
    			'src'      => true,
    			'border'   => true,
    			'alt'      => true,
    			'height'   => true,
    			'width'    => true,
    		)
    		
    		
    	);
    }
    
    #134376
    chuckingit
    Participant

    Hi – i just wanted to follow up with a recent workout of success in that David Chandra over at ThemeHybrid.com posted a thread that helped me greatly to get bbPress working 100% beautiful with my Shell child theme thus share as follows in case this helps …

    turns out that not only were my default forum and topics permalinks blown out, but also so were the author and topic tag defaults — meaning if i was in a forum and clicked a forum tag or a forum author, i would get a forum page that did not look like a forum but a generic blog post …

    so i ended up creating four custom child theme bbPress files and placed them in a bbpress sub directory off my child theme root … the four files were archive-forum.php, archive-topic.php, single-user.php, and taxonomy-topic-tag.php … i found that these four files worked if placed in my child theme root or if placed in my child theme bbpress sub folder but thought it best to keep in bbpress sub folder …

    the whole wierd bbPress create a topic form thing went away too given David Chandra’s approach … which was to use replace the child theme shell_get_atomic_template section with the bbp_get_template_part (see his example below) …

    BIG kudos to WP community of forums and those who share … viva the bb’s 🙂 cordially, chuck scott

    ==============
    From this post David Chandra wrote -> http://themehybrid.com/support/topic/shell-bug-with-bbpress-forum-index-page#post-79074

    you can just use bbp_get_template_part to replace shell_get_atomic_template.

    1. create archive-forum.php in child theme,
    2. copy the content of index.php from shell theme to your child theme
    3. change shell_get_atomic_template( ‘content’, true ); with bbp_get_template_part( ‘content’, ‘archive-forum’ );

    if you need to modify the default bbpress template bbpress content-archive-forum.php you can copy the files from wp-content\plugins\bbpress\templates\default\bbpress and add it in your child theme in bbpress folder.

    for example you can add it in your-child-theme/bbpress/content-archive-forum.php, you can copy and files in wp-content\plugins\bbpress\templates\default\bbpress in your child theme if you need to override it and load it using bbp_get_template_part(); function.

    i usually just copy everything to my child theme, but it’s not really future proof, since bbpress tend to delete/add new functions in every release, so full bbpress template override might broke your site. just override the template you need to modify.

    your archive-forum.php in your child theme may be something similar to this:

    
    <?php
    /**
     * bbPress Archive Forum Template
     */
    get_header(); // Loads the header.php template. ?>
    
    	<?php do_atomic( 'before_content' ); // shell_before_content ?>
    
    	<div id="content">
    
    		<?php do_atomic( 'open_content' ); // shell_open_content ?>
    
    		<div class="hfeed">
    
    			<?php do_atomic( 'open_hfeed' ); // shell_open_hfeed ?>
    
    			<?php if (!is_singular() ){ shell_get_atomic_template( 'loop-meta' ); } // atomic context template, in "loop-meta" directory  ?>
    
    			<?php if ( have_posts() ) : ?>
    
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<?php bbp_get_template_part( 'content', 'archive-forum' ); ?>
    
    				<?php endwhile; ?>
    
    			<?php else : ?>
    
    				<?php get_template_part( 'loop-error' ); // Loads the loop-error.php template. ?>
    
    			<?php endif; ?>
    
    			<?php do_atomic( 'close_hfeed' ); // shell_close_hfeed ?>
    
    		</div><!-- .hfeed -->
    
    		<?php do_atomic( 'close_content' ); // shell_close_content ?>
    
    		<?php shell_get_atomic_template( 'loop-nav' ); // atomic context loop template, in "loop-nav" directory ?>
    
    	</div><!-- #content -->
    
    	<?php do_atomic( 'after_content' ); // shell_after_content ?>
    
    <?php get_footer(); // Loads the footer.php template. ?>
    
    #134367
    rxcosta
    Participant

    I found the following code being suggested to remove the forum search bar:
    /*Remove forum search above forum */
    .bbp-search-form {
    display:none;
    }

    It works on some themes, but not my current theme at villagepca.org. Any other suggestions?

    Thanks!

    #134337
    beardydan
    Participant

    Hello again.

    New problem – the shortcode post now can’t be found externally, though weirdly, when I’m logged in, it works fine.

    Be grateful for any thoughts.

    thanks
    dan

    #134335

    Topic: Latex in topics

    in forum Plugins
    Asif Somy
    Participant

    I tried many latex plugins but they work with normal posts and pages. I want to use latex code in topics and forums.

    Wordpress Version 3.5.1
    bbPress Version 2.3.2

    #134332
    fuseful
    Participant

    In my forum here http://systemsfortraders.com when I insert the short code bbp-topic-tags it works fine – As you can see it displays my tag cloud but when I click on one I get an error – e.g. http://systemsfortraders.com/forums/topic-tag/infographics/

    Please can someone help here ?

    #134331
    beardydan
    Participant

    Hi everyone

    I’m one of those novice newbies i’m afraid.
    Trying to create a simple forum site.
    Have selected great theme – Spun
    Using bbPress as forum plugin.
    When I redirect the permalink for post selected to contain the forum I get this view: but when I use the shortcode for the forum index it displays just as I’d like Though this isn’t navigable.

    It looks to me like it’s trying to fit the forum in one column. Could anyone tell me what code I’d need to create what I see using the shortcode on the /forums page so it’s usable? Or is there a way of running the forums using the shortcodes?

    Many thanks

    #134323
    fencer_x
    Participant

    It’s possible, and you probably could’ve found it with some searching, like I did: https://bbpress.org/forums/topic/bbpress-2-plugin-forum-order-doesnt-work-not-appearing-in-correct-order/#post-112828

    The file that’s referenced isn’t in the same place anymore–I believe it’s in plugins/bbpress/includes/forums/template-tags.php these days.

    Keep in mind it’ll get written over with the original code with each update, though.

    jrman
    Participant

    I don’t know if this is possible, but I was wondering if there was some way to automatically “close” or “hide” threads/posts after a certain period of time with no activity. I currently have about 8 pages of threads/topics on my site, sorted by freshness, and some of the older ones haven’t had a new comment/post in over a month.

    Instead of manually closing or trashing all of the older posts, I would love it if there was a piece of code that would automatically do that.

    *I found a way to do this by age of the topic, but not by freshness.

    (All up-to-date)
    Wordpress 3.5.1
    bbPress 2.3.2
    BuddyPress 1.7.1

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