displaying images in separate table cells

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
Sinnerdragon
Regular Poster
Posts: 83
Joined: Fri Jan 01, 1999 4:00 pm
Location: Turin, Italy
Contact:

displaying images in separate table cells

Post by Sinnerdragon »

Hello everyone,
I have a question, I'm going to restart a comic, as soon as I receive my password (applied yesterday, this is my old comic account)

Is is possible to display the ***todays_comic*** images in two different cells (or rows) of a table?
Ex: 20071905a.jpg in one cell, and 20071905b.jpg in another?

If it's not possible, I ask if is admittable to display only hand-coded html pages, because I'm not sure all the pages in the archive will display the ***advertisement*** tag.

thanks for your attention

User avatar
Dr Neo Lao
Cartoon Hero
Posts: 2397
Joined: Wed Oct 18, 2006 5:21 am
Location: Australia

Post by Dr Neo Lao »

I don't believe that it is possible to split up the ***todays_comics*** tag in any way.

However, you could "cheat" and use the ***todays_comics*** tag in one cell and the ***todays_notes*** in the second cell. This would allow you to have up to two images per day in seperate places (as defined by the table) but you couldn't have three or more.

How exactly did you want to display the images? Generally, most comics have all the images in one "cluster" so I'm not sure how putting the images into a table would help.

If you look at a page like this one then you can see that the various comic images are placed around but are all part of a bigger image. This one also does a similar trick and is also one large image.

Wait, wiat, wait, I figured out how to do it! :D
  1. You make a bunch of comic images that are a 1x1 pixel the same colour as your background and name them according to the CG format.
  2. You create the "proper" comic images as you go and name them something else (001, 002 or chapter1part1, chapter1part2 or whatever) and upload them to the public_html/images folder (maybe create a sub-folder called "realcomics" or something).
  3. Create a text document (not a html document) that has the table that you want to create. Since you will be needing one for each day's comic you can either make them all the same and use copy + paste or you can create a custom one for each comic page.
What this will do is give you the freedom to use table(s) to display your comics.

So what will happen is this:

- you 'create' a 1x1 pixel and give it the date that you want to update - let's say 20070615.jpg but! you also give it a letter: 20070615a.jpg.
- you also create a text document with just the table and name it to the same date: 20070615b.txt - the server will treat it like a bit of html code and stick into the comic page.
- sit back and enjoy your work.

Any questions?

User avatar
McBean
Regular Poster
Posts: 562
Joined: Sat Jul 20, 2002 12:14 pm
Contact:

Post by McBean »

couldn't he just have the today_comic tag refer to an .html file with all the table code that has the split images in it?

User avatar
Warofwinds
Cartoon Hero
Posts: 1088
Joined: Sat May 08, 2004 7:46 pm
Location: Beneath stormy skies
Contact:

Post by Warofwinds »

Personally, I would just put the panels/pages together into one image and upload it, thereby circumventing all code issues. To answer your question about hard-coding the site, I don't think it says anywhere you MUST use CG's code. Just display the ad on every page, and make sure your content is acceptable depending on the comic's rating.

But doesn't Mind Mistress do something similar? I'd say check the source. Could be what you're looking for.
-Kez
ImageImageImage

User avatar
Dr Neo Lao
Cartoon Hero
Posts: 2397
Joined: Wed Oct 18, 2006 5:21 am
Location: Australia

Post by Dr Neo Lao »

The source code won't really help because you can't tell what was hard coded and what was originally a keentag (unless you're really familiar with keentags).

Hee hee, Kez: the second sample links to War of Winds... :wink:

The only other thing that I can think of is to use the ***include_file*** tag to import a stock-standard table into each dailytemplate file and use the 1x1 pixel image as the 'trigger' for the updater.

McBean: yeah, that's pretty much what I said, but it should be a .txt file instead of a .html file otherwise the page will end up multi-taging which wil cause errors in some browsers. Without more information on just what sinnerdragon wants to do, it's kinda hard to figure out what will do the job best.

I still think my way will work, and it's only marginally less difficult than the standard CG method whilst still taking care of the automation.

User avatar
Alschroeder
Regular Poster
Posts: 881
Joined: Sun Mar 16, 2003 6:21 pm
Location: Nashville
Contact:

Post by Alschroeder »

Personally, I would just put the panels/pages together into one image and upload it, thereby circumventing all code issues. To answer your question about hard-coding the site, I don't think it says anywhere you MUST use CG's code. Just display the ad on every page, and make sure your content is acceptable depending on the comic's rating.

But doesn't Mind Mistress do something similar? I'd say check the source. Could be what you're looking for.
Yes. I don't use the "today's comics" code. I have each panel as its own image, separated by a table to make the "gutter" between each panel. I like it that way because I like to have the images themselves link to other parts of the site, and sometimes I want to just have a single panel link, not the whole page---and I know HTML very well. Nor do I name each page after the day they're going to occur on, unlike a lot of Comicgenesis comics. I lose some functionality that way---I can't take advantage of Comicgenesis' automatic updating to build a backlog days in advance, but just upload them the day before they're to show.

Partly it's because I like the idea of using tables to make the layout of the page, partly it's due to a stubborn desire to do it my way. It depends on how comfortable you are with HTML. As mentioned above, as long as I keep the ads on every page, I'm not breaking any rules, just being a little eccentric.---Al
http://mindmistress.comicgenesis.com--MINDMISTRESS
---Think the superhero genre is mined out? Think all the superhero ideas have been done?
Think again.
Also check out http://www.webcomicsnation.com/alschroe ... series.php--Flickerflame</a>
Image

Sinnerdragon
Regular Poster
Posts: 83
Joined: Fri Jan 01, 1999 4:00 pm
Location: Turin, Italy
Contact:

Post by Sinnerdragon »

Thanks everyone for you answers :)

User avatar
Dr Neo Lao
Cartoon Hero
Posts: 2397
Joined: Wed Oct 18, 2006 5:21 am
Location: Australia

Post by Dr Neo Lao »

Let us know how it goes!

Post Reply