Search Results for 'wordpress'
-
AuthorSearch Results
-
August 24, 2014 at 10:26 pm #188379
In reply to: Increase search member performance
shanebp
ModeratorPrior to BP 1.7, last_activity was stored usermeta.
Now it is stored in the activity table, (although you may see it still in usermeta for legacy purposes).Moving it to the activity table resulted in much improved performance.
You’ll probably see similar results.also – sometimes 2 queries are faster than one massive one with multiple joins, ands, ors.
also 2 – Have you studied this?
https://wordpress.org/plugins/bp-profile-search/
It’s been around for several years and the query has become more efficient with each release.August 24, 2014 at 8:38 pm #188375Jencina
ParticipantResolved! I used this:
How to Build a Facebook-Style Members-Only WordPress-BuddyPress Site
August 24, 2014 at 8:04 pm #188370shanebp
Moderator>Okay, it worked!!!
You mean using the register_activation_hook ?
btw – you should still check to see if the field exists before you create it – to avoid duplications if they deactivate / reactivate the plugin.Or delete the field by using this hook:
https://codex.wordpress.org/Function_Reference/register_deactivation_hook>can you please tell me what if it’s in the functions.php file, do I need to use the bp_init then or something else?
Perhaps bp_loaded is more appropriate, you’ll have to try it and find out.
BP related functions are usually placed in bp-custom.php
August 24, 2014 at 2:19 pm #188361shanebp
ModeratorFor a plugin, instead of bp_init, use:
https://codex.wordpress.org/Function_Reference/register_activation_hooknote: I’m not sure BP is loaded before that hook is called.
Or you could use bp_init, but in your function, check for the existence of the xprofile field before you create it.
btw – you don’t need the global in that function.
August 24, 2014 at 7:57 am #188350danbp
ParticipantHi @jencina,
set the registration page as homepage. (dashboard > Setting > Front page view).
Make also a child theme and add a copy of the register.php file who is in /bp-templates/bp-legacy/buddypress/members/ and add it to your child, using the same path.
/your-theme/buddypress/members/register.php
On this copy you can add/remove and make any change you want for your new homepage.
Reference
https://codex.wordpress.org/Creating_a_Static_Front_PageAugust 24, 2014 at 7:40 am #188349In reply to: [Resolved] Make members list default to alphabetical
danbp
ParticipantHi @bnowthen,
this is one of the most common thing you can do with BuddyPress. 😉 .
To do that, you have to read the Codex, about members loop.First, you will create a child-theme of 2014.
Than you add a folder called buddypress to it.
In this folder, you add a sub folder called members.
You than make a copy of members-loop.php.
This file is inwp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/Now, you open the copied file and replace the content of line 16.
Replace this:
<?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>
with this:
<?php if ( bp_has_members( bp_ajax_querystring( 'members' ) . '&type=alphabetical' ) ) : ?>Save and enjoy.
References
https://codex.wordpress.org/Child_ThemesAugust 23, 2014 at 9:22 am #188317danbp
ParticipantHi @noise,
did you searched in existing plugins ?
https://wordpress.org/plugins/search.php?page=2&q=race+result+pluginMy 2 cents:
Ideally, the admin would enter in the results for each user for each race.
well, this let’s you to be so only plugin user. No need for a specific BP plugin in this case.From the plugin, you fetch the datas and insert them into a profile textbox called “result” Original isn’t it ? This work can more or less be automated. Depends of the plugin i guess.
On the members directory, you output the content of the result box under each member name/avatar.
August 22, 2014 at 9:31 pm #188288In reply to: Activation not possible
r-a-y
KeymasterBased on this thread, I’ve created a new ticket:
https://buddypress.trac.wordpress.org/ticket/5831August 22, 2014 at 6:26 pm #188282In reply to: [Resolved] No button for finishing registration
1a-spielwiese
ParticipantI did nothing since trying the script yesterday and I myself receive stil this ‘redirecting error’-message.
Would it be useful to give you the passwords for my WordPress-Installation, my FTP-Server and my MySQL-Database for checking them? – Of course, afterwards I would change password.
August 22, 2014 at 4:11 pm #188274In reply to: Registration page NOT working!
bulltalk.65
Participant@bp-help I added or wrote what the message holder asked me to add, “current version of wordpress” current version of buddypress” and link to site so that’s what I did, it didn’t ask for anything else and I didn’t know..
Anyhow, I figured it out this morning, the homepage was cached and the registration link had been changed since it was cached when we opened the site a month ago. I went in and removed the cached files from the server/database and now everything is working fine.
Thanks
August 22, 2014 at 4:05 pm #188273In reply to: bplinks avatar wp 3.9.2
shanebp
ModeratorYou’ll have a better chance of getting an answer if you use the support forum for that plugin:
https://wordpress.org/support/plugin/buddypress-linksAugust 22, 2014 at 12:16 pm #188243danbp
ParticipantHello @multimartin,
2 nd question:
in the private blog settings, general > reading > search engine visibility, check disallow box. This will hide any of the private blog activities to appear on site activity and user feeds, except for those who are members of this blog.If it is not enough, considerer this plugin
1 st question:
read hereAugust 21, 2014 at 4:48 pm #187718Topic: Activity feature
in forum How-to & Troubleshootingitisix
ParticipantHi,
I love the activity feature I get when I’m logged as admin. In my CP I just click the icon and get a list of posts, replies and who registers in neat order.
My users can’t get this, nor can they get decent info from the activity option from the drop down top menu… or can they?
Latests versions of WordPress, BBpress and Buddypress.
Thanks,
August 21, 2014 at 4:30 pm #187715In reply to: [Resolved] No button for finishing registration
1a-spielwiese
Participant1st
Yes, I have salt keys.
2nd
— I followed there: http://stackoverflow.com/a/18772055 the “using this script”-link to: http://interconnectit.com/products/search-and-replace-for-wordpress-databases/
— I downloaded the script from there; I extracted the zip-file. I renamed the folder at issue.
— I uploaded the mentioned folder.
— I tried to address within in my browser 1a-spielwiese.de/NAME-OF-MENTIONED-FOLDER.
— I get again only the “Umleitungsfehler”-message.
August 21, 2014 at 3:53 pm #187711In reply to: Password Protect Forum with Single Password
danbp
ParticipantOK !
maybe this can help you go further….August 21, 2014 at 3:16 pm #187709In reply to: Password Protect Forum with Single Password
hcthomas
ParticipantI can edit the htaccess file, but couldn’t figure out where to put a htpasswd file due to the WordPress rewrite rules. So, I can edit the file but was unable to edit it in such a way that it worked.
I’m using Bluehost, their basic plan. It’s a shared host / shared IP. I can access FTP.
I have already searched the forum on this topic, but not found anything specifically addressing this. Someone did cryptically answer a similar question, describing a solution as, “difficult” without elaborating why/how.
August 21, 2014 at 2:43 pm #187705In reply to: [Resolved] No button for finishing registration
danbp
Participanthave you salt keys in your wp-content.php ?
http://stackoverflow.com/questions/18771957/wordpress-does-not-properly-display-css-file
and use the given script to check the db.
aside, @r-a-y responded on the ticket. Unsurprisingly, like me, he couldn’t replicate the issue
August 21, 2014 at 2:14 pm #187696In reply to: [Resolved] How do I modify the navigation?
danbp
ParticipantWhich theme do you use ?
And have you already created a child-theme ?Generally such modification can be done by CSS.
August 21, 2014 at 11:19 am #187685In reply to: Please help – Use WordPress Avatars not BuddyPress?
Martin Waller
ParticipantThanks @henrywright…
I’m not entirely sure that my front-end template actually references bp_core_fetch_avatar() as it is not a BuddyPress theme but rather a regular WordPress theme (Responsive Pro).
Martin
August 21, 2014 at 11:17 am #187684In reply to: Please help – Use WordPress Avatars not BuddyPress?
Henry Wright
ModeratorActually scratch that last post – it’s now displaying the avatars as the WordPress avatars in the back-end but not the front end
In that case, I think we’ve just crossed that bridge hehe. i.e the next step will be to replace all instances of
bp_core_fetch_avatar()in your front-end templates withget_avatar()August 21, 2014 at 11:15 am #187683In reply to: Please help – Use WordPress Avatars not BuddyPress?
Martin Waller
ParticipantActually scratch that last post – it’s now displaying the avatars as the WordPress avatars in the back-end but not the front end!
August 21, 2014 at 10:53 am #187679In reply to: Please help – Use WordPress Avatars not BuddyPress?
Henry Wright
ModeratorHumm.. not helpful then. In that case we might have to try doing it manually. Perhaps try disabling the filter which replaces the WP avatars with BP avatars. For example, add this to your theme’s functions.php file:
remove_filter( 'get_avatar', 'bp_core_fetch_avatar_filter', 10, 5 );I think you can disable the Gravatar fallback as well with this:
add_filter( 'bp_core_fetch_avatar_no_grav', '__return_true' );If that doesn’t work, you may need to replace all occurrences of
bp_core_fetch_avatar()withget_avatar()in your templates. But cross that bridge when you come to it.Ref: https://codex.wordpress.org/Function_Reference/get_avatar
August 21, 2014 at 10:42 am #187677In reply to: Please help – Use WordPress Avatars not BuddyPress?
Martin Waller
ParticipantHi @henrywright
Thanks for the reply. I checked out that plug-in and it just removes the avatar from displaying on the BuddyPress profile – it still actually retains the ‘Mystery Man’ style avatar as opposed to using the one set in WordPress.
Martin
August 21, 2014 at 10:36 am #187675In reply to: Please help – Use WordPress Avatars not BuddyPress?
Henry Wright
ModeratorHi @multimartin
I just tried searching the WP plugin repo and came across an old plugin that may be of some help. Take a look at Remove Avatars
August 21, 2014 at 8:14 am #187658Stingray1972
ParticipantHi, below is what is in my ‘sidebar.php’ file…
<?php
/**
* Sidebar
*
* @package WordPress
* @subpackage TDFramework
* @since framework 1.0
*/global $core_sidebars;
$sidebar_slug = core_layout_current_sidebar();
if (!$sidebar_slug)
return;if (!dynamic_sidebar($sidebar_slug))
//core_warning( __(‘Sidebar with name’, THEME_SLUG) .’ “‘ .$core_sidebars[$sidebar_slug]. ‘” ‘. __(‘not found, or has no widgets assigned to it.’, THEME_SLUG));?>
could you please show me where the code would go?
-
AuthorSearch Results