A request for some small coding help

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
Numoryn
Newbie
Posts: 14
Joined: Tue Jun 07, 2011 6:32 pm
Location: USA

A request for some small coding help

Post by Numoryn »

Hi! I joined Comic Genesis a few days ago and have been working on my comic website. I am not the best at HTML or any sort of coding, having limited practical experience with it in the past. I have been reading over the articles on the CG wiki, reading through an HTML book that I got in college (and is a bit outdated, but I'm poor), and looking over the marvelous templates that theJaded has created in order to figure out what is wrong with the way I'm doing things.

My site is http://numoryn.comicgenesis.com/. I have been working on my page turning icons. Unfortunately, the "next" and "latest" buttons seem to have duplicated themselves. I'm not sure how that happened as I did the coding the same for all the buttons (though as I only have one page so far, that might have some bearing on it).

My next question is how to get rid of the purple link boxes around the banner and the page turning buttons. I know why they're there, but I don't like them and would like to make them invisible. I haven't come across that in either the tutorials or the reading that I've been doing.

However, if some kind soul looks at my site and decides that it burns his/her eyes enough and desires to help me design my site, I will not turn down the help and will offer artistic help in turn (for banners, buttons, and other small things made in Photoshop, if desired). I do not expect that sort of help, however, as everyone is busy and has their own lives and comics to attend to and will continue to work on the HTML myself until satisfied or death. :wink: I appreciate any and all help directed my way. Thank you!
Image

User avatar
Cope
Incompetent Monster
Posts: 7378
Joined: Sat Jul 31, 2004 8:37 pm
Location: Masked man of mystery
Contact:

Re: A request for some small coding help

Post by Cope »

This duplication weirdness seems to be a teething problem associated with new accounts; for example, my entire comic was duplicate when I started. Try logging into siteadmin and triggering a Full Update. That's what fixed the problem for me.

As for the banner, just add border="0" to your image tag. i.e:

Code: Select all

<img src="/images/banner.jpg" alt="Labyrinthine Destinies" border="0">
Image Image
"I've always been fascinated by failure!" -Charlie Brown

User avatar
Numoryn
Newbie
Posts: 14
Joined: Tue Jun 07, 2011 6:32 pm
Location: USA

Re: A request for some small coding help

Post by Numoryn »

Cope wrote:This duplication weirdness seems to be a teething problem associated with new accounts; for example, my entire comic was duplicate when I started. Try logging into siteadmin and triggering a Full Update. That's what fixed the problem for me.

As for the banner, just add border="0" to your image tag. i.e:

Code: Select all

<img src="/images/banner.jpg" alt="Labyrinthine Destinies" border="0">
The banner outline problem went away. Thanks!

Now for the bads news. I did a full update of the site to see if that would fix the duplicate problem. It didn't. So I decided to put one of my other comic pages up along with the first chapter page to see if, by having two pages, the buttons would act normally. When I did that, not only did the duplicate buttons switch to "first" and "previous" instead of "next" and "latest" as they were originally, I seem to have lost my first chapter page as, by hitting previous or first, I get a 404 error. :( I have a feeling that I'm going to be good at screwing up my website. D:
Image

User avatar
Cope
Incompetent Monster
Posts: 7378
Joined: Sat Jul 31, 2004 8:37 pm
Location: Masked man of mystery
Contact:

Re: A request for some small coding help

Post by Cope »

Numoryn wrote:I have a feeling that I'm going to be good at screwing up my website. D:
Keep in mind that Comic Genesis ain't what it used to be. This could very well just be server-side screwiness.

Your first page is still there; the problem is that the navigation buttons are leading us in the wrong direction. Try copy and pasting the code from your indextemplate file here, so we can have a look at how you've got your tags set up.
Image Image
"I've always been fascinated by failure!" -Charlie Brown

User avatar
Numoryn
Newbie
Posts: 14
Joined: Tue Jun 07, 2011 6:32 pm
Location: USA

Re: A request for some small coding help

Post by Numoryn »

Code: Select all

<div class="main">
 ***todays_comics***
 <br />
 <a href="***first_day***"><img src="/images/first_day.gif" alt="First Page" border="0"></a>
 <a href="***previous_day***"><img src="/images/previous_day.gif" alt="Previous Page" border="0"></a>
 <a href="***next_day***"><img src="/images/next_day.gif" alt="Next Page" border="0"></a>
 <a href="***last_day***"><img src="/images/last_day.gif" alt="Latest Page" border="0"></a>  
 <br />
 <h3>News</h3>
 ***todays_notes***
 </div>
  <div class="footer">
 ***comic_name*** is hosted on <a href="http://www.comicgenesis.com">ComicGenesis</a>, a free webhosting and site automation service for webcomics.
 </center>
 </div>
 </body>
 </html>
That's kind of the bottom part of my code page from the index template. I don't know if maybe I did something wrong on the daily template, maybe? But those two are practically the same code, right? I'm not sure how to do the "News" thing either down there as I just ran across that today, but I'll keep working on that too. :-?

Thank you a lot for helping me with this, Cope. You've been very helpful and I appreciate the effort. :)
Image

User avatar
Cope
Incompetent Monster
Posts: 7378
Joined: Sat Jul 31, 2004 8:37 pm
Location: Masked man of mystery
Contact:

Re: A request for some small coding help

Post by Cope »

Oh, I see the problem. You don't need to add image and hyperlink code to the navigation tags; that's all done automatically.

So, for example, just change this:

Code: Select all

<a href="***first_day***"><img src="/images/first_day.gif" alt="First Page" border="0"></a>
to this:

Code: Select all

***first_day***
Your navigation images will automatically appear, since they're named correctly.
Image Image
"I've always been fascinated by failure!" -Charlie Brown

User avatar
Numoryn
Newbie
Posts: 14
Joined: Tue Jun 07, 2011 6:32 pm
Location: USA

Re: A request for some small coding help

Post by Numoryn »

Man, I feel like an idiot. :oops: I knew that I was supposed to title the images that way because I was told to, but I was apparently making it harder than it is. Lol. Thank you for your expertise in straightening this newb out. :) The first button is working like a charm and I am editing the others as well to reflect the change. You are my hero. :)

I'm pretty sure I will need more help, but this is a good start and I've read up to page 180 in my HTML textbook with no intention of stopping until I've learned enough to get by for now. Thanks!
Image

Post Reply