Webmastersite.net
Register Log In

Toplist trouble

Comments on Toplist trouble

idamay
Beginner

Usergroup: Customer
Joined: Jun 25, 2008

Total Topics: 4
Total Comments: 5
idamay
Posted Oct 19, 2008 - 9:29 AM:

I am using the comments feature as a mini blog/news section just for the item owner.

I am using the guestbook to collect comments from the viewer. I have added a custom field 'itemidref' to the comments table to collect the item id as I am putting the guestbook form on the item page.

I want a list of the last 5 guestbook comments where itemidref matches itemid.

<!-- BEGIN TOPLIST 32 -->
<CONFIG>comments,time,5,descending,itemidre f={ITEMID},,,0,0,0,0,0,0,,0</CONFIG>
{COMMENTMESSAG E} <br /><i>by {COMMENTPOSTERNAME}</i><br />---------------<br />
<!-- END TOPLIST 32 -->

This isn't working. If I use linkid={ITEMID} that works fine but it shows all from the comments and the guestbook.

Thanks for your help,
Ida
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 19, 2008 - 6:18 PM:

Guestbooks posts are associated with members, not with links, so you'd be doing usernoteon={MEMBERID}. What you're doing seems entirely different though, so I guess when you say "guestbook" you're not talking about WSN's guestbooks but about something you're creating that you're also calling guestbooks?

If I use linkid={ITEMID} that works fine but it shows all from the comments and the guestbook.

So you're using comments for their usual use, and then also trying to split them off into a secondary guestbook use, but you don't want to use the existing guestbook system?
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.