Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 29,651 through 29,675 (of 32,432 total)
  • Author
    Search Results
  • #59151
    kjted
    Member

    Hi fel. I’ll post up later today the process I went through. I’ll get the latest version of the class right now! :) Thanks for the heads up.

    I’ve also done some work with CodeIgniter and Flash integration which I’ll post a link to later in case anyone does CI development (off topic I know but still valuable).

    #58991
    fel64
    Member

    I can’t remember which version added what, but make sure to activate your plugins in bb-Admin/Site Management or they won’t work.

    Try this:

    <?php $user = bb_get_user( topic_last_poster() );
    get_user_profile_link( $user->ID ); ?>

    You can make it one line if you want but you need those semicolons.

    #58990
    papadoc
    Member

    Sheesh, okay, I did that already. Before you even posted.

    It didn’t fix my problem but on the other hand, it DID make the dashboard nicer.

    Oh, and broke at least one of the key plugins on the site :-(

    But yeah, ultimately, I will always upgrade, when I realise there IS an upgrade.

    Want to know something interesting? Now, instead of a link to a broken page, the displayed names of the most recent poster ALL link back to my forum address, apparently regardless of the user… Any suggestions?

    #59124

    In reply to: Can we do includes?

    silverwing
    Member

    I’ll admit I’m not that great a coder, so I may have done something wrong when I tried bb_load_template(). I’ll try again later and see, since having the whole address isn’t the best solution.

    #59155

    In reply to: Title Tags

    fel64
    Member

    Oh, sorry. Yeah. I getchoo. Yes. The filter you want to use is bb_title. The way filters work is that you tell bbpress what you want to filter, bbpress gives you the input and you return the output. In this case:

    <?php
    /*
    Plugin Name: Title Modifier
    Author: You
    */
    add_filter('bb_title', 'titlemodify');

    function titlemodify( $title ) {
    //your code that does something to $title;
    return $title;
    }
    ?>

    Paste this into an empty text file, save it as whateveryouwant.php, edit the code so it actually does something with $title, then upload and activate.

    #58089

    In reply to: bbSync

    fel64
    Member

    Coolio. Few problems recently (apart from Sneaky :( ) so I uploaded. No topic for it yet but I expect there will be at https://bbpress.org/plugins/topic/56

    [Edit] And it is! Rate it please :)

    #59150
    fel64
    Member

    It is funkin’ brilliant. I hope you downloaded the latest release ( https://trac.bbpress.org/browser/trunk, at the bottom of the page is the Zip Archive link to the latest) because it has a bunch of fixes and changes.

    Can you detail anything you had to do to make it work, for future people who want to do this stuff? :)

    #59095
    fel64
    Member

    This means their bbpress login will mysteriously fail.

    No it won’t. No matter what cookies users have, they will not prevent them logging in.

    schmitt, must say I really liked your site. Not at all interested in things financial but it was engaging nonetheless.

    You could put these lines at the top of your bb-login.php:

    header('Location: http://www.example.com/');
    exit;

    Obviously changing the URL to that of your wp-login.php. I don’t know how else you’d do that. This may have all sorts of crazy adverse effects because I haven’t tried it myself; maybe ck can say how he did it?

    #59123

    In reply to: Can we do includes?

    fel64
    Member

    BBTHEMEDIR only takes you to the my-templates folder. I’m surprised that bb_load_template() didn’t work; ah well, you solved it anyhoo.

    #59119
    Inquirer
    Member

    #profile-menu {

    list-style: none;

    position: absolute;

    left: 200 px;

    }

    It fixes to the left.

    I have tried varaiations.

    The style_old.css has the same code for the profile menu.

    I wonder how it got out of wack.

    #59148
    kjted
    Member

    I just noticed I can actually download it from the Roadmap in the development section…

    https://trac.bbpress.org/ticket/657

    Without documentation I guess it’ll be a case of figuring it out myself lol.

    Will the new version of bbPress have any structural changes to the database? I’m hoping I can use this class with the current version of bbPress.

    :)

    _ck_
    Participant

    Ah nevermind – I already knew how to do this but was so tired I didn’t put 2 + 2 together. And a new plugin was born!

    This plugin will either exclude ALL sub-forums from the front page topics list AND/OR exclude any specific forums from the front page that you specify.

    function filter_front_page_topics($where){
    // $exclude_forums=array ("8,1,3,12"); // enable this to manually specify specific forums by id #
    $forums = get_forums(); foreach ($forums as $forum) {if ($forum->forum_parent) {$exclude_forums[]=$forum->forum_id;}} // exclude ALL sub-forums
    if ( is_front() ) {foreach($exclude_forums as $forum) { $where.=" AND forum_id != ".$forum." "; }}
    return $where;
    }
    add_filter( 'get_latest_topics_where', 'filter_front_page_topics');
    add_filter( 'get_latest_posts_where', 'filter_front_page_topics');

    _ck_
    Participant

    Since bbpress.org doesn’t have a “tips and tricks” I’ll post this here.

    If you’d like to tweak your profile.php template to show the total posts and topics started by a user, add this code under “bb_profile_data()”

    <?
    echo "forum posts: <b>".$bbdb->get_var("SELECT COUNT(*) FROM bb_posts WHERE poster_id = $user_id AND post_status = 0")."</b> &nbsp; "
    ." topics started: <b>".$bbdb->get_var("SELECT COUNT(*) FROM bb_posts WHERE poster_id = $user_id AND post_status = 0 AND post_position = 1")."</b>";
    ?>

    I’d make this into a plugin but I don’t know how to append information within the profile (ie. attach to bb_profile_data)

    #58988
    papadoc
    Member

    Well, it turns out I’m NOT using .8.2.1, just .8.1… Is the newest version REALLY new?

    The code I’ve used in the template is, I think, outside the loop, and is this:

    <H2><?php _e('Last Poster'); ?></H2>
    <UL><LI><a href="<?php get_user_profile_link() ?>">
    <?php topic_last_poster(); ?></a></LI></UL>

    I may not have made my problem all that clear, anyway… the fact is that the Last Poster bit works fine… it pulls up the last poster’s name fine. But when you mouseover the link, it becomes clear that it doesn’t work, presenting the problem I mentioned before…

    #59093
    _ck_
    Participant

    There is an obscure cookie control plugin for wordpress that I found somewhere around here I think:

    http://www.2diabolos.com/blog/plugins-pour-wordpress/setcookieparams/

    the bbpress config options you want are like this:

    $bb->wp_table_prefix = 'wp_';  // WordPress table prefix.  Example: 'wp_';
    $bb->wp_home = 'http://example.com/blog'; // WordPress - Options->General: Blog address (URL) // Example: 'http://example.com'
    $bb->wp_siteurl = 'http://example.com'; // WordPress - Options->General: WordPress address (URL) // Example: 'http://example.com'

    $bb->usercookie = 'wordpressuser_ab1b1c8b2de0ca2b381c25a6b6e812a1';
    $bb->passcookie = 'wordpresspass_ab1b1c8b2de0ca2b381c25a6b6e812a1';
    $bb->cookiedomain = 'example.com';
    $bb->cookiepath = '/';

    you also obviously want this plugin:

    https://bbpress.org/plugins/topic/2?replies=3

    and less obviously this one is a must for WP integration:

    https://bbpress.org/forums/topic/usernames-with-spaces-do-not-work?replies=24#post-7904

    unfortunately it’s not setup here as a formal plugin but it should be – see my dot fix at the end

    #59084
    Trent Adams
    Member

    Darn copy and paste….;)

    Trent

    #2110
    jolaedana
    Member

    http://www.musemart.com

    I’ve recently launched a forum attached to my personal portfolio and blog as a resource and critique center for writers, artists, and designers. :) So far, it’s just myself, my husband, and a few friends, but if you’re interested in commenting on work or showing your own, you’re welcome to stop by and join up.

    Thanks to BBPress for making such a simple forum- I got this up and running with the info I’d gleaned about WP in less than a day, and skinned it in a grand total of two hours using the styles I’d already come up with for my WP templates.

    It’s bright, but we like it! Hope to see some of you there. :)

    #59082
    Trent Adams
    Member

    Try adding the following to your bbPress config.php:

    $bb->usercookie = 'wordpressuser_full.hash.number";
    $bb->passcookie = 'wordpresspass_full.hash.number";

    Trent

    #59118
    Trent Adams
    Member

    Try something like this:

    #profile-menu {
    list-style: none;
    position: absolute;
    left: 200 px;
    }

    Trent

    #2109

    Topic: Can we do includes?

    in forum Themes
    silverwing
    Member

    Is there a way to add an include in a bbpress theme? I want to add some content in the pages that will change, and I just want to change one file instead of multiple ones.

    Something like this <?php include (TEMPLATEPATH . '/featured.php'); ?> from my wordpress theme. But have featured.php in my bbpress theme folder.

    #59081
    Andrew
    Member

    I think I see the problem now. BBPress is setting a different MD5 hash than wordpress. This must have to do with the fact it is installed in the subdirectory. Why is my install generating the wrong hash…

    My config.php is set up as above. Ive pasted it below. I included the full URL coding where as you used only the http://www.xxxx.xxxx – I can’t imagine that makes a difference.

    $bb->wp_table_prefix = ‘wp_’; // WordPress table prefix. Example: ‘wp_’;

    $bb->wp_home = ‘http://www.nyquistcapital.com/&#8217;; // WordPress – Options->General: Blog address (URL) // Example: ‘http://example.com&#8217;

    $bb->wp_siteurl = ‘http://www.nyquistcapital.com/&#8217;; // WordPress – Options->General: WordPress address (URL) // Example: ‘http://example.com&#8217;

    $bb->cookiepath = ‘/’; // Added per BBPress Forum Suggestion to ensure WordPress user sharing


    wordpressuser_ed93838a3c2677b2a3d53669c26b039b

    Path: /

    Content:admin

    wordpresspass_ed93838a3c2677b2a3d53669c26b039b

    Path:/

    Content:<HASH>

    And for BBPress

    wordpressuser_34c5633735768bf923be82cd0042b16a

    Path: /

    Content:admin

    wordpresspass_34c5633735768bf923be82cd0042b16a

    Path:/

    Content:<HASH>

    #2108
    Inquirer
    Member

    The Profile Edit links are displaying off the right side of web page

    How doe the postion code need to be set to move the links back onto the web page?

    #profile-menu {

    list-style: none;

    position: absolute;

    right: 0;

    }

    #profile-menu li {

    font-size: 1.1em;

    background-color: #eee;

    padding: 4px 7px;

    display: inline;

    border-top: 3px double #9e9e9e;

    position: relative;

    top: -10px;

    }

    #profile-menu li.current {

    background-color: #ddd;

    border-top: 1px solid #9e9e9e;

    }

    Trent Adams
    Member

    Right off the cuff, I would do the following until you have it installed correctly:

    1) Remove:

    $bb->WP_BB = true;
    require_once( 'public_html/wp-blog-header.php' );

    2) Change to false:

    $bb->mod_rewrite = false;

    Once you have bbPress installed and integrated with wordpress (logins), then play around with the permalinks and the including bbPRess functions with WP.

    Trent

    #59078
    fel64
    Member

    You may have to add

    $bb->cookiepath = '/';

    to your config.php if it doesn’t work straight away.

    #59077
    Trent Adams
    Member

    If you have the same domain so it should be simple. Keep in mind that bbPress will use the WP users after doing this and both programs have to be installed in the same database:

    // The rest is only useful if you are integrating bbPress with WordPress.
    // If you're not, just leave the rest as it is.

    $bb->wp_table_prefix = 'wp_'; // WordPress table prefix. Example: 'wp_';
    $bb->wp_home = www.nyquistcapital.com'; // WordPress - Options->General: Blog address (URL) // No trailing slash. Example: 'http://example.com'
    $bb->wp_siteurl = 'www.nyquistcapital.com'; // WordPress - Options->General: WordPress address (URL) // No trailing slash. Example: 'http://example.com'

    Trent

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