HomeHelpTrac

Ignore:
Timestamp:
01/20/09 05:17:52 (3 years ago)
Author:
Alexander Ermashev
Message:

List of changes

  • Correct the per_page_step condition into "inc/classes/BxDolPaginate.php";
  • Set up the per page step into "templates/scripts/classes/BxBaseBrowse.php";
  • Change the greet.php (add the code that send message also into member's site personal mailbox );
  • Fix member's actions window size into mailbox ;
  • add new sql query into "periodic/cmd.php" that will delete all trashed messages ;
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/base/scripts/BxBaseCommunicator.php

    r8627 r8652  
    5858                'action_hotlist_delete'      => 'communicator_page_delete_hotlist.html', 
    5959                'action_hotlist_add'         => 'communicator_page_add_hotlist.html', 
     60                'action_greet_delete'        => 'communicator_page_delete_greeting.html', 
    6061            ); 
    6162        } 
     
    7273            $aTopToggleItems = array 
    7374            ( 
    74                 'greeting_requests'  =>  _t( '_Greeting Requests' ), 
    75                 'hotlist_requests'  =>  _t( '_Hotlist Requests' ), 
     75                'greeting_requests' =>  _t( '_Greetings' ), 
     76                'hotlist_requests'  =>  _t( '_Hotlists' ), 
    7677                'friends_requests'  =>  _t( '_MEMBERS_INVITE_YOU_FRIENDLIST' ), 
    7778            ); 
     
    129130                'back_invite' => _t( '_Back Invite' ), 
    130131                'hotlist_add' => _t( '_Add to Hot List' ), 
     132                'visitor'     => _t( '_Visitor' ),   
    131133            ); 
    132134 
     
    140142                        'to'    => _t( '_MEMBERS_YOU_INVITED_FRIENDLIST' ) 
    141143                   ); 
    142  
    143                    $aRows = $this -> getRequests( 'FriendList', ' AND `FriendList`.`Check` = 0 ',  $aTypes); 
     144                   $aRows = $this -> getRequests( 'FriendList', $aTypes, ' AND `FriendList`.`Check` = 0 '); 
    144145                break; 
    145146 
     
    150151                        'to'    => _t( '_MEMBERS_YOU_HOTLISTED_BY' ) 
    151152                    ); 
    152  
    153                     $aRows = $this -> getRequests( 'HotList', null,  $aTypes); 
     153                    $aRows = $this -> getRequests( 'HotList', $aTypes); 
    154154                break; 
    155155 
     
    157157                    $aTypes = array 
    158158                    (  
    159                         'from'  => _t( '_MEMBERS_YOU_KISSED' ), 
    160                         'to'    => _t( '_MEMBERS_YOU_KISSED_BY' ) 
     159                        'from'          => _t( '_MEMBERS_YOU_KISSED' ), 
     160                        'to'            => _t( '_MEMBERS_YOU_KISSED_BY' ), 
     161                        'specific_key'  => '_N times', 
    161162                    ); 
    162  
    163                     $aRows = $this -> getRequests( 'VKisses', null,  $aTypes); 
     163                    $aRows = $this -> getRequests( 'Greetings', $aTypes, null, 'Number' ); 
    164164                break; 
    165165 
     
    170170                        'to'    => _t( '_MEMBERS_YOU_INVITED_FRIENDLIST' ) 
    171171                    ); 
    172  
    173                     $aRows = $this -> getRequests( 'FriendList', ' AND `FriendList`.`Check` = 0 ',  $aTypes); 
     172                    $aRows = $this -> getRequests( 'FriendList', $aTypes, ' AND `FriendList`.`Check` = 0 ' ); 
    174173            } 
    175174 
     
    221220                foreach($aRows AS $iKey => $aItems ) 
    222221                { 
    223                     // some member's information ; 
    224                     $aProfileInfo    = getProfileInfo ($aItems['member_id']); 
    225                     $sMemberIcon     = get_member_icon($aItems['member_id'], 'left'); 
    226                     $sMemberLocation = getProfileLink ($aItems['member_id']); 
    227  
    228                     $sMemberNickName  = $aProfileInfo['NickName']; 
    229                     $sMemberAge = ( $aProfileInfo['DateOfBirth'] != "0000-00-00" )  
    230                         ? _t( "_y/o", age($aProfileInfo['DateOfBirth']) )  
    231                         : null; 
    232  
    233                     $sMemberCountry =  $aProfileInfo['Country']; 
    234                     $sMemberFlag    =  $site['flags'] . strtolower($sMemberCountry) . $this -> sMembersFlagExtension; 
    235                     $sMemberSexImg  =  $oFunctions -> genSexIcon($aProfileInfo['Sex']); 
    236  
    237                     if ( $sMemberCountry ) 
    238                         $sMemberCountryFlag = '<img src="' . $sMemberFlag . '" alt="' . $sMemberCountry . '" />'; 
     222                    // if member not a visitor ; 
     223                    if ( $aItems['member_id'] ) 
     224                    { 
     225                        // ** some member's information ; 
     226                        $aProfileInfo    = getProfileInfo ($aItems['member_id']); 
     227 
     228                        // member's Icon ; 
     229                        $sMemberIcon     = get_member_icon($aProfileInfo['ID'], 'left'); 
     230 
     231                        // member's profile location ; 
     232                        $sMemberLocation = getProfileLink ($aProfileInfo['ID']); 
     233 
     234                        // member's nickname ; 
     235                        $sMemberNickName  = $aProfileInfo['NickName']; 
     236 
     237                        // define the member's age ; 
     238                        $sMemberAge = ( $aProfileInfo['DateOfBirth'] != "0000-00-00" )  
     239                            ? _t( "_y/o", age($aProfileInfo['DateOfBirth']) )  
     240                            : null; 
     241 
     242                        // define the member's country, sex, etc ... ; 
     243                        $sMemberCountry =  $aProfileInfo['Country']; 
     244                        $sMemberFlag    =  $site['flags'] . strtolower($sMemberCountry) . $this -> sMembersFlagExtension; 
     245                        $sMemberSexImg  =  $oFunctions -> genSexIcon($aProfileInfo['Sex']); 
     246 
     247                        if ( $sMemberCountry ) 
     248                            $sMemberCountryFlag = '<img src="' . $sMemberFlag . '" alt="' . $sMemberCountry . '" />'; 
     249                    } 
     250                    else 
     251                    { 
     252                        // ** if it's a visitor 
     253 
     254                        // member's Icon ; 
     255                        $sMemberIcon        = $aLanguageKeys['visitor']; 
     256 
     257                        // member's profile location ; 
     258                        $sMemberLocation    = null; 
     259                        $sMemberSexImg      = null; 
     260                        $sMemberAge         = null; 
     261                        $sMemberCountryFlag = null; 
     262                        $sMemberCountry     = null; 
     263                    } 
    239264 
    240265                    // color devider ;   
     
    244269                    ( 
    245270                        'filled_class'  => $sFiledCss, 
    246                          
     271 
    247272                        'row_value'     => $aItems['member_id'], 
    248273                        'member_icon'   => $sMemberIcon, 
    249274 
    250                         'member_location' => $sMemberLocation, 
    251                         'member_nickname' => $sMemberNickName, 
    252                         'member_sex_img'  => $sMemberSexImg, 
    253                         'member_sex'      => $aProfileInfo['Sex'], 
     275                        // define the profile page location ; 
     276                        'member_location' => ( $sMemberLocation )  
     277                            ? '<a href="' . $sMemberLocation . '">' . $sMemberNickName . '</a>' : null, 
     278 
     279                        // define the member's sex ; 
     280                        'member_sex_img'  => ( $sMemberSexImg )  
     281                            ? ' <img src="' . $sMemberSexImg . '" alt="' . $aProfileInfo['Sex'] . '" />' : null , 
     282 
    254283                        'member_age'      => $sMemberAge, 
    255284                        'member_flag'     => $sMemberCountryFlag, 
     
    295324                                $sActionsList = $oSysTemplate -> parseHtmlByName( $this -> aUsedTemplates['action_friends_accept'], $aTemplateKeys ); 
    296325                            break; 
     326 
    297327                            case 'from' : 
    298328                                $aTemplateKeys = array 
     
    304334                        } 
    305335                    break; 
     336 
    306337                    case 'hotlist_requests' : 
    307338                        // define the person mode ; 
     
    309340                        { 
    310341                            case 'to' : 
    311                                  $aTemplateKeys = array 
     342                                $aTemplateKeys = array 
    312343                                ( 
    313344                                    'add' => $aLanguageKeys['hotlist_add'], 
     
    316347  
    317348                            break; 
     349 
    318350                            case 'from' : 
    319351                                $aTemplateKeys = array 
     
    324356                            break; 
    325357                        } 
     358                    break; 
     359 
     360                    case 'greeting_requests' : 
     361                        $aTemplateKeys = array 
     362                        ( 
     363                            'delete' => $aLanguageKeys['delete'], 
     364                        ); 
     365                        $sActionsList = $oSysTemplate -> parseHtmlByName( $this -> aUsedTemplates['action_greet_delete'], $aTemplateKeys ); 
    326366                    break; 
    327367                } 
Note: See TracChangeset for help on using the changeset viewer.