Merge the staff block with the members block [Deleted]

When you are following someone the Members heading shows, if youre not following anyone it doesnt show

Members heading not showing
nofollow.webp
Members heading showing
following.webp

I know you've fixed it on TAZ, what needs to be change.
 
Great @Russ thank you. I used version 3 and added the code in extra.css and it worked great other than "members" Text not showing. I tried the above fix with no changes. merge.webp
 
Last edited:
Version 3 by default changes the members to a h4.

I can check your site tomorrow to see what may be going on.
 
Thanks man, I have looked at the code over and over and it looks fine. I'm sure something is just in the wrong location.
 
Here is my current code if that helps.

Code:
<div class="userList WidgetFramework_WidgetRenderer_OnlineUsers">
   <xen:if is="{$onlineUsers.records}">
     <xen:if is="{$widget.options.hide_following} == 0 AND {$visitor.user_id}">
       <xen:if hascontent="true">
       <h4 class="minorHeading"><a href="{xen:link account/following}">{xen:phrase people_you_follow}:</a></h4>
       <ul class="followedOnline">
         <xen:contentcheck>
           <xen:foreach loop="$onlineUsers.records" value="$user">
             <xen:if is="{$user.followed}">
               <li title="{$user.username}" class="Tooltip user-{$user.user_id}"><xen:avatar user="$user" size="s" img="true" class="_plainImage" /></li>
             </xen:if>
           </xen:foreach>
         </xen:contentcheck>
       </ul>
       <h4 class="minorHeading"><a href="{xen:link members}">{xen:phrase members}:</a></h4>
       </xen:if>
     </xen:if>
     
     <ol class="listInline">
       <xen:foreach loop="$onlineUsers.records" value="$user" i="$i">
         <xen:if is="{$i} <= {$onlineUsers.limit}">
           <li class="user-{$user.user_id}">
           <xen:if is="{$user.user_id}">
             <xen:username user="$user" rich="{$widget.options.rich}" class="{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}" /><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
           <xen:else />
             {xen:phrase guest}<xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
           </xen:if>
           </li>
         </xen:if>
       </xen:foreach>
       <xen:if is="{$onlineUsers.recordsUnseen}">
         <li class="moreLink">... <a href="{xen:link online}" title="{xen:phrase see_all_visitors}">{xen:phrase and_x_more, 'count={xen:number $onlineUsers.recordsUnseen}'}</a></li>
       </xen:if>
     </ol>
   </xen:if>
   
   <div class="footnote">
     <xen:if is="isset({$onlineUsers.robots})">
       {xen:phrase online_now_x_members_y_guests_z_robots_a, 'total={xen:number $onlineUsers.total}', 'members={xen:number $onlineUsers.members}', 'guests={xen:number $onlineUsers.guests}', 'robots={xen:number $onlineUsers.robots}'}
     <xen:else />
       {xen:phrase online_now_x_members_y_guests_z, 'total={xen:number $onlineUsers.total}', 'members={xen:number $onlineUsers.members}', 'guests={xen:number $onlineUsers.guests}'}
     </xen:if>
   </div>
</div>
 
Move the h4:

Code:
<h4 class="minorHeading"><a href="{xen:link members}">{xen:phrase members}:</a></h4>
</xen:if>
</xen:if>

beneath those two </xen:if>
 
OK @Russ i got it not. I was applying the above fix in the"wf_widget_online_users template" so i applied it in the "sidebar_users_online template" and it seems to be working. Thank you
 
Top Bottom