Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 22,126 through 22,150 (of 32,495 total)
  • Author
    Search Results
  • #52368
    yoyopop
    Member

    tflight – I didn’t have rights to give php more memory on my server so I ran the php script locally on my machine using XAMPP, which successfully converted the database. Now just to replace the old db! :)

    #79852
    OKTeaRoom
    Member

    Err…embarrassing :) I just installed a bunch of other _ck_ plugs that didn’t have any setup in the dashboard and were more plug and play so I assumed that this one was, too. It’s actually quite DEEP.

    Thanks for making me look again johhiler :)

    #33053
    bb-lover
    Member

    Suppose ‘Now” I’ve a developers team, & they are really interested and willing to make bbpress premium or free plugins. Now They want to start development work according to your wish. So what kinds of plugins you really need at this time and in future. I Invite you all people to describe your required plugins according to your wish and with features/ specifications list. And listen May be you’ll get what you want :) !!!

    Stay Connect

    #84688

    I’m assuming your bbPress forums folder is on a separate domain than the buddyPress install? It’s not in the ‘default’ /forums location, right?

    Correct, standalone bbPress is installed on a subdomain (forums.mydomain.com) and obviously the group forum is activated within buddypress (mydomain.com/forums) as well. All share the same bb tables; so group discussions can be carried on via a more direct forum feel with extra bells and whistles.

    How the heck have you gotten BuddyPress’s activity stream to work with an external bbPress install?

    There is a plugin for BuddyPress called bbGroups (uses xmlrpc) but is outdated. I had to update the code for 1.2 due to the activity stream changes. (and i need to update once more since 1.2 RC1) – the XMLRPC is not ideal but does carry over the hidden/read-only and who has access. (i’d probably code it to access the db directly – but it works for my testing)

    Seems redundant to have 2 forum interfaces but this allows “outside” forums which may not be appropriate for setting up a group.

    But at some point BuddyPress 1.2 now expects the dates in GMT while standalone bbPress 1.0.2 must insert the timestamp on a topic/post differently. (I just haven’t had the time to sift over the code to figure it out yet)

    #84695
    chrishajer
    Participant

    If you’re getting a blank screen, it’s likely a 500 Internal Server Error. If you have access to logs you will be able to resolve this.

    Where did you put that code? It should start at the 2nd line of bb-config.php, right after the opening <?php. If not, use a syntax highlighting editor to see what’s going on with the bb-config.php file.

    #33050
    roamfox
    Member

    I have search the forum and find there is a slolution like this

    put following code in to bb-config.php

    Code:
    require_once(‘path/wp/wp-blog-header.php’);

    that I can call wordpress functions in bbpress template

    but once I add the line to bb-config.php . The homepage of the forum became a blank page. no html , no error hints, just a blank page

    I am sure the path to wp-blog-header.php is correct . I do not know what happend and how to fix .

    The wordpress version is 2.91 and the bbpress is 1.02 .

    Thank you for your help

    #84683
    citizenkeith
    Participant

    Perhaps that’s implicitly done by activating the plugin itself?

    That’s correct. You should be good to go. :)

    #84648

    Hi Neotoxic,

    No i’m afraid you’ll have to figure out your own SQL script for the users. My code isn’t tested or anything, i’m afraid you’ll have to write teh custom code for your own specific solution yourself. the code i’ve posted above just does 95% of the work for you :)

    #82904

    It’s done. We’re good. :)

    #84495

    In reply to: Email to members

    4 topics below your topic is your answer mate :)

    https://bbpress.org/forums/topic/notify-all-forum-users-of-new-topic

    #84530
    kvener
    Member

    Here is a solution I found…

    There is probably a better solution, but this fixes the going back to front page for blocked users…

    Add this code to bb-includes/functions.bb-core.php line 1183

    // If user blocked logout user and clear auth_cookie

    if ( $id = bb_get_current_user_info( ‘id’ ) ) {

    if( bb_get_usermeta( $id, ‘been_blocked’ ) === “1”) {

    bb_logout();

    bb_clear_auth_cookie();

    }

    }

    #84635
    chrishajer
    Participant

    Can you get the phpinfo for your installation and see if there IS a tmp folder?

    Put this into a file called whatever.php, then access it with your browser at http://www.example.com/bbpress/whatever.php

    <?php
    phpinfo();
    ?>

    I think you’re looking for a value called upload_tmp_dir

    If it’s not there someone will need to look at the plugin and see what’s actually needed.

    Please post a link to the plugin you’re using too.

    #84647
    neotoxic
    Member

    kevinjohngallagher – Thank you very much for your help. I understand you caution completely, however given the nature of my community I am sure that this will be appreciated.

    Can you confirm that the following will only select users who are bbpress members and above, and not all users in my WordPress users table.

    $bbdb->users WHERE user_status=0"

    #82701

    In reply to: bbBlog 2.0 (plugin)

    chrishajer
    Participant

    You will always have the code you have right now, which is standalone. The old version will always be available. (I know nothing is forever, but if you want a copy of the standalone version, grab it now to ensure you have it.) It might not keep up with developments, but you’d at least have a version to use. Barring any security problems, I don’t see why you couldn’t just keep using that.

    #84646

    Depending on how many members you are talking about, or how many time you expect a new post to be on the forum, i would definitely be sceptical of something like this. It’s a massive hark back to the old ways of doing things.

    So my suggestions:

    1) When you make a new post, physically email everyone.

    I’m not sure when e-mail became incredibly difficult to do manually.

    2) If you really want to write a plugin it should go something like:

    function notification_new_post($post_id=0) {
    global $bbdb, $bb_table_prefix, $topic_id, $bb_current_user;

    $all_users = $bbdb->get_results("SELECT ID, user_email FROM $bbdb->users WHERE user_status=0");
    foreach ($all_users as $userdata)
    {
    $message = __("There is a new post on: %1$s nReply by: %2$s nText: %3$s nn%4$s ");
    mail( $userdata->user_email, bb_get_option('name') . ': ' . __('Notification'),
    sprintf( $message, get_topic_title($topic_id), get_user_name($bb_current_user->ID), strip_tags(get_post_text($post_id)), get_topic_link($topic_id) ),
    'From: '.bb_get_option('name').' <'.bb_get_option('from_email').'>'
    );
    } //foreach
    }
    add_action('bb_new_post', 'notification_new_post');

    You may need to edit some of that code, but found that by searing for email notification on this website (props to Thomas Klaiber who’s code i quickly edited). Amazing what searching first does :)

    Again Neotoxic, i strongly suggest against this unless you know for sure that everyone’s going to be ok with getting an email everytime. RSS readers on email clients, phones, browsers etc save so much hassle…

    Take Care

    #33010
    #84628

    In reply to: BBPM Translation

    Step 1: open google.com

    Step 2: type in ‘bbpress process translation file “.pot” ‘

    Step 3: click on the first link.

    Step 4: do what it says

    Step 5: ???

    Step 6: Profit :)

    And Jongeren Forum, with all due respect, we answer your questions, and you don’t seem happy. We’re not going to do it all for you, this isn’t our job :)

    Maybe next time follow the advice given and also say THANK YOU to people like Olaf that reply, whether you think it’s “not usefull for me” or not. Manners cost nothing :)

    #61353

    In reply to: get favorites list

    The entire website?

    So it’s going in an infinte loop?

    Please, be less specific, don’t post any code, oooh and don’t include a screenshot. Guessing is a really worth while use of my time :)

    #61352

    In reply to: get favorites list

    56alifar
    Blocked

    Like i said, i got the entire website loading serveral times in my sidebar where i put the code.

    #61351

    In reply to: get favorites list

    What error do you get mate?

    :)

    #84188

    In reply to: Thanks plugin

    bingsterloot
    Member

    @ Paulhawke

    I rest my case :O) works perfectly now. Thanks a lot for your fast updates.

    #61350

    In reply to: get favorites list

    56alifar
    Blocked

    Nope didn’t work, i got the entire website loading serveral times in my sidebar where i put the following code:

    <?php

    $topics = get_user_favorites( $user->ID, true );

    $favorites_total = isset($user->favorites) ? count(explode(',', $user->favorites)) : 0;

    bb_load_template( 'favorites.php', array('favorites_total') );

    ?>

    #77325
    Michael
    Participant

    @Shagalaga – That has already been mentioned in this post.

    @Sam – Nice to see you’re still checking bbPress updates. :)

    #61349

    In reply to: get favorites list

    chrishajer
    Participant

    Was that snippet of code wrapped in <?php tags ?>?

    <?php
    $topics = get_user_favorites( $user->ID, true );
    $favorites_total = isset($user->favorites) ? count(explode(',', $user->favorites)) : 0;
    bb_load_template( 'favorites.php', array('favorites_total') );
    ?>

    #61347

    In reply to: get favorites list

    56alifar
    Blocked

    Sorry, a bit of a PHP Noob, if I insert the following code in my template:

    $topics = get_user_favorites( $user->ID, true );

    $favorites_total = isset($user->favorites) ? count(explode(‘,’, $user->favorites)) : 0;

    bb_load_template( ‘favorites.php’, array(‘favorites_total’) );

    I get an error

Viewing 25 results - 22,126 through 22,150 (of 32,495 total)
Skip to toolbar