Search Results for 'buddypress'
-
AuthorSearch Results
-
September 8, 2012 at 6:05 pm #141292September 8, 2012 at 5:20 pm #141290
In reply to: Buddypress generates “bpfull-35×35” avatars
Tammie Lister
ModeratorWhat theme are you using? I ask this as it may have an impact.
September 8, 2012 at 5:19 pm #141289In reply to: [Solved] Get list of unread private messages
prowseed
Participant@shanebp, you are awesome : )
I just jumped into my ftp, located the function bp_has_message_threads() and trully there is a type param. And… the code you posted on top works like a dream : )
Thanks again.September 8, 2012 at 4:48 pm #141277proshopoutlet
Memberim using salutation its a buddypress compatible theme
September 8, 2012 at 4:06 pm #141275@mercime
Participant@cleaus I just found out that DailyPost is hosted in WP Theme Repo and the content-page.php code has the “missing” lines, see https://themes.svn.wordpress.org/dailypost/1.0.5/content-page.php
I see that the theme has a PRO version as well.So are you using the pro version or the free one from WP theme repo? If you’re using the one from the repo, you should download another copy of the theme and re-upload it manually via FTP to make sure all files are there and I will work from the code in repository. If it’s the pro version, it’s weird that it’s missing some lines which are available in the free version.
September 8, 2012 at 3:50 pm #141287In reply to: [Solved] Get list of unread private messages
prowseed
ParticipantAnd did YOU look at the codex?

Ofcourse, it was the first thing I did when I discovered the problem. I’ve been heavy googling for one hour after I made this question. At the codex there is info that the olny accepted parameters are:
{user_id, box, per_page, max}. Perhaps “box=notices” would be some point of interest (can’t check now as I’m away from working env) but obviusly there’s nothing like type
And about: bp_message_thread_has_unread()
I don’t want to check if the message I get is unread or not, but I need to make this filter on the level of query ( not display ), so I am getting only unread messages, not ‘n’ number of messages from which I am displaying only those that are unread because either way I will not display all of them or I will have to query very big amount.I see the great power of BuddyPress, but I’m pretty new in this system (it’s my second day
) and I’m jumping through files and functions looking for some clue. I could optionaly make it dirty hardcode, but then everyone in my team would push me to the pit of inferno 
//EDIT
Anyway: Thanks for interest
September 8, 2012 at 3:46 pm #141285In reply to: [Resolved] Allignment – BlackLight theme
@mercime
Participant@tomelk31 Clear cache. The Members Directory page layout is just fine in desktop and iPad. What browser/device are you viewing it in?
September 8, 2012 at 3:38 pm #141284@mercime
ParticipantYou’re welcome. Marking this as resolved
September 8, 2012 at 3:29 pm #141283In reply to: [Solved] Get list of unread private messages
shanebp
ModeratorDid you look at the codex?
https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-private-messages-loop-bp_has_message_threads/Try this to start your loop
``
I’m not sure if ‘type=unread’ is valid.
bp_message_thread_has_unread() returns true or false
So you can use it in your loop to decide whether to proceed.September 8, 2012 at 2:15 pm #141288In reply to: [Resolved] Allignment – BlackLight theme
tomelk31
Member@mercime The members page shows the sidebar pushed down still. here: http://www.chelseatalk.co.uk/members
September 8, 2012 at 12:22 pm #141281In reply to: Create custom field in ’base’ group manually
drrxa
ParticipantMy specific problem is that I need to add a country select box to the extended user profile that will appear in registration form and I don’t want to add it through the admin panel because (1) it is hard to enter 256 countries manually and (2) I will need multiple instances of that list.
Now I came up with the following code after a while of digging into the core files of BuddyPress, the first part that add the ‘Country’ `selectbox` works fine, but the second part which is supposed to add the countries options does not wok, I get an empty `selectbox` that is labeled “Country” without any options:
`
add_action(‘bp_init’, ‘add_custom_country_list’); // That might not be the perfect hook to use
function add_custom_country_list() {
if (xprofile_get_field_id_from_name(‘Country’)) return;
$country_list_args = array(
‘field_group_id’ => 1,
‘type’ => ‘selectbox’,
‘name’ => ‘Country’,
‘Description’ => ‘Please select your country’,
‘is_required’ => true,
‘can_delete’ => false,
‘order_by’ => ‘default’
);
$country_list_id = xprofile_insert_field($country_list_args); // It work till here – The following part does not work
if ($country_list_id) {
$country_list = array(‘USA’,’Germany’,’England’); // To be replaced with the full country list
foreach ($country_list as $i => $country) {
xprofile_insert_field(array(
‘field_group_id’ => 1,
‘parent_id’ => $country_list_id,
‘type’ => ‘option’,
‘name’ => $country,
‘option_order’ => $i+1
));
}
}
}
`
Can anyone help me about what is wrong with this code? Thanks.September 8, 2012 at 11:53 am #141280In reply to: Theme compatibility?
Sergio De Falco
ParticipantPaul, anyway it’s pretty simple to use both methods. We know that default wp_users support first_name, last_name, nickname and description (bio). Maybe you could make possibile to modify each of that from buddypress (i made it in my theme) and make a base group with these fields. Then if administrators want to add more fields and groups you could populate xprofile table. In this way you could have a more deep integration into WordPress.
September 8, 2012 at 11:33 am #141279In reply to: BP Photos+tags not working
erikahrend
MemberThanks guys for your kind replies. @rogercoathup, will your plugin allow users to create several galleries? And will users be able to tag other users (their buddies) on photos not their own?
Thanks again.
September 8, 2012 at 10:31 am #141272In reply to: BP Photos+tags not working
Roger Coathup
Participant@erikahrend – we have an album plugin that supports full member tagging of photos – we should have an announcement shortly regarding its release — watch this space!
September 8, 2012 at 10:01 am #141268cleaus
ParticipantThats all the code that was contained on that page? Not sure what is missing?
September 8, 2012 at 7:28 am #141266jaymeselman
Member@mercime i can’t even begin to say thank you. i have spent days trying to figure this out. seeing it actually work is incredible. thanks for all your help and hardwork!
September 8, 2012 at 5:05 am #141264@mercime
Participant@cleaus missing codes -> lines 16-21 and 23-28 in your latest pastebin.com link for content-page.php
September 8, 2012 at 4:55 am #141263In reply to: [Resolved] Allignment – BlackLight theme
@mercime
Participant@tomelk31 ok, I see that you’ve added the styles now and I see that the additions have fixed the layout for all BP pages.
September 8, 2012 at 4:33 am #141260@mercime
Participant@burntheedges https://codex.buddypress.org/getting-started/installing-group-and-sitewide-forums/ Per codex article above If you only want sitewide forums, then you should “Disable (uncheck) Discussion Forums in the Settings > BuddyPress > Components panel” etc
September 8, 2012 at 4:12 am #141256In reply to: Badge plugin not working
@mercime
Participant@tgnwsauctions not your fault except that you shouldn’t install a BP plugin which has not been updated for over two years.
September 8, 2012 at 4:11 am #141255In reply to: Display age on profile page
funmi omoba
Participant@sgr33n, do you mean `format(‘F, d’); ?>`
please can you explain as i have no code knowledge.
thanks
September 8, 2012 at 3:33 am #141254In reply to: Theme compatibility?
@mercime
Participant== why buddypress doesn’t use user_metadata and have a proprietary xprofile table. ==
I believe one reason would be that WP doesn’t have an API for BuddyPress’ more sophisticated profile fields/groups, or something of that nature. At least that’s what I recall a core dev answering the last time that question was asked
September 8, 2012 at 2:50 am #141227Quint
ParticipantThis is the extent of my understanding: groups/index.php is the file you’re asking for. In it, the groups-loop.php template is referenced. It’s that template that generates those “join” and “leave” buttons; specifically, the following action “bp_directory_groups_actions”. If I’ve mislead, someone jump in and correct me.
September 8, 2012 at 2:36 am #141253@mercime
Participantok, I have revised the code above to right sidebar only. Delete old header-buddypress.php and sidebar-buddypress.php and add code posted above.
Note that in the revised instruction, you do not create a blank sidebar-buddypress.php file but copy the sidebar.php file and Save As > sidebar-buddypress.php then follow instructions above.
September 8, 2012 at 2:24 am #141252Etsuko
MemberOK, I’ve just tested BP 1.6.1 on WP 3.4.2 (BP Default theme) in my dev site.
Yes, the same issue is still persistent!
Also, I found an interesting post and I wonder if AJAX change is related with this issue…
AJAX changes in BuddyPress 1.6 -
AuthorSearch Results