Plugin Directory

Changeset 1070454


Ignore:
Timestamp:
01/18/2015 03:42:42 PM (11 years ago)
Author:
aghajoon
Message:

mangaeedeshodamcheramanomigaeeeee

Location:
bp-cover
Files:
23 added
3 edited

Legend:

Unmodified
Added
Removed
  • bp-cover/trunk/bp-cover.php

    r1069949 r1070454  
    44Plugin URI:
    55Description: Adds cover image in profile page.
    6 Version: 0.1.0
     6Version: 0.1.1
    77Author: asghar hatampoor
    88Author URI: http://webcaffe.ir
     
    4343         return false;
    4444     $avatar = core_fetch_avatar_box( $avatar_options );
    45      $image=get_user_meta($user_id, 'profile_bg', true);
     45     $image=get_user_meta($user_id, 'bp_cover', true);
    4646     $author_id =  get_current_user_id();
    4747   
     
    119119 global $bp;
    120120  //delete the associated image and send a message
    121     $old_file_path=get_user_meta(bp_loggedin_user_id(), 'profile_bg_file_path',true);
     121    $old_file_path=get_user_meta(bp_loggedin_user_id(), 'cover_file_path',true);
    122122    if($old_file_path)
    123123          @unlink ($old_file_path);//remove old files with each new upload
    124      delete_user_meta(bp_loggedin_user_id(),'profile_bg_file_path');
    125      delete_user_meta(bp_loggedin_user_id(),'profile_bg'); 
     124     delete_user_meta(bp_loggedin_user_id(),'cover_file_path');
     125     delete_user_meta(bp_loggedin_user_id(),'bp_cover'); 
    126126      die();
    127127}
     
    133133     if(empty($user_id))
    134134         return false; 
    135      $image=get_user_meta($user_id, 'profile_bg', true);                 
     135     $image=get_user_meta($user_id, 'bp_cover', true);               
    136136          $filter = " <div class='image-upload-container'>
    137137                 <img class='img-profile-header-background' id='user-banner-image'
     
    198198            }
    199199         } */
    200         update_user_meta(bp_loggedin_user_id(),'profile_bg',$fileurl);
    201         update_user_meta(bp_loggedin_user_id(),'profile_bg_file_path',$fileurl);
     200        update_user_meta(bp_loggedin_user_id(),'bp_cover',$fileurl);
     201        update_user_meta(bp_loggedin_user_id(),'cover_file_path',$fileurl);
    202202        do_action('bp_cover_uploaded',$fileurl);
    203203      } else {
     
    299299     if(empty($user_id))
    300300         return false;
    301      $image=get_user_meta($user_id, 'profile_bg', true);     
     301     $image=get_user_meta($user_id, 'bp_cover', true);   
    302302     $filter .= "<img class='bp-cover' src='$image'  />";       
    303303        return $filter;
  • bp-cover/trunk/css/bp-cover.css

    r1070382 r1070454  
    1111#latest-update,
    1212#item-header-avatar img{
    13    display:none;
     13   display:none ;
    1414   
    1515}
     
    6262    height:auto;
    6363    bottom: 0px;
    64     left: 0px;
    65     padding-left: 170px;
    6664    border-bottom-right-radius: 3px;
    6765    border-bottom-left-radius: 3px;
    6866    color: #FFF;
    69    
     67    width:100%;
    7068    background: linear-gradient(to bottom, transparent 0%, transparent 1%, rgba(0, 0, 0, 0.58) 100%) repeat scroll 0% 0% transparent;
    7169    position: absolute;
    7270    padding-top: 20px;
     71    text-align: left !important;
     72   
    7373}
    7474.panel-profile-header .img-profile-data h1 {
     
    7676    font-weight: 100;
    7777    margin-bottom: 0px;
    78     color: #FFF;
     78    color: #FFF!important;
     79    padding-left: 170px;
    7980}
    8081.panel-profile-header .img-profile-data h2 {
     
    8283    font-weight: 400;
    8384    margin-top: 0px;
     85    padding-left: 170px;
     86    color: #FFF!important;
    8487}
    8588.profile-user-photo-container .img-rounded {
     
    217220  display:block !important;
    218221}
     222.bp-cover{   
     223    height:300px;
     224    width: auto;
     225}
  • bp-cover/trunk/readme.txt

    r1069949 r1070454  
    55Requires at least: 4.1
    66Tested up to: 4.1
    7 Stable tag: 0.1.0
     7Stable tag: 0.1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1414
    1515BuddyPress Cover It allows users to have a cover profile.
     16
    1617Allow you add upload avatar function with ajax in profile
    1718
     
    3839== Changelog ==
    3940
     41= 0.1.1 =
     42- fix css
     43
    4044= 0.1.0 =
    4145- Initial Release.
Note: See TracChangeset for help on using the changeset viewer.