Message Text |
Paul,
I have a problem with static file generation of a toplist.
Here's the custom toplist template I use (which I made with the toplist generator):
<table>
<!-- BEGIN TOPLIST 11 -->
<CONFIG>links,rand(),49,ascending,catid=12,,7,0,0,0,0</CONFIG>
<td>
<!-- BEGIN REGULAR LINKS -->
<a href="{LINKURL}" {EXTERNALLINKS}>
<!-- BEGIN LINK ATTACHMENTS -->
<img src="thumbnail.php?id={LINKID}&attachid={ATTACHID}" width="100" height="100">
<!-- END LINK ATTACHMENTS -->
</a>
</td>
<!-- END TOPLIST 11 -->
</table>
It work's perfect if I call the template directly by URL:
www.mydomain.com/index.php?...yes&TID=test&usewrapper=no
Now when I use the static file generation I get the following source code:
<table>
<tr>
<td>
<!-- BEGIN REGULAR LINKS -->
<a href="http://www.mydomain.com/{LINKURL}" target="_blank">
<!-- BEGIN LINK ATTACHMENTS -->
<img src="http://www.mydomain.com/thumbnail.php?id=&attachid={ATTACHID}" width="100" height="100"><!-- END LINK ATTACHMENTS -->
</a>
</td>
and so on...
As you can see the variables {LINKURL} and {ATTACHID} are not recognized.
Assuming this problem will be solved, I have a further question regarding the static file generation.
As you can see I don't use {TRACKLINKURL} in the template above because I don't want any single db query in this static file output (for speed reason).
If it would work, I would get the image source like www.mydomain.com/thumbnail....il.php?id=XXX&attachid=XXX which is a db query.
So would it be possible to get the image source like www.mydomain.com/attachment...0ab9e52a1dd8f8ccd5942e.jpg instead?
Thank you for your help! |