HomeHomeDotNetNuke Forg...DotNetNuke Forg...Module ForumsModule ForumsUsers OnlineUsers OnlineHow to get rid of New Yesterday?How to get rid of New Yesterday?
Previous
 
Next
New Post
5/28/2009 2:59 PM
 

Can someone tell me how do I remove 'New Yesterday' and 'New Today'?

I just need latest user and total users only. Thank you

 
New Post
5/29/2009 4:10 AM
 

 this requires a modification of the module, easiest would be opening usersOnline.ascx, delete lines 14-28 and replace line 20 as follows:

<asp:label id="lblLatestUserName" runat="server" cssClass="NormalBold" /><asp:label id="lblNewToday" runat="server" visible="false" /><asp:label id="lblNewYesterday" runat="server" visible="false" /></TD>



Cheers from Germany,
Sebastian Leupold (DotNetNuke MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group   European Network of DotNetNuke Professionals

 
New Post
5/29/2009 9:42 AM
 

Sebastian Leupold wrote
 

 this requires a modification of the module, easiest would be opening usersOnline.ascx, delete lines 14-28 and replace line 20 as follows:
 

 

When I do that I got an error "An error has occured" Error: registered Users is currently unavailable"

 

Here is my source code:

<%

@ Control Language="vb" AutoEventWireup="false" Inherits="DotNetNuke.Modules.UsersOnline.UsersOnline" CodeBehind="UsersOnline.ascx.vb" %>

<

table cellspacing="0" cellpadding="4" width="100%">

 

<tr class="Normal">

 

<td>

 

<asp:panel runat="server" id="pnlMembership" visible="False">

 

<TABLE cellSpacing="0" cellPadding="0" border="0">

 

<TR>

 

<TD align="center" width="25"><IMG id="imgMembership" height="14" alt="Membership" src="uoGroup1.gif" width="17" align="absMiddle"

 

runat="server" resourcekey="imgMembership"></TD>

 

<TD class="NormalBold">

 

<asp:label id="MembershipLabel" runat="server" resourcekey="MembershipLabel">

 

<u>Membership:</u></asp:label></TD>

 

</TR>

 

<TR>

 

<TD align="center" width="25"><IMG id="imgLatest" height="14" alt="Latest New User" src="uoLatest.gif" width="17" align="absMiddle"

 

runat="server" resourcekey="imgLatest"></TD>

 

<TD class="Normal">

 

<asp:label id="LatestUserLabel" runat="server" resourcekey="LatestUserLabel">

 

<u>Latest:</u></asp:label>

 

<asp:label id="lblLatestUserName" runat="server" cssClass="NormalBold"></asp:label></TD>

 

</TR>

 

<TR>

 

<TD align="center" width="25"><IMG id="imgNewToday" height="14" alt="New Today" src="uoNewToday.gif" width="17" align="absMiddle"

 

runat="server" resourcekey="imgNewToday"></TD>

 

<TD class="Normal">

 

<asp:label id="NewTodayLabel" runat="server" resourcekey="NewTodayLabel">New Today:</asp:label>

 

<asp:label id="lblNewToday" runat="server" cssClass="NormalBold"></asp:label></TD>

 

</TR>

 

<TR>

 

<TD align="center" width="25"><IMG id="imgNewYesterday" height="14" alt="New Yesterday" src="uoNewYesterday.gif" width="17"

 

align="absMiddle" runat="server" resourcekey="imgNewYesterday"></TD>

 

<TD class="Normal">

 

<asp:label id="NewYesterdayLabel" runat="server" resourcekey="NewYesterdayLabel">New Yesterday:</asp:label>

 

<asp:label id="lblNewYesterday" runat="server" cssClass="NormalBold"></asp:label></TD>

 

</TR>

 

<TR>

 

<TD align="center" width="25"><IMG id="imgUserCount" height="14" alt="Overall Users" src="uoOverall.gif" width="17"

 

align="absMiddle" runat="server" resourcekey="imgUserCount"></TD>

 

<TD class="Normal">

 

<asp:label id="OverallLabel" runat="server" resourcekey="OverallLabel">Overall:</asp:label>

 

<asp:label id="lblUserCount" runat="server" cssClass="NormalBold"></asp:label></TD>

 

</TR>

 

</TABLE>

 

<HR>

 

</asp:panel>

 

<asp:panel runat="server" id="pnlUsersOnline" visible="False">

 

<TABLE cellSpacing="0" cellPadding="0" border="0">

 

<TR>

 

<TD align="center" width="25"><IMG id="imgPeopleOnline" height="14" alt="People Online" src="uoGroup2.gif" width="17"

 

align="absMiddle" runat="server" resourcekey="imgPeopleOnline"></TD>

 

<TD class="NormalBold">

 

<asp:label id="PeopleOnlineLabel" runat="server" resourcekey="PeopleOnlineLabel">

 

<u>People Online:</u></asp:label></TD>

 

</TR>

 

<TR>

 

<TD align="center" width="25"><IMG id="imgVisitors" height="14" alt="Visitors" src="uoVisitors.gif" width="17" align="absMiddle"

 

runat="server" resourcekey="imgVisitors"></TD>

 

<TD class="Normal">

 

<asp:label id="VisitorsLabel" runat="server" resourcekey="VisitorsLabel">Visitors:</asp:label>

 

<asp:label id="lblGuestCount" runat="server" cssClass="NormalBold"></asp:label></TD>

 

</TR>

 

<TR>

 

<TD align="center" width="25"><IMG id="imgMemberCount" height="14" alt="Members" src="uoMembers.gif" width="17" align="absMiddle"

 

runat="server" resourcekey="imgMemberCount"></TD>

 

<TD class="Normal">

 

<asp:label id="MembersLabel" runat="server" resourcekey="MembersLabel">Members:</asp:label>

 

<asp:label id="lblMemberCount" runat="server" cssClass="NormalBold"></asp:label></TD>

 

</TR>

 

<TR>

 

<TD align="center" width="25"><IMG id="imgTotalCount" height="14" alt="Total Users" src="uoTotal.gif" width="17" align="absMiddle"

 

runat="server" resourcekey="imgTotalCount"></TD>

 

<TD class="Normal">

 

<asp:label id="TotalLabel" runat="server" resourcekey="TotalLabel">Total:</asp:label>

 

<asp:label id="lblTotalCount" runat="server" cssClass="NormalBold"></asp:label></TD>

 

</TR>

 

</TABLE>

 

<HR>

 

</asp:panel>

 

<asp:panel runat="server" id="pnlOnlineNow" visible="False">

 

<asp:repeater id="rptOnlineNow" runat="server" enableview_state="False">

 

<headertemplate>

 

<img id="imgOnlineNow" resourcekey="imgOnlineNow" runat="server" height="14" src='<%# ResolveUrl("uoGroup3.gif") %>' width="17" align="absMiddle" alt="Onine Now" />

 

<asp:label id="OnlineNowLabel" runat="server" resourcekey="OnlineNowLabel" cssClass="NormalBold" >

 

<u>Online Now:</u></asp:label><br>

 

</headertemplate>

 

<itemtemplate>

 

 

<asp:label id="lblUserNumber" runat="server" />:&nbsp;<%# DataBinder.Eval(Container.DataItem, "UserName") %><br>

 

</itemtemplate>

 

</asp:repeater>

 

</asp:panel>

 

</td>

 

</

</tr>table>
 
New Post
5/29/2009 10:14 AM
 

oops, you are right. Just use a different approach: in like 22 and 29 after TD add: 

runat="server" visible="false"


Cheers from Germany,
Sebastian Leupold (DotNetNuke MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group   European Network of DotNetNuke Professionals

 
New Post
5/29/2009 2:37 PM
 

Sebastian Leupold wrote
 

oops, you are right. Just use a different approach: in like 22 and 29 after TD add: 

runat="server" visible="false"

 

Thanks ..it works

 
Previous
 
Next
HomeHomeDotNetNuke Forg...DotNetNuke Forg...Module ForumsModule ForumsUsers OnlineUsers OnlineHow to get rid of New Yesterday?How to get rid of New Yesterday?


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Start  Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

Sponsors

DotNetNuke Corporation

DotNetNuke (DNN) provides a suite of solutions that make designing, building and managing feature-rich sites and communities fast, easy and cost-effective. The DotNetNuke Platform CMS is the foundation for more than one million websites worldwide. DNN Social, our newest solution, enables businesses to create immersive, interactive communities. Thousands of organizations like True Value Hardware, Bose, Cornell University, Glacier Water, Dannon, Delphi, USAA, NASCAR, Northern Health and the City of Denver have leveraged DNN to deploy highly engaging business- critical websites. Our rapid growth in product sales and deployments resulted in DotNetNuke Corp. being named one of the fastest growing private companies in America by Inc. Magazine in 2011 and 2012.