Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 66,301 through 66,325 (of 69,100 total)
  • Author
    Search Results
  • #42474

    In reply to: Add fields to wp_users

    Jeff Sayre
    Participant

    Peter-

    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:

    1. 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
    2. Visit these WP Codex pages to help shed more light:
    3. Google for tips on learning data-driven PHP coding
    4. 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.

    #42473

    In reply to: Wildcard DNS and SVN

    jtbailey
    Participant

    CONTINUED…

    …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.

    #42472

    In reply to: Wildcard DNS and SVN

    jtbailey
    Participant

    I 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/

    #42471

    In reply to: Wildcard DNS and SVN

    jtbailey
    Participant

    Whoops, 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/

    #42470

    In reply to: Wildcard DNS and SVN

    jtbailey
    Participant

    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/

    #42469

    In reply to: Add fields to wp_users

    peterverkooijen
    Participant

    That 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?

    #42465
    nicolagreco
    Participant

    Yep i’ll do that for sure :)

    but i’ve to finish it first :) For now group component has almost complete support

    #42463
    Burt Adsit
    Participant

    Thanks 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.

    #42461
    trcwest
    Participant

    Yes 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??

    #42459
    peterverkooijen
    Participant

    There’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?

    Anointed
    Participant

    I 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.

    #42455
    peterverkooijen
    Participant

    So, 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?

    #42454
    peterverkooijen
    Participant

    Has 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?

    #42452
    Jeff Sayre
    Participant

    I 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.

    #42451

    In reply to: Add fields to wp_users

    peterverkooijen
    Participant

    I 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.

    #42450
    Jeff Sayre
    Participant

    I 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

    #42448

    In reply to: PHP-Error

    Jeff Sayre
    Participant

    There 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.

    #42447
    peterverkooijen
    Participant

    I 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.]

    #42446

    In reply to: Wildcard DNS and SVN

    Trent Adams
    Participant

    SVN 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

    #42443
    nightstalker101
    Participant

    Thanks 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

    #42438

    In reply to: Add fields to wp_users

    Paul Wong-Gibbs
    Keymaster

    This 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.

    #42436
    Paul Wong-Gibbs
    Keymaster

    Hmm 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.

    #42433
    archik100
    Participant

    try 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

    #42431
    Burt Adsit
    Participant

    I 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.

    Anointed
    Participant

    It’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.

Viewing 25 results - 66,301 through 66,325 (of 69,100 total)
Skip to toolbar