Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 25 results - 5,576 through 5,600 (of 6,788 total)
  • Author
    Search Results
  • #81283
    chrishajer
    Participant

    There’s no equivalent that I know of for bbPress. It would be the equivalent of a WordPress blog post page, where you want 9 posts (for example) listed as a default, but if there is a long post, some sort of limit kicks in. I don’t know of a way to do this in WordPress at all, other than limiting the number of posts on a blog page, or with a custom query. The nextpage tag only works on a single long post. It’s possible you could change the number of replies listed in bbPress when it encounters a long post with a tag like that, but I haven’t seen anyone do that yet.

    #81294
    johnhiler
    Member

    Subscribe To Topic will send updates on a particular thread/topic to subscribed users… but this should do what you’re looking for:

    https://bbpress.org/plugins/topic/moderator-new-post-notification/

    Or here’s another possibility:

    https://bbpress.org/plugins/topic/xili-new-post-notification/

    Good luck!

    #32281
    david755
    Member

    I’m using WordPress as my CMS and decided to go with Simple Press Forum to set up a forum. However, I’ve run into a roadblock and want to find out if BBPress can meet my needs before starting over.

    I have a forum with specific users who need to be notified by email whenever a new topic is started or a reply is made to an existing topic. I’ve run across a plugin called Subscribe to Topic but want to confirm this will do what I’m looking for before starting all over with new forum software.

    Bottom line- I want the small set of users to automatically be subscribed to all new topics and alerted of any updates. I do not want the users to have to subscribe to each topic.

    #81047

    In reply to: Help out with bbPress

    Ryan Hellyer
    Participant

    Hi Matt,

    I launched the SitePoint community theme project for bbPress (work is still underway):

    http://www.sitepoint.com/blogs/2009/08/05/we-want-you-join-the-sitepoint-communitys-bbpress-theme-project/

    My own background is in HTML/CSS coding mixed with a little WordPress.

    Assuming the SitePoint project goes to plan I’ll likely be implementing it into a new version of my bbPress template generator which is currently in the works (albeit development is taking longer than I’d like) … http://pixopoint.com/products/bbpress-forum-theme-generator/

    I see the key to bring bbPress to the masses is to add a lot of the standard functionality which most forums have by default directly into the theme. This keeps the core nice and light whilst offering maximum functionality to those who require it. I’d also like to make it easy as possible to have your WordPress and bbPress themes seamless integrate their designs by offering identically behaving WordPress and bbPress template generators.

    #80849

    In reply to: Future of bbPress

    Justin Tadlock
    Participant

    One could run a filter function on bb_template to check for templates in both the parent and child themes.

    Or, the user could set it in bb-config.php:

    define( BB_DEFAULT_THEME_DIR, 'path/to/default/theme/directory' );

    I don’t really like either of those two options. Your average user gets confused enough as it is. Trying to tell them to input PHP code can cause headaches sometimes.

    As far as I know, there’s no way to filter the default theme directory either. I’m open to ideas though. If anyone could offer a solution with a few lines of code, I’ll be happy to give it a whirl.

    Ideally, the constant BB_DEFAULT_THEME_DIR would be based off the theme’s Template line in style.css. Or, bb_get_default_template() would recognize the Template line.

    chrishajer
    Participant

    10 seconds is a long time for one query. Have you logged slow queries in your installation to see what’s taking so much time? bbPress doesn’t do that by default. Maybe it’s a plugin or something else on that site?

    #32260
    hatter
    Member

    This is meant as a solution to a common issue when including template files within plugin files.

    Some plugins use their own files for outputting information to the browser. Usually, the instructions will tell you to modify the file to include files within the template you are using. I have found that most people will simply include, or require the file needed using a relative path, such as “../../bb-templates/kakumei/top-div.php”. Usually this is fine, unless the plugin file is called in such a way that the relative path doesn’t work. The best way around this is to use the function bb_get_template, which will get the file as an absolute path, using the current template, if applicable, or the default template if necessary. An example of this would be:

    include(bb_get_template(“top-div.php”));

    Hope this helps.

    hatter
    Member

    After researching this error for a while, I finally found a solution and wanted to share to hopefully help someone else out, so they don’t go through the same headache.

    Searching for this issue within bbPress lead nowhere, so I abandoned that approach and looked at it from strictly a MySQL perspective. Finally I found that there wasn’t enough time being given to queries. Once the timeout was reached, an error would be thrown, and the query would be abandoned. For one of my client sites I found that, even though we had a dedicated server, the host used a default .cnf file for db settings, and had set the wait_timeout = 10, meaning if a query didn’t respond in 10 seconds (even if the server was under load at the time), the query would fail. This issue was resolved with the following settings:

    interactive timeout = 25

    wait timeout = 45

    Note: The settings may need to be different for your site, and your host may not let you change these settings. I just wanted to mention this in case it can help you.

    #81219
    jackie911hk
    Member

    bb-config.php.

    <?php

    /**

    * The base configurations of bbPress.

    *

    * This file has the following configurations: MySQL settings, Table Prefix,

    * Secret Keys and bbPress Language. You can get the MySQL settings from your

    * web host.

    *

    * This file is used by the installer during installation.

    *

    * @package bbPress

    */

    // ** MySQL settings – You can get this info from your web host ** //

    /** The name of the database for bbPress */

    define( ‘BBDB_NAME’, ‘blah’ );

    /** MySQL database username */

    define( ‘BBDB_USER’, ‘blah’ );

    /** MySQL database password */

    define( ‘BBDB_PASSWORD’, ‘blah’ );

    /** MySQL hostname */

    define( ‘BBDB_HOST’, ‘localhost’ );

    /** Database Charset to use in creating database tables. */

    define( ‘BBDB_CHARSET’, ‘utf8’ );

    /** The Database Collate type. Don’t change this if in doubt. */

    define( ‘BBDB_COLLATE’, ” );

    /**#@+

    * Authentication Unique Keys.

    *

    * Change these to different unique phrases!

    * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/bbpress/ WordPress.org secret-key service}

    *

    * @since 1.0

    */

    define( ‘BB_AUTH_KEY’, ‘put your unique phrase here’ );

    define( ‘BB_SECURE_AUTH_KEY’, ‘put your unique phrase here’ );

    define( ‘BB_LOGGED_IN_KEY’, ‘put your unique phrase here’ );

    define( ‘BB_NONCE_KEY’, ‘put your unique phrase here’ );

    /**#@-*/

    /**

    * bbPress Database Table prefix.

    *

    * You can have multiple installations in one database if you give each a unique

    * prefix. Only numbers, letters, and underscores please!

    */

    $bb_table_prefix = ‘bb_’;

    /**

    * bbPress Localized Language, defaults to English.

    *

    * Change this to localize bbPress. A corresponding MO file for the chosen

    * language must be installed to a directory called “my-languages” in the root

    * directory of bbPress. For example, install de.mo to “my-languages” and set

    * BB_LANG to ‘de’ to enable German language support.

    */

    define( ‘BB_LANG’, ” );

    ?>

    mySQL

    http://www.jackie.net/mySQL-1.jpg

    http://www.jackie.net/mySQL-2.jpg

    Thanks.

    #80662
    chrishajer
    Participant

    I see this error now:

    You must specify a table prefix in your bb-config.php file.

    Did you edit the file manually? There is a table prefix by default of bb_ – is that no longer there?

    #80656
    chrishajer
    Participant

    If you uploaded the files in the folder that was called “bbpress” by default, and it was in your website html root, then it would be accessible at http://www.example.com/bbpress/ and your site, if you have a site, will be at http://www.example.com. Was that not your experience?

    #80655
    jeffreyw4
    Member

    Thanks for your reply.

    Well, as I said, I originally uploaded it with the containing folder included. So the server didn’t “see” any of the files. It just read the default page which is a “this site is coming soon” html file.

    Once I uploaded without the containing folder the server saw the files and a screen querying for database info appeared.

    I’m not sure what you mean by “the” file structure. There isn’t much on the server before the bbPress files are uploaded. I left only the bare bones before uploading bbPress to avoid confusion.

    J

    #32116
    jeffreyw4
    Member

    Hi,

    So I uploaded the uncompressed files as instructed. Which of course come wrapped in a folder. Not being instructed otherwise, I uploaded the entire folder, wondering silently how the server would know how to handle the files.

    Item number 4 carries the rather cryptic instruction to “Visit the intended URL of the bbPress site” which I think means to go to the website to which the bbPress files have been uploaded. Which I did.

    Then it says that “You will be greeted with the bbPress installer”

    Of course this didn’t happen.

    Okay, so I figured you must have to remove the containing folder after all. So reupped the files now in unwrapped form.

    Having done this a screen did appear which queried for database info. I entered all of that and it said that it “couldn’t establish a connection with the database”.

    So I went into godaddy and created a new one thinking perhaps the password was wrong (though I checked it three times).

    Maybe this was my undoing: I looked at the Godaddy instructions for installing bbPress. They claim you should edit the bb_config file directly. So I put in the database info for the new database. The sticking point is always the host name which everyone defaults as ‘localhost’. But that doesn’t work with Godaddy. So I pulled the hostname from the Server variables and settings and put that in the quotes. I upped that and….

    Now it is saying I have to edit a table prefix which I assume is this line:

    $bb_table_prefix = ‘bb_’;

    I really have no idea what would go here.

    Any ideas??

    Thanks for any help.

    Jeff

    #81185

    I believe that the issue was the reverse, that is: how to add the blog menu onto the forum.

    If this is the case – the way I have done it – you edit header.php of your forum theme and add the menu tabs there, to match the ones of your blog. Make sure it is a custom theme and add it to my-templates folder, or you will lose it when you upgrade bbPress next time (if left as the default Kakumei).

    Just after

    <div id="header" role="banner">

    you add the html for the tabs (for id “navigation” add it to the style sheet). For example:

    <div id="header" role="banner">
    <ul id="navigation">
    <li><a href="blog url" title="Main Blog">Blog</a></li>
    <li><a href="forum url" title="Forums">Forums</a></li>
    <li><a href="another page url" title="Whatever Page">Whatever Page</a></li>
    <li><a href="contact page url" title="Contact Me">Contact Me</a></li>
    <li><a href="about page url" title="About">About</a></li>
    </ul>
    </div>

    Hope this helps.

    #32215
    Collisionx
    Member

    Hi

    I have tried integrate wordpress into bbPress according to the documentation, in my localhost, and im getting this error.

    Fatal error: Call to undefined function bloginfo() in C:wampwwwgm_wordpresswp-contentthemesdefaultfooter.php on line 12

    Do i have to call every file in wordpress with “require_once”… Or is there any other solution ?

    I ll be great if you guys can help me out.. :)

    Thanx

    #32208

    Topic: left aligned

    in forum Troubleshooting
    mmalaney
    Member

    I have installed BBPress and integrated it with my WP install and theme. The issue I am running into is the BBPress seems to be aligned left, I am using the default kakumei theme, any help on how to center it onto my page would be greatly appreciated. Link to my BB install is below.

    http://www.wisconsinsportsnation.com/community/

    #32178
    darxmac
    Member

    Hi All

    I have a bbpress install that is deep integrated with a wordpress MU 2.8.4. Everything is working perfectly, except that when i try to change the default language. When i remove the deep interagtion hook and use the default theme it works.

    I can see in trac (ticket/1096)that this is supposed fixed (maybe) but could it be because i’m using wordpress mu instead of the regular ? … any ideas/workarounds ?

    /thomas

    Cripes, no need for all that object-based markey, bbPress has functions to pass as a string rather than echo…

    <?php
    /*
    Plugin Name: Meta Headers
    */

    function meta_heads() {

    global $posts, $tags;

    if ( $posts ) {
    $out = $posts[0]->post_text;
    $out = strip_tags( $out );
    $out = str_replace( array( "n", "r" ), ' ', $out );
    $out = substr($out, 0, 200); // only display the first 200 characters of the first post
    }

    if( empty( $out ) )
    $out = 'Default description';

    echo "n".'<meta name="description" content="'.$out.'" />';

    if ( !empty( $tags ) ) {
    $keywords = '';
    foreach ($tags as $t) {
    $keywords.=$t->raw_tag.', ';
    }
    echo "n".'<meta name="keywords" content="'.substr($keywords,0,-2).'">'."n"; // displays any tags associated with a topic as keywords
    }

    }

    add_action( 'bb_head', 'meta_heads' );

    That will strip HTML, but not bbCode

    merlin214365
    Member

    So after trying many plug-ins for meta data i found out that most don’t work at all with the newest version of bbpress and others do a poor job so i decided to write my own little php code no plug-in needed.

    I wrote some php code to include a meta description based on the first 200 characters of the post and a default description if there is no post ( i.e the front-page ). Also meta keyword’s that displays any tags associated with that post as keywords.

    So just add this to your header

    <?php<br />
    if ($posts) {<br />
    foreach ($posts as $bb_post) : $del_class = post_del_class();<br />
    $old=ob_get_contents(); ob_clean(); ob_start(); // you may leave ob_start();<br />
    post_text();<br />
    $out.=ob_get_contents(); ob_clean();<br />
    endforeach;<br />
    $out = preg_replace('#<p[^>]*>(s| ?)*</p>#', '', $out); // takes out <p><br />
    $out = substr($out,0,200); // only displays the first 200 lines of the first post.<br />
    echo '<META NAME="Description" CONTENT="';<br />
    echo $out;<br />
    echo '">';<br />
    }<br />
    else {<br />
    echo '<META NAME="Description" CONTENT="This is your defalt description edit this to what ever you want ">'; // This displays when where is no post<br />
    }<br />
    global $tags;<br />
    if (!empty($tags)) {<br />
    $keywords=""; foreach ($tags as $t) {$keywords.=$t->raw_tag.', ';}<br />
    echo "n".'<meta NAME="keywords" CONTENT="'.trim($keywords,", ").'">'."n"; // This displays any tags associated with that post as a keyword<br />
    } ?>
    #80927

    In reply to: Get Profile Links

    function bb_get_admin_link( $args = '' ) {
    if ( !bb_current_user_can( 'moderate' ) )
    return;
    if ( $args && is_string($args) && false === strpos($args, '=') )
    $args = array( 'text' => $args );

    $defaults = array('text' => __('Admin'), 'before' => '', 'after' => '');
    $args = wp_parse_args( $args, $defaults );
    extract($args, EXTR_SKIP);

    $uri = esc_attr( bb_get_uri('bb-admin/', null, BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_ADMIN) );

    return apply_filters( 'bb_get_admin_link', $before . '<a href="' . $uri . '">' . $text . '</a>' . $after, $args );
    }

    So if you don’t mind bypassing the moderation ability check, just use

    esc_attr( bb_get_uri('bb-admin/', null, BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_ADMIN) );

    or

    bb_get_uri('bb-admin/', null, BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_ADMIN);

    depending if you’ll be escaping the URL later.

    To keep the check, use if ( bb_current_user_can( 'moderate' ) )

    #80855

    In reply to: Custom Theme

    PickledPC
    Member

    Yeah don’t want to use an iFrame. I can get it to call the header but nothing else. It’s not calling my stylesheet. I’m only using header, footer, front-page, style.css. WordPress theme wasn’t that bad as i have good knowledge of html and css but no php knowledge until now. BBpress is giving me a fit and I want it to work because I like it, don’t want to revert to a forum plugin….All the info I read is changing the default theme or using these simple files from the wordpress theme to start. Any suggestions?

    Thanks

    JesperA
    Member

    I tested both Valendesigns and Ohnas solution with no success, it just shows the default gravatar icon!

    Edit: BTW using bbPress 1.0.2

    #78900
    adamcap
    Member

    This doesn’t seem to be working for me, all users seem to be assigned a default profile from my wordpress sync plugin. They are assessed as anonymous for some reason and given a specific profile from that plugin.

    #80619
    chrishajer
    Participant

    It will integrate users with WordPress, if you want that.

    It’s easiest to just use the WordPress database – just be sure the table prefix is different for WordPress and bbPress. WordPress uses wp_ by default and bbPress uses bb_ by default. Just be sure they are different, or bbPress will mess up your WordPress installation. Like this:

    https://bbpress.org/forums/topic/extreme-database-help-im-an-idiot

    #80615
    hpguru
    Member

    bbPress example http://keskustelu.hpguru.net/ (Default Kakumei Blue theme)

    You can start from documentation https://bbpress.org/documentation/

Viewing 25 results - 5,576 through 5,600 (of 6,788 total)
Skip to toolbar