Where is the footer in files please ?

hi there, where is this footer in files please ? i just want to add a link, i tried a footer plugin but it created a oversized footer for me and took your elgg link away.

i understand not changing the core due to upgrading but i'm happy with this for this.

 

thank you 

 

 

 

  • @RvR thats the one i tried sorry

     

     

  • Open start.php in my plugin and edit this code:

    function powered_by_elgg_init() {
    	elgg_register_menu_item('footer', ElggMenuItem::factory(array(
    		'name' => 'powered',
    		'text' => elgg_get_plugin_setting('footer_name', 'powered_by_elgg'),
    		'href' => elgg_get_plugin_setting('footer_link', 'powered_by_elgg'),
    		'section' => 'meta',
    		'priority' => 1,
    	)));
            
            elgg_register_menu_item('footer', ElggMenuItem::factory(array(
    		'name' => 'YOUR_NAME',
    		'text' => 'YOUR_TEXT',
    		'href' => 'YOUR_URL',
    		'section' => 'meta',
    		'priority' => 2,
    	)));
    }

    Add:

          elgg_register_menu_item('footer', ElggMenuItem::factory(array(
    		'name' => 'YOUR_NAME',
    		'text' => 'YOUR_TEXT',
    		'href' => 'YOUR_URL',
    		'section' => 'meta',
    		'priority' => 2, //change +1 from previous
    	)));

    So many as you need.

  • @RvR thank you thats worked :)

     

     

  • sorry i forgot to say it took your elgg link out, how would like it back ? text n url please

     

     

    thank you 

  • If you want to edit 'Powered by Elgg" then go to plugin's settings and configure it.

    If you want to save this link by default then change it on the plugin's settings:

    Link: https://elgg.org
    
    Text: Powered by Elgg

    You can delete this code also (returns 'PbE' by default):

    elgg_register_menu_item('footer', ElggMenuItem::factory(array(
    	'name' => 'powered',
    	'text' => elgg_get_plugin_setting('footer_name', 'powered_by_elgg'),
    	'href' => elgg_get_plugin_setting('footer_link', 'powered_by_elgg'),
    	'section' => 'meta',
    	'priority' => 1,
    )));
  • sorry, i just want elggs link and text please to add ... thank you :) 

  • You can delete this code also (returns 'PbE' by default):

    elgg_register_menu_item('footer', ElggMenuItem::factory(array(
    	'name' => 'powered',
    	'text' => elgg_get_plugin_setting('footer_name', 'powered_by_elgg'),
    	'href' => elgg_get_plugin_setting('footer_link', 'powered_by_elgg'),
    	'section' => 'meta',
    	'priority' => 1,
    )));
  • sorry i don't you quite understand sorry, or i'm not explaining enough.

     

    what text do you want as the elgg link ? 

     

    sorry my bad :/

  •  

    iv put it like this, is this ok ?