[jboss-svn-commits] JBL Code SVN: r6387 - in labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views: profile topics

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sat Sep 23 17:28:44 EDT 2006


Author: unibrew
Date: 2006-09-23 17:28:42 -0400 (Sat, 23 Sep 2006)
New Revision: 6387

Modified:
   labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/profile/viewprofile_body.xhtml
   labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/topics/viewtopic_body.xhtml
Log:
[JBFORUMS-124] Repairing links to user's communicators, e-mail and  web page on TopicView and UserProfileView.

Modified: labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/profile/viewprofile_body.xhtml
===================================================================
--- labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/profile/viewprofile_body.xhtml	2006-09-23 20:11:22 UTC (rev 6386)
+++ labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/profile/viewprofile_body.xhtml	2006-09-23 21:28:42 UTC (rev 6387)
@@ -101,13 +101,11 @@
                      <span class="gen">
                         <c:if test="#{forums:userProperty(profile.poster.user.properties,'INFO_USER_HOMEPAGE')!=null}" >
                         <b>
-                            <h:outputLink value="${forums:userProperty(profile.poster.user.properties,'INFO_USER_HOMEPAGE')}" style="text-decoration: none;">
-                                <f:verbatim>
-                                    <img border="0"
-                                         src="#{forums:themeURL('resourceIconWWWURL')}"
-                                         alt="${resource.Visit_website}"/>
-                                </f:verbatim>
-                            </h:outputLink>
+                            <a href="${forums:userProperty(profile.poster.user.properties,'INFO_USER_HOMEPAGE')}" style="text-decoration: none;">
+                                 <img border="0"
+                                      src="#{forums:themeURL('resourceIconWWWURL')}"
+                                      alt="${resource.Visit_website}"/>
+                            </a>
                         </b>
                         </c:if>
                      </span>
@@ -153,13 +151,11 @@
                      <b>
                         <span class="gen">
                             <c:if test="#{profile.poster.user.fakeEmail!=null}" >
-                            <h:outputLink value="mailto:${profile.poster.user.fakeEmail}" style="text-decoration: none;">
-                                <f:verbatim>
+                               <a href="mailto:${profile.poster.user.fakeEmail}" style="text-decoration: none;">
                                     <img border="0"
                                          src="#{forums:themeURL('resourceIconEmailURL')}"
                                          alt="${resource.Send_email}"/>
-                                </f:verbatim>
-                            </h:outputLink>
+                               </a>
                             </c:if>
                         </span>
                      </b>
@@ -172,13 +168,11 @@
                   <td class="row1" valign="middle">
                      <span class="gen">
                         <c:if test="#{forums:userProperty(profile.poster.user.properties,'INFO_USER_IM_SKYPE')!=null}" >
-                        <h:outputLink value="skype:#{forums:userProperty(profile.poster.user.properties,'INFO_USER_IM_SKYPE')}?add" style="text-decoration: none;">
-                            <f:verbatim>
+                           <a href="skype:#{forums:userProperty(profile.poster.user.properties,'INFO_USER_IM_SKYPE')}?add" style="text-decoration: none;">
                                 <img border="0"
                                      src="#{forums:themeURL('resourceIconSkypeURL')}"
                                      alt="${resource.L_SKYPE}"/>
-                            </f:verbatim>                                    
-                        </h:outputLink>
+                           </a>
                         </c:if>
                      </span>
                   </td>
@@ -200,13 +194,11 @@
                   <td class="row1" valign="middle">
                      <span class="gen">
                         <c:if test="#{forums:userProperty(profile.poster.user.properties,'INFO_USER_IM_YIM')!=null}" >
-                        <h:outputLink value="http://edit.yahoo.com/config/send_webmesg?.target=#{forums:userProperty(profile.poster.user.properties,'INFO_USER_IM_YIM')}&amp;.src=pg" style="text-decoration: none;">
-                            <f:verbatim>
+                            <a href="http://edit.yahoo.com/config/send_webmesg?.target=#{forums:userProperty(profile.poster.user.properties,'INFO_USER_IM_YIM')}&amp;.src=pg" style="text-decoration: none;">
                                 <img border="0"
                                      src="#{forums:themeURL('resourceIconYIMURL')}"
                                      alt="${resource.YIM}"/>
-                            </f:verbatim>
-                        </h:outputLink>
+                            </a>
                         </c:if>
                      </span>
                   </td>
@@ -218,13 +210,11 @@
                   <td class="row1" valign="middle">
                      <span class="gen">
                         <c:if test="#{forums:userProperty(profile.poster.user.properties,'INFO_USER_IM_AIM')!=null}" >
-                        <h:outputLink value="aim:goim?screenname=#{forums:userProperty(profile.poster.user.properties,'INFO_USER_IM_AIM')}&amp;message=Hello+Are+you+there?" style="text-decoration: none;">
-                            <f:verbatim>
+                            <a href="aim:goim?screenname=#{forums:userProperty(profile.poster.user.properties,'INFO_USER_IM_AIM')}&amp;message=Hello+Are+you+there?" style="text-decoration: none;">
                                 <img border="0"
                                      src="#{forums:themeURL('resourceIconAIMURL')}"
                                      alt="${resource.AIM}"/>
-                            </f:verbatim>
-                        </h:outputLink>
+                            </a>
                         </c:if>
                      </span>
                   </td>
@@ -243,13 +233,11 @@
 			document.write('<table cellspacing="0" cellpadding="0" border="0"><tr><td nowrap="nowrap"><div style="position:relative;height:18px"><div style="position:absolute">${n:out("ICQ_IMG")}</div><div style="position:absolute;left:3px;top:-1px">${n:out("ICQ_STATUS_IMG")}</div></div></td></tr></table>');
 		  
 		  //--></script>
-                     <h:outputLink value="http://www.icq.com/scripts/search.dll?to=#{forums:userProperty(profile.poster.user.properties,'INFO_USER_IM_ICQ')}" style="text-decoration: none;">
-                         <f:verbatim>
-                             <img border="0"
-                                  src="#{forums:themeURL('resourceIconICQURL')}"
-                                  alt="${resource.ICQ}"/>
-                         </f:verbatim>
-                     </h:outputLink>
+                        <a href="http://www.icq.com/scripts/search.dll?to=#{forums:userProperty(profile.poster.user.properties,'INFO_USER_IM_ICQ')}" style="text-decoration: none;">
+                            <img border="0"
+                                 src="#{forums:themeURL('resourceIconICQURL')}"
+                                 alt="${resource.ICQ}"/>
+                        </a>
                      </c:if>
                   </td>
                </tr>

Modified: labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/topics/viewtopic_body.xhtml
===================================================================
--- labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/topics/viewtopic_body.xhtml	2006-09-23 20:11:22 UTC (rev 6386)
+++ labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/topics/viewtopic_body.xhtml	2006-09-23 21:28:42 UTC (rev 6387)
@@ -370,15 +370,15 @@
                                              alt="${resource.Read_profile}"/>
                                  </f:verbatim>
                               </h:outputLink>
-                              
-                              <h:outputLink value="#{forums:outputLink(shared.links['message'],true)}" style="text-decoration: none;">
+                              <!-- TODO: WAITING FOR MISSING FUNCTIONALITY --> 
+                              <!-- <h:outputLink value="#{forums:outputLink(shared.links['message'],true)}" style="text-decoration: none;">
                                 <f:param name="uid" value="#{postrow.poster.user.id}"/>
                                 <f:verbatim>
                                     <img border="0"
                                          src="#{forums:themeURL('resourceIconPMURL')}"
                                          alt="${resource.Private_Message}"/>
                                  </f:verbatim>
-                              </h:outputLink>
+                              </h:outputLink> -->
                               
                               <c:if test="${postrow.poster.user.fakeEmail ne null}">
                                  <a href="mailto:${postrow.poster.user.fakeEmail}" style="text-decoration: none;">
@@ -397,50 +397,44 @@
                                  </h:outputLink>
                               </c:if>
                               <c:if test="${forums:userProperty(postrow.poster.user.properties,'INFO_USER_IM_AIM') ne null}">
-                                 <h:outputLink value="aim:goim?screenname=#{forums:userProperty(postrow.poster.user.properties,'INFO_USER_IM_AIM')}&amp;message=Hello+Are+you+there?" style="text-decoration: none;">
-                                    <f:verbatim>
-                                        <img border="0"
-                                             src="#{forums:themeURL('resourceIconAIMURL')}"
-                                             alt="${resource.AIM}"/>
-                                    </f:verbatim>
-                                 </h:outputLink>
+                                 <a href="aim:goim?screenname=#{forums:userProperty(postrow.poster.user.properties,'INFO_USER_IM_AIM')}&amp;message=Hello+Are+you+there?" style="text-decoration: none;">
+                                     <img border="0"
+                                          src="#{forums:themeURL('resourceIconAIMURL')}"
+                                          alt="${resource.AIM}"/>
+                                 </a>
                               </c:if>
                               <c:if test="${forums:userProperty(postrow.poster.user.properties,'INFO_USER_IM_YIM') ne null}">
-                                 <h:outputLink value="http://edit.yahoo.com/config/send_webmesg?.target=#{forums:userProperty(postrow.poster.user.properties,'INFO_USER_IM_YIM')}&amp;.src=pg" style="text-decoration: none;">
-                                    <f:verbatim>
-                                        <img border="0"
-                                             src="#{forums:themeURL('resourceIconYIMURL')}"
-                                             alt="${resource.YIM}"/>
-                                    </f:verbatim>
-                                 </h:outputLink>
+                                 <a href="http://edit.yahoo.com/config/send_webmesg?.target=#{forums:userProperty(postrow.poster.user.properties,'INFO_USER_IM_YIM')}&amp;.src=pg" style="text-decoration: none;">
+                                     <img border="0"
+                                          src="#{forums:themeURL('resourceIconYIMURL')}"
+                                          alt="${resource.YIM}"/>
+                                 </a>
                               </c:if>
                               <c:if test="${forums:userProperty(postrow.poster.user.properties,'INFO_USER_IM_SKYPE') ne null}">
                                 <!-- TODO: some more functionality may be added. Like automatic skype instalation and status checker.-->
-                                 <h:outputLink value="skype:#{forums:userProperty(postrow.poster.user.properties,'INFO_USER_IM_SKYPE')}?add" style="text-decoration: none;">
-                                    <f:verbatim>
-                                        <img border="0"
-                                             src="#{forums:themeURL('resourceIconSkypeURL')}"
-                                             alt="${resource.L_SKYPE}"/>
-                                    </f:verbatim>                                    
-                                 </h:outputLink>
+                                 <a href="skype:#{forums:userProperty(postrow.poster.user.properties,'INFO_USER_IM_SKYPE')}?add" style="text-decoration: none;">
+                                     <img border="0"
+                                          src="#{forums:themeURL('resourceIconSkypeURL')}"
+                                          alt="${resource.L_SKYPE}"/>
+                                 </a>
                               </c:if>
                               <c:if test="${forums:userProperty(postrow.poster.user.properties,'INFO_USER_IM_MSNM') ne null}">
-                                 <h:outputLink value="#{forums:outputLink(shared.links['user'],true)}" style="text-decoration: none;">
-                                    <f:verbatim>
+                                 <h:outputLink value="#{forums:outputLink(shared.links['profile'],true)}" style="text-decoration: none;">
+                                     <f:param name="uid"
+                                              value="#{postrow.poster.user.id}"/>
+                                     <f:verbatim>
                                         <img border="0"
                                              src="#{forums:themeURL('resourceIconMSNMURL')}"
-                                             alt="${resource.MSNM}"/>
-                                    </f:verbatim>
-                                 </h:outputLink>
+                                             alt="${resource.Read_profile}"/>
+                                     </f:verbatim>
+                                  </h:outputLink>
                               </c:if>
                               <c:if test="${forums:userProperty(postrow.poster.user.properties,'INFO_USER_IM_ICQ') ne null}">
-                                 <h:outputLink value="http://www.icq.com/scripts/search.dll?to=#{forums:userProperty(postrow.poster.user.properties,'INFO_USER_IM_ICQ')}" style="text-decoration: none;">
-                                    <f:verbatim>
-                                        <img border="0"
-                                             src="#{forums:themeURL('resourceIconICQURL')}"
-                                             alt="${resource.ICQ}"/>
-                                    </f:verbatim>
-                                 </h:outputLink>
+                                 <a href="http://www.icq.com/scripts/search.dll?to=#{forums:userProperty(postrow.poster.user.properties,'INFO_USER_IM_ICQ')}" style="text-decoration: none;">
+                                     <img border="0"
+                                          src="#{forums:themeURL('resourceIconICQURL')}"
+                                          alt="${resource.ICQ}"/>
+                                 </a>
                               </c:if>
                               <!-- TODO: Status for ICQ. Might be cool for other communicators too.-->
                               <!--<script language="JavaScript"




More information about the jboss-svn-commits mailing list