passionfish Posted August 11, 2009 Share Posted August 11, 2009 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 More sharing options...
play_ Posted August 11, 2009 Share Posted August 11, 2009 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' ) ); ? Link to comment https://forums.phpfreaks.com/topic/169696-need-help-adding-a-link-to-an-array/#findComment-895216 Share on other sites More sharing options...
passionfish Posted August 11, 2009 Author Share Posted August 11, 2009 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>"; ?> Link to comment https://forums.phpfreaks.com/topic/169696-need-help-adding-a-link-to-an-array/#findComment-895226 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.