Plugin Directory

Changeset 1748911


Ignore:
Timestamp:
10/18/2017 09:54:02 PM (8 years ago)
Author:
sageshilling
Message:

update username for if not logged in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • likecheese/trunk/like-cheese.php

    r1516159 r1748911  
    6969                                                {//find img
    7070                                                 $finalstring = "";
    71                                                     while($postimagecount != 0)
     71                                                    while( ($postimagecount != 0) || ($content != '') )
    7272                                                        {
    7373                                                            $checkstring =strstr( $content, 'img' );  //remaining string inc img
     
    111111                                                   
    112112                                                    $totallikecount = count($arruserslike);
     113                                                    if (is_user_logged_in()){
     114                                                   
    113115                                                    $userid = get_current_user_id();
    114116                                                    $like_user_info = get_userdata( $userid );
     
    119121                                                    if($likect != 0){$imageheart = plugin_dir_url(__FILE__) . 'images/filledc3.jpg';}
    120122                                                    else{$imageheart = plugin_dir_url(__FILE__) . 'images/defaultc3.jpg';}
     123                                                                               
     124                                                                               }
     125                                                    else $imageheart = plugin_dir_url(__FILE__) . 'images/defaultc3.jpg';
    121126                                                   
    122127                                                    //Create site_url capture
Note: See TracChangeset for help on using the changeset viewer.