Forum Replies Created
-
Author
-
parousiaParticipant
Thanks for getting back to me,
Would it be okto turn off the option in the theme options and then copy the functions I want from config .php to my functions.php?
parousiaParticipantHi thanks for getting back to me,
I’ve placed it where I need it, the problem I’m having is that when you scroll down and the navbar resizes, all the other elements transition smoothly into place, however the search element I’ve placed doesn’t, it snaps into place.
How are you achieving the smooth transition with the other navbar elements? is it css or JS? if JS how can I hook into the right function.
Thanks!
parousiaParticipantHi,
Thanks so much that fixed it! I’ve tried variations of that code already that hadn’t worked for some reason on that worked fine.
parousiaParticipantparousiaParticipantHi,
Sorry for late reply, I’ve attached screenshots, as you can see the avatar isn’t shared across the network.
Any help greatly appreciated!
Attachments:
You must be logged in to view attached files.parousiaParticipantUnfortunately its not working?
my code is below
COPY CODE<?php $user_id = bp_displayed_user_id(); $firstname = your_name_or_company_name(true); $getusername = bp_get_displayed_user_username(); $args = array( 'type' => 'alphabetical', 'max' => 6, 'user_id' => $user_id ); if ( bp_has_groups ( $args )) { ?> <div class="inner-right"> <h3><?php echo $firstname; ?>'s <a href="http://www.cultexposure.com/members/<?php echo $getusername; ?>/groups/">groups</a></h3> <ul id="profile-group-list-wrap" class="my-groups-list item-list"> <?php while ( bp_groups() ) : bp_the_group(); ?> <?php $image_url = groups_get_groupmeta( bp_get_group_id(), 'bpcp_group_cover' ); ?> <li class="profile-group-list" style="background-image:url("<?php echo $image_url; ?>")" > <div class="item-avatar"> <a href="<?php bp_group_permalink() ?>"><?php bp_group_avatar_thumb() ?></a> </div> <div class="item"> <div class="item-title"><a href="<?php bp_group_permalink() ?>" title="<?php bp_group_name() ?>"><?php bp_group_name() ?></a></div> <div class="item-meta"><span class="activity"><?php bp_group_member_count() ?></span></div> </div> </li> <?php endwhile; ?> </ul> <div class="homepage-btn"> <a href="http://www.cultexposure.com/members/<?php echo $getusername; ?>/groups/"><span></span>Browse your groups</a> </div> </div> <?php } ?>
parousiaParticipantThanks! When needed I’ve been fetching the user profile cover from user meta, but I don’t think the group cover is stored anywhere like that?
parousiaParticipantHi, thanks but the avatar retrieving the avatar isn’t the problem, its the cover image of the group I would like. Is this possible?
parousiaParticipantAh right ok, thats a shame.
I will keep searching for the ideal solution then. If I find anything I will be sure to post it here!
parousiaParticipantThat like btn didnt work for me although had a lot of options, support weren’t very helpful at all with the issues I had. WP ULike is nice but a little limited.
None of the plugins manage to consolidate your likes into its own activity stream So user can look at what they have “liked” as buddypress does with its in built solution.
What makes the most sense is for kleo likes to integrate with the buddypress system as other plugins have done.
parousiaParticipantIve spoken to the rtmedia team and they say they are going to integrate their likes with the Buddypress system.
Would such a thing be possible with Kleo likes? It certainly makes sense to do so for a Buddypress theme.
parousiaParticipantI’ve tried most of the plugins, unfortunately none of them offer a complete solution that one in particular is very buggy. Also all the like plugins seem to add a lot of bloat to the site.
I was hoping one of the three like solutions that are inside the kleo thme could be used.
Kleo likes doesn’t seem to make much sense as there doesn’t seem to be a way for the user to review the items you’ve liked.
Buddypress in built solution is good as you can see what you’ve liked in the activity stream, but you can’t like posts or rtmedia images.
Rtmedia doesn’t integrate with anything either and I also cannot find a way to see liked images.
Also, they all have different icons, which is confusing from a UI standpoint.
I think Kleo very much needs to get rid of the other systems and use one that covers all the post and media types. It would certainly go towards reducing code bloat too.
One way of doing it would be to post to activity stream whenever a post is liked using the kleo system, would also need to notify buddy press likes that it had been liked so it it couldn’t be liked twice. Would there be a way of doing this?
parousiaParticipantwhen making a blog you can select the post type you want. When you selecct the gallery post type you can create a very nice slider that shows in the blog list and in the post itself. Is there a way of showing thumbnails for the pictures in the post. So users can go straight to an image, instead of scrolling through them all.
I’ve attached a rough image to demonstrate what I mean.
Attachments:
You must be logged in to view attached files.parousiaParticipantHi,
Just to follow up on this post. I couldn’t quite get it to work as I wanted too. Due to the way VC works Its impossible to have the masonry layout flow around elements in another column also you cant continue the posts loop in another element after you’ve broken it up in a row. It might be possible if you could query posts to display within specific dates but I couldn’t find this option.
So I decided to add featured sections directly inside the posts loop in index.php using the code below :
COPY CODE// Start the Loop. while ( have_posts() ) : the_post(); $count++; if ($count == 2) { if ( $blog_type != 'standard' ) : get_template_part( 'page-parts/post-content-' . $blog_type ); else: get_template_part( 'content', get_post_format() ); endif; ?> <div class="blog-sticky-post-wrapper"> <div class="blog-sticky-post"> <h3>Latest <span class="title-key-color">Photographs</span></h3> <?php echo do_shortcode("[rtmedia_gallery global=\"true\" per_page=\"8\" media_title=\"false\"]"); ?> <div class="homepage-btn"> <a href="http://www.cultexposure.com/photographs/"><span></span>More photographs</a> </div> </div> </div> <?php } else { /* * Include the post format-specific template for the content. If you want to * use this in a child theme, then include a file called called content-___.php * (where ___ is the post format) and that will be used instead. */ ?> <?php if ( $blog_type != 'standard' ) : get_template_part( 'page-parts/post-content-' . $blog_type ); else: get_template_part( 'content', get_post_format() ); endif; } wp_reset_postdata(); endwhile;
parousiaParticipantHi,
I managed to solve this problem, it seems I needed to load the post templates in the if statement first before I added my own content as below.
COPY CODEwhile ( $query->have_posts() ) : $query->the_post(); $count++; if ($count == 2) { if ( $blog_type != 'standard' ) : get_template_part( 'page-parts/post-content-' . $blog_type ); else: get_template_part( 'content', get_post_format() ); endif; ?> <div class="blog-sticky-post-wrapper"> <div class="blog-sticky-post"> <h3>Latest <span class="title-key-color">Photographs</span></h3> <?php echo do_shortcode("[rtmedia_gallery global=\"true\" per_page=\"8\" media_title=\"false\"]"); ?> <div class="homepage-btn"> <a href="http://www.cultexposure.com/photographs/"><span></span>More photographs</a> </div> </div> </div> <?php } else { /* * Include the post format-specific template for the content. If you want to * use this in a child theme, then include a file called called content-___.php * (where ___ is the post format) and that will be used instead. */ ?> <?php if ( $blog_type != 'standard' ) : get_template_part( 'page-parts/post-content-' . $blog_type ); else: get_template_part( 'content', get_post_format() ); endif; } wp_reset_postdata(); endwhile;
parousiaParticipantI have a multisite network and its working fine for the other sites.
Attachments:
You must be logged in to view attached files.parousiaParticipantThanks good advice!
If anyone wants to know how its done the code is below:
COPY CODEfunction my_cache_avatar_url() { update_user_meta( bp_displayed_user_id(), 'modemloopers_awesome_avatar_url', bp_core_fetch_avatar( 'html=false&item_id=' . bp_displayed_user_id() ) ); } add_action( 'xprofile_screen_change_avatar', 'my_cache_avatar_url' );
September 12, 2015 at 17:00 in reply to: Activity loop template files for Mentions, Favourites, Friends, Groups ? #77312parousiaParticipantHi, Thanks! sorry I’m still very new to php it took me a while to understand how it worked, I’ve moved my changes from activity.php too home.php 🙂
September 10, 2015 at 20:27 in reply to: Activity loop template files for Mentions, Favourites, Friends, Groups ? #77091parousiaParticipantHi, unfortunately I can’t find any evidence of an activity feed for mentions, favourites, friends and groups in the files you mentioned? are they created on the fly? if so how?
September 8, 2015 at 13:55 in reply to: Activity loop template files for Mentions, Favourites, Friends, Groups ? #76574parousiaParticipantI’ve looked but I cant find where the Mentions, Favourites, Friends, Groups template files are?
parousiaParticipantIn theme settings -> blog theres an option for a featured content section to show either a carousel or a grid at the top of the blog. As I’ve added a revolution slider to the top of the blog I’d like it to show neither. However I cant see an option for this?
parousiaParticipantHi! Thanks reverted my changes and put a revolution slider in the index.php instead very happy with the results, wish id done it earlier!
Is there a way to turn off the featured content in settings ive tried leaving the field blank but the carousel still shows? I’d rather not use css display:none.
Thanks!
parousiaParticipantAny ideas? my php and java isnt very good at all so I’m having a hard time figuring it out.
parousiaParticipantI’m not much good at php I sort of just worked it out as I went along so there might be a better way of doing this, also I strongly advise you use the child theme if you’re not already.
Buddypress.php can be found in the wp-content/themes/kleo directory. On line 105 of the buddypress.php file you should see an if statement that looks like this:
COPY CODE<?php if( sq_option( 'bp_full_profile', 0 ) == 1 && bp_is_user() ): ?> <section class="alternate-color bp-full-width-profile"> <div id="item-header" role="complementary"> <?php bp_get_template_part('members/single/member-header') ?> </div> <!-- #item-header --> </section> <?php endif; ?>
I then added to the if statement so it look like this :
COPY CODE<?php if( sq_option( 'bp_full_profile', 0 ) == 1 && bp_is_user() ): ?> <section class="alternate-color bp-full-width-profile"> <div id="item-header" role="complementary"> <?php bp_get_template_part('members/single/member-header') ?> </div> <!-- #item-header --> <div id="main-container" class="container"> <div class="row"> <div id="buddy-menu-top" class="main-color"> <div id="buddypress"> <div class="row"> <div class="col-sm-12"> <div id="item-nav"> <div class="item-list-tabs no-ajax" id="object-nav" role="navigation"> <ul class="responsive-tabs"> <?php bp_get_displayed_user_nav(); ?> <?php do_action('bp_member_options_nav'); ?> </ul> </div> </div> <!-- #item-nav --> </div> </div> </div> </div> </div> </div> </section> <?php endif; ?>
So you dont get two menus showing up you also have to remove the following code from the home.php which can be found in themes/kleo/buddypress/members/single
COPY CODE<div id="item-nav"> <div class="item-list-tabs no-ajax" id="object-nav" role="navigation"> <ul class="responsive-tabs"> <?php bp_get_displayed_user_nav(); ?> <?php do_action('bp_member_options_nav'); ?> </ul> </div> </div> <!-- #item-nav -->
I also noticed that the menu still shows up in the media tab to get I used css display:none on the div although its probably better and more efficient to find it and remove it from the file.
Hope that helps.
parousiaParticipantFigured it out my solution if anyone is interested was to put the buddypress .php file and edited the following code:
COPY CODE<?php if( sq_option( 'bp_full_profile', 0 ) == 1 && bp_is_user() ): ?> <section class="alternate-color bp-full-width-profile"> <div id="item-header" role="complementary"> <?php bp_get_template_part('members/single/member-header') ?> </div> <!-- #item-header --> <div id="main-container" class="container"> <div class="row"> <div id="buddy-menu-top" class="main-color"> <div id="buddypress"> <div class="row"> <div class="col-sm-12"> <div id="item-nav"> <div class="item-list-tabs no-ajax" id="object-nav" role="navigation"> <ul class="responsive-tabs"> <?php bp_get_displayed_user_nav(); ?> <?php do_action('bp_member_options_nav'); ?> </ul> </div> </div> <!-- #item-nav --> </div> </div> </div> </div> </div> </div> </section> <?php endif; ?>
I made the html as similar to the original menu as possible in order to keep the css applied.
a very rough example can be seen here – http://www.cultexposure.com/members/lauriedugdale/
parousiaParticipantI’m sorry but I’m not sure I understand that my coding ability is very limited.
I might need it spelling out a bit more if possible.
Is it not possible to change a number somewhere to change the excerpt length? Presumably one has been set in a file somewhere?
Thanks again.
parousiaParticipantIs there an ETA?
Forgive me for sounding eager but some important functionality of my site rests on it.
-
AuthorPosts