borisj
Forum Replies Created
-
Thanks for this code @donmik. I just had to adjust it a little bit to work for me (see filters at the end)
/* ------------------------------------------------------------------------- * * Removing specific field links automatically created in a BP member’s profile https://www.ads-software.com/support/topic/hide-profile-fields-only-for-certain-fields#post-5667106 /* ------------------------------------------------------------------------- */ /** * This is the custom filter to create links */ function my_xprofile_filter_link_profile_data( $field_value, $field_type = 'textbox' ) { // Access the field you are going to display value. global $field; // In this array you write the ids of the fields you want to hide the link. $excluded_field_ids = array(1,264,265,268); // If the id of this $field is in the array, we return the value only and not the link. if (in_array($field->id, $excluded_field_ids)) return $field_value; if ( 'datebox' == $field_type ) return $field_value; if ( !strpos( $field_value, ',' ) && ( count( explode( ' ', $field_value ) ) > 5 ) ) return $field_value; $values = explode( ',', $field_value ); if ( !empty( $values ) ) { foreach ( (array) $values as $value ) { $value = trim( $value ); // If the value is a URL, skip it and just make it clickable. if ( preg_match( '@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', $value ) ) { $new_values[] = make_clickable( $value ); // Is not clickable } else { // More than 5 spaces if ( count( explode( ' ', $value ) ) > 5 ) { $new_values[] = $value; // Less than 5 spaces } else { $search_url = add_query_arg( array( 's' => urlencode( $value ) ), bp_get_members_directory_permalink() ); $new_values[] = '<a href="' . $search_url . '" rel="nofollow">' . $value . '</a>'; } } } $values = implode( ', ', $new_values ); } return $values; } /** * We remove the buddypress filter and add our custom filter. */ function remove_xprofile_links() { remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 ); } add_action('bp_setup_globals', 'remove_xprofile_links'); // Add your custom filter. add_filter( 'bp_get_the_profile_field_value', 'my_xprofile_filter_link_profile_data', 9, 2);
Forum: Plugins
In reply to: [BuddyPress Global Search] paginationIs nobody else has this problem with the pagination?
Ok, here is my test site
Do a Global Search in the sidebar for “se” and then try to switch pages.
You’ll see, the pages switch but there is no scroll to the top of a page.
Pagination in groups and members directory is working (scrolls to top).
Forum: Plugins
In reply to: [BuddyPress Global Search] Conflict with the Invite AnyoneYou can also disable AutoSuggest in the plugins settings to make is work but there seems to be an other issue with the Invites Anyone plugin and this one.
Didn’t notice until recently, but Global Search is conflicting with Invite Anyone and not sending invites to site members. it loads them in the invite section, but the member never gets the invite. Turning off Global Search fixed the issue.
https://www.ads-software.com/support/topic/global-search-conflict?replies=1
Forum: Plugins
In reply to: [BuddyPress Group Tags] remove/delete old tagYou can delete them only in your database
Search for
gtags
and you will find them in your
…_bp_groups_groupmeta
table.
Sorry, I was blind…
To solve this issue, just put e.g.
[su_gmap address=”#_LOCATIONADDRESS, #_LOCATIONTOWN”]
into
Settings > Formatting > Events and/or Locations / Single event and/or location page format
instead of #_LOCATIONMAP
Forum: Plugins
In reply to: [BuddyPress Docs] Replacing 'BuddyPress Docs'-Title in Breadcrumbs TrailOk, fond it in the bp-docs.php. The code to change is on line 263
'name' => _x( 'BuddyPress Docs', 'post type general name', 'bp-docs' ),
Forum: Plugins
In reply to: [BP Group Hierarchy] Member Groups not displayingA quick and dirty fix for that…
The widget is still working, so just call the widget instead the text “No member groups were found” in the extension.php of the plugin
Replace
<?php _e('No member groups were found.','bp-group-hierarchy'); ?>
with
<?php the_widget( BP_Group_Navigator_Widget ); ?>
So the “No member…” text will not be shown anymore, even if there are no sub groups but to show your users that there are no subgroups add %d to the nav item lable in the settings of the plugin.
Any other suggestions for a better fix?
Forum: Plugins
In reply to: [BP Group Hierarchy] Update for BP 2.0For me it works fine with the current BP version and WP 4.1 exept that ‘Member Groups not displaying’
A quick and dirty fix for that…
https://www.ads-software.com/support/topic/member-groups-not-displaying?replies=3#post-6593838Forum: Plugins
In reply to: [BP Group Organizer] PHP Warning: Creating default object from empty value inYes, have the same issue since the latest version of BP.
It seems only to affect the re-arrangement of groups and the hierarchies, resp.
Forum: Themes and Templates
In reply to: [I Am One] Fixed navigation without sliderTo be correct…
To disable the blog slider completely I deleted|| is_home()
two times in the functions.php (line 80 and 104) and one time in the header.php (line 28)Forum: Themes and Templates
In reply to: [I Am One] Fixed navigation without sliderThanks for the info, @sktthemes!
I want the slider ONLY on the front page.
The option to hide the slider on inner pages is also available in the free version. I did that and also made it to remove the slider from the blog page by adjusting the code in the fungctions.php (delete
|| is_home()
on line 80).And now the sticky header does not work anymore for the blog and inner pages. So I guess it has something to do with the slider. The sticky header is only working with activated slider.
So if this is no bug I need at least a hint where to find the js and css for the sticky header to digg deeper.
Tanks & a nice weekend!
BorisForum: Plugins
In reply to: [Testimonial Basics] "Approve" not savingJust had the same problem.
I guess I managed to solve it by checking the last item in
Testimonial Basics Options > Input Forms: General Input Options
In German it is “Erfordern Lage Eingabe” (in english it might be “Requires long input”)
Forum: Plugins
In reply to: [BuddyPress Activity Plus] Blank Link titleSorry, it’s not online.
Try for example to add
https://blogs.hbr.org/2007/03/why-enterprise-20-wont-transfo/
The title of the link which will not show up is
“Why Enterprise 2.0 Won’t Transform Organizations”
because of the apostrophe in “won’t”. The sourcecode is
<div class="bpfb_link_preview_title"></div>
To confirm that the reason for the title not to show up is the apostrophe in the title I tried to add one of my posts with and without an apostrophe.
I guess the apostrophe breaks the code
[bpfb_link url=’https://blogs.hbr.org/2007/03/why-enterprise-20-wont-transfo/’ title=‘Why Enterprise 2.0 Won’t Transform Organizations – Tom Davenport – Harvard Business Review‘ image=’https://hbrblogs.files.wordpress.com/2007/01/80-tom-davenport.jpg?w=80′%5DRecently I posted about my personal bet on analytics. I wanted to start here on a positive note. This week, however, I am playing the role of curmudgeon, and arguing that one particular idea is not…[/bpfb_link]
Forum: Plugins
In reply to: [Scriblio] fatal error with facets widgetSorry, it works now whitout doing anything ??
Forum: Plugins
In reply to: [Scriblio] fatal error with facets widgetJust installed bCMS as recommended (https://plugins.trac.www.ads-software.com/changeset/892379/).
Now the scriblio widgets are loading and loading. They do not appear. I probably have to “…flush [my] rewrite rules”. What does this exactly mean. How can I do that. Changing which rewrite rules? Scriblio’s? bCMS’?