Search Results for 'wordpress'
-
AuthorSearch Results
-
August 13, 2014 at 6:10 pm #186542
snarkypuppet
ParticipantHey @danbp Thanks for the response. I looked into that thread and that led me to this:
bp_has_activities to accept multi scope
This is an enhancement marked for future review… 14 months ago :\ – Looks like the only way to do it is to write a new class/function.
Is there anyone out there that has written something that includes multiple scopes? Is it possible?
August 13, 2014 at 9:40 am #186518danbp
Participantplease read here and provide more details and if possible give a site URL.
All of your topics are so far related to some weird settings of your wordpress/buddypress installation. So it is somehow complicated to help you if you don’t resolve this first.There is no shame to read the WP codex by the beginning: get started and to follow each step.
August 13, 2014 at 9:30 am #186516danbp
ParticipantHi @simpleone,
you can actually only hide xprofile fields. Hiding field groups is not possible, due to a bug.
But it is corrected for 2.1 and you’ll find a patch on the trac.You can already apply the patch to 2.0.2 bp-xprofile-classes.php and the above snippet will work. Add it to bp-custom.php or theme’s functions.php
To hide an xprofile group, use bp_parse_args like this:
function bpfr_make_profile_tab_members_only( $retval ) { // hide to non members if( !is_user_logged_in() ) { // exlude groups, separated by comma $retval['exclude_groups'] = '4,5'; // exclude fields, separated by comma $retval['exclude_fields'] = '1,39'; } return $retval; } add_filter( 'bp_after_has_profile_parse_args', 'bpfr_make_profile_tab_members_only' );August 13, 2014 at 12:13 am #186505milosnikolic
ParticipantOk here I found this:
“Added new “hide_spam” parameter to the entire Activity template loop stack; defaults to true, except if specific activity items have been requested (for backpat reasons).”I found “hide_spam” in 3 files in buddypress but it’s already set to false? How can I disable this option?
Is it here in bp-activity-template.php:
// If a user is a spammer, their activity items will have been automatically marked as spam. Skip these.
if ( $comment->is_spam )
continue;$user_ids[] = $comment->user_id;
or here
@type string|bool $spam Spam status. ‘ham_only’, ‘spam_only’, or false
* to show all activity regardless of spam status. Default: ‘ham_only’.August 12, 2014 at 11:44 pm #186496milosnikolic
ParticipantWhen I turn on the debug mode in WP this is what shows up:
Notice: bbp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 2.3.) in public_html/wp-includes/functions.php on line 3245
Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in public_html/wp-includes/functions.php on line 3245
Notice: wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.) in public_html/wp-includes/functions.php on line 3245
August 12, 2014 at 10:46 pm #186490milosnikolic
ParticipantIn phperrorlog I get this error:
WordPress database error Unknown column ‘spam’ in ‘where clause’ for query SELECT ID FROM lb_users WHERE ID=1 AND spam != 1 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/Cinematix/bbpress.php’), get_sidebar, locate_template, load_template, require_once(‘/themes/Cinematix/sidebar.php’), dynamic_sidebar, call_user_func_array, WP_Widget->display_callback
August 12, 2014 at 7:16 pm #186480In reply to: How to connect Buddypress to MySQL.
bp-help
Participant@onogbebor
You really need to be more clear in what you hope to achieve. If you have WordPress installed and have also installed and activated BuddyPress then there is already a connection with MySQL and the BP tables are already created.August 12, 2014 at 1:28 pm #186473In reply to: Need Help Setting up a new buddy press site
shanebp
ModeratorGoggle ‘wordpress membership plugin’.
There are several plugins that will allow you to set membership levels and assign members to them.August 12, 2014 at 2:37 am #186458In reply to: Pagination on buddypress.org broken?
bp-help
Participant@mrjarbenne
Done and thanks!
https://buddypress.trac.wordpress.org/ticket/5808#ticketAugust 12, 2014 at 2:26 am #186457In reply to: Pagination on buddypress.org broken?
mrjarbenne
ParticipantYou might want to post a trac ticket here:
https://buddypress.trac.wordpress.org/milestone/BuddyPress.org
August 12, 2014 at 2:10 am #186455In reply to: Buddypress.org – used Extensions/Theme ??
mrjarbenne
ParticipantThis is a complete custom job; but you can find out how it was made by looking through this trac Milestone that compiles all the details of the fixes and enhancements made to the site. Sadly it isn’t just a theme and a couple plugins you could easily activate on your own site.
https://buddypress.trac.wordpress.org/milestone/BuddyPress.org
August 11, 2014 at 5:16 pm #186432Joe
Participant@butlerweb Nice, thanks! I’m using whatever came with wordpress and buddypress, no extra plugin. I’m always afraid of slowing down the site speed when installing and activating plugins to be honest.
August 11, 2014 at 3:42 pm #186420In reply to: Problems with "loggedin_user_id()" in code
Henry Wright
Moderatorget_current_user_id()returns anint. Not sure if the type in this case will make much difference but perhaps your function is expecting a string?Try doing this:
$user_id = get_current_user_id(); $user_id = (string)$user_id;Ref: https://codex.wordpress.org/Function_Reference/get_current_user_id
August 10, 2014 at 9:54 pm #186402August 10, 2014 at 7:47 am #186383In reply to: Clarity on display in Dynamix theme
wp_maybe
ParticipantBuddypress does not “create” its own sidebars. It uses the theme’s.
Maybe it will be a good idea for you to try it out with a couple of free themes. The default wordpress theme (twenty fourteen) comes with two sidebars, you can probably play around with that a bit.
It should work the same way with a paid theme as far as Buddypress goes.
August 10, 2014 at 7:35 am #186382In reply to: Simple Members Only for Buddypress
wp_maybe
ParticipantYou could take a look at https://wordpress.org/plugins/private-community-for-bp-lite/
It allows you to make all pages/posts private by default. You can (optionally) exclude upto 10 pages/categories to show to the logged out visitors.August 10, 2014 at 12:04 am #186377Henry Wright
ModeratorThe reason I ask the question is due to the following reply I received on a question I asked here
The gist of it was the use of a language file is bad practice and any translations made in a language file are overwritten on WordPress upgrade. However, I’m not sure I quite agree. What are your thoughts?
August 9, 2014 at 8:50 pm #186373In reply to: No option to Select who sees Name in Profile Field
bp-help
Participant@semperfideles
You could try:
https://wordpress.org/plugins/private-bp-pages/
Full disclosure I wrote the plugin but you can check it out and see if it fits your needs.August 9, 2014 at 8:33 pm #186371In reply to: No Idea how Buddy Press works
shanebp
ModeratorThere are plugins like Activity Plus that allow embedding things like a uTube link in the activity page on a member’s profile.
There are several pages in a member’s profile, including a profile page that has data describing that member. There ways to allow for what you want, but it would require some custom coding, iow. not an option out of the box, afaik.
August 9, 2014 at 2:18 pm #186364In reply to: Hide the MEMBERS, GROUPS, ACTIVITY pages
wp_maybe
ParticipantOr you could try a plugin like: https://wordpress.org/plugins/private-bp-pages/
August 9, 2014 at 2:02 pm #186362bp-help
Participant@henrywright
No, the languages file in /wp-content/languages doesn’t get deleted upon upgrading WordPress.August 9, 2014 at 1:45 pm #186358In reply to: Create link to friends activity?
wp_maybe
ParticipantI read another solution here
1. Install and activate this plugin https://wordpress.org/plugins/wp-exec-php/
2. Create a new page called “Friends” or whatever name you want and add it to your menu.
3. In content of this page, add this code
<meta http-equiv=”refresh” content=”0;URL=http://blabla.com/members/<?php global $current_user;
get_currentuserinfo();echo sanitize_file_name($current_user->user_login). “”;
?>/activity/friends/”>
4. You may still need a way to hide this menu from logged out users. Plugin https://wordpress.org/plugins/if-menu/
August 9, 2014 at 3:49 am #186341In reply to: I want to create a social network on buddypress
bp-help
Participant@richonbp
@henrywright Pretty much nailed it just so you have a second opinion so I would go with his suggestion. You may also want to post a job here as well:
http://jobs.wordpress.net/
Good luck!August 9, 2014 at 12:47 am #186337In reply to: I want to create a social network on buddypress
Henry Wright
ModeratorHi @richonbp
(1) A combination of PHP, JavaScript, jQuery and Ajax is the usual.
(2 – 4) Depends on your requirements
(5) Usually a combination of WordPress and BuddyPress to begin with. Then any plugins you need. You might also want to choose a themeHope this helps!
When you’re ready to go ahead, try posting your requirements and some contact information on the BP Jobs Board – there are some good programmers around that check on that forum regularly.
August 9, 2014 at 12:02 am #186335In reply to: HHVM + BuddyPress ?
Asynaptic
ParticipantHi Paul, thanks for the message. The “official” stance is that HHVM will be officially supported in the upcoming wordpress 4.0 – although as you say, as of 3.9 it runs without a hitch.
I think it is obvious that HHVM is an important variable in wordpress and will become even more important in the future.
-
AuthorSearch Results