Displaying user's latest topics - Postet den (1037 Views)
Junior Member
puzo
Innlegg: 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?<
   
 Sidestørrelse 
Postet den
Senior Member
Jezmeister
Innlegg: 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?<
Postet den
Junior Member
puzo
Innlegg: 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?<
Postet den
Senior Member
Jezmeister
Innlegg: 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<
Postet den
Average Member
cripto9t
Innlegg: 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\-_
 
Du må legge inn en melding