當前位置: 首頁>>代碼示例>>PHP>>正文


PHP myclass::member_profile_pic_query方法代碼示例

本文整理匯總了PHP中myclass::member_profile_pic_query方法的典型用法代碼示例。如果您正苦於以下問題:PHP myclass::member_profile_pic_query方法的具體用法?PHP myclass::member_profile_pic_query怎麽用?PHP myclass::member_profile_pic_query使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在myclass的用法示例。


在下文中一共展示了myclass::member_profile_pic_query方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: switch

                    // $type = 'profile-timeline';


//$mno = 1016;

//echo "mno - " . $mno;



    echo " <div id='fs-general-ajax-response' style='color:#fff;position:fixed;background-color:#000;z-index:200;display:none' >  ";
      // $mc->unlink_profile_pics( $mno );
      echo "Type = " .  $type . '<br>';
      switch ( $type ) {
        case 'new-member-fb-login':  
                echo " new member fb login <br> ";
                $mppno = $mc ->member_profile_pic_query( array('mno'=>$mno  , 'type'=>'get-latest-mppno' ) ); 
                unset($_SESSION['type']);
            break;  
        case 'profile-timeline': 
                echo " time lime <br>"; 
                move_uploaded_file($_FILES["file"]["tmp_name"], "$mc->profileTimeline_original/$mno.jpg");   
  
                #get width and height of the image 

                    # load image and get height and width
                        $ri->load("$mc->profileTimeline_original/$mno.jpg");   
                        $img_height = $ri->getHeight();  
                        $img_width  = $ri->getWidth();      
                        echo " height $img_height width $img_width ";

開發者ID:jesus143,項目名稱:fs-dev,代碼行數:29,代碼來源:profile_crop_display.php

示例2: array

									$mc->update_logging_in_fb_friends( $mno1 , $fb_friends['fb_all_freinds'] , $fb_friends['fb_freinds_on_fs'] , $fb_friends['fb_freinds_on_fb'] ); 
								
								// retrieve big profile pic of the new user
									echo " big profile pic <br> ";
								  	$size = 'large';
	                                $url = "http://graph.facebook.com/$fbid/picture?type=$size"; 
	                                $headers = get_headers($url, 1); 
	                                if( isset($headers['Location']) ){  
	                                    $bigpicurl = $headers['Location']; // string
	                                }else{
	                                    echo "ERROR";
	                                }   
	                                echo "profile pic path src. $bigpicurl <br>";
	                                echo "<img src=\"$bigpicurl\"  />";    
	                            // add new profile pic for the new user
	                            	$mppno = $mc->member_profile_pic_query( array('mno'=>$mno1 , 'action'=> 'Joined' , 'type'=>'insert-new-profile-pic-db' ) );   
	                            // download from fb photo server 
										$article->download_image_from_other_site( $mno1 , $bigpicurl , 'fs_folders/images/uploads/members/mem_original/' );   
	                            // resize the profile pic downloaded  
	                            	$mc->resize_profile_pic_thumbnail_and_profile( $mno1 , $mppno );    
	                            // add activity post feed  
	                            	#$mc->add_activity_wall_post ( $mno1 , $mppno , 'Joined' , 'fs_members' , $mc->date_time );    
	                            // send confirmation code 
	                            	if ( !empty($email) ) {
	                            		if ( $mc->send_verification_code_to_email( $email , $mc->generate_vefirification_code( $email ) , $firstname )  ) { 
	                            			echo " email confirmation successfully sent. . .";
	                            		} 
	                            	}   
	                            // set notification 
	                            		//$mc->set_notification_info( 'fs_members' , $mno1 , "your facebook friend Just <span class='fs-text-red'> joined </span>"  , $mno1 , 0 , 'join-fb' ); 
	                            		$mc->set_notification_info( 'fs_members' ,  $mno1 , 'joined' , null , null , 0 , 'join-fb' ); 
開發者ID:jesus143,項目名稱:fs-dev,代碼行數:31,代碼來源:social-fblogin-authenticate.php


注:本文中的myclass::member_profile_pic_query方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。