Jump to content

Need help adding a link to an array


passionfish

Recommended Posts

I am trying to add a link to an array, here is the code:

 

echo elgg_view(

"profile/icon", array(

'entity' => $vars['entity'],

//'align' => "left",

'size' => $iconsize,

'override' => true,

)

);

 

and here is where i want it to go: /elgg/mod/profile/editicon.php

basically, that code generates a users profile picture, and i want to link the picture to the edit photo page.

Link to comment
https://forums.phpfreaks.com/topic/169696-need-help-adding-a-link-to-an-array/
Share on other sites

I don't get it.

 

like

echo elgg_view(
      "profile/icon", array(
            'entity' => $vars['entity'],
            //'align' => "left",
            'size' => $iconsize,
            'override' => true,
            'link' => '/elgg/mod/profile/editicon.php'
            )
);

?

that did not brake the page but did not add a link to the photo...here is the full page code, if that helps...

 

 

<?php

 

// wrap the icon and links in a div

echo "<div id=\"profile_info_column_left\">";

 

echo "<div id=\"profile_icon_wrapper\">";

// get the user's main profile picture

echo elgg_view(

"profile/icon", array(

'entity' => $vars['entity'],

//'align' => "left",

'size' => $iconsize,

'override' => true,

  )

);

 

 

 

 

 

 

 

    echo "</div>";

    echo "<div class=\"clearfloat\"></div>";

    // display relevant links

    echo elgg_view("profile/profilelinks", array("entity" => $vars['entity']));

/*

* MOD START by Snow

* Move aboutme to the left column

*

*/

    if ($vars['entity']->isBanned()) {

    echo '<div id="profile_banned">'.elgg_echo('profile:banned').'<div>';

    }else{

    echo '<p class="profile_aboutme_title"><b>'.elgg_echo("profile:aboutme").'</b>'.$vars['entity']->description.'</p>';

    }

/*

* MOD END by Snow

*/       

    // close profile_info_column_left

    echo "</div>";

 

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.