Forum Replies Created
Thank you for replying… Actually I’m not using any BP search plugin, it’s included in the theme I’m using. I’m using “Custom Community” theme.
Okay, I’ll search for how to use filters and try it.
@hnla Thanks for your reply and help!
would you please give me an example of how to use the filters? and where to find it? for example, in “bp_core_validate_user_signup” function there are:
$result = apply_filters( ‘wpmu_validate_user_signup’, $result );
return apply_filters( ‘bp_core_validate_user_signup’, $result );
Are those the filters you meant? How can I use it?
Unfortunately I cannot prevent underscores in usernames since the naming policy in my institution for the users is: name_number and it should be used the same in the social network.
Got the solution from this link:
Thanks for replying… Actually I don’t want to convert the whole interface to RTL, I just want the activity updates and comments to be RTL when writing Arabic. Any solution?
In my case, the problem was in naming the wordpress directory. The name should not contain capital letters. I renamed it and made it all small letters & the problem was solved..
Thanks for replying… Actually I need to add restrictions on the entered email so this plugin is not what I need.
I already did modifications on the function but in the core file and this is not right, core files should not be modified. There should be a way to do this (overwrite a core function).
How could this be done?
Thanks in advance
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…
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!
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?
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:
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.
Did you find a way to do this? I need something resembles this.
Thanks @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.
Hi @wiste, what do you mean in “renaming and moving the activity tab”?
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 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 @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?
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