mr_chaos
  •  mr_chaos
  • 52.4% (Neutral)
  • YAF Forumling Topic Starter
2009-04-10T23:52:21Z
Hallo,

i use the YAF with masterpage.
I would integrate the lastest post on the start page of my site.
So, have anybody a idea, how i can realize it?

Please give me some input or start help.

Can i only take a gridview an bind it to the YAF database?
Which table is then the right one?


Thanks for your Input.

greetz
Andy

www.turbosition.com 
Sponsor
mr_chaos
  •  mr_chaos
  • 52.4% (Neutral)
  • YAF Forumling Topic Starter
2009-04-11T00:48:33Z
Hi,

okay i have now used a gridview and bind it to the table "yaf_TOPIC".
So i can see the lastest posts.

But there is another problem.
How can i create the link directly to the post, if i have only the topic name?
I use the UrlRewriting.


Regards
Andy

www.turbosition.com 
Mek
  •  Mek
  • 100% (Exalted)
  • YAF Developer
2009-04-13T01:53:10Z
I'm doing this by reading the active topic rss, so it provides the link and the latest topic. Might be an easier way for you to do it.

UserPostedImage 

"It's a case of RTFM.. the only problem being we don't have a manual!"

When I post FP:Mek in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Ederon 🙂 )
mr_chaos
  •  mr_chaos
  • 52.4% (Neutral)
  • YAF Forumling Topic Starter
2009-08-06T15:53:29Z
Hello,

thx for the tip with the rrs-reader. I had no time to test it befor.

Now i have the problem, that i get only the posts of one topic by using this rss-source:
http://www.turbosition.c....aspx?pg=topics&f=17 

Do anybody knows, how i get all active posts by using rss?


<cc1:RssDataSource ID="RssDsForum" runat="server" 
    Url="http://www.turbosition.com/forum/yaf_rsstopic.aspx?pg=topics&f=17" MaxItems="0">
</cc1:RssDataSource>

<asp:GridView ID="gvLastestPosts_" runat="server" AutoGenerateColumns="False" 
    DataSourceID="RssDsForum" GridLines="None" PageSize="5" AllowPaging="True" 
    Width="300px">
    <Columns>
        <asp:TemplateField HeaderStyle-CssClass="cont">
            <HeaderTemplate>
                <asp:Label ID="lblHLLastestPosts" runat="server" Text="<%$ Resources:turbosition, lblHLLastestPosts %>" />                        
            </HeaderTemplate>
            <ItemTemplate>
                <span style="font-size: 75%;"><%# Eval("pubDate", "{0:d}")%></span>
                <a href="<%# Eval("link") %>" class="txt" style="display: block; font-size: 85%;"><%# Eval("title") %></a>
            </ItemTemplate>
            <HeaderStyle CssClass="cont"></HeaderStyle>
       </asp:TemplateField>
    </Columns>
    <AlternatingRowStyle BackColor="#eeeeee" />
</asp:GridView>


I´m very thankful for any idea.

Greetz
Andy
Mek
  •  Mek
  • 100% (Exalted)
  • YAF Developer
2009-08-06T16:26:12Z
Thats only because you had 1 active topic for your account, I get four when going to your site.

UserPostedImage 

"It's a case of RTFM.. the only problem being we don't have a manual!"

When I post FP:Mek in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Ederon 🙂 )
mr_chaos
  •  mr_chaos
  • 52.4% (Neutral)
  • YAF Forumling Topic Starter
2009-08-06T16:53:34Z
If you look at this page , then you see 5 active posts in 2 different topics.
When i use the rss, then i must choose 1 topic and so i can see only the posts of this topic.
I wont to see all post over all topic. You know?

Do you have a sample for me, how do you use it?
Users browsing this topic

    About Us

    The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

    Powered by Resharper Donate with PayPal button

    Project Twitter Updates

    Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved