Search Results for 'theme'
-
AuthorSearch Results
-
November 11, 2015 at 11:00 pm #246596
In reply to: No Profile Tabs
r-a-y
KeymasterIs that tagdiv? There is two different Newsmag themes. I am using tagdiv.
NewsMag by TagDiv is a premium theme, which we do not have access to. Please list details when you are posting a support thread next time.
The version I tested of “NewsMag” is available from the wordpress.org theme repository:
November 11, 2015 at 10:59 pm #246595In reply to: 2.4 Cover Photo’s does not work with Graphene Theme
Henry Wright
ModeratorI’ve reported it to the theme developer
Good idea. Hopefully they’ll be able to provide a fix!
November 11, 2015 at 10:53 pm #246588In reply to: No Profile Tabs
Michael Bryner
ParticipantSounds to me that you don’t care if the theme works for it or not. Accounting for pretty much all themes is part of the reason to have the plugin in first place. If I can’t use it with all features then I will just not use it. Pointless to bother with something that is broken.
November 11, 2015 at 10:51 pm #246587In reply to: No Profile Tabs
Michael Bryner
ParticipantIs that tagdiv? There is two different Newsmag themes. I am using tagdiv.
November 11, 2015 at 10:50 pm #246586In reply to: No Profile Tabs
Michael Bryner
ParticipantIt only shows avatar and cover photo space with no tabs and activity on profile page only. Groups is just about the same. No original tabs just home, forum, members. send invites, manage tabs. As long as this plugin has been out since 2008 its still does not work with all themes? I am so tempted to just give up on it. It looks outdated still and the only thing you add is cover photos and it does not even work right.
The rest of the other plugins that compare and look a heck of a lot better but to get the features of this plugin you have to pay their outrageous prices for extensions. I might just be better off with no community software for social network and just use bbPress only.
November 11, 2015 at 10:47 pm #246585In reply to: No Profile Tabs
r-a-y
KeymasterI just installed NewsMag and the profile tabs and cover image feature look fine on an unmodified install:
Again, we cannot account for every single variant of every available theme out there. If you have some CSS knowledge, you’ll have to adjust it yourself.
November 11, 2015 at 10:43 pm #246584In reply to: No Profile Tabs
Michael Bryner
ParticipantNewsmag one of the most popular themes and it never did that before v2.4. Of course v2.3.5 did not have cover photos either. Even lost tabs on Groups too. I am keeping it disabled.
November 11, 2015 at 10:42 pm #246583In reply to: No Profile Tabs
r-a-y
KeymasterWhat theme are you using? We try to be compatible with every theme, but it is hard to account for every single theme that is available out there.
Does the profile tabs and cover image feature show up when you switch to a WordPress theme like Twenty Sixteen?
November 11, 2015 at 1:37 pm #246563In reply to: Adding profile fields to members directory
danbp
ParticipantHi @antipole,
from non-epert to non-expert, i’ll try to explain what i understood from your previous request…
You want to show a profile filed value on the member directory and this value should be searcheable in the same way as on a profile. Right ?
On members directory, we need a field name, a field value, a user ID and a search link.
This line of code will fetch the correct field, associated to the user ID:
$value = xprofile_get_field_data('Ovni model', bp_get_member_user_id() ) )This line will build the url for that value
$search_url = add_query_arg( array( 's' => urlencode( $value ) ), bp_get_members_directory_permalink() );And this line will build the output. I use a div with a class name. I recommand you keep it as is and add your custom style from within your child-theme style.css. Inline style is not necessary here.
$clickable = '<div class="click_dir"><a href="' . esc_url( $search_url ) . '" rel="nofollow">' . $value . '</a></div>';And this generate the output:
echo $clickable;And finally, we add our custom filter to the existing by using add_fliter( $filter_name, $my_filter):
add_filter ( 'bp_directory_members_item', 'make_directory_profile_field_searchable' );That’s it.
My snippet let you add such a clickable field. The field name is “ovni model”.
The code is first calling that field, and before the final output on members directory, we add a clickable search url. This is a strictly BP way to add an url to a (field)value. This snippet doesn’t need another function to work.The field, from a profile perspective, will be Name Ovni model: value flying saucer. The link structure will be
your-site/members/username/?s=flying_saucer.The snippet use the same structure on members directory and you’ll get the same result.
Guess you don’t need the additionnal functionadd_info_to_members_loop.Try first and struggle after, it’s better for your karma ! 😉
November 10, 2015 at 12:25 am #246521In reply to: multiple duplicate member-to-member messages
LeeBinder
ParticipantThank you, Shane. We can not switch the theme in the life site w/o a lot of reformatting.. Could try in the backup site, just for testing to figure out if the culprit might indeed be the theme..
A different approach would make us happier, though .. hmm..
November 9, 2015 at 8:07 pm #246517In reply to: Disqus Integration
shanebp
ModeratorIs there a better looking bp comments plugin with some better styling?
I’m not aware of any. You could adjust or add css to change the styling.
…the bp activity stream will not pick up these comments.
You’ll need to use bp_actvity_add() to do that.
Your theme may have a hook you can use – ask them.November 9, 2015 at 7:46 pm #246516In reply to: Disqus Integration
jrunfitpro
ParticipantThank you @shanebp . Is there a better looking bp comments plugin with some better styling? Also, my theme Optimize Press 2 has custom page layouts for lessons. The only problem, the bp activity stream will not pick up these comments.
Any thoughts on a solution there?
November 9, 2015 at 1:32 pm #246507In reply to: Adding whats-new-form to the mentions template!
danbp
Participantthis need a template overload.
Make first a child-theme.
Copy notifications-loop.php from bp-templates/bp-legacy/buddypress/members/single/notifications/ to
/child-theme/buddypress/members/single/notifications/notifications-loop.phpAt the begin of the file (line 1) copy/paste
<?php bp_get_template_part( 'activity/post-form' ); ?>. Don’t remove php tags.Save. You’re done.
November 9, 2015 at 8:52 am #246500In reply to: [Resolved] Text Boxes Creating Unwanted Random Links
danbp
ParticipantHi @ma3ry,
unable to visit the indicated page due to redirection… BP’s xProfile text box contains are autolinked by default for the 5 first words.
This is handy when you use a field called city for example. The city name is autolinked and let each user click on it to find other who may entered the same name.Of course, an about me box with a long description, which several autolinked words has less interrest. Fortunately, you can deactivate xprofile autolinking.
Two options for this: all or selected.Here 3 snippets. The first can be used if you want to completely remove autolink from all field values.
The second is a new filter to let you choose the field(s) you want to deactivate. This need two snippet. The first to rewrite a filter and the second to remove / replace the existing BP filter.Add the snippet to bp-custom.php.
// remove any autolink from profile function remove_xprofile_links() { remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 ); } add_action( 'bp_init', 'remove_xprofile_links' ); // custom filter to selectively remove autolink 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 (separated by comma) of the fields you want to hide the link. $excluded_field_ids = array(2); // 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 the old filter. remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 ); // Add your custom filter. add_filter( 'bp_get_the_profile_field_value', 'my_xprofile_filter_link_profile_data', 9, 2); } add_action('bp_setup_globals', 'remove_xprofile_links');November 8, 2015 at 11:43 am #246487In reply to: Adding profile fields to members directory
Henry Wright
ModeratorThere’s 2 ways of doing this.
1. You could modify the members-loop template (see the BuddyPress Template Hierarchy for details on how that’s done). See here. You would just add
bp_member_profile_data( 'field=the field name here' );to the template.2. Add this to your theme’s functions.php file:
function add_info_to_members_loop() { echo bp_get_member_profile_data( 'field=the field name here' ); } add_action( 'bp_directory_members_item', 'add_info_to_members_loop' );November 8, 2015 at 3:47 am #246481jtorral
ParticipantSo I partially fixed it but I think I need buddypress input for the following.
Here is what I did
I created a custom template from a copy of the page.php in the themes directory. Inside of that template was a call to comments_template(); which I removed from the custom template.
I then changed the “Members” page to use the new template with a name of “No Comments”
Now when I load http://jorgetorralba.com/members/ I get the desired affect without the comments and ping backs.
However, if I go one level deeper and click on a user name such as
http://jorgetorralba.com/members/cjtorralba/
The comments reappear. Same on Activity page even after changing activity to use the new custom templates.
Any idea ???
November 7, 2015 at 7:26 pm #246478r-a-y
KeymasterAs shanebp suggests, the problem has something to do with your theme.
Your theme appears to be a premium theme, so we cannot debug this.
Also, try switching to another theme temporarily to see if the problem is specific to just that theme.
November 7, 2015 at 6:28 pm #246476shanebp
ModeratorSomething in your theme is adding a call to the comments template.
Look in the code for something like:comments_template( '', true );November 7, 2015 at 5:54 pm #246472In reply to: Please Help Warning: strstr(): Empty needle in /home
shanebp
ModeratorThe issue is being caused by something in your theme or some other plugin.
Do you have debug turned on in wp-config.php ?
define('WP_DEBUG', true);If so, change it to:
define('WP_DEBUG', false);November 6, 2015 at 11:29 pm #246460In reply to: Move Activity Stream
erich199
ParticipantOk, I had to hunt for the code in the default buddypress themes but I found it.
Two things I need to do now:
1.) Make it so the post form will work on another user’s profile
2.) Add pagination so the user stream on the profile page doesn’t make someone scroll down a mile to see post.
November 6, 2015 at 8:56 pm #246451In reply to: How To Add “New Topic” button
erich199
ParticipantIt should be located in
/wp-content/plugins/bbpress/templates/default/bbpress/After you copy this file, create a new folder inside of your current theme folder and call it “bbpress”
Place that forum-loop.php file inside of that folder.
Make your changes to that file.
November 6, 2015 at 2:44 pm #246432In reply to: Breaking Media and a few other things: error message
ikanaspencer
ParticipantTwenty Fifteen Theme and only BuddyPress activated and I still get that message.
… Disable BuddyPress the error is gone. Custom Taxonomy and Post types were made via the functions.php, as of my testing with the Twenty Fifteen these customizations were not enabled at all. Now I think I did forget to mention this is a multisite setup with only 1 site currently.
Can you give me some clues of what hooks might have been used? I can do some investigating.
November 6, 2015 at 2:00 am #246416In reply to: Custom Hook Help
Henry Wright
ModeratorCan someone confirm if this code will ever be overwritten by an update to WordPress or BuddyPress?
Updating WordPress or BuddyPress won’t overwrite anything you have added to your theme, but updating your theme will do. The way around this is to create a Child Theme.
November 6, 2015 at 1:00 am #246414In reply to: Custom Hook Help
happymunkee
ParticipantThanks for your responses. Plugging in the same code into functions.php inside the theme itself seems to resolve the problem. I put the snippet in wp-content/themes/klein/functions.php. Can someone confirm if this code will ever be overwritten by an update to WordPress or BuddyPress? I know updating BP will overwrite the register.php page.
November 5, 2015 at 11:33 pm #246410In reply to: multiple duplicate member-to-member messages
shanebp
ModeratorIt may be a theme issue.
To confirm – try switching to a standard WP theme like 2015 and then test message sending. -
AuthorSearch Results