当前位置: 首页>>代码示例>>PHP>>正文


PHP myclass::set_notification_info方法代码示例

本文整理汇总了PHP中myclass::set_notification_info方法的典型用法代码示例。如果您正苦于以下问题:PHP myclass::set_notification_info方法的具体用法?PHP myclass::set_notification_info怎么用?PHP myclass::set_notification_info使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在myclass的用法示例。


在下文中一共展示了myclass::set_notification_info方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

// domain url
if ($plcld_action == 'Thumb-Up') {
    $rate = 'like';
} else {
    $rate = 'dislike';
}
switch ($type) {
    case 'thumbs-up-or-down':
        $mc->add_look_comment_thumb_up_or_down($plcno, $mno, $plcld_action, $dtime);
        // $action =   "<span class='fs-text-red'> commented </span> ";
        // $mc->set_session_notification( $mno , $table_name , $table_id , $action , $comment );
        // $mc->set_notification_info( 'postedlooks' , $plno , "<span class='fs-text-red'>$rate</span> a comment" , $mno2 , 0 );
        $response = select_v3('posted_looks_comments', '*', "plcno = {$plcno}");
        $mno2 = $response[0]['mno'];
        $comment = $response[0]['msg'];
        $mc->set_notification_info('postedlooks', $plno, $rate, null, null, 0, 'rate_comment', $mno2, $comment);
        break;
    default:
        // echo " default";
        //this is the new version comment
        // lookdetails-dev.php is using this one
        $mc->print_look_comment_v1($mno, $plno, $comment, $post_comment, $dtime, $st, $nexprev, $_SESSION['sort_comment'], '../../../');
        /*
        	//this is the old version comment 
        	//lookdetails.php is using this one
        	$mc->post_look_comment(  $mno , $plno , $comment , $post_comment , $dtime , $st , $nexprev ,  $_SESSION['sort_comment'] , '../../../'  ); 	 
        */
        // $mc->set_notification_info( 'postedlooks' , $plno , "  <span class='fs-text-red'>commented</span> says: $comment " , $mno2 , 0 );
        $action = "<span class='fs-text-red'> commented </span> ";
        $mc->set_session_notification($mno, 'postedlooks', $plno, $action, $comment);
        break;
开发者ID:jesus143,项目名称:fs-dev,代码行数:31,代码来源:look-comments_display.php

示例2: array

				// $mc->resize_profile_pic_thumbnail_and_profile( $mno , $mppno );     

				$response = $mc->resize_image( 
				  	array( 
					    'id' =>$table_id,
					    'source' => "$mc->ppic_orginal/$mno.jpg",
					    'destination1' => "$mc->ppic_profile/$mppno.jpg",
					    'destination2' => "$mc->ppic_thumbnail/$mppno.jpg",
					    'width1' => 420,
					    'width2' => 170 
				  	)  
				);    

				// $mc->set_notification_info( 'fs_members' , $mno , null  ,  null , 0 , 'change-profile' );     
				// $mc->set_session_notification( $mno , 'fs_member_profile_pic' , $mppno , 'updated' , null , null , 'change-profile' , 0 );   
				$mc->set_notification_info( 'fs_member_profile_pic' ,  $mppno , null , null , null , 0 ,  'change-profile' );  
				//$mc->go( $mc->get_username_by_mno( $mno ) );
            $mc->go( 'home' );

			break;
        case 'profile-pic-welcome':
                echo " profile pic <br>";
                $mppno = $mc ->member_profile_pic_change( $mno );

                // $mc->resize_profile_pic_thumbnail_and_profile( $mno , $mppno );

                $response = $mc->resize_image(
                    array(
                        'id' =>$table_id,
                        'source' => "$mc->ppic_orginal/$mno.jpg",
                        'destination1' => "$mc->ppic_profile/$mppno.jpg",
开发者ID:jesus143,项目名称:fs-dev,代码行数:31,代码来源:photo.resize.php

示例3: array

	                            	$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' ); 
	                            // add or updated keyword 
	                            		$mc->fs_search(   array(  'type'=> 'add-or-updated-keyword' ,  'table_name'=>'fs_members' ,   'table_id'=>$mno1 )  );  
								// redirect to the main page   
	                                $_SESSION['type'] = 'new-member-fb-login';
	                                $_SESSION['temp_mno'] = $mno1;  
	                                $_SESSION['lastpagevisited'] = 'profile_crop_display.php'; 
									$mc->go( 'login-authentication' );   

						}    
		   	 
	    	?> 
	  	</body>
	</html>  
 
开发者ID:jesus143,项目名称:fs-dev,代码行数:29,代码来源:social-fblogin-authenticate.php


注:本文中的myclass::set_notification_info方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。