Displaying user's latest topics - Posted (1028 Views)
Junior Member
puzo
Posts: 417
417
Hi,
I'd like to add a piece of code to inc_header.asp so my users can see their latest posts, for example:
Your latests posts are:
Post 1
Post 2
etc.. (say up to 6 posts)

Can anyone help?<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Senior Member
Jezmeister
Posts: 1141
1141
isn't there already something similar to this in pop_profile.asp? not entirely sure if it does everything you want but the code is around line 169 in pop_profile, maybe you could use that?<
Posted
Junior Member
puzo
Posts: 417
417
Hi,
I did try using that code but it shows "No topics found" if i put it on inc_header.asp
Any ideas?<
Posted
Senior Member
Jezmeister
Posts: 1141
1141
i said similar lol there's bound to be some issues just ripping it straight off... i'll try and have a look later but I'll hazard a guess that the problem is in selecting the correct member_ID? you'd need to select it as strMemberID rather than the querystring that pop_profile uses<
Posted
Average Member
cripto9t
Posts: 881
881
make sure you getting a value for '" & strStartDate & "' and it should work. ppMember_ID should be MemberID. I assume you have that or you would be getting an error.
Heres strStartDate from pop_profile, goes back 30 days.
Code:
strStartDate = DateToStr(dateadd("d", -30, strForumTimeAdjust))
<
    _-/Cripto9t\-_
 
You Must enter a message