Archive not showing up? (RESOLVED)

Topics that have been resolved and may be useful but do not fit into the knowledge base - either they're too specific, or they're duplicate questions.

Moderator: Help Desk Team

Archive not showing up? (RESOLVED)

Postby Krista » December 10th, 2010, 2:45 pm

I'm usually pretty good with coding, but this problem has me stumped.

I do all my layout stuff on a separate tester site before I make it live on my actual web comic. On this tester, I had recently formatted the archives, and had no problems at all, everything was displaying just fine. So I move the code over to my real comic, and end up losing all the information in the archives.

What's weird is that the rest of the stuff shows up fine, the banners, the footer, left sidebar, etc. Even the top of the table containing the archive information shows up; just none of the actual stuff about the pages. I can't figure out what's wrong. :(

Help?

http://memoriatester.smackjeeves.com/archive <--- How it's supposed to look (minus the purple boxes, those are gone on purpose in the other version)

http://memoria.smackjeeves.com/archive <--- How it looks on the actual website


Here's the code I'm using on the main site:
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head><title>Memoria : an original webcomic by K.J Diamond</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
html, body {
height : 100%;
font-family : trebuchet ms, arial, verdana, helvetica, sans-serif;
font-size : 85%;
line-height : 20px;
color : #000;
background : #000 url('http://i120.photobucket.com/albums/o165/kreestuh/bgwithhousetiny.jpg') no-repeat fixed right bottom;
padding : 0;
margin : 0;
}
p {
padding : 0 10px 1em;
}
#container {
min-height : 100%;
background-color : #fff;
width : 800px;
padding-right : 0;
padding-left : 0;
padding-bottom : 0;
padding-top : 0;
}
* html #container {
height : 100%;
}
#header {
margin : 0;
padding : 10px;
background : #fff;
position : relative;
top : 0;
text-align : center;
height : 390px;
}

table.bottom {
background : #f2f2f2;
color : gray;
font-size : x-small;
}

#left {
position : absolute;
top : 400px;
width : 300px;
padding : 15px;
}
#center {
position : relative;
top : 0px;
left : 10px;
color : #000;
border-left : 4px solid #bed4e2;
padding : 10px;
margin-left : 310px;
height: 600px;
}
#footer {
position : relative;
bottom: 0;
width: 800px;
background : #f2f2f2;
color : gray;
font-size : x-small;
}
a.footer {
text-decoration : none;
font-size : xx-small;
font-weight : bold;
text-transform : uppercase;
border-bottom : 1px solid gray;
display : block;
line-height : 20px;
color : #87a1b1;
}
a.footer:hover {
border-bottom : 2px solid gray;
}
a.menu {
font-family : garamond, georgia, times new roman, sans-serif;
font-size : 20px;
color : #fff;
border-bottom : none;
font-weight : 100;
text-transform : lowercase;
}
a {
font-family : trebuchet ms, arial, verdana, helvetica, sans-serif;
color : #87a1b1;
text-decoration : none;
}
a.hover {
border-bottom : 1px dashed #9999cc;
}
dd {
text-indent : 10px;
}
#pipe {
background : #000;
height : 35px;
width : 100%;
left : -10px;
text-align : right;
margin : 0;
}
#pipe ul {
margin-left : 0;
padding-left : 0;
text-align : center;
display : inline;
background : #000;
height : 40px;
}
#pipe ul li {
margin-left : 0;
padding : 10px 15px;
border-left : 1px solid #fff;
list-style : none;
display : inline;
}
#pipe ul li.first {
margin-left : 0;
border-left : none;
list-style : none;
display : inline;
}
#pipe ul li.title {
margin-left : 0;
border-left : none;
display : inline;
}
h1 {
font-family : garamond, georgia, times new roman, sans-serif;
font-size : 72px;
text-align : left;
font-weight : 100;
margin : 20px;
}
h2 {
font-family : garamond, georgia, times new roman, sans-serif;
font-size : large;
color : #a3a0b0;
margin : 10px;
font-weight : 100;
text-align : right;
}
h3 {
font-family : garamond, georgia, times new roman, sans-serif;
font-size : 32px;
padding : 2px;
margin : 3px;
color : #bed4e2;
font-weight : 100;
}
hr.banner {
width : 770px;
height : 20px;
background : #000;
border : #000;
}
blockquote, quote, table {
font-family : trebuchet ms, arial, verdana, helvetica, sans-serif;
color : gray;
padding : 10px;
background: white;
}
input, text-area {
font-family : trebuchet ms, helvetica, sans-serif;
background-color : #fff;
color : gray;
font-size : x-small;
padding : 2px;
border : 1px dotted gray;
}
input.btn {
font-family : trebuchet ms, helvetica, sans-serif;
background-color : #fff;
color : gray;
font-size : x-small;
border : 1px dotted gray;
}
img.small {
border : 0;
padding : 0;
padding : 10px;
float : left;
}
img {
border : 0;
}
.userinfo {
background : #e8f0f5;
width : 100px;
padding : 4px;
color : #000;
text-align : center;
float : left;
margin : 10px;
}

</style>
</head>
<body>


<div id="container">
<div id="header">
<h1>memoria</h1>
<div id="pipe">
<ul><li class="first"><a href="http://memoria.smackjeeves.com/" title="blog news etc" class="menu"><img src="http://i120.photobucket.com/albums/o165/kreestuh/homeicon.png" alt="home"></a></li>
<li><a href="http://memoria.smackjeeves.com/comics/803020/foreword/" title="where it begins" class="menu">Start Reading</a></li>

<li><a href="/comics/" title="latest stuff" class="menu">Latest Page</a></li>
<li><a href="http://memoria.smackjeeves.com/archive/" title="list of chapters and pages" class="menu">Archives</a></li>
<li><a href="http://memoria.smackjeeves.com/about/" title="about me the comic and everything else" class="menu">About</a></li>
<li><a href="http://memoria.smackjeeves.com/extras/" title="artwork writing links etc" class="menu">Extras</a></li>
<li><a href="http://memoria.smackjeeves.com/links/" title="other comics and resources" class="menu">Links</a></li></ul>
</div>


<a href="http://memoria.smackjeeves.com/">
<img src="http://i120.photobucket.com/albums/o165/kreestuh/duncan_banner.jpg?1291223785" alt="Memoria: a webcomic by K.J Diamond"></a>
<hr class="banner">

</div>

<div id="center">

<h3>ARCHIVES</h3>

   <table border="0" cellpadding="4" cellspacing="0" align="center">

      <tr><th>#</th><th>Title</th><th>Date Released</th><th>Comments</th></tr>
   
      <!-- BEGIN archive_list -->
      <tr><td>{archive_list.COMIC_NUMBER}</td><td><a href="archive_list.COMIC_URL}">{archive_list.COMIC_TITLE}</a></td><td>{archive_list.DATE_RELEASED}</td><td><a href="{archive_list.COMIC_URL}">{archive_list.NUMBER_COMMENTS} Comments</a></td></tr>
      <!-- END archive_list -->
      </table>
   
   
</div>


<div id="left">
Chapter by Chapter Archive coming soon!
</div>


<div id="footer">
<table cellspacing="10" class="bottom">
  <tr>
   <td width="256">
<dl><dt><a href="http://memoria.smackjeeves.com/" class="footer">Blog</a></dt>
<dd><a href="http://memoria.smackjeeves.com/news-archive" class="footer">Blog Archives</a></dd>

<dt><a href="http://memoria.smackjeeves.com/about/" class="footer">About</a></dt>
<dd><a href="http://memoria.smackjeeves.com/about/ANCHOR" class="footer">Story</a></dd>
<dd><a href="http://memoria.smackjeeves.com/about/ANCHOR" class="footer">Author</a></dd>
<dd><a href="http://memoria.smackjeeves.com/about/ANCHOR" class="footer">FAQ</a></dd>
<dd><a href="http://memoria.smackjeeves.com/about/ANCHOR" class="footer">Characters</a></dd>
<dd><a href="http://memoria.smackjeeves.com/about/ANCHOR" class="footer">World</a></dd>
</td>

   <td width="256">


<dt><a href="http://memoria.smackjeeves.com/extras" class="footer">Extras</a></dt>
<dd><a href="http://memoria.smackjeeves.com/extras/ANCHOR" class="footer">Gallery</a></dd>
<dd><a href="http://memoria.smackjeeves.com/extras/ANCHOR" class="footer">Fanart</a></dd>
<dd><a href="http://memoria.smackjeeves.com/extras/ANCHOR" class="footer">Essays & Short Stories</a></dd>
<dd><a href="http://memoria.smackjeeves.com/extras/ANCHOR" class="footer">Bonus Materials</a></dd>

<dt><a href="http://memoria.smackjeeves.com/archive/" class="footer">Archive</a>
<dd><a href="http://memoria.smackjeeves.com/comics/803020/foreword/" class="footer">Begin Reading</a></dd>
<dd><a href="http://memoria.smackjeeves.com/comics/" class="footer">Latest Page</a></dd></dt>

</dl>

</td>
   
<td width="256"><a href="http://memoria.smackjeeves.com/rss/" border="0"><img src="http://www.uobgroup.com/assets/images/about/rss/rss_icon.gif" alt="Get updates from the site on your RSS feed"></a>

<a href="http://www.facebook.com/pages/Memoria/305019269806" border="0"><img src="http://i120.photobucket.com/albums/o165/kreestuh/facebook-icon.png" alt="Become a fan of Memoria on Facebook"></a>

<a href="http://www.twitter.com/Kreestuh" border="0"><img src="http://twitter-badges.s3.amazonaws.com/t_mini-a.png" alt="Follow Memoria on Twitter"></a><br>


Join this to receive updates when a chapter is completed or other important news surfaces:
<form method=post action="http://members.notifylist.com/edit/joinlist">
<input type=hidden name="list_name" value="kreestuh-memoria"><input type=text name="email" value="email" style="width: 130px;"> <input type=submit value="join" class="btn"></FORM>

<br> Memoria is copyright &#169; 2003-2010 Krista Diamond unless noted otherwise. All rights reserved.
</td>
  </tr>
</table>

</div>

</div>
</body>
</html>


EDIT: AH, poops. I probably should've posted this in template development. If no one answers here, will someone move this over there for me? Thanks!
Last edited by Krista on December 14th, 2010, 12:24 pm, edited 1 time in total.
Image
Pioneer: who are you?
User avatar
Krista
 
Posts: 177
Joined: May 19th, 2008, 12:16 pm
Location: USA

Re: Archive not showing up?

Postby Amante » December 10th, 2010, 4:04 pm

Is your code for the page showing that you have added the archive code in? Cause when I bring in your code for both pages, Memoria looks like this:
Code: Select all
<table border="0" cellpadding="4" cellspacing="0" align="center">

      <tr><th>#</th><th>Title</th><th>Date Released</th><th>Comments</th></tr>

      </table>


and memoria tester looks like this:
Code: Select all
<table border="0" cellpadding="4" cellspacing="0" align="center">

      <tr><th>#</th><th>Title</th><th>Date Released</th><th>Comments</th></tr>

      <tr><td>1</td><td><a href="/comics/691811/intowoodspg2/">intowoodspg2</a></td><td>05 Sep 2009 09:30 am</td><td><a href="/comics/691811/intowoodspg2/">1 Comments</a></td></tr>
      <tr><td>2</td><td><a href="/comics/691812/intothewoodspg3/">intothewoodspg3</a></td><td>05 Sep 2009 09:35 am</td><td><a href="/comics/691812/intothewoodspg3/">2 Comments</a></td></tr>
      <tr><td>3</td><td><a href="/comics/691813/intothewoodspg4/">intothewoodspg4</a></td><td>05 Sep 2009 09:40 am</td><td><a href="/comics/691813/intothewoodspg4/">2 Comments</a></td></tr>

      <tr><td>4</td><td><a href="/comics/886577/sample-memoria-prelude/">Sample, Memoria prelude</a></td><td>01 Jun 2010 12:09 pm</td><td><a href="/comics/886577/sample-memoria-prelude/">1 Comments</a></td></tr>
      <tr><td>5</td><td><a href="/comics/886579/sample-memoria-ch1/">Sample. Memoria Ch1</a></td><td>01 Jun 2010 12:10 pm</td><td><a href="/comics/886579/sample-memoria-ch1/">3 Comments</a></td></tr>
      </table>


so it's missing the whole archive section. Check just to see if it's there in the hard code. If not, try copy and pasting just the:
Code: Select all
<tr><td>1</td><td><a href="/comics/691811/intowoodspg2/">intowoodspg2</a></td><td>05 Sep 2009 09:30 am</td><td><a href="/comics/691811/intowoodspg2/">1 Comments</a></td></tr>
      <tr><td>2</td><td><a href="/comics/691812/intothewoodspg3/">intothewoodspg3</a></td><td>05 Sep 2009 09:35 am</td><td><a href="/comics/691812/intothewoodspg3/">2 Comments</a></td></tr>
      <tr><td>3</td><td><a href="/comics/691813/intothewoodspg4/">intothewoodspg4</a></td><td>05 Sep 2009 09:40 am</td><td><a href="/comics/691813/intothewoodspg4/">2 Comments</a></td></tr>

      <tr><td>4</td><td><a href="/comics/886577/sample-memoria-prelude/">Sample, Memoria prelude</a></td><td>01 Jun 2010 12:09 pm</td><td><a href="/comics/886577/sample-memoria-prelude/">1 Comments</a></td></tr>
      <tr><td>5</td><td><a href="/comics/886579/sample-memoria-ch1/">Sample. Memoria Ch1</a></td><td>01 Jun 2010 12:10 pm</td><td><a href="/comics/886579/sample-memoria-ch1/">3 Comments</a></td></tr>

into the code.
Any SJ related questions? Feel free to look around, and if you can't find an answer, make a topic here and we'll get to you as fast as we can! :D

Image
User avatar
Amante
 
Posts: 2905
Joined: June 5th, 2009, 6:52 pm

Re: Archive not showing up?

Postby eishiya » December 10th, 2010, 4:53 pm

That'll hard-code the links instead of auto-generating them, Amante... D:
Busy, busy.
User avatar
eishiya
 
Posts: 5737
Joined: December 5th, 2009, 11:17 am

Re: Archive not showing up?

Postby Amante » December 10th, 2010, 9:42 pm

eishiya wrote:That'll hard-code the links instead of auto-generating them, Amante... D:


Ah yeah, you're right. Ugh, I've been failing at coding lately haha.

Well, one thing I see is that you're missing a "{" before the first archive_list.COMIC_URL
Any SJ related questions? Feel free to look around, and if you can't find an answer, make a topic here and we'll get to you as fast as we can! :D

Image
User avatar
Amante
 
Posts: 2905
Joined: June 5th, 2009, 6:52 pm

Re: Archive not showing up?

Postby trenton_dawn » December 10th, 2010, 10:43 pm

Isn't the <!-- BEGIN archive_list --> loop deprecated? Could that be causing the problem?
Image
Ghost, an online novel — Sketchbook thread — deviantArt
Need assistance with anything? Feel free to PM me.
Seven Rain wrote:Trenton speaks words of wisdom.
Cave wrote:GOD, trenton.... why u so awesome? :(
User avatar
trenton_dawn
 
Posts: 2595
Joined: December 14th, 2006, 7:59 pm
Location: Auberdine, Darkshore (Alliance Territory)

Re: Archive not showing up?

Postby Krista » December 11th, 2010, 12:28 pm

Amante wrote:Well, one thing I see is that you're missing a "{" before the first archive_list.COMIC_URL


Fixed that, but still no results. I think that everything else would've worked even if that wasn't there though. :/

trenton_dawn wrote:Isn't the <!-- BEGIN archive_list --> loop deprecated? Could that be causing the problem?


I don't think it's outdated... it's still on the list of comic archive loops and switches. And it works on my other comic.

Could it be a glitch? Or maybe we're all still missing something?
Image
Pioneer: who are you?
User avatar
Krista
 
Posts: 177
Joined: May 19th, 2008, 12:16 pm
Location: USA

Re: Archive not showing up?

Postby Admin » December 13th, 2010, 11:47 pm

It's because you're using the old archive code, but you have your comics organized into chapters. Not your fault, I just wasn't able to make the old code fully compatible with the new code.

Try using this as a base:

Code: Select all
<div id="dhtmltooltip"></div>



<img src="http://www.smackjeeves.com/templates/default/images/comicarchive.gif" alt="Comic Archive" /><br /><br />


<!-- BEGIN switch_comic_has_chapters -->

   <style type="text/css">
   
      .chapter_list a
      {
         padding: 4px 7px;
         margin: 0 4px 8px;
         display: inline-block;
         border: 1px solid #444444;
         background: #eee;
         -moz-border-radius: 6px;
         -webkit-border-radius: 6px;
         text-decoration: none;
      }
      
   </style>
   
   <div class="chapter_list">
   
      <!-- BEGIN archive_chapters -->
         <a href="#ch_{archive_chapters.CHAPTER_ID}">{archive_chapters.CHAPTER_TITLE}</a>
      <!-- END archive_chapters -->
   
   </div><br />
   
<!-- END switch_comic_has_chapters -->

<style type="text/css">

   #chapter_table
   {
      border-collapse: separate;
   }
   
   #chapter_table th, #chapter_table td
   {
      padding: 4px 6px;
      -moz-border-radius: 2px;
      -webkit-border-radius: 2px;
   }
   
   #chapter_table th
   {
      background: #444;
      color: white;
   }
   
   #chapter_table td
   {
      background: #ededed;
   }
   
   .chapter_title h2
   {
      margin: .5em;
   }
   
</style>

<table id="chapter_table" align="center">



   <tr><th>#</th><th>Title</th><th>Date Released</th><th>Comments</th></tr>
   
   <!-- BEGIN archive_chapters -->
   
      <!-- BEGIN switch_comic_has_chapters -->
      <tr><td colspan="4" class="chapter_title"><a name="ch_{archive_chapters.CHAPTER_ID}"><h2>{archive_chapters.CHAPTER_TITLE}</h2></a></td></tr>
      <!-- END switch_comic_has_chapters -->
   
      <!-- BEGIN archive_comics -->

      <tr>
         <td>{archive_chapters.archive_comics.COMIC_NUMBER}</td>
         <td><a href="{archive_chapters.archive_comics.COMIC_URL}" onMouseOver="ddrivetip(thumbnail('{archive_chapters.archive_comics.THUMBNAIL_IMG_SRC}'))" onMouseOut="hideddrivetip()">{archive_chapters.archive_comics.COMIC_TITLE}</a></td>
         <td>{archive_chapters.archive_comics.DATE_RELEASED}</td>
         <td><a href="{archive_chapters.archive_comics.COMIC_URL}">{archive_chapters.archive_comics.NUMBER_COMMENTS} Comments</a></td>
      </tr>

      <!-- END archive_comics -->
   
   <!-- END archive_chapters -->
   

</table>



<style type="text/css">

#dhtmltooltip{

position: absolute;

border: 2px solid black;

background: #fff;

padding: 2px;

visibility: hidden;

z-index: 100;

/*Remove below line to remove shadow. Below line should always appear last within this CSS*/

filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);

}

</style>



<script type="text/javascript">



/***********************************************

* Cool DHTML tooltip script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)

* This notice MUST stay intact for legal use

* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code

***********************************************/



var offsetxpoint=15 //Customize x offset of tooltip

var offsetypoint=25 //Customize y offset of tooltip

var ie=document.all

var ns6=document.getElementById && !document.all

var enabletip=false

if (ie||ns6)

var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""



function ietruebody(){

return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body

}



function ddrivetip(thetext, thecolor, thewidth){

if (ns6||ie){

if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"

if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor

tipobj.innerHTML=thetext

enabletip=true

return false

}

}



function positiontip(e){

if (enabletip){

var curX=(ns6)?e.pageX : event.x+ietruebody().scrollLeft;

var curY=(ns6)?e.pageY : event.y+ietruebody().scrollTop;

//Find out how close the mouse is to the corner of the window

var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20

var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20



var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000



//if the horizontal distance isn't enough to accomodate the width of the context menu

if (rightedge<tipobj.offsetWidth)

//move the horizontal position of the menu to the left by it's width

tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"

else if (curX<leftedge)

tipobj.style.left="5px"

else

//position the horizontal position of the menu where the mouse is positioned

tipobj.style.left=curX+offsetxpoint+"px"



//same concept with the vertical position

if (bottomedge<tipobj.offsetHeight)

tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"

else

tipobj.style.top=curY+offsetypoint+"px"

tipobj.style.visibility="visible"

}

}



function hideddrivetip(){

if (ns6||ie){

enabletip=false

tipobj.style.visibility="hidden"

tipobj.style.left="-1000px"

tipobj.style.backgroundColor=''

tipobj.style.width=''

}

}



document.onmousemove=positiontip



function thumbnail(img_src) {

   

   return '<img src="' + img_src + '" />';

   

}



</script>
User avatar
Admin
Site Admin
 
Posts: 984
Joined: August 17th, 2005, 11:10 pm

Re: Archive not showing up?

Postby trenton_dawn » December 13th, 2010, 11:49 pm

I think it would help a lot to update the list of comic archive variables with these new loops and switches, since I'm sure people get quite confused if they try to use the outdated information as a reference.
Image
Ghost, an online novel — Sketchbook thread — deviantArt
Need assistance with anything? Feel free to PM me.
Seven Rain wrote:Trenton speaks words of wisdom.
Cave wrote:GOD, trenton.... why u so awesome? :(
User avatar
trenton_dawn
 
Posts: 2595
Joined: December 14th, 2006, 7:59 pm
Location: Auberdine, Darkshore (Alliance Territory)

Re: Archive not showing up?

Postby Admin » December 14th, 2010, 12:36 am

Ah, I guess I never remembered to update the template page when I released this feature. Should be good now.
User avatar
Admin
Site Admin
 
Posts: 984
Joined: August 17th, 2005, 11:10 pm

Re: Archive not showing up?

Postby Krista » December 14th, 2010, 12:24 pm

Got it to work! That was the problem. Thanks guys!

It's funny, because I designed in an area for just chapter info, but then didn't know how to get the chapter headings into the column without hard coding. I was so confused-- I knew it could work, but didn't know how. Now I do. >-<
Image
Pioneer: who are you?
User avatar
Krista
 
Posts: 177
Joined: May 19th, 2008, 12:16 pm
Location: USA

Re: Archive not showing up? (RESOLVED)

Postby Toraneko » December 20th, 2010, 10:14 pm

Thanks for this!
Image
User avatar
Toraneko
 
Posts: 40
Joined: June 17th, 2009, 9:32 am


Return to Resolved Topics

Who is online

Users browsing this forum: No registered users and 0 guests