Webmastersite.net
Register Log In

toplist of attachments in comments.php

Comments on toplist of attachments in comments.php

david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Oct 09, 2007 - 9:38 PM:

Hi Paul,

It seems that if you put a toplist on the detailcomments template, and that toplist has to show attachments as well, it confuses the toplist. I have this on the detailcomments page

<!-- BEGIN TOPLIST 22 -->
<CONFIG>links,id,300,ascending,catid={CATID}</CONFIG>
<!-- BEGIN 1 LINK ATTACHMENTS -->
<a href="{LINKDETAILSURL}"><img src="{ATTACHTHUMBURL}" title="{LINKTITLE}" alt="{LINKTITLE}" border="0" style="margin:8px 6px 0 6px"></a>
<!-- END LINK ATTACHMENTS -->
<!-- END TOPLIST 22 -->

Yet, the above LINKDETAILSURL give back the URL of the link I am on at that moment, not the URL of respective link in the toplist. The attachments are correct in the toplist, but all other information in the toplist is reflecting the link I am on.

Can you tell me how to fix this issue?

Thanks
David
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Oct 10, 2007 - 6:28 AM:

Hi Paul,

If there is a BEGIN 1 LINK ATTACHMENTS on any page that has any LINKID associated with it, and you put another toplist on the same page, with another BEGIN 1 LINK ATTACHMENTS in it, that second toplist goes crazy. It displays the requested attachments, but all information relating to those links in that second toplist are inaccessible, and show the information for the link that was in the original LINKID of the page. Ouch!

Can you please tell me how to fix this, or release a quick fix please?

Another interesting thing. If I set all queries to be shown on such a page, not all my toplists and attachments get processed. The instant I turn off the queries, I can see all the images...

These are the toplists on the same page:


<!-- BEGIN LINK ATTACHMENTS -->
<a href="{ATTACHDOWNLOADURL}" rel="enlargeimage::mouseover" rev="loadarea"><img src="thumbnail.php?id={LINKID}&attachid={ATTACHID}" alt="" border="0" style="margin:0 4px 0 4px"></a>
<!-- END LINK ATTACHMENTS -->
<br><br><br><br><br><br><br><br><br>

<!-- BEGIN TOPLIST 17 -->
<CONFIG>links,id,1,ascending,id={ID}</CONFIG>
<!-- BEGIN 1 LINK ATTACHMENTS -->
<img src="{ATTACHDOWNLOADURL}" alt="{LINKTITLE}" title="{LINKTITLE}" border="0" style="margin:0 4px 0 4px">
<!-- END LINK ATTACHMENTS -->
<!-- END TOPLIST 17 -->
<br><br><br><br>



<!-- BEGIN TOPLIST 22 -->
<CONFIG>links,id,200,ascending,,,,0,0,0,0,0,0,</CONFIG>
<!-- BEGIN 1 LINK ATTACHMENTS -->
<a href="{LINKDETAILSURL}"><img src="{ATTACHTHUMBURL}" title="{LINKTITLE}" alt="{LINKTITLE}" border="0" style="margin:8px 6px 0 6px"></a>
<!-- END LINK ATTACHMENTS -->
<!-- END TOPLIST 22 -->



Thanks
David
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 10, 2007 - 4:39 PM:

Fixed.
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Oct 10, 2007 - 5:00 PM:

Hi Paul,

Alrighty. When will you be able to release the upgrade?

Thanks
David
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.