Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 5,401 through 5,425 (of 31,073 total)
  • Author
    Search Results
  • #244378
    chris_van_r
    Participant

    It must be something weird in my database.
    I’ve just edited my wp-config to connect to a different DB and installed WP in it, and activated my plugins & themes, and this time it did work, the upload avatar functionality appears, including in the wp-admin.

    If I change it out to my other database that has all my content, it dissapears again.

    What could cause this weird behavior?

    #244360

    In reply to: Display Name

    Prabin
    Participant

    well, yeah @danbp is right. Only if you are using bp-default theme, follow my instruction.
    But it works too.

    #244359

    In reply to: Display Name

    danbp
    Participant

    @jake-reimer,

    if you don’t use bp-default theme, this advice from @prabin04 is wrong:
    Copy BuddyPress *members* folder from bp-default folder inside your child theme, and search for member-header.php file located inside members->single folder.

    You need to take the copy from bp-templates/bp-legacy/buddypress/

    Theme Compatibility – Customizing

    #244358

    In reply to: Display Name

    Prabin
    Participant

    hi @jake-reimer, you can do this. you need to customize member-header.php file inside your child theme.

    Copy BuddyPress *members* folder from bp-default folder inside your child theme, and search for member-header.php file located inside members->single folder.

    and inside member-header.php file, find this code,

    <?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
    <span class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></span>
    <?php endif; ?>

    replace bp_displayed_user_mentionname(); this with your desired function name. either first name, or full name or DisplayName.

    Cheers.

    #244357
    edoescad
    Participant

    Hi. I just installed latest version of WP ini my server using Softaculous installer.
    Then I install the latest BP from its plugin installer. All working fine.

    But, when I opened via Mobile, the input area of Activity (Site-Wide Activity) cannot
    be seen. There are only some previous status records with no Comment, Favorite, and Delete buttons.

    I have tried many themes but stil the same problem.

    Please advise, and many thanks

    #244343
    gebar
    Participant

    Well, you are right. On the Twenty Fifteen theme the subform is indeed closed.

    However your code did not do the trick. The subform opens on page load but closes again (checkbox unchecked). Any further ideas?

    By the way, I am using the child Nirvana theme, and I have to stick to it as I have put a lot of work in its customization. The subform being open is convenient for me, and adding checked to register.php checks it. Would there be any problems from that?

    Thanks

    #244342
    danbp
    Participant

    By default it’s closed. Which theme/plugins do you use ? Do a test with one of twenty theme.
    Are what’s new form or activity comment working correctly or do you have also toggle issue with them ?

    #244340
    danbp
    Participant

    @gebar,
    the allow blog checkbox is a conditionnal who open a sub form via ajax. If you remove it from the template, it will compromise the register process. But as the only thing we need is the value (0 or 1), we have to change it from 0 (empty) to 1 (ckecked) in the core. The function who made this is bp_get_signup_with_blog_value which contains a filter for $value.

    Give this a try. Add it to bp-custom.php

    function create_blog_activated( $value ) {
    if ( function_exists( 'bp_get_signup_with_blog_value' ) )
    // default value is ''
    	$value = 1;
    return $value;
    }
    add_filter( 'bp_get_signup_with_blog_value', 'create_blog_activated', 10, 1 );

    Now the register page shows blog activation part open and checkbox is ticked.

    #244338

    In reply to: Group Post support

    danbp
    Participant

    BuddyPress is a plugin dedicated to members, not blogs. On a multisite install, each member can get his separate blog, without limitation. These member blogs are then refrenced on a blog directory. An each membrer profile will show a blog directory with that member’s blog(s).

    Groups is a component to group members, not blogs. If you need a group blog, instead or in addition of individual member blogs, you can use BuddyPress Groupblog. Such blog will be for all group members and each group can have only one blog. But each group member can have his own blog. In this case, the network will have a main blog, group blogs and individual blogs.

    Whatever solution you use, a blog is always part of WordPress and will work exactly like the main site blog where you installed BuddyPress.
    This means that it’s the responsability of each member with a blog to admin his blog, even if the main site admin has priority and can allow/disallow plugins and themes. Usually disallowed, so members can only use what main site admin decided they can use.

    Enhancement can be asked on Trac. Read here about user participation and contribution to BuddyPress.

    Participate and Contribute

    #244336
    danbp
    Participant

    @gitavns, it’s not a BP bug. But you have to verify your install. Since when did you get this issue ? What have you done (update, adding custom function) ?

    – Activate debug mode in wp-config.
    – Deactivate Divi and activate Twenty fifteen theme.

    If you use plugins and/or custom code (bp-custom or child-theme functions.php), deactivate them and give a try. If it’s OK with only WP/BP, reactivate and test each plugin one by one.
    Once plugins being tested, and if OK, reactivate your theme.

    If it appears that the issue comes from Divi, you should ask on their support forum, as we can’t help much here with premium theme.

    #244334
    gitavns
    Participant

    I use the DIVI Elegant Themes

    #244330
    djsteveb
    Participant

    @hamiltontroy007 – Is the issue the same when you use chomre vs firefox vs IE ?

    if you switch to the 2014 theme does the same issue occur?

    If not, then it would appear to be something with the Kleo theme, and I don’t think your chances of getting help in the bp forums to debug a premium theme are very high.

    “asked Kleo support and they had a look and said it is related to buddypress. ” – I think that’s like saying your issue has something to do with “http” since it’s internet related. I would of expected a much better answer from a premium theme developer that seems to have made more then $200,000 selling a theme that claims to be “the greatest community theme on the market”

    just one more reason I sigh when it comes to bp and themes.
    and my 2 cents on the issue without knowing much about any of this.

    #244318

    In reply to: Fatal error

    djsteveb
    Participant

    @collinkemp – in this kind of situation I either ftp in or get to cpanel file manager.. either download a copy of your wp-content folder with http://ftp.. or make a zip / compressed folder of your wp-content folder to have a backup.

    Then go into your wp-content/plugins/
    – delete rtmedia err “buddypress-media” folder. Check if site comes back.
    – if not start deleting other plugins and checking.. and or
    – delete the non-default themes your have in you wp-content/themes folder

    This should get you back to basic wordpress and buddypress and default theme – then you should be able to get into your wp-admin section and go to appearance – themes and select one of the defaults..

    you may figure out what the hiccup was during the delete and check process.

    sometimes when my rtmedia updates I have to go into permalinks – change them, save, then change them back and save again.. don’t know why, but 50% of the time rtmedia updates causes a bunch of my static “pages” to be “404 not found” and the permalinks change then change back and save fixes it.. it’s a weird bloated plugin.. but glad it’s here.

    #244292
    Henry Wright
    Moderator

    Can you try on a test install? It may be the ACF plugin and we need to rule that out.

    On your test install, be sure there’s no plugins running aside from BuddyPress and have the TwentyFifteen theme activated. Also, remove any custom code you may have elsewhere such as bp-custom.php

    #244245
    danbp
    Participant

    Codex is your friend:

    bp-custom.php

    #244243
    Dreitausend
    Participant

    Since I really like this code …

    
    <?php
    /*
    * Called by wp-content/themes/twentyten/plugins/events-manager/placeholders/attendees.php
    * Called by procedure described in /wp-content/plugins/events-manager/templates/placeholders/readme.txt
    *
    *
    * @Shonu
    * @Date 16/08/2011 11:45:19
    */
    showBookingsTable();
    ##########################################################################################################
    function showBookingsTable($attributes = array()){
       global $EM_Event;
       if(!$EM_Event || !$EM_Event->rsvp ) return;
       $lister     = $EM_Event->get_bookings(); ///$bookings->get( $args = array());//
       $bookerList = $lister->bookings;
       $wpCurrentUserObj = wp_get_current_user();
       $currentUserID = $wpCurrentUserObj->ID;
       $userProfile = "/wp-admin/user-edit.php?user_id=#ID#";
       $table .= "<tr>"
                            ."<th>Full Name</th>"
                            ."<th>Time registered</th>"
                            ."<th>Status</th>"
                            ."<th>Seats</th>"
                            ."<th>Comments</th>"
                   ."</tr>";
       //error_reporting(E_WARNING);
       foreach($bookerList as $EM_Booking)
       {
             $atendeesNo = $atendeesNo + $EM_Booking->spaces;
             if(0){
             echo "<pre>";
             print_r($EM_Booking);
             echo "</pre>";
             }
             $bookedUserID = $EM_Booking->person_id;//Not the user ID!! It is a ticket id or so
             $personObj = $EM_Booking->person;
    
             $userFirstname = $personObj->first_name;
             $userLastname  = $personObj->last_name;
             $userDispname  = $EM_Booking->person->display_name;
             if(0){
             echo "<pre>";
             print_r($personObj);
             echo "</pre>";
             }
             /* @var $EM_Booking EM_Booking */
             $aTRs = array();
             foreach( $EM_Booking->get_tickets_bookings() as $EM_Ticket_Booking)
             {
                /* @var $EM_Ticket EM_Ticket */
                /* @var $EM_Ticket_Booking EM_Ticket_Booking */
                $EM_Ticket = $EM_Ticket_Booking->get_ticket();
                $isCurrentUser = $bookedUserID == $currentUserID;
    
                $userName = "<span title='login or register to reveal'>*********</span>";
                if(is_user_logged_in()){
                   if($userLastname && $userFirstname)
                      $userName = $userFirstname . " " . $userLastname ;
                   else //if($userFirstname)
                      //$userName = $EM_Booking->person->display_name;
                      $userName = $userDispname;
                }
                $sorterStringPrefix = "<!-- ".$EM_Booking->timestamp."-->";
                //$userProfile = $currentUserID ? "<a href=\"".str_replace("#ID#", $currentUserID, $userProfile)."\">$userName</a>":$userName;
                $row = array(
                   //$EM_Booking->id,
                   $userName ,//. " [$bookedUserID = $currentUserID]"
                   //$EM_Booking->person->user_email,
                   //$EM_Booking->person->phone,
                   date('d.m.Y H:i', $EM_Booking->timestamp),
                   $EM_Booking->get_status(),
                   //$EM_Ticket->name,
                   $EM_Ticket_Booking->get_spaces(),
                   //$EM_Ticket_Booking->get_price(),
                   preg_replace("/<|>/", "-", $EM_Booking->comment)
                );
                //Display all values
                $newTR = $sorterStringPrefix."<tr ".($isCurrentUser ? "style='background-color:#FFFFDD;'":"")."><!-- $currentUserID === {$EM_Booking->id} -->\r\n";
                foreach($row as $value){
                   //$value = str_replace('"', '""', $value);
                   //$value = str_replace("=", "", $value);
                   //$file .= '"' .  preg_replace("/\n\r|\r\n|\n|\r/", ".     ", $value) . '",';
                   $newTR .= "\t<td>" .  $value . "</td>\r\n";
                }
                $newTR .= "</tr>\r\n";
                $aTRs[$EM_Booking->timestamp] = $newTR;
             }
    
             if(0)
                $table .= $newTR;
             else{
                natsort($aTRs);
                $table .= implode("", $aTRs);
             }
       }//booker list
       $table .= "<tr><th colspan='3' style='text-align:right'>Total Attendees so far</th><td><b>$atendeesNo</b></td></tr>";
       reset($bookerList);
       if(!$lister || !$bookerList)
          echo "<p><b>Sorry, nobody is yet attending...</b></p>";
       else
          echo "<table><caption><h3>People Attending</h3></caption>\r\n" . $table . "</table>";
    }
    ?>
    

    … I tried to implement your code-snippet into it. But since I’m not a programmer, I just can’t figure it out. So I’d be very happy if you could give me a hint 🙂

    #244240
    danbp
    Participant

    Difficult to say without knowing the theme name and WP config (single or network install).
    In BP settings you can allow the toolbar to logged in user only.

    #244207
    danbp
    Participant

    hi,

    first snipppet removes the mention tab.
    Second remove the mention item from the top right usermenu below howdy.

    Condition is set to site admin. If you use custom capabilities, change that to your need.
    Code goes to bp-custom.php

    function bpfr_hide_mention_nav() {
    	//if ( bp_current_user_can( 'bp_moderate' ) )
    	if ( is_super_admin() ) {
    		return;
    	} 
    	bp_core_remove_subnav_item( 'activity', 'mentions' ); 
    }
    add_action( 'bp_ready', 'bpfr_hide_mention_nav' );
    
    function bpfr_admin_bar_remove_activity_mentions(){
    global $wp_admin_bar;
    	if ( is_super_admin() ) {
    		return;
    	}
    	$wp_admin_bar->remove_node('my-account-activity-mentions');
    }
    add_action('wp_before_admin_bar_render','bpfr_admin_bar_remove_activity_mentions');
    

    An alternate (IMO better) solution, is this premium plugin: http://www.philopress.com/products/buddynotes/

    #244188
    danbp
    Participant

    How else would I override the buddypress file unless it was in my child theme with the same name?

    You should NOT override core files. The only files you alter from child theme are template files.

    To alter core functions, you use custom functions and add them via filter hooks, preferably added to bp-custom.php – so you won’t loose your work at next update.

    member-profile.php doesn’t exist in BuddyPress.

    Codex is your friend !

    Theme Compatibility & Template Files

    Displaying Extended Profile Fields on Member Profiles

    … and forum search too. 😉

    #244185
    rezon8dev
    Participant

    Is your child theme working correctly with Kleo ?
    Is the altered member-header.php file in your child-theme ?

    Yes and Yes..

    Do you really use a file called member-profile.php, as stated in your first topic ? Bad !

    How else would I override the buddypress file unless it was in my child theme with the same name?

    I’ll give this a go and report back, thank you very much!

    #244184
    danbp
    Participant

    Is your child theme working correctly with Kleo ?
    Is the altered member-header.php file in your child-theme ?
    Do you really use a file called member-profile.php, as stated in your first topic ? Bad !

    Remove all your custom snippets and revert back to original BP template fisrt, then try this in bp-custom.php:

    function custom_display_xprofile_fields() {
    
    echo 'Custom display fields';
    echo '<ul>';
    if ( $data = bp_get_profile_field_data( 'field=Artist Name' ) ) : 
    	echo '<li>'. xprofile_get_field_data( 'Artist Name', bp_displayed_user_id() ) .'</li>';
    endif;
    
    if ( $data = bp_get_profile_field_data( 'field=Musical Genre' ) ) : 
    	echo '<li>'. xprofile_get_field_data( 'Musical Genre', bp_displayed_user_id() ) .'</li>';
    endif;
    
    if ( $data = bp_get_profile_field_data( 'field=Location' ) ) : 
    	echo '<li>'. xprofile_get_field_data( 'Location', bp_displayed_user_id() ) .'</li>';
    endif;
    
    echo '</ul>';
    }
    add_action( 'bp_profile_header_meta' , 'custom_display_xprofile_fields' );
    add_filter( 'bp_before_member_header_meta', 'custom_display_xprofile_fields' );
    #244182
    danbp
    Participant

    @tischla,
    unable to reproduce your issue.
    Did you activated Private Messaging component in BP settings ?

    Which them and plugins are you using ?
    Have you tested with only WP/BP enabled (without other plugins) and One of Twenty’s theme ?

    #244175
    rezon8dev
    Participant

    OK will do @shanebp.
    Can anyone give me a hand and let me know if this code looks proper? Even if I remove this from my child theme functions.php file and add the following to my member-header.php file:

    
    bp_member_profile_data( 'field=Artist Name' );
    bp_member_profile_data( 'field=Musical Genre' );
    bp_member_profile_data( 'field=Location' );

    I get similar results; the custom fields being displayed multiple times, oddly when I add the above to the member-header.php I get the Artist name field showing 4 times in a row rather than repeating sets of fields 1-4 and then fields 1-4 again duplicating when the code in a previous post above is in the functions file…

    #244172
    rezon8dev
    Participant

    @shanebp, I’ve tracked it down but still cant figure out what is wrong. This was all working until I upgraded to the latest bp… It is in my functions file for my theme, it is this function to place 3 xprofile fields in the member header area:

    /** 
     *  Add extended profile fields to the member profile header area  
    */
    
    add_action( 'bp_profile_header_meta' , 'display_user_xprofile_fields' );
    function display_user_xprofile_fields() {
    
     	$artistname = bp_get_member_profile_data('field=Artist Name');
        $musicalgenre = bp_get_member_profile_data('field=Musical Genre');
        $location = bp_get_member_profile_data('field=Location');
    
        if ($artistname || $musicalgenre || $location) {
    
            echo '<div class="mdetcenter artist"><h4 class="user-nicename">'. '' . $artistname . '</h4></div>';
            echo '<div class="mdetcenter genre">'. '' . $musicalgenre . '</div>';
            echo '<div class="mdetcenter location">'. '' . $location . '</div>';
        }
    }

    Can you see what is wrong? This is driving me crazy…

    #244153
    modemlooper
    Moderator

    you need to debug a bit, try deactivating plugins and change themes to verify those are not causing the problem.

    Are you running a cache on the site?

Viewing 25 results - 5,401 through 5,425 (of 31,073 total)
Skip to toolbar