Forum Replies Created
-
Author
-
eple0030
ParticipantHi 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 163COPY CODEif( 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 CODEif( 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-domicilec. (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
eple0030
ParticipantHi 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.
-
AuthorPosts