Page 1 of 1

Comic newsposts

Posted: Sun Jul 24, 2005 4:51 pm
by Nosve
So I read Ping's guide to putting text/comments on one's comic site over on Keenspace Gear. However, his guide only tells you how to put text immediately before or after your comic. What I am trying to figure out how to do is put text next to my comic. Being the not-so-masterful webdesigner I am, I decided to make most of my site one big table--with one big cell for the comic/navigation bar, and one narrower cell for the newspost.

My question: How do I tell AutoKeen to put my newspost (the .txt file) into that second cell, where I want it to go? I would've thought there'd be a tag for this type of application, but I didn't see one when I looked in the directory.

Thanks for any and all help!

Posted: Sun Jul 24, 2005 5:10 pm
by Plothole
Well, thats a tricky one. I suppose if you were to post ALL the code between your comic and rant (newspost) into the included text file, it would work... but then you might run the risk of screwing up your layout by not including a rant.


Hmm... I'd REALLY help if I could see the code you're working with (if you could, please post it here using the [code]. . .[/code] tags)...

Posted: Sun Jul 24, 2005 6:29 pm
by Gengar003
if by "news" you mean news like "new site design today" or "i'm going on vacation"... this will get the same text on every page.

***include*** tag will do it.

Wherever your <td>cell where you want text for news post to go</td> is, put inside that cell

Code: Select all

***include /workspace/webpages/myNewsFileName.txt***
:D

If you mean the comments for your comic, that's a little trickier, but not impossible.

What you want to do is this, basically:

In your indextemplate/dailytemplate, the place your comic in a table, leaving no space for comments...

Code 1:

Code: Select all

<table>
 <tr>
  <td>
  ***todays_comic***
  </td>
 </tr>
</table>
(general idea)

Which, in and of itself, works fine to show a comic without comments. To add comments specific to EACH COMIC next to the comic (I'm assuming you want them on the right? Please?)

For every comic YYYYMMDD.jpg, make a text file YYYYMMDD.txt and upload it right next to the comic into /workspace/comics/

the very first things in that text file need to be:

Code 2:

Code: Select all

</td>
<td>
Comment, blah blah
Don't close the </td> tag; it's closed in the XXXXtemplate.html file, as per code 1.

Thus, any page without comments will show just the comic, and any page with comments will show them in a cell next to the comic.

If you want the comments on the left, name your comic YYYYMMDDb.jpg and make the txt file (YYYYMMDDa.txt) with

Code: Select all

Comments, blah blah blah
</td>
<td>