This topic has 5 replies, 2 voices, and was last updated 12 years by Abe.

  • Author
  • #9335
     eple0030
    Participant

    Dear Abe,

    I wish you a happy new year and congrat for this brilliant theme! I do not regret my purchase!
    However, I have a fews open points. Would you mind helping me with them. Thanks a lot in advance!

    1. I like a lot your BP extended profile menu. Unfortunatelly, i couldn’t customize the 2 profiles menu « base » and « looking for » Also, when i use the theme in multiple language (through WPLM plugin), it is the same : it does not appear. —> Could you tell how to fix this?

    I have read related posts on the forum and tried to change the function file in the child theme but it seems the code i tried didn’t work
    Basically, i would like to show 4 tabs:
    “Base” , that i renamed A propos
    « Bio » group
    « Concept » group
    And the images

    2. My wordpress site will mainly propose events. My main plugin is « Events manager » which integrates perfectly with your theme and Buddypress (a new tab « events » is created in BP menu) —> Is there a way to customize the « profile» button (next to log out), so that this « events » link can be added under « Settings » in the drop down list? How?
    Once again, I know this is a customization linked to a 3rd party plugin, but i guess you can very easily provide me the instructions

    3. I love the red/pink notification button on the “profile » button that show new messages. —> Is there a way to add a similar button to display BP other notifications ? How?

    4. This is more a nice to have: On a post, when clicking on the post author, it redirects to the author post archives. it is possible to make it redirect to the BP profile menu of the post author? In my opinion, this enhance BP features

    In terms of future release, if i may suggest some features that could make the theme even more awesome:
    a. Let users choose themselves a background image in their buddy press header (similar to Facebook cover images)
    b. offer possibilities to write ratings / review on the BP user profiles (i know a plugin offer this feature) and display the ratings summary on the member directory.
    c. Provide geolocalisation, which could look like « sabai directory » plugin

    Thank you so much in advance!

    Etienne

    #9405
     Abe
    Keymaster

    Hi and thank you very much.

    1. Please add this code to sweetdate-child/functions.php to customize those tabs so they appear fine in multilingual

    COPY CODE
    
    //customize profile tabs
    add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs()
    {
        global $bp_tabs;
        $bp_tabs = array();
        $bp_tabs['looking-for'] = array(
                'type' => 'cite',
                'name' =>  __('Looking for', 'kleo_framework'),
                'group' => 'Looking for',
                'class' => 'citetab'
        );
     
        $bp_tabs['base'] = array(
                'type' => 'regular',
                'name' => __('About me', 'kleo_framework'),
                'group' => 'Base',
                'class' => 'regulartab'
        );
     
        /* rtMedia tab - only if plugin installed */
        if (class_exists('RTMedia'))
        {
            $bp_tabs['rtmedia'] = array(
                    'type' => 'rt_media',
                    'name' => __('My work', 'kleo_framework'),
                    'class' => 'mySlider'
            );
        }
     
        /* Bp-Album tab - only if plugin installed */
        elseif (function_exists('bpa_init')) {
            $bp_tabs['bp-album'] = array(
                    'type' => 'bp_album',
                    'name' => __('My photos', 'kleo_framework'),
                    'class' => 'mySlider'
            );
        }
    }
    

    2. Also add this code to the same location and customize it with proper link if its the case

    COPY CODE
    
    //My custom header submenu item
    add_filter('header_profile_dropdown','remove_activity_submenu');
    function remove_activity_submenu($menu) {
    	$menu['event'] = '<li><a href="' . bp_loggedin_user_domain().'events/">'. __("Events", "buddypress").'</a></li>';;
    	return $menu;
    }
    

    3. You’ll see them how they were added in header.php around line 163. try to replicate them

    4. In function php is the function that generates the meta section. Find get_author_posts_url and replace with bp_core_get_user_domain

    Those would be nice but for b,c I think there are some plugins that can be adapted

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #9557
     eple0030
    Participant

    Hi Abe,

    Thanks a lot for your support!!!
    On 1. I couldn’t manage to fix: on my local site (installed through XAMPP) i deleted all existing groups. So i took the opportunity to install a live version and install your theme but i ve some issues with languages.
    I need to install it in french and I am blocked there (I’m going crazy!!:) ). I spent hours looking on all forums and my installation looks fine. Maybe you could help me.

    I copied translation files into wp-content/languages : fr_FR.po ; fr_FR.mo ; continents-cities-fr_FR.po : continents-cities-fr_FR.mo ; admin-network-fr_FR.po ; admin-network-fr_FR.mo ; admin-fr_FR.po ; admin-fr_FR.mo

    Then i changed the language settings under wp-config.php. Here below is the file details where i changed (define(‘WPLANG’, ‘fr_FR’);

    <?php
    /**
    * The base configurations of the WordPress.
    *
    * This file has the following configurations: MySQL settings, Table Prefix,
    * Secret Keys, WordPress Language, and ABSPATH. You can find more information
    * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
    * wp-config.php} Codex page. You can get the MySQL settings from your web host.
    *
    * This file is used by the wp-config.php creation script during the
    * installation. You don’t have to use the web site, you can just copy this file
    * to “wp-config.php” and fill in the values.
    *
    * @package WordPress
    */

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘WP_CACHE’, true); //Added by WP-Cache Manager
    define( ‘WPCACHEHOME’, ‘/home3/eple0030/public_html/wp-content/plugins/wp-super-cache/’ ); //Added by WP-Cache Manager
    define(‘DB_NAME’, ‘eple0030_wrdp1’);

    /** MySQL database username */
    define(‘DB_USER’, ‘eple0030_wrdp1’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘pN6ch5AZEs8lwTRM’);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    /** Database Charset to use in creating database tables. */
    define(‘DB_CHARSET’, ‘utf8’);

    /** The Database Collate type. Don’t change this if in doubt. */
    define(‘DB_COLLATE’, ”);

    /**#@+
    * Authentication Unique Keys and Salts.
    *
    * Change these to different unique phrases!
    * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
    * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
    *
    * @since 2.6.0
    */
    define(‘AUTH_KEY’, ‘gdh?N0\`M/d_)|LYCwb?6IwGz$Fk_xee1UuRF9^)c=_-*EEYp|vv2-BI4A$;#_l5T<G<<ZC/’);
    define(‘SECURE_AUTH_KEY’, ”);
    define(‘LOGGED_IN_KEY’, ‘DN$NS-k=v/^swt<xiY*sA7v\`~:i:HjD9!nSc4(6NJp02EAf~sv<M~g6KllP9XNj>FkfXv>lIK5*8sP!BPX8’);
    define(‘NONCE_KEY’, ‘yZm_H5PHuzUhl#O?:JV6QuS=^hrEnIR3P$9uD8)nJd6?ZCaqin^n10ws-ih/a@p=ASj$=PRn=q’);
    define(‘AUTH_SALT’, ‘mD*A*?APne-6x;4GNbXdLoyd$vo?6Z5\`*znPw5BYfowq6sQkA*=cCu~|UabpaO/eIKD$A?rYjPmczP-ihG’);
    define(‘SECURE_AUTH_SALT’, ‘@ipVb-R\`d1ZkJT>?7I6iv8K:mUazCGfjLIZ$A)NGu<w*xbv58cL3Z_O#<=kOH(5)Jwg=W^G_^wBCv=L<-‘);
    define(‘LOGGED_IN_SALT’, ‘3syYK(g$9zYHxyxHs06a*!/EEI;tgmV53*Gz?aoJFU$|uSH\`^fu4L>BA$#F4ovK’);
    define(‘NONCE_SALT’, ‘0UaN0PWbxLa$@/@eRgQlD1LqeVGksC:Ut172TnetQHCm24nscKNB2w#rd0_Iycal\`6c8)2GB|y’);

    /**#@-*/

    /**
    * WordPress Database Table prefix.
    *
    * You can have multiple installations in one database if you give each a unique
    * prefix. Only numbers, letters, and underscores please!
    */
    $table_prefix = ‘wp_’;

    /**
    * WordPress Localized Language, defaults to English.
    *
    * Change this to localize WordPress. A corresponding MO file for the chosen
    * language must be installed to wp-content/languages. For example, install
    * de_DE.mo to wp-content/languages and set WPLANG to ‘de_DE’ to enable German
    * language support.
    */
    define(‘WPLANG’, ‘fr_FR’);

    /**
    * For developers: WordPress debugging mode.
    *
    * Change this to true to enable the display of notices during development.
    * It is strongly recommended that plugin and theme developers use WP_DEBUG
    * in their development environments.
    */
    define(‘WP_DEBUG’, false);

    /* That’s all, stop editing! Happy blogging. */

    /** Absolute path to the WordPress directory. */
    if ( !defined(‘ABSPATH’) )
    define(‘ABSPATH’, dirname(__FILE__) . ‘/’);

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . ‘wp-settings.php’);

    But nothing happens: no translation. The only change is that when i go to dashboard / updates, I have the following notifications:

    An updated version of WordPress is available.

    You can update to WordPress 3.8–fr_FR automatically or download the package and install it manually:

    Download 3.8–fr_FR

    This localized version contains both the translation and various other localization fixes. You can skip upgrading if you want to keep your current translation.

    If i click update, then i have the following message

    You have the latest version of WordPress. Future security updates will be applied automatically.

    If you need to re-install version 3.8–fr_FR, you can do so here or download the package and re-install manually:

    Download 3.8–fr_FR

    But still, it remains in french…. weird… I had similar problems with my local version through Xampp, but i thought it was due to xampp

    Do you have any clue ???? Thanks!!!

    Thanks a lot for the answers you gave me on the other points. I couldnt fix n°3 but for now my prerequisite is to install this french langage.

    #9615
     Abe
    Keymaster

    Hi, The best thing to do is to install directly wordpress in your language that has the wordpress translations in place and the setting in wp_config

    http://fr.wordpress.org/

    Then to translate the theme use Codestyling localization since it is an easy plugin to use

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #9660
     eple0030
    Participant

    Hi Abe,

    Thanks again for your previous answer! Please do not take into account my previous post sent 2 days ago. I ve just found today ‘wcm user language switcher’ plugin and it translate correctly the theme in the language for which i installed the language files. Weird but it works, so….

    I ve still some issues, if you could help me on them
    on 1. I can’t find the way to add a new tab. Here is the code i added in function.php, that display me Bio and Info tabs. But i can’t add a 3rd one called Concept. I tried to duplicate Bio paragraph and renamed it but it does not work.

    COPY CODE
    
    //customize profile tabs
    add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs()
    {
        global $bp_tabs;
        $bp_tabs = array();
        $bp_tabs['looking-for'] = array(
                'type' => 'cite',
                'name' =>  __(Bio, 'kleo_framework'),
                'group' => 'Looking for',
                'class' => 'citetab'
        );
    
        $bp_tabs['base'] = array(
                'type' => 'regular',
                'name' => __(Info, 'kleo_framework'),
                'group' => 'Base',
                'class' => 'regulartab'
        );
     
        /* rtMedia tab - only if plugin installed */
        if (class_exists('RTMedia'))
        {
            $bp_tabs['rtmedia'] = array(
                    'type' => 'rt_media',
                    'name' => __('My work', 'kleo_framework'),
                    'class' => 'mySlider'
            );
        }
     
        /* Bp-Album tab - only if plugin installed */
        elseif (function_exists('bpa_init')) {
            $bp_tabs['bp-album'] = array(
                    'type' => 'bp_album',
                    'name' => __('My photos', 'kleo_framework'),
                    'class' => 'mySlider'
            );
        }
    }
    

    3. 3. I love the red/pink notification button on the “profile » button that show new messages. —>
    I think i identified as you suggested me the code in header.php around line 163

    COPY CODE
    
    if( bp_is_active('messages')) {
    $profile_menu['messages'] = '<li><a href="' . bp_loggedin_user_domain().'messages/">'. __("Messages", "buddypress").' <small class="label">'. messages_get_unread_count().'</small></a></li>';
    }
    

    I tried to replicated it for the notifications, but i have some errors that block the theme. Do you see any errors in the following code?

    COPY CODE
    
    if( bp_is_active(‘notifications’)) {
    $profile_menu['notifications’] = '<li><a href="' . bp_loggedin_user_domain().’notifications/">’. __("Notifications", "buddypress").' <small class="label">'. notifications_get_unread_count().'</small></a></li>';
    }
    

    b. (ratings)
    There are some plugins for that, but i think some enhancements could be (in my opinion) to make them integrate like this:
    Here is a webpage that looks nice to me, It is in french but you can see the idea. https://labelleassiette.fr/chef-a-domicile

    c. (geolocalisation)
    There are some plugins for that, but integration lacks for search options. It would be great to leverage on the search option from your theme and have the results displayed on a nice map (eg. the way it is done through sabai directory)

    5. I added a few plugins, and every time there are some drop down box to be displayed (e.g. taxomany search fields), their length is full screen size. Instead of being few centimeter length, each box is full page length. So the display is not fine at all if i choose more than one.
    One example is http://wordpress.org/plugins/wp-fullcalendar/
    It integrates well on WP default theme, but not with yours. So i guess the issue is with the theme.
    I guess it is minor to fix. Is there some code to modify somewhere?

    6. Is there a way to remove some buddy press menu depending on user profile role. Eg. a subscriber has “Activity” tab disabled?

    Thanks a lot

    #9742
     Abe
    Keymaster

    Hi,

    1. after the Bio code you should add this

    COPY CODE
    
        $bp_tabs['looking-for'] = array(
                'type' => 'cite',
                'name' =>  __("Concept", 'kleo_framework'),
                'group' => 'Concept',
                'class' => 'citetab'
        );
    

    Your profile field group name should be Concept

    3. Try retyping all of the ‘ -> single quotes

    If you need to extend default functionality of Sweetdate please hire a developer with PHP skills from a site like Microlancer

    That is default functionality for an input to extend to the whole area it is wrapped in. You can inspect those elements in your browser and style them by CSS (again HTML/CSS knowledge required)

    6. There is no such option

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?