Forum Replies Created
-
Author
-
October 8, 2017 at 18:52 in reply to: Group’s avatar instead of member’s avatar in activity stream #176042
ahodhellysar
ParticipantNot marked as solutionahodhellysar
Participant1 – so the live search is separated of the default wordpress search page..so it’s all depends in how fast the search results fire before the user press enter .. the problem is , there’s a lag , about 2 3 seconds before the results appear , they aren’t instantly appearing .. the user input the search query and nothing happens instantly , he wait 2 seconds till the results fire .. and through this 2 second waiting , there’s no any sign that’s something performing , no loading circle like this in your demo
watch the video :
what i need is to know how to speed the live search performance and to show a preloading icon like this in your demo
2 – i have solved the search member by only numeric value by editing this line in the theme function file .. line 621
COPY CODEif ( function_exists( 'bp_is_active' ) && is_numeric( $search_string ) && ( $context == "any" || in_array( "members", $context ) ) ) { $members = bp_core_get_users( array( 'search_terms' => $search_string, 'per_page' => $defaults['numberposts'], 'populate_extras' => false, ) ); }now the search get members only if the search string is a numeric value .
but still there’s a problem , that’s if the user will use the member search page , or will use a direct link .
what i need is , a similar code to this you provided before , to redirect or get the 404 not found page if the $search_string is not numeric in the member search page ..bp_get_members_directory_permalink() . "?s=" . $search_string3- about the default search page “domainname.come/s?=” i think i need a search plugin for it .. would you advice me any good plugin support buddypress ?
ahodhellysar
ParticipantThanks for your code, but it doesn’t help much unfortunately.
1 – i just need to prevent searching by names , and allow search “MEMBERS” only by the user_login .. as you see in screenshot below , it doesn’t find results because almost it search by the name not the user_login
https://snag.gy/NQ6HIG.jpgso i think it would be better to use another method , to just make it search by the user_login , not any other meta
2 – in your code , as i understand it , you redirect any non numeric values in “url/?s” to 404 page .. but i still want search by name in other context like groups and posts etc
3 – and what about the live search form results .. how to prevent it , because it still can search by name
https://snag.gy/at3nhL.jpg4 – now the live search form populate results before pressing enter .. then i press enter to go to the results page .. but what about mobiles and tabs .. doesn’t this form miss a submit button?
ahodhellysar
Participant1- i just want the user search member by user_login .. which it’s a unique random number for each user .. i don’t want them to search member by anything else , not the display name neither the nicename .. only user_login and maybe the email too
ahodhellysar
ParticipantHi radu ,
1- i’m already know this , but this is not what i need ,, i need to limit search members to only numeric values .. what i try to do is preventing users to find each others by names .. i know it gonna require custom coding and there’s no ready solution for it .. all what i need from you is giving me hints about this code , and where to place it , which files i should work on.3- i don’t want to hide them , i want to disable it .. hide the filters and show all friends and joined groups activities
September 18, 2017 at 10:14 in reply to: Show chosen menu items-icons in mobile header icons #173993ahodhellysar
Participant1 AND 2 SOLVED .. i need help in three only now
September 16, 2017 at 08:37 in reply to: Show chosen menu items-icons in mobile header icons #173884ahodhellysar
Participantdone , i updated and now the live message icon appear .. but the side bar icon still doesn’t appear in the header .. i just need the way to add any item i want to this header .. i’m willing to add the login and register menu items to it too .. hiding them inside the toggled menu isn’t a user friendly i think .. if the user login for first time to the website from mobile, he’s not supposed to search for where to register .. so i need to :
1- add the sidebar icon beside the live and message notifications icons, and the default mobile toggle icon
2- add the login and the register icons “menu items” beside them too
3- add a second level to sub-menuthanks in advance radu
September 12, 2017 at 20:01 in reply to: Show chosen menu items-icons in mobile header icons #173451ahodhellysar
Participanthi radu , thanks for your reply
i’m already did the same as your screenshots, but only the live notification icon appear .
– i don’t use the side menu as a default mobile menu , i’m using it as separated menu beside the default mobile menunow i have four items i want to show them in the header space in mobile menu
1- live notification
2- live message
3- the side menu icon
4- the default mobile menu togglethanks in advance
September 11, 2017 at 19:40 in reply to: Show chosen menu items-icons in mobile header icons #173293ahodhellysar
Participanthi laura, is the answer above for me?! .. i’m not sure if you did read my question , i’m already over explained what i need to avoid any misunderstand.
check the attached screenshots please.
a – the first screenshot is for desktop header , as you see there are three icons “1-live notification icon , 2- live message icon , 3- a side menu icon”b – the second screenshot is for the MOBILE HEADER , “there’s only the live notification icon and the menu toggle”
c- what i want is to show “the live message icon and the side menu icon” BESIDE “the live notification icon and the menu toggle icon”
I hope it’s clear enough now.
July 1, 2017 at 23:00 in reply to: show/hide Nav-tabs and sub-nav tabs based on the user role #165853ahodhellysar
ParticipantNot marked as solutionahodhellysar
Participantbut this file isn’t in the theme folder , the file located in the plugins folder ,, this is the path :
\wp-content\plugins\k-elements\shortcodes\templatesahodhellysar
Participantwell , i did it by changing the the color in the kleo_particles.php file .. now , how to safe this of being erased by the updates? 🙂
-
AuthorPosts