if ( current_user_can('level_10') ) { ?>
} ?>
$uid=get_current_user_id();
if (empty($uid)) $uid=0;
if (!empty($_REQUEST['set_like']) && !empty($uid))
{
// set here
$sql="select * from island_like where user_id=\"".mysql_real_escape_string($uid)."\",1,0) and post_id=\"".mysql_real_escape_string(get_the_ID())."\"";
$rs = $wpdb->get_results($sql);
if (count($rs)<1) // not yet added
{
$sql="insert into island_like (user_id, post_id, date_added) values (\"".mysql_real_escape_string($uid)."\", \"".mysql_real_escape_string(get_the_ID())."\", NOW());";
$rs = $wpdb->get_results($sql);
}
}
elseif (!empty($_REQUEST['remove_like']) && !empty( $uid))
{
// unset here
$sql="delete from island_like where user_id=\"".mysql_real_escape_string($uid)."\" and post_id=\"".mysql_real_escape_string(get_the_ID())."\";";
$rs = $wpdb->get_results($sql);
}
/*
$sql="select U.display_name, U.user_nicename, U.id as uid, if(U.id=\"".mysql_real_escape_string($uid)."\",1,0) as is_current, if (U.id=19, 1,0) as is_allee ".
"from island_like as L, wp_users as U ".
"where L.post_id=\"".mysql_real_escape_string(get_the_ID())."\" ".
"and U.ID=L.user_id ".
"order by is_current DESC, is_allee DESC, date_added DESC;";
$jealous_rs = $wpdb->get_results($sql);
$user_is_jealous=0;
if (count($jealous_rs)>0)
{
if ($jealous_rs[0]->uid==$uid)
{
$user_is_jealous=1;
}
}*/
?>
Major kudos to you for recognizing this random juxtaposition as valuable kitsch worth sharing. Bonus points for perfect heading and “disposable douche” comment.
holy cow, i never saw that!!!!! i wish i could get hired to name douches…..if you can get away with “sweet romance”, i’m guessing there are very few boundaries…. which makes for guaranteed crowd pleasers!!!!!!!!!!
Allee Willis
I couldn’t have said it better myself!!
kookykitsch
This is awesome – I bet he’d appreciate the publicity!
windupkitty
hahaha! yeah! the ONLY APPROPRIATE publicity EVER!!!!
Nessa
Ha!
windupkitty
Summer’s Eve is kinda too gentle a name.but disposable douche.that works.
Douglas Wood
Major kudos to you for recognizing this random juxtaposition as valuable kitsch worth sharing. Bonus points for perfect heading and “disposable douche” comment.
windupkitty
well, i can’t take credit for deciding to post this…allee told me to! :D but thanks for the other compliments!
SUSAN
Did anyone else notice the name of that douche? It says ” sweet romance”…my god, what douche thought up THAT name?
Allee Willis
Definitely not a woman! Maybe Sean Hannity.
windupkitty
holy cow, i never saw that!!!!! i wish i could get hired to name douches…..if you can get away with “sweet romance”, i’m guessing there are very few boundaries…. which makes for guaranteed crowd pleasers!!!!!!!!!!