Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • MaddinB replied on the discussion topic Changing elgg date format
    Thank you, I'll try this... view reply
  • MaddinB added a new discussion topic Changing elgg date format in the group Plugin Development
    Where is the date format defined in elgg? I don't want to use July 28, 2012  , but something like 28.07.2012. On views/default/output there's a file containing: if ($vars['value'] > 86400) {    echo date("F j,...
  • MaddinB replied on the discussion topic Get entries from profile to language
    So, I add                     $School=    $performed_by->SchoolMetaDataName;    $School=    "?Student`NoWhere?";  ... view reply
  • MaddinB added a new discussion topic Get entries from profile to language in the group Plugin Development
    Hi, does anybody know how to get entries in the profile and add it to the language file? One example: When user A has written into his profile: school:Harvard, user B: school: Cambridge and user C has nothing, then I want to get these informations...
    • something like ==>

      <?php
      //
          /**        e1715\mod\profile\views\default\river\user\default\profileupdate.php    **/
          $performed_by = get_entity($vars['item']->subject_guid); // $statement->getSubject();
          /**    'profile:river:update' => "
                  %s                                updated their profile    ",
                  User A, a <Harvard student>        updated their profile
                      $School=$performed_by->name
                      $School = $performed_by->SchoolMetaDataName        **/
          $School=    $performed_by->SchoolMetaDataName;
          $School=    "?Student`NoWhere?";
          if    ($School==Harvard)
              $School=    ", a Harvard student";
          if    ($School==Cambridge)
              $School=    ", a Cambridge student"
          $School=$performed_by->name.$School;
      //
          $url = "<a href=\"{$performed_by->getURL()}\">{$School}</a>";
          $string = sprintf(elgg_echo("profile:river:update"),$url);
      ?>
      <?php
      echo $string;
      ?>

    • So, I add                
          $School=    $performed_by->SchoolMetaDataName;
          $School=    "?Student`NoWhere?";
          if    ($School==Harvard)
              $School=    ", a Harvard student";
          if    ($School==Cambridge)
              $School=    ", a Cambridge student"
          $School=$performed_by->name.$School;

      to the en.php? Or the commented part? What I want to make is that I only have to modify the en.php. Is there any way to do it? With a code that is possible to do this, you are able to make many plugins to make your site better for the users...

  • MaddinB joined the group General Discussion
  • MaddinB added a new discussion topic Profil-Tags großschreiben? in the group German Support Group
    Hallo, gibt es eine Möglichkeit, die Tags in Profilen auch groß zu schreiben? Momentan ist das so, dass (elgg 1.7.7) beim Speichern alles klein gemacht wird. Das sieht natürlich nicht sehr gut aus... Aber auch die Suchfunktion...
  • MaddinB joined the group German Support Group
  • MaddinB replied on the discussion topic Hype comments
    Danke. Ich habe bisher leider noch nichts dergleichen im Quelltext gesehen (hatte gehofft, dass das vielleicht einfach nur auskommentiert war). Aber mit add_to_river() werde ich's mal probieren... Das Hinzufügen ist eben dann wichtig, wenn die... view reply