Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 29 total)
  • @cozzie

    Participant

    Brilliant, thanks a lot Roger!

    @cozzie

    Participant

    thanks a lot David!

    @cozzie

    Participant

    Brilliant thanks Jotem!

    This maybe pushing it but is there any way to have the avatars display only for activity which has excerpts? So blog posts, wire posts forum posts which all have text excerpts would include the avatar but updates such as Jim and John are now friends would not.

    thanks for all the help!

    @cozzie

    Participant

    Ooohh! I’m on BP 1.0.3 so that’s a shame, thanks for the effort anyway Jotem!

    So if anyone knows how to get this working on 1.0.3 and upwards and I’d be V grateful!

    @cozzie

    Participant

    Thanks so much Jotem!

    When I did it however the only image returned is the mysteryman avatar (for people who haven’t uploaded an avatar). Even for activity made by people with their own avatars only the mysteryman is returned.

    Here’s the full code I put in:

    function bp_get_activity_content() {

    global $activities_template, $allowed_tags;

    if ( bp_is_home() && $activities_template->activity_type == ‘personal’ ) {

    $content = bp_activity_content_filter( $activities_template->activity->content, $activities_template->activity->date_recorded, $activities_template->full_name );

    } else {

    $activities_template->activity->content = bp_activity_insert_time_since( $activities_template->activity->content, $activities_template->activity->date_recorded );

    $content = $activities_template->activity->content;

    $content = bp_core_get_avatar($activities_template->activity->user_id) . $content;

    return $content;

    }

    return apply_filters( ‘bp_get_activity_content’, $content );

    }

    @cozzie

    Participant

    Brilliant! Thanks again John!!

    @cozzie

    Participant

    Just to say if anyone is interested in making this change the if statement is:

    <?php if ( bp_is_home()&& bp_profile_activities( ‘type=friends&max=10’ ) ) : ?>

    Plus this change is required: https://buddypress.org/forums/topic/how-to-have-friends-activity-on-profile-page

    This will allow users to see their friends activity on their own profile page.

    BUT I still can’t figure out how to add Avatars to the activity templates. I think it would look great if, for activities with excerpts (blog posts, forum posts, wire posts etc), the users avatar is shown (a la facebook).

    Can anyone help or is this a major change to attempt?

    Thanks a lot!

    @cozzie

    Participant

    Great that did it! thanks a lot r-a-y and John James, greatly appreciated!!

    @cozzie

    Participant

    Thanks a lot John James

    I tried the patch for bp-activity-templatetags.php but it didn’t change things.

    Also tried leaving bp-activity-templatetags.php as it is and adding the patch as a new function in functions.php (bpmember/functions.php) and then calling that function from the profile/index.php but once again the activity remained as personal on profile pages.

    Have I misunderstood your meaning?

    Thanks again!

    @cozzie

    Participant

    thanks for the response fellas

    If the combination of friends + personal is not currently possible I wonder is there an ‘if’ statement I could use in the profile page so that if you are viewing your own page you are shown your friends activity but if you are viewing another users’ page you see their activity.

    Right now the main point of becoming friends with somebody is so that you can view their activity but unless that activity is on your main profile page it is quite ‘buried’ and unlikely to be viewed.

    I’ve looked at: bp-themes/bpmember/profile/index.php and there is a line of code:

    <?php if ( bp_has_activities( ‘type=personal&max=5’ ) ) : ?>

    Is there a way to change this so that it says ‘”If user_is_owner type = friends else type=personal”?

    This would be great

    For avatars, like you Mariusooms I’ve looked at the code but can’t see how to add avatars to the activities with excerpts so if anyone can offer any tips on this as well I’ll be in 7th heaven

    Cheers!

    @cozzie

    Participant

    Brilliant thanks guys! I’ll look in to both.

    @cozzie

    Participant

    I’ve gone through that and understand (i think) the loops, they seem very cool.

    But I am still unclear as what I need to do to set-up a new page called dashboard, can anyone guide me on this?

    Thanks!

    @cozzie

    Participant

    thanks r-a-y, will do myself some learnin’

    @cozzie

    Participant

    Hi Trent

    Thanks a lot for this super useful plugin

    I send users to to /wp-login.php and I hope to redirect them from here to the original link that they tried to view, do you have any idea how they can achieve this?

    I tried this:

    $ref = $_SERVER[‘HTTP_REFERER’];

    bp_core_redirect(get_bloginfo(‘siteurl’) . ‘/wp-login.php?redirect_to=’.$ref);

    but it sends users to the previously viewed page rather than the link they tried to view.

    For example if a user arrives at the homepage and clicks on a link they are sent to /wp-login.php to login, once logged in they are returned to the homepage not the page they wanted to view. This becomes more of a problem for users accessing the site from a link in an email (e.g. a friends invitation) because they are given no page to redirect to after logging in.

    thanks a lot, a lot for any help!!

    @cozzie

    Participant

    @ Andy

    Just wondering if there is a blog post or some other text about making a dashboard as mentioned? thanks

    @cozzie

    Participant

    Just to update: I got the plugin from r-a-y, it works great on bbpress but not on buddypress. It seems meta data for buddypress forums is yet to come

    @cozzie

    Participant

    Thanks a lot r-a-y. Not sure why but I can’t open that website, it redirects to http://www.proxyhosting.nl/redir.html. Is there anywhere else I can find the modified plugin?

    Cheers!

    @cozzie

    Participant

    thanks Jeff!

    @cozzie

    Participant

    Hi guys

    Just to say I had the same problem, it was because I’d changed my admin password. I’d figured I needed to go in to bbpress and also change the admin password there but I hadn’t also made the change in the forums intergration part. Not sure if this applies for anyone else….

    @cozzie

    Participant

    Yes, I had this problem. I figured it could be a plug-in conflict as, like connorg said, the registration worked fine at the beginning. For me it was the Google Analytics plugin – I deactivated it and all works fine again!

    @cozzie

    Participant

    a little nudge to see if anyone knows the answer!

    @cozzie

    Participant

    thanks a lot Burt!

    @cozzie

    Participant

    thanks Paul! I’d searched for previous threads honestly but didn’t find anything.

    @cozzie

    Participant

    Just realised the testbp.org site also has this bug – html tags are displayed in the forum excerpts of the side-wide activity widget.

    If its tough to fix, is there a way to stop the forum activity from showing in the site-wide activity widget?

    @cozzie

    Participant

    Yes, I’ve got this problem as well.

    Forum posts in Side wide activity include the [p] [/p] code like Will says.

    Does anyone have a clue where the problem lies?

    Everything else works fine, including all other side wide activities.

    I’m using WPMU 2.7.1 BP 1.0.1 and BBPress 1.0-alpha-6

Viewing 25 replies - 1 through 25 (of 29 total)
Skip to toolbar