Displaying user's latest topics

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/66682?pagenum=1
05 November 2025, 00:19

Topic


puzo
Displaying user's latest topics
19 March 2008, 17:26


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?<

 

Replies ...


Jezmeister
19 March 2008, 17:42


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?<
puzo
20 March 2008, 10:12


Hi,
I did try using that code but it shows "No topics found" if i put it on inc_header.asp
Any ideas?<
Jezmeister
20 March 2008, 10:42


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<
cripto9t
20 March 2008, 15:43


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))
<
© 2000-2021 Snitz™ Communications