Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 2,301 through 2,325 (of 6,788 total)
  • Author
    Search Results
  • #162355
    Hunniemaid
    Participant

    Make a folder in your theme folder labeled “bbpress”. You will then want to go to /wp-content/plugins/bbpress/templates/default/bbpress and copy the reply-form.php and paste it into the bbpress folder you made in your theme folder.

    Open the file, scroll down towards the bottom, you will see where it says “You must be logged in”. Delete that section of code.

    <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
    		<div class="bbp-template-notice">
    			<p><?php is_user_logged_in() ? _e( 'You cannot reply to this topic.', 'bbpress' ) : _e( 'You must be logged in to reply to this topic.', 'bbpress' ); ?></p>
    		</div>
    	</div>
    
    Evan100
    Participant

    This had got my head spinning. I have a new bbpress install, and have set up a login widget with a ‘Lost Password’ URI. I’ve also got a lost password page, with the [bbp-lost-pass] shortcode.

    When I go direct to the page, or click on the lost password link, I can see only an empty input box, and a big ‘Reset My Password’ button. Do I have to do something else to set up the widget?

    The page contents are mostly hidden in the css. The legend (which says ‘Lost Password’) is disabled (bbpress.css):

    .bbp-login-form fieldset legend {
    	display: none;
    }

    And the label for the input box is hidden in the template (form-user-lost-pass.php):

    <label for="user_login" class="hide"><?php _e( 'Username or Email', 'bbpress' ); ?>: </label>

    So, presumably some JavaScript somewhere should magically make all this appear, but it’s not firing, or I’ve just messed up. Any ideas? Note that I also have a lost password form in Woocommerce, but disabling Woocommerce doesn’t affect this. Thanks.

    #162287
    tarnvogL
    Participant

    @Robkk

    it is not the fault of the child theme, I deactivated it and used the default twentyfourteen theme, without any modifications. The problem still remains.

    Maybe this information will help: In the backend, WordPress also displays all users in lower case letters. Do you think there is anything I can do to change this? Maybe it is not a problem of bbPress, but more an issue of WordPress..

    #162269

    Topic: force revision logs

    in forum Showcase
    GrantAdmin
    Participant

    Hi this is my first post here, I know my way around editing code but not a strong coder.

    I am wanting to edit bbpress so as to turn off the option for revision logs and have it as a default so all post edits must be recorded.

    Can anyone please guide me in doing this?

    I heave read around the forums and it seems everyone is wanting to do the opposite of this with their logs, but I need it as my wordpress/bbpress install is for official activities.

    thanks

    #162263
    Robkk
    Moderator

    @tarnvogl

    oh sorry i thought you meant make it all capital letters.

    There might be some PHP causing the issue that i cannot see

    i see that you have a child theme of twentyfourteen and by default the theme doesn’t have this.

    #162253
    Prabin
    Participant

    @robin-w, actually it was a theme issue.. I purchased the premium buddypress theme and it supported “Breadcrumb Trail” plugin by default. Then I hid the Breadcrumb trail via style.css i.e. “display:none” and installed new plugin ” Breadcrumb Everywhere”. It works now.

    “Breadcrumb Trail” plugin doesn’t work in my site for Group Breadcrumb .

    #162206
    tocpeople
    Participant

    Hi!

    This checkbox “Inform me about new topics via email” is always stay cheked.
    If I check it off, it’s checked again.

    If I try this code, it always be unchecked:
    function pw_bbp_auto_checK_subscribe( $checked, $topic_subscribed ) {
    if( $topic_subscribed == 0 )
    $topic_subscribed = false;
    return checked( $topic_subscribed, true, false );
    }
    add_filter( ‘bbp_get_form_topic_subscribed’, ‘pw_bbp_auto_checK_subscribe’, 10, 2 );

    But it must work properly: be unchecked for default, and user can check and uncheck it his self any time.

    Site: http://www.tocpeople.com/forum/
    with newest versions of WordPress and BBpress.

    #162190
    sammmmy
    Participant

    Hello,

    i want to import my WBB4 board to bbPress an with a custom importer.
    The “basic” importer is from inspirationally and i wanted to translate it to WBB4
    Now i have a error on line 311 and 312…
    (but i think there will be more 😀 )

    I really hope that someone understands my problem and could help.

    
    <?php
    
    /**
     * Implementation of Wotlab Burning Board v3.x Forum Converter.
     *
     * @since bbPress (r5104)
     * @link Codex Docs http://codex.bbpress.org/import-forums/burningboard
     */
    class wbb3 extends BBP_Converter_Base {
    
    	/**
    	 * Main Constructor
    	 *
    	 * @uses wbb3::setup_globals()
    	 */
    	function __construct() {
    		parent::__construct();
    		$this->setup_globals();
    	}
    
    	/**
    	 * Sets up the field mappings
    	 */
    	public function setup_globals() {
    
    		/** Forum Section *****************************************************/
    
    		// Forum id (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_board',
    			'from_fieldname'  => 'boardID',
    			'to_type'         => 'forum',
    			'to_fieldname'    => '_bbp_forum_id'
    		);
    
    		// Forum parent id (If no parent, then 0. Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_board',
    			'from_fieldname'  => 'parentID',
    			'to_type'         => 'forum',
    			'to_fieldname'    => '_bbp_forum_parent_id'
    		);
    
    		// Forum topic count (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename' => 'wbb1_board',
    			'from_fieldname' => 'threads',
    			'to_type'        => 'forum',
    			'to_fieldname'   => '_bbp_topic_count'
    		);
    
    		// Forum reply count (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename' => 'wbb1_board',
    			'from_fieldname' => 'posts',
    			'to_type'        => 'forum',
    			'to_fieldname'   => '_bbp_reply_count'
    		);
    
    		// Forum total topic count (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename' => 'wbb1_board',
    			'from_fieldname' => 'threads',
    			'to_type'        => 'forum',
    			'to_fieldname'   => '_bbp_total_topic_count'
    		);
    
    		// Forum total reply count (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename' => 'wbb1_board',
    			'from_fieldname' => 'posts',
    			'to_type'        => 'forum',
    			'to_fieldname'   => '_bbp_total_reply_count'
    		);
    
    		// Forum title.
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_board',
    			'from_fieldname'  => 'title',
    			'to_type'         => 'forum',
    			'to_fieldname'    => 'post_title'
    		);
    
    		// Forum slug (Clean name to avoid confilcts)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_board',
    			'from_fieldname'  => 'title',
    			'to_type'         => 'forum',
    			'to_fieldname'    => 'post_name',
    			'callback_method' => 'callback_slug'
    		);
    
    		// Forum description.
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_board',
    			'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' => 'wbb1_board',
    			'from_fieldname' => 'position',
    			'to_type'        => 'forum',
    			'to_fieldname'   => 'menu_order'
    		);
    
    		// Forum type (Forum = 0 or Category = 1, Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_board',
    			'from_fieldname'  => 'boardType',
    			'to_type'         => 'forum',
    			'to_fieldname'    => '_bbp_forum_type',
    			'callback_method' => 'callback_forum_type'
    		);
    
    		// Forum status (0=Open or 1=Closed, Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_board',
    			'from_fieldname'  => 'isClosed',
    			'to_type'         => 'forum',
    			'to_fieldname'    => '_bbp_status',
    			'callback_method' => 'callback_forum_status'
    		);
    
    		// Forum dates.
    		$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'  => 'wbb1_thread',
    			'from_fieldname'  => 'threadID',
    			'to_type'         => 'topic',
    			'to_fieldname'    => '_bbp_topic_id'
    		);
    
    		// Topic language (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_thread',
    			'from_fieldname'  => 'languageID',
    			'to_type'         => 'topic',
    			'to_fieldname'    => '_bbp_language',
    			'callback_method' => 'callback_topic_language'
    		);
    
    		// Topic reply count (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_thread',
    			'from_fieldname'  => 'replies',
    			'to_type'         => 'topic',
    			'to_fieldname'    => '_bbp_reply_count',
    			'callback_method' => 'callback_topic_reply_count'
    		);
    
    		// Topic total reply count (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_thread',
    			'from_fieldname'  => 'replies',
    			'to_type'         => 'topic',
    			'to_fieldname'    => '_bbp_total_reply_count',
    			'callback_method' => 'callback_topic_reply_count'
    		);
    
    		// Topic parent forum id (If no parent, then 0. Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_thread',
    			'from_fieldname'  => 'boardID',
    			'to_type'         => 'topic',
    			'to_fieldname'    => '_bbp_forum_id',
    			'callback_method' => 'callback_forumid'
    		);
    
    		// Topic author.
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_thread',
    			'from_fieldname'  => 'userID',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_author',
    			'callback_method' => 'callback_userid'
    		);
    
    		// Topic author ip (Stored in postmeta)
    		// Note: We join the 'wbb1_1_post' table because 'wbb1_1_thread' does not include author ip.
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_post',
    			'from_fieldname'  => 'ipAddress',
    			'join_tablename'  => 'wbb1_thread',
    			'join_type'       => 'INNER',
    			'join_expression' => 'USING (threadID) WHERE wbb1_post.postID = wbb1_thread.firstPostID',
    			'to_type'         => 'topic',
    			'to_fieldname'    => '_bbp_author_ip'
    		);
    
    		// Topic content.
    		// Note: We join the 'wbb1_1_post' table because 'wbb1_thread' does not include topic content.
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_post',
    			'from_fieldname'  => 'message',
    			'join_tablename'  => 'wbb1_thread',
    			'join_type'       => 'INNER',
    			'join_expression' => 'USING (threadID) WHERE wbb1_post.postID = wbb1_thread.firstPostID',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_content',
    			'callback_method' => 'callback_html'
    		);
    
    		// Topic title.
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_thread',
    			'from_fieldname'  => 'topic',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_title'
    		);
    
    		// Topic slug (Clean name to avoid conflicts)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_thread',
    			'from_fieldname'  => 'topic',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_name',
    			'callback_method' => 'callback_slug'
    		);
    
    		// Topic parent forum id (If no parent, then 0)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_thread',
    			'from_fieldname'  => 'boardID',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_parent',
    			'callback_method' => 'callback_forumid'
    		);
    
    		// Topic dates.
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_thread',
    			'from_fieldname'  => 'time',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_date',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_thread',
    			'from_fieldname'  => 'time',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_date_gmt',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_thread',
    			'from_fieldname'  => 'time',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_modified',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_thread',
    			'from_fieldname'  => 'time',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_modified_gmt',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_thread',
    			'from_fieldname'  => 'lastPostTime',
    			'to_type'         => 'topic',
    			'to_fieldname'    => '_bbp_last_active_time',
    			'callback_method' => 'callback_datetime'
    		);
    
    		// Topic status (Open or Closed)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_thread',
    			'from_fieldname'  => 'isClosed',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_status',
    			'callback_method' => 'callback_topic_status'
    		);
    
    		/** Tags Section ******************************************************/
    
    		/**
    		 * WBB v3.x Forums do not support topic tags out of the box. WBB4?!
    		 */
    
    		/** Reply Section *****************************************************/
    
    		// Reply id (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_post',
    			'from_fieldname'  => 'postID',
    			'to_type'         => 'reply',
    			'to_fieldname'    => '_bbp_post_id'
    		);
    
    		// Reply parent forum id (If no parent, then 0. Stored in postmeta)
    		// Note: We join the 'wbb1_1_thread' table because 'wbb1_1_post' does not include forum id.
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_thread',
    			'from_fieldname'  => 'boardID',
    			'join_tablename'  => 'wbb1_post',
    			'join_type'       => 'INNER',
    			'join_expression' => 'USING (threadID) WHERE wbb1_post.postID != wbb1_thread.firstPostID',
    			'to_type'         => 'reply',
    			'to_fieldname'    => '_bbp_forum_id',
    			'callback_method' => 'callback_forumid'
    		);
    
    		// Reply parent topic id (If no parent, then 0. Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_post',
    			'from_fieldname'  => 'threadID',
    			'to_type'         => 'reply',
    			'to_fieldname'    => '_bbp_topic_id',
    			'callback_method' => 'callback_topicid'
    		);
    
    		// Reply author ip (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_post',
    			'from_fieldname'  => 'ipAddress',
    			'to_type'         => 'reply',
    			'to_fieldname'    => '_bbp_author_ip'
    		);
    
    		// Reply author.
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_post',
    			'from_fieldname'  => 'userID',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_author',
    			'callback_method' => 'callback_userid'
    		);
    
    		// Reply title.
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_post',
    			'from_fieldname'  => 'subject',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_title'
    		);
    
    		// Reply slug (Clean name to avoid conflicts)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_post',
    			'from_fieldname'  => 'subject',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_name',
    			'callback_method' => 'callback_slug'
    		);
    
    		// Reply content.
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_post',
    			'from_fieldname'  => 'message',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_content',
    			'callback_method' => 'callback_html'
    		);
    
    		// Reply parent topic id (If no parent, then 0)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_post',
    			'from_fieldname'  => 'threadID',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_parent',
    			'callback_method' => 'callback_topicid'
    		);
    
    		// Reply dates.
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_post',
    			'from_fieldname'  => 'time',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_date',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_post',
    			'from_fieldname'  => 'time',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_date_gmt',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_post',
    			'from_fieldname'  => 'lastEditTime',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_modified',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_post',
    			'from_fieldname'  => 'lastEditTime',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_modified_gmt',
    			'callback_method' => 'callback_datetime'
    		);
    
    		/** User Section ******************************************************/
    
    		// Store old User id (Stored in usermeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wcf1_user',
    			'from_fieldname'  => 'userID',
    			'to_type'         => 'user',
    			'to_fieldname'    => '_bbp_user_id'
    		);
    
    		// Store old User password (Stored in usermeta serialized with salt)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wcf1_user',
    			'from_fieldname'  => 'password',
    			'to_type'         => 'user',
    			'to_fieldname'    => '_bbp_password',
    			'callback_method' => 'callback_savepass'
    		);
    
    		// User password verify class (Stored in usermeta for verifying password)
    		$this->field_map[] = array(
    			'to_type'         => 'user',
    			'to_fieldname'    => '_bbp_class',
    			'default'         => 'WBB4'
    		);
    
    		// User name.
    		$this->field_map[] = array(
    			'from_tablename'  => 'wcf1_user',
    			'from_fieldname'  => 'username',
    			'to_type'         => 'user',
    			'to_fieldname'    => 'user_login'
    		);
    
    		// User nice name.
    		$this->field_map[] = array(
    			'from_tablename' => 'wcf1_user',
    			'from_fieldname' => 'username',
    			'to_type'        => 'user',
    			'to_fieldname'   => 'user_nicename'
    		);
    
    		// User email.
    		$this->field_map[] = array(
    			'from_tablename'  => 'wcf1_user',
    			'from_fieldname'  => 'email',
    			'to_type'         => 'user',
    			'to_fieldname'    => 'user_email'
    		);
    
    		// User registered.
    		$this->field_map[] = array(
    			'from_tablename'  => 'wcf1_user',
    			'from_fieldname'  => 'registrationDate',
    			'to_type'         => 'user',
    			'to_fieldname'    => 'user_registered',
    			'callback_method' => 'callback_datetime'
    		);
    
    		// Store Signature (Stored in usermeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wcf1_user',
    			'from_fieldname'  => 'signature',
    			'to_fieldname'    => '_bbp_wbb3_user_sig',
    			'to_type'         => 'user',
    			'callback_method' => 'callback_html'
    		);
    	}
    
    	/**
    	 * 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'] ) );
    	}
    
    	/**
    	 * Translate the forum type from WBB v3.x numeric's to WordPress's strings.
    	 *
    	 * @param int $status WBBx v3.x numeric forum type
    	 * @return string WordPress safe
    	 */
    	public function callback_forum_type( $status = 0 ) {
    		switch ( $status ) {
    			case 1 :
    				$status = 'category';
    				break;
    
    			case 0  :
    			default :
    				$status = 'forum';
    				break;
    		}
    		return $status;
    	}
    
    	/**
    	 * Translate the forum status from WBB v3.x numeric's to WordPress's strings.
    	 *
    	 * @param int $status WBB v3.x numeric forum status
    	 * @return string WordPress safe
    	 */
    	public function callback_forum_status( $status = 0 ) {
    		switch ( $status ) {
    			case 1 :
    				$status = 'closed';
    				break;
    
    			case 0  :
    			default :
    				$status = 'open';
    				break;
    		}
    		return $status;
    	}
    
    	/**
    	 * Translate the post status from WBB v3.x numeric's to WordPress's strings.
    	 *
    	 * @param int $status WBB v3.x numeric forum status
    	 * @return string WordPress safe
    	 *
    	 */
    	public function callback_topic_status( $status = 0 ) {
    		switch ( $status ) {
    			case 1 :
    				$status = 'closed';
    				break;
    
    			case 0  :
    			default :
    				$status = 'publish';
    				break;
    		}
    		return $status;
    	}
    
    	/**
    	 * Verify the topic reply count.
    	 *
    	 * @param int $count WBB v3.x reply count
    	 * @return string WordPress safe
    	 */
    	public function callback_topic_reply_count( $count = 1 ) {
    		$count = absint( (int) $count - 1 );
    		return $count;
    	}
    
    	/**
    	 * Set languages, add more languages if needed
    	 *
    	 * @param int $language WBB v3.x numeric forum status
    	 * @return string WordPress safe
    	 */
    	public function callback_topic_language( $language = 4 ) {
    		switch ( $language ) {
    			case 4 :
    				$language = 'German';
    				break;
    
    			case 5  :
    			default :
    				$language = 'English';
    				break;
    		}
    		return $language;
    	}
    
    	/**
    	* This callback processes any custom BBCodes with parser.php
    	*/
    	#protected function callback_html( $field ) {
    
    	#	require_once( bbpress()->admin->admin_dir . 'parser.php' );
    	#	$bbcode = BBCode::getInstance();
    	#	$bbcode->enable_smileys = false;
    	#	$bbcode->smiley_regex   = false;
    	#	return html_entity_decode( $bbcode->Parse( $field ) );
    	#}
    }
    
    #162139

    In reply to: How register the users

    Robkk
    Moderator

    the text widget in WordPress doesnt allow shortcodes by default.

    you can add this PHP code snippet to your child themes functions.php or a functionality plugin to allow it do so though.

    add_filter('widget_text', 'do_shortcode');

    #162076

    In reply to: Footnotes

    Blaze Miskulin
    Participant

    @ Robin W

    And, on a larger note: Does bbPress, by default, isolate itself from other plugins?

    Sorry but I don’t understand your question.

    My apologies for not being clear.
    Sorry but I don’t understand your question.

    My apologies for not being clear. Let me try to explain better.
    Let me try to explain better:

    Does bbPress include security or “sandboxing” features that block other plugins from interacting with it? I know that some plugins intentionally block common tools (such as the shortcodes mentioned by Robkk,above). I’m not complaining about it, just looking for information so I know how to proceed.

    Footnotes is a plugin that works in posts, pages, and comments. It does not, however, work within forum posts or comments. I’m new to bbPress (been using WP for about 15 years), so I’m just trying to learn how forum posts and comments are different from “main” posts and comments.

    #162052
    Robkk
    Moderator

    alright but by default it does show.

    in the default file of loop-single-reply.php

    you will see this

    <div class="bbp-reply-author">
    
    		<?php do_action( 'bbp_theme_before_reply_author_details' ); ?>
    
    		<?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true ) ); ?>
    
    		<?php if ( bbp_is_user_keymaster() ) : ?>
    
    			<?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?>
    
    			<div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_reply_id() ); ?></div>
    
    			<?php do_action( 'bbp_theme_after_reply_author_admin_details' ); ?>
    
    		<?php endif; ?>
    
    		<?php do_action( 'bbp_theme_after_reply_author_details' ); ?>
    
    	</div><!-- .bbp-reply-author -->

    this is the code that shows it , hence the show role = true

    <?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true ) ); ?>

    #162047
    Robkk
    Moderator

    you would need to do something like this.

    Since it is hard to guess what your menu’s theme location is , i just put primary.

    This does work in some default themes like Twentyfourteen though.

    add_filter('wp_nav_menu_items','rk_bbp_menu_profile_link', 10, 2);
    function rk_bbp_menu_profile_link( $items, $args ) {
        if( is_user_logged_in() && $args->theme_location == 'primary')  {
    		
    	$current_user = wp_get_current_user();
            $user = $current_user->user_login ;
    	$profilelink = '<a href="/forums/users/' . $user . '/edit">Edit Profile</a>';
            $items .=  '<li>' . $profilelink .  '</li>';
    
    	}
        return $items;
    }
    #162031
    vpontin
    Participant

    Hi all!
    Its a pretty noob question, but i didn’t find anything related to my issue…

    I added a quicktag to the wordpress default editor


    function generico_quicktags() {

    if ( wp_script_is( 'quicktags' ) ) {
    ?>
    <script type="text/javascript">
    QTags.addButton(
    'pov_generico',
    'POV (Genérico)',
    '[pov-generico]',
    '[/pov-generico]'
    );
    QTags.addButton( 'pov_generico', 'p', '<p class="fala generico">', '</p>', '', 'Fala (Personagem Genérico)', 10 );
    </script>
    <?php
    }

    }
    add_action( 'admin_print_footer_scripts', 'generico_quicktags' );

    But this don’t show in bbpress reply editor. How can i add this there too?

    #162017
    Robin W
    Moderator

    bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.

    Then come back

    #162008

    In reply to: Footnotes

    Robin W
    Moderator

    The footnotes don’t work within the forums (even for me, as the admin).

    Without taking time to install this plugin and test, I cannot of course see what the above means .
    There are thousands and thousands of plugins and bbpress cannot be tested with all 🙂

    If they work together then they are compatible, if not then probably not ! There may well be a way to make then work together, but you’d need to find someone to carry out this work. You could try the footnotes plugin author.

    And, on a larger note: Does bbPress, by default, isolate itself from other plugins?

    Sorry but I don’t understand your question.

    #162004
    Robin W
    Moderator

    forums should be fully functional for logged in users, so your issue should not be there !

    bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.

    Then come back

    #161998
    tarnvogL
    Participant

    @andrew55
    bbPress should do this now by default like this site has it.


    @robkk
    for me it doesn’t :/
    any suggestions why?

    #161991
    tarnvogL
    Participant

    hi!

    On default, bbPress displays all usernames in lowercase letters.
    How can I display the upper case letters for all users?
    I already searched in some topics for the answer, but haven’t found anything useful.

    Thank you!

    #161989

    Topic: Footnotes

    in forum Plugins
    Blaze Miskulin
    Participant

    I have Footnotes installed on a site which uses bbPress. The footnotes don’t work within the forums (even for me, as the admin).

    Are these two plugins incompatible? Is there a simple, sustainable way to make the Footnotes plugin work within the forums?

    And, on a larger note: Does bbPress, by default, isolate itself from other plugins?

    #161902
    TheMusicianGirl1
    Participant

    Guys, I DID IT! After spending the better part of a day sweating over this problem, I finally fixed it. The solution is so simple, I have no idea why it took me so freaking long to think of it!

    1. Download and install the “page links to” plugin at https://wordpress.org/plugins/page-links-to/
    2. Go to Dashboard –> All pages –> and then click edit on your default forum page (usually http://www.yoursite.com/forums)
    3. Once you’re on the editing page, scroll down to where your new plugin has two, magic little options for you. The first one, “this is a normal wordpress page,” is probably checked. Instead, check the one right below it, the one that says “custom url” or something like that. Enter the url for the page that you WANT your default forums page to be. Click publish.

    TA-DA! Now, when you click on “forums” in your breadcrumbs trail, instead of taking you to that default index page, it’ll take you to the special one that you made using the index shortcode.

    You’re welcome!!

    Maya 🙂

    #161894
    TheMusicianGirl1
    Participant

    Hello all,

    I’ve got a bit of a problem! I just installed bbpress on my site (www.themusiciangirl.com) this morning, and after a bit of fussing, I have it more or less up and running. Well, apart from one large thing! When I click on a topic, the content is not displayed. I tried creating a new topic on both the front end and back end, both with the same result. Here is what it looks like: http://www.themusiciangirl.com/forums/topic/how-to-critique/

    Notice how there’s not content? Well, there should be! When I edit the topic on the backend the text is all there, just for some reason it’s not displaying. Any ideas as to what could be causing this?

    Now, I know I know I’m supposed to check with a default theme (2012, 201 etc.) to see if the problem persists. However, I’m terrified of doing that! I’m using a theme called Optimize Press, which is a pretty intense and customizable theme. I’ve spent almost 100 hours carefully creating all of my pages using their live editor. Now, if I suddenly disable it and quickly try on another theme for size, when I re-activate it how do I know that all my pages would be the same? I’d be devastated if they weren’t.

    Anyway, has anyone had this problem before? Help is much appreciated!

    Thanks in advance,

    Maya

    #161892
    TheMusicianGirl1
    Participant

    Hi there,

    I know this is an old thread so perhaps I’m out of luck, but I’m having the same problem as pkl. The breadcrumbs lead back to the default forum page, which doesn’t configure properly with my theme (Optimize Press 2). It just looks like a jumble of letters and numbers.

    Here’s what I tried:

    The page that I have put the forum index on is http://www.themusiciangirl.com/community-forum/. Notice the slug: “community-forum.” I then went into the forum settings and changed the root slug to “community-forum.” When I went back to the page, all of my hard work putting together a nice looking layout had disappeared. The default forum page had appeared. I changed the forum root slug back to the default “forums” and re-visited the community-forum page. It looked good again, with all my formatting nicely done. However, once I click on a forum or topic, then voila, it looks gross again.

    I want to be able to make my nicely formatted community-forums page the default index page that the breadcrumbs lead back to. Any tips?

    Thanks so much!

    #161890
    NK-cell
    Participant

    Hi there,
    I’m trying to find out a way that gives me a quick topic posting widget in the dashboard as the one for posts present by default in wordpress dashboard. Please, I would appreciate a help. Thank you for your time.

    Raghy

    #161885

    In reply to: bbPress like Flarum

    Robkk
    Moderator

    just checked the code and i can see that you really stripped a lot of the bbPress default code out.

    alot of bbPress specific plugins i can expect not to work correctly because of this, and maybe even some snippets would not work anymore.

    #161868
    Prabin
    Participant

    Here I have created my groups and the breadcrumbs trail not showing up as i want.

    By Default it shows Home >> Groups ( this is ok ), but when i click on the Group Menu
    and inside group menu, there are groups that I created. when i click on any of them, it shows Home >> group name

    i want it to be displayed as Home >> Groups >> group name

    any help?? please, i’ve spent hours to solve this problem

Viewing 25 results - 2,301 through 2,325 (of 6,788 total)
Skip to toolbar