Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,751 through 27,775 (of 32,481 total)
  • Author
    Search Results
  • #64031
    affacat
    Member

    Not sure what you mean – the code I had above should do what I say it did, it just didn’t do what I wanted.

    That said? I now have it working the way I wanted.

    This code:

    Gets the bbPress avatar, if it exists.

    Checks to see if it’s an Identicon…

    No? Display it.

    Yes? Display Gravatar… but with the URL of the Identicon set as the default in case none exists.

    Problem solved.

    Note: I believe Gravatar recently integrated Identicons as a default setting, so you can probably do this now without Identicons setup in bbPress by modifying the code some. But this works.

    PROFILE.PHP:

    $ava = avatarupload_get_avatar($user->ID,1,1,0);

    if ( avatarupload_get_avatar($user->ID) && !(usingidenticon($user->ID) )) {

    avatarupload_display($user->ID);

    }

    else {

    echo bb_get_avatar($user->ID,48,$ava[0]);

    }

    POST.PHP:

    $ava = avatarupload_get_avatar(get_post_author_id(),1,1,0);

    if ( avatarupload_get_avatar(get_post_author_id()) && !(usingidenticon(get_post_author_id()) )) {

    avatarupload_display(get_post_author_id());

    }

    else {

    post_author_avatar(48,$ava[0]);

    }

    #64636
    _ck_
    Participant

    I suspect this is the the same problem as you or someone else had with a non-standard template with bbpress.

    Make sure in your header.php template that you have

    <?php bb_head(); ?>

    just before the

    </head>

    or bbPress plugins won’t work properly (like you are seeing now)

    #3298
    Janka
    Member

    Hi, i have the bbpress 0.9.0.2 installed.

    I try to enable BBemoticons for Private Messaging Plugin.

    I modified the file bb-emoticons.php add at last line this command:

    bb_add_filter(‘pm_text’, array(&$bbemoticons, ‘convert_smilies’));

    I have add the line:

    <?php bb_do_action(‘bb_grins’); ?>

    into file pm-user-form.php

    And i have add the line:

    <script type=”text/javascript” src=”‘. bb_get_option(‘uri’) .

    ‘my-plugins/bb-emoticons.php?bb_grins_output=javascript”></script>

    before

    </head>

    in the file header.php of template.

    I see the emoticons in the private messages :-)

    but when i click on the smile,

    i see an exception in the javascript :-(

    the plugin run correctly in the normal message of forum.

    Can you help me?

    Thank’s

    #50416

    In reply to: Importing from vanilla

    yes please!

    I’d even be willing to kick in some cash if we want to get together, hire someone to write it, and then donate the code back to the bbpress project.

    #58950
    citizenkeith
    Participant

    I think I need a little help with this one. I’m running 0.9.0.2 now.

    Here’s the section in functions.php:

    function get_profile_info_keys() {
    return apply_filters( 'get_profile_info_keys', array(
    'user_email' => array(1, __('Email')),
    'user_url' => array(0, __('Website')),
    'from' => array(0, __('Location')),
    'occ' => array(0, __('Occupation')),
    'interest' => array(0, __('Interests')),
    ) );
    }

    function get_profile_admin_keys() {
    global $bbdb;
    return apply_filters( 'get_profile_admin_keys', array(
    $bbdb->prefix . 'title' => array(0, __('Custom Title'))
    ) );
    }

    So if I move that section up to get_profile_info_keys, it should look like this, correct?

    function get_profile_info_keys() {
    global $bbdb;
    return apply_filters( 'get_profile_info_keys', array(
    'user_email' => array(1, __('Email')),
    'user_url' => array(0, __('Website')),
    'from' => array(0, __('Location')),
    'occ' => array(0, __('Occupation')),
    'interest' => array(0, __('Interests')),
    $bbdb->prefix . 'title' => array(0, __('Custom Title')),
    ) );
    }

    That pretty much removes everything from get_profile_admin_keys, so do I just take that entire section out?

    Thanks for the helping hand…

    #64568
    hamman
    Member

    No, I didn’t install any SMTP functionality on the server. Like I said, I’m new to this and I guess I didn’t realize when I asked the question last night that I needed that functionality installed.

    After looking through other posts and the code, I think I’ll be able to figure it out. It will work better for me and the nature of the website for the forum to not email the password, but to display it instead. So I am going to go that route. Sorry for any inconvenience.

    #55029
    monstr
    Member

    hm. i’d also like to have such a function… perhaps anyone will code it some time. i don’t think it’s that complicated.. :/

    #64638
    gerikg
    Member

    I’m not a php person but I think it’s <?php search_form(); ?>

    For the main page you have to put it in frontpage.php in the Kakumei folder.

    #49961

    In reply to: En español

    Covi
    Member

    Muchas gracias ggnard ;)

    Yo también empecé a traducirlo pero, a falta de saber si se pueden combinar varios catálogos .po, preferí esperarme a la nueva versión de la traducción. La que hay en el SVN creo que es de la 0.8.3… por eso lo dejé ya que en WordPress el cambio de versiones en algunas ocasiones no era del todo compatible e imagino que en BBPress tampoco :(

    PD: Ahora que caigo… estoy usando la que tenía acabada de la 0.8.3 xDD

    Ya la colgaré también por ahí ;)

    #3294
    benjeewest
    Member

    Hi folks, there seem to be many people out there having similar issues, but I’ve spent all evening looking through for a solution and still no luck.

    I’m trying to do a full integration of bbPress 0.219 and WordPress 2.51, full integration meaning that bbPress should load WordPress functions and vice versa.

    WordPress appears to be playing very nicely and loading bbPress template tags with no problems at all. I’ve done this using

    //BBPress Integration

    if ( !defined('BBDB_NAME') )

    require_once(ABSPATH.'forum/bb-load.php');

    at the very end of my wp-config.php file, as per the tutorial at

    http://www.adityanaik.com/integratepress-part-i/ . As I say, no problem so far.

    It’s when I try to load WP functions into bbPress that I run into trouble. When I’ve attempted either of the following two mods to bb-config.php, it has disabled user login, as well as blocking me from /bb-admin (which re-directs straight back to home). The two mods to bb-config.php I have tried are:

    // WordPress Integration //

    define('WP_BB', true);

    if ( !defined('DB_NAME') ) {

    require_once( dirname(__FILE__) . '/../wp-config.php');

    }

    // **Wordpress Variables ** //

    $bb->wp_table_prefix = 'wp_'; // your wordpress db prefix is

    $bb->wp_home = 'http://localhost/bloomag';

    $bb->wp_siteurl = 'http://localhost/bloomag';

    or simply

    require_once( 'C:testingserverwwwbloomagwp-blog-header.php');

    With both these mods, the bbPress page loads up with no problems but, as I say, both /bb-admin and any attempt to log-in give no response and just redirect to the hompage.

    Has anyone got any suggestions for what might be going wrong and the correct method to call WP functions into bbPress?

    Thanks a lot,

    >Ben

    #64627
    monstr
    Member

    haha jehaw, this rocks! :) thank you

    is there a option that lets you disable the thingy for the topics? i’m using the other plugin flying around here, because i want the topics to be also indicated when you have not posted to them before…

    e: okay, i did this in css now, by simply giving the forums a different class and excluding the style for the topics. well i think there is a better solution somehow :D

    e: the coolest solution would be your plugin having a setting wich you can activate so that the topics & forums are also marked if you didn’t post to them before. perhaps you could do this :)

    thank you alot for this so far. i really was praying someone would do this :)

    #64634
    _ck_
    Participant

    gerikg, I can help you with these questions easier if you post them on the plugin page for they are related.

    in bb-signatures you can simulate an HR by changing the border-top in the CSS

    go into the admin menu plugins->signatures and look down in the CSS area and change border-top:1px solid #aaa; to whatever you’d like. If you want it thicker, make 1px, 2px or more. If you want a different color, change the #aaa to any other color.

    #3293
    gerikg
    Member

    I would like to put an HR code between the post text and the signature but I can not find it. help?

    #64626
    _ck_
    Participant

    Okay version 0.8.7 of this can now indicate forums with new posts:

    https://bbpress.org/plugins/topic/unread-posts/

    You will have to change the optional setting to true near the top of the plugin.

    It defaults to highlighting the title in blue but you can also change the css to append an icon, etc. instead.

    #64625
    _ck_
    Participant

    After some thought, it occurs to me I could make some (optional) code that would pre-check all the read topics lists for a user and see if the last topic had changed, and then build a list of forums affected.

    Interesting challenge, I might give it a shot.

    #3289
    monstr
    Member

    somehow my forum adds links to pages that do not exist. i dont understand this

    for eg (the topic hast only 2 pages):

    topic.php?id=15&page=7#post-92

    what is this? :(

    e: appears WITH and WITHOUT plugins acitvated.

    could it be a “front page topics” bug?

    #3288
    Marcoz
    Member

    Hi there!

    I just started to experiment with bbPress and will integrate it into my family’s blog installation which of course runs WordPress. :-)

    While playing around with it, I noticed some missing labels on form controls. These missing associations cause screen readers to not pick up on the right stuff to speak when focus moves to a certain textbox, combobox or the like.

    So, I went ahead and filed ticket #871 to deal with this and submitted a patch.

    If you’re interested in accessibility, I invite you to follow that trac ticket!

    Marco

    #64030
    monstr
    Member

    affact, your code is just what i was searching for. unfortunately it just doesn’t work :/

    #60762

    In reply to: PHPBB3 Converstion

    This is very important if one already got a forum but want to have a *GOOD* integration with WordPress on a new site.

    Imagine loosing 4000 users just to be able to change to bbPress. It just won’t happen and it’s a damn shame that there isn’t a converter yet. :/

    #63758

    In reply to: Content censor

    dangrey
    Member

    Any chance someone could have a look at this? It’s a small plugin so it can’t be that hard, I’d do it myself but don’t know php :-)

    #64613

    In reply to: bbpress loop

    _ck_
    Participant

    What you are asking for is very easy.

    $forums = get_forums(); gets you all the forums,

    $topics = get_latest_topics( $forum_id); will get you the topics list for any forum id. So if you looped through the forums like on the front page, just fetch the $topics after each forum in the loop.

    The formatting and page layout is the “hard” part.

    #64608

    In reply to: No SECRET_KEY in WPMU

    Trent Adams
    Member

    I would go back to the 0.8.3.1 release myself until Donncha releases the upgrade to WPMU. You can find the older release of bbpress at:

    https://trac.bbpress.org/browser/branches/0.8

    That or you have to work on the plugin to get the old md5 hashes working again. It might be easier on your users to just get the older version running again though :)

    Trent

    #64518
    Jason
    Member

    Ah, thanks :) I hadn’t bothered to go back and see if those minor things were working correctly on the old server.

    #64578
    howtogeek
    Member

    You’ll need to use the PHP functions to check the cookies… bbpress doesn’t use sessions by default.

    Also, you wouldn’t want to simply use the userid, because that would be insecure since anybody could hack a cookie with any username.

    bbPress and WP both store two cookies, the username and the encrypted hash of the password. You’ll have to use those in combination to do a lookup to the database to make sure they both match. I’d advise taking a look through the bbpress source code… it’s not terribly difficult to understand.

    The other thing you could do… you could create a plugin / hack for bbPress to assign a session parameter after a successful login, which you could then check for in your other code.

    #64577
    irr1449
    Member

    I don’t have the code infront of me right now, but is it just going to be something like

    $_SESSION

    And then that would give me the userId which I could then query the users table with?

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