Replacing the ***todays_comics*** 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
somestrangeflea
Newbie
Posts: 15
Joined: Tue Jan 27, 2009 8:34 am

Replacing the ***todays_comics*** tag

Post by somestrangeflea »

Say, for instance, my comic had, for each day, an image and a text file, named YYYYMMDD.png and YYYYMMDD.txt.

The ***todays_comics*** tag could presumably be replaced by...

Code: Select all

<img src="http://inanothercastle.comicgenesis.com/comics/***raw_date***.PNG">
...to insert the image and something else to insert the text file. What would be the something else that I need?

I ask because I want to apply formatting to my image, but not my comment, and I'm not sure how to do that.
Last edited by somestrangeflea on Sun Apr 05, 2009 1:04 am, edited 2 times in total.
So I put "***todays_notes***" on my index page...

...but my note for today is a text file containing...

"***todays_notes***"!

COMICGENESIS IS BASICALLY GOING TO DESTROY ITSELF AS SOON AS ANYONE GOES ONTO MY WEBSITE?

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

Re: Replacing the ***todays_comics*** tag

Post by Dr Neo Lao »

Unfortunately AutoKeen won't do that as the server would need to parse the comic twice in order to fully resolve. It looks like you are trying to use php syntax.

I'm not sure what you mean by "formatting the comic" but if you want to have your text and your comic handled separately, you can use the ***todays_notes*** tag for the text and use ***todays_comics*** for just the comics. This will let you put the two in different places.

somestrangeflea
Newbie
Posts: 15
Joined: Tue Jan 27, 2009 8:34 am

Re: Replacing the ***todays_comics*** tag

Post by somestrangeflea »

Dr Neo Lao wrote:I'm not sure what you mean by "formatting the comic" but if you want to have your text and your comic handled separately, you can use the ***todays_notes*** tag for the text and use ***todays_comics*** for just the comics. This will let you put the two in different places.
By "formatting the comic" I mean "assigning a title attribute to make hover-messages appear", and I'm already using ***todays_notes*** to have that display!

Also, I was initially trying to use CSS but then realised that the closest that would get me was title text that appeared when I hovered over any image!

EDIT: Hmm, I imagine PHP would be able to help here. I'll put a tentative [Fixed] in the title, and come back if I have any problems with it. Thanks anyway!
So I put "***todays_notes***" on my index page...

...but my note for today is a text file containing...

"***todays_notes***"!

COMICGENESIS IS BASICALLY GOING TO DESTROY ITSELF AS SOON AS ANYONE GOES ONTO MY WEBSITE?

somestrangeflea
Newbie
Posts: 15
Joined: Tue Jan 27, 2009 8:34 am

Re: Replacing the ***todays_comics*** tag - [FIXED]

Post by somestrangeflea »

The FAQ wrote:Q: Does ComicGenesis support PHP, CGI, SSI?
A: No.
So I'm back where I started, basically.
So I put "***todays_notes***" on my index page...

...but my note for today is a text file containing...

"***todays_notes***"!

COMICGENESIS IS BASICALLY GOING TO DESTROY ITSELF AS SOON AS ANYONE GOES ONTO MY WEBSITE?

Ozydius
Regular Poster
Posts: 28
Joined: Sun Feb 01, 2009 11:48 am

Re: Replacing the ***todays_comics*** tag

Post by Ozydius »

You can always just edit it all manually. Just post the text file separately with ***todays_comic***, and when you update again, take out the text file from the index page and place it into the archived page with the coinciding comic. It's just a few extra minutes of your time.
Image

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

Re: Replacing the ***todays_comics*** tag

Post by Dr Neo Lao »

...I mean "assigning a title attribute to make hover-messages appear"...
Unfortunately, that is not possible with the current CG system. If you are really good, you might be able to do it with Javascript but I don't know how to use js. It'd be dead easy with php but as you already noted, CG does not support php.

It is possible to force it by doing your updates by hand (and not use the AutoKeen system at all). This would defeat half the purpose of being with CG as you would be doing each update by manually writing out the code, but it would give you more control over the look and feel of the comic.

If you can live without this bit, then CG should work out fine for you. It's a great place to get started. However, if it is a dealbreaker (I have seen some comics where there where no speech bubbles - the text could only be seen by hovering the cursor over each character) then you might need to use a paid hosting site. This would give you more control, but you'd need to find automation software that let you do what you were after (and pay for hosting + bandwidth).

Also, if you want to use CG you will need to change your username on the forum to start with a capital.

Post Reply