Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress'

Viewing 25 results - 20,601 through 20,625 (of 26,865 total)
  • Author
    Search Results
  • #77432
    chrishajer
    Participant

    If you are using 1.0, create a file called functions.php in your current theme directory, and put all that code into it.

    If you’re using less than 1.0, you can create a plugin from that code. Just add a plugin header to the top of all that, like this:

    <?php
    /*
    Plugin Name: WordPress pages for bbPress
    */
    ?>

    And put it into file called something like wordpress-pages.php and drop that into folder called my-plugins at the same level as bb-plugins. If the folder is not there, you can create it. After it’s in the folder, log into the admin, you should see it there, then activate it. And report back how it worked for you.

    Thanks

    #77431
    aprendedor
    Member

    where will you put this file. and how would you link it to the theme? I would love to try it but I am not sure how to address it.

    #31364
    chasingu
    Member

    Ok. So I don’t want my wordpress anymore. However, I do want the forum. So what i need is the members from the site to be transfered to the forum with all their information intact along with the topics. I also want to move the forum from bbpress to the root. Thanks in advance.

    #77430
    chrishajer
    Participant

    I would think that would be useful as a plugin for people wanting to integrate their WordPress page navigation into bbPress. has anyone tried it out?

    chrishajer
    Participant

    What version are you using, is it integrated with WordPress and are you using a language file?

    chrishajer
    Participant

    Another way to do it is with Nathan Rice’s “Custom Field Redirect Plugin”:

    WordPress Plugins

    I know the horse has left the barn, but I was using all manner or redirect hacks and finally settled on this one and never looked back.

    TonyVitabile
    Member

    FF 3.5.1. Running on a recent MacBook with OS X 10.5.7.

    I deleted all of the cookies in Firefox & cleared the cache. No difference in behavior.

    The hosted site is definitely working right. Could it be some kind of rights issue on the local files?

    Tony

    What version of FireFox?

    Have you dumped your cache and flushed your cookies?

    #31358
    TonyVitabile
    Member

    I like the way that WordPress.org’s forums have buttons for inserting the allowed mark-ups. Did they just add those buttons themselves? Is there a plugin that does that?

    While I’m at it, I’d like people to be able to insert links to images in their bbPress posts. I don’t want anyone uploading their images to my server, but if they want to put a picture up on Kodak.com or photobucket.com or wherever & link to it, I’m ok with that. Are there any plugins that do that?

    Tony

    TonyVitabile
    Member

    Friendly bump.

    I know it’s summer & times are slow. I cannot use Firefox to view the local copy of my website when I am making changes. If I am using Firefox, I have to make my changes locally, upload them to the host, and then I can test the changes. This is a lot slower than doing everything locally — just from the increased number of steps.

    Thanks

    #31345
    Josh Leuze
    Member

    I’m working on my first bbPress theme and I am going to have two columns on most pages. I will likely vary the content of this second column depend on which page you are on.

    I’d like to use a separate sidebar just like WordPress so that I can create a few different files that I could load.

    These sidebars need not draw any content from WordPress, I don’t need deep integration or anything. I’m just wondering what would be the best way to go about doing this.

    Theme Playground’s bbPress forum has it’s sidebar added to the footer.php file, which sounds like a good idea, but seems a bit impractical for multiple sidebars.

    I also found this simple sidebar plugin in the forums which adds the “bb_get_sidebar()” function to bbPress. A neat idea, but I hate to frivolously add extra plugins, especially when it is essential for the theme to work properly.

    So what I have done in my theme is to simply use an include like this:

    <?php include ('sidebar.php'); ?>

    This has been working fine for me and I don’t see any reason not to do it like this.

    But does anyone else have a different method that has some advantage? Or is there plans for, or already an official function like “bb_get_sidebar()” that I am unaware of?

    Make sure you flush all your cookies and then double check that the keys from wp-config are correct in bb-config. Usually that’s a cookie missmatch.

    anandasama
    Member

    In WordPress you need to Rewind posts for faking multiple loops but it doesn’t exist in BbPress?

    @tom thanks for the core hack. I will try it, and then write a custom query for forum 17 with no pagination.

    #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

    tomschulze
    Member

    Yup, I do… even though I thought that for WP 2.8.x this is no longer required. Anyway, it doesn’t make a difference whether it’s activated or not, I’ve tried both.

    sonnygahir
    Member

    I found this site, very useful for anyone trying to install/configure php on windows server: http://www.iisadmin.co.uk/?p=4

    Following the above article, and related mysql & wordpress articles, all now works.

    #77396
    Jim R
    Participant

    Not sure I’m changing both the cookie keys, but I am making sure they match. BTW…I’m using WPMU. Latest versions of both products.

    #77357
    johnhiler
    Member

    Here are some instructions on how to change your file permissions using an FTP client:

    https://codex.wordpress.org/Changing_File_Permissions#Using_an_FTP_Client

    #77395
    Sean Metzgar
    Member

    this video helps greatly.

    https://bbpress.org/forums/topic/basic-integration-screencast

    (you can skip some of the beginning, it’s him installing wordpress.)

    #77394
    Sean Metzgar
    Member

    You need to ensure you’re changing the cookie keys located in the bb_config and wp_config files. Also make sure you’re using the appropriate wp/bbp integration plugin.

    #31349
    Jim R
    Participant

    Both systems are using the same database, and they each recognize my User account information. However, when I log into one, it doesn’t log me into both.

    #31348
    Lee Penney
    Member

    A quick suggestion to make finding things easier on large forums (i.e. WordPress.org/support), could you add date-based filtering options (i.e. options to only show posts/topics from the last 24hrs, week, month, year) so you can narrow an issue that may be recent.

    Thanks

    TonyVitabile
    Member

    Well, I’ve been able to get my theme to look & work the way I want it to. So all’s good.

    I just have to figure out how to get my drop-down menus to work.

    Thanks

    Tony

    #77361

    Please be patient. Waiting about an hour between bumping is a little rude for a forum full of volunteers :)

    What are you using for the rest of your site? PHP pages, WordPress?

    #77278
    Sam Bauers
    Participant

    Though I am certain someone will clone it in short time like the did with wordpress.org

    I’ll release anything interesting that comes out of the work, but so far it’s pretty standard stuff.

Viewing 25 results - 20,601 through 20,625 (of 26,865 total)
Skip to toolbar