sufyan_hassan
Forum Replies Created
-
Forum: Plugins
In reply to: [BuddyPress Cover] Problem while uploading picturesOk thanks !
i will call my host administrator ??Forum: Plugins
In reply to: [BuddyPress Cover] Problem while uploading picturesI’am still getting the same message : Upload Failed! Unable to write the image on server ??
Forum: Plugins
In reply to: [BuddyPress Cover] Problem while uploading picturesCheck the wp-content permissions on the Cpanel
I have Checked the permissions of the wp-content folder , it’s having a full permissions.
just i want to know the directory in which the cover pictures are saved so i can create it manually this problem happens every time i install a plugin that needs to create a folder.
Forum: Hacks
In reply to: Is this code true or not ?!The concept of code :
the code should Add a form with a button to each user profile, it named Follow or Unfollow.
so , it updates the user meta named “following” for the user who clicked the button. So we have to use the user IDs as a serialized array
Then we should use a query for the user meta “following” to get a list of all authors the current user has subscribed to and then query for the posts from these authors.
i get this error: “Catchable fatal error: Object of class WP_User could not be converted to string”,
because i used this code to check if it’s working or not :/
<?php
$user_id = 1;
$key = ‘following’;
$single = true;
$user_last = get_user_meta( $user_id, $key, $single );
echo ‘<p>The ‘. $key . ‘ value for user id ‘ . $user_id . ‘ is: ‘.$user_last . ‘</p>’; ?>Forum: Hacks
In reply to: Is there any plugin for showing only the posts from followed authors ?Thank you very much Mr Ryan ??
Forum: Hacks
In reply to: Is there any plugin for showing only the posts from followed authors ?Mr Ryan , can you tell me please how to write a code for your idea :
A possible solution would be that if a logged-in user (call it user #1) is clicking “follow” on another user’s profile (call it user #2), you record user #2’s ID as meta data on user #1. You can do this via the update_user_meta function. You can then retrieve posts from user #2 by using WP_Query with an author parameter. The author parameter can be an array, so you can get the posts of multiple users that way, too.
Forum: Hacks
In reply to: Is there any plugin for showing only the posts from followed authors ?Maybe i did not explain the first point clearly ,
i found a plugin called “User Profiles Made Easy” :
https://profileplugin.comwhen i press on the author link in the post:
https://imgur.com/JL8UlTtit redirects me to the author profile instead of author posts like this :
https://imgur.com/eOsRQq9i need a code that creates the follow button in the second picture..
sorry i don’t know how to program codes ??Thanks Mr. Ryan ??
Forum: Hacks
In reply to: Is there any plugin for showing only the posts from followed authors ?Thanks Mr Ryan ?? ,
* Maybe “Buddypress” or “Users ultra” plugins can create a profile for author..* each logged-in user can select his favorite authors to follow and they can only see the posts of followed authors.