本文整理汇总了PHP中myclass::resize_posted_look方法的典型用法代码示例。如果您正苦于以下问题:PHP myclass::resize_posted_look方法的具体用法?PHP myclass::resize_posted_look怎么用?PHP myclass::resize_posted_look使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myclass
的用法示例。
在下文中一共展示了myclass::resize_posted_look方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
$style = "";
$article_link = "";
// echo "from posted look";
$plno = user_last_look_uploaded();
$_SESSION['last_look_uploaded'] = $plno;
$_SESSION['look_edit'] = false;
// set notification
// $_SESSION['modal_posted'] = 1;
// $mc->set_notification_info( 'postedlooks' , $plno , ' posted a new look' , 0 , 0 );
$type = ( !empty( $_GET['type']) ) ? $_GET['type'] : null ;
switch ( $type ) {
case 'cropped':
break;
default:
#this is not being cropped
$mc->resize_posted_look( $plno , $mc->look_folder );
break;
}
}
// echo'LOOK ID '.$plno.'<BR>';
// print_r($pl_info['pltags']);
$h1 = 600; # height of the look container
$w1 = 889; # width of the look container
//$plno = '396';
$img = "$mc->look_folder_lookdetails/$plno.jpg";
$lookmodalssize = $mc->lookdetails_set_size_of_the_look( $img , $ri );
// $li = $mc->posted_look_info($_GET['id']);
$mc->header_attribute(
示例2: array
// $mc->go( $mc->get_username_by_mno( $mno ) );
break;
case 'profile-timeline':
$mptno = $mc->member_profile_timeline_query( array('mno'=>$mno , 'action'=> 'Update Timeline' , 'type'=>'insert-new-profile-pic-db' ) );
$mc->resize_profile_timeline( $mno , $mptno );
$username =$mc->get_username_by_mno( $mno );
echo " profile time line cropped <br>";
// $mc->set_notification_info( 'fs_member_timeline' , $mptno , null , null , 0 , 'change-profile-cover-photo' );
// $mc->set_session_notification( $mno , 'fs_member_timeline' , $mptno , 'updated' , null , null , 'change-profile-cover-photo' , 0 );
$mc->set_notification_info( 'fs_member_timeline' , $mptno , null , null , null , 0 , 'change-profile-cover-photo' );
// $this->set_notification_info( $table_name , $table_id , $action , $action1 , $action2 , $status , $noti_type=null )
$mc->go("$username");
break;
case 'posted-look':
$plno = $mc->postedlook_query( array('mno' =>$mno , 'type'=>'get-latest-plno' ) );
$mc->resize_posted_look( $plno , $mc->look_folder_cropped );
$mc->go("post-look-label?type=cropped");
echo " posted looks <br> ";
break;
case 'upload-article-and-resize':
echo " This is the file name " . $_POST['file_name'];
$fileName = ( !empty($_POST['fileName']) ) ? $_POST['fileName'] : null ;
$fileUrl = ( !empty($_POST['fileUrl']) ) ? $_POST['fileUrl'] : null ;
// echo " upload new article image and resize to thumbnail , home and so on. . .";
/** get latest article uploaded */