Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,751 through 25,775 (of 32,570 total)
  • Author
    Search Results
  • #71989
    Trace
    Participant

    Thanks for your help Chris! I’ve gone through that tag with a fine toothed comb… :)

    Anyone interested in taking a quick paid job sorting out this cookie integration issue, please ping me at tracedef @ gmail … Thanks!

    #4901
    Trace
    Participant

    I’ve spent two days trying to integrate BBPress Alpha 6 cookies with WPMU 2.7…… I’m not really wanting to do day three, is it against the rules to ask for paid help here? If not, I would love to give my money to be able to move on and actually get some work done! If it is against the rules… I’m sorry… couldn’t find anything regarding this and am kind of desperate :)

    #71984

    In reply to: SatNightSpecials.com

    PJ Brunet
    Participant

    A little background info:

    Good friend of mine is touring around France. Between the two of us, we know a ton of musicians/artists all over the USA and Europe, should be a fun forum :-)

    #4900

    Topic: SatNightSpecials.com

    in forum Showcase
    PJ Brunet
    Participant

    In it for the long haul with bbPress:

    http://www.satnightspecials.com/

    Hook me up with some link love please :-)

    Installed the alpha last night, hacked the theme all day today, my friends don’t even know it’s live yet.

    #71980
    PJ Brunet
    Participant

    Honestly, I looked at the advanced options, if the “localhost” setting was there I brain-farted (after 3am) or didn’t make the connection in my head. But if you’re saying it’s there, that’s obviously the more poetic solution ;-)

    Not sure I can do anything about the NFS. I’m pleased with WP performance on MT. Looking at my GPU usage (their internal metric) I’m pretty sure I can pull off a million pageviews/month on the basic (gs) “grid service” account. With a typical shared hosting account, you’ll probably get kicked to the curb at 10k pageviews/day.

    #71978
    chrishajer
    Participant

    Why didn’t you set a host name when installing? It’s on the same page as the database name, username and password, it’s just not shown by default. I think it’s a link that says something like “show advanced database settings.” I wouldn’t modify the core at all to connect to the database.

    The error comes from not having a host name and the software trying to connect to localhost via port 3306, but that’s not where your database lives, it’s on a machine called internal-db.s41093.gridserver.com.

    _ck_
    Participant

    One final addition to this that I didn’t think of mentioning earlier.

    To use bbPress queries like these on a foreign (non-bbPress / non-WordPress) PHP page, all you need to do is include the bbPress core like this at the start:

    <?php require('/local-path-to-bbpress/bb-load.php'); ?>

    or to load WordPress core use this

    <?php require('/local-path-to-wordpress/wp-config.php'); ?>

    (change the ‘local-path’ bit to your local path)

    and remember to use $wpdb on WordPress pages, vs $bbdb on bbPress pages.

    #71961
    _ck_
    Participant

    Yup “order by rand()” is very handy.

    I used it for a mod for WordPress years ago to make a “random” category which is very useful.

    It could even be done to make a “random topics” view in bbPress but not sure how useful that would be.

    It’s fine for casual use but keep in mind for larger tasks it’s very slow and makes mysql purists shudder.

    #71960
    deadlyhifi
    Participant

    and my final correction on the random thing!

    $stories = $bbdb->get_results("SELECT post_title, guid FROM site_posts WHERE post_type='post' AND post_status='publish' ORDER BY post_date_gmt DESC LIMIT 0,10");
    shuffle($stories);

    previous example was getting a random 10 from all posts.

    This get’s 10 latest posts, then randomizes them with the ‘shuffle’.

    cheers!

    #71959
    deadlyhifi
    Participant

    On my version I’m fetching 10 latest rows, randomizing, then displaying 5 stories.

    $bbdb->get_results("SELECT post_title, guid FROM site_posts WHERE post_type='post' AND post_status='publish' ORDER BY rand() LIMIT 0,10");

    Admittedly, I didn’t make the correct alterations to the previous example. Anyway, it should give people an idea of what to do.

    oh, and _ck_ I hadn’t spotted your earlier post – it would have made it a lot easier for me to figure out if I had!

    #4891
    patrick10128
    Member

    Hi,

    I’m looking for someone who has had a bit of experience with theming bbPress to help me port a HTML/CSS template (which I have also made into a WordPress theme) over to bbPress. It should be relatively easy seeing as the design is simple and already coded.

    Please contact me at patrick.devivo [at] gmail.com if you know someone or are willing to help me out.

    #71958
    _ck_
    Participant

    FYI, the if ($i <= 4) { is not needed because you already do a LIMIT on the query.

    Related topic:

    https://bbpress.org/forums/topic/heres-how-to-show-bbpress-info-inside-wordpress-without-full-integration

    #71957

    FYI, this only lists 4 posts but is FREAKIN AWESOME! :D

    #4885
    deadlyhifi
    Participant

    Just made a query in my forum functions.php to display the 5 latest stories from WordPress. Pretty basic but it may help someone:

    // get WP news
    function wpnews() {
    global $bbdb;
    $stories = $bbdb->get_results("SELECT post_title, guid, post_date_gmt FROM wp_posts WHERE post_type='post' AND post_status='publish' ORDER BY post_date_gmt DESC LIMIT 0,4");
    foreach ($stories as $story) {
    if ($i <= 4) {
    echo '<li><a href="' . $story->guid . '">' .$story->post_title . '</a></li>';
    $i++;
    }
    }
    }

    then call it on your forum with <?php wpnews() ?> and style to suit.

    #4881
    rockin
    Member

    I’m looking for talented coders/designer who can help me theme a bbPress forum to my needs.

    Contact me directly at:

    andreas [at] jaxvine.com

    #71943
    WPAlex
    Member

    Ipstenu, thanks. To solve this problem I delete all messy code from profile-edit.php of Refresh theme and replace it with default one from Kakumei.

    #71946

    In reply to: Theme: TooNewsy

    _ck_
    Participant

    Good fix, I got distracted after I posted that and never did it myself.

    There’s also a border issue on images but I think most themes have that problem and it’s another thing I have to enforce in it’s own stylesheet.

    actually, you are causing it here:

    #posts .post .content a img {
    border: 1px solid #ccc;
    }

    You may way to limit it to topic pages and not any kind of table like latest-discussions.

    #71778

    Heh :) Politics are a different beast all together in terms of readership. BUT to be constructive:

    SALON (political left)

    – Blog posts are presented like forum topics here: http://open.salon.com/cover.php?view_sort=recent

    – The authors’ blogs are listed here: http://open.salon.com/people.php

    Actually that’s just a blog. It’s probably a WPMU sort of blog, but it’s ‘presented like forum topics’ because that’s their design. A very straightforward one at that. That’s it. Same with Pajamas, actually. Which I find a much nicer design, as I prefer blogs to give a little excerpt hint at what’s to come.

    #68941

    In reply to: reCAPTCHA for bbPress

    mvds
    Member

    Works like a charm for me :) Saves me about 5 bot registrations per day :)

    #71923

    In reply to: Custom User Groups

    farly
    Member

    Okay I had to change it a bit:

    <?php
    /*
    Plugin Name: Add custom usergroups
    Description: Adds custom usergroups
    Author: fel64, farly
    */
    add_filter('get_roles', 'add_custom_usergroups');

    function add_custom_usergroups( $roles ) {

    //define custom groups

    //$groups['GROUPNAME'] = array('CAPABILITIES LIKE','HUMAN GROUPNAME', array(EXTRA CAPABILITY, EXTRA CAPABILITY));

    $groups['probemitglied'] = array('member','Mitglied auf Probe', array());
    $groups['mitglied'] = array('member','Mitglied', array());
    $groups['kernmitglied'] = array('member','Kernmitglied', array());
    $groups['koordinator'] = array('moderator','Koordinator', array());
    $groups['leiter'] = array('administrator','Leiter', array());

    foreach ($groups as $key => $g) {
    $roles[$key] = $roles[$g[0]]; //duplicate member capabilities
    $roles[$key]['name'] = __($g[1]); // change name
    foreach( $g[2] as $capability ) {
    $roles[$key]['capabilities'][$capability] = true; // add extra capabilities
    }
    }
    return $roles;
    }
    ?>

    #71922

    In reply to: Custom User Groups

    farly
    Member

    Thanks!

    I modified this approach slightly and ended up with this:

    <?php
    /*
    Plugin Name: Add custom usergroups
    Description: Adds custom usergroups
    Author: fel64, farly
    */
    add_filter('get_roles', 'add_custom_usergroups');

    function add_custom_usergroups( $roles ) {

    //define custom groups
    $groups['mitglied_probe'] = array('Mitglied auf Probe', array('rulord_level1'));
    $groups['mitglied'] = array('Mitglied', array('rulord_level1', 'rulord_level2'));
    $groups['kernmitglied'] = array('Kernmitglied', array('rulord_level1', 'rulord_level2', 'rulord_level3'));
    $groups['koordinator'] = array('Koordinator', array('rulord_level1', 'rulord_level2', 'rulord_level3', 'rulord_level4'));
    $groups['leiter'] = array('Leiter', array('rulord_level1', 'rulord_level2', 'rulord_level3', 'rulord_level4', 'rulord_level5'));

    foreach ($groups as $key => $g) {
    $roles[$key] = $roles['member']; //duplicate member capabilities
    $roles[$key] =& $user[$key]; //convenience
    $user[$key]['name'] = __($g[0]);
    foreach( $g[1] as $capability ) {
    $user[$key]['capabilities'][$capability] = true;
    }
    }
    return $roles;

    }
    ?>

    It works for me so far :)

    #71942

    Flip back to the default themes and see if the problem persists. If no, it’s the theme. If it persists, collect the following:

    1) bbPress version

    2) Plugins

    3) WP version (if integrated)

    and report back! :)

    #71921

    In reply to: Custom User Groups

    johnhiler
    Member

    You can use fel64’s unofficial plugin to add a new Role:

    https://bbpress.org/forums/topic/adding-a-new-user-type?replies=6#post-9210

    I’ve used this together with Hidden Forums, and it works really nicely! :-)

    #69481

    In reply to: del Sol Owners Club

    Shagalaga
    Member

    Nice :D

    but some usernames are missing(or hidden?) :-P

    #71917
    coolsaggu
    Member

    Hi chrishajer,

    Thanks for the suggestion…….

    but they are bound to change sometime in future.

    I also read your article. Thanks I was bit struggling with this thing also(getting WP info in BBpress). But even if I get the information, how would i construct the Permalink structure of the WP.

    I have been following the WP code to write my own functions, but they seem to go pretty deep and I dont know whether creating a copy of these functions in BBpress would be safe or not.

Viewing 25 results - 25,751 through 25,775 (of 32,570 total)
Skip to toolbar