Forum Replies Created
-
The strange thing is that all activity dates appears as “exact date time” after loading for half a second then it all turns to “…ago” format! Mmmm…
Hi @megainfo,
Thanks a lot for the code, it works great for the activity comments while it doesn’t for the activity updates although it makes sense! I’m checking where the problem could be.
Thanks a lot for your help!
HopeHi @megainfo,
Thanks for your quick reply & for the code! Actually I want to keep today’s format as “..ago” and change every date before today to the exact data+time.
Your code changes the whole activity time to the exact data+time. What can be done to keep the time_since for today’s activities only?
Thanks
HopeHi @b1gft,
I’m also using Custom Community theme. What I wanted is to hide the long list of comments on the activity stream and only show the last comment with a link “show all comments” above it.
I could do this by doing the following:in the “_inc” folder of “Custom Community” theme, open global.js file and change number ‘5’ in the following 2 lines to the number you want (I put 1 to only show the last comment):
1- if ( jq(this).children(‘ul’).children(‘li’).length < 5 )
2- if ( i < comment_lis.length – 5 )In the previous lines, the latest 5 comments will be shown and a link “show all comments” will appear above comments. Of course this will happen when number of comments is above 5 (change the number to what you want).
As I saw this (alone) didn’t work with the last custom community update, what I had to do to make it work (beside modifying the number above) is commenting the following style commands:
.activity-comments .hidden{
display:none;
visibility: inherit;
}
in the file style.php of the theme folder (Core –> theme-genertaor –> style.php).In this way everything will be ok. Hope this might help you in any way.
Regards
HopeThanks @wiste for your reply! Nice website but as for the issue, what you did doesn’t solve it &or even hide it. Maybe it’s fine to do this when you have a small number of users but for a large community, this doesn’t help a lot specially that the activity stream is the most used part in the whole network.. Thank you again.
Yes @globetrotter12, you’re right. It has to be in the plugin options, it’s a very important issue.
If anybody found a solution, plz share.
Thanks
HopeHi @wiste, what do you mean in “renaming and moving the activity tab”?
Thanks
HopeI found it, it’s “xprofile_updated_profile”… thanks.
A question plz:
If I want to allow editing the “user Role” field and do the same thing. i.e. saving the actual role upon changing the “User Role” field, what function I have to modify? Do you have any idea?Thanks
HopeThanks a lot @noizeburger for this snippet, just what I want & it works just fine with me. There’s only one note: The cases have to be in small letters since you’re converting to small letters. I mean for “Band Role” & “Fan Role”.
I also don’t want for members to be able to change their roles, I did it with a simple java script to show a corresponding message when the member tries to change his role since I don’t want to hide the whole field.
Thanks again!
HopeThanks @wiste for your quick reply! Actually I’m using a child theme of “Custom Community” theme for the reason you mentioned (to not lose my changes on each update)! but still don’t know why hiding comments is not working now!
Any idea? Did anybody had this issue before?
Thanks
HopeHi guys,
Any body found a solution?
Thanks
Dears,
I have the same problem, registration is not working! No reaction at all after pressing the submit button (just the password fields become empty).
I did a fresh installation with only Buddypress installed & still the same problem! Anybody knows why?Thanks in advance
HopeYes @ubernaut, lets say most of the users will be using the system at the same time. What are the recommended requirements regarding the HD size + Memory for example.
What is the recommended OS from your and others’ experience?
Thanks a lot
Thank you guys for your quick responses…
Actually it’s not a Ning site, It’s a student information system & I want to export its users (who are students) in a format that could be imported into buddypress; so I can create them accounts with the specified fields that i already defined in Buddypress (program, term , year, etc..)I installed BuddyExport on my test site, there’s Buddypress Import option but not accomplished yet as appears (nothing appears when clicking on it) or I missed something?
This is the “load more” code in global.js that deals with the comments’ hiding:
`/* Hide excess comments */
if ( jq(‘div.activity-comments’).length )
bp_dtheme_hide_comments();`The required code is already in the called function bp_dtheme_hide_comments(); It should work :S Is there something I’m not seeing 😐
Hi @yadigit
Thanks a lot for your quick reply.. Actually I’m aware of the code in global.js file & I changed the number of shown comments to 2 instead of the default (5) but this is not my problem.
I’ll describe the problem in more details:
After changing the number to 2 in global.js file, comments appear on the activity stream just as I want (2 shown comments & the rest are hidden) but when I click on “Load More” buttom, the comments of the newly loaded activity updates are shown totally (no hidden comments).So what could the problem be? 🙁
Anybody’s help will be much appreciated.. Thanks
Hi @yadigit,
Thanks for the solution! I have a question maybe you can help me with:
When “loading more” activity stream, hiding comments doesn’t work i.e. all comments for activity updates appear which is not lovely!
Why is that happening? How to fix this?Thank a lot
Hope@verteus This functionality is already included in buddypress: in _inc -> global.js change the number in the following 2 lines:
1- if ( jq(this).children(‘ul’).children(‘li’).length < 5 )
2- if ( i < comment_lis.length – 5 )In this way the latest 5 comments will be shown and a link “show all comments” will appear above comments. Of course this will happen when number of comments is above 5 (change the number to what you want).
Sorry, you’re right…
I just added a check in the activity -> entry.php to assure that it’s not a post page:
(if !bp_is_blog_page()).Maybe it’s not the perfect solution but it works for me for now..
Thanks
HopeI found a solution thanks 🙂
Thanks @transmission… I decided to use this plugin, it’s very useful & now things are more logical… but i had one issue, Maybe you can help me with it.
I installed “RS Buddypress Activity Refresh” plugin to have live activity stream updates but when using it, all the activity updates appears on the commenting stream of the post!
How can I prevent this from happening? I only want “new blog comments” to appear in the post related streamThanks
HopeInteresting idea! I’ll see how I can benefit from this plugin.
Thank you very much
The problem in the plugin is in the row:
$activities->pag_num = $activities->pag_num -1;
When it takes 0 value.What does pag_num refer to in activity?