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
I just figured out that the obove only works if I'm logged in as admin. As guest it doesn't work. So I'm completely confused. I really need a solution for static toplist generation, regardless if you're guest or admin.
The new toplist looks valid. Now, have you specified in your usergroup permissions to not allow guests to view your site? If so nothing will be of much use.
You're right. I try to make a static toplist of links from a category visible only for members. But I need the toplist to include on another site. Is it possible to disable this user group check for static file generation? Or do you know a workaround for this?
There's no method, and it doesn't really make any sense either since there's no point in restricting the category if you're going to make a static page of it available (thus automatically letting people see it, since static pages don't have dynamic options like usergroups).
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Static file generation
Member
Usergroup: Customer
Joined: May 19, 2005
Total Topics: 18
Total Comments: 42
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):
It work's perfect if I call the template directly by URL:
Now when I use the static file generation I get the following source code:
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 which is a db query.
So would it be possible to get the image source like instead?
Thank you for your help!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Your toplist code doesn't make much sense... you can't have gotten <!-- BEGIN REGULAR LINKS --> from the toplist generator.
Member
Usergroup: Customer
Joined: May 19, 2005
Total Topics: 18
Total Comments: 42
So how do I have to write the code instead?
It's a thumbnail gallery and it works perfect if I call the URL like www.mydomain.com/index.php?...yes&TID=test&usewrapper=no
But it doesn't work with static file generation. Why?
The template looks now:
What's wrong with it?
Member
Usergroup: Customer
Joined: May 19, 2005
Total Topics: 18
Total Comments: 42
The problem isn't the toplist. The problem is the static file generation of a toplist. Isn't it possible to generate a static file of a toplist?!
Member
Usergroup: Customer
Joined: May 19, 2005
Total Topics: 18
Total Comments: 42
I just figured out that the obove only works if I'm logged in as admin. As guest it doesn't work. So I'm completely confused. I really need a solution for static toplist generation, regardless if you're guest or admin.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
The new toplist looks valid. Now, have you specified in your usergroup permissions to not allow guests to view your site? If so nothing will be of much use.
Member
Usergroup: Customer
Joined: May 19, 2005
Total Topics: 18
Total Comments: 42
You're right. I try to make a static toplist of links from a category visible only for members. But I need the toplist to include on another site. Is it possible to disable this user group check for static file generation? Or do you know a workaround for this?
Member
Usergroup: Customer
Joined: May 19, 2005
Total Topics: 18
Total Comments: 42
Any help would be very appreciated.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
There's no method, and it doesn't really make any sense either since there's no point in restricting the category if you're going to make a static page of it available (thus automatically letting people see it, since static pages don't have dynamic options like usergroups).