-
Author
-
September 5, 2016 at 00:29 #134837excellinsParticipant
hello, i am using the activity stream shortcode on a widget… but when i use the shortcode on the main activity page it displays the activity of all users which is good for me, but when i go to a user profile it displays the activity of that user only. how do i make the shortcode to display all activities of all users even when i visit their profile such that when i visit a user profile it doesn’t just show me the activity of the user but of all users. this is the shortcode i am using – [kleo_bp_activity_stream number="6" post_form="no" show_button="yes" button_label="View All Activity" button_link="/activity"].
Attachments:
You must be logged in to view attached files.September 5, 2016 at 10:19 #134871LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! ?Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
September 5, 2016 at 20:00 #135025RaduModeratorHi,
Please with this plugin to achieve what you need : https://wordpress.org/plugins/buddypress-shortcodes/ and let me know
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 5, 2016 at 20:26 #135038excellinsParticipantHey Radu Thnaks for picking this up… i tried the plugin it worked but same as before. it displays the activity of the present page. if i am in home pge “activity home page” it displays activity stream of the home page if i am in a user profile page it displays the activity stream of the user only. is there a way to make it display the activity of all users by default? so that even if i am in a user profile page it displays activity stream of all users in the widget? if no then thanks Radu
September 6, 2016 at 18:09 #135135RaduModeratorHi,
Even with this plugin you encounter the same ? https://wordpress.org/plugins/buddypress-sitewide-activity-widget/ it should not it generates sitewide activity loop
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solutionSeptember 6, 2016 at 22:11 #135178excellinsParticipantHey Radu thanks!! this widget works. you are the boss! please permit me to ask another question… how can i make a widget sticky? i see when i scroll through this current page the “search knowledge base ” widget scrolls down too can i make a widget sticky like this too? example my members widget so as the site is scrolled down the widget is sticky
Attachments:
You must be logged in to view attached files.September 7, 2016 at 17:17 #135273RaduModeratorHi,
You should this kind of code in wp-admin -> theme options -> general settings -> javascript code
COPY CODE(function($){ $('#text-16').affix({ offset: { top: 600, bottom: 0 } }); })( jQuery ); </script>
and instead of text-16 you should add the div id of the element that you want to float.
In the below screenshot you will see how you can find the elemnts id using google chrome inspector
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solutionSeptember 7, 2016 at 20:06 #135322excellinsParticipantHey Radu, thanks for quick response, but i tried the code and it didnt work in my own case it was “text-11” i wanted the badges and rank widget to be sticky… below is the code i used or did i get it wrongly? thanks
(function($){
$(‘#text-11’).affix({
offset: {
top: 600,
bottom: 0
}
});Attachments:
You must be logged in to view attached files.September 7, 2016 at 20:11 #135326excellinsParticipantSorry please this is the code i used but didnt work, ignore the first i didn’t copy it copletely
(function($){
$(‘#text-11’).affix({
offset: {
top: 600,
bottom: 0
}
});
})( jQuery );September 8, 2016 at 18:19 #135460RaduModeratorHi,
try with this code
COPY CODEjQuery( document ).ready(function() { (function(jQuery){ jQuery('#text-11').affix({ offset: { top: 600, bottom: 0, } }); }) ( jQuery ); });
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solutionSeptember 8, 2016 at 18:28 #135462excellinsParticipantHey Radu, thanks for response. i just tried with the code it still didnt work.did i get it correctly below?
jQuery( document ).ready(function() {
(function(jQuery){
jQuery(‘#text-11’).affix({
offset: {
top: 600,
bottom: 0,
}
});
})
( jQuery );
});September 8, 2016 at 19:25 #135476excellinsParticipantalso i get the following error in the footer when i put the code. got the same error when i added the first code
Attachments:
You must be logged in to view attached files.September 8, 2016 at 19:45 #135494RaduModeratorOK try with script tags
COPY CODE<script> jQuery( document ).ready(function() { (function(jQuery){ jQuery('#text-11').affix({ offset: { top: 600, bottom: 0, } }); }) ( jQuery ); }); </script>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solutionSeptember 8, 2016 at 19:54 #135497excellinsParticipantHey Radu, i tried it, this seems to work but when you scroll down to the last page it dissapears in the footer section and when you scroll up again it doesnt appear to scroll back up.. in image “2” after it goes down to footer when i scroll up again it isn’t visible anymore
Attachments:
You must be logged in to view attached files.September 8, 2016 at 19:55 #135501excellinsParticipantHey Radu, i tried it, this seems to work but when you scroll down to the last page it dissapears in the footer section and when you scroll up again it doesn’t appear to scroll back up.. in image “2” after it goes down to footer when i scroll up again it isn’t visible anymore again until i refresh the page. so it scolls down only but it doesn’t scroll up.
Attachments:
You must be logged in to view attached files.September 8, 2016 at 20:19 #135510excellinsParticipantHello, i used the code and changed the value from “600” to “950” that allowed for the widget to appear right after the last widget down which was ok. now i think if theres a way to make the “text-11” to stay in the middle rather than so much down. i noticed the “search knowledge base” widget here is not down but rather the middle. if it can stay like that, it wont be scrolled so much to dissapear in the footer. it only dissapears when the user scrolls down and “text 11” goes down to the footer section
Attachments:
You must be logged in to view attached files.September 8, 2016 at 20:33 #135516excellinsParticipantHere’s another image of what i mean
Attachments:
You must be logged in to view attached files.September 9, 2016 at 17:29 #135604RaduModeratorTry to decrease the TOP value from the JS code and also remove the 1,2,3,4,5,6,7 Also try to add this additional css to have a better control increase or decrease the top value you should play with those settings to achive what you need:
COPY CODE#text-11.affix { top: 100px !important; background: #fafafa; padding: 20px; width: 320px; }
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 9, 2016 at 20:20 #135644excellinsParticipantHey Radu you are a genius thanks. that worked. In my activity front page i have 3 columns, is there a way i can also make a div id tag in the other column to be sticky?
Also in my user profile page i have a text “12” can i also make the widget in the user profile to be sticky? In the following code if i want to include another widget area like “text-30” to be sticky can i add that to the text area like this: jQuery(‘#text-11′, #text-30’)? example in the code;
<script>
jQuery( document ).ready(function() {
(function(jQuery){
jQuery(‘#text-11′, #text-30’).affix({
offset: {
top: 600,
bottom: 0,
}
});
})
( jQuery );
});</script>
Thnaks Radu
September 12, 2016 at 17:02 #135811RaduModeratorHi again,
You can make any element sticky by matching that element ID.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 12, 2016 at 17:08 #135812excellinsParticipantok thanks Radu but please do i need to copy the exact code and paste again with a different element ID or i would include the element ID to the code you provided. For example now i want to include “text-12” so it becomes sticky as well do i copy the entire javascript code again but change “text-11” to “text-12” and paste under the code you gave to me or do i just include “text-12”. if so please how do i add it to the existing code you provided,Thanks Radu also i am very sorry for taking much of your time. can you help with example? please
September 12, 2016 at 19:25 #135847RaduModeratorHi,
Try to put both elements separate by comma like this
COPY CODE<script> jQuery( document ).ready(function() { (function(jQuery){ jQuery('#text-11,#text-12,text-13').affix({ offset: { top: 600, bottom: 0, } }); }) ( jQuery ); }); </script>
Or copy and paste again the snippet and specify another element id
COPY CODE<script> jQuery( document ).ready(function() { (function(jQuery){ jQuery('#mysuperdiv').affix({ offset: { top: 600, bottom: 0, } }); }) ( jQuery ); }); </script>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solutionSeptember 13, 2016 at 18:06 #135986excellinsParticipantThank you Radu, for your time, patience and impact. i really appreciate. you are the best. Thanks so much!!!
September 13, 2016 at 20:12 #136012RaduModeratorYou’re welcome
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 14, 2016 at 22:07 #136157excellinsParticipantHey Radu, so sorry i encountered a very little issue. the element i specified is sticky and floats on desktop (which is good) but it became sticky when viewing on mobile phones. is there a css i can use to disable it from bein sticky on mobile? so it can remain sticky on only computers? Thanks. the element i want to disable from being sticky on mobile is #rev-slider-widget-2
September 15, 2016 at 17:41 #136217RaduModeratorHi,
There is no quick solution to provide, that it’s something custom… you can read more about this : https://dzone.com/articles/checking-media-queries-jquery
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 16, 2016 at 14:40 #136321RaduModeratorNo problem
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 16, 2016 at 15:18 #136333excellinsParticipantHey Radu please one last question on this thread.
when a user registers on the site he receives a mail from “@gamehostel.com” please how can i change the wordpress name? i used the following code on my child theme functions.php file but it didnt work
function custom_wp_mail_from( $email ) {
$handle = ‘support’;
$find = ‘http://’;
$replace = ”;
$link = get_bloginfo( ‘url’ );
$domain = str_replace( $find, $replace, $link );
return $handle . ‘@’ . $domain ;
}
add_filter( ‘wp_mail_from’, ‘custom_wp_mail_from’ );September 16, 2016 at 15:25 #136340excellinsParticipantSorr i meant users receive mail from “wordpress@gamehostel.com” please how can i change the wordpress name? i used the following code on my child theme functions.php file but it didnt work
function custom_wp_mail_from( $email ) {
$handle = ‘support’;
$find = ‘http://’;
$replace = ”;
$link = get_bloginfo( ‘url’ );
$domain = str_replace( $find, $replace, $link );
return $handle . ‘@’ . $domain ;
}
add_filter( ‘wp_mail_from’, ‘custom_wp_mail_from’ );is there something i failed to add?
September 19, 2016 at 18:13 #136530RaduModeratorHi,
Try with this plugin ; https://wordpress.org/plugins/cb-change-mail-sender/
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 19, 2016 at 18:32 #136540RaduModeratorOk
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.