Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 4,251 through 4,275 (of 31,071 total)
  • Author
    Search Results
  • #256793
    danbp
    Participant

    Hi,

    an option could be to change the default behave of the site title by modifying this from within your child theme.

    This URL is generally hardcoded in header.php. For example, Twenty Sixteen use this:

    <?php if ( is_front_page() && is_home() ) : ?>
    	<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    	<?php else : ?>
    <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
    	<?php endif;

    Of course, this can vary from one theme to another. But that’s the idea.

    From this, you can play with the conditionnals or add activity to the URL.

    #256763
    Daragott
    Participant

    Something is missing certainly, all I have in the registration page are the fields for members,, with no choice for either models or members.

    I have 2 field groups, Models and members, I ve added in each of the field groups diferent fields for name, country, city etc, different fields since I don,t want the same informations.

    In member types, I have also Models and Members

    In the registration page of WordPress, should I find a widget for the registration? Or Something else like that? Because I don’t see anything to add in the widget list. Thanks

    Norman

    Worpress: Version 4.5.3
    BuddyPress: Version 2.6.1.1
    Theme: Ombre Version: 1.3

    #256755
    Earl_D
    Participant

    @sharmavishal thanks again for the response I was able to find some relevant info on the matter from these sources external to this site

    Functions.php vs. Functionality Plugin

    Separate theme display and functionality with a build-your-own custom functionality plugin


    While not specific to Buddypress it is sufficient help me understand what should go into the decision making process.

    #256744
    sharmavishal
    Participant

    which theme u using?

    #256735
    sharmavishal
    Participant

    yes first check with Customizr theme and then with buddypress media support forums

    #256729
    Paul Wong-Gibbs
    Keymaster

    Hmm. Those are notices (from Visual Composer, and a buddypress.php file in your theme, and from the WP_Widget_Moon_Phases widget), not fatal errors, so unlikely to be breaking the site, and unfortunately shed no light on what might be happening. Not sure.

    On your multisite – is BuddyPress network activated?

    p.s. even if this was working, all the existing BP configuration settings would live on Site ID 1. I think the BuddyPress content will come across, but you’d have to check/re-set any BuddyPress options.

    #256725
    danbp
    Participant

    Hi @shanehidir,

    it’s not a BuddyPress issue. Ask on buddypres-media and/or theme support.

    #256715
    gorbett
    Participant

    SOLUTION (finally)

    Thanks @henrywright and @coffeywebdev for pointing me in the right direction. Here is what I ended up with.
    1. Enable child theme and copy the BP register.php file to the child theme.
    2. In the child theme’s style.css, I entered to remove the xprofile fields from the register.php page:
    .editfield {
    display: none;
    }
    3. In the child theme’s functions.php file I have this (again, reassign the xprofile fields ‘field_3’ and ‘field_4’ because of their position in the DOM:

    add_action( ‘bp_signup_pre_validate’, ‘assign_username’ );

    function assign_username(){
    if ( isset( $_POST[‘first_name’] ) ) {
    $_POST[‘field_3’] = $_POST[‘first_name’];
    $_POST[‘field_4’] = $_POST[‘last_name’];
    $_POST[‘signup_username’] = create_username();
    foreach ($_POST as $key => $value) {
    echo $key . “: “;
    echo $value;
    echo “<br>”;
    }
    exit();
    }
    }

    function create_username() {
    $i = 0;
    $username = $_POST[‘field_3’] . $_POST[‘field_4’];
    while (username_exists( $username )) {
    $username = $username . ++$a;
    }
    return $username;
    }

    I am simply creating a username from first name and last name and then start to append a number when inevitably someone with the same name registers. I need to add more validation on the username to ensure that it is <= 50 characters, but this finally worked for me.

    Thanks again to the community for pointing me in the right direction!

    #256713
    intothemythica
    Participant

    this is what I got:

    Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). === Trace: #6 /nas/content/live/intothemythica/wp-content/plugins/revslider/includes/tinybox.class.php(49): is_user_logged_in() #7 [internal function]: RevSliderTinyBox::visual_composer_include(”) #8 /nas/content/live/intothemythica/wp-includes/plugin.php(525): call_user_func_array(Array, Array) #9 /nas/content/live/intothemythica/wp-settings.php(277): do_action(‘plugins_loaded’) #10 /nas/content/live/intothemythica/wp-config.php(154): require_once(‘/nas/content/li…’) #11 /nas/content/live/intothemythica/wp-load.php(37): require_once(‘/nas/content/li…’) #12 /nas/content/live/intothemythica/wp-blog-header.php(13): require_once(‘/nas/content/li…’) #13 /nas/content/live/intothemythica/index.php(17): require(‘/nas/content/li…’) #14 {main} === Please see Debugging in WordPress for more information. (This message wa in /nas/content/live/intothemythica/wp-includes/functions.php on line 3897

    Notice: Constant BP_AVATAR_THUMB_WIDTH already defined in /nas/content/live/intothemythica/wp-content/themes/x/framework/functions/global/plugins/buddypress.php on line 26

    Notice: Constant BP_AVATAR_THUMB_HEIGHT already defined in /nas/content/live/intothemythica/wp-content/themes/x/framework/functions/global/plugins/buddypress.php on line 27

    Notice: Constant BP_AVATAR_FULL_WIDTH already defined in /nas/content/live/intothemythica/wp-content/themes/x/framework/functions/global/plugins/buddypress.php on line 28

    Notice: Constant BP_AVATAR_FULL_HEIGHT already defined in /nas/content/live/intothemythica/wp-content/themes/x/framework/functions/global/plugins/buddypress.php on line 29

    Notice: The called constructor method for WP_Widget in WP_Widget_Moon_Phases is deprecated since version 4.3.0! Use
    __construct()
    instead. in /nas/content/live/intothemythica/wp-includes/functions.php on line 3718

    #256705
    danbp
    Participant

    @pws2015

    assuming your fields names are Address, City and Postal code, add this snippet to bp-custom.php and any logged-in user will see these fields on the Member Directory page underneath the already existing informations.

    function bpex_address_on_directory(  ) {	
    
    if( bp_is_active( 'xprofile' ) && is_user_logged_in() ) :
    
    	echo '<p>';
    
    	if ( $address = xprofile_get_field_data( 'Address', bp_get_member_user_id() ) ) :
    		echo $address.'&nbsp;';
    	endif;
    
    	if ( $zipcode = xprofile_get_field_data( 'Postal code', bp_get_member_user_id() ) ) :
    		echo $zipcode .'&nbsp;';
    	endif;
    
    	if ( $city = xprofile_get_field_data( 'City', bp_get_member_user_id() ) ) :
    		echo $city .'&nbsp;';
    	endif;
    
    	echo '</p>';
    
    endif;
    
    }
    add_filter ( 'bp_directory_members_item', 'bpex_address_on_directory' );
    #256677
    phucitol
    Participant

    Thanks for the response, I had already used bp-custom.php to build a custom post-form before. I’ll read that thread on child theme js. Thank you for confirming for me that there was no reason for the last dev to alter those core js files.

    #256666
    Henry Wright
    Moderator

    Hi @juanandrius

    Which theme are you using?

    #256661
    danbp
    Participant

    Re-check your po file and see if the original word hasn’t a count beside it. Something like Members %s. Many translation are omitting this or use an erroneous variable ( something like % or %d or…nothing). In any case, the translation should contain, if exist in the original, such variables.
    Same remark if you use plugins or a theme who modify the menu.

    You can also check for the new nav API examples you could eventually help you to rename the items, but only if nothing goes to work with translation itself.

    #256652
    Stacy (non coder)
    Participant

    Started to get this error because I think my host added both when I already had GD.

    “add_filter( ‘wp_image_editors’, ‘change_graphic_lib’ ); Â Â Â Â function change_graphic_lib($array) { return array( ‘WP_Image_Editor_GD’, ‘WP_Image_Editor_Imagick’ )};”

    And it wouldn’t add the group page.
    add_filter( ‘wp_image_editors’, ‘change_graphic_lib’ ); Â Â Â Â function change_graphic_lib($array) { return array( ‘WP_Image_Editor_GD’, ‘WP_Image_Editor_Imagick’ )};
    Warning: Cannot modify header information – headers already sent by (output started at /home/bahamalife/public_html/wp-content/themes/colormag/functions.php:127) in /home/bahamalife/public_html/wp-includes/pluggable.php on line 1171

    Fixed

    Reason
    Whenever your host does a php upgrade/install they ask if you want it as the default version (on for everything automatically) or side by side (optional). My 5.6 was put as side by side but that handler has to be set for each cPanel that wants to run 5.6 as a side by side install was elected
    so it needed to be enabled and wasn’t.

    #256650
    Stacy (non coder)
    Participant

    Sounds like the plugin should show a checklist for all this somewhere. The plugin is working so that means all the requirements are met.

    I have

    PHP version 5.6 or greater
    MySQL version 5.6 or greater
    BuddyPress 2.6.0+ with WordPress 4.1.0+
    Apache Module mod_rewrite enabled for “pretty permalinks”. (Wenet to settings> permalinks> checked plain> saved)
    WP was installed via cpanel’s wordpress installer and BP is working
    Using subdomains not subdirectories
    Folder name for any subdirectory or subdomain WordPress/BuddyPress installation must be in lowercase.BP is on the main blog.

    Tested not using the child theme.

    Is this supposed to be a created file and folder?
    “AllowOverride should be set to All in folder where .htaccess is, for example”

    #256647
    danbp
    Participant

    Hi,
    normally you haven’t to touch mentions.min.js, jquery.atwho.min.js, jquery.caret.min.js, along with other buddypress core js files.

    If you need to customize buddypress JS, use buddypress.js from within the child theme.
    about js and child theme:
    https://buddypress.org/support/topic/overriding-global-js-with-buddypress-js-not-working/

    and other customization:

    bp-custom.php

    #256639
    gorbett
    Participant

    thanks for all the help. I ended up doing something like this in my functions.php child theme:

    function assign_username() {
        if ( isset( $_POST ) ) {
            $_POST['signup_username'] = create_username();
        }
    }
    add_action( 'bp_signup_pre_validate', 'assign_username' );
    
    function create_username() {
        $i = 0;
        $username = $_POST['field_3'] . $_POST['field_4'];
         while ( username_exists( $username ) ) {
             $username = $username . ++$i;
         }
        return $username;
    }

    However, now I have some weird behavior that is asking me if I want to leave the page when submitting the form (typical window.onbeforeunload event when entering information: http://stackoverflow.com/questions/1119289/how-to-show-the-are-you-sure-you-want-to-navigate-away-from-this-page-when-ch) although I have no idea what is triggering it on my custom register.php (https://pantest.centralus.cloudapp.azure.com/register/).

    So I think my code above solves my $_POST issue, but now I have another one. Going to run through some tests to debug it now.

    Thanks again for the prompt help. Was hoping people still check out these forums.

    #256623
    sharmavishal
    Participant

    @functionmunchkin urs is a new install?


    @fahmirixton
    i just tested on my 3 installs with different themes and cover image is working fine for me..not sure what to suggest…you got this enabled on ur server?

    PHP must have the GD or imagick modules installed (on the server)

    refer this

    Getting Started

    #256620
    Ben Riga
    Participant

    Dan,

    I spent some time on this and have figured out the loop that will give me the activity entries I need. I’m trying to add the list of activities on the same page I display the Beer custom post type. So show the beer info at the top and the list of related activities below it. I’m doing that on a theme page and would need to call the activity/entry.php for each of the entries. Is there a way to do that or would I need to copy the code from there?

    The query will look something like this:

    $args = array(
    	'post_type' => 'check_in',
    	'posts_per_page' => '-1',
    	'post_status' => array(
    		'publish',
    	),
    	'meta_key' => 'check_in_details_beer-id',
    	'meta_value' => $current_post
    
    );
    
    // run the query
    $query_checkins = new WP_query ( $args );
    
    // check the query returns posts
    if ( $query_checkins->have_posts() ) :
    
    	while ( $query_checkins->have_posts() ) : $query_checkins->the_post();
    
    		$ci_postid = get_the_ID(); 
    
    		if ( bp_has_activities( bp_ajax_querystring( 'activity' )  . '&secondary_id='. $ci_postid ) ) : 
    

    Thanks for the help and support,
    Ben

    #256617

    In reply to: Lost access to my site

    kvnqprezo
    Participant

    Thanks it’s a settings in theme editor let me try your steps

    danbp
    Participant

    Hi,

    apparently there is a conflict somewhere. Do you receive php notice or warnings with wp_debug activated ? The fn you mention posts new Activity comments received via a POST request.

    Before opening a ticket, can you provide some more details about your install please ? Server type, php version and memory_limit.

    Theme
    Is Valenti theme updated to fit with BuddyPress 2.6 ? No information about this detail on the theme presentation even if recent update (23/6/2016). But it’s crucial to know, as many things changed in 2.6+

    Plugins
    Hashbuddy wasn’t updated since 2 years.
    Do you use WDS-BuddyPress-Project-Framework ?

    Debug
    To test, you can deactivate all plugins except BP. It’s important you ensure that at least the basic install of WP+BP is fully working. First with a twenty theme and second, with your theme (not the child).

    If the site is for a client, you’re a pro. Hopefully you have a sandbox install (locally or online) to do this debug work ?!!!

    Any thoughts @djpaul, @r-a-y ?

    #256584
    pfeufer
    Participant

    Hi Stacy,
    I found the solution to this issue on another forum:

    Copy and paste the following code into to the functions.php of your child theme:

    add_filter( ‘bp_core_avatar_original_max_filesize’, function() {
    return 5120000; // 5mb
    } );

    #256577

    In reply to: Lost access to my site

    coffeywebdev
    Participant

    Parse error: syntax error, unexpected '.' in themes/icynets-simplic/inc/customizer.php on line 437

    That’s saying there is a period or ‘dot’ where there shouldn’t be.

    Renaming the theme would at least make the site recovered(force deactivation of theme), then you could access the WordPress dashboard again if you don’t have FTP

    Then you could use the WordPress editor to make the edit you need possibly.

    I hope that helps, I’m kind of new to the forums coming from the support side

    #256573
    coffeywebdev
    Participant

    Copy the buddypress theme into your WordPress child theme, and then you can modify the register template if needed.

    copy the buddypress theme into your child theme by pasting this path into your child theme folder
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress

    path of file for registration fields is this:
    /wp-content/themes/child-theme/buddypress/members/register.php

    Then, add First and Last name fields under User>Profile Links in the WordPress Dashboard.

    Currently there is a ‘Name’ field that is required, you can edit it to read ‘First Name’ then add another ‘Last Name’ field..

    Then you need to process the data before it saves into the database, I’m kind of at a loss here… I would need more time to brainstorm on it but I did find this hook ‘bp_core_signup_user’

    I believe this is the hook you are looking for:

    // define the bp_core_signup_user callback 
    function action_bp_core_signup_user( $array, $int, $int ) { 
        // make action magic happen here... 
    }; 
             
    // add the action 
    add_action( 'bp_core_signup_user', 'action_bp_core_signup_user', 10, 3 ); 
    #256562
    shanebp
    Moderator

    Assuming there are no errors on your site….
    afaik, the auto-complete only handles friends by default. So if you aren’t friends with ‘Jenn’, you won’t see a suggestion.

    To turn on auto-complete for all users, put this in bp-custom.php :
    define( 'BP_MESSAGES_AUTOCOMPLETE_ALL', true );

Viewing 25 results - 4,251 through 4,275 (of 31,071 total)
Skip to toolbar