Matt Marlor
Customers
Post Count:375
 |
| 03 Aug 2010 02:09 AM |
|
I've found a few posts referencing this goal, but haven't found anything too concrete. I wanted to create a new summary page which listed only Links and which would allow only links to be added. I created the following custom template:
<table width="100%">
<tr>
<td valign="top" style="width:205px;">
<div class="asjfilters asul">
[AS:CONTROL:JOURNALFILTERLIST:7]
</div>
</td>
<td valign="top" style="width:100%">
<div class="asjournalwrap">
<div class="asjournal">
<active:generic id="ctlJournalTools" templatename="Other/LinkTools" runat="server"/>
</div>
<active:JournalList id="lstJournal" runat="server" JournalTypeId="7" JournalMode="2">
<headertemplate>
<ul class="asjournallist">
</headertemplate>
<itemstemplate>
<li><h2>[AS:JOURNALINFO:DATECREATED]</h2></li>
<li class="asjournalrow" style="position:relative;">
<div style="float:right;position:absolute;top:0px;right:0px;">[AS:CONTROL:JOURNALACTIONS]</div>
[AS:JOURNALITEM:TEMPLATE]
<table cellpadding="0" cellspacing="0" class="asjournalrowitem">
<tr>
<td valign='top'>[AS:JOURNALINFO:JOURNALAUTHORPICTURE]</td>
<td valign="top" class="asjournalcell">[AS:JOURNALINFO:SUBJECT][AS:JOURNALINFO:IMAGE]<br />[AS:JOURNALINFO:SUMMARY]
<div class="asjournalbtm">[AS:JOURNALINFO:ICON] [AS:JOURNALINFO:TIMEFRAME] [AS:JOURNAL:LINKOPTIONS] [AS:CONTROL:COMMENTLINK]</div>
</td>
</tr>
<tr>
<td></td><td style="width:100%;">[AS:CONTROL:COMMENT]</td></tr>
</table>
[/AS:JOURNALITEM:TEMPLATE]
</li>
</itemstemplate>
<noresultstemplate>
<li>[RESX:Journal:NoItems]</li>
</noresultstemplate>
<footertemplate>
</ul>
<div align="right">[AS:CONTROL:PAGER]</div>
</footertemplate>
</active:JournalList>
</div>
</td>
</tr>
</table>
and the following LinkTools.ascx:
<div class="asjournaltools">
<div id="expright" onclick="asui_ScrollRight(this,'asjournaltools');"></div>
<div id="expleft" onclick="asui_ScrollLeft(this,'asjournaltools');asClient.Journal.CheckTools();"></div>
<div id="asjournaltools">
<a href="" onclick="asClient.Journal.Toggle('ctlasShareLink',100);" id="btnShareLink" runat="server"><span class="icon link"></span>[RESX:ShareLink]</a>
</div>
</div>
<div id="asjournalctl">
<div class="asjournaltool" id="ctlasShareLink">
<input type="text" id="txtLink" class="NormalTextBox" value="http://" /><input type="button" id="btnPreview" value="Preview" onclick="asClient.Journal.LinkPreview(this);" />
<div id="asThumbViewer"></div>
<textarea id="txtComment" class="NormalTextBox" style="display:none;" cols="50" rows="2" onfocus="this.value='';">[RESX:OptionalComment]</textarea>
<input type="button" id="btnShareLinkCancel" class="dim" style="display:none;" value="Cancel" onclick="asClient.Journal.LinkReset();" />
<input type="button" id="btnShareLinkPost" class="act" style="display:none;" value="[RESX:PostLink]" onclick="asClient.Journal.Link();" />
</div>
<div class="asjournaltool" id="ctlasWriteNote">
<label for="txtTitle">[RESX:Title]:</label>
<input type="text" class="NormalTextBox" id="txtTitle" />
<label for="txtBody">Body:</label>
<textarea id="txtBody" class="NormalTextBox" cols="50" rows="4"></textarea>
<input type="button" id="btnPostNoteCancel" class="dim" value="Cancel" onclick="asClient.Journal.NoteReset();" />
<input type="button" id="btnPostNote" class="act" value="[RESX:PostNote]" onclick="asClient.Journal.Note();" />
</div>
</div>
I also tried just using JournalTools in case my link tools was wrong. In both cases, the tools display, but attempting to actually share something results in a Javascript error: "Line: 56 Error: 'this.RESX.PleaseWait' is null or not an object" Obviously the conclusion is that something isn't supported here - would love to make it work though! |
|
| AuTechHeads - An Australian group for geeks. Visit us at
http://www.autechheads.com! |
|
|
Will Morgenweck
Forum Admin
DotNetNuke Staff
Post Count:7672
 |
| 03 Aug 2010 07:48 AM |
|
You want to create a new template based upon the Journal control. Take a look at Journal.ascx and how the journal is loaded in a tab. You should be able to do pretty much the same thing and filter on journaltypeid, just like the events sample. That being said, this is really something that hasn't been tested, but it should be possible. If we weren't in the middle of wrapping up AS 1.8 we would try and test it for you. |
|
Will Morgenweck
Director of Product Management
DotNetNuke Corp.
|
|
|
Matt Marlor
Customers
Post Count:375
 |
| 03 Aug 2010 08:04 AM |
|
Yeah, I did try to copy the journal stuff and the events etc samples. Understand re 1.8 - no big rush, I'm happy to wait till you get a chance. |
|
| AuTechHeads - An Australian group for geeks. Visit us at
http://www.autechheads.com! |
|
|
Hazen Wilson
Customers
Post Count:99
 |
|
Will Morgenweck
Forum Admin
DotNetNuke Staff
Post Count:7672
 |
| 16 Dec 2010 04:42 PM |
|
The number in the journal filter list isn't what you think it's for. It has to do with how the list is rendered, not filtering. Here is a template I created for displaying a list of files.
<active:JournalList id="lstJournal" UseStaticTemplate="True" JournalTypeId="16" runat="server" JournalMode="2">
<headertemplate>
<ul class="asjournallist">
</headertemplate>
<itemstemplate>
<li>
<table class="asjournalrowitem"> <tr> <td>[AS:JOURNALINFO:JOURNALAUTHORPICTURE]</td> <td class="asjournalcell">[AS:JOURNALINFO:AUTHORNAMELINK]<br /> [AS:JOURNALINFO:SUBJECT]<br />[AS:JOURNALINFO:SUMMARY] <br /> <div class="asjournalbtm">[AS:JOURNALINFO:ICON] [AS:JOURNALINFO:TIMEFRAME] [AS:JOURNALINFO:SECURITY] [AS:JOURNAL:LINKOPTIONS] [AS:CONTROL:COMMENTLINK]</div> </td> </tr> <tr> <td></td><td style="width:100%;">[AS:CONTROL:COMMENT]</td></tr></table>
</li>
</itemstemplate>
<noresultstemplate>
<li>[RESX:Journal:NoItems]</li>
</noresultstemplate>
<footertemplate>
</ul>
<div align="right">[AS:CONTROL:PAGER]</div>
</footertemplate>
</active:JournalList>
|
|
Will Morgenweck
Director of Product Management
DotNetNuke Corp.
|
|
|
Hazen Wilson
Customers
Post Count:99
 |
|
Matt Marlor
Customers
Post Count:375
 |
|
Will Morgenweck
Forum Admin
DotNetNuke Staff
Post Count:7672
 |
| 16 Dec 2010 07:45 PM |
|
Purpose is to recreate the community page on activemodules. Well that's easy :). Here is the code we use for that template.
<active:journallist id="lstJournal" PageSize="20" JournalItems="5;6;" JournalMode="2" SiteId="0" UseStaticTemplate="True" runat="server">
<headertemplate>
<ul class="asjournallist">
</headertemplate>
<itemstemplate>
<li class="asjournalrow" style="position:relative;">
[AS:JOURNALITEM:TEMPLATE]
<a href="[AS:JOURNALINFO:DI:URL]" class="afn-topic">[AS:JOURNALINFO:DI:TITLE]</a>
<div class="asjournalbtm"><img src="/desktopmodules/activesocial/profilepic.ashx?portalid=0&uid=[AS:JOURNAL:PROFILE:ID]&h=18&w=18" align="absmiddle" /> [AS:JOURNALINFO:AUTHORNAMELINK] [AS:JOURNALINFO:TIMEFRAME] [AS:JOURNAL:LINKOPTIONS] [AS:CONTROL:COMMENTLINK]</div>
[/AS:JOURNALITEM:TEMPLATE]
</li>
</itemstemplate>
<noresultstemplate>
<li>No Items Found</li>
</noresultstemplate>
<footertemplate>
</ul>
</footertemplate>
</active:journallist>
|
|
Will Morgenweck
Director of Product Management
DotNetNuke Corp.
|
|
|
Hazen Wilson
Customers
Post Count:99
 |
|
Hazen Wilson
Customers
Post Count:99
 |
| 30 Dec 2010 06:25 PM |
|
I used the following to build a custom view: ( cause if i make a summary view it will not show up as a selection):
It works/looks just like the community view on active modules.com and works correctly....
until a user logs in.. when a user logs in the view changes and shows all the journal entries associated with the user and the user's friends... we only want the forum topics and replys.. just like AS... any ideas.
<table width="100%"> <tr> <td valign="top" style="width:205px;"> <div class="asjfilters asul"> div> td> <td valign="top" style="width:100%"> <div class="asjournalwrap"> <div class="asjournal"> div> <active:journallist id="lstJournal" PageSize="20" JournalItems="5;6;" JournalMode="2" SiteId="0" UseStaticTemplate="false" runat="server"> <headertemplate> <ul class="asjournallist"> headertemplate> <itemstemplate> <li><h2>[AS:JOURNALINFO:DATECREATED]h2>li> <li class="asjournalrow" style="position:relative;"> <div style="float:right;position:absolute;top:0px;right:0px;">[AS:CONTROL:JOURNALACTIONS]div> [AS:JOURNALITEM:TEMPLATE] <table cellpadding="0" cellspacing="0" class="asjournalrowitem"> <tr> <td valign='top'>[AS:JOURNALINFO:JOURNALAUTHORPICTURE]td> <td valign="top" class="asjournalcell">[AS:JOURNALINFO:SUBJECT][AS:JOURNALINFO:IMAGE]<br />[AS:JOURNALINFO:SUMMARY] <div class="asjournalbtm">[AS:JOURNALINFO:ICON] [AS:JOURNALINFO:TIMEFRAME] [AS:JOURNAL:LINKOPTIONS] [AS:CONTROL:COMMENTLINK]div> td> tr> <tr> <td>td><td style="width:100%;">[AS:CONTROL:COMMENT]td>tr> table> [/AS:JOURNALITEM:TEMPLATE] li> itemstemplate> <noresultstemplate> <li>[RESX:Journal:NoItems]li> noresultstemplate> <footertemplate> ul> <div align="right">[AS:CONTROL:PAGER]div> footertemplate> active:JournalList> div> td> tr> table>
|
|
| www.hazeninteractive.com
www.planetsocialsports.com
www.rentalpropertyfind.com
www.freeusedcartrader.com
www.losangeles-activities.comwww.planetsportsgear.com |
|
|
Will Morgenweck
Forum Admin
DotNetNuke Staff
Post Count:7672
 |
| 31 Dec 2010 06:57 AM |
|
( cause if i make a summary view it will not show up as a selection): Can you elaborate a little more on this? The code that I posted is a custom view. |
|
Will Morgenweck
Director of Product Management
DotNetNuke Corp.
|
|
|
Hazen Wilson
Customers
Post Count:99
 |
|
Ben Thompson
Customers
Post Count:230
 |
| 04 Jan 2011 05:44 PM |
|
Hi Will, I used your Summary custom view example to display only the Forum topics and replies (JournalItems="5;6;"), however the view isnt filtering out the other items as expected. Any tips ? Thanks Ben |
|
| www.itproject.com.au |
|
|
C Poole
Customers
Post Count:35
 |
| 16 Jan 2011 04:43 PM |
|
SAme filtering issue as Ben, getting friends and other items including tokens being displayed.
Ocala updated [AS:JOURNALINFO:GROUPNAMELINK] |
|
|
|
|
Ben Thompson
Customers
Post Count:230
 |
| 22 Jan 2011 12:38 AM |
|
Will,
Ive created the custom view using your code and it doesnt look like your Summary view of Topics on the Active Modules Community page.
I still cant get the Journal filtering on Topics & Replies to work either. Has anyone had any luck with this ?
Ben |
|
| www.itproject.com.au |
|
|
Jeff Blanks
Customers
Post Count:387
 |
| 22 Jan 2011 11:55 AM |
|
I still cant get the Journal filtering on Topics & Replies to work either. Has anyone had any luck with this ? It's working for me. Are you saying you are getting more than just topics and replies in the summary? Such as status updates, etc? If you have multiple forums and want them filtered out such as group discussions, you'll have to create an all new journal type and use the access keys for it in your public forums. Make sure your journal filters has ; instead of , ex.JournalItems="5;6;" Ive created the custom view using your code and it doesnt look like your Summary view of Topics on the Active Modules Community page. Which part? Journal Summary or the left menu? other? |
|
Cheers! Jeff
@northeastok | @jeffblanks | My Blog |
|
|
Ben Thompson
Customers
Post Count:230
 |
| 23 Jan 2011 05:55 AM |
|
Jeff, Yes, Im getting more than just topics and replies in the summary. In fact im getting everything in the Journal on the summary. Here is the code I used :
<active:journallist id="lstJournal" PageSize="20" JournalItems="5;6;" JournalMode="2" SiteId="0" UseStaticTemplate="True" runat="server">
<headertemplate>
<ul class="asjournallist">
</headertemplate>
<itemstemplate>
<li class="asjournalrow" style="position:relative;">
[AS:JOURNALITEM:TEMPLATE]
<a href="[AS:JOURNALINFO:DI:URL]" class="afn-topic">[AS:JOURNALINFO:DI:TITLE]</a>
<div class="asjournalbtm"><img src="/desktopmodules/activesocial/profilepic.ashx?portalid=0&uid=[AS:JOURNAL:PROFILE:ID]&h=18&w=18" align="absmiddle" /> [AS:JOURNALINFO:AUTHORNAMELINK] [AS:JOURNALINFO:TIMEFRAME] [AS:JOURNAL:LINKOPTIONS] [AS:CONTROL:COMMENTLINK]</div>
[/AS:JOURNALITEM:TEMPLATE]
</li>
</itemstemplate>
<noresultstemplate>
<li>No Items Found</li>
</noresultstemplate>
<footertemplate>
</ul>
</footertemplate>
</active:journallist>
It doesnt filter at all and my comment before about the Journal Summary looking different is probably due to the profile picture size difference and the fact that there are all the other types in the mix. If I could get it to filter properly I would be a very happy man. I cant understand why it is not? |
|
| www.itproject.com.au |
|
|
CSmith
Customers
Post Count:91
 |
| 23 Jan 2011 07:24 AM |
|
Something is incorrect. I tried changing the PageSize and PagingEnabled to PagingEnabled="True" PageSize="12" and those are being ignored too.
|
|
|
|
|
Hazen Wilson
Customers
Post Count:99
 |
| 26 Jan 2011 01:44 PM |
|
I also get the same results... all replies in my summary. here's the link to show what's happening: http://www.planetsocialsports.com/c...unity.aspx
<table width="350px">
<tr>
<td valign="top" style="width:205px;">
<div class="asjfilters asul">
</div>
</td>
<td valign="top" style="width:100%">
<div class="asjournalwrap">
<div class="asjournal">
</div>
<active:journallist id="lstJournal" PageSize="20" JournalItems="5;6;" JournalMode="2" SiteId="0" UseStaticTemplate="false" runat="server">
<headertemplate>
<ul class="asjournallist">
</headertemplate>
<itemstemplate>
<li><h2>[AS:JOURNALINFO:DATECREATED]</h2></li>
<li class="asjournalrow" style="position:relative;">
<div style="float:right;position:absolute;top:0px;right:0px;">[AS:CONTROL:JOURNALACTIONS]</div>
[AS:JOURNALITEM:TEMPLATE]
<table cellpadding="0" cellspacing="0" class="asjournalrowitem">
<tr>
<td valign='top'>[AS:JOURNALINFO:JOURNALAUTHORPICTURE]</td>
<td valign="top" class="asjournalcell">[AS:JOURNALINFO:SUBJECT][AS:JOURNALINFO:IMAGE]<br />[AS:JOURNALINFO:SUMMARY]
<div class="asjournalbtm">[AS:JOURNALINFO:ICON] [AS:JOURNALINFO:TIMEFRAME] [AS:JOURNAL:LINKOPTIONS] [AS:CONTROL:COMMENTLINK]</div>
</td>
</tr>
<tr>
<td></td><td style="width:100%;">[AS:CONTROL:COMMENT]</td></tr>
</table>
[/AS:JOURNALITEM:TEMPLATE]
</li>
</itemstemplate>
<noresultstemplate>
<li>[RESX:Journal:NoItems]</li>
</noresultstemplate>
<footertemplate>
</ul>
<div align="right">[AS:CONTROL:PAGER]</div>
</footertemplate>
</active:JournalList>
</div>
</td>
</tr>
</table>
|
|
| www.hazeninteractive.com
www.planetsocialsports.com
www.rentalpropertyfind.com
www.freeusedcartrader.com
www.losangeles-activities.comwww.planetsportsgear.com |
|
|
Ben Thompson
Customers
Post Count:230
 |
| 26 Jan 2011 03:44 PM |
|
Yes, It's clear something is not right here. AM team, could you please advise us on how to get this working ? I have sent a helpdesk ticket also. Many thanks Ben |
|
| www.itproject.com.au |
|
|
Ben Thompson
Customers
Post Count:230
 |
| 26 Jan 2011 03:53 PM |
|
Hazen, How did you create the Top Members view ? |
|
| www.itproject.com.au |
|
|
Hazen Wilson
Customers
Post Count:99
 |
| 26 Jan 2011 07:29 PM |
|
Its a query pulled from our database using netsims satelite module.. we use it for displaying alot of our data. I get around having to buy alot of modules using it...here's the code.. should work for everyone who has Active Forums.. table should be the same. (don't forget to change the url from planetsocialsports.com to MYWEBSITE.COM in the hyperlink.
#set ( $rows = $sql.GetList("select authorid, authorname from topforumusers" ) )
#set ( $idx = 0 )
<table width="275" cellpadding="0" cellspacing="0" border="0" class="display" id="grid1">
<thead>
<tr>
<th><p><span style="border-bottom: 1px solid rgb(214, 210, 196); padding: 4px 4px 4px 12px; font-family: Arial,Helvetica,Tahoma; font-size: 9pt; display: block; background-color: rgb(246, 245, 238); color: rgb(102, 102, 102); font-weight: bolder;" class="afn-group">Top Members</span></p></th>
</tr>
</thead>
<tbody>
#foreach ( $row in $rows )
#set ( $idx = $idx + 1 )
<tr>
<td><font color="#000000"><span style="font-size: 14px">     
</span></font><a href="http://www.planetsocialsports.com/Active-Player/asuid/$row.get("authorid")/default.aspx"><span style="font-size: 14px; "><font color="#000000"><u>$row.get("authorname")</u></font></span></a></td>
</tr>
#end
</tbody>
</table>
<script language="javascript">
jQuery(document).ready(function() {
jQuery("#grid1").dataTable();
});
</script>
|
|
| www.hazeninteractive.com
www.planetsocialsports.com
www.rentalpropertyfind.com
www.freeusedcartrader.com
www.losangeles-activities.comwww.planetsportsgear.com |
|
|
Hazen Wilson
Customers
Post Count:99
 |
|
drew curry
Customers
Post Count:338
 |
| 26 Jan 2011 08:13 PM |
|
did you mean netism? ;)
edit: and great post btw.. very helpful. i never noticed this module before! |
|
|
|
|
mmoney
Customers
Post Count:150
 |
| 26 Jan 2011 09:35 PM |
|
This method can also be achieved using the Free OWS (Open Web Studio) package if you don't want to buy another module. |
|
|
|
|
Ben Thompson
Customers
Post Count:230
 |
| 31 Jan 2011 05:59 AM |
|
AM team, do you have any suggestions here ?? Thanks |
|
| www.itproject.com.au |
|
|
Hazen Wilson
Customers
Post Count:99
 |
|
Ben Thompson
Customers
Post Count:230
 |
| 08 Feb 2011 04:39 PM |
|
Anyone ? Anyone ? Hazen, maybe we should repost this in the Support forum instead.... Will ? |
|
| www.itproject.com.au |
|
|
Will Morgenweck
Forum Admin
DotNetNuke Staff
Post Count:7672
 |
| 08 Feb 2011 04:50 PM |
|
We are talking about a custom view. Creating a support ticket for this request wouldn't really change anything. I really have no idea why it wouldn't be working and really haven't had a chance to try and investigate. I do know that if you turn off the journal items from the summary it does work. I also know that if you filter on a specific type it also works. These are all items that we have working on our site. I will dig into the journal control before the next update to see if I can see any problems. |
|
Will Morgenweck
Director of Product Management
DotNetNuke Corp.
|
|
|
DanielH
Customers
Post Count:104
 |
|