igid26
Forum Replies Created
-
Forum: Plugins
In reply to: [Bebop] Posts are still unverified.Thanks for the quick reply.
I the plugin deactivated and activated it but did not help. I use version 1.3.0I created a file bp-custom.php which I put in directory plugins.DIR. To bp-custom.php I put code
<?php function show_last_n_images($n=5){ if(bp_is_my_profile()){ $n = $n +1; } $query = new BPMediaQuery(); $args = $query->init('image',false,$n); $q = new WP_Query($args); if ($q && $q->have_posts()){ echo '<ul id="groups-list" class="bp-media-gallery item-list">'; while ($q->have_posts()) : $q->the_post(); $mytemplate = new BPMediaTemplate(); $mytemplate->the_content(); endwhile; } } ?>
And then I put the member-header.php
<?php show_last_n_images($n=5); ?>Sorry for my english ??
Saurabh Shukla thank you for the help works great.
Did you mean this?
function show_last_n_images($n=5){
if(bp_displayed_user_id()){
global $bp;
$args = array(
‘post_type’ => ‘bp_media’,
‘author’ => $bp->displayed_user->id,
‘meta_key’ => ‘bp_media_type’,
‘meta_value’ => ‘image’,
‘meta_compare’ => ‘LIKE’,
‘posts_per_page’ => $n
);
$q=new WP_Query($args);if ($q && $q->have_posts()):
echo ‘<ul id=”groups-list” class=”bp-media-gallery item-list”>’;
while ($q->have_posts()) : $q->the_post();
$mytemplate = new BPMediaTemplate();
$mytemplate->the_content();
endwhile;
echo ”;
endif;
}
}Forum: Plugins
In reply to: [rtMedia for WordPress, BuddyPress and bbPress] Integrate with CubepointsI created a module that adds points for add media. I hope it will work https://pastebin.com/dN9QdTXz
Forum: Plugins
In reply to: [Wp-Pro-Quiz] Integrate with CubepointsI progressed further module adds points when a user completes a quiz. But I can not figure out that the module added points only for 100% completion of the quiz.
Here’s my module that adds points for completing the quiz
https://pastebin.com/cZ9Tdy3QForum: Plugins
In reply to: [BuddyPress BP Gallery Plus] Images in member headerThank you
Thank you for your reply. Avatar shows the correct size but is blurred.
Yes, I doing related avatar customization in your BuddyPress site.
My web https://www.taraj.sk
Screenshot
https://taraj.sk/1.jpg