-
Author
-
July 28, 2018 at 22:52 #204939melikcanParticipant
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.July 28, 2018 at 23:16 #204942Kieran_SQModeratorHi,
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 solutionIf 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.
July 29, 2018 at 00:29 #204947melikcanParticipantı 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 bp_members_pagination_count(); ?>
<?php bp_members_pagination_links(); ?>
<?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(); ?>
<?php bp_members_pagination_count(); ?>
<?php bp_members_pagination_links(); ?>
<?php else: ?>
<p><?php _e( “Sorry, no members were found.”, ‘buddypress’ ); ?></p><?php endif; ?>
<?php
/**
* Fires after the display of the members loop.
*
* @since 1.2.0
*/
do_action( ‘bp_after_members_loop’ ); ?>and ı have pasted
to 116 . But any thing hasnt changed. BUT ı didint do it in c panel but in wordpress, should ı do it in cpanel ?July 29, 2018 at 03:40 #204950Kieran_SQModeratorHi,
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 solutionIf 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.
July 29, 2018 at 06:42 #204953melikcanParticipantThank 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 !
July 29, 2018 at 15:39 #204955Kieran_SQModeratorHi,
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 solutionIf 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.
-
AuthorPosts
You must be logged in to reply to this topic.