Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 25 results - 3,551 through 3,575 (of 6,813 total)
  • Author
    Search Results
  • #139559

    In reply to: Stylesheet Issues

    focallocal
    Participant

    i’m making all changes live to my site as i havent launched yet (hopefully in 2 days) and my hosting companies servers are running Litespeed.

    <link rel=’stylesheet’ id=’bbp-default-css’ href=’http://focallocal.org/wp-content/plugins/bbpress/templates/default/css/bbpress.css?ver=2.5-5199&#8242; type=’text/css’ media=’screen’ />

    #139557

    In reply to: Stylesheet Issues

    Stephen Edgar
    Keymaster

    It looks like you have patched the file correctly.

    Can you view the source and get the stylesheet path and paste it here:

    eg.
    A ‘failed’ example
    <link rel="stylesheet" id="bbp-default-css" href="http://localhost/wordpress37/wp-content/C:devhtdocswordpress37wp-contentpluginsbbpress/templates/default/css/bbpress.css?ver=2.5-5199" type="text/css" media="screen">

    A ‘working’ example:
    <link rel='stylesheet' id='bbp-default-css' href='http://127.0.0.1/wp-content/plugins/bbpress/templates/default/css/bbpress.css?ver=2.5-5199' type='text/css' media='screen' />

    #139551

    In reply to: Stylesheet Issues

    focallocal
    Participant
    function bbp_enqueue_style( $handle = '', $file = '', $dependencies = array(), $version = false, $media = 'all' ) {
    
    	// No file found yet
    	$located = false;
    
    	// Trim off any slashes from the template name
    	$file = ltrim( $file, '/' );
    
    	// Make sure there is always a version
    	if ( empty( $version ) ) {
    		$version = bbp_get_version();
    	}
    
    	// Loop through template stack
    	foreach ( (array) bbp_get_template_stack() as $template_location ) {
    
    		// Continue if $template_location is empty
    		if ( empty( $template_location ) ) {
    			continue;
    		}
    
    		// Check child theme first
    		if ( file_exists( trailingslashit( $template_location ) . $file ) ) {
    			$located = trailingslashit( $template_location ) . $file;
    			break;
    		}
    	}
    
    	// Enqueue if located
    	if ( !empty( $located ) ) {
    
                    $content_dir = constant( 'WP_CONTENT_DIR' );
    
                    // IIS (Windows) here
                    // Replace back slashes with forward slash
                    if ( strpos( $located, '\\' ) !== false ) {
                            $located     = str_replace( '\\', '/', $located );
                            $content_dir = str_replace( '\\', '/', $content_dir );
                    }
    
    		// Make path to file relative to site URL
    		$located = str_replace( $content_dir, WP_CONTENT_URL, $located );
    
    		// Enqueue the style
    		wp_enqueue_style( $handle, $located, $dependencies, $version, $media );
    	}
    
    	return $located;
    }
    
    /**
     * Enqueue a script from the highest priority location in the template stack.
     *
     * Registers the style if file provided (does NOT overwrite) and enqueues.
     *
     * @since bbPress (r5180)
     *
     * @param string      $handle    Name of the script.
     * @param string|bool $file      Relative path to the script. Example: '/js/myscript.js'.
     * @param array       $deps      An array of registered handles this script depends on. Default empty array.
     * @param string|bool $ver       Optional. String specifying the script version number, if it has one. This parameter
     *                               is used to ensure that the correct version is sent to the client regardless of caching,
     *                               and so should be included if a version number is available and makes sense for the script.
     * @param bool        $in_footer Optional. Whether to enqueue the script before </head> or before </body>.
     *                               Default 'false'. Accepts 'false' or 'true'.
     *
     * @return string The script filename if one is located.
     */
    function bbp_enqueue_script( $handle = '', $file = '', $dependencies = array(), $version = false, $in_footer = 'all' ) {
    
    	// No file found yet
    	$located = false;
    
    	// Trim off any slashes from the template name
    	$file = ltrim( $file, '/' );
    
    	// Make sure there is always a version
    	if ( empty( $version ) ) {
    		$version = bbp_get_version();
    	}
    
    	// Loop through template stack
    	foreach ( (array) bbp_get_template_stack() as $template_location ) {
    
    		// Continue if $template_location is empty
    		if ( empty( $template_location ) ) {
    			continue;
    		}
    
    		// Check child theme first
    		if ( file_exists( trailingslashit( $template_location ) . $file ) ) {
    			$located = trailingslashit( $template_location ) . $file;
    			break;
    		}
    	}
    
    	// Enqueue if located
    	if ( !empty( $located ) ) {
    
    				$content_dir = constant( 'WP_CONTENT_DIR' ); 	 
    		                // IIS (Windows) here 
     		                // Replace back slashes with forward slash 
     		                if ( strpos( $located, '\\' ) !== false ) { 
     		                        $located     = str_replace( '\\', '/', $located ); 
     		                        $content_dir = str_replace( '\\', '/', $content_dir ); 
     		                } 
    
    		// Make path to file relative to site URL
    		$located = str_replace( $content_dir, WP_CONTENT_URL, $located );
    
    		// Enqueue the style
    		wp_enqueue_script( $handle, $located, $dependencies, $version, $in_footer );
    	}
    
    	return $located;
    }
    
    /**
     * This is really cool. This function
    #139533

    hi Stephen, I am using Window Xampp Apache (3.1.0.3.1.0). I guess that I am not using Window IIS.
    more information as the following base on the research.

    I installed bbpress & buddypress on my site which has pitch theme. I suspect this could be from my theme formatting the bbpress forums this way.the pitch theme is working perfectly. I created a page which is called “Forums”(forum index page). I chose the default template. My forum index page is just a bunch of bullet points listing each text for the topics

    example:
    —-
    Forum
    Topics
    Posts
    Freshness

    Group Forums
    group one (2, 0)
    2
    2
    41 minutes ago
    Avatar of admin admin

    not group forum
    cool
    0
    0
    No Topics
    ———–

    I also asked that Pitch theme is compatibly with bbpress and buddypress or not.

    Thank you

    #139532

    In reply to: Stylesheet Issues

    Tadas Krivickas
    Participant

    Hi,

    This is definitely a bug in bbp 2.5 on Windows. 2.4.1 does not have this issue. You can reproduce it by reverting to 2.4.1 (works again) -> update to 2.5 (doesn’t work again).

    <link rel="stylesheet" id="bbp-default-css" href="http://localhost/wordpress37/wp-content/C:devhtdocswordpress37wp-contentpluginsbbpress/templates/default/css/bbpress.css?ver=2.5-5199" type="text/css" media="screen">

    Windows 7 x64, httpd+php+mysqld, latest stable WP, BP, BBP

    #139492
    Bright Thought, LLC
    Participant

    After I updated bbpress to version 2.5 the stylesheet for the default theme is not being linked correctly.

    <link rel=’stylesheet’ id=’bbp-default-css’ href=’http://localhost/wordpress/almostaveragegamers/wp-content/C:xampphtdocswordpresswp-contentpluginsbbpress/templates/default/css/bbpress.css?ver=2.5-5199&#8242; type=’text/css’ media=’screen’ />

    This is the way that the link is showing up when I look at the source code for the site which I am designing on a local host server. When I click on the link to see what is displayed this is what it is showing me below.

    https://www.dropbox.com/s/3as5djr6w0m2b0a/error-message.jpg

    #139482

    Hello,
    I just installed bbpress on my site. I created a page which is called “Forums”. I chose the default template. Every thing is working except the display is not organized as the plan.
    —-
    Forum
    Topics
    Posts
    Freshness

    Group Forums
    group one (2, 0)
    2
    2
    41 minutes ago
    Avatar of admin admin

    not group forum
    cool
    0
    0
    No Topics
    ———–

    how to organize the display as following or better? ( not display in vertically orders)
    Forum Topics posts Freshness/minutes

    thank you

    #139451
    PureLoneWolf
    Participant

    Hi there

    I upgraded to 2.5 this morning and, after noticing that some of my users were not assigned the participant role, ran the tool to remap users to default roles.

    This had the unfortunate side-effect of setting both of my administrator accounts to Participant, and removed all Dashboard related links to bbpress.

    In users, when I choose “Change Forum Role to” at the top of the user list, the highest level is moderator. Keymaster is no longer there.

    Am I missing something?

    I tried, in PHPMyAdmin, to change the wp_capabilities table from a:3:{s:13:"administrator";b:1;s:14:"backwpup_admin";b:1;s:15:"bbp_participant";b:1;} to a:3:{s:13:"administrator";b:1;s:14:"backwpup_admin";b:1;s:15:"bbp_keymaster";b:1;} after looking at a few posts on here. But that actually stopped access to the site until I changed it back.

    Can anyone help?

    Thanks

    roeller
    Participant

    After the upgrade to 2.5 there are CSS errors because the include is broken! The cause is that the programmers didn’t thought about people hosting WordPresss (and bbpress) on Windows platforms. (Windows uses a different slash and different directory root/paths).

    I’m hoping for a 2.5.1 fix 😉

    ERRORS:
    =======

    Failed to load resource: the server responded with a status of 404 (Not Found) http://www.XXXXXXX.com/wordpress/wp-content/E:inetpubwwwrootXXXXXXX…esswp-contentpluginsbbpress/templates/default/css/bbpress.css?ver=2.5-5199

    AND

    Failed to load resource: the server responded with a status of 404 (Not Found) http://www.XXXXXXX.com/wordpress/wp-content/E:inetpubwwwrootXXXXXXX…dpresswp-contentpluginsbbpress/templates/default/js/editor.js?ver=2.5-5199

    Note that the slashes are missing from the ‘plugin_dir’ part.

    I think the problem is within the “private function setup_globals” of the bbpress.php file or the “public function __construct” of the bbpress-functions.php file.

    (masked my directory and sitename with XXXXXXX)

    #139409

    In reply to: bbPress 2.5 is out!

    roeller
    Participant

    After the upgrade to 2.5 there are CSS errors because the include is broken! The cause is that the programmers didn’t thought about people hosting WordPresss (and bbpress) on Windows platforms. (Windows uses a different slash and different directory root/paths).

    See my other topic about this. I’m hoping for a 2.5.1 fix 😉

    ERRORS:
    =======

    Failed to load resource: the server responded with a status of 404 (Not Found) http://www.XXXXXXX.com/wordpress/wp-content/E:inetpubwwwrootXXXXXXX…esswp-contentpluginsbbpress/templates/default/css/bbpress.css?ver=2.5-5199

    AND

    Failed to load resource: the server responded with a status of 404 (Not Found) http://www.XXXXXXX.com/wordpress/wp-content/E:inetpubwwwrootXXXXXXX…dpresswp-contentpluginsbbpress/templates/default/js/editor.js?ver=2.5-5199

    Note that the slashes are missing from the ‘plugin_dir’ part.

    I think the problem is within the “private function setup_globals” of the bbpress.php file or the “public function __construct” of the bbpress-functions.php file.

    (masked my directory and sitename with XXXXXXX)

    #139360
    Robin W
    Moderator

    This may look a bit messy but without spending a lot of time

    In loop-single-reply.php (wp-content/plugins/bbpress/templates/default/bbpress)

    change line 45 which uses bbp_reply_author_link

    and use

    bbp_get_reply_author_avatarto display the avatar and

    bbp_get_reply_author_id
    to get the id – you’ll then need to play with maybe

    bbp_get_reply_author()
    putting the id in the brackets

    eg bbp_get_reply_author(bbp_get_reply_author_id )

    should give you the username rather than display name

    you’d then need to play with

    content-single-topic.php for the forum lists (wp-content/plugins/bbpress/templates/default/bbpress)

    #139337
    bigjakk
    Participant

    I have created two categories with forums beneath the categories. However the forum root does not display any of this. I am only able to go to each category by the direct link. Forum link is
    https://birdseyeminecraft.us/wordpress/wordpress

    This is still in development so excuse the sloppiness of it. Are categories in a different root the then the default one? if so where can i find it?

    #139302

    In reply to: SMF Import to bbPress

    Stephen Edgar
    Keymaster

    You should see Starting conversion in seconds.
    Next Converting users in another second if your converting your users.
    Next ‘Converting forums` in seconds if not converting users.

    By default everything is done in chunks of 100 records and this should never really take much longer than 5 seconds per chunk at which point you will see the converter message progress to Converting topics 300 - 399 then Converting topics 400 - 499 etc, you should never be far away from a new message informing you of the status of the import.

    I’ll try to get some more docs into the ‘import screen’ for bbPress 2.5 to give people a heads up on what they should expect to see.

    As you are on a dedicated server this topic might be worth checking out on ‘speeding it up’

    phpBB Import speed

    Firstly though lets get it started…

    Via FTP grab a copy of your SMF Settings.php file and open it up in a text editor.
    /public_html/mywebsite/smf/Settings.php

    In that file something that looks like this:

    ########## Database Info ##########
    $db_type = 'mysql';
    $db_server = 'localhost';
    $db_name = 'mydb_name';
    $db_user = 'mydb_usernam';
    $db_passwd = '123456789';
    $ssi_db_user = '';
    $ssi_db_passwd = '';
    $db_prefix = 'smf_';

    These are the settings you need to use on the bbPress importer.

    ps. Thanks @manuxel for helping others out here with the SMF importer 🙂

    #139292
    mizzinc
    Participant

    Hello,

    I would like to know the correct method to add a filter in a child theme for a template function.

    For this example lets use ‘bbp_get_user_subscribe_link()’

    I would like to insert

    <icon class="icon-user"></i>

    into the following before the %s

    <span id="subscribe-%d"  %s>%s
    $html = sprintf( '%s<span id="subscribe-%d"  %s>%s</span>%s', $r['before'], $topic_id, $sub, $url, $topic_id, $text, $r['after'] );
    

    of this function bbp_get_user_subscribe_link()

    	function bbp_get_user_subscribe_link( $args = '', $user_id = 0, $wrap = true ) {
    		if ( !bbp_is_subscriptions_active() )
    			return;
    
    		// Parse arguments against default values
    		$r = bbp_parse_args( $args, array(
    			'subscribe'   => __( 'Subscribe',   'bbpress' ),
    			'unsubscribe' => __( 'Unsubscribe', 'bbpress' ),
    			'user_id'     => 0,
    			'topic_id'    => 0,
    			'before'      => ' | ',
    			'after'       => ''
    		), 'get_user_subscribe_link' );
    
    		// Validate user and topic ID's
    		$user_id  = bbp_get_user_id( $r['user_id'], true, true );
    		$topic_id = bbp_get_topic_id( $r['topic_id'] );
    		if ( empty( $user_id ) || empty( $topic_id ) ) {
    			return false;
    		}
    
    		// No link if you can't edit yourself
    		if ( !current_user_can( 'edit_user', (int) $user_id ) ) {
    			return false;
    		}
    
    		// Decide which link to show
    		$is_subscribed = bbp_is_user_subscribed( $user_id, $topic_id );
    		if ( !empty( $is_subscribed ) ) {
    			$text       = $r['unsubscribe'];
    			$query_args = array( 'action' => 'bbp_unsubscribe', 'topic_id' => $topic_id );
    		} else {
    			$text       = $r['subscribe'];
    			$query_args = array( 'action' => 'bbp_subscribe', 'topic_id' => $topic_id );
    		}
    
    		// Create the link based where the user is and if the user is
    		// subscribed already
    		if ( bbp_is_subscriptions() ) {
    			$permalink = bbp_get_subscriptions_permalink( $user_id );
    		} elseif ( bbp_is_single_topic() || bbp_is_single_reply() ) {
    			$permalink = bbp_get_topic_permalink( $topic_id );
    		} else {
    			$permalink = get_permalink();
    		}
    
    		$url  = esc_url( wp_nonce_url( add_query_arg( $query_args, $permalink ), 'toggle-subscription_' . $topic_id ) );
    		$sub  = $is_subscribed ? ' class="is-subscribed"' : '';
    		$html = sprintf( '%s<span id="subscribe-%d"  %s>%s</span>%s', $r['before'], $topic_id, $sub, $url, $topic_id, $text, $r['after'] );
    
    		// Initial output is wrapped in a span, ajax output is hooked to this
    		if ( !empty( $wrap ) ) {
    			$html = '<span id="subscription-toggle">' . $html . '</span>';
    		}
    
    		// Return the link
    		return apply_filters( 'bbp_get_user_subscribe_link', $html, $r, $user_id, $topic_id );
    	}
    

    So how would I construct my_custom_bbp_get_user_subscribe_link() function to add_filter( ‘bbp_get_user_subscribe_link’, ‘my_custom_bbp_get_user_subscribe_link’ ); ?

    I hope the answer will serve as a general example to correctly add filters to many other template functions.

    Thanks for your assistance.

    #139276
    Anonymous User 8097816
    Inactive

    Hello,

    As part of a project for a forum in French which will be online soon, I completed the translation in French of bbPress and I improved (at least I hope) many strings already translated so that they are more true to the original english meaning and context.

    I’m entering the translations one by one on translate.wordpress.org/projects/bbpress/2.4.x/fr/default and I would like to discuss with the french translation team about a number of aspects of the project, eg nomenclature, accents, etc.

    Thank you and good day.

    #139252
    cjcampbell121
    Participant

    When looking at the settings, I see that I can “customize” the forum index with shortcodes. I did that, and when its just its own page, then it works. When I try and change the settings to display that page as the forum index, it overwrites it with a weird looking search result instead of the index.

    All I want it to do is to display the forums that I have, and to be the forum link that is displayed when you go into a topic.

    Here is the default root:

    Here is the page with the shortcode (and not yet assigned to the forum root):

    Here is the forum root changed (with the same page):

    #139240
    shearamariz
    Participant

    nice. Thanks @ozgurpolat for that. I actually inserted it in my child theme and no core was changed even I update it. Hope it helps you too. 🙂

    #139218
    isopaha
    Participant

    Ty 🙂

    Aye, the forum search widget works like a charm, but the default WP search widget doesn’t search the forums. I’d like to use the default widget so it would go through blog posts and forum posts for that keyword, now the forum search widget only goes through forum posts.

    #139213

    In reply to: Display all forums

    Robin W
    Moderator

    Unfortunately it’s css and php files that you will need to amend

    Quickest change would be to add the following to your style.css

    #bbpress-forums .bbp-forums-list li {
    display: list-item !important;
    font-size: 11px;
    }

    or to amend the display line in wp-content/plugins/bbpress/templates/default/css/bbpress.css line 121

    That’ll get your list vertical.

    Add descriptions to your forums (dashboard>forums>edit and put something in content) and you’ll have the next part.

    Then if you want to alter the display, you’ll need to look at loop-single-forum.php

    or the main forum display loop-forums.php

    willandmae
    Participant

    The Forum Recent Replies widget is showing the wrong time and date:

    For Example:

    guardianwill on Welcome
    8 years, 5 months ago

    The site has been in design for less than 2 months. When I look at this entry the right time and date is displayed

    November 4, 2013 at 9:30 AM and then the reply message.

    Thanks for any help.

    using wp 3.7.1
    buddypress – 1.8.1
    bbpress – 2.4.1
    buddypress-default theme

    the forum recent topics is working correctly and showing the proper time.

    Thanks in advance for any help concerning this issue.

    you can view at http://tvbari.org and scroll to the bottom footers to the right.

    William

    Robin W
    Moderator

    It’s quite simple to get ti up and running – just work you way through the following resource

    Step by step guide to setting up a bbPress forum – Part 1

    If you are using a default core theme, it’ll be going in a couple of hours. if you have a custom theme, the functionality will be there, but the look and feel might be a little different from your theme, and you’ll need to style it – not that hard to do, but does require some knowledge of using FTP and a code editor.

    I’ll be finishing this article during the next week.

    #139168

    In reply to: phpBB Import speed

    Stephen Edgar
    Keymaster

    Typically the ----- dashes occur once you are no longer logged into your site, opening up another page and refreshing it every 2-3 hours eg. http://example.com/wp-admin/index.php should get you around this issue.

    As long as you don’t hit memory issues drop the delay time from the default 1 second down to 0.1.

    I’d have at a guess the 5,000 & 10,000 settings you tried might have actually been too much, I’d love to be able to get some more SQL debug messages into the output display though to achieve this much of the importer needs to be rewritten so that will happen in a future release.

    Down the track I’d like to write some bash scripts to do this directly (using WP-CLI) but this is a way down the track and is not planned at this stage.

    #139130
    matrixino
    Participant

    Hi all. I’m having some problems importing my phpBB forum into bbPress. My forum is quite big, those are my stats:
    Posts: 576133 | Topics: 32722 | Users: 12306

    I first tried a default import with 1000row/1sec setting. It ran for an entire day, however after around 60000 posts it just started giving me dashes (‘-‘ char) and I really didn’t know what to do or if it was normal. So i just stopped it.

    After this I wanted to try more rows, assuming it was going to be faster. So I started (2 tries) a 5000 and a 10000 row imports. However I had it on starting conversion for an hours or more, and never actually started converting. I don’t have memory problems or errors, it’s just very slow I guess.

    So my question is: Is there a way to import all together, maybe directly with some bash script, from shell without using a webserver. Or something else to speed it up instead of waiting days in my browser?

    Thanks.

    #139127
    javierduce
    Participant

    You should check if the table wp_bb_posts has been created in your database. Otherwise, you should create it manually:

    CREATE TABLE IF NOT EXISTS wp_bb_posts (
    post_id bigint(20) NOT NULL auto_increment,
    forum_id int(10) NOT NULL default 1,
    topic_id bigint(20) NOT NULL default 1,
    poster_id int(10) NOT NULL default 0,
    post_text text NOT NULL,
    post_time datetime NOT NULL default ’0000-00-00 00:00:00′,
    poster_ip varchar(15) NOT NULL default ”,
    post_status tinyint(1) NOT NULL default 0,
    post_position bigint(20) NOT NULL default 0,
    PRIMARY KEY (post_id),
    KEY topic_time (topic_id, post_time),
    KEY poster_time (poster_id, post_time),
    KEY post_time (post_time),
    FULLTEXT KEY post_text (post_text)
    ) ENGINE = MYISAM;

    Hope it works.
    It did for me.

    #139114

    In reply to: phpbb import hanging?

    Stephen Edgar
    Keymaster

    Same problem, it’s just hanging.

    What stage do you get to though now?
    (As you shouldn’t be seeing “Delete users WordPress default passwords Deleting previously converted data” etc)

    “Deleting Conversion Table… Failed”

    This is fine, it just depends on if bbPress used a conversion table to do the conversion or it used the source database tables correctly.

    As well as the actual users there are a lot of bots etc. (e.g. AdsBot Google, Ask Jeeves Bot)

    These are special phpBB user accounts that I haven’t found a way to ignore importing just yet and must be manually removed after importing, see the follwing for a list of them all.
    https://codex.bbpress.org/import-forums/phpbb/

Viewing 25 results - 3,551 through 3,575 (of 6,813 total)
Skip to toolbar