Forum Replies Created

Viewing 40 posts - 321 through 360 (of 591 total)
  • Author
  • in reply to: Hide BuddyPress Super Admin from #148131
     Roader
    Participant

    Now I go to try this… and I tell you later. https://buddydev.com/buddypress/hiding-users-on-buddypress-based-site/

    My friend Radu, you know, WordPress needs a lot of Security… and BuddyPress MORE!

    in reply to: Hide BuddyPress Super Admin from #148130
     Roader
    Participant

    From Member Directory NOT! I have this solution! (Check the code up)

    Is from BuddyPress WIDGETS the big problem!

    Please!

    in reply to: How can I protect wp-login… and others #148030
     Roader
    Participant
    COPY CODE
    // Limit WP Dashboard Access
    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;
     }
    }

    Okey, this code works, but, I need to add access for Shop manager, but, I dont know how

    in reply to: How can I protect wp-login… and others #148027
     Roader
    Participant

    Other think:

    How can I to restringe the access to dashboard? For example, if a suscriptor write:

    mysite.com/wp-admin He or She can in to WP DashBoard. I dont want that.

    I did try with:

    COPY CODE
    //Acceso prohibido a Dashboard de suscriptores
    function restrict_access_admin_panel(){
                    global $current_user;
                    get_currentuserinfo();
                    if ($current_user->user_level <  4) {
                            wp_redirect( get_bloginfo('url') );
                            exit;
                    }
            }
            add_action('admin_init', 'restrict_access_admin_panel', 1);
    

    But, with this code an error:

    When a User fails with the LogIn, he is redirect to: wp-login.php

    I dont want that.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Private Message, some things… #148002
     Roader
    Participant

    This Message is for Laura. Este mensaje es para Laura.

    Bien Laura, en español escribo con más libertad. 😀

    1) Lo que quiero es anular que el campo Asunto sea obligatorio. Sé que se puede ocultar usando display: none; pero eso no sirve si internamente hay un código php obligando al Usuario a escribir un Asunto. En ninguna página de Dating esto de “Asunto” es necesario. En el Contact Form Okey! Ahí sí.

    2) En Compose, cuando escribes el nombre de algún Usuario, no se autorrellena, Por qué?

    3) Como ves en la foto, hay problemitas con el CSS original (incluso en el Demo del Theme), Send a Reply aparece pegado al Avatar, etc.

    4) La mensajería debe ser mejorada. De por sí la Mensajería de BP es tediosa. No es práctica para un sitio de Dating. Mira el ejemplo de WAPLOG, una mensajería así es que se necesita. Me parece que WAPLOG está basada en BuddyPress.

    Pero si no pueden hacer una mensajería así, por lo menos que añadan el Quick MS Navigator, y mejoren un poco más el Template de Mensajería Privada.

    in reply to: Hide BuddyPress Super Admin from #147970
     Roader
    Participant

    🙁 bad solution. This css works when you are login using user#1 but, for other user, user#1 is visible (>_<)

    I need a Php code for that. Is VERY, VERY important to hide Super Admin or Admins.

     Roader
    Participant

    Now working.

    Delete endif; from the php code.

    Working code:

    COPY CODE
    function kleo_copyright_text()
    {
      echo '<p>'. __("Copyright", 'kleo_framework').' © '.date("Y").' '. get_bloginfo('name').'. <br class="hide-for-large show-for-small"/>'. get_bloginfo( 'description' ).' </p><div class="footer-info"> | <a href="YOUR URL HERE" rel="nofollow"><strong>TERMS AND CONDITIONS</strong></a> | <a href="YOUR URL HERE" rel="nofollow"><strong>PRIVACY AND POLICY</strong></a> | <a href="YOUR URL HERE" rel="nofollow"><strong>CONTACT US</strong></a></div>';        
    }
    add_action('kleo_footer_text','kleo_copyright_text');

    CSS:

    COPY CODE
    .footer-info {
      float: right;
      margin-top: -3%;
    }
    Attachments:
    You must be logged in to view attached files.
     Roader
    Participant

    Hi Laura… this php code does not work.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Hide BuddyPress Super Admin from #147953
     Roader
    Participant

    Theme Options / Styling options / Quick CSS

    #members-list > li.vcard:nth-child(1) {
    display: none;
    }

    in reply to: Hide BuddyPress Super Admin from #147952
     Roader
    Participant

    For now the solution is:

    #members-list > li:nth-child(1) {
    display: none;
    }

    in reply to: Member Directory… Search Form #147760
     Roader
    Participant

    FULL CODE:

    .members .item-list-tabs {
    display: inline-block;
    vertical-align: middle;
    }

    .members #subnav ul {
    padding: 0;
    margin: 0;
    }

    li#members-order-select {
    margin-left: 20px;

    in reply to: Member Directory… Search Form #147759
     Roader
    Participant

    Thanks! Radu 😉

    in reply to: Hide BuddyPress Super Admin from #147605
     Roader
    Participant

    Laura, plis, pídele a Radu que revise, ya que él maneja más el php quizás sepa algo.

    in reply to: Member Directory… Search Form #147598
     Roader
    Participant

    Hi Radu. No man,

    please, give me a css for that,

    for now… I have: (photo 1)

    but I want (photo 2)

    Attachments:
    You must be logged in to view attached files.
    in reply to: Problem with Dropdown Menu #147307
     Roader
    Participant

    Problem detected.

    COPY CODE
    .top-bar ul>li a:not(.button) {
        display: inline; 
        }

    Thanks Radu!

    in reply to: Problem with Dropdown Menu #147306
     Roader
    Participant

    Umm let me try

    in reply to: Hide BuddyPress Super Admin from #147179
     Roader
    Participant

    Tampoco me sirve ese link Laura.

    in reply to: Problem with Dropdown Menu #147178
     Roader
    Participant
    This reply has been set as private.
    in reply to: Problem with Dropdown Menu #146957
     Roader
    Participant

    No Luaura, It seems to be a problem of the Theme.

    For this example, you can see the Style.css clean.

    Dropdowm Menu is wrong. Please, fix it and Send me the solution.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Problem with Theme functions.php #146956
     Roader
    Participant

    No Laura, default Child Theme has problems. Solution:

    In functions.php —->

    COPY CODE
    <?php
    /**
     * @package WordPress
     * @subpackage Sweetdate
     * @author SeventhQueen <themesupport@seventhqueen.com>
     * @since Sweetdate 1.0
     */
    
    /**
     * Sweetdate Child Theme Functions
     * Add extra code or replace existing functions
    */ 
    
    ?>
    <?php
    
    // BEGIN ENQUEUE PARENT ACTION
    // AUTO GENERATED - Do not modify or remove comment markers above or below:
    
    // END ENQUEUE PARENT ACTION
    in reply to: Hide BuddyPress Super Admin from #146954
     Roader
    Participant

    Querida Laura. Yo tomé los códigos de esos enlaces previamente. Pero ahí no aparece cómo esconder el Admin de los WidGets de BP. Por esa razón abrí este Ticket aquí a ver si tú o Radu me ayudan.

    in reply to: How I can see… #146856
     Roader
    Participant

    Hi Radu, please check this.

    Attachments:
    You must be logged in to view attached files.
    in reply to: How can i force the translation? #146846
     Roader
    Participant

    Other thing. There are errors in the Default .Po _ SweetDate.
    Check it.

    Attachments:
    You must be logged in to view attached files.
    in reply to: How can i force the translation? #146844
     Roader
    Participant

    My friend Radu, I know that. But qtranslatex does not translate this fields.
    For this reason, please, I need a php code for translate, maybe a php that works when qtranslate is active.

    in reply to: A little problem with WangGuard #146838
     Roader
    Participant

    – Mi querida Laura, podrías pasarme un tutorial completo para conectar mi Hosting (HostaGator) + WordPress + CloudFlare?

    – También te agradecería que me digas cómo obtener un SSL gratuito, vi algo de Linux (Let’s Encrypt) pero no sé si funcione con HostGator.

    – Por otro lado algunos tips extras que han usado uds los del Equipo 7thQ para proteger su Site.

    Algo malo de BuddyPress que acabo de observar, corregible sí, es que muestra el Username del Super Admin. Si un hacker se suscribe a la página, y ve ese username, pues qué crees?

    La solución fue esta, pero a medias —> Digo a medias porque necesito un código para ocultar el Super Admin de los WidGets de BuddyPress (si sabes cómo puedo hacerlo dímelo):

    COPY CODE
    // Deny access to admins profile. User is redirected to the homepage
    function bpfr_hide_admins_profile() {
    	global $bp; 
    	if(bp_is_profile && $bp->displayed_user->id == 1 && $bp->loggedin_user->id != 1) :
    		wp_redirect( home_url() );
    	exit;
    	endif;
    }
    add_action( 'wp', 'bpfr_hide_admins_profile', 1 );
    
    // Hide admin's activities from all activity feeds
    function bpfr_hide_admin_activity( $a, $activities ) {	
    	
    	// ... but allow admin to see his activities!
    	if ( is_site_admin() )	
    		return $activities;	
    	
    	foreach ( $activities->activities as $key => $activity ) {	
    		// ID's to exclude, separated by commas. ID 1 is always the superadmin
    		if ( $activity->user_id == 1  ) {			
    			
    			unset( $activities->activities[$key] );			
    			
    			$activities->activity_count = $activities->activity_count-1;			
    			$activities->total_activity_count = $activities->total_activity_count-1;			
    					$activities->pag_num = $activities->pag_num -1;				
    		}		
    	}		
    	// Renumber the array keys to account for missing items 	
    	$activities_new = array_values( $activities->activities );		
    	$activities->activities = $activities_new;	
    	
    	return $activities;
    	
    }
    add_action( 'bp_has_activities', 'bpfr_hide_admin_activity', 10, 2 );
    
    // Remove admin from the member directory
    function bpdev_exclude_users($qs=false,$object=false){
        
        $excluded_user='1'; // Id's to remove, separated by comma
    	
        if($object != 'members' && $object != 'friends')// hide admin to members & friends 
        return $qs;
    	
        $args=wp_parse_args($qs);
    
        if(!empty($args['user_id']))
        return $qs;	
    	
        if(!empty($args['exclude']))
    		$args['exclude'] = $args['exclude'].','.$excluded_user;
        else
    		$args['exclude'] = $excluded_user;
    	
        $qs = build_query($args);
    
        return $qs;
    	
    }
    add_action('bp_ajax_querystring','bpdev_exclude_users',20,2);
    
    // once admin is removed, we must recount the members !
    function bpfr_hide_get_total_filter($count){
        return $count-1;
    }
    add_filter('bp_get_total_member_count','bpfr_hide_get_total_filter');
    
    
    in reply to: Problem with WordFence #146836
     Roader
    Participant

    Ese problema está sucediendo con cualquier plugin. No sé si será un problema de HostGator, o si será porque para más seguridad cambié el prefijo wp_ a otro diferente. El punto es que al activar o desactivar ciertos plugins, se pone así el DashBoard, también presenta otras anomalías.

    in reply to: Problem with Theme functions.php #146835
     Roader
    Participant
    This reply has been set as private.
    in reply to: Problem with Dropdown Menu #146834
     Roader
    Participant
    This reply has been set as private.
    in reply to: Problem with Theme functions.php #146688
     Roader
    Participant

    Maybe Solution:::

    <?php
    /**
    * @package WordPress
    * @subpackage Sweetdate
    * @author SeventhQueen <themesupport@seventhqueen.com>
    * @since Sweetdate 1.0
    */

    /**
    * Sweetdate Child Theme Functions
    * Add extra code or replace existing functions
    */

    ?>
    <?php

    // BEGIN ENQUEUE PARENT ACTION
    // AUTO GENERATED – Do not modify or remove comment markers above or below:

    // END ENQUEUE PARENT ACTION

    in reply to: How can i force the translation? #146646
     Roader
    Participant

    I cant add new words in source.

    But, I think there is a way for that.

    Whatever, the solution for translating problem is: A php code in function.php or whatever.php

    if exist “original-english–text” (word, id, or whatever) ==> “translate-text”;

    Attachments:
    You must be logged in to view attached files.
    in reply to: How can i force the translation? #146645
     Roader
    Participant

    New words in the SD Theme.

    Because, words like: Marital Status, City, Relationship, are added.

    qTranslateX has can translate these. But, if you create a New Field, qTranslateX cant.

    And I DONT WANT MORE PLUGINS… More Plugins = WP Slow, WP more vulnerable.
    For this reason, I prefer safe Php Code.

    in reply to: A little problem with WangGuard #146620
     Roader
    Participant

    Laura, y qué me dices de un CDN como CloudFlare?

    Tienes experiencia con ese CDN? Lo pregunto porque, veo que lo recomiendan mucho, pero, hay algo que me preocupa. La versión Gratis del CDN tiene un límite para el tráfico, y me pregunto si mi página llega a tener 10,000 visitas diarias, qué pasaría, se caería o seguiría funcionando normal?

    in reply to: Member Directory… Search Form #146492
     Roader
    Participant

    Well Radu.

    I want to put 1 like 2 (example)

    I suppose that you know the css for get it.

    Attachments:
    You must be logged in to view attached files.
    in reply to: A little problem with WangGuard #146476
     Roader
    Participant

    Laura, no hay problema si tengo WordFence instalado e iTheme Security?
    O basta con uno?

    in reply to: A little problem with WangGuard #146474
     Roader
    Participant
    This reply has been set as private.
    in reply to: A little problem with WangGuard #146473
     Roader
    Participant

    Hola Laura.
    Sí, WangGuard tiene ciertos problemas. Le avisaré a José Conti el desarrollador.

    Aun así, podrías ser tan amable de pasarme los tips para darle más seguridad al Sitio?

    Veo que el ithemes security es más de pago que otra cosa. Qué ventajas tendría con la versión gratuita?

    in reply to: Block other user and Chat #146472
     Roader
    Participant
    Not marked as solution
    in reply to: Member Directory… Search Form #146471
     Roader
    Participant

    My friend Radu, what is the Css for align very well?
    I did try but not well…

    in reply to: How I can see… #146470
     Roader
    Participant

    Hi Radu, I did remove this…

    But I found the solution 😀

    Problem:

    In QUICK CSS I had:
    div#header {
    background-color: transparent;
    background-image: url(http://whatsmymate.com/wp-content…png);
    background-position: 80%;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: contain;
    background-position-y: 50px;
    }

    The image was repeated.
    Only I removed this line! 😉 But Thanks for your Time!

    in reply to: How can i force the translation? #146467
     Roader
    Participant

    Look at this:

    Attachments:
    You must be logged in to view attached files.
Viewing 40 posts - 321 through 360 (of 591 total)

Log in with your credentials

Forgot your details?