Issues with the ***include filename*** tag

For requests for help from CG administrators, Wranglers, and experienced CG members. Please read the FAQ before posting. Also look at CG Wiki for tutorials and how-tos written by other CG webtoonists.
Post Reply
User avatar
CodeGuy
Regular Poster
Posts: 349
Joined: Mon Oct 06, 2003 9:43 pm
Location: Orlando, Fl

Issues with the ***include filename*** tag

Post by CodeGuy »

It seems that consistently the ***include filename*** tag only works if I run full update twice. Is this how it is supposed to work?

Also, it's a little inconvenient to have to use the manual update for incude. Sometimes the manual update will put up a comic a full day in advance of when autokeen would have put it up. I've been using ***include filename*** for my news posts, so I have to time it just right to avoid putting up the next comic at the wrong time. This negates some of the convenience of autokeen.

User avatar
Phalanx
The Establishment (Moderator)
The Establishment (Moderator)
Posts: 3737
Joined: Thu Mar 06, 2003 11:46 am
Location: Superglued to the forum by Yeahduff
Contact:

Post by Phalanx »

?

I used the include filename function for HNTRAC, it seems to work without any problems...

Atrus did mention in the Taglossary that you can only use the ***include*** tag once in every page though. Maybe that's the problem?
Image
The Jaded - Action. Adventure. Danger. For Hire.
Lonely Panel - Explore. Travel. Comics.

User avatar
CodeGuy
Regular Poster
Posts: 349
Joined: Mon Oct 06, 2003 9:43 pm
Location: Orlando, Fl

Post by CodeGuy »

No, I'm only using it once. One file, used once. :(

What would really be awesome (if Kisai had infinite time) would be a ***rant*** tag. I have a grand vision of this that is totally unreasonalbe given all the other things on Kisai's plate that are more important. :D

The ***rant*** tag would work like this: You name a txt file like the comic, except that it ends with "rant.txt". For example, 20040123rant.txt. Instead of showing up in order like all the other date-named files, it shows up where ever the ***rant*** tag is placed. If someone doesn't use the ***rant*** tag (say, in his dailytemplate), then it doesn't appear at all. If there is no rant for a particular day, then it uses the most recent one, even though that is a different date than the current comic. I guess the dates for the comic and the rant would have to be maintained seperately.

There are a few issues with this, like what if there is a rant on a particular date, but no comic? Does it display in the archives on it's own page? So, it's not just some super simple thing that could be plugged in with no real work. Thus, I'm not asking for this. I'm just daydreaming. :)

Anyway, am I the only one who has to do a full update twice to get ***include*** to work?

User avatar
YarpsDat
Cartoon Hero
Posts: 3637
Joined: Wed Oct 30, 2002 5:28 am
Location: nowhere

Post by YarpsDat »

If the include isn't working, you could work around it,
ie, use an iframe,
or some javascript: ie. have the index.html call /rant.js function "write_rant()", that would be just a series of document.write s, with your rant inside.
Just some ideas.
You are the Non. You must go now, and never return."

"1.Scan in high res 2.tweak with curves,levels or something to clean up the scan (or use channel mixer to remove blue pencil lines) 3.Add colour using a layer set to multiply. 4.Add wordbubbles and text as vector shapes. 5. Merge all layers. 6.resize to the web size. 7. Export/Save for Web" that's all I know about webcomicking.

Cinematic
Regular Poster
Posts: 38
Joined: Mon Dec 08, 2003 3:22 pm

Post by Cinematic »

Suggestion: instead of using ***include_file*** for your news posts (i tried this, it wasnt fun), why not just do a text file that comes after?

I've used ***include filename*** more than once per page with more than one file and it works fine... maybe YDK works differently from the old server? Anyway, http://cinematic.keenspace.com; the left, top, and footer are ALL includes as 3 separate files, worked great. As for the news, I just make YYYYMMDD.txt and include the HTML in that... but thats me.

Good luck with it, I'm not sure how to fix your problem other than by example.

User avatar
Phalanx
The Establishment (Moderator)
The Establishment (Moderator)
Posts: 3737
Joined: Thu Mar 06, 2003 11:46 am
Location: Superglued to the forum by Yeahduff
Contact:

Post by Phalanx »

It's a really late reply, but I figure I'd just pop this bit of info about the ***include_filename*** tag.

When you upload the files into workspace for the first time, you presumably have had indextemplate.html with ***include filename.txt*** somewhere in it, and you'll probably have had filename.txt in the /workspace/webpages folder.

When AutoKeen runs an update, it updates indextemplate.html before it updates the /webpages folder. so when it gets to the ***include_filename*** tag, it doesn't find it, or finds the older version of , and updates accordingly.

After finishing with indextemplate, it goes on to webpages, which results in the contents of the filename.txt not matching.

A second update would fix that as the correct version of filename.txt would be read in the second run, but this also makes ***include filename*** not very suitable for frequently changed items on a page.

I hope that makes sense now.
Image
The Jaded - Action. Adventure. Danger. For Hire.
Lonely Panel - Explore. Travel. Comics.

User avatar
CodeGuy
Regular Poster
Posts: 349
Joined: Mon Oct 06, 2003 9:43 pm
Location: Orlando, Fl

Post by CodeGuy »

Yeah, I figured it was something like that.

Thanks. :)

Post Reply