Search Results for 'buddypress'
-
AuthorSearch Results
-
April 12, 2009 at 8:16 pm #42474
In reply to: Add fields to wp_users
Jeff Sayre
ParticipantPeter-
I realize that you are not getting the answers you desire. You must have a sufficient understanding of and comfort level with PHP before you can delve too deeply into hacking your own solutions or coding your own theme templates. Otherwise, you need to use the stock WPMU and BuddyPress install and then customize with any plugins and 3rd-party themes that may be useful.
Since we do not have any idea of your particular coding skills, we are trying to point you in the right direction. Please realize that beyond a certain point, we cannot help you write your own custom code.
We all started at the beginning when it came to coding and then had another learning curve when it came to understanding the inner workings of WordPress and BuddyPress. It can be frustrating along the way but it is indeed possible to accomplish!
Here are a few more tips:
- Since you do seem to be wanting to group all user data within stock WP tables, you should search the WP and WPMU forums and ask your questions there
- Visit these WP Codex pages to help shed more light:
- https://codex.wordpress.org/Function_Reference/wpdb_Class
- https://codex.wordpress.org/Function_Reference
- Google for tips on learning data-driven PHP coding
- Hire a 3rd-party developer who can do the work: hacking files directly or create a plugin that will accomplish what you’re after
Please hang in there and don’t give up hope.
April 12, 2009 at 8:05 pm #42473In reply to: Wildcard DNS and SVN
jtbailey
ParticipantCONTINUED…
…and everything seems to work:
A /home/jbailey/www/html/wp-content/plugins/buddypress/bp-friends.php
etc… etc… etc…
…Checked out revision 1324.
But when I check the plugins folder, Buddypress isn’t there. (I’m using Coda, by the way)
First time using subversion, so I don’t really know what I’m doing.
April 12, 2009 at 8:03 pm #42472In reply to: Wildcard DNS and SVN
jtbailey
ParticipantI don’t know why this keeps cutting my post in half, I’ll give it one more try:
I’m also having trouble with the svn, I do this:
svn co https://svn.buddypress.org/trunk/ /home/jbailey/www/html/wp-content/plugins/buddypress/
April 12, 2009 at 8:02 pm #42471In reply to: Wildcard DNS and SVN
jtbailey
ParticipantWhoops, it cut me off… I meant to say:
I’m also having trouble with the svn, I do this:
`svn co https://svn.buddypress.org/trunk/ /home/jbailey/www/html/wp-content/plugins/buddypress/
April 12, 2009 at 8:00 pm #42470In reply to: Wildcard DNS and SVN
jtbailey
ParticipantI’m also having trouble with the svn, I do this:
svn co https://svn.buddypress.org/trunk/ /home/jbailey/www/html/wp-content/plugins/buddypress/
April 12, 2009 at 7:38 pm #42469In reply to: Add fields to wp_users
peterverkooijen
ParticipantThat is exactly what usermeta is for.
usermeta contains a lot of very cryptic data about bb_capabilities and blog roles/functionality, most from test members I’ve already deleted from the system. What am I supposed to do with that?!
The WordPress Codex has lots of useful information, but very little about the database structure, how to form queries to pull up that data and where these queries are in the WordPress code.
There is a section on the database structure, but it\’s about version 2.5. I know some fundamental changes were made since that version. It’s not relevant for WPMU and Buddypress anyway.
Basically I’m trying to figure out how to keep a full-fledged members database at the heart of WordPress, with common fields like name, address, company, title, etc., that I can tap into for other scripts. Static data that doesn’t interfere with other functionality in WP.
Has nobody ever done that? Is it impossible?
Should I create a seperate members database outside WordPress that somehow communicates/syncs with WordPress?
April 12, 2009 at 7:10 pm #42465In reply to: XMLRPC support in BuddyPress with BPDEV XMLRPC
nicolagreco
ParticipantYep i’ll do that for sure

but i’ve to finish it first
For now group component has almost complete support
April 12, 2009 at 7:03 pm #42463In reply to: Excerpt function in RC2
Burt Adsit
ParticipantThanks for the css. I haven’t tried it yet. Got sidetracked. Does any of that fix the overflow of text problem? If so then post the fix in trac as a patch or comment here: https://trac.buddypress.org/ticket/665
The problem with the sitewide activity is that you can get all the activities you want but it’s not really formatted for easy detection of specific group activities. The only indication that it’s from a specific group is the bp_activity_sitewide table fields ‘primary_link’ and ‘component_name’.
The component_name will be ‘groups’ and the primary_link will be something like this: http://ourcommoninterest.dev/groups/public
Take a look at bp-activity-classes.php get_sitewide_activity()
You can’t just make a call to a canned function with some parameters and get stuff for a specific group.
April 12, 2009 at 6:42 pm #42461In reply to: Securing components from non logged in users
trcwest
ParticipantYes i tried burtadsits code in my bp-custom.php but no joy.. just get a few php errors in my header..
Warning: Cannot modify header information – headers already sent by (output started at /home/ourbour/spotskenya/wp-content/plugins/buddypress/bp-custom.php:9) in /home/ourbour/spotskenya/wp-content/plugins/wordpress-mobile-plugin/wordpress-mobile.php on line 1658
Warning: Cannot modify header information – headers already sent by (output started at /home/ourbour/spotskenya/wp-content/plugins/buddypress/bp-custom.php:9) in /home/ourbour/spotskenya/wp-content/plugins/wordpress-mobile-plugin/wordpress-mobile.php on line 1659
Warning: Cannot modify header information – headers already sent by (output started at /home/ourbour/spotskenya/wp-content/plugins/buddypress/bp-custom.php:9) in /home/ourbour/spotskenya/wp-content/plugins/wordpress-mobile-plugin/wordpress-mobile.php on line 1660
Is there anything else that could do this.. im sure i ahve come accros a plugin from nicola??
i also tried Mspecht one in <?php ?> but it didnt work either??
April 12, 2009 at 6:33 pm #42459In reply to: Securing components from non logged in users
peterverkooijen
ParticipantThere’s a member access plugin here, but it has no settings for the members and groups sections in Buddypress.
This plugin only works for “pages”.
Is there a way to extend one of these plugins?
April 12, 2009 at 5:47 pm #42457Anointed
ParticipantI am talking about wpmu and buddypress.
Sorry if I made it confusing by mentioning vb, as I was only using it as an example of what I was trying to explain.
April 12, 2009 at 4:51 pm #42455In reply to: How to use full name, first name + last name
peterverkooijen
ParticipantSo, unless you hack the wp-signup.php or register.php files, and require that a full name be provided when registering…
That’s what I want then. I thought it already was a required field in the Buddypress registration. Anyway ‘Dear User’ is not acceptable. There must be a way to get the full name from sign-up in there. That’s how most professional sites do it.
I’ll look into profile-loop.php. Thanks for that pointer.
Buddypress/WPMU just makes it really hard for someone who’s not a real PHP-programmer to add/retrieve additional member data. In my old home-baked site there’s one table with all member data (name, company, city, etc.) and straightforward queries.
Where should I start when I want replicate something like that in Buddypress?
Any piece of stored data can be accessed and spit out in any number of ways.
How? Is it all hardcore PHP programming from scratch? Are there code examples anywhere? Documentation that explains how to do it?
April 12, 2009 at 4:35 pm #42454In reply to: Securing components from non logged in users
peterverkooijen
ParticipantHas this been resolved? Is there now a working plugin based on the code above?
In my site the members and groups sections should definitely be members-only. This is essential stuff that should be a default part of the Buddypress package imho. What’s the point of signing up for a network if everybody has access anyway?
April 12, 2009 at 4:18 pm #42452In reply to: How to use full name, first name + last name
Jeff Sayre
ParticipantI assume you’re specifically talking about customizing a BuddyPress template. If so, then you need to look in the BuddyPress profiles tables in MySQL.
For instance, the field definition for the “Full Name” field is stored in the wp_bp_xprofile_fields table and any corresponding datum is stored in the wp_bp_xprofile_data table.
With respect to this:
At the moment Buddypress/WP MU makes it very hard, perhaps impossible, to flexibly use member’s real names or other data (companyname, city) in the site or have something like ‘Hello John’ in email notifications.
That is not true. Any piece of stored data can be accessed and spit out in any number of ways. It just must first be in the database. Look in the bp-xprofile.php file and the bp-xprofile subdirectory for a number of functions that can be called to extract a user’s data.
By the way, I did see your other post about this topic and it was answered appropriately. With the default WPMU and BuddyPress setup, you will not be able to use a user’s full name until they’ve entered that data. They will not be able to enter their full name until after they register.
So, unless you hack the wp-signup.php or register.php files, and require that a full name be provided when registering, you will not be able to send them a welcome email with their full name since that piece of data does not yet exist.
All of what you are asking is possible but requires either a pre-existing plugin, a custom hack, or your ability in customizing and coding a BuddyPress template.
April 12, 2009 at 4:03 pm #42451In reply to: Add fields to wp_users
peterverkooijen
ParticipantI know that’s not default WordPress MU+Buddypress. That’s why I ask, in the ‘Creating & Extending’ section. I understand it would require hacking.
It’s not impossible to add fields to the wp_users table. My question then is, where can I add corresponding fields to the form and where is the query that puts the data in the fields.
That’s should be hackable somehow. Don’t tell me there are Natural Laws against it.
If there’s really no way to achieve this kind of thing, I can’t use WPMU/Buddypress and should get out now while I still can.
April 12, 2009 at 3:38 pm #42450In reply to: get recent comments & avatars
Jeff Sayre
ParticipantI assume you’re using the Recent Comments widget. That is a WPMU widget and not specifically a BuddyPress Widget.
You have three options:
- Search the WordPress plugin repository to see if someone has created a plugin to do just that
- Search the forums on the WPMU site for an answer. If you don’t find one, then post a question.
- Hack WPMU’s widgets.php file yourself to provide the necessary functionality
Jeff Sayre
ParticipantThere were some changes to the header.php file. Off the top of my head, I cannot remember if both the buddypress-home and buddypress-member themes had changes. Or, if only one of them had changes.
Either way, the best thing to do is open your header.php file and compare it to the new header.php file of the respective BuddyPress theme.
If I have the Blog-Menu in my theme – the bp_home_slug doest point to the right page (the home-blog) but to an article in another blog…
It should be BP_HOME_BLOG_SLUG, not BP_HOME_SLUG.
April 12, 2009 at 2:46 pm #42447In reply to: Use full name in confirmation emails
peterverkooijen
ParticipantI know. My question is which files to hack and how, specifically how to get the member’s name from the form or database. Or how to get the full name of the logged-in member from the database in general for other situations.
I’ve already tried editing the email text in wpmu-functions.php, replaced ‘User’ with ‘DISPLAYNAME’ and added this line:
‘$welcome_email = str_replace(\”DISPLAYNAME\”, $user->display_name, $welcome_email ); ‘
That kinda works, but the display_name in my new installation is the same as the username, not the full name. Not sure if that’s how it’s supposed to be. The full name is stored elsewhere, with two tables involved. I have no clue how to retrieve that data.
Or if anyone can tell me how to get the full name in the display_name field, that would fix the problem as well.
The default emails are really unacceptable. I\’m trying to move to Buddypress from a home-baked system where this kind of thing was easy. Can anyone give any pointers on how to retrieve basic logged-in member data with custom php/mysql?
Thanks!
[BTW, this comment system is going crazy with the escapes. You probably already knew.]
April 12, 2009 at 1:40 pm #42446In reply to: Wildcard DNS and SVN
Trent Adams
ParticipantSVN aka Subversion is a program that is installed on your host so that you can install programs that have their code repositories online easily. Any program (terminal on mac, putty on windows) can connect to your server through SSH. I don\’t know of anyway of installing SVN versions without SSH.
For example, if you have an install like /var/www/html/ for an install, and wanted WPMU as the root domain in that folder, you would do something like the following:
svn co http://svn.automattic.com/wordpress-mu/branches/2.7/ /var/www/html/then if you wanted to install buddypress from SVN into your WPMU install:
svn co https://svn.buddypress.org/trunk/ /var/www/html/wp-content/plugins/buddypress/That just installs everything in the /wp-content/plugins/buddypress/ folder like the latest SVN requires. It doesn\’t mean you are finished. You still have to read the README file about the specifics, especially copying the themes to the correct locations. Reason I say this is because at this point, it would be like having all files including the buddypress themes in /wp-content/plugins/buddypress/ which obviously isn’t complete. Imagine at this point you downloaded BP and just uploaded the entire thing to that location. It is a matter of copying around the themes to where they are supposed to be.
Trent
April 12, 2009 at 12:27 pm #42443In reply to: Excerpt function in RC2
nightstalker101
ParticipantThanks again for your help. Oh, no, this time, I´m gonna tell you something
:´
<li class=”group-box”>
<div class=”left”>
“><?php bp_the_site_group_avatar_thumb() ?>
<?php $member_count = groups_get_groupmeta( $group->id, ‘total_member_count’ ) ?>
<?php echo ucwords($group->status) ?> <?php _e( ‘Group’, ‘buddypress’ ) ?>
<?php if ( $member_count == 1 ) : ?>
<?php printf( __( ‘%d member’, ‘buddypress’ ), $member_count ) ?>
<?php else : ?>
<?php printf( __( ‘%d members’, ‘buddypress’ ), $member_count ) ?>
<?php endif; ?>
</div>
<div class=”right”>
<div class=”group-top”>“><?php bp_the_site_group_name() ?><?php bp_group_join_button( $group ) ?>
<div class=”clear”></div>
</div>
<span class=”activity”><?php echo bp_core_get_last_activity( groups_get_groupmeta( $group->id, ‘last_activity’ ), __(‘active %s ago’) ) ?></span>
<div class=”excerpt”>
<?php // echo bp_create_excerpt( $group->description ) ?>
<?php bp_the_site_group_description() ?>
</div>
</div>
<div class=”clear”></div>
´
thsi is the code from my custom theme file. And here the Css, maybe there is a better solution, but it works:
´
.group-box{margin:15px auto 10px -30px;height:80px;width:800px;background: url(../images/group_list_item.jpg);
padding:10px 20px 25px 15px;list-style:none;text-align:justify }
.left{float:left;width:65px;height:82px;font-size:9px;color:#686868;line-height:11px;text-align:right}
.group-avatar img{border:1px solid #686868;height:60px;width:60px}
.right{float:left;height:82px;margin-left:5px;width:725px}
ul#letter-list li {float: left;height:25px; width:27px;margin-right:5px}
.group-top{height:20px;}
.group-link{text-decoration:none;font-size:16px;color: #ff7f00;float:left}
.group-link:hover{text-decoration:underline}
.excerpt{color:#1a1a1a;font-size:12px;}
.activity{font-size:11px;color:#686868; font-style:italic;display:block;margin:0;padding:0}
.leave_group, .join_group{float:right;display:block;padding:4px 0 0 24px;margin:0;font-size:10px;text-decoration:none;
color:#bd2100;height:21px;width:96px;background: url(../../bp-groups/images/leave_group.png);font-weight:bold}
.leave_group:hover, .join_group:hover{text-decoration:underline}
.join_group{color:green}
#group-dir-count{margin:0 0 5px 2px;font-size:12px;color:#686868}
´
Can you still tell me, how I get the recent activities that happened on the page?
I tried to call the function, but all I got, was the time.
Thanks
April 12, 2009 at 8:47 am #42438In reply to: Add fields to wp_users
Paul Wong-Gibbs
KeymasterThis is just not the way that WordPress MU works. Buddypress is a plugin for WordPress MU and therefore uses the standard functions that WPMU provides to store and retrieve custom database information.
April 12, 2009 at 8:26 am #42436In reply to: Can I replace bp_create_excerpt with the_excerpt?
Paul Wong-Gibbs
KeymasterHmm bp_create_excerpt fakes an excerpt on any content, whereas the_excerpt pulls the excerpt from a blog post. I don’t think you can except to change any/all of the calls and expect them to work.
I suggest you visit https://trac.buddypress.org/newticket and submit this as a bug report. I think it would be a good idea if you attach perhaps a text file or similar to the post with an example of non-English content that triggers this error on your system, so when Andy fixes it, he has a test case.
April 12, 2009 at 5:47 am #42433In reply to: Admin Bar Logo Transparency
archik100
Participanttry using that on a BP installation.l I have a feeling it won’t come out as nice as this:
https://buddypress.org/wp-content/plugins/bp/bp-core/images/admin_bar_logo.gif
April 12, 2009 at 5:23 am #42431In reply to: Excerpt function in RC2
Burt Adsit
ParticipantI see what you are saying. You want to be able to display an excerpt of the group description in the group directory. The best way I can recommend to you is to create a filter in bp-custom.php. Create one if it doesn’t exist in the bp /plugins/buddypress directory. This is a file where you can put all your custom mods for bp. In there, stick the following code:
function my_group_directory_description($text){
global $site_groups_template;
// only filter the description in the groups directory
if ($site_groups_template)
return bp_create_excerpt($text, 50);
else
return $text;
}
add_filter(‘bp_group_description’,’my_group_directory_description’)
That hooks a filter for the group description only when in the group directory and limits the work count to 50. You can modify the number of words limit by changing ’50’ to whatever word count you want.
The number of lines can’t be calculated easily. Too many variables. The bp_create_excerpt() function works by word count.
April 12, 2009 at 3:49 am #42427Anointed
ParticipantIt’s that exact .jpg above as to why I even got interested in buddypress in the first place. It looked very similar to another program I use, only cleaner.
Needless to say I was more than a little dismayed to find out it is not included in buddypress. I sure wish I knew what happened to that file as I would have loved to use it for my ‘basic’ members. I could then provide ‘real’ themes for premium members.
Another nice aspect to that layout is it’s hard to mess up or not understand for a newbie wordpress user.
Add me to the list of those that really wish it would be released, especially since that theme is now depreciated compared to the new theme on this site.
-
AuthorSearch Results