Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for ' . default . '

Viewing 25 results - 5,726 through 5,750 (of 6,789 total)
  • Author
    Search Results
  • #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.

    #74861
    plrk
    Member

    My theme is based on the default theme, and it works like a charm… It could be that you have based your theme on an older version of Kakumei that did not use the translation functions everywhere.

    #74860

    @plrk: Got your E-mail. I actually do have this thread as a favorite, thanks anyway for the update though! (I wished this forum had the E-mail notification option…)

    It works! Thanks!

    However my time-relevant php aren’t translated still. The strange thing is that those functions aren’t touched at all. I’ll have to dig again to see if there are any errors related to the __ -stuff. One would think the default theme wouldn’t have any problem with the translations(?) :)

    #75896
    Raize
    Member

    I was wondering the same thing…the default theme that comes with bbpress is not nearly as nice as this one

    #76643
    chrishajer
    Participant

    What version of bbPress are you using? Those instructions are for 1.0.1. Also, are you using a stock theme?

    Basically, you need to find, in whatever template file you want to change, the bbPress function that shows that text (it won’t be immediately clear because the function has a default text which is used if you don’t send it anything else. The default text is set in the core file bb-includes/functions.bb-template.php.) Just look in the source of the generated page and try to get some context for where in your template file this function will be (top, middle, bottom, in a table cell, near a unique css id, etc). Then, try adding your text in comments inside the parentheses, instead of them being bare. So, from this:

    bb_do_whatever()

    to:

    bb_do_whatever('Add New Essay')

    #76641
    chrishajer
    Participant

    2. of my reply covers your second problem.

    <?php bb_new_topic_link('Add New Essay'); ?>

    bb_new_topic_link is called without parameters in your front-page.php template file, but if you pass it the string ‘Add New Essay’ you will see the text in your displayed site change. You are overriding the default text which is in the bbPress core.

    The reason you don’t find it in a template file is because it’s not there. The function is there, and is called without parameters. The default text is in the core, but you can override it in your template.

    1. I cannot help you with and I questioned the desire to even do something like that. Why would you want an “add new” page indexed when it has no content? What benefit does it give your site?

    I imagine you could probably do something to change that using mod_rewrite and your .htaccess file, but I don’t know how to do that.

    #16187
    blah
    Member

    With the default settings, the “add new topic” link directs to http://yoursite.com/?new=1

    How can I change “?new=1” to something more SEO friendly like “add-new-topic”?

    #76617
    Gautam
    Member

    Create a functions.php file in your theme folder, and write this in it:

    <?php
    function get_post_teaser($chars = 200){
    global $bbdb;
    $topic_id_ft = get_topic_id(); //topic id for getting text of first post of the topic
    $first_post = (int) $bbdb->get_var("SELECT post_id FROM $bbdb->posts WHERE topic_id = $topic_id_ft ORDER BY post_id ASC LIMIT 1");
    $content = substr(strip_tags(strip_shortcodes(get_post_text($first_post))),0, $chars); //gets the first 200 chars of the post
    return $content;
    }
    ?>

    Then at the front page, put this where you need to display the post text (it should be inside the loop):

    <?php echo get_post_teaser(200); ?>

    You can change that 200 to anything, any number of letters you want. Default is 200.

    I think, this should work.

    #76598
    bb-gian
    Member

    crackpixels,

    In bbPress Comments are generally called Posts.

    I think the Posts column is set up by default.

    In the Latest Discussions table, look for this cell: <th><?php _e(‘Posts’); ?></th>, which is the title of the column, and this:<td class=”num”><?php topic_posts(); ?></td>, which is the content of the comuns, displaying the number of Posts (Comments).

    #76463
    johnhiler
    Member

    If the comment counts are off, try running a recount?

    Also… try activating the default Kakumei theme and see if the post form appears (and the freshness works properly). If so, the issue may be with your theme…

    #76350
    _ck_
    Participant

    First try switching your theme to the alternate and back again.

    If that does nothing, temporarily deactivate any plugin you may be using and see if that does it.

    Oh wait, you’ve been hacking at your theme.

    <div id="discussions" align="left">

    There’s no way that’s the default, you must have edited that.

    Replace the theme files from the original.

    So far it only looks like you edited front-page.php, so try replacing it with this in bb-templates/kakumei

    http://svn.automattic.com/bbpress/trunk/bb-templates/kakumei/front-page.php

    #75728
    _ck_
    Participant

    I noticed many of the old constants are not defined anymore by default.

    A few plugins, definitely not all just a few, may be fixed somewhat by adding this to bb-config.php

    define('BB_LOAD_DEPRECATED',true);

Viewing 25 results - 5,726 through 5,750 (of 6,789 total)
Skip to toolbar