Search Results for 'wordpress'
-
AuthorSearch Results
-
April 23, 2015 at 12:07 pm #238269
In reply to: How to disable HTML in BuddyPress private message
Henry Wright
ModeratorHey @danbp,
WordPress provides a function for that. Check out
wp_filter_nohtml_kses(). It strips all HTML from the string you provide so there’s no need to usepreg_replace().function hellowed_remove_html_private_messages( $message ) { $message = wp_filter_nohtml_kses( $message ); return $message; } add_filter( 'messages_message_content_before_save', 'hellowed_remove_html_private_messages' );April 23, 2015 at 11:57 am #238266In reply to: Avatar does not show outside BuddyPress
paixaofileto
Participantgave the following error:
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘: 1)’ at line 1]
SELECT id, user_id, field_id, value, last_updated FROM wp_bp_xprofile_data WHERE field_id = 2 AND user_id IN (displayed: 1)Read on the internet that I must pass the id as parameter for bp_core_fetch_avatar:
<?php $userid = bp_loggedin_user_id(); echo bp_core_fetch_avatar( array( ‘item_id’ => $userid) ); ?>But do not know where I have to put this code or how to implement in my code. Can you help me?
April 23, 2015 at 8:23 am #238251In reply to: [Resolved] Error on user registration
danbp
Participantyou are using joomla on the mainsite and WordPress on the subdomain.
Question is: is WP sharing the same DB as joomla or have you a complete separate install (db & cms) for your WP/BP site ?
Which type of WP install do you use ? Single or network ? (more about)
Are mainsite users and wp site users the same people ?BuddyBoss has his own support forum. You probably have better to ask there directly.
April 23, 2015 at 8:02 am #238248In reply to: Buddy Press – Blank Pages
fab_pj
ParticipantHi Dan,
I tried all the above, and nothing seems to be working. Now, as you will understand for ‘BuddyPress Support’ Theme I find it odd to have such a big bug after having re-activated and everything. I am resistant at completely reinstalling unless it’s the last straw, but I am also quite demotivated as the theme just sent me this answer:“This is not a theme issue, as you have updated only the wordpress. Also updating wordpress will not delete any records in your DB. Please contact buddpress support team regarding the issue.”
Hence, it’s not them or the theme, but it’s something within BuddyPress. I’d rather not have to change plugin options with 400+ users on my platform, as I really like the flexibility BuddyPress gives me. Hope you understand.
Best,
FabApril 22, 2015 at 1:16 pm #238206In reply to: Widget to display community stats ?
danbp
ParticipantHi @medianp,
just tested the plugin on a local network install and it works.
There is just a little count error (missing arg 2) in one of the file.
To solve this, add$countat the end of line 107 in bp-community-stats.php
$count = $wpdb->get_var( $wpdb->prepare( "SELECT count(a.id) FROM {$bp->activity->table_name} a WHERE type = 'activity_update' AND a.component = '{$bp->activity->id}'", $count ) );Plugin author warned: Total Posts and Comments not support in multisite/network mode
Search the WP plugin repo to get the missing stats.
April 22, 2015 at 11:14 am #238199leanneoleary
ParticipantHi, I had seen that article but then couldn’t find the plugin within wordpress so was unsure of using it. I will give it a go though if that’s the only solution available, thanks.
UPDATE
——-
Just tried uploading it to wordpress but get errors and looking at the comments on the page of the plugin looks like it hasn’t worked since 2012/13. 🙁April 21, 2015 at 10:25 pm #238180Henry Wright
ModeratorHi @winnergirl
Does BuddyPress require its own independent WP site?
No. BuddyPress works just like any other plugin you might install on your WordPress website. You should just be able to click ‘activate’.
April 21, 2015 at 6:09 pm #238174zeesh49
Participant@quaelibet and @danbp can you provide details of how you setup a vhost? I googled and have been able to setup a vhost but it only access the xampp page and not the wordpress page.
My host file contains the following:
127.0.0.1 buddypress.local
::1 buddypress.localMy httpd-vhosts.conf file contains the following:
<VirtualHost *:80>
DocumentRoot c:/xampp/htdocs
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot c:/xampp/htdocs
#DocumentRoot c:/vhosts/buddypress.local
ServerName buddypress.local
</VirtualHost>when i run the URL: http://buddypress.local, it resolves to http://buddypress.local/xampp/ page
but when I run the URL http://buddypress.local/wp (my wordpress folder name is ‘WP’) it says page cannot be displayed. this is in internet explorer.kindly help.
April 21, 2015 at 2:20 pm #238157In reply to: Register page password strength and hint
leanneoleary
ParticipantI am using Cinematix (http://themeforest.net/item/cinematix-buddypress-theme/4959387) and haven’t customised it in any way.
I have found the default HINT for wordpress is the following:
<?php _e(‘Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! ” ? $ % ^ & ).’); ?>
I assume this is what is being used? If so I can just add this password hint but what file do I need to edit?
Many thanks for your help.
April 21, 2015 at 1:05 am #238139caniwigirl
ParticipantI am running the current versions of everything as of today’s date… BuddyPress 2.2.3, bbPress 2.5.7 on WordPress 4.1.1
The problem I am having is that, for the most part, I only want either Public or Hidden groups with their associated forums.
The directory listing only displays the public groups and the forums only display the public forums.
As a Site Admin and Keymaster, I can’t even see the hidden groups (although the count increases to show the additional number of hidden groups). In fact, none of the hidden groups show under the ‘My Groups’ tab for me or any user who is a member of a particular hidden group (although the count indicates that they area member of this non-visible group that they can’t get access to). I can see the forums, however.
Essentially, the Hidden function appears to not be working for groups and forums as neither admins nor members of them can gain access without being provided with the URL.
April 20, 2015 at 12:26 pm #238098In reply to: Members loop doesn’t show new members
danbp
ParticipantThnak you.
Have you a test site or a local install where you can make some test ?https://buddypress.org/support/topic/when-asking-for-support-2/
I tried to change role and other fields in new members, but nothing happened.
On a single regular install, all BuddyPress members have the default role you assigned to new users in WP settings > general. There is nothing to change at this level when they don’t show up on member’s directory.
If you need some fake BuddyPress users and content, i suggest you to use BuddyPress Default Data, which is great to control if anything is working correctly.
Deactivate your theme and all other plugins except BP and use Twenty Fifteen while testing.
Activate also wp_debug in wp-config, and see if you get somme php errors.April 20, 2015 at 11:25 am #238095In reply to: Members loop doesn’t show new members
danbp
Participanthum… difficult to say at t he moment, as you use 2 different site apparently.
hxxp://www.anadercategori.org/ and hxxp://pallavoloromana.it/anadercategori/squadre/test7/
Which site belongs your members to ? Where is buddyPress installed ?
BuddyPress does not work on installations where you give WordPress its own directory.
Read here: https://codex.buddypress.org/getting-started/April 20, 2015 at 8:49 am #238087In reply to: Share Post to Activity Feed
danbp
ParticipantApril 20, 2015 at 8:46 am #238086In reply to: BP Reshare button in Single Post views
danbp
ParticipantBP Reshare is a BuddyPress plugin to allow members to reshare their activities !
It wasn’t made to reshare views.
@imath is working on many other porjects, including BuddyPress. So he’s very busy and this plugin is now “old” and need probably some refactoring.
Sorry for you, but don’t expect much at this time.April 20, 2015 at 8:35 am #238085In reply to: How to add sidebar to single update/comment page
danbp
ParticipantFirst off, all active BP components should have a assigned page. (mandatory)
This page must be blank, without any template model or parent page.As you use Twenty Eleven via a child theme, read here:
https://codex.buddypress.org/themes/bp-theme-compatibility-and-the-wordpress-default-themes/twenty-eleven-theme/ How to get the sidebar is explained there.Where is WP installed ?
Site url is vatpt1.thevillageblog.com/
Blog seems to be in /villageatthepark/April 20, 2015 at 8:30 am #238083In reply to: Share Post to Activity Feed
gremelle
ParticipantI’m looking for the same functionality.
This is what I’ve found so far: https://github.com/imath/bp-reshare
It’s from this post: https://buddypress.org/support/topic/user-activity-share-plugin-for-wordpress-buddypress/
Let’s hope this functionality will get more attention, and implemented.
April 20, 2015 at 8:26 am #238082In reply to: Made custom register page, now honeypot doesn’t work
danbp
ParticipantHave you changed your tables prefix or do you use the default wp_ ?
Do you have a site admin account with “admin” as username ? If yes to both, change this.April 19, 2015 at 5:32 pm #238047In reply to: Group Moderator broken?
danbp
ParticipantShouldn’t a User promoted to Group Moderator be able to moderate content in that Group, regardless of their WP Role and capabilities?
Sounds logic, but No. See documentation in bp-core/bp-core-caps.php for the “why”. 😉
Since BP 1.6, group moderators can only delete, move, spam group forum content.
April 19, 2015 at 4:17 pm #238039shanebp
ModeratorAre you sure you’ve translated this label:
Friends <span class="%s">%s</span>Did you include this Sources Keyword when creating the translation .mo in poEdit:
_x()The Friends label is generated by
__()and_x(), depending on the context.More info re keywords: http://www.cssigniter.com/ignite/wordpress-poedit-translation-secrets/
April 19, 2015 at 1:22 pm #238027In reply to: Hide forum post content in activity streams?
Henry Wright
ModeratorSure!
See here for where your filter will be applied. Here is documentation on
apply_filters_ref_array()(it’s almost identical toapply_filters()). And you’ll need to use add_filter() to hook your filter function to the hook.If you’re new to filter hooks, try searching for some tutorials, there’s so much info available already. Hope this info helps!
April 19, 2015 at 10:31 am #238024In reply to: Calling a post authors activity stream
Henry Wright
ModeratorWas my suggestion any use?
Basically, I would like to call the activity stream of an author of a page.
I understood that to mean “Output an activity loop on a WordPress page limited to activity items belonging to the page author”.
If my understanding is wrong, then please let me know.
April 18, 2015 at 7:12 pm #238008In reply to: Where are loops put?
@mcuk
ParticipantHi @danbp,
Thanks for reply. Yeah i know about those. I meant where would I put custom loops with my own filters etc. The wordpress codex says to put them in index.php. I assume that for Buddypress that would be:
bp-legacy>buddypress>activity>index.php
Then call it within bp-custom.php?
April 18, 2015 at 3:12 pm #237997In reply to: Calling a post authors activity stream
@mcuk
Participanthaha, I’ll take your 2 days and raise you another 3!
If i get anywhere I will defo post it here. Haven’t found anything on the forums that’s helped so far (at least anything that I recognise as being a solution). I’m fairly new to php. Been through the plugin files and found a number of functions which are likely being used (not 100%), but just not able to call them to the new tab I’ve created.
Currently working through reading Henry’s links above on the WordPress Codex and will have a fiddle around.
April 18, 2015 at 12:54 pm #237987In reply to: Calling a post authors activity stream
Henry Wright
ModeratorHi @urbanfix
Here’s the standard loop taken from here.
<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?> <?php while ( bp_activities() ) : bp_the_activity(); ?> <?php locate_template( array( 'activity/entry.php' ), true, false ); ?> <?php endwhile; ?> <?php endif; ?>If you scroll down the page and take a look at filtering options, you’ll see
user_id. So your loop will look something like this:$post = get_post( get_the_ID() ); $filter = '&user_id=' . $post->post_author; if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . $filter ) ) : while ( bp_activities() ) : bp_the_activity(); locate_template( array( 'activity/entry.php' ), true, false ); endwhile; endif;Note: I haven’t tested.
Caveat: This must be used within The Loop.
April 17, 2015 at 6:35 pm #237980In reply to: How to infinite scrolling Buddypress Messages ?
Ben Hansen
Participantsorry i don’t know any plugins or how to hack it but i think that would make a great feature suggestion for core if you can please add it to trac here:
https://buddypress.trac.wordpress.org
if not let me know and i’ll add it.
🙂
-
AuthorSearch Results