Friend request v4.0

Release Notes

4.0 (2014-11-10):

  • changes for Elgg 1.9
  • Can you please explain what has changed or been fixed in the new version. I am using coldtricks friend request with a minor issue, maybe this release fixes my problem.

     

    My problem with coldtricks friend request was that if a admin and user become friends under the user and admins profile icon it still says pending request, does this release fix this?

     

     

  • @Digital Coin Forums - Social Crypto Network

    Can you please explain what has changed or been fixed in the new version.

    Nothing ;)

    The plugin was made compatible with Elgg 1.9 as some functions got renamed or where no longer necessary

    I am using coldtricks friend request with a minor issue, maybe this release fixes my problem.

    My problem with coldtricks friend request was that if a admin and user become friends under the user and admins profile icon it still says pending request, does this release fix this?

    In testing this release I didn't encounter this bug, so maybe this is fixed ;)

  • SWEET, whatever you did fixed my issue I have been having for a few weeks!!!

     

    You are the man.

  • ha ha ha i just realized you are coldtrick lol

     

    I use a ton of your addons

     

  • Hi thanks for the plugin. i'm using it on my 1.9.8 site and it works great. Just 1 query if i may, how can i stop the river / wire posts for friendships?

    Thanks

  • @Vextah

    Hi thanks for the plugin. i'm using it on my 1.9.8 site and it works great. Just 1 query if i may, how can i stop the river / wire posts for friendships?

    Check out these parts of the code

    https://github.com/ColdTrick/friend_request/blob/master/actions/friends/add.php#L39-L50

    https://github.com/ColdTrick/friend_request/blob/master/actions/approve.php#L27-L38

  • Thank you, i take it i just comment out each line?

  • @Vextah

    Thank you, i take it i just comment out each line?

    correct

  • Hmmmm, i added the // to each line but i got a blank white page upon the approves...

  • @Vextah

    Hmmmm, i added the // to each line but i got a blank white page upon the approves...

    Then you commented out too much or to little, I think ;)

  • // add to river
           // elgg_create_river_item(array(
              //  "view" => "river/relationship/friend/create",
             //   "action_type" => "friend",
              //  "subject_guid" => $user->getGUID(),
              //  "object_guid" => $friend->getGUID(),
            ));
          //  elgg_create_river_item(array(
             //   "view" => "river/relationship/friend/create",
              //  "action_type" => "friend",
              //  "subject_guid" => $friend->getGUID(),
              //  "object_guid" => $user->getGUID(),
            ));

     

    and

    // add to river
             //   elgg_create_river_item(array(
                  //  "view" => "river/relationship/friend/create",
                  //  "action_type" => "friend",
                 //   "subject_guid" => $user->getGUID(),
                 //   "object_guid" => $friend->getGUID(),
                ));
              //  elgg_create_river_item(array(
               //     "view" => "river/relationship/friend/create",
                 //   "action_type" => "friend",
                  //  "subject_guid" => $friend->getGUID(),
                 //   "object_guid" => $user->getGUID(),
                ));

    That is not correct?

  • @Vextah

    your missing the comment lines on the lines with

    ));

  • Since we aren't suppose to edit the core, is it not also a good idea not to edit plugins (unless we document the changes for when we upgrade)?

    If it isn't too difficult, perhaps with the next release, if there is a next release, add the feature setting to not post river / wire posts for friendships.

    I like and use the plugin and while it's not a huge deal, if you have a lot of friend requests on a busy community, users may not care for the postings.

  • @Dan

    If it isn't too difficult, perhaps with the next release, if there is a next release, add the feature setting to not post river / wire posts for friendships.

    https://github.com/ColdTrick/friend_request/issues/5

  • @Jerome

    Doh! I forgot about posting it on github. At least Vextah thought of it.

  • Umm, i didnt, he did it himself :p

  • Hi all,

    I have traslated the language file in italian as you can see:
     

    <?php
    $language = array(
        'friend_request' => "Richiesta di amicizia",
        'friend_request:menu' => "Richieste di amicizia",
        'friend_request:title' => "Richieste di amicizia per: %s",

        'friend_request:new' => "Nova richiesta di amicizia",
        
        'friend_request:friend:add:pending' => "Richieste di amicizia in attesa",
        
        'friend_request:newfriend:subject' => "%s vuole essere tuo amico!",
        'friend_request:newfriend:body' => "%s vogliono essere tuoi amici! Sono in attesa che tu approvi la loro richiesta... effettua il login pr poter approvare le richieste!

    Puoi vedere le richieste in attesa qui:
    %s

    Assicurati di esserti loggato sul sito prima di cliccare sul link precedente altrimenti sarai reindirizzato alla pagina di login.

    (Non rispondere a questa mail.)",
            
        // Actions
        // Add request
        'friend_request:add:failure' => "Spiacente, a causa di un errore di sistema non é stato possibile elaborare la tua richiesta. Riprova.",
        'friend_request:add:successful' => "Hai chiesto l'amicizia a %s. Questi devono approvare la tua richiesta prima che compaiano nella tua lista di amicizie.",
        'friend_request:add:exists' => "Hai giá chiesto l'amicizia a %s.",
        
        // Approve request
        'friend_request:approve' => "Approva",
        'friend_request:approve:subject' => "%s ha accettato la tua richiesta di amicizia",
        'friend_request:approve:message' => "Caro %s,

    %s ha accettato la tua richiesta di amicizia.",
        'friend_request:approve:successful' => "%s ora é un amico",
        'friend_request:approve:fail' => "Errore durante la creazione del vincolo di amicizia con %s",

        // Decline request
        'friend_request:decline' => "Respingi",
        'friend_request:decline:subject' => "%s ha respinto la tua richiesta di amicizia",
        'friend_request:decline:message' => "Caro %s,

    %s ha respinto la tua richiesta di amicizia.",
        'friend_request:decline:success' => "Richiesta di amicizia respinta",
        'friend_request:decline:fail' => "Errore durante la registrazione del rifiuto dell'amicizia, riprova",
        
        // Revoke request
        'friend_request:revoke' => "Revoca",
        'friend_request:revoke:success' => "Amicizia revocata",
        'friend_request:revoke:fail' => "Errore  durante la revoca dell'amicizia, riprova",

        // Views
        // Received
        'friend_request:received:title' => "Richieste di amicizia ricevute",
        'friend_request:received:none' => "Non ci sono richieste di amicizia in attesa di essere accetatte da te",

        // Sent
        'friend_request:sent:title' => "Richieste di amicizia inviate",
        'friend_request:sent:none' => "Non ci sono richieste di amicizia inviate in attesa di essere accettate",
    );
                    
    add_translation("it", $language);

     

    The file name is it.php and I have saved it in language directory of the plug in but I see friend section in english...

    In Elgg setting I have selected Italian as default language!...
     

    Can someone help me? Thanks so mutch

     

  • @Pietro Ricciardi

    The file name is it.php and I have saved it in language directory of the plug in but I see friend section in english...

    In Elgg setting I have selected Italian as default language!...
     

    Can someone help me? Thanks so mutch

    Is your personal setting also Italian? Check under Settings (where you can also change your password).

  • I have seen now and, of course, my personal settings have italian as language!

  • Oh.. Flushing the site in control pannel, I see traslation.... 
    Thaks to all so mutch... I hope that italian translation cuould be iteresting for someone...  see you
     

     

Jerome Bakker

Developer @ ColdTrick IT Solutions

Stats

  • Category: Tools
  • License: GNU General Public License (GPL) version 2
  • Updated: 2016-11-18
  • Downloads: 34730
  • Recommendations: 100

Other Projects

View Jerome Bakker's plugins