lildragn
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Favorite Posts] Show users who favorited a post?Hi, trying again as this would really help me because of a recent situation I had on my site. I had some particular older posts gaining 25 favorites within a day or so, which is very suspect. Even having the ability as admin to see who voted on what would be a great way to investigate spamming bots or other.
Any help would be greatly appreciated!
Hi again, I’ll like to expand on this further by introducing a pagination type function or even a ‘load more’ type feature. I’ve accumulated 30 favorites currently on my page and the list is getting a tad long :). Has anyone implemented anything like this? Would be a great addition.
Thx!
Forum: Plugins
In reply to: [WP Favorite Posts] Send an email to author when I add to favorites his postOk so I was thinking, is there a way to combine the function I posted with the one below?
function postfavorited(){ $postfavorited = get_post_meta(get_the_ID(), 'wpfp_favorites', true); if($postfavorited != ''){ echo $postfavorited .' Favorited'; } } }
Maybe remove the “if” statement? Might try this out.
Forum: Plugins
In reply to: [WP Favorite Posts] Send an email to author when I add to favorites his post+1 This would be awesome to have. Maybe a hack could be fleshed out?
For example this is what I’m using to fire off an email to an author letting them know that their post was published.
//send email to author once entry is approved function _notifyContributers($post_id) { $post = get_post($post_id); $author = get_userdata($post->post_author); $message = " Hi ".$author->display_name.",\n Congratulations, your entry - ".$post->post_title." - has just been published. "; wp_mail($author->user_email, "Your image is now live on Videogame-art.com", $message); } add_action('publish_portfolio', '_notifyContributers');
Oh btw if you wanted, you can add a simple count to your list by simply using
<?php echo count($favorite_post_ids, COUNT_RECURSIVE);?>
Ok so taking out the reverse will return nothing. So from what I gathered regarding this command is that we’re basically telling the array as stated to reverse itself once we have it. All that we have to do it remove this line
$favorite_post_ids = array_reverse($favorite_post_ids);
And the list will then go from latest favorited ??
Cheers!
Hi solveigm, quick question, do you know if it’s possible to change the order the favorites are listed? Right now it lists the oldest to newest. Might be more trouble than it’s worth, but thought I’d ask ??
Wow that works great! Thank you very much.
Thanks very much solveigm, your solution worked great!
Forum: Plugins
In reply to: [WP Favorite Posts] Widget Only Works On One SidebarMuch appreciated! This solved my problem ??
Forum: Plugins
In reply to: [WP Favorite Posts] Number of favourites in postHiya Southcast, would you have any idea how to change that code so it works with custom post types? It works now but my theme doesn’t use the default posts
Thanks for any help.
Unfortunately I’m still getting an error with your code oomskaap
Warning: Invalid argument supplied for foreach() in
?? Any ideas?
Forum: Plugins
In reply to: [WP Favorite Posts] ?How can I list favorites in a page?I entered this code, but the favorited entries didn’t show, just the clear favorites link :/ Any ideas? And thanks for posting your solution btw.
Forum: Plugins
In reply to: [WP Favorite Posts] Don't display 'clear' message if no featured posts addedActually I have a question regarding this… how do you use this “clear” feature, I can’t seem to see it. I’m currently displaying the favorites with the widgets.
Forum: Plugins
In reply to: [WP Favorite Posts] Thumbnails in widgetCheers! Thanks for posting your solution, a lot of peeps don’t ??