WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

toplist of attachments in comments.php

Version: 4.1.4.
printPrint


toplist of attachments in comments.php
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 73
Total Posts: 222
Posted 10/09/07 - 06:38 PM:
quote post
#1
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: 73
Total Posts: 222
Posted 10/10/07 - 03:28 AM:
quote post
#2
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5961
Posted 10/10/07 - 01:39 PM:
quote post
#3
Fixed.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 73
Total Posts: 222
Posted 10/10/07 - 02:00 PM:
quote post
#4
Hi Paul,

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

Thanks
David
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.