Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 25 results - 5,701 through 5,725 (of 6,775 total)
  • Author
    Search Results
  • #78064
    anandasama
    Member

    I already know how to filter out subforums, but what I want (Weird request i know) is to filter out the posts who have a parent forum in the Latest Discussions.

    I also wonder if there is anyone who succeeded in making the topic icons plugin able to show a “default” icon for topics.

    #31496
    anandasama
    Member

    I am using the Topic Icons plugin and it works great! However I’d like to display a “Default” Icon as a fallback if the Topic Icon plugin doesn’t do it for me.

    Ever since I started using Buddypress and integrated BbPress, Users can now use forum in “Groups” section. When a user creates a new group, A new subforum will appear. So that’s why I need to have a fallback Icon. I can’t manually sit and add numbers everytime there is a new subforum created.

    I already have a script for not showing these subforums in my Forums list.

    So another option than using a default topic icon would be to filter these topics (From the subforums) out from the Latest Discussions. But then I need a script in Latest Discussions to filter out all topics that come from a subforum. I never managed to do that.

    I use this for the forumloop:

    `<?php if ( bb_forums() ) : ?>

    <?php while ( bb_forum() ) : global $forum; if ($forum->forum_parent != 0) continue; ?>`

    But I cant get something similar working with topics. And Im afraid that If i filter out this I will have trouble with the page counter too.

    Somehow the best solution would be a Default fallback Topic Icon. Anyone have any idea how I can solve this?

    #67350

    In reply to: All setting use cache

    _ck_
    Participant

    No, the problem is much worse in 1.0.x

    Not only does the setting have no effect, 1.0 has a “reserved” option list which forces all foreign options (ie. set by plugins) to default to non-autoload, causing an extra query for each one unless they specifically add themselves to the auto-load list.

    So other than hacking nearly every single existing plugin, you can try my workaround:

    https://bbpress.org/forums/topic/heres-how-to-fix-some-of-the-10-query-performance-regression

    #77970

    @ Marius – If you create a wordpress page with the same name of the directory where the forum is, it will automatically take you there, because the directory overrides the page.

    If the forum is in a directory called “forums”, just create a page called “forums” and publish. The tab will appear in the blog menu as a new page and when you click on it, it will take you straight to the forums. I have done it this way too.

    Theme the forums like your wordpress template, like Ipstenu and gerikg have suggested and it will look perfectly integrated. To do this, you can use the Kakumei default theme, edit the header and footer files to look like the blog header and footer (background image, etc.), and match the css in the stylesheet where needed.

    Hope this helps.

    #77875
    chrishajer
    Participant

    In version 1.0.2 there is a search box by default. Are you looking for something different than what is built in?

    #77865
    Marius-
    Member

    Well ugh, there is no space there! I’ve checked ten thousand times already.

    <?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', 'michael_forum' );

    /** MySQL database username */
    define( 'BBDB_USER', 'michael_forum' );

    /** MySQL database password */
    define( 'BBDB_PASSWORD', '***' );

    /** 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', '' );
    ?>

    #22660
    neilogic
    Member

    Hi guys first of all thanks to _ck_ for wonderful plugins. We at Ubuntu India have put up or new forum theme which had been using the kakumei theme ever since it came up. Check out or new theme , designed on default Kakumei.

    http://forum.ubuntu-in.info/

    I hope you like it ,comments ( good or bad ) are welcome.

    #77863
    Marius-
    Member

    Well, here the entire thing is, with sensorship:

    <?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’, ‘michael_forum’ );

    /** MySQL database username */

    define( ‘BBDB_USER’, ‘michael_forum’ );

    /** MySQL database password */

    define( ‘BBDB_PASSWORD’, ‘***’ );

    /** 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’, ” );

    ?>

    #76698
    Josh Leuze
    Member

    @Ipstenu: I deactivated the Ajaxed Quotes plugin, didn’t seem to make any difference.

    I then deactivated all of the plugins, that didn’t change anything either.

    So I deactivated all the plugins and switched to the default theme. No changes. But when I reactivated those plugins, and switched to my custom theme, I am able to see those posts now, even when I am not logged in.

    The “+2 more” link still remains at the top, but the posts in the thread don’t seem change between the regular and all views. So it seems partially fixed, but the more link remaining makes think that more posts could get caught in this limbo.

    It almost seems like there was some caching involved and reactivating the theme and the plugins cleared this. But I don’t see that being the case with any of the plugins I am using. And it isn’t the brower’s cache, the problem is the same on multiple machines, any OS or browser.

    #76696
    Josh Leuze
    Member

    @chrishajer: I can sort of rescue a spam post. I don’t have any problem finding the spam posts in the admin panel, and marking them as “Not Spam”. They disappear from the spam posts and show up in the regular posts.

    But in the front end, they do not show up unless I am logged in as admin and click the “+2 More” link.

    I am using a custom theme, but it is built from Kakumei and should not be very functionally different from that. I switched back to the default theme, and everything functioned the same.

    Gautam
    Member

    I have seen many people asking that tags are not getting deleted in bbPress 1.0 (Even I faced the same problem, but it was working in the default theme). So I just thought of writing a solution for it.

    Open the topic-tags.php of your theme.

    You would find something like this:

    <?php if ( $public_tags ) : ?>
    <div id="othertags">
    <ul id="yourtaglist">
    <?php foreach ( $public_tags as $tag ) : ?>
    <li id="tag-<?php echo $tag->tag_id; ?>_<?php echo $tag->user_id; ?>">
    <a href="<?php bb_tag_link(); ?>" rel="tag"><?php bb_tag_name(); ?></a> <?php $tags = bb_get_tag_remove_link (); if ($tags) echo '<small>'.$tags.'</small>'; ?>
    </li>
    <?php endforeach; ?>
    </ul>
    </div>

    Replace it with:

    <?php if ( bb_get_topic_tags() ) : ?>
    <?php bb_list_tags(); ?>

    That’s it!

    You can also view the changes to topic-tags.php of the default theme in the trac:

    http://trac.bbpress.org/changeset?old_path=%2Ftrunk%2Fbb-templates%2Fkakumei%2Ftopic-tags.php&old=940&new_path=%2Ftrunk%2Fbb-templates%2Fkakumei%2Ftopic-tags.php&new=2344

    #77873
    chrishajer
    Participant

    What version did you install? Search is built in to all versions, but only visible by default in the 1.0 version.

    Or, are you trying to search bbPress from WordPress?

    spencerjw
    Member

    For some reason I am getting errors when I try to install a custom theme. I took a default theme and copied it into the my-templates directory and it seems all permissions stuck as the default but I am getting an UNstyled site (CSS path is correct) and even the Screenshot sin’t displaying (just a blank image) in the Admin area.

    See below (but permissions *are* all correct):

    Forbidden

    You don’t have permission to access /wp/bbpress/my-templates/mythemetest/screenshot.png on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    #77821
    chrishajer
    Participant

    You can just delete the files from the file system, if that’s what you mean. If you use an FTP client, there should be a way to delete the whole bbPress folder/directory (normally right click and “Delete” then answer the prompts). That will remove bbPress. You can remove the database tables next with a tool like phpMyAdmin. Hopefully your host provides something like that. You can log in and delete any table with a bb_ prefix, or whatever prefix you chose when installing (default is bb_).

    Good luck.

    #77573
    chrishajer
    Participant

    You will need someone who can help you debug the code then. Something is out of order.

    You can post your whole topic.php at pastebin and post a link here:

    http://pastebin.com/

    Make sure you let the code stay there longer than one day (default is a month which should be OK)

    #77491

    In reply to: All RSS Feeds Broken?

    Rohan Kapoor
    Member

    Nope that didn’t help. I reloaded the rss2.php file to the default kakumei and then disabled deep integration as well. The client states that rss is very important to him. Does anyone have any ideas?

    #31357
    TonyVitabile
    Member

    OK, here’s the functions.php file that I created in my theme to reproduce the drop down menu I had on my WordPress side.

    Please note that this code does not attempt to reproduce all of the functionality of the WordPress wp_list_pages() function. Rather, it just tries to create the HTML needed for the drop down menu code that came with my WordPress theme to work. If you need anything more than that, feel free to modify this or strike out on your own.

    Overview

    Before the code, just a quick overview of how it works.

    The function bb_list_pages() is a recursive function that returns a string containing the HTML for all of the pages that descend from a particular ancestor. The process is started by calling it with a parent ID of 0. The way the wp_posts table in WP is designed, this returns the highest level.

    The function calls a helper function called get_pages() to retrieve the list of child pages from the database. It then loops through all of the pages returned by get_pages() & constructs the list item & anchor tags. It then calls itself to build the HTML for any descendants of the current page.

    Here’s the code:

    <?php
    /**
    * This file contains useful functions that can be called in any of the template's files.
    *
    * Version 1.0
    * Date: 23-July-2009
    * Author: Tony Vitabile
    */

    function curPageURL() {
    $pageURL = 'http';
    if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
    $pageURL .= "://".$_SERVER["SERVER_NAME"];
    if ($_SERVER["SERVER_PORT"] != "80") {
    $pageURL .= ":".$_SERVER["SERVER_PORT"];
    }
    $pageURL .= $_SERVER["REQUEST_URI"];

    return $pageURL;
    }

    /**
    * Compute the name of the WordPress pages table & return it
    */
    function pages_table() {
    global $bb;

    // Compute the name of the table we need to query
    $table = $bb->wp_table_prefix;
    if ($bb->wordpress_mu_primary_blog_id != "")
    $table .= $bb->wordpress_mu_primary_blog_id."_";
    $table .= "posts";
    return $table;
    }

    /**
    * Retrieve a list of pages from the WordPress posts table whose parent has the ID
    * passed to this function.
    *
    * @param int $parent ID of the page that is the parent of the ones we're searching for
    * @return array List of pages matching defaults or $args
    */
    function get_pages($parent = 0) {
    global $bbdb;

    // Compute the name of the table we need to query
    $table = pages_table();

    // Build our query string
    $parent = (int) $parent;
    $query = "SELECT * FROM {$table} WHERE post_type = 'page' AND post_status = 'publish' AND post_parent = {$parent} ORDER BY menu_order";

    // Get an array of rows back from the database
    $pages = $bbdb->get_results($query);

    // Return whatever we got back to the caller
    return $pages;
    }

    /**
    * Simple function to recursively scan the WordPress posts table looking for pages.
    * It builds a string consisting of <ul><li></li>...</ul> items.
    *
    * @param int $parent ID of the parent page. 0 = no parent
    * @param int $depth How far down in the heirarchy to go
    * @param string $thisPage The name of the page that is currently being displayed
    * @returns string A <ul><li></li>...</ul> list of page navigation information
    */

    function bb_list_pages($parent = 0, $depth=0, $parent_uri='', $indent=' ') {
    // Initialize the output of the function
    $output = "";

    // Is the depth = 0?
    if ($depth == 0) {
    // It is. Return the empty string now
    return $output;
    }

    // Get the child rows of $parent
    $pages = get_pages($parent);

    // Did we get any pages back?
    if ( empty($pages) ) {
    // No, we didn't. Return the empty string now
    return $output;
    }

    // Yes, we got pages back. Loop through all of the pages in our results
    foreach ( $pages as $page ) {
    // Compute this page's URI
    $page_uri = $parent_uri;
    if (substr($page_uri, -1) != '/')
    $page_uri .= "/";
    $page_uri .= $page->post_name . "/";

    // Build the <li> tag
    $output .= "{$indent}<li class="page_item page-item-{$page->ID}";
    if ($page_uri == curPageURL() ) {
    $output .= " current_page_item";
    }
    $output .= "">";

    // Now build the rest of this item's information
    $output .= "<a href="{$page_uri}">".$page->post_title."</a>n";

    if ($page->ID > 0) {
    // Get this page's children recursively
    $kids = bb_list_pages($page->ID, $depth -1, $page_uri, '', $thisPage, $indent . " ");

    // Does this page have any children?
    if ($kids <> "") {
    // It does. Add the information for the kids surrounded by <ul></ul> tages
    $output .= "{$indent}<ul>n" . $kids . "{$indent}</ul>n";
    }
    }

    // Output the closing </li>
    $output .= "</li>";
    }

    // Return the string to the caller
    return $output;
    }

    ?>

    Tony

    #77353
    thekmen
    Member

    Looks like you are still using the default kakumei theme in bb-templates/kakumei.

    As well as renaming your modified template in my-templates/ have you edited that themes style.css to reflect the new name? then selected that new name in your admin/themes selection?

    #77331

    In reply to: Role = Main?

    deadlyhifi
    Participant

    http://www.w3.org/TR/xhtml-role/#s_role_module_attributes explains the role attribute.

    could the other issue be to do line endings? LF, CR, CRLF, etc. I use Coda (mac) and that is set to UNIX LF as default.

    #31329

    Topic: Role = Main?

    in forum Themes
    Mark / t31os
    Member

    Googled, searched the forum, it’s hard to create a specific search for something like the above without getting irrelevant results..

    Had a dig and couldn’t find the answer….

    bbPress 1.0

    I’ve noticed throughout the default themes are references to..

    role="main"

    Firstly, what does this do? .. In some cases removing this from a template file reseults in the file not working.

    Secondly, is there an alternative, these lines are causing invalidtions.

    It’s not the end of the world, i can live with them, but some info on what they are for would be most helpful, if one of you lovely chaps could help.. :)

    As a side question, and this one again isn’t a huge problem, i find tabbing in code in certain files causes T_ error messages, T_SWITCH, T_CASE, depending on where and what i’m editting.. I like to indent the code appropriately when i’m working on it, but as said i simply can’t do this with particular template files..

    Any ideas on that one?

    I’m using Notepad++ and Notepad2 for editting, same programs i use for modifying WordPress. I’m using the correct encoding, transfer type etc… i’m use to handling code..

    #77253

    In reply to: Custom user password

    _ck_
    Participant

    Wait, I take that back, it’s in the theme, so you can definitely edit it.

    It’s in register.php and assuming you are using the default theme, it’s under bb-templateskakumei

    What you should first do is copy that directory to a new directory and make a directory called my-templates at the same level as bb-templates, so it would be my-templateskakumei

    Then edit the new copy of the files instead of the original and have bbpress switch to your new theme. That way when you upgrade you won’t lose your changes.

    #31326
    _ck_
    Participant

    I got tired of waiting for error pages that don’t crash the user into the default bbPress theme and logo so here’s a plugin that makes an empty post error message actually stay within your custom theme. I’ll make it into a formal plugin as soon as I make it a bit more robust.

    Let me know of other common error pages and I will see if they can be addressed via plugin vs a core hack.

    http://pastebin.com/f2e46536d

    (direct download, save as themed-error.php)

    #77210

    In reply to: Issue with tags

    sdv1
    Member

    Thanks chrishajer!

    it definitely doesn’t give good impression to first time visitors …..I’m using default theme.

    for these long tags, is it possible to move truncating word to new line or keep small font (but bold) for long tags.

    please suggest me something to fix this.

    #77091
    chrishajer
    Participant

    Let’s say I have a WordPress site. I don’t want it to be http://www.example.com/wordpress/ – maybe I want it at http://www.example.com or maybe http://www.example.com/blog/. Making WordPress the root of your site is easy, and I think you’ve already done that.

    To mask bbpress, just rename the folder to something other than the default when it’s unzipped of bbpress. Call it ‘forums’ or ‘discussions’. If you rename the bbpress folder before you start, you don’t need to change anything later. If you’ve already installed it, then there are a couple config hoops to jump through to move it.

    You could also do a subdomain installation, like forums.example.com and not even show that it’s in a subdirectory at all. Then just map that subdomain to the directory where you’ve installed bbPress on the server. No need for directories at all in the URI/URL.

    Masking is pretty silly, since one look at the source (if you even need to go that far, for WordPress and bbPress) will give away the secret (wp- and bb- anyone?) If you’re just trying to remain application-neutral, then I agree that this is worth doing (i.e. let’s say you want to use punBB or something later. If you used /forums for your bbPress installation, you can retain /forums and just install punBB in there.)

    #76923
    Josh Leuze
    Member

    Thank you for the info, it was very helpful!

    @chrishajer – I checked my .htaccess file, and the permissions were incorrect, II tweaked that, and bbPress added the rewrite rules without issue.

    @incirus – Yes, my forum is converted from phpBB as well, I don’t know why I didn’t think of that before. I checked a new topic, the pretty permalink worked just fine. I checked an old topic in the database, no slug. i added a slug and it worked great.

    Unfortunately I have 875 topics that I would have to edit my hand… That’s too bad, one of the draws of migrating to bbPress are the useful permalinks.

    Has anyone out there come up with a handy script to solve this problem? I’d imagine the code is already there, since bbPress already converts your topic title into a slug, it would just be a matter of having it process all of the old titles. But I think that’s a bit out of my league!

    Hell, I’d settle for a way to use slugs from here in out, but fall back on the default permalinks if there is no slug, but I think that would be more complicated.

Viewing 25 results - 5,701 through 5,725 (of 6,775 total)
Skip to toolbar