How do I vary elements on my dailytemplate?

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
LennyZ
Regular Poster
Posts: 70
Joined: Tue Nov 04, 2003 2:26 pm
Contact:

How do I vary elements on my dailytemplate?

Post by LennyZ »

That's a bit of a confusing question. Anyway, I'm still pretty ignorant on the workings of the "dailytemplate" and I'd like to know (for example):

If I wanted to put comments under every comic, how do I make it so that when I go back a comic or two, or use the archive, the comments are there for each comic?

User avatar
Moonshadow
Regular Poster
Posts: 158
Joined: Sat Nov 15, 2003 9:38 pm
Location: Somewhere north

Post by Moonshadow »

This is up in the FAQ at the top of the forum, under the question "How do I 'bundle' text in comic pages??"

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

Post by CodeGuy »

That method puts text directly under the comic, which is a little messy (IMHO). Is there any way to put stuff into designated areas? Like if you want a nice neat box to contain the text in a certain spot, is there a way to put the daily text there instead of under the comic?

User avatar
Faub
The Establishment (Moderator)
The Establishment (Moderator)
Posts: 3698
Joined: Tue May 20, 2003 2:53 pm
Location: Missouri, USA
Contact:

Post by Faub »

The neat little box is not a big deal either. The text can include HTML. Just use a div to group and organize the text. If you use a .css file, your HTML could be as little as:

Code: Select all

<div class="rant"><p>Your Rant text here.</p></div>

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

Post by YarpsDat »

Yes, the html would look something like that.
But you also need a css file, for example looking like this:

Code: Select all

div.rant {
position: absolute;
left: 100 px;
top: 600 px
}
this will place your rant at (100,600) on your page.
read a tutorial for more options, like borders and padding around your rant.
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.

User avatar
Deviantprophets
Newbie
Posts: 6
Joined: Thu Oct 02, 2003 1:47 pm
Contact:

Help please?

Post by Deviantprophets »

I'm having trouble getting my dailytemplate to recognize my .css file. Any pointers?

http://deviantprophets.keenspace.com

User avatar
Faub
The Establishment (Moderator)
The Establishment (Moderator)
Posts: 3698
Joined: Tue May 20, 2003 2:53 pm
Location: Missouri, USA
Contact:

Post by Faub »

The dailytemplate needs to reference the .css file as /yourfile.css. The same thing goes for your images. dailytemplate.html actually generates files into /d/ so your .css file and your comic pages will not be in the same directory.

User avatar
Deviantprophets
Newbie
Posts: 6
Joined: Thu Oct 02, 2003 1:47 pm
Contact:

Post by Deviantprophets »

Soo... Do I need to just change my HTML on the dailytemplate to /d/myfile.css, or do I need a copy of the .css file in that directory as well? >.> I'll try it all out. Thank you!

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

Post by YarpsDat »

deviantprophets wrote:Soo... Do I need to just change my HTML on the dailytemplate to /d/myfile.css, or do I need a copy of the .css file in that directory as well? >.> I'll try it all out. Thank you!
You just link to it as /myfile.css instead of myfile.css please notice the slash.

You are not supposed to use /d/myfile.css- this one would be just weird.
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.

User avatar
Deviantprophets
Newbie
Posts: 6
Joined: Thu Oct 02, 2003 1:47 pm
Contact:

Post by Deviantprophets »

Whoo! It worked. ^_^ Thank you very much.
<a href="http://deviantprophets.keenspace.com">Deviant Prophets</a>

<a href="http://elftown.lysator.liu.se">Elftown@wiki!</a>

Post Reply