Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,076 through 14,100 (of 32,503 total)
  • Author
    Search Results
  • ovizii
    Participant

    These two are in need of a serious overhaul and I lack the skills to do it. Please read this text and let me know if you agree or if I’m looking for something nobody else needs?

    Lets look at the recent replies widget:
    If I have the widget show the last 10 replies, and the last 10 replies happened to be on the same topic, you only see that one topic, everything else is drowned out.
    The good thing is, if I click on a reply, I jump straight to that reply, not to the beginning of the topic.

    Lets look at the recent topics widget:
    Sorting by newest topics, this is pretty neat but I wish one could also show the specific forum with each recent topic shown. Clicking a topic sends you to the beginning of that particular topic, which is cool, after all its a new topic.

    Now to get what I was looking for with regards to the recent replies, I am now using the recent topics widget but sorted by topics with recent replies. Except that it doesn’t list the latest poster but the thread creator and it links to the topic’s beginning and not to the latest reply.

    I kinda feel we had a lot more power, plugins and extensibility with the old bbpress before version 2 came along.

    Unfortunately, I’m not a coder so I can either wait until someone helps out or move to another solution.

    Any thoughts?

    #135324
    Mariusz Szatkowski
    Participant

    @baldg0at
    Your code does not work in functions.php
    It returns all the WP posts, not bbpress posts ;(
    Please help!

    #135306
    kathrynananda
    Participant

    it’s happening whether I use the built in forum space or same problem when i use a short code in the groups extras page.

    forums are loading fine when they are on single forum page, or short code calls them into a worpdress page.

    totally stumped.

    http://www.cielcolab.com

    dvclmn
    Participant

    Hey guys, thanks for taking the time to look after this.

    I know there are a lot of posts dedicated to vBulletin import issues, but after hours of searching I haven’t been able to find a resolution. Hoping you can help!

    I have read the known issues page (http://codex.bbpress.org/import-forums/vbulletin/) thoroughly and have made sure every detail is correct:

    Selected Platform: vBulletin
    Database Server: IP or hostname (in my case another-castle.com)
    Database Port Use default 3306 if unsure
    Database Name Name of the database with your old forum data
    Database User User for your database connection
    Database Password Password to access the database
    Table Prefix (in my case vb_)

    I just get ‘no forums/users/etc to convert’.

    No data is imported.

    I know that you can’t know if I’m getting a password or username wrong, but I am using the details I use to successfully log in to my server/phpMyadmin etc.

    I am in such urgent need of this to work that I am happy to pay for further support – whatever it takes. Please let me know if there’s any more information I can give to help this along.

    Thanks so much.

    Dave.

    #135299
    cappazushi
    Participant

    The best I can do is get the sidebar showing up underneath to forums.

    http://www.jrpgclub.com/forums/

    (I don’t think the sidebar will show up on any other pages in the forum section yet, as I have added the code into any other templates.)

    All I needed to do to get them to show was drop in:

    <?php get_sidebar(); ?>

    Correct positioning is a real hassle though. Can anyone help me? I’d very much appreciate it.

    #135287
    vogelsang
    Participant

    I am working on getting a drupal forum migrated to bbpress. I am using the bbpress importer tool. The forum I am migrating has about 4000 topics and 40000 replies. The migration works fine for a few topics, but seems to get stuck at random places after about a 1000 records are migrated. This makes me think that it is not a data problem. More likely some sort of timeout.

    Have any of you experienced something similar? I am running things locally with the most recent stable versions of WP and bbpress.

    Here is my script. It is not well-tested. Any suggestions for improvements are welcome and feel free to use it as part of bbpress in whatever way you feel like.

    
    <?php
    
    /**
     * Implementation of Drupal Forum converter.
     */
    class Drupal extends BBP_Converter_Base
    {
    	function __construct()
    	{
    		parent::__construct();
    		$this->setup_globals();
    	}
    
    	public function setup_globals()
    	{
    		/** Forum Section ******************************************************/
    
    		// Forum id. Stored in postmeta.
    		$this->field_map[] = array(
    			'from_tablename' => 'taxonomy_term_data', 'from_fieldname' => 'tid', //TODO correct ID??
    			'to_type' => 'forum', 'to_fieldname' => '_bbp_forum_id',
    		);
    		
    		// Forum parent id.  If no parent, than 0. Stored in postmeta.
    		//$this->field_map[] = array(
    		//	'from_tablename' => 'forum', 'from_fieldname' => 'parentid',
    		//	'to_type' => 'forum', 'to_fieldname' => '_bbp_parent_id'
    		//);
    		
    		// Forum title.
    		$this->field_map[] = array(
    			'from_tablename' => 'taxonomy_term_data', 'from_fieldname' => 'name',
    			'to_type' => 'forum', 'to_fieldname' => 'post_title'
    		);
    		
    		// Forum slug. Clean name.
    		$this->field_map[] = array(
    			'from_tablename' => 'taxonomy_term_data', 'from_fieldname' => 'name',
    			'to_type' => 'forum', 'to_fieldname' => 'post_name',
    			'callback_method' => 'callback_slug'
    		);
    		
    		// Forum description.
    		$this->field_map[] = array(
    			'from_tablename' => 'taxonomy_term_data', 'from_fieldname' => 'description',
    			'to_type' => 'forum', 'to_fieldname' => 'post_content',
    			'callback_method' => 'callback_null'
    		);
    		
    		// Forum display order.  Starts from 1.
    		$this->field_map[] = array(
    			'from_tablename' => 'taxonomy_term_data', 'from_fieldname' => 'weight',
    			'to_type' => 'forum', 'to_fieldname' => 'menu_order'
    		);
    		
    		// Forum date update.
    		$this->field_map[] = array(
    			'to_type' => 'forum', 'to_fieldname' => 'post_date',
    			'default' => date('Y-m-d H:i:s')
    		);
    		$this->field_map[] = array(
    			'to_type' => 'forum', 'to_fieldname' => 'post_date_gmt',
    			'default' => date('Y-m-d H:i:s')
    		);
    		$this->field_map[] = array(
    			'to_type' => 'forum', 'to_fieldname' => 'post_modified',
    			'default' => date('Y-m-d H:i:s')
    		);
    		$this->field_map[] = array(
    			'to_type' => 'forum', 'to_fieldname' => 'post_modified_gmt',
    			'default' => date('Y-m-d H:i:s')
    		);
    
    		/** Topic Section ******************************************************/
    
    		// Topic id. Stored in postmeta.
    		$this->field_map[] = array(
    			'from_tablename' => 'forum_index', 'from_fieldname' => 'nid',
    			'to_type' => 'topic', 'to_fieldname' => '_bbp_topic_id'
    		);
    		
    		// Forum id. Stored in postmeta.
    		$this->field_map[] = array(
    			'from_tablename' => 'forum_index', 'from_fieldname' => 'tid',
    			'to_type' => 'topic', 'to_fieldname' => '_bbp_forum_id',
    			'callback_method' => 'callback_forumid'
    		);
    				
    		// Topic author.
    		$this->field_map[] = array(
    			'from_tablename' => 'node', 
    			'from_fieldname' =>  'uid',
    			'join_tablename'  => 'forum_index',
    			'join_type'       => 'INNER',
    			'join_expression' => 'ON node.nid = forum_index.nid',
    			'to_type' => 'topic', 
    			'to_fieldname' => 'post_author',
    			'callback_method' => 'callback_userid'
    		);	
    
    		// Topic content.
    		// Note: We join the posts table because topics do not have content.
    		$this->field_map[] = array(
    			'from_tablename'  => 'field_data_body',
    			'from_fieldname'  => 'body_value',
    			'join_tablename'  => 'node',
    			'join_type'       => 'INNER',
    			'join_expression' => 'ON field_data_body.revision_id = node.vid', 			
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_content',
    			'callback_method' => 'callback_html'
    		);		
    				
    		// Topic title.
    		$this->field_map[] = array(
    			'from_tablename' => 'forum_index', 'from_fieldname' => 'title',
    			'to_type' => 'topic', 'to_fieldname' => 'post_title'
    		);
    		
    		// Topic slug. Clean name.
    		$this->field_map[] = array(
    			'from_tablename' => 'forum_index', 
    			'from_fieldname' => 'title',
    			'to_type' => 'topic', 
    			'to_fieldname' => 'post_name',
    			'callback_method' => 'callback_slug'
    		);
    		
    		// Forum id.  If no parent, than 0.	
    		$this->field_map[] = array(
    			'from_tablename' => 'forum_index', 'from_fieldname' => 'tid',
    			'to_type' => 'topic', 'to_fieldname' => 'post_parent',
    			'callback_method' => 'callback_forumid'
    		);
    
    		// Topic reply count
    		// $this->field_map[] = array(
    			// 'from_tablename'  => 'forum_index',
    			// 'from_fieldname'  => 'comment_count',
    			// 'to_type'         => 'topic',
    			// 'to_fieldname'    => '_bbp_reply_count'
    			// //,
    			// //'callback_method' => 'callback_topic_reply_count'
    		// );
    		
    		// Topic date update.
    		$this->field_map[] = array(
    			'from_tablename' => 'forum_index', 'from_fieldname' => 'created',
    			'to_type' => 'topic', 'to_fieldname' => 'post_date',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename' => 'forum_index', 'from_fieldname' => 'created',
    			'to_type' => 'topic', 'to_fieldname' => 'post_date_gmt',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename' => 'forum_index', 'from_fieldname' => 'last_comment_timestamp',
    			'to_type' => 'topic', 'to_fieldname' => 'post_modified',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename' => 'forum_index', 'from_fieldname' => 'last_comment_timestamp',
    			'to_type' => 'topic', 'to_fieldname' => 'post_modified_gmt',
    			'callback_method' => 'callback_datetime'
    		);
    
    		/** Tags Section ******************************************************/
    		
    		// Topic id.
    		// $this->field_map[] = array(
    			// 'from_tablename' => 'tagcontent', 'from_fieldname' => 'contentid',
    			// 'to_type' => 'tags', 'to_fieldname' => 'objectid',
    			// 'callback_method' => 'callback_topicid'
    		// );
    		
    		//Tags text.
    		// $this->field_map[] = array(
    			// 'from_tablename' => 'tag', 'from_fieldname' => 'tagtext',
    			// 'join_tablename' => 'tagcontent', 'join_type' => 'INNER', 'join_expression' => 'USING (tagid)',
    			// 'to_type' => 'tags', 'to_fieldname' => 'name'
    		// );		
    
    		/** Post Section ******************************************************/
    
    		// Post id. Stores in postmeta.
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 'from_fieldname' => 'cid',
    			'to_type' => 'reply', 'to_fieldname' => '_bbp_post_id'
    		);
    		
    		// Forum id. Stores in postmeta.
    		$this->field_map[] = array(
    			'from_tablename' => 'forum', 
    			'from_fieldname' => 'tid',
    			'join_tablename'  => 'comment',
    			'join_type'       => 'INNER',
    			'join_expression' => 'ON forum.nid = comment.nid',
    			'to_type' => 'reply', 'to_fieldname' => '_bbp_forum_id',
    			'callback_method' => 'callback_topicid_to_forumid'
    		);
    		
    		// Topic id. Stores in postmeta.
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 'from_fieldname' => 'nid',
    			'to_type' => 'reply', 'to_fieldname' => '_bbp_topic_id',
    			'callback_method' => 'callback_topicid'
    		);
    		
    		// Author ip.
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 'from_fieldname' => 'hostname',
    			'to_type' => 'reply', 'to_fieldname' => '__bbp_author_ip'
    		);	
    			
    		// Post author.
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 'from_fieldname' => 'uid',
    			'to_type' => 'reply', 'to_fieldname' => 'post_author',
    			'callback_method' => 'callback_userid'
    		);
    		
    		// Topic title.
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 'from_fieldname' => 'subject',
    			'to_type' => 'reply', 'to_fieldname' => 'post_title'
    		);
    		
    		// Topic slug. Clean name.
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 
    			'from_fieldname' => 'subject',
    			'to_type' => 'reply', 
    			'to_fieldname' => 'post_name',
    			'callback_method' => 'callback_slug'
    		);
    		
    		// Post content.
    		// Note: We join the posts table because topics do not have content.
    		$this->field_map[] = array(
    			'from_tablename'  => 'field_data_comment_body',
    			'from_fieldname'  => 'comment_body_value',
    			'join_tablename'  => 'comment',
    			// 'join_type'       => 'INNER',
    			'join_expression' => 'ON field_data_comment_body.entity_id = comment.cid',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_content',
    			'callback_method' => 'callback_html'
    		);	
    		
    		// Post content.
    		// BRUGES IKKE - SE OVENFOR
    		// $this->field_map[] = array(
    			// 'from_tablename' => 'post', 'from_fieldname' => 'pagetext',
    			// 'to_type' => 'reply', 
    			// 'to_fieldname' => 'post_content',
    			// 'callback_method' => 'callback_html'
    		// );
    		
    		// Topic id.  If no parent, than 0.
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 'from_fieldname' => 'nid',
    			'to_type' => 'reply', 'to_fieldname' => 'post_parent',
    			'callback_method' => 'callback_topicid'
    		);
    
    		// Topic date update.
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 
    			'from_fieldname' => 'created',
    			'to_type' => 'reply', 
    			'to_fieldname' => 'post_date',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 
    			'from_fieldname' => 'created',
    			'to_type' => 'reply', 
    			'to_fieldname' => 'post_date_gmt',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 
    			'from_fieldname' => 'changed',
    			'to_type' => 'reply', 
    			'to_fieldname' => 'post_modified',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 
    			'from_fieldname' => 'changed',
    			'to_type' => 'reply', 
    			'to_fieldname' => 'post_modified_gmt',
    			'callback_method' => 'callback_datetime'
    		);
    
    		/** User Section ******************************************************/
    
    		// Store old User id. Stores in usermeta.
    		// $this->field_map[] = array(
    			// 'from_tablename' => 'users', 'from_fieldname' => 'uid',
    			// 'to_type' => 'user', 'to_fieldname' => '_bbp_user_id'
    		// );
    		
    		// Store old User password. Stores in usermeta serialized with salt.
    		// $this->field_map[] = array(
    			// 'from_tablename' => 'users', 'from_fieldname' => 'pass',
    			// 'to_type' => 'user', 'to_fieldname' => '_bbp_password',
    			// 'callback_method' => 'callback_savepass'
    		// );
    
    		// Store old User Salt. This is only used for the SELECT row info for the above password save
    		// todo ???
    		//$this->field_map[] = array(
    		//	'from_tablename' => 'users', 'from_fieldname' => 'salt',
    		//	'to_type' => 'user', 'to_fieldname' => ''
    		//);
    				
    		// // User password verify class. Stores in usermeta for verifying password.
    		// $this->field_map[] = array(
    			// 'to_type' => 'users', 'to_fieldname' => '_bbp_class',
    			// 'default' => 'Vbulletin'
    		// );
    		
    		// // User name.
    		// $this->field_map[] = array(
    			// 'from_tablename' => 'users', 'from_fieldname' => 'name',
    			// 'to_type' => 'user', 'to_fieldname' => 'user_login'
    		// );
    				
    		// // User email.
    		// $this->field_map[] = array(
    			// 'from_tablename' => 'users', 'from_fieldname' => 'mail',
    			// 'to_type' => 'user', 'to_fieldname' => 'user_email'
    		// );
    		
    		// User homepage.
    		// $this->field_map[] = array(
    			// 'from_tablename' => 'users', 'from_fieldname' => 'homepage',
    			// 'to_type' => 'user', 'to_fieldname' => 'user_url'
    		// );
    		
    		// User registered.
    		// $this->field_map[] = array(
    			// 'from_tablename' => 'users', 'from_fieldname' => 'created',
    			// 'to_type' => 'user', 'to_fieldname' => 'user_registered',
    			// 'callback_method' => 'callback_datetime'
    		// );
    		
    		// User aim.
    		//$this->field_map[] = array(
    		//	'from_tablename' => 'users', 'from_fieldname' => 'aim',
    		//	'to_type' => 'user', 'to_fieldname' => 'aim'
    		//);
    		
    		// User yahoo.
    		//$this->field_map[] = array(
    		//	'from_tablename' => 'users', 'from_fieldname' => 'yahoo',
    		//	'to_type' => 'user', 'to_fieldname' => 'yim'
    		//);	
    	}
    	
    	/**
    	 * This method allows us to indicates what is or is not converted for each
    	 * converter.
    	 */
    	public function info()
    	{
    		return '';
    	}
    
    	/**
    	 * This method is to save the salt and password together.  That
    	 * way when we authenticate it we can get it out of the database
    	 * as one value. Array values are auto sanitized by WordPress.
    	 */
    	public function callback_savepass( $field, $row )
    	{
    		$pass_array = array( 'hash' => $field, 'salt' => $row['salt'] );
    		return $pass_array;
    	}
    
    	/**
    	 * This method is to take the pass out of the database and compare
    	 * to a pass the user has typed in.
    	 */
    	public function authenticate_pass( $password, $serialized_pass )
    	{
    		$pass_array = unserialize( $serialized_pass );
    		return ( $pass_array['hash'] == md5( md5( $password ). $pass_array['salt'] ) );
    	}
    
    }
    
    #135283
    eldesperado
    Participant

    Hello,
    – bbPress Version : 2.3.2
    – WordPress Version : 3.5.2
    – PHP/MySQL Version : PHP 5.3/MySQL 5.1
    – Theme : Twenty Twelve (modified)
    – website adress : local (127.0.0.1/etc …)

    I just discovered this extension by mordauk and I made some changes on it to display on a page WordPress, the profile page from bbPress.

    In includes/common/shortcodes.php :

    
    <em>/*line 92 :*/</em>
    			'bbp-profile-edit'     => array( $this, 'display_profile_edit'  ), // User Profile
    <em>/*lines 747 to 762 :*/</em>
    	 public function display_profile_edit() { 
     		 
     		                // Unset globals 
     		                $this->unset_globals(); 
     		 
     		                // Start output buffer 
     		                $this->start( 'bbp_profile_edit' ); 
     		 
     		                // Output templates 
     		                if ( is_user_logged_in() ) 
     		                        bbp_get_template_part( 'content', 'single-user'        ); 
     		 
     		                // Return contents of output buffer 
     		                return $this->end(); 
     	 
     	       } 

    My problem is that the profile page is displayed correctly, but none of the links work.
    Someone has an idea to solve this ?

    Thanks

    #135263

    In reply to: Where is my forum?

    m4j4
    Participant

    Hi, Trifon,

    I also have trouble installing bbpress in my WordPress.

    I do follow the instructions on https://codex.bbpress.org/getting-started-with-bbpress/

    1. I go to the Add plugin section.
    2. I find bbpress.
    3. I install it.
    4. I activate it (Here, when clicling the Activate button for the first time, the system says “You do not have the priviliges …”,, so I click the Activate button again and then it works. So I do manage to install bbpress. It is visible in the list of my plugins. Everything seems OK.)
    5. But the problem is that bbpress does not appear in Settings sections (menu of wordpress on the left). So I do not know how ta access it, work with it.

    I would be greatfull for some further instructions.

    #135260

    In reply to: Where is my forum?

    lornalily
    Participant

    Thanks so much Trifon,

    Hmmmm it seems you need to understand code to use this plugin.
    1. Should I put all of those codes in a page? (I bet I’m sounded very stupid)

    2. If I add the code to a page, and then adjust and create forums as per the getting started link – will they then all appear on the page?

    🙂

    #135257

    In reply to: Where is my forum?

    Anonymous User 5853594
    Inactive

    I suggest that you read up on the basics of bbPress in the documentation. A good place to start out for you would probably be here:
    https://codex.bbpress.org/getting-started-with-bbpress/

    Also, for showing the forums on a page, you could create a page and use the shortcodes to show the index and such. You’ll find the shortcodes here:
    https://codex.bbpress.org/shortcodes/

    #135244
    Sameer
    Participant

    @Rasheed you are great man, its working 🙂

    i was following the below links and i was just stuck ( it was not working)

    https://codex.bbpress.org/bbpress-in-your-language/
    http://www.anttivaihia.com/blog/2012/06/how-change-language-bbpress-20

    I think they should update the above contents to save others time as your solution works like charm 🙂

    Once again thanks you very much

    #135237
    apeedn
    Participant

    Hello,

    Thank you for this plugin that corresponds to our research, but we need your help Please!

    we would like to optimize the Forum for a Association students parents:
    – Topics that open directly into the forum instead of another page
    – How change the title of the forum in French (topics, freshness …)
    – We have a display problem when you click on the Member
    – How to organize different shortcodes?
    – We have a lot of square alone on the page … why?

    Is there any help for the French version 2.3.2 please?

    Thank you for your help (and sorry for our English!)

    WP 3.5.2
    BB Press 2.3.2
    http://www.ape-ecole-du-nord.com/forum/

    #135235
    Daniel Lemes
    Participant

    If there is anybody interested, i had the same problem with Origin. To solve, i edited the file breadcrumb-trail.php (bad idea, but i’m not using a child theme but a completely modified version of Origin). So, on line 450, we had before:

    /* Get the queried forum ID and its parent forum ID. */
    $forum_id = get_queried_object_id();
    $forum_parent_id = bbp_get_forum_parent( $forum_id );

    And now, working fine (exactly as John said here):

    /* Get the queried forum ID and its parent forum ID.  */
    $forum_id = get_queried_object_id();
    $forum_parent_id = bbp_get_forum_parent_id( $forum_id );

    Hope it helps.

    #135234
    Travis
    Participant

    Copy the template files to your themes root: https://codex.bbpress.org/theme-compatibility/

    #135233

    In reply to: Forums List

    Travis
    Participant

    Found answer in shortcodes: https://codex.bbpress.org/shortcodes/

    Daniel J. Lewis
    Participant

    I’m also interested in this, especially with allowing my forum members to use some BBcodes, like spoiler, b, i, and others. (I transitioned from a phpBB board, so I want to make a smooth transition for my users.)

    I’ve been looking for a plugin to do this, but haven’t found anything. I’m thinking of making a simple plugin to do this by popping up a window (via jQuery) that will take the content of their post editor and display it with my CSS and processing the shortcodes. It sounds easy to me, but I could be really wrong.

    b a
    Participant

    Hello,

    For now my query looks like this.

    global $wpdb;
    $myrows = $wpdb->get_results("
    	SELECT * 
    	FROM $wpdb->posts 
    	WHERE (post_type = 'reply' OR post_type = 'topic')
    	AND post_status = 'publish'
    	ORDER BY post_date DESC 
    	LIMIT 0, 15
    ");

    I made this at begining when just started developing project and now going to finish I want to make it more formal.

    I think I’m gonna go with “query_posts”, but I’m still wondering how to hide posts that normal user is restricted to view. I’m talking about forum visability
    Do I check user_can(moderate) and then two ways to query my post?

    Any suggestions?

    #135213
    Daniel J. Lewis
    Participant

    I figured this out. I had to add this in my bbpress_functions:

    function my_topic_class($classes) {
    	$classes[] = 'test-class';
    	return $classes;
    }
    add_filter( 'bbp_get_topic_class','my_topic_class' );
    #135212
    Daniel J. Lewis
    Participant

    How do we implement this? I tried replacing

    <ul id="bbp-topic-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>>

    with

    <ul id="bbp-topic-<?php bbp_topic_id(); ?>" <?php echo bbp_get_topic_class('test-class'); ?>>

    but the test class doesn’t show. I know I’m working with the right line of code because I can remove the class part altogether and see it removed from my site.

    #135199
    blg002
    Participant

    I want to add a line of text beneath the avatar and other info in each topic reply. I can just hardcode it into loop-single-reply.php (line 47ish). But I’m wondering how i could do this in my functions.php file, i imagine id have to hook into bbp_get_reply_author_link somehow.

    Zé Fontainhas
    Participant

    From https://bbpress.trac.wordpress.org/ticket/2151 ,here’s a quick hack to turn bbPress activity recording on, on sites that have the Discourage search engines option checked. Put this somewhere in functions.php or in your own plugin’s code:

    
    <?php
    
    add_filter( 'bbp_is_site_public', 'yourownprefix_enable_bbp_activity', 10, 2);
    
    function yourownprefix_enable_bbp_activity( $public, $site_id ) {
    	return true;
    }
    
    ?>
    
    #135189
    Marcin Biegun
    Participant

    1. create bbpress directory in your theme directory
    2. copy there loop-single-forum.php from /wp-content/plugins/bbpress/templates/default/bbpress
    3. add wherever you wish the image to appear:
    <?php echo get_the_post_thumbnail($post_id, 'full'); ?>

    #135179
    dtbaker
    Participant
    #135178
    ZebraW
    Participant

    In our website here: http://thehousingforum.com , we use the bbp-forum-index shortcode to list the forum boards. But we want the forum boards to show up more like they are here: http://www.swnk.org/forums/ , which is shows them in a vertical way with Topics, Posts etc. I’m assuming that you have to edit the CSS to do this? Any quick and easy solution? Thanks.

    #135175

    In reply to: Add forum roles

    blg002
    Participant

    For posterities sake, i think i figured this out thanks to this article. I was close just had few things I didn’t know about, hopefully I’m not doing anything too terrible.

    
    function add_custom_role( $bbp_roles ) {
      $bbp_roles['my_custom_role'] = array( 
        'name' => 'My Custom User',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants
      );
    
      return $bbp_roles;
    }   
    add_filter( 'bbp_get_dynamic_roles', 'add_custom_role', 1 );
    
Viewing 25 results - 14,076 through 14,100 (of 32,503 total)
Skip to toolbar