[Fusionforge-commits] r10902 - in trunk/src/www: forum/include include project tracker/include

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Fri Oct 8 16:31:51 CEST 2010


Author: aljeux
Date: 2010-10-08 16:31:50 +0200 (Fri, 08 Oct 2010)
New Revision: 10902

Modified:
   trunk/src/www/forum/include/ForumHTML.class.php
   trunk/src/www/include/user_home.php
   trunk/src/www/project/memberlist.php
   trunk/src/www/tracker/include/ArtifactHtml.class.php
Log:
Add user_logo hook in various place of the forge.

Modified: trunk/src/www/forum/include/ForumHTML.class.php
===================================================================
--- trunk/src/www/forum/include/ForumHTML.class.php	2010-10-08 14:31:45 UTC (rev 10901)
+++ trunk/src/www/forum/include/ForumHTML.class.php	2010-10-08 14:31:50 UTC (rev 10902)
@@ -263,6 +263,13 @@
 		'<table border="0" width="100%" cellspacing="0">
 			<tr>
 				<td class="tablecontent" style="white-space: nowrap;" valign="top">'; 
+
+		$params = array('user_id' => $msg->getPosterID(), 'size' => 's', 'content' => '');
+		plugin_hook_by_reference("user_logo", $params);
+		if ($params['content']) {
+			$ret_val .= $params['content'];
+		}
+
 		$ret_val .= $bold_begin. $msg->getSubject(). ' <a href="'.$url.'">[ '._("reply").' ]</a>'. $bold_end;
 		$ret_val .= '<br/>'._('By:').' '.util_make_link_u ($msg->getPosterName(),$msg->getPosterID(),$msg->getPosterRealName());
 		$ret_val .= ' on '.date('Y-m-d H:i',$msg->getPostDate());

Modified: trunk/src/www/include/user_home.php
===================================================================
--- trunk/src/www/include/user_home.php	2010-10-08 14:31:45 UTC (rev 10901)
+++ trunk/src/www/include/user_home.php	2010-10-08 14:31:50 UTC (rev 10902)
@@ -37,6 +37,11 @@
 
 <div about="" typeof="sioc:UserAccount" xmlns:sioc="http://rdfs.org/sioc/ns#">
 
+<table width="100%" cellpadding="2" cellspacing="2" border="0">
+<tr>
+	<td width="150"><?php plugin_hook("user_logo", array('user_id' => $user_id, 'size' => 'l')); ?></td>
+	<td>
+
 <table class="my-layout-table" id="user-profile-personal-info">
 <tr> 
 	<td>
@@ -140,6 +145,9 @@
     </td>
 </tr>
 </table>
+</td>
+</tr>
+</table>
 
 	<?php
 	if (forge_get_config('use_ratings')) {

Modified: trunk/src/www/project/memberlist.php
===================================================================
--- trunk/src/www/project/memberlist.php	2010-10-08 14:31:45 UTC (rev 10901)
+++ trunk/src/www/project/memberlist.php	2010-10-08 14:31:50 UTC (rev 10902)
@@ -100,8 +100,10 @@
 		$role_string = $user->getRole ($project)->getName() ;
 	}
 
-	echo '<td align="center">'.util_make_link_u ($user->getUnixName(),$user->getID(),$user->getUnixName()).'</td>
-	<td align="center">'.$role_string.'</td>';
+	echo '<td>';
+	echo util_display_user($user->getUnixName(),$user->getID(),$user->getUnixName(), 's');
+	echo '</td>';
+	echo '<td align="center">'.$role_string.'</td>';
 	if(forge_get_config('use_people')) {
 		echo '<td align="center">'.util_make_link ('/people/viewprofile.php?user_id='.$user->getID(),_('View')).'</td>';
 	}

Modified: trunk/src/www/tracker/include/ArtifactHtml.class.php
===================================================================
--- trunk/src/www/tracker/include/ArtifactHtml.class.php	2010-10-08 14:31:45 UTC (rev 10901)
+++ trunk/src/www/tracker/include/ArtifactHtml.class.php	2010-10-08 14:31:50 UTC (rev 10902)
@@ -66,8 +66,12 @@
 			echo $GLOBALS['HTML']->listTableTop ($title_arr);
 
 			for ($i=0; $i < $rows; $i++) {
-				echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'><td>'.
-					_('Date').': '.
+				echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'><td>';
+
+				$params = array('user_id' => db_result($result,$i,'user_id'), 'size' => 's');
+				plugin_hook("user_logo", $params);
+
+				echo _('Date').': '.
 					date(_('Y-m-d H:i'),db_result($result, $i, 'adddate')) .'<br />'.
 					_('Sender').': ';
 				if(db_result($result,$i,'user_id') == 100) {




More information about the Fusionforge-commits mailing list