Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 20,926 through 20,950 (of 32,499 total)
  • Author
    Search Results
  • #89762

    In reply to: Custom Theme

    Glad it helped mate.

    If building your own theme, I’d advice making a wordpress theme first.

    The technique is the same and once you’re in the right mindset, you’d be amazed hoe easy theming bbPress is. But you will/might hit a few roadblocks if you try and pull data in a differnet way. Don’t be peturbed, just come back and ask :)

    #89670

    At the current rate of maximum of 1 release a year… no idea, sorry.

    That said, there are some really good people working on it, so just add your bug report to http://trac.bbpress.org and someone with the technical know how will look at it eventually :)

    #89669
    driz
    Member

    Would work as a quick fix. But would much rather use built-in code etc. Any ideas how long this bug will take to fix?

    #89668

    Kool and the gang. We’re one step closer.

    EDIT: Yes, you’re partly right. I get the same. Ok, thats a bug. Well done!

    When logged out, visiting a user’s profile page the default avatar is replaced with the profile owner’s avatar.

    That said my code above definately works to not display the gravatar if you’re logged out, insteadyou can display any image you want.

    if (empty($bb_current_user) || $bb_current_user == 0)

    {

    echo "create an image output here to any image on yoru server";

    } else {

    echo bb_get_avatar($bb_current_user->ID, 100);

    }

    kieranyo
    Member

    Thanks for the constructive crit :)

    Yeah it’s going really well.

    #89666

    Cameron, you “build awesome websites”… look at the source code. It’s a lovely well formatted multidimentional array. It’s not a mess, it’s the most concise and beautiful debugging tool you’ll ever have. Trust me, you’ll love it bro :)

    When you go to a profile page, what does the array say? (don’t post it)

    Does it say the information of the logged in user, or the person who’s profile page you’re on?

    No matter where I go, on the site, I get the informaiton of the logged in user. If you don’t, then you’ve found a bug.

    This code here should solve the logged in/out issue – though there is probably a better way to handle it :)

    if (empty($bb_current_user) || $bb_current_user == 0)

    {

    echo "<img src='grey_man'>";

    } else {

    echo bb_get_avatar($bb_current_user->ID, 100);

    }

    #89665

    Coolio, right mate, first thing, edit that to delete your email :)

    I’ll write more , just wanted to get you that asap

    #89664
    driz
    Member

    If I’m not logged in then that code shows 0 but when I visit the profile page of a user the avatar will change to that of the profile I’m viewing.

    If I’m logged in then I get the following mess:

    BP_User Object ( [data] => stdClass Object ( [ID] => 1 [user_login] => cameron [user_pass] => $P$B1pN/b8ZvQpPDtPILqpJCPqT4M4F0f/ [user_nicename] => cameron [user_email] => EMAILREMOVED [user_url] => http://www.paperviewmagazine.com/members/cameron/ [user_registered] => 2010-04-16 22:27:31 [user_activation_key] => [user_status] => 0 [display_name] => Cameron [spam] => 0 [deleted] => 0 [aim] => [yim] => [jabber] => [use_ssl] => 0 [nickname] => Cameron [chat_hide] => true [mini_track] => Sat, 12 Jun 2010 04:39:24 -0700 [first_name] => Cameron [description] => This is some information about me [admin_color] => fresh [rich_editing] => true [primary_blog] => 2 [last_activity] => 2010-06-14 14:53:08 [source_domain] => www.paperviewmagazine.com [pvwp_user_level] => 10 [bp_latest_update] => Array ( [id] => 1 [content] => Test status message ) [bb_user_settings] => m0=c&m1=c [pvwp_4_user_level] => 0 [pvwp_1_user_level] => 1 [pvbb_capabilities] => Array ( [keymaster] => 1 [throttle] => 1 ) [capabilities] => Array ( [keymaster] => 1 [throttle] => 1 ) [pvwp_7_user_level] => 0 [pvwp_capabilities] => Array ( [administrator] => 1 ) [comment_shortcuts] => false [pvwp_6_user_level] => 0 [pvwp_5_user_level] => 0 [pvwp_8_user_level] => 0 [pvwp_2_user_level] => 0 [pvwp_3_user_level] => 0 [pvwp_12_user_level] => 10 [pvwp_user-settings] => m5=c&m6=c&m9=c&m0=c&m10=c&m8=o&m7=c&m1=c&m2=c&editor=tinymce&hidetb=1&m11=c&m3=c&m12=c&m13=c&m4=c [pvwp_13_user_level] => 10 [pvwp_11_user_level] => 10 [pvwp_10_user_level] => 10 [pvwp_1_capabilities] => Array ( [contributor] => 1 ) [pvwp_8_capabilities] => Array ( [administrator] => 1 ) [pvbb_topics_replied] => 13 [topics_replied] => 13 [pvwp_6_capabilities] => Array ( [administrator] => 1 ) [pvwp_7_capabilities] => Array ( [administrator] => 1 ) [pvwp_3_capabilities] => Array ( [administrator] => 1 ) [pvwp_4_capabilities] => Array ( [administrator] => 1 ) [pvwp_2_capabilities] => Array ( [administrator] => 1 ) [pvwp_5_capabilities] => Array ( [administrator] => 1 ) [bp_liked_activities] => Array ( [1] => activity_liked [3] => activity_liked ) [pvwp_7_user-settings] => m5=c&m6=c&m9=c&m0=c&m10=c&m8=c&m7=c&m1=c&m2=c&editor=tinymce&hidetb=1&m11=c&m3=c&m12=o&m13=c&m4=c [pvwp_11_capabilities] => Array ( [administrator] => 1 ) [pvwp_13_capabilities] => Array ( [administrator] => 1 ) [pvwp_10_capabilities] => Array ( [administrator] => 1 ) [pvwp_12_capabilities] => Array ( [administrator] => 1 ) [pvwp_3_user-settings] => m5=c&m6=c&m9=c&m0=c&m10=c&m8=o&m7=c&m1=c&m2=c&editor=tinymce&hidetb=1&m11=c&m3=o [pvwp_4_user-settings] => m5=c&m6=c&m9=c&m0=o&m10=c&m8=c&m7=c&m1=c&m2=c [pvwp_2_user-settings] => m5=c&m6=c&m9=c&m0=c&m10=c&m8=c&m7=c&m1=c&m2=o&editor=tinymce&hidetb=1&m11=c&m3=c&m12=c&m13=c&m4=c [bb_user_settings_time] => 1276463427 [pvwp_10_user-settings] => m5=c&m6=c&m9=o&m0=c&m10=c&m8=c&m7=c&m1=c&m2=c&editor=tinymce&hidetb=1&m11=o&m3=o&m12=c [screen_layout_dashboard] => 1 [metaboxhidden_dashboard] => Array ( [0] => dashboard_recent_comments [1] => dashboard_incoming_links [2] => dashboard_plugins [3] => dashboard_quick_press [4] => dashboard_recent_drafts [5] => dashboard_primary [6] => dashboard_secondary ) [metaboxhidden_nav-menus] => Array ( [0] => add-post [1] => add-post_tag ) [pvwp_user-settings-time] => 1276464114 [nav_menu_recently_edited] => 3 [meta-box-order_dashboard] => Array ( [normal] => dashboard_right_now,dashboard_recent_comments,dashboard_incoming_links,dashboard_plugins,dashboard_quick_press,dashboard_recent_drafts,dashboard_primary,dashboard_secondary [side] => [column3] => [column4] => ) [pvwp_2_user-settings-time] => 1275215993 [pvwp_7_user-settings-time] => 1275772159 [pvwp_4_user-settings-time] => 1271497216 [closedpostboxes_dashboard] => Array ( ) [pvwp_3_user-settings-time] => 1275065270 [pvwp_10_user-settings-time] => 1274906535 [managenav-menuscolumnshidden] => Array ( [0] => link-target [1] => css-classes [2] => xfn [3] => description ) [pvwp_dashboard_quick_press_last_post_id] => 51 [pvwp_7_dashboard_quick_press_last_post_id] => 6 [pvwp_3_dashboard_quick_press_last_post_id] => 63 [pvwp_10_dashboard_quick_press_last_post_id] => 3 ) [ID] => 1 [id] => 1 [caps] => Array ( [keymaster] => 1 [throttle] => 1 ) [cap_key] => pvbb_capabilities [roles] => Array ( [0] => keymaster ) [allcaps] => Array ( [use_keys] => 1 [administrate] => 1 [moderate] => 1 [participate] => 1 [keep_gate] => 1 [import_export] => 1 [recount] => 1 [manage_options] => 1 [manage_themes] => 1 [manage_plugins] => 1 [edit_users] => 1 [manage_tags] => 1 [edit_others_favorites] => 1 [manage_forums] => 1 [delete_forums] => 1 [delete_topics] => 1 [close_topics] => 1 [stick_topics] => 1 [move_topics] => 1 [view_by_ip] => 1 [edit_closed] => 1 [edit_deleted] => 1 [browse_deleted] => 1 [edit_others_tags] => 1 [edit_others_topics] => 1 [delete_posts] => 1 [throttle] => 1 [ignore_edit_lock] => 1 [edit_others_posts] => 1 [edit_favorites] => 1 [edit_tags] => 1 [edit_topics] => 1 [edit_posts] => 1 [edit_profile] => 1 [write_topics] => 1 [write_posts] => 1 [change_password] => 1 [read] => 1 [keymaster] => 1 ) [first_name] => Cameron [last_name] => [user_login] => cameron [user_pass] => $P$B1pN/b8ZvQpPDtPILqpJCPqT4M4F0f/ [user_nicename] => cameron [user_email] => EMAILREMOVED [user_url] => http://www.paperviewmagazine.com/members/cameron/ [user_registered] => 2010-04-16 22:27:31 [user_activation_key] => [user_status] => 0 [display_name] => Cameron [spam] => 0 [deleted] => 0 [aim] => [yim] => [jabber] => [use_ssl] => 0 [nickname] => Cameron [chat_hide] => true [mini_track] => Sat, 12 Jun 2010 04:39:24 -0700 [description] => This is some information about me [admin_color] => fresh [rich_editing] => true [primary_blog] => 2 [last_activity] => 2010-06-14 14:53:08 [source_domain] => www.paperviewmagazine.com [pvwp_user_level] => 10 [bp_latest_update] => Array ( [id] => 1 [content] => Test status message ) [bb_user_settings] => m0=c&m1=c [pvwp_4_user_level] => 0 [pvwp_1_user_level] => 1 [pvbb_capabilities] => Array ( [keymaster] => 1 [throttle] => 1 ) [capabilities] => Array ( [keymaster] => 1 [throttle] => 1 ) [pvwp_7_user_level] => 0 [pvwp_capabilities] => Array ( [administrator] => 1 ) [comment_shortcuts] => false [pvwp_6_user_level] => 0 [pvwp_5_user_level] => 0 [pvwp_8_user_level] => 0 [pvwp_2_user_level] => 0 [pvwp_3_user_level] => 0 [pvwp_12_user_level] => 10 [pvwp_user-settings] => m5=c&m6=c&m9=c&m0=c&m10=c&m8=o&m7=c&m1=c&m2=c&editor=tinymce&hidetb=1&m11=c&m3=c&m12=c&m13=c&m4=c [pvwp_13_user_level] => 10 [pvwp_11_user_level] => 10 [pvwp_10_user_level] => 10 [pvwp_1_capabilities] => Array ( [contributor] => 1 ) [pvwp_8_capabilities] => Array ( [administrator] => 1 ) [pvbb_topics_replied] => 13 [topics_replied] => 13 [pvwp_6_capabilities] => Array ( [administrator] => 1 ) [pvwp_7_capabilities] => Array ( [administrator] => 1 ) [pvwp_3_capabilities] => Array ( [administrator] => 1 ) [pvwp_4_capabilities] => Array ( [administrator] => 1 ) [pvwp_2_capabilities] => Array ( [administrator] => 1 ) [pvwp_5_capabilities] => Array ( [administrator] => 1 ) [bp_liked_activities] => Array ( [1] => activity_liked [3] => activity_liked ) [pvwp_7_user-settings] => m5=c&m6=c&m9=c&m0=c&m10=c&m8=c&m7=c&m1=c&m2=c&editor=tinymce&hidetb=1&m11=c&m3=c&m12=o&m13=c&m4=c [pvwp_11_capabilities] => Array ( [administrator] => 1 ) [pvwp_13_capabilities] => Array ( [administrator] => 1 ) [pvwp_10_capabilities] => Array ( [administrator] => 1 ) [pvwp_12_capabilities] => Array ( [administrator] => 1 ) [pvwp_3_user-settings] => m5=c&m6=c&m9=c&m0=c&m10=c&m8=o&m7=c&m1=c&m2=c&editor=tinymce&hidetb=1&m11=c&m3=o [pvwp_4_user-settings] => m5=c&m6=c&m9=c&m0=o&m10=c&m8=c&m7=c&m1=c&m2=c [pvwp_2_user-settings] => m5=c&m6=c&m9=c&m0=c&m10=c&m8=c&m7=c&m1=c&m2=o&editor=tinymce&hidetb=1&m11=c&m3=c&m12=c&m13=c&m4=c [bb_user_settings_time] => 1276463427 [pvwp_10_user-settings] => m5=c&m6=c&m9=o&m0=c&m10=c&m8=c&m7=c&m1=c&m2=c&editor=tinymce&hidetb=1&m11=o&m3=o&m12=c [screen_layout_dashboard] => 1 [metaboxhidden_dashboard] => Array ( [0] => dashboard_recent_comments [1] => dashboard_incoming_links [2] => dashboard_plugins [3] => dashboard_quick_press [4] => dashboard_recent_drafts [5] => dashboard_primary [6] => dashboard_secondary ) [metaboxhidden_nav-menus] => Array ( [0] => add-post [1] => add-post_tag ) [pvwp_user-settings-time] => 1276464114 [nav_menu_recently_edited] => 3 [meta-box-order_dashboard] => Array ( [normal] => dashboard_right_now,dashboard_recent_comments,dashboard_incoming_links,dashboard_plugins,dashboard_quick_press,dashboard_recent_drafts,dashboard_primary,dashboard_secondary [side] => [column3] => [column4] => ) [pvwp_2_user-settings-time] => 1275215993 [pvwp_7_user-settings-time] => 1275772159 [pvwp_4_user-settings-time] => 1271497216 [closedpostboxes_dashboard] => Array ( ) [pvwp_3_user-settings-time] => 1275065270 [pvwp_10_user-settings-time] => 1274906535 [managenav-menuscolumnshidden] => Array ( [0] => link-target [1] => css-classes [2] => xfn [3] => description ) [pvwp_dashboard_quick_press_last_post_id] => 51 [pvwp_7_dashboard_quick_press_last_post_id] => 6 [pvwp_3_dashboard_quick_press_last_post_id] => 63 [pvwp_10_dashboard_quick_press_last_post_id] => 3 )

    #89663

    I am mate, the function bb_get_avatar() returns either your Gravatar or the default gravar that you specified in your admin section under Settings / Discussion.

    In order for that to happen you have to type in the code I’ve given you above. I’ve got it working right now, i’m looking at it.

    It’s not working for you for some reason I can’t replicate, so you need to debug the array and look to se what’s happening with print_r($bb_current_user) – and we’ll try from there.

    #89661

    offs – my bad, i’m so sorry.

    I mean print_r been swapping languages too much this weekend.

    On my version, the avatar I get shown on every page is my own, even other profiles.

    I actually haven’t written the code to get teh grey man, just to test/output my own avatar.

    #89660
    driz
    Member

    that code throws an error Call to undefined function print_f()

    The avatar shows correct every but when viewing the profile page, it’s as though bbPress treats that as the current user and changes the avatar.

    You say you get your own avatar when viewing a profile, what happens if you view the same profile but logged out? Do you get mystery man or the profiles avatar?

    #89659

    I can’t replicate that I’m afraid.

    I’m looking at the profile page of a different user and I’m getting my own Avatar.

    add this before your code and read the output:

    print_f($bb_current_user)

    It should give you a bit of insight.

    #89724
    chrishajer
    Participant

    I asked Matt 3 weeks or so ago if we should release 1.0.3 or 1.1 (and what to do with the couple patches in the 0.9 branch) and this was his response:

    I don’t think we should update the 0.9 branch anymore, and probably not 1.0 either. (Same as WP.) If 1.1 is ready let’s get it out the door. :)

    #89742

    In reply to: Theming the ajax

    Oh, thats a good workaround too Gautam; i didn’t know if they got parsed by the MO or not, as they’re in the front-end.

    EDIT: MO, not PO. D’oh :)

    #89598
    Gautam Gupta
    Participant

    1) When is 1.0.3 coming out. Seriously. What day? (when I check the “bbpress company blog” I seem to only see hacked up IRC chat logs from 5 months back… so much for “official sounding” posts, huh!)

    I had sent a mail to Matt a few hours back, lets wait for sometime.

    2) Who (names?) has editing rights to bbpress.org?

    Chris (I am not sure), matt, mdawaffe.

    3) Is bbpress definitely becoming a WP plugin?

    There are 90% chances for this.

    4) If bbpress becomes a WP plugin, will it also remain standalone?

    5) How will bbpress plugins be integrated into a proposed WP plugin?

    As bbPress is not in the plugin phase, there is no roadmap for this (for the time being). Also check https://bbpress.org/forums/topic/bbpress-as-a-wordpress-plugin-thoughts

    6) What exactly is backpress, and what is it’s status?

    Check http://backpress.org/ There were also some developments in it about 2 weeks back.

    7) Who (names?) is in charge of updates/commits/releases for bbpress at this moment?

    Matt, mdawaffe, filosofo (inactive), chrishajer. Don’t know about anyone else.

    8) How can plugin devs update their bbpress plugins and stay in touch with higher ups?

    What do you mean by “higher ups”?

    #89750

    If you’re looking for a bit more control over things, you could do this:

    $global $bb_current_user;

    $profile_link = get_user_profile_link( $bb_current_user->ID );

    $profile_avatar = bb_get_avatar($bb_current_user->ID, 100);

    Ok, it’s not letting me put links in, but that’ll allow you to output the code as you wish :)

    #89657

    Ok, “$user” is blank/empty for some reason, it’s not even a global that needs to be redefined. I’m sure I’ve fixed this elsewhere, let me hunt around some of my forums and get back to you :)

    EDIT: it’s $bb_current_user

    Apparently, we wanted to be as different from wordpress as possible ;-)

    global $bb_current_user;

    echo bb_get_avatar($bb_current_user->ID, 100);

    #89656
    driz
    Member

    Thanks, those worked great. Had to change the author link though as that function spits out the anchor tags itself.

    I used this if anyone is interested:

    <a href="<?php user_profile_link( $topic->topic_last_poster ); ?>"><?php topic_last_poster(); ?></a>

    Another quick question though, I’m try to show the gravatar for a logged in user in the header and the mystery man if not logged in. This is teh code I have so far, but it’s not working very well, it always shows the mystery man and shows the avatar of the profile your viewing and not the logged in user.

    <?php if ( $avatar = bb_get_avatar( $user->ID,$size='48' ) ) : ?>
    <?php echo $avatar; ?>
    <?php unset($avatar); endif; ?>

    Thanks

    #89597
    wtfmatt
    Member

    @Gautam*

    I just said that is was set and at that time there were no open tickets for 1.0.3 as far as I remember (and it was new then). Also, it is Gautam.

    Not really following you completely, but from what it sounds like, you just keep proving that nothing in TRAC is reliable. Deadlines aren’t met, or even cared about really, tickets are ignored by those in power, (let alone shared with the public, and NO, 99% of users don’t know about TRAC)… and overall, coordination is appalling, at best.

    If you choose to hold onto the wishful idea that TRAC and deadlines and work are all peachy keen and your work is worthwhile, then by all means, keep going… ignorance is bliss after all. Hell if I worked as hard as some of you guys, I would be spitting bullets about now…

    So since Kevin wants me to address specifics, here are my questions, to the entire bbpress community:

    1) When is 1.0.3 coming out. Seriously. What day? (when I check the “bbpress company blog” I seem to only see hacked up IRC chat logs from 5 months back… so much for “official sounding” posts, huh!)

    2) Who (names?) has editing rights to bbpress.org?

    3) Is bbpress definitely becoming a WP plugin?

    4) If bbpress becomes a WP plugin, will it also remain standalone?

    5) How will bbpress plugins be integrated into a proposed WP plugin?

    6) What exactly is backpress, and what is it’s status?

    7) Who (names?) is in charge of updates/commits/releases for bbpress at this moment?

    8) How can plugin devs update their bbpress plugins and stay in touch with higher ups?

    That should be enough for now. Please, no condescending answers, since we are aiming for “maturity” in this thread from here on out. This is not just for me, but the community, remember. Even if I’m an immature idiot with false hope…

    #89592
    Gautam Gupta
    Participant

    Regarding bbpress.org edit privileges, AGAIN… who the hell has them? another example of matt not being clear, or at least proof that whoever HAS edit privileges (maybe the few you mentioned) don’t give a rat’s arse about listening to feedback.

    I think chris atleast has the power to make blog posts, but I think he shouldn’t as blog posts are taken as official announcements which should be made only by the people of the company of the project.

    Also. IM SICK of people saying “look at TRAC… look at TRAC” … who the hell looks at TRAC? And who the hell actually listens to and implements what is said on TRAC (re: bbpress)? Nobody and barely anybody with power, respectively! TRAC is mostly time wasted back and forth and tickets eventually being rejected or closed by matt or others, or shoved off into the big, vague, undefined world of “backpress.”

    Developers look at trac! Just look at log and see how many commits chrishajer has made in the recent weeks to fix bugs. This para is 100% insane and totally wrong!

    THERE IS NO POINT to contribute to trac when matt IGNORES EVERYTHING and nothing has gotten anywhere for 2 friggin years. Why funnel feedback to the top of the chain when only one person, who doesn’t care or listen anyway, is the only person able to activate them?

    You haven’t been in the community for long (as you said in one of your previous replies) or not keeping a tab on the developments, so I prefer you to keep your mouth closed. :|

    @Gautam, what due date was set for 1.0.3 cuz I have never come across one, and I know about 20,000 users who would love to know as well.

    Check it yourself (don’t be so lazy) – https://trac.bbpress.org/milestone/1.0.3

    #89759

    In reply to: Custom Theme

    Gautam Gupta
    Participant

    Please chmod your my-templates folder (and also sub-folders and files) to 755. That would fix the problem.

    #89584

    For me, it comes down to this:

    In my opinion there’s no point in getting developers for a project, and then adding someone to Manage it above them because there’s a fairly good chance that the project plan will not be what the developer had in mind.

    The best plan, and again I’m biased, would be to get a group of like minded folks with a vision and have someone lead it, and lay out a plan, and then find a developer(s) who would want to join that project.

    That way you’re getting a developer(s), who knows in advance what they’re getting themselves in for :)

    Being able to share the same message from top (PM) to bottom (community) enables growth and ease of people joining. It encourages all thats good about Open Source Software.

    I learnt that from Automattic :)

    They’ve dropped the ball here, thats all. If they don’t pick it up, someone will. But posts ripping into Matt as a person don’t help anyone :)

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

    Look, i’m not wanting to jump the gun here.

    I think this is a really bad time to have this discussion. 1.0.3 is nearing release, and with it will bring bugs and questions and uproar that is both good “bbPress is saved” and bad “bbPress is doomed” and any good/useful conversation is going to be undermined.

    Lets get 1.0.3 out the door, lets avoid posts like one from the orignal author, and lets see where the chips lie after the bulls in the china shop have left and the dust has settled (bulls being WP3 and bbPress1.0.3)

    Thats just my opinion though, I’m sure there are many here who have both other opinions and much better opinions. Especially those not replying to froum posts at now 4.30am ;-]

    Good night all, sleep well!

    #89739

    In reply to: Theming the ajax

    Nope,

    We hardcoded alot of stuff into the core.

    That said, it’s in a Javascript file, so you could change it without messing up any of the PHP running bbPress, or you could try and overwrite it with another jQuery plugin or code to overwrite the option for confirmPostDelete inbbTopicJS.

    I’ve not played around with jQuery since 1.1 so can’t talk with any authority on doing so, but I’m sure it’s possible.

    #89583
    Greg
    Participant

    I’m not particularly fond of your generalization about developer communication skills. That’s not my experience at all. It is just an ignorant stereotype.

    That said, devs are necessary but not sufficient. I agree a lead is essential. My point is that talking about forking the code without committed devs is ridiculous.

    Instead of complaining (justified though it may be) we need to identify the developers who are interested and capable of driving bbPress forward.

    #89581
    chrishajer
    Participant

    I can commit code. You can look through the recent commits and see the others:

    mdawaffe

    filosofo

    matt

    sambauers

Viewing 25 results - 20,926 through 20,950 (of 32,499 total)
Skip to toolbar