Replies
- Peter Fae on March 23, 2018 at 4:33 am in reply to: how to set the Activity feed to ascending? #14045
I figured. Yet the help that You have so graciously provided with your time is INTEGRAL to showcasing the concept to Readers & Authors.
What would the code be to showcase the PROFILE in ascending order yet the ACTIVITY feed in descending order?
This way the concept of ‘coming to an ‘Author’s’ profile leads to their Story, which is mixed with the revolution slider idea that I spoke about in the other thread, yet the regular activity feed is the same.
thank you so much. This is uber-uber-UBER helpful.
- Peter Fae on March 23, 2018 at 4:26 am in reply to: how to add shortcode to top of activity feed #14043
You are so awesome!!! I am so very, very thankful. Honestly I did not realize how much customization I could do with buddypress. Mmm … can you help with my other thread about the activity feed and profile with oldest-first newest-last?
- Peter Fae on March 23, 2018 at 4:18 am in reply to: how to add shortcode to top of activity feed #14040
that worked! Thank you so much.
I have two questions regarding this.
ONE – this created the revolution slider in the container that the activity feed is in, which is beautiful. However, I’d like to see the revolution slider *below the masthead* of the theme, which is ABOVE the container/sidebar area.
When I asked this question to the developers at X-Theme, they provided this info –>
Hey @Peter_Fae,
Please disregard the previous advice. To output custom content in above the masthead, you can hook to x_after_site_begin action. The next thing is to detect if the page is an activity page and display your slider in the area using the do_shortcode function and your slider’s shortcode. Regretfully, the bp_is_activity conditional of BuddyPress does not seam to work so you will need to hire a third party developer who is an expert in BuddyPress or contact BuddyPress support to know what is the correct conditional. The code should look like this.
‘add_action(‘x_after_site_begin’, ‘slider_above_activity’);
function slider_above_activity() {
if ( bp_is_activity() ) {
echo do_shortcode(‘[rev_slider alias=”gym-classes”]’);
}
}’what is the conditional to use here?
TWO –
In the concept I’m planning, I’d like to have a *specific* revolution slider for particular Profiles in Buddypress, while having a large revolution slider above the feed/sidebar on the main activity feed.
As the above question tackles how do I showcase the revolution slider on the activity page below the masthead yet above hte container/sidebar, I would also like to know, how do I place a revolution slider like we did in the earlier bit of code which puts it above the activity feed *within* the container, yet with SPECIFIC USER PRIOFILES?
So, what I’m looking for is a way to set the rev slider for a Profile the way the code You sent me worked, as well as ONE, above
thank you so much!
- This reply was modified 6 years, 8 months ago by Peter Fae.
- Peter Fae on March 19, 2018 at 6:11 pm in reply to: [Resolved] how do I show full posts on the profile feed without 'read more'? #13967
Okay. So I consulted the people at X-Theme as well as BuddyDev and this was our exchange regarding –
PETER_FAE
14h
a bit confused at this. I only want the revolution slider BELOW the masthead on the ‘Activity-Streams’ page of buddypress, not all over the place. I’ve already got the post carousel for that.as I copy over the wp-header.php file how to specify that it works with the Activity page?
Along those lines, can I change the slider for specific profile pages in buddypress as well?
Secure Note
CHRISTIAN_Y
Staff
5h
Hey @Peter_Fae,Please disregard the previous advice. To output custom content in above the masthead, you can hook to x_after_site_begin action. The next thing is to detect if the page is an activity page and display your slider in the area using the do_shortcode function and your slider’s shortcode. Regretfully, the bp_is_activity conditional of BuddyPress does not seam to work so you will need to hire a third party developer who is an expert in BuddyPress or contact BuddyPress support to know what is the correct conditional. The code should look like this.
‘add_action(‘x_after_site_begin’, ‘slider_above_activity’);
function slider_above_activity() {
if ( bp_is_activity() ) {
echo do_shortcode(‘[rev_slider alias=”gym-classes”]’);
}
}’my *intention* is to understand how to put a slider *below* the masthead, like in this example –> https://www.intothemythica.com …
The code You gave me is awesome. It puts a slider right at the top of the activity feed within the container, next to the sidebar, as seen here –> https://intothemythica.com/activity-streams/
what I would like are TWO things. One, I’d like to know how to put the slider *above* the container and sidebar, like in this example –> https://intothemythica.com/akasha/ (rather than within the container and next to the sidebar), yet below the masthead.
Two, I’d like to know how to put a slider on the Profile page like we did on the Activity page, *within* the container and next to the sidebar.
It’s like this … I want the Activity page to have a BIG slider that sits above the sidebar/content container, yet below the masthead. And I want to put a slider *in* the container and *next* to the sidebar on the PROFILE pages, so. big for Activity feed above, smaller and in container for Profile. That way I can put an Author-specific slider on the Profile page for that Authors, and a general, big slider above the Activity feed.
I am learning very, very much from our dialogues and the excellent support that You are providing.
does that make sense?
- Peter Fae on March 19, 2018 at 3:30 am in reply to: [Resolved] how do I show full posts on the profile feed without 'read more'? #13949
mmm … first off, You guys are AMAZING. We’re definitely going further with buddydev and looking into more plugins and all that as a result of this excellent service. It is REALLY appreciated.
You know, that code caused a whiteout on my screen. The other one, once we fixed the issue with the bp-custom.php file syntax, is working. The revolution slider is appearing at the top of the activity feed, which his awesome.
What I’m wondering, is how to make it fit on the *TOP* of the screen, just below the masthead, yet *above* the sidebar and the content container. Like, above where it is now
- Peter Fae on March 18, 2018 at 10:25 pm in reply to: how to add shortcode to top of activity feed #13940
mmm…. this is the second time that I’ve tried to add something to a bp-custom.php file that I’d created in the plugins directory. yet I get a line of code at the top of my screen that layers over everything else.
Did I not set u p the bp-custom.php file in the right place? Is my syntax out?
This is what it says in my bp-custom.php file –>
‘<?php
// hacks and mods will go here
?>function buddydev_add_slider() {
echo do_shortcode( ‘[your-short-code]’ ); // Replace shortcode with your one
}
add_action( ‘bp_before_directory_activity’, ‘buddydev_add_slider’ );’… in order to use another BP code, I had to put it into the functions.php file of my child theme. When I tried to put the code into the bp-custom.php file in the /plugins directory, I got the same effect, code on top of the site.
????
(is that better? with the post code?)
- Peter Fae on March 18, 2018 at 10:09 pm in reply to: how to add shortcode to top of activity feed #13937
mmm…. this is the second time that I’ve tried to add something to a bp-custom.php file that I’d created in the plugins directory. yet I get a line of code at the top of my screen that layers over everything else.
Did I not set u p the bp-custom.php file in the right place? Is my syntax out?
This is what it says in my bp-custom.php file –>
<?php
// hacks and mods will go here
?>function buddydev_add_slider() {
echo do_shortcode( ‘[your-short-code]’ ); // Replace shortcode with your one
}
add_action( ‘bp_before_directory_activity’, ‘buddydev_add_slider’ );… in order to use another BP code, I had to put it into the functions.php file of my child theme. When I tried to put the code into the bp-custom.php file in the /plugins directory, I got the same effect, code on top of the site.
????
So strange. IT’s not working for me. I try to upload an image and I doesn’t happen. There is definitely something weird going on. I logged in on supporthero to test it, and the pictures aren’t showing up on either Safari or Chrome.
Ah. Interesting, I disabled rtmedia yet I don’t feel t hat’s the issue.
It seems that when I upload from my profile feed, the image loads. Yet when I upload from the activity feed, it. does not. I tested this with supporthero.* and* with my normal account.
Strange.
As this is resolved my question would be, how to make the display of the media files much LARGER, more visually engaging, and a also, at the TOP of the posts before the writing?
- Peter Fae on March 17, 2018 at 8:25 pm in reply to: [Resolved] how do I show full posts on the profile feed without 'read more'? #13916
Ah. I see. I needed to put that code into the function.php of my child theme. I’ve figured it out. Thank you so much Brajesh. The quick support truly moves me in the direction of working more deeply with Buddydev, buying plugins and the support. You are most kind.
Question. How can we show the ‘read more’ on the Activity feed, yet not on the Profile feed?
- Peter Fae on March 17, 2018 at 6:12 pm in reply to: [Resolved] how do I show full posts on the profile feed without 'read more'? #13914
Thank You for responding Brajesh. Unfortunately,t he code did not work.
Would You please use the supporthero login that I gave You and let me know what I have done incorrectly? I placed it into the Custom CSS portion of my Customizer.
When that did not work, I attempted to put the code in a bp-custom.php file, which I had placed in the ‘plugins’ folder of my SFTP, yet this produces a showing of the code at the top of my dashboard and front-end, which is obviously incorrect.
When I place the code in the Customizer, I get no additional line, yet the ‘read more’ on both the activity feed and the profile feeds remains.
As minor of an issue as this is, it actually plays out strongly for my site. Getting this dialed is KEY to our presentation as we want a smooth flow of entries for Readers to peruse the content of the Authors. As part of the concept, we are using an SEO plugin which auto-hyperlinks certain words. When the Ajax of Buddypress ‘unfolds’ the entry with the ‘read more’ it erases those links in the reformat.
Regardless, the ideal is a reading experience for users in which they may smoothly witness the unfoldment of the Story told by the Authors on their profiles, so I wish to remove the ‘read more’.
Thank you so much for your support. In this as well as the other thread on mediapress.