Search Results for 'wordpress'
-
Search Results
-
Hello!
For the site i’m currently working on, it’s important that the users are allowed to favorite blog posts and that it appears on their “favorite” tab on profile. I’m using WordPress 4.0.1 / BuddyPress 2.1.1.
The following code does that, but is there a way to make it work like the ajaxed favorite buttons on the activity page instead of reloading the page so the favorite option will be saved?
Thanks so much!
Here’s the code i have on functions.php
function my_bp_activity_is_favorite($activity_id) {
global $bp, $activities_template;
return apply_filters( 'bp_get_activity_is_favorite', in_array( $activity_id, (array)$activities_template->my_favs ) );
}function my_bp_activity_favorite_link($activity_id) {
global $activities_template;
echo apply_filters( 'bp_get_activity_favorite_link', wp_nonce_url( site_url( BP_ACTIVITY_SLUG . '/favorite/' . $activity_id . '/' ), 'mark_favorite' ) );
}function my_bp_activity_unfavorite_link($activity_id) {
global $activities_template;
echo apply_filters( 'bp_get_activity_unfavorite_link', wp_nonce_url( site_url( BP_ACTIVITY_SLUG . '/unfavorite/' . $activity_id . '/' ), 'unmark_favorite' ) );
}
Code i have on index.php / single.php:
<?
global $bp;
$activity_id = bp_activity_get_activity_id( array(
'user_id' => $post->author_id,
'type' => 'new_blog_post',
'component' => 'blogs',
'item_id' => 1,
'secondary_item_id' => $post->ID
) );
?><?php if ( is_user_logged_in() ) : ?>
<?php bp_has_activities();
if ( !my_bp_activity_is_favorite($activity_id) ) : ?>
<li class="activity-meta">
[a href="<?php my_bp_activity_favorite_link($activity_id) ?>" class="button fav bp-secondary-action"]Favorite[/a]
<?php else : ?>
[a href="<?php my_bp_activity_unfavorite_link($activity_id) ?>" class="unfav button bp-secondary-action"]Unfavorite[/a]<br>
[a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/favorites/' ?>" style="font-size: 12px;"]View Your Favorites[/a]
<?php endif; ?>
<?php endif;?>
a tags were replaced by [a] so the code will appear above.Topic: [Resolved] CSS help please
I need to change the colour of the font on my site so the buttons are readable. Is anyone able to explain which piece of code I need to change? url:http://herblogforum.com/activity/ WordPress 4.0.1 BuddyPress Version 2.1.1
Thank you.
I have a complex site that I want to allow other users to manage pending user activations, Giving them manage options capabilities (using a role editing plugin) exposes the manage signups menu, but far too much of the rest of the WordPress admin as well.
Where can I edit the plugin to expose the menu to users with role editor without giving them full options management for the whole of WordPress.
Thanks
When I try and activate, email or delete a user on the Manage Signups page I get the error:
You do not have sufficient permissions to access this page.
I’m the multisite superadmin.
I’m running WordPress 4.01 multisite subdomain install in root directory and Buddypress 2.1.1.
I’m running Catchbox Pro 3.2 and have tried switching to twentytwelve on the main blog but the problem reoccurs.
I have no custom functions in bp-custom.php. I’ve tried deactivating all plugins on the main blog except buddypress and network deactivating all network activated plugins.
I’ve found no relevant errors in the system logs. Just this:
[Thu Dec 11 20:12:21 2014] [error] [client 17.142.151.92] script ‘/var/www/vhosts/webhive.com.au/httpdocs/r.php’ not found or unable to statI have my own dedicated server running Ubuntu 10.04.
I’ve never used Manage Signups before so don’t know if it used to work.
Thanks!
Topic: How to seperate forums
I’m running WordPress 4.01, bbpress 2.5.4 and buddypress 2.1.1. I have one forum installed and I have just created a second forum. The problem is when I create the second forum it basically picks up all the topics and menu choices of the original forum. The original forum is private and is password protected. I don’t want the 2nd forum private but public nor have the topics or menu choices of the original forum and not password protected. I basically want it to be it’s own forum separate from the original one. Any help would be greatly appreciated
I can’t upload an avatar for any of the groups on my site. When I try to I get a ‘404 not found’ error message.
I only discovered this recently. I suspect the problem arose after I moved my site to a new server several months ago. Groups I created before then still have their original avatars. However I cannot add avatars to any new groups I create. Of course I’m reluctant to try changing an avatar on one of the old groups in case I can’t get the previous one back.
Can anyone suggest what the problem might be?
I’m using WordPress 4.0.0 and BuddyPress 2.1.1.
Hello,
The wordpress version I am using is 4.0.1
The BuddyPress version I am using is 2.1.1I am trying to display the user avatar that is being displayed by the BuddyPress plugin for EVERYTHING else except for what I need to use it for LOL.
The problem is the theme I’m using does not recognize the the BuddyPress call to the avatar. The code the theme is using is:
<?php echo get_avatar(CustomUser::$data['user']['ID'], 200); ?>I keep trying to add bp_ in front of get_avatar but then it doesn’t display anything. I have also removed the info between the ()
I do not understand php that well and do not understand calling functions and getting them to display that well, but I have been known to copy and paste my way to glory sometimes.
I have found the “get avatar” functions in some of the function files of BuddyPress and tried to paste them into my functions file but I always get errors.
Please keep in mind I am a total php newb and will need a little guidance on where and how to apply the code. for example I found this one post that might have helped a couple days ago that said something like just paste get_function_shmitty_avatar, then the OP was like GREAT AWESOME OMG this worked so wonderful… and I still have no clue where to paste or how to correctly paste the php code, that was also for integrating the BB forum pics too. So anyways…
Thank you in advance for your time and assistance in helping me with this.
Topic: Registration page is Empty
Hi, i’m on wordpress 4.0.1 and buddypress 2.1.1 and i’m having this issue, when i configure the pages “Registration” and “activate” none of them work, they are always empty. Searching in google i found out that i’m not the first one experiencing this issue, but i didn’t find a solution so here i am, any ideas what can i do?
List of plugins:
add actions and filters
ajax event calendar
akismet
plugin update
antispam bee
ap gravatars
autoblog
average head footer code
bbpress
bbpress search widget
bienvenido nuevo partner
bienvenido nuevo usuario
buddypress
buddypress group email subscription
chimpy lite mailchimp wordpress plugin
contact form 7
contact form 7 autoresponder addon plugin
contact form db
custom author link
custom login
cw image optimizer
default featured image
easy modal
edit author slug
email before download
email login
export user data
featured image in rss feed
featured images in rss w size and position
feedburner email subscription
fix rss feeds
global hide toolbar
global hide toolbar bruteforce
google analytics by yoast
hello dolly
hungryfeed
invite anyone
mailchimp
menu exporter
multisite bulk user management
multisite user management
network username
nice login widget
p3 plugin performance profiler
php code widget
really simple captcha
redirection
revive old post former tweet old post
share buttons by addtoany
shortcodes ultimate
simple login log
social login
spider catalog
swiftype search
syntaxhighlighter evolved
unconfirmed
under cons uction
user activation keys
user meta shortcodes
videojs pro
widget importer exporter
widgetize pages light
wiki
wordfence security
wordpress download monitor
importador de wordpress
wordpress move comments
wordpress seo
wp biographia
wp custom admin bar
wp facebook open graph protocol
wp no category base wpml compatible
wp nofollow post
wp smtp
wptouch mobile pluginTopic: The big picture
I am very confused with what i need in addition to buddypress.
I have installed wordpress
I have installed buddypress
I purchased a theme called salutations from themeforestI WANT to implement a paid membership site where members can team up and share ideas, and incorporate mailchimp for email to contact registered members, and then I want to sell my merchandise that would be outside vendor.
So do I need to go get bbpress and membership forum plugins on top of buddypress? What are the limitations of buddypress? I don’t think I need a wordpress shopping cart if I go through 3rd party website.
Thank you in advance – new to buddypress!