Annivzinal

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • Annivzinal replied on the discussion topic How to change the footer text.?
    Thanks all for these answers. I am not good enough to create a new plugin. I tried the plugin Debrand elgg as the powered by ellg don't work for me... The pluging debrand_elgg seems to be the one I need. I just want to add my name after the... view reply
  • Annivzinal replied on the discussion topic How to change the footer text.?
    I'll try, thanks view reply
  • Annivzinal added a new discussion topic How to change the footer text.? in the group General Discussion
    Hi, I want to modify the footer ("Powered by Ellg) with copyrights and credits.   How can I make it? I tried to modify directly in the footer.php but nothing works.. I am using Elgg 2.1 and Aalborg Theme Thanks a lot
    • @Annivzinal If your goal is editing 'Powered by Elgg' menu item on your own custom text and link then you can try this plugin.

    • If you just want to change the footer link text (and the url it points to), you can use the plugin @RvR linked to.

      If you would want to customize the footer some more, it would be best to create a little plugin for that on your own or extend some other already existing "customization" plugin you already use with the necessary changes.

      The footer link "Powered by Elgg" (and also the links to the external pages) are actually menu items of the "footer" menu. These entries are registered by Elgg core and the external_pages plugin but can be unregistered again quite simply if you add the necessary code in your "customization plugin". With the line

      elgg_register_menu_item('footer', 'powered');

      added in the init function of your plugin the "Powered by Elgg" link would be gone. If you want to make further adjustments to the footer layout or content you would have to override the core view vendor/elgg/elgg/views/default/page/elements/footer.php. You would start with copying this file to your plugin and place the copy in mod/my_plugin/views/default/page/elements/footer.php. Then you could change it for example to

      <?php
      echo elgg_view_menu('footer', ['sort_by' => 'priority', 'class' => 'elgg-menu-hz']);
      
      echo elgg_format_element('div', ['class' => 'clearfloat elgg-menu-footer-default'], elgg_echo('my_plugin:copyright_text'));

      and add the text you would want to be displayed as copyright info in the language file of your plugin as the language string

      'my_plugin:copyright_text' => "(c) bla bla",

      Of course further customizations would be possible to be made to footer.php if required.

    • Thanks all for these answers. I am not good enough to create a new plugin. I tried the plugin Debrand elgg as the powered by ellg don't work for me...

      The pluging debrand_elgg seems to be the one I need. I just want to add my name after the credits. Here is the code of the start file:

      <?php
      // start.php

      elgg_register_event_handler('init', 'system', function() {

      $sitenamecopyr = elgg_get_site_entity()->name;
      $current_year = date('Y');
      /**
      * ALL CUSTOMIZATIONS GO HERE
      */
      // Replace the footer menu item powered
      elgg_unregister_menu_item('footer', 'powered');
      elgg_register_menu_item('footer', array(
      'name' => 'powered',
      'text' => elgg_echo("$sitenamecopyr © $current_year
       "),
      // 'text' => elgg_echo('© Skynet
       '),
      'href' => '#',
      'title' => elgg_echo("$sitenamecopyr © $current_year"),
      'section' => 'meta',
      ));
      });

      Can you help me?

      Thanks a lot

  • I am using notification plugin and advanced notification but I am not very conviced   Thx for help
  • Annivzinal added a new discussion topic Looking for a way to re-share a post in the river. in the group General Discussion
    Hello, is there a way to re-share a post in the river? I mean if someone posted an image, is there a way to have a shere button in the river (like retweet on twitter or share in fb..) thanks for answer
  • Annivzinal replied on the discussion topic Random background image
    Thanks for your answers.   I am working for a touristic destination and our force are wonderful landscapes. I agree with you for white backrounds, but in this special case, my site with white bg is not "sexy" enough to fit with... view reply
  • Annivzinal replied on the discussion topic Random background image
    I am trying a lot of codes found on the net. It appears that there is a way using php and css. Il  i choose this way, how can I do? Where must I save the php file? thx view reply
  • Annivzinal added a new discussion topic Random background image in the group Theme Development
    Hi, I've modified Aalborg thème to put a background image to my site. I have pasted the following code into: mod/aalborg_theme/views/default/elements/layout.css body {     color:black;   ...
    • @Matt Beckett

      there's no pure css way

      There's CSS way ;)

    • Thanks for your answers.

       

      I am working for a touristic destination and our force are wonderful landscapes. I agree with you for white backrounds, but in this special case, my site with white bg is not "sexy" enough to fit with our image...

      I've managed to make a bg image, with white, transparent blocks (for activity, groups...). It looks quite good and still responsive so it appears on mobile (tested).

      So if I exclude bg image, is there others ways to enhanced aalborg theme visually? To make it more attractive for the visitor?

      And if I decide to continue in this way? Where must I save the pp file? and the css?

      @RvR

      If there is a css only way, can you give me this way?

      Thanks all for taking time for a noobie like me ;)

       

    • If RvR has a css way then great!

      Otherwise use my class switching method by overriding the page/default view and picking from a list of classes at random.