-1
votes
2answers
33 views

Sessions in word press [duplicate]

Is it possible to set session in wordpress. If yes can you please tell how to do it? My sample code is. <?php session_start(); if(!isset($_SESSION['impression'])) { $_SESSION['impression'] = ...
-1
votes
1answer
95 views

How can i hide content if not friend in Buddypress? [closed]

How can I hide some specific contents or div or other stuff depending on being friend or not in buddypress ?? I tried to use the bp_is_user_friends() function but it did not work !
0
votes
1answer
1k views

How to update BuddyPress xprofile fields programmatically? [closed]

I update user info using wp_update_user function. I also need to update the table wp_bp_xprofile_data. Is there any function, where I can update data on wp_bp_xprofile_data table?
3
votes
1answer
2k views

How to edit bbPress template files - WordPress + BuddyPress + bbPress? [closed]

I am using BuddyPress 1.6.1, bbPress 2.1.2 and WordPress 3.4.2 I follow the guide here. In the end, I did the trick pointed out by Sarah Gooding because mywebsite.com/forums was blank right after ...
0
votes
2answers
857 views

How to set the default avatar of buddypress avatar [closed]

I need a way to set the default avatar for buddypress's bp_core_fetch_avatar. Using the regular get_avatar you can just set the $default path but I can't find anyway to do it with buddypress's ...
0
votes
2answers
405 views

Unhook the comment form in Buddypress

Im trying unhook the comment form found in the functions.php of the deafault buddypress theme so I can change it a bit. I placed this piece of code into my child theme functions.php but it didn't ...
1
vote
1answer
438 views

How to limit character length in BuddyPress function output [closed]

BuddyPress has a function (bp_member_profile_data) that pulls profile data into a members loop which looks like this: <?php bp_member_profile_data( 'field=Organization' ); bp_member_profile_data( ...
1
vote
1answer
1k views

How can I add an image field to BuddyPress Extended Profile Fields? [closed]

I'm working with the BuddyPress extended profile component and would like to add image fields to the WordPress user profile. Is there code that I can add to my theme's functions.php so it inserts the ...
1
vote
1answer
294 views

Show css depending on activity type in BuddyPress activity-loop [closed]

I was wondering if anyone knew of a way to show specific styles to the activity loop depending on the activity type? This is what I had an idea of: function mycustom_act_type() { if ...
0
votes
1answer
85 views

2 small questions: How to redirect to a created page & show that pages title in wp, bp

im trying to redirect the loggedin user to a page i created on the backend, i want to use my index to do so so, i added a do_action wrapped in an if statement is_user_loggedin() to call my function. ...