Webmastersite.net
Register Log In

Static file generation

Title Static file generation
Description unrecognized variables?
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!
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership rolij
Views 610 views. Averaging 0 views per day.
Similar Topics
Submission Date May 31, 2006 - 11:19 AM