Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 21,651 through 21,675 (of 32,495 total)
  • Author
    Search Results
  • #86660

    In reply to: Continuing Topic Icons

    Kevin Ryman
    Participant

    Funny thing! I was about to email you about this! Like Gerik said, this would be very useful! Anyone up for the job? :)

    gerikg
    Member

    This is going to be complex to explain but I’m going to try.

    This is from front-page.php

    <?php if ( bb_forums() ) : ?>
    <h2><?php _e('Forums'); ?></h2>
    <table id="forumlist">

    <tr>
    <th><?php _e('Main Theme'); ?></th>
    <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>
    </tr>
    <?php while ( bb_forum() ) : ?>
    <?php if (bb_get_forum_is_category()) : ?>
    <tr<?php bb_forum_class('bb-category'); ?>>
    <td colspan="3"><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
    </tr>
    <?php continue; endif; ?>
    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php endwhile; ?>
    </table>
    <?php endif; // bb_forums() ?>

    This basic says the table headings are Main Theme, Topics, and Post. I wanted each category to be in it’s own table.

    So if you have a category, let’s say category “Welcome” and a child forum “Welcome to Our Site” and a category “Support” and child forum “PHP Help” it will display: (the dashes are spaces, ignore them)

    -Main Theme


    Topic–Post

    -Welcome


    —Welcome to Our Site


    0


    0

    -Support


    —PHP Help



    0


    0

    but I wanted:

    –Welcome


    Topic–Post

    —Welcome to Our Site


    0


    0

    -Support


    Topic–Post

    —PHP Help



    0


    0

    SO I thought it was easy so I did this:

    <?php if ( bb_forums() ) : ?>
    <h2><?php _e('Forums'); ?></h2>

    <?php while ( bb_forum() ) : ?>
    <?php if (bb_get_forum_is_category()) : ?>
    <table id="forumlist">
    <tr<?php bb_forum_class('bb-category'); ?>>
    <th><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><br /><?php forum_description( array( 'before' => '<small>', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?> <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th></td>
    </tr>
    <?php continue; endif; ?>
    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><br /><?php forum_description( array( 'before' => '<small>', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>

    <?php endwhile; ?>
    </table>
    <?php endif; // bb_forums() ?>

    Which works great but I have to have every title under a category now. If I have a forum title “Websites” not under a category, this is what I get:

    Websites00

    –Welcome


    Topic–Post

    —Welcome to Our Site


    0


    0

    -Support


    Topic–Post

    —PHP Help



    0


    0

    Or it latches itself to another category

    –Welcome


    Topic–Post

    —Welcome to Our Site


    0


    0

    —PHP Help


    0


    0

    -Support


    Topic–Post

    —PHP Help



    0


    0

    So I need a statement that says if it’s not in a category it will print the title ONCE

    <tr>
    <th><?php _e('Main Theme'); ?></th>
    <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>
    </tr>

    So it will print:

    –Welcome


    Topic–Post

    —Welcome to Our Site


    0


    0

    -Support


    Topic–Post

    —PHP Help



    0


    0

    -Main Theme


    Topic–Post

    —PHP Help


    0


    0

    Make sense?

    #86623
    zaerl
    Participant

    Modify #header and eliminate the background property. Then on bb-templates/kakumei/header.php put your code at line 30. If you don’t want that h1 points to the forum change <?php bb_uri(); ?> with your link.

    This is a HTML/CSS question and not a bbPress one.

    #86641

    In reply to: Thesis integration?

    @chrishajer – I thought some more about what you wrote regarding the WordPress plugin idea.

    I imagine, having worked with BBPress for so long, you guys are no longer concerned or have forgotten just what a royal pain in the butt it is to set up. Most of the pain could be avoided if it had been scripted and become a simple CPanel/Softaculous install, for example, but it hasn’t.

    I am new to BBPress, and I have to say that my first impression is, compared with BuddyPress installation/integration (which is already that simple WordPress plugin), BBPress has a looooong way to go.

    And I suspect, one of the reasons why there is such a big difference in the size of the respective communities, is that most of you guys don’t mind/quite like to fiddle with the technical stuff.

    Haven’t you got the engine room steering the ship? Where are the ‘marketing guys’ out there finding out what the people really want, and steering the development, rather than what interests the coders?

    It might surprise you to know (well I know it would surprise the coders), most people (WAY more people in the world), just want THEIR WordPress to load a plugin right into THEIR existing theme, and off they go.

    Badabing badaboom!

    I can’t see how, if the developers of BBPress can’t make it that simple, and also a darn site more compatible with WordPress itself, how its ever going to survive. Really.

    And with the release of the merged v3.0 not far away, is that opportunity going to be grabbed or lost?

    Positics
    Member

    I have a similar challenge to the earlier topic “Linking back to main website”. It is for a site I have configured for someone, who has asked for the same ability for their logo to have a link associated to it, that will take the user back to the home page of site that pointed them to the blog / forum.

    I have installed bbpress 1.02

    You suggested the following;

    in header.php where the body tag starts.

    ===========================

    <body id=”<?php bb_location(); ?>”>

    <div id=”wrapper”>

    How do I locate this logo in the top right hand corner of the header where the default bb_emblem was located?

    “<a’x’ href=”http://www.reflexology-uk.net/site”><img src=”images/iior.jpg” alt=”ITEC” /><‘x’/a>”

    ===Note===== ‘x’ === added in string above to break code so it will print =====

    At presentI have a logo situated in the CSS file as a background, which you suggest is not the right way to go about achieving this.

    Any pointers will be useful. Thanks.

    #86096
    mr_pelle
    Participant

    dogeil, try these plugins:

    I had a similar need and I modified the former, ending up with a new (yet-to-be-released) plugin which redirect every non-logged-in user to a custom page. =D

    #78850

    I just happened to stumble upon this problem using both codeigniter and bbpress, and the solution was to plain remove all variables settings by references, and let the plain old “=” do the job (thanks @ Cyril Janssens).

    For some reason it doesn’t work if you let those references.

    Edit: You also need to specify global $bbdb, global $whateverVar in your controller, or you’ll get the same errors.

    Cheers!

    #86633

    In reply to: Thesis integration?

    A “Thesis page” is just like any other html/php/css WP page except that it uses Thesis Hooks, which is the framework Chris Pearson created to sit on top of WP and is far more efficient than the underlying WP code. It looks like this…

    <?php

    // Using hooks is absolutely the smartest, most bulletproof way to implement things like plugins,
    // custom design elements, and ads. You can add your hook calls below, and they should take the
    // following form:
    // add_action('thesis_hook_name', 'function_name');
    // The function you name above will run at the location of the specified hook. The example
    // hook below demonstrates how you can insert Thesis' default recent posts widget above
    // the content in Sidebar 1:
    // add_action('thesis_hook_before_sidebar_1', 'thesis_widget_recent_posts');

    /**
    * function custom_bookmark_links() - outputs an HTML list of bookmarking links
    * NOTE: This only works when called from inside the WordPress loop!
    * SECOND NOTE: This is really just a sample function to show you how to use custom functions!
    *
    * @since 1.0
    * @global object $post
    */

    function custom_bookmark_links() {
    global $post;
    ?>
    <ul class="bookmark_links">

    <li><a rel="nofollow">&title=<?php urlencode(the_title()); ?>" onclick="window.open('http://delicious.com/save?v=5&noui&jump=close&url=<?php urlencode(the_permalink()); ?>&title=<?php urlencode(the_title()); ?>', 'delicious', 'toolbar=no,width=550,height=550'); return false;" title="Bookmark this post on del.icio.us">Bookmark this article on Delicious</a></li>
    <?php
    }

    Thesis is on one level, just an additional library of high level functions, and at another, its an incredibly easy way to design and manipulate your theme/template. The structure of the framework and the finished theme it provides also happen to be presented in a very SEO conscious way, which is obviously a big selling point.

    What I would really like to see is a BBPress Template written for Thesis. Hmmm. I wonder. How hard can that be?

    #76041
    chrishajer
    Participant

    If this is the home page of the website:

    http://oakleafmeadowshoa.net/

    Then that is what your link will be. Just like this:

    <a href="http://oakleafmeadowshoa.net/" title="website home">Website Home</a>

    Is it any more complicated than that? You don’t necessarily need a page name in there, the web server will serve up the default index page for that site. If that’s the page you want, then you’re done.

    #86611

    In reply to: Templates for 1.x ???

    johnhiler
    Member

    Glad to hear it! :-)

    #86609

    In reply to: Templates for 1.x ???

    johnhiler
    Member

    bbPress is still a small community… we’re not as big as say, the WordPress community, and we don’t get the sort of corporate commitment and support that they do. So what you’re left with is mostly us volunteers, trying to help each other get the most out of free software that we all use and enjoy. :-)

    There are a couple 1.0 compatible themes on the forums… try some of these links maybe?

    http://www.google.com/search?q=theme+site:bbpress.org/forums

    Here are a few of the ones that support 1.0+:

    https://bbpress.org/forums/topic/new-vanilla-2-inspired-theme

    https://bbpress.org/forums/topic/new-theme-carrington-blog-for-bbpress

    https://bbpress.org/forums/topic/new-theme-superbold-revisited-for-bbpress

    #33951

    Topic: Templates for 1.x ???

    in forum Themes

    Is it me or are there really NO templates out there for BBPress 1.x out there?

    I must say that, as a newcomer to BBPress, I find it very disappointing to find out that template developers not updating their products and leaving cryptic messages on their sites about how BBPress has no cogent leadership. Sorry, can’t remember where I read that or I WOULD leave the URL.

    Code underneath and they way it works looks pretty neat though.

    Oh well, I guess things can only get better… 8^)

    #86596
    johnhiler
    Member

    It’s probably one of your plugins… can you post a list of which plugins you’re using?

    Also – try installing this, so we can get a sense for how many queries you’re using – and how long they take to generate a pageview! :-)

    https://bbpress.org/plugins/topic/bb-benchmark/

    #86584
    Duke
    Member

    My bad.

    When I replaced the auth_key, secure_auth_key, logged_in_key and nonce_key, i pasted it directly from wp-config and didnt add the BB_ before every key.. so it was obviously not working.

    All good now!

    Thank you guys :)

    #86580
    Duke
    Member

    :D just showing my gratitude!

    Because the documentation is so.. not existent.. you were really nice in helping me out on this one :)

    I have another question though…

    Now it wont detect my login on bbpress, when Im connected already to WP.

    I changed the wp security keys in WP, and put the same auth/secure/logged_in/nonce key from wp config inside bbpress config file.

    I also added define(‘COOKIE_DOMAIN’, ‘.mydomain.com’); but it’s still not detecting that i already logged in from wp.

    When i try to access bb-admin, I fill in user and pass from wp, but i get redirected to the forum homepage.

    Maybe the auth keys (salt or else?) must be reconfigured in the db as well (because i changed the wp ones in this new server) ?

    #86579
    zaerl
    Participant

    I actually love you :)

    Whoa.

    this kind of info should be set in the config file

    As far as I know you can define USER_BBDB_NAME, USER_BBDB_USER, USER_BBDB_PASSWORD, and USER_BBDB_HOST in bb-config.php but I don’t know if it is the right way of doing things. There is no documentation.

    #86578
    Duke
    Member

    I actually love you :)

    Thank you so much, I missed exactly this information!

    One little suggestion for the next BBpress release… this kind of info should be set in the config file, like everything else… users should not wander around in the database ;)

    #86369
    chrishajer
    Participant

    So, it needs to be a subforum so it shows up in your list of forums, but when they click it, they don’t get a forum, they get redirected to a WordPress page?

    You could do it with a 301 (permanent) redirection your .htaccess. You would just redirect the old (subforum) URL to the new (WordPress) URL.

    The format would look something like this (assuming pretty permalinks):

    Redirect 301 /forums/forum/subforum-name/ http://www.example.com/your-wordpress-page-slug/

    The first part is relative (just the stuff after the domain name) , and the second part is a full URL. If you get a white screen after adding that to your .htaccess, it means the syntax is wrong and you have to redo it.

    zaerl
    Participant

    forum_description(array( 'before' => ' '));

    #86577
    zaerl
    Participant

    they each had one separate db

    I didn’t know this. Open phpmyadmin and check table bb_meta:

    user_bbdb_name

    user_bbdb_user

    user_bbdb_password

    user_bbdb_host

    put on the new values.

    #86575
    zaerl
    Participant

    Are the settings:

    define( 'BBDB_NAME', 'bbpress' );
    define( 'BBDB_USER', 'username' );
    define( 'BBDB_PASSWORD', 'password' );
    define( 'BBDB_HOST', 'localhost' );

    equal to WordPress counterparts?

    #86587
    zaerl
    Participant

    Oper hidden-forums.php. Line 29:

    $hidden_forums['label']="This is a hidden forum ";

    #86542
    Damien
    Member

    I just noticed that actually :)

    Back to the drawing board…

    #86536
    moochyschwag
    Member

    I literally just replaced every file on the server except the config file. I checked both themes: kakumei and kakumei blue. And it’s still gone. :( No plugins are active or even on the server except Askimet, Bozo Users and Hello Louis all of which are disabled. Is there another version of bbpress I can use?

    #33946
    Duke
    Member

    Hello,

    I recently moved a WP site + BBpress to another host (but im using the same domain), so I set up whole new DB for each, and imported the old DBs.

    WP is working fine, I just had to edit the wp-config file and it connected perfectly to the new db (with the old data imported).

    The problem is BBpress now. I thought that just editing the DB info in the bb-config file with the new DB would have been enough, but it’s now giving me this: ERROR: Could not establish a database connection

    But I know that everything is correct! (i use a plugin on WP that retrieves all the topic from BBpress and it is retrieving everything from the new BBpress DB).

    I wonder if there’s more I should edit? but where?

    Could the problem be that WP and BBpress were integrated? Where can I change the WP integration info for BBpress? Maybe BBpress is trying to find the old WP db info on the old server?

    Help please :(

Viewing 25 results - 21,651 through 21,675 (of 32,495 total)
Skip to toolbar