This topic has 7 replies, 2 voices, and was last updated 6 years by Kieran_SQ.

  • Author
  • #204939
     melikcan
    Participant

    Hi, I want to make members pages a real page seen on url, because in adsense , you cant refresh advertisments by auto refresh plug ıns , you can only make be refreshed them by letting members open new pages so thay advertisment can be refreshed.  In buddy press, all pages of members seen as a single page, so advertisment dont change during 30,40 minutes of searchıng tımes of members. As auto refreshing ıs prohibited, I have only chose which is seperating each members pages to new diffrent pages as seen url. So, when members searching new members, they will have to click seccond page ,or thırt or fourth page and ,the page will be changed in url so advertisments will be refreshed. When members change the members page , it should open new page as new page in URL too. I have tried to explain it by drawing bellow. how can I do this ?

    Attachments:
    You must be logged in to view attached files.
    #204941
     melikcan
    Participant
    This reply has been set as private.
    #204942
     Kieran_SQ
    Moderator

    Hi,

    To do this you will need to copy the below file from SweetDate to SweetDate Child, if the folder structure does not already exist in the SweetDate Child then you will need to recreate it.

    Copy from
    /wp-content/themes/sweetdate/buddypress/members/members-loop.php

    Copy to
    /wp-content/themes/sweetdate-child/buddypress/members/members-loop.php

    You will be able to edit the file from the SweetDate Child once copied across.

    Look for the below HTML around line 116

    <div id="pag-bottom" class="pagination">

    Once you have located this HTMLK add no-ajax to the class, like so

    <div id="pag-bottom" class="pagination no-ajax">

    Save your changes. Purge your website cache, CDN and local cache to see the changes.

    Thanks,

    Kieran

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

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

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #204947
     melikcan
    Participant

    ı have pasted it to child theme main screen,

    <?php
    /**
    * BuddyPress – Members Loop
    *
    * Querystring is set via AJAX in _inc/ajax.php – bp_legacy_theme_object_filter()
    *
    * @package BuddyPress
    * @subpackage bp-legacy
    */

    /**
    * Fires before the display of the members loop.
    *
    * @since 1.2.0
    */
    do_action( ‘bp_before_members_loop’ ); ?>

    <?php if ( bp_get_current_member_type() ) : ?>
    <p class=”current-member-type”><?php bp_current_member_type_message() ?></p>
    <?php endif; ?>

    <?php if ( bp_has_members( bp_ajax_querystring( ‘members’ ) . ‘&per_page=’.sq_option( ‘buddypress_perpage’ ) ) ) : ?>

    <?php

    /**
    * Fires before the display of the members list.
    *
    * @since 1.1.0
    */
    do_action( ‘bp_before_directory_members_list’ ); ?>

    <?php while ( bp_members() ) : bp_the_member(); ?>

    >

    “>
    <?php bp_member_avatar( ‘type=full&width=94&height=94&class=’ ); ?>

    <?php do_action(‘bp_members_inside_avatar’);?>

    <h5 class=”author”>“><?php bp_member_name(); ?></h5>

    <?php do_action(‘bp_members_meta’);?>

    <?php

    /**
    * Fires inside the display of a directory member item.
    *
    * @since 1.1.0
    */
    do_action( ‘bp_directory_members_item’ ); ?>

    <?php
    /***
    * If you want to show specific profile fields here you can,
    * but it’ll add an extra query for each member in the loop
    * (only one regardless of the number of fields you show):
    *
    * bp_member_profile_data( ‘field=the field name’ );
    */
    ?>

    <?php do_action(‘bp_directory_members_item_last’);?>

    <?php

    /**
    * Fires inside the members action HTML markup to display actions.
    *
    * @since 1.1.0
    */
    do_action( ‘bp_directory_members_actions’ ); ?>

    <?php endwhile; ?>

    <?php

    /**
    * Fires after the display of the members list.
    *
    * @since 1.1.0
    */
    do_action( ‘bp_after_directory_members_list’ ); ?>

    <?php bp_member_hidden_fields(); ?>

    #204948
     melikcan
    Participant

    I didint understand after pasted the codes.

    #204950
     Kieran_SQ
    Moderator

    Hi,

    It is not possible, by default, to copy files within WordPress in this way, you need to do this via SFTP / FTP or your hosts file manager in their control panel.

    I logged into your site and found you copied to the contents of the members-loop.php file into the style.css file. This is not correct and you should remove the code you pasted into style.css

    Please follow my steps from above and copy the members-loop.php file (not the contents of the file) from the SweetDate parent theme to the SweetDate child theme. Remember you will need to create any folders in the child theme that do not already exist so that the path is identical.

    In the example below I have bolded the folder names that may need to be created in your child theme

    /wp-content/themes/sweetdate-child/buddypress/members/members-loop.php

    Thanks,

    Kieran

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

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

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #204953
     melikcan
    Participant

    Thank you very much ! I have done , problem caused due to e mail and seventh queen diffrence, because codes seen diffrent in email, I looked EMAİL during cpanel changings, so ı coudnt do at first, but I have RECOGNİSE codes are in email are diffrent.

    and ı have done it, than you very much ! İt works !

    #204955
     Kieran_SQ
    Moderator

    Hi,

    Glad to hear this is working for you now. Please feel free to open a new ticket if you have any other questions or issues and we’ll be happy to help.

    Thanks,

    Kieran

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

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

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

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

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?