Forum Replies Created
-
Author
-
RoaderParticipant
I gotta remove View Profile, from the original Theme code, as you can see.
But, it is necessary to add the correct CSS and the location of the other buttons.
Then, it would look like this:
[View Profile] [+] [M]
Note: View profile is necessary because with this Theme, if is a single icon (the eye) when you are not logged in it looks very empty in that area.
So, picture.Attachments:
You must be logged in to view attached files.RoaderParticipantHi Radu, I have not solved anything. I am waiting for your help.
Your solution will serve to add that button in the next update of the Theme. It is practical that button of Messages there.
RoaderParticipantWell, the code adds the button, but, without css.
And the code works very well.
Solution:Adjust this code for Kleo/SweetDate. (Includes:
COPY CODEfunction filter_message_button_link( $link ) { $link = wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . bp_core_get_username( bp_get_member_user_id() ) ); return $link; } function display_private_message_button() { if( bp_get_member_user_id() != bp_loggedin_user_id() ) { bp_send_message_button(); add_filter('bp_get_send_private_message_link', 'filter_message_button_link', 1, 1 ); } } add_action( 'bp_directory_members_item', 'display_private_message_button' );
Includes with: `<a href=”<?php bp_member_permalink(); ?>” class=”small button radius secondary”><i
class=”icon icon-envelope”></i> <?php _e( ” “, ‘kleo_framework’ ); ?></a>`RoaderParticipantHi Radu, the correct code is:
COPY CODEif ( ! function_exists( 'kleo_bp_member_dir_view_button' ) ): /** * Render view profile button on members directory */ function kleo_bp_member_dir_view_button() { ?> <a href="<?php bp_member_permalink(); ?>" class="small button radius secondary"><i class="icon-angle-right"></i> <?php _e( "View profile", 'kleo_framework' ); ?></a> <?php } endif; add_action( 'bp_directory_members_item_last', 'kleo_bp_member_dir_view_button', 10 );
But I need help with ==>
JULY 11, 2017 AT 23:38 #167080RoaderParticipantHi Radu!
Check your code… look at this.Well, Radu, the idea is to add a Private Message button in Members Directory.
The code that I shared works, but, hasn’t CSS. So, if you want, give the CSS for this button and for the next update of SD add this button 🙂 (Styles 1 or 2, picture 2).And… How can you hide text (from a button) using css?
Attachments:
You must be logged in to view attached files.RoaderParticipantHi again kieran_sq
Well, your css needs more works 🙂
Pic 1. Using this css the [ + ] button is bigger. Private Ms. up… etc.
Pic 2. Needs Css for Mobile or Table… etc.
Attachments:
You must be logged in to view attached files.RoaderParticipantThis functions is interesting for SD, Radu, if you want, for the Next Update includes this.
——————–
Other Topic related.Pic 1. A little problem with the Css here… (by default).
I tried BP Better Messages — WordPress Plugins, but, does not work very well with the Theme (and I dont want this plugin… but some functions are interesting. Try the Demo).
Pic 2 and 3. I did tell you this repeatedly: SD Message improvements.
If you can, add a Quick Navigation or (for SD 3.0) a Message like (pic 3).
Attachments:
You must be logged in to view attached files.RoaderParticipantHola Laura.
SÃ, al limpiar la Caché funciona.Ahora ando detrás de otros métodos para hacer del sitio más rápido.
Minificar el CSS y el JS o incluso combinar todos los css de una carpeta en un solo archivo (esto reduce las Requests). Hay plugins que lo hace como ese llamado Autoptimize pero, al hacerlo automático te destruyen el estilo visual.
RoaderParticipantLaura me parece que el problema es Google Chrome.
Probé observando en todos los navegadores y el uploader no desaparece, solo en Chrome.
Borraré la Caché a ver qué pasa.RoaderParticipantSà Laura,
El asunto está resuelto en la Actualización… pero, cuando uno usa ese código en el functions.php o utiliza un plugin para ese fin de remover las strings, desaparece el rtmedia uploader. Razón: el archivo default.css, no sé por qué pero asà es.RoaderParticipantHola Laura.
El problema es el siguiente:
Cuando usas el código ==> para remover las ?ver= de todos los .js y .css , por alguna extraña razón es afectado: /sweetdate/custom_buddypress/_inc/css/default.css?ver=2.9.11
Y esto provoca que el Uploader de rtMedia y el botón de Publicar desaparezcan.
Una solucion seria añadir un exclude ‘ ‘ a este código, y ahi especificar cual string no va a remover en este caso: default.css?ver=2.9.11, pero como yo no se php por eso no he modificado el código.
COPY CODE// Remove Query Strings From Static Resources if ( ! is_admin() ) { function _remove_script_version( $src ){ $parts = explode( '?ver', $src ); return $parts[0]; } add_filter( 'script_loader_src', '_remove_script_version', 15, 1 ); add_filter( 'style_loader_src', '_remove_script_version', 15, 1 ); }
RoaderParticipantHola Laura!
Okey luego le pregunto a Radhu. Sà que era necesario actualizar el Theme, pero, el problema con rtMedia también es este: https://wordpress.org/support/topic/problem-with-rtmedia/RoaderParticipantHola Laura.
Fuera de Tema.
Intente añadir el boton de Mensajes Privados en el Member Directory (usando esto) como se ve aqui en la foto. Pero No se añade ningun boton. De hecho, veo que en SD hay un ligero fallo con el CSS, el boton [ + ] (de añadir amigo) esta muy pegado del que dice [ View Profile ]Bien, a la espera de las actualizaciones de SD. Ojala incorporen nuevas funciones. Como esa de ese boton… es muy practica.
Attachments:
You must be logged in to view attached files.RoaderParticipantHola Laura.
rtMedia actualizó hace 3 dÃas :-/
Attachments:
You must be logged in to view attached files.RoaderParticipantHola Laura.
A la espera de la actualización del Theme.
Sin el uploader del rtMedia es problemático.
Ojalá uds actualicen a SD 3.0 y que venga con más mejorÃas.RoaderParticipantHi Laura!
Okey, esperamos que se solucione eso con rtMedia.
Bueno, ya la solución a las fontawesome está. #165126
Si quieres puedes implementar las fonta 4.7 en la próxima Update.
RoaderParticipantFor Laura:
Creo que solucioné el problemas con las fontawesome. Sin embargo, hay otros problemas: 1) BuddyPress desactualizado desde hace 4 meses, sé que esto no depende de uds pero… si el proyecto fue abandonado tendrán que crear un plugin dating especial para el Theme. 2) El Uploader de rtMedia no funciona, ni siquiera aparece el icono en Activity, tampoco aparecen las Opciones de Privacidad de rtMedia. Tal ves el problema sea porque rtMedia se actualizó y uds desde el 17 de Mayo no actualizan el Theme.
RoaderParticipantFor now the problem is rtMedia Uploader and (rtMedia) Profile Settings (Privacy)… DOES NOT WORK.
RoaderParticipantSolution (for now):
1) Upload all FontAwesome 4.7.0 to /sweetdate/assets/font and replace 3.2.1
2) Upload font-awesome.css and font-awesome.min.css (Optimized) to /sweetdate/assets/styles
3) Open header.php and add this after <head><link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/assets/styles/font-awesome.min.css">
Attachments:
You must be logged in to view attached files.RoaderParticipantA Solution:
The problem is that you don’t have this in header.php:
COPY CODE<head> <link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/assets/styles/font-awesome.min.css"> </head>
For your Next Update, add this line and use font-awesome 4.7.0.
RoaderParticipantCheck this. Changing your: <i class=”icon icon-search”></i>
By the correct way: <i class=”fa fa-search”></i>
With Opera and FireFox the icons appears.
So, the problem with this Font is this: <i class=”icon icon
Please, solve it!
Attachments:
You must be logged in to view attached files.RoaderParticipantBy default, you have:
<i class=”icon icon-search”></i>
But with this class not display. (pic 1)
So, if you use (the original class): <i class=”fa fa-search” aria-hidden=”true”></i>
You can see a: fl , but not the icon. (pic 2)
Well, something is wrong with the Code. Please, check and update.
————
Remember: rtMedia Uploader not working with SD, And BuddyPress has 3 months outdate…Attachments:
You must be logged in to view attached files.RoaderParticipantMaybe, the cause of the problem… check this and compare:
Pic 1. My Site
Pic. 2 Other Site with Fontawesome that NOT has problems.If you check the Html you can find for example <i class= “fa fa-icon” </i> 20 times.
But, in my site only 1!
That is, the Theme is not integrating the fonts properly using: <i class= “fa fa-icon” </i>
I remember that in earlier versions of SD, I did not have this problem with the fonts.
Attachments:
You must be logged in to view attached files.RoaderParticipantSome icons does not work, neither rtMedia Uploader (check )
Attachments:
You must be logged in to view attached files.RoaderParticipantHola Laura.
Bueno, este Ticket no requiere de ayuda en realidad. Lo abrà para que uds tengan pendiente ciertas Updates que necesita el Theme, como esa Opción de Seguridad Básica.RoaderParticipantOther important function:
COPY CODE// Limit the access only to Admin add_action( 'init', 'blockusers_init' ); function blockusers_init() { if ( is_admin() && !current_user_can( 'administrator' ) && !( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { wp_redirect( home_url() ); exit; } }
But, from the Theme Options, you put selection:
[ ] Enable limit the access only to Admins
Include others:
[ ] Editor
[ ] Author
[ ] Contributor
[ ] Shop Manager (for Woocommerce)
[ ] AllAnd that code will be added to functions.php.
Variants (for replace):
If you select Editor, the code is:
`add_action( ‘init’, ‘blockusers_init’ );
function blockusers_init() {
if ( is_admin() && !current_user_can( ‘administrator’ ) && !current_user_can( ‘editor’ ) && !( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) ) {
wp_redirect( home_url() );
exit;
}
}`If you select Contributor:
`add_action( ‘init’, ‘blockusers_init’ );
function blockusers_init() {
if ( is_admin() && !current_user_can( ‘administrator’ ) && !current_user_can( ‘contributor’ ) && !( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) ) {
wp_redirect( home_url() );
exit;
}
}`If you select Author:
COPY CODEadd_action( 'init', 'blockusers_init' ); function blockusers_init() { if ( is_admin() && !current_user_can( 'administrator' ) && !current_user_can( 'author' ) && !( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { wp_redirect( home_url() ); exit; } }
If you select Shop Manager:
`add_action( ‘init’, ‘blockusers_init’ );
function blockusers_init() {
if ( is_admin() && !current_user_can( ‘administrator’ ) && !current_user_can( ‘shop_manager’ ) && !( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) ) {
wp_redirect( home_url() );
exit;
}
}`If you select Editor and Shop Manager:
`add_action( ‘init’, ‘blockusers_init’ );
function blockusers_init() {
if ( is_admin() && !current_user_can( ‘administrator’ ) && !current_user_can( ‘editor’ ) && !current_user_can( ‘shop_manager’ ) && !( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) ) {
wp_redirect( home_url() );
exit;
}
}`If you select All:
`add_action( ‘init’, ‘blockusers_init’ );
function blockusers_init() {
if ( is_admin() && !current_user_can( ‘administrator’ ) && !current_user_can( ‘editor’ ) && !current_user_can( ‘author’ ) && !current_user_can( ‘contributor’ ) && !current_user_can( ‘shop_manager’ ) && !( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) ) {
wp_redirect( home_url() );
exit;
}
}`You can create more combinations with editor, etc.
RoaderParticipantThis reply has been set as private.RoaderParticipantThis reply has been set as private.RoaderParticipantCode (correction):
COPY CODE// Restrict Private Message to friends. function pp_check_message_recipients( $message_info ) { // site admins are not restricted if ( is_super_admin() ) return $message_info; $recipients = $message_info->recipients; $friend_ids = friends_get_friend_user_ids( bp_displayed_user_id() ); $nf = 0; foreach ( $recipients as $key => $recipient ) { if ( ! in_array( $recipient->user_id, $friend_ids ) ) $nf++; } // if any recipients are not friends, remove everyone from the recipient's list if ( $nf > 0 ) unset( $message_info->recipients ); return $message_info; } add_action( 'messages_message_before_save', 'pp_check_message_recipients' );
RoaderParticipantHi Radu. For now… icons are working.
I Uninstalled and Re-installed all… Maybe the problem is the Import xml. In this chance, I don’t used the Demo xml.
Assets/ Font… I updated the Fonts to 4.7.0 and I putted this in functions.php:
COPY CODEfunction using_font_awesome(){ wp_enqueue_style('font-awesome', get_template_directory_uri() . '/styles/font-awesome.min.css'); } add_action('wp_enqueue_style','using_font_awesome');
______________
– The other problem is with rtMedia, is outdate and does not work with SD and WP 4.8.
– ShortCodes Window: Blank… not display.
– My friend Radu, remember this please Topic
June 15, 2017 at 03:38 in reply to: Registration mail notification is not received to the new users and admin #164315RoaderParticipantSolution: Install and Configure it: WP Mail SMTP Plugin by Mail Bank.
RoaderParticipantHola Laura:
Es extraño el problema con las fonts,
Pero ahora mismo el mayor problema es el Uploader del rtMedia. No aparece incluso en una instalacion limpia.RoaderParticipantClean Installation… again: Not Fontawesome icons (you can see: squares), Not rtMedia Uploader, etc.
Attachments:
You must be logged in to view attached files.RoaderParticipantOther problem… ShortCode Blank window!
Attachments:
You must be logged in to view attached files.RoaderParticipantHi Radu!
Radu there is a new problem. You know, new WordPress 4.8… New Updates…
Well, rtMedia does not work.
I turned off all plugins (except buddy and rtmedia); cleaned my htaccess, functions.php, etc. And rtmedia not…
Well Radu, if you can, for this new SD Update, includes: Ajax Search more criteria => Members, Groups, Forums (if exists) and – Copyright Widget Area by Default. PLEASE!!
Attachments:
You must be logged in to view attached files.RoaderParticipant -
AuthorPosts