This topic has 13 replies, 2 voices, and was last updated 8 years by Laura.

  • Author
  • #126115
     hotloverspassion
    Participant

    Hi guys, I have a few more issues I need your help with.

    1. I have found the code in other post that suppose to hide the current logged in user in member directory, but I am not sure where exactly shall I put this code. I tried functions.php, but it didn’t work. Could you please advise me in which file the code belongs to?

    I found the code in this post https://archived.seventhqueen.com/forums/topic/few-question-related-to-theme-layout/page/2 and the code is:

    add_action(‘bp_ajax_querystring’,’sq7_radu_exclude_users’,20,2);

    function sq7_radu_exclude_users($qs=false,$object=false){

    //list of users to exclude

    $excluded_user = bbp_get_current_user_id();//comma separated ids of users whom you want to exclude

    if($object!=’members’)//hide for members only

    return $qs;

    $args=wp_parse_args($qs);

    //check if we are searching for friends list etc?, do not exclude in this case

    if(!empty($args[‘user_id’])||!empty($args[‘search_terms’]))

    return $qs;

    if(!empty($args[‘exclude’]))

    $args[‘exclude’]=$args[‘exclude’].’,’.$excluded_user;

    else

    $args[‘exclude’]=$excluded_user;

    $qs=build_query($args);

    return $qs;

    }

    2. In registration page I would like to move field descriptions up so they appear straight under the field names. If the code is under the box, it’s very confusing and users can think that the description belongs to the next field. Could you please tell me how to do it? Please see picture attached.

    3. Logo on the page is linked to home page. How to delete this link? I would like to have just a logo without any links.

    4. I would like to style bbPress forums a bit. Is it better to use style.css in child theme or copy bbpress.css file from sweetdate/bbpress/css to child theme and edit it there? Would it make any difference where to style it? What would be better?

    Sorry for some “stupid” questions, I am still learning 😉

     

    Thanks a lot 🙂 Your help is much appreciated!

    Attachments:
    You must be logged in to view attached files.
    #126251
     Laura
    Moderator

    Hello, for 1- is this

    COPY CODE
    
    add_action('bp_ajax_querystring','sq7_radu_exclude_users',20,2);
    
    function sq7_radu_exclude_users($qs=false,$object=false){
        //list of users to exclude
    
        $excluded_user = bbp_get_current_user_id();//comma separated ids of users whom you want to exclude
    
        if($object!='members')//hide for members only
            return $qs;
    
        $args=wp_parse_args($qs);
    
        //check if we are searching for friends list etc?, do not exclude in this case
        if(!empty($args['user_id'])||!empty($args['search_terms']))
            return $qs;
    
        if(!empty($args['exclude']))
            $args['exclude']=$args['exclude'].','.$excluded_user;
        else
            $args['exclude']=$excluded_user;
    
        $qs=build_query($args);
    
        return $qs;
    
    }
    

    At functions.php of your child theme
    2- Try adding this to style.css of child theme

    COPY CODE
    
    .description {
        margin-top: -25%;
        position: absolute;
    }
    

    3- Copy the header.php of main theme and paste it at child theme, then edit it and find

    COPY CODE
    
    <a>"><img />" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a>
    

    Replace it with

    COPY CODE
    
    <img />" width="294" height="108" alt="<?php bloginfo('name'); ?>">
    

    4- I suggest to use chrome developer tools to find the class and ids of the elements that you want to edit then create a style for them and paste it at style.css of child theme

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #126276
     hotloverspassion
    Participant

    Thanks again for a quick reply!!! Your support here is just amazing!

    Here is my result:

    1. code works fine, thanks! I was wondering, whether we can push this one step further…the code hides logged in user from the members directory, but it still counts that member in a search “Your search returned x members”…is there an easy fix to exclude that member from this count? I have similar problem with hiding admin profile from the count, so the fix to this might fix my other issue as well 😉

    2. unfortunately, not working well – it messes up the form ( see attached picture )

    3. amazing! Codes work like a charm! Thank you!

    4. Thank you for your suggestion. I have found out about the chrome developer tool 2 days ago and it’s just brilliant! Makes my life much easier!!! As a newbie I was whole last month searching for the codes in files using trial and error method! What a crazy thing to do!!! 😀

    BTW, you’ve got one very happy customer here 🙂

    Attachments:
    You must be logged in to view attached files.
    #126403
     Laura
    Moderator

    Hello, for 1: Sadly this requires more work than it seems so i would suggest to hire a developer for that
    2:Can you share admin credentials so i can check it out?
    3: yay!!
    Chrome developer tool is a very good way to modify css and see changes live, it is indeed a good tool

    Aa i see you are very happy and good customer, would you rate us 5 stats at themeforest? Pretty please? 😀

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #126406
     hotloverspassion
    Participant
    This reply has been set as private.
    #126590
     Laura
    Moderator

    Hello, should be fixed now, added more specific css to your style.css 🙂

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #126596
     hotloverspassion
    Participant

    Thanks Laura,
    could you just kindly guide me what have you changed? I can’t see any new CSS code neither any change on the registration page…sorry 🙁

    #126660
     Laura
    Moderator

    Hello, you will see it at style.css
    Access going to Appearance > Edit the first one that appears is style.css

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #126727
     hotloverspassion
    Participant

    Hi,
    I know where to find style.css. I’ve been working with style.css all day yesterday. The only thing I can think of is, that we were there at the same time and your code wasn’t saved….even the registration page is completely the same as before. Sorry…

    #126921
     Laura
    Moderator

    Aw, that hurts
    Is fine, i added it again, but please dont delete it 😉
    Here is a backup because i do not trust you ( lol )

    COPY CODE
    
    .field_1 .description {
        margin-top: -17% !important;
        position: absolute;
    }
    .field_6 .description {
        margin-top: -36% !important;
        position: absolute;
    }
    .field_690 .description {
        margin-top: -49% !important;
        position: absolute;
    }
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #127463
     hotloverspassion
    Participant

    Thanks a lot for this!!!! Yo are a star!!!
    And sorry, I promise I won’t delete it again 😀 But it is a good idea to always paste the code here so others can also benefit from it 😉

    #127653
     Laura
    Moderator

    Glad to help! Remember to give us a nice comment and 5 star rating at themeforest :))

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #127655
     hotloverspassion
    Participant

    Already done 😉

    #127894
     Laura
    Moderator

    Yay 😀

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?