Adding the Favorite/Like button post in buddypress so users can like content - buddypress

How to add the Favorite/Like button post in buddypress so users can like content.
I search and tried manything.. Please help me.

For "Like" I use the old plugin "BuddyPress Like"
http://wordpress.org/extend/plugins/buddypress-like/

Related

How to know the pages where an image is displayed in wordpress

I am not sure if this is possible since I've been googling about this issue but I couldn't find any solution. I am on media of wp-admin, and I am trying to view the pages where a specific image has been used. I am a developer and I don't know how it is done. Anybody help?
Example:
image.jpg
has been displayed in :
www.mydomain.com/
www.mydomain.com/page-1
www.mydomain.com/page-2
I don't know how. Please help.
If you have access to the database, you can make a search for all occurrences of the image link in all posts and pages. To do this you need to get the link of the image through the admin menu. You will have something like:
http://example.com/wp-content/uploads/2016/03/image.png
The post and page content are located in the table wp_posts (Replace "wp_" with your table prefix if not using the default). Now you can do a query like:
SELECT `ID`, `post_title`, `guid` FROM `wp_posts`
WHERE `post_content` LIKE '%http://example.com/wp-content/uploads/2016/03/image.png%'
This will give you the post titles and their links. Should be something like:
ID post_title guid
9 Post Title 1 http://www.example.com/?page_id=9
20 Post Title 2 http://www.example.com/?page_id=20
In Media change the view to List view where you will be able to see which image is attached to which post.
All the images are uploaded under
wp-content/uploads folder
you will inspect using firebug and get the path of the image.
Thanks

Buddypress How to change every user's avatar url from add_filter(bp_core_fetch_avatar)?

I am trying to change the buddypress user avatar's url. When user click other user's avatar, it will go to the user's specific field instead of the default url 'activity'. I had search through internet, I think I should add_filter bp_core_fetch_avatar to change the avatar's url, but I had tried for hours to hack, no luck. Hope somebody could help me here. Appreciate.
You don't want to change the avatar url. You want to change the link in the href wrapped around an avatar. That link is usually handled by bp_member_permalink()
So try using this filter hook:
apply_filters( 'bp_get_member_permalink', bp_core_get_user_domain( $members_template->member->id, $members_template->member->user_nicename, $members_template->member->user_login ) );

How to deactivate facebook share button after click

is there some way to deactivate FB share button or mark it like "done" after sharinig content? Like button have two states which indicates if I "like" it or not. On the share button is not visible if I shared the content or not. Is there a way to do it?
Thanks.
The only way i could think of is by authorizing a user with publish_actions. In that case, the response will be the new post id, as you can read in the docs: https://developers.facebook.com/docs/sharing/reference/share-dialog
BUT: You should not do something like that anyway. Let the user share stuff several times if he wants to. He may want to select different recipients for the share.

How to use google+ share button?

I have created a google+ share button ... https://developers.google.com/+/web/share/ ...
It works but it doesnt share any content ... only appear a pop-up share window => I write something into => and this text it share normal ... but not content of my page/ article ... do you know why?
in my body I have this ...
<div class="g-plus" data-action="share" data-annotation="none" data-height="24" data-href="http://localhost/welcome">ddd</div>
There is 2 kind of Google+ share button.You can use a very simple button to share anything.The properties Google+ gets from meta tags and canonical links.
Here is a link: http://www.w3docs.com/learn-javascript/google-share.html
The share button does not support prefilled text. It only supports sharing the current/specified URL.
The interactive posts API does support prefilled text but it also requires more setup to get working.

Change Module Header name in phpfox

I am developing one web site using phpfox tool. In dashboard i want to change Activity Feed heading into something different. How i can able change that heading? I tried using Block Manager title change option it is not reflected in page. Please help me to change header name... I am new to phpfox if you have any online reference link for learn phpfox pls send link also. Thanks in Advance...
Go to your site's admin area
admincp->Extensions->Language->Phrase Manager
Search for'Activity Feed'
From here you can change the title of Activity Feed