(this is what I'm talking about)
- Code: Select all
<div id="title"><h2>{COMIC_TITLE}</h2>
<h4>posted {COMIC_POST_DATE}</h4></div>
<!-- BEGIN comic_image -->
<a href="{NAV_NEXT}">{comic_image.FORMATTED}</a>
<!-- END comic_image -->
<a href='http://topwebcomics.com/vote/12662/default.aspx' title='Vote for Angel's Love on TopWebComics!'><img src='http://topwebcomics.com/rankimages/rankimage.aspx?ImageTemplate=dynamiclink1&SiteID=12662'></a>
<div id="contentwrap">
<div id="comicnavigation">
<ul class="comicnav">
<li><a href="{NAV_FIRST}" title="first page">« first</a></li> <li><a href="{NAV_PREV}" title="previous page">< previous</a></li>
<li><a href="{NAV_NEXT}" title="next page">> next</a></li>
<li><a href="{NAV_LAST}" title="latest page">» last</a></li>
</ul>
</div>
<div id="rating">
<script language="JavaScript">
var dir = "http://www.smackjeeves.com/templates/kingly_grunge/images/" ;
var pic_unselected = "grunge2.png";
var pic_selected = "grunge1.png";
<!-- BEGIN switch_user_has_voted -->
var default_rating = {switch_user_has_voted.RATING};
<!-- END switch_user_has_voted -->
<!-- BEGIN switch_user_hasnt_voted -->
var default_rating = 0;
<!-- END switch_user_hasnt_voted -->
function build_vote()
{
document.write('<b>Rate this Comic:</b> ');
for (n = 1; n<= 5; n++)
{
if (n <= default_rating)
{
default_pic = pic_selected;
} else {
default_pic = pic_unselected;
}
document.write('<a href="#" onClick="vote(' + n + '); return false;" onMouseOver="rateover(' + n + ');" onMouseOut="rateover(default_rating);"><img src="' + dir + default_pic + '" name="star_' + n + '" border=0></a> ');
}
document.write('</ul>');
}
function rateover(star_num)
{
for (n = 1; n <= 5; n++)
{
if (n <= star_num)
{
da_code = 'document.star_' + n + '.src="' + dir + pic_selected + '"';
} else {
da_code = 'document.star_' + n + '.src="' + dir + pic_unselected + '"';
}
eval(da_code);
}
}
function vote(rating)
{
var new_window = window.open("/ratecomic.php?cid={COMIC_ID}&rating=" + rating, "sj_ratecomic", "height=300, width=400");
new_window.focus();
}
</script>
</div>
<div id="post">
<a href="/postcomment.php?cid={COMIC_ID}" onclick="var new_window = window.open('/postcomment.php?cid={COMIC_ID}', 'sj_comment', 'height=350, width=420'); new_window.focus(); return false;" title="post a comment">post a comment</a>
</div>
<!-- BEGIN switch_author_comments -->
<div class="commentheadings"><h5>author comments</h5></div>
<!-- END switch_author_comments -->
<!-- BEGIN loop_author_comments -->
<div id="comment">
<a href="{loop_author_comments.POSTER_PROFILE_URL}" title="{loop_author_comments.NAME}"><img class="avatar" src="{loop_author_comments.POSTER_AVATAR_IMG_SRC}" height="{loop_author_comments.POSTER_AVATAR_IMG_HEIGHT}" width="{loop_author_comments.POSTER_AVATAR_IMG_WIDTH}" alt="view {loop_author_comments.NAME}'s profile"></a> <a href="{loop_author_comments.REPLY_LINK}" onClick="var new_window = window.open('{loop_author_comments.REPLY_LINK}', 'sj_comment', 'height=340, width=420'); new_window.focus(); return false;">Reply</a>
<div class="commentheader">
<h4>{loop_author_comments.DATE_POSTED}</h4>
<h2><a href="{loop_author_comments.POSTER_PROFILE_URL}" title="{loop_author_comments.NAME}">{loop_author_comments.NAME}</a></h2>
</div>
<div class="commentcontent">
<h3>{loop_author_comments.POST_TITLE}</h3>
<!-- BEGIN switch_user_can_edit -->
<a href="{loop_author_comments.EDIT_LINK}" onclick="var new_window = window.open('{loop_author_comments.EDIT_LINK}', 'sj_comment', 'height=320, width=420'); new_window.focus(); return false;"><span class="editdelete">edit comment</span></a> |
<!-- END switch_user_can_edit -->
<!-- BEGIN switch_user_can_delete -->
<a href="{loop_author_comments.DELETE_LINK}" onclick="var new_window = window.open('{loop_author_comments.DELETE_LINK}', 'sj_comment', 'height=320, width=420'); new_window.focus(); return false;"><span class="editdelete">delete comment</span></a>
<!-- END switch_user_can_delete -->
<p>{loop_author_comments.MESSAGE}</p>
</div>
<div class="commentheader">end of message</div>
</div>
<!-- END loop_author_comments -->
<!-- BEGIN switch_user_comments -->
<div class="commentheadings"><h5>user comments</h5></div>
<!-- END switch_user_comments -->
<!-- BEGIN loop_user_comments -->
<div id="comment">
<a href="{loop_user_comments.POSTER_PROFILE_URL}" title="{loop_user_comments.NAME}"><img class="avatar" src="{loop_user_comments.POSTER_AVATAR_IMG_SRC}" height="{loop_user_comments.POSTER_AVATAR_IMG_HEIGHT}" width="{loop_user_comments.POSTER_AVATAR_IMG_WIDTH}" alt="view {loop_user_comments.NAME}'s profile"></a><a href="{loop_user_comments.REPLY_LINK}" onClick="var new_window = window.open('{loop_user_comments.REPLY_LINK}', 'sj_comment', 'height=340, width=420'); new_window.focus(); return false;">Reply</a>
<div class="commentheader">
<h4>{loop_user_comments.DATE_POSTED}</h4>
<h2><a href="{loop_user_comments.POSTER_PROFILE_URL}" title="{loop_user_comments.NAME}">{loop_user_comments.NAME}</a></h2>
</div>
<div class="commentcontent">
<h3>{loop_user_comments.POST_TITLE}</h3>
<!-- BEGIN switch_user_can_edit -->
<a href="{loop_user_comments.EDIT_LINK}" onclick="var new_window = window.open('{loop_user_comments.EDIT_LINK}', 'sj_comment', 'height=320, width=420'); new_window.focus(); return false;"><span class="editdelete">edit comment</span></a> |
<!-- END switch_user_can_edit -->
<!-- BEGIN switch_user_can_delete -->
<a href="{loop_user_comments.DELETE_LINK}" onclick="var new_window = window.open('{loop_user_comments.DELETE_LINK}', 'sj_comment', 'height=320, width=420'); new_window.focus(); return false;"><span class="editdelete">delete comment</span></a>
<!-- END switch_user_can_delete -->
<p>{loop_user_comments.MESSAGE}</p>
</div>
<div class="commentheader">end of message</div>
</div>
<!-- END loop_user_comments -->
<div id="rating">
<script language="JavaScript" type="text/javascript">build_vote();</script>
<br />average rating: <em>{AVERAGE_RATING}</em>
</div>
<div id="post">
<a href="/postcomment.php?cid={COMIC_ID}" onclick="var new_window = window.open('/postcomment.php?cid={COMIC_ID}', 'sj_comment', 'height=350, width=420'); new_window.focus(); return false;" title="post a comment">post a comment</a>
</div>
</div>
Help please. DX;




