Comment Section Assistance

Working on a new template and need help? Come here for support.

Moderator: Help Desk Team

Comment Section Assistance

Postby Frostwings » August 8th, 2011, 8:05 pm

I apologize if this has been posted but I can't seem to find anything to help me on this matter.

I am using the Autumn Leaves Template.

In the image below is how I want all avatars and comments to be presented on my comic pages. If you look here you can see that everything is centered and fairly messy: http://thefayth.smackjeeves.com/comics/ ... e-changes/

Image

Here is the code:
Code: Select all
<script language="JavaScript">

var dir = "";
var pic_unselected = "http://www.smackjeeves.com/templates/autumn_leaves/images/rating1.png";
var pic_selected = "http://www.smackjeeves.com/templates/autumn_leaves/images/rating2.png";

// "Buffers" the image to the browser
document.write('<img style="display: none" src="' + dir + pic_unselected + '" />');
document.write('<img style="display: none" src="' + dir + pic_selected + '" />');

<!-- 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('<h2>Rate this Comic: ');
   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="http://www.smackjeeves.com/templates/autumn_leaves/images/rating2.png" 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>
</h2>

<h1>{COMIC_TITLE}</h1>
<h2>{COMIC_POST_DATE}</h2>

<!-- BEGIN comic_image -->
{comic_image.FORMATTED}
<!-- END comic_image -->
<!-- BEGIN switch_no_comic_image -->
<img src="http://www.smackjeeves.com/images/image_na.gif" width="600" height="400">
<!-- END switch_no_comic_image -->

<div id="rating">

<h2>Average Rating: <b>{AVERAGE_RATING}</b></h2>

</div>

<div id="rate">

<script language="JavaScript">build_vote();</script>


</td></tr></table>

<div style="padding: 8px 0 3px">{SHARE_THIS_COMIC}</div>

<script type="text/javascript">
   jsbookmark_pageUrl = "{COMIC_URL}";
</script>
<script type="text/javascript" src="http://www.smackjeeves.com/templates/default/jsbookmark2.js"></script>

<style>
.comicnav a img
{
   vertical-align: middle;
}
</style>

<div class="comicnav">

   <a href="{NAV_FIRST}"><img src="http://i61.photobucket.com/albums/h55/JGflight/first_day.jpg" alt="<< First" /></a>
   <a href="{NAV_PREV}"><img src="http://i61.photobucket.com/albums/h55/JGflight/previous_day.jpg" alt="< Previous" /></a>
   
   {JUMPBOX_FORMATTED}
   
   <a href="{NAV_NEXT}"><img src="http://i61.photobucket.com/albums/h55/JGflight/next_day.jpg" alt="Next >" /></a>
   <a href="{NAV_LAST}"><img src="http://i61.photobucket.com/albums/h55/JGflight/last_day.jpg" alt="Most Recent >>" /></a>

</div> 
         

   <!-- BEGIN switch_author_comments -->
      <div style="width: 750px; background: #C7846B; margin: 20px auto; padding: 15px;">
         <h1 class="sub-title" style="margin: 0"><u>Author's Comments</u></h1>
      </div>
   <!-- END switch_author_comments -->

   <!-- BEGIN loop_author_comments -->
   <span>
   <!-- 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;">Edit</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;">Delete</a>
   <!-- END switch_user_can_delete -->
   </span>
   <a href="{loop_author_comments.POSTER_PROFILE_URL}" target="_profile">{loop_author_comments.NAME}</a>, {loop_author_comments.DATE_POSTED}
   </h1>
   <p>
   <!-- BEGIN switch_poster_avatar -->
   <img src="{loop_author_comments.POSTER_AVATAR_IMG_SRC}" height="{loop_author_comments.POSTER_AVATAR_IMG_HEIGHT}" width="{loop_author_comments.POSTER_AVATAR_IMG_WIDTH}" />
   <!-- END switch_poster_avatar -->
   <b>{loop_author_comments.POST_TITLE}</b>
   <align="left"> {loop_author_comments.MESSAGE}
   </p>
   <!-- END loop_author_comments -->
   
   <!-- BEGIN switch_user_comments -->
   <h1 class="sub-title"><u>User's Comments</u></h1>
   <!-- END switch_user_comments -->
   
   <!-- BEGIN loop_user_comments -->
   <span>
   <!-- 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;">Edit</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;">Delete</a>
   <!-- END switch_user_can_delete -->
   </span>
   <a href="{loop_user_comments.POSTER_PROFILE_URL}" target="_profile">{loop_user_comments.NAME}</a>, {loop_user_comments.DATE_POSTED}</h1>
   <p>
   <!-- BEGIN switch_poster_avatar -->
   <img src="{loop_user_comments.POSTER_AVATAR_IMG_SRC}" height="{loop_user_comments.POSTER_AVATAR_IMG_HEIGHT}" width="{loop_user_comments.POSTER_AVATAR_IMG_WIDTH}" />
   <!-- END switch_poster_avatar -->

   <b>{loop_user_comments.POST_TITLE}</b>
   {loop_user_comments.MESSAGE}
   </p>
   <!-- END loop_user_comments -->   


   <h1 class="post-me"><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;">Post A Comment</a></h1>


If anyone can help me with this, I would be very grateful. Thanks a bunch!
-"Nearl, I'm gonna kill Babar."

-----------------------------------------

Image
User avatar
Frostwings
 
Posts: 67
Joined: April 30th, 2007, 10:13 pm
Location: Northrend...my feet are cold...

Re: Comment Section Assistance

Postby eishiya » August 8th, 2011, 9:50 pm

Try this (back up your current template first, if you've made any changes to it):

Replace everything between
<!-- BEGIN switch_author_comments -->
and
<!-- END loop_user_comments -->

with:
Code: Select all
<div style="width: 750px; background: #C7846B; margin: 20px auto; padding: 15px;">
<!-- BEGIN switch_author_comments -->
    <h1 class="sub-title" style="margin: 0"><u>Author's Comments</u></h1>
<!-- END switch_author_comments -->

<!-- BEGIN loop_author_comments -->
<span>
<!-- 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;">Edit</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;">Delete</a>
   <!-- END switch_user_can_delete -->
   </span>
<table class="comment"><tr>
<td width="125px" align="center">
<!-- BEGIN switch_poster_avatar -->
<a href="{loop_author_comments.POSTER_PROFILE_URL}"><img src="{loop_author_comments.POSTER_AVATAR_IMG_SRC}" alt="{loop_author_comments.NAME}"></a>
<!-- END switch_poster_avatar -->
</td><td>
<strong>{loop_author_comments.POST_TITLE}</strong>
<div class="comment_info">
<a href="{loop_author_comments.POSTER_PROFILE_URL}">{loop_author_comments.NAME}</a>, {loop_author_comments.DATE_POSTED}
</div>
{loop_author_comments.MESSAGE}

<br>
</td></tr></table>
<!-- END loop_author_comments --><br><br>

<!-- BEGIN switch_user_comments -->
<h1 class="sub-title"><u>User's Comments</u></h1>
<!-- END switch_user_comments -->
<!-- BEGIN loop_user_comments -->
<table class="comment"><tr>
<td width="125px" align="center">
<!-- BEGIN switch_poster_avatar -->
<a href="{loop_user_comments.POSTER_PROFILE_URL}"><img src="{loop_user_comments.POSTER_AVATAR_IMG_SRC}" alt="{loop_user_comments.NAME}"></a>
<!-- END switch_poster_avatar -->
</td><td><strong>{loop_user_comments.POST_TITLE}</strong>
<div class="comment_info">
<a href="{loop_user_comments.POSTER_PROFILE_URL}">{loop_user_comments.NAME}</a>, {loop_user_comments.DATE_POSTED}
<!-- 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;">( Edit )</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;">( Delete )</a><br>
<!-- END switch_user_can_delete -->
</div>
{loop_user_comments.MESSAGE}</td></tr></table>
<!-- END loop_user_comments -->
</div>
Busy, busy.
User avatar
eishiya
 
Posts: 5743
Joined: December 5th, 2009, 11:17 am

Re: Comment Section Assistance

Postby Frostwings » August 9th, 2011, 5:41 pm

I appreciate your assistance but it seems that it did not work as intended. I may have placed the code incorrectly but both author and reader comments disappeared.

Just in case it makes a difference in your code deducing, after I tried placing the code in between the two lines you recommended (which resulted in the image below); I removed what seemed like an extra <!-- END loop_user_comments -->, first one, then the last, then both. All three removals caused an error on top of the page which is as follows:
Code: Select all
Parse error: syntax error, unexpected $end in /home/smackjee/public_html/includes/classTemplate.php(151) : eval()'d code on line 196

Warning: Cannot modify header information - headers already sent by (output started at /home/smackjee/public_html/includes/classTemplate.php(151) : eval()'d code:196) in /home/smackjee/public_html/viewsite.php on line 3360

Warning: Cannot modify header information - headers already sent by (output started at /home/smackjee/public_html/includes/classTemplate.php(151) : eval()'d code:196) in /home/smackjee/public_html/viewsite.php on line 3362

Warning: Cannot modify header information - headers already sent by (output started at /home/smackjee/public_html/includes/classTemplate.php(151) : eval()'d code:196) in /home/smackjee/public_html/viewsite.php on line 3363


Here is the code as is along with a resulting image:

Image

Code: Select all
<script language="JavaScript">

var dir = "";
var pic_unselected = "http://www.smackjeeves.com/templates/autumn_leaves/images/rating1.png";
var pic_selected = "http://www.smackjeeves.com/templates/autumn_leaves/images/rating2.png";

// "Buffers" the image to the browser
document.write('<img style="display: none" src="' + dir + pic_unselected + '" />');
document.write('<img style="display: none" src="' + dir + pic_selected + '" />');

<!-- 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('<h2>Rate this Comic: ');
   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="http://www.smackjeeves.com/templates/autumn_leaves/images/rating2.png" 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>
</h2>

<h1>{COMIC_TITLE}</h1>
<h2>{COMIC_POST_DATE}</h2>

<!-- BEGIN comic_image -->
{comic_image.FORMATTED}
<!-- END comic_image -->
<!-- BEGIN switch_no_comic_image -->
<img src="http://www.smackjeeves.com/images/image_na.gif" width="600" height="400">
<!-- END switch_no_comic_image -->

<div id="rating">

<h2>Average Rating: <b>{AVERAGE_RATING}</b></h2>

</div>

<div id="rate">

<script language="JavaScript">build_vote();</script>


</td></tr></table>

<div style="padding: 8px 0 3px">{SHARE_THIS_COMIC}</div>

<script type="text/javascript">
   jsbookmark_pageUrl = "{COMIC_URL}";
</script>
<script type="text/javascript" src="http://www.smackjeeves.com/templates/default/jsbookmark2.js"></script>

<style>
.comicnav a img
{
   vertical-align: middle;
}
</style>

<div class="comicnav">

   <a href="{NAV_FIRST}"><img src="http://i61.photobucket.com/albums/h55/JGflight/first_day.jpg" alt="<< First" /></a>
   <a href="{NAV_PREV}"><img src="http://i61.photobucket.com/albums/h55/JGflight/previous_day.jpg" alt="< Previous" /></a>
   
   {JUMPBOX_FORMATTED}
   
   <a href="{NAV_NEXT}"><img src="http://i61.photobucket.com/albums/h55/JGflight/next_day.jpg" alt="Next >" /></a>
   <a href="{NAV_LAST}"><img src="http://i61.photobucket.com/albums/h55/JGflight/last_day.jpg" alt="Most Recent >>" /></a>

</div> 
         

   <!-- BEGIN switch_author_comments -->
      <div style="width: 750px; background: #C7846B; margin: 20px auto; padding: 15px;">
<!-- BEGIN switch_author_comments -->
    <h1 class="sub-title" style="margin: 0"><u>Author's Comments</u></h1>
<!-- END switch_author_comments -->

<!-- BEGIN loop_author_comments -->
<span>
<!-- 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;">Edit</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;">Delete</a>
   <!-- END switch_user_can_delete -->
   </span>
<table class="comment"><tr>
<td width="125px" align="center">
<!-- BEGIN switch_poster_avatar -->
<a href="{loop_author_comments.POSTER_PROFILE_URL}"><img src="{loop_author_comments.POSTER_AVATAR_IMG_SRC}" alt="{loop_author_comments.NAME}"></a>
<!-- END switch_poster_avatar -->
</td><td>
<strong>{loop_author_comments.POST_TITLE}</strong>
<div class="comment_info">
<a href="{loop_author_comments.POSTER_PROFILE_URL}">{loop_author_comments.NAME}</a>, {loop_author_comments.DATE_POSTED}
</div>
{loop_author_comments.MESSAGE}

<br>
</td></tr></table>
<!-- END loop_author_comments --><br><br>

<!-- BEGIN switch_user_comments -->
<h1 class="sub-title"><u>User's Comments</u></h1>
<!-- END switch_user_comments -->
<!-- BEGIN loop_user_comments -->
<table class="comment"><tr>
<td width="125px" align="center">
<!-- BEGIN switch_poster_avatar -->
<a href="{loop_user_comments.POSTER_PROFILE_URL}"><img src="{loop_user_comments.POSTER_AVATAR_IMG_SRC}" alt="{loop_user_comments.NAME}"></a>
<!-- END switch_poster_avatar -->
</td><td><strong>{loop_user_comments.POST_TITLE}</strong>
<div class="comment_info">
<a href="{loop_user_comments.POSTER_PROFILE_URL}">{loop_user_comments.NAME}</a>, {loop_user_comments.DATE_POSTED}
<!-- 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;">( Edit )</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;">( Delete )</a><br>
<!-- END switch_user_can_delete -->
</div>
{loop_user_comments.MESSAGE}</td></tr></table>
<!-- END loop_user_comments -->
</div>
   <!-- END loop_user_comments -->


   <h1 class="post-me"><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;">Post A Comment</a></h1>


I would truly appreciate more help on the matter at your earliest convenience. Thanks a bunch!
-"Nearl, I'm gonna kill Babar."

-----------------------------------------

Image
User avatar
Frostwings
 
Posts: 67
Joined: April 30th, 2007, 10:13 pm
Location: Northrend...my feet are cold...

Re: Comment Section Assistance

Postby eishiya » August 9th, 2011, 8:37 pm

I think it's because you misunderstood my directions (I phrased them wrong)

When I said
Replace everything between
<!-- BEGIN switch_author_comments -->
and
<!-- END loop_user_comments -->


I meant INCLUDING those lines.

So, get rid of the <!-- BEGIN switch_author_comments --> at the beginning and the <!-- END loop_user_comments --> at the end, it should help (...if I did the other code right, which I probably didn't).
Busy, busy.
User avatar
eishiya
 
Posts: 5743
Joined: December 5th, 2009, 11:17 am

Re: Comment Section Assistance

Postby Frostwings » August 10th, 2011, 8:33 pm

Almost!

The avatars are perfectly aligned left, just how I want them. The user text is also aligned left, which is great.

Now for the bad news =( The names are misplaced. They should be after the "delete" option but for both author and user they are placed in other locations, making it look kind of awkward.

The author comments are still centered as well.

I hate to add more to the plate, but is there anyway to change "user's comments" to "Reader Comments"?

So very close, I hope you can tweak it =D

And thank you so much for your help so far!

Here is the code and the result:

Code: Select all
<script language="JavaScript">

var dir = "";
var pic_unselected = "http://www.smackjeeves.com/templates/autumn_leaves/images/rating1.png";
var pic_selected = "http://www.smackjeeves.com/templates/autumn_leaves/images/rating2.png";

// "Buffers" the image to the browser
document.write('<img style="display: none" src="' + dir + pic_unselected + '" />');
document.write('<img style="display: none" src="' + dir + pic_selected + '" />');

<!-- 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('<h2>Rate this Comic: ');
   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="http://www.smackjeeves.com/templates/autumn_leaves/images/rating2.png" 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>
</h2>

<h1>{COMIC_TITLE}</h1>
<h2>{COMIC_POST_DATE}</h2>

<!-- BEGIN comic_image -->
{comic_image.FORMATTED}
<!-- END comic_image -->
<!-- BEGIN switch_no_comic_image -->
<img src="http://www.smackjeeves.com/images/image_na.gif" width="600" height="400">
<!-- END switch_no_comic_image -->

<div id="rating">

<h2>Average Rating: <b>{AVERAGE_RATING}</b></h2>

</div>

<div id="rate">

<script language="JavaScript">build_vote();</script>


</td></tr></table>

<div style="padding: 8px 0 3px">{SHARE_THIS_COMIC}</div>

<script type="text/javascript">
   jsbookmark_pageUrl = "{COMIC_URL}";
</script>
<script type="text/javascript" src="http://www.smackjeeves.com/templates/default/jsbookmark2.js"></script>

<style>
.comicnav a img
{
   vertical-align: middle;
}
</style>

<div class="comicnav">

   <a href="{NAV_FIRST}"><img src="http://i61.photobucket.com/albums/h55/JGflight/first_day.jpg" alt="<< First" /></a>
   <a href="{NAV_PREV}"><img src="http://i61.photobucket.com/albums/h55/JGflight/previous_day.jpg" alt="< Previous" /></a>
   
   {JUMPBOX_FORMATTED}
   
   <a href="{NAV_NEXT}"><img src="http://i61.photobucket.com/albums/h55/JGflight/next_day.jpg" alt="Next >" /></a>
   <a href="{NAV_LAST}"><img src="http://i61.photobucket.com/albums/h55/JGflight/last_day.jpg" alt="Most Recent >>" /></a>

</div> 
         

<div style="width: 750px; background: #C7846B; margin: 20px auto; padding: 15px;">
<!-- BEGIN switch_author_comments -->
    <h1 class="sub-title" style="margin: 0"><u>Author's Comments</u></h1>
<!-- END switch_author_comments -->

<!-- BEGIN loop_author_comments -->
<span>
<!-- 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;">Edit</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;">Delete</a>
   <!-- END switch_user_can_delete -->
   </span>
<table class="comment"><tr>
<td width="125px" align="center">
<!-- BEGIN switch_poster_avatar -->
<a href="{loop_author_comments.POSTER_PROFILE_URL}"><img src="{loop_author_comments.POSTER_AVATAR_IMG_SRC}" alt="{loop_author_comments.NAME}"></a>
<!-- END switch_poster_avatar -->
</td><td>
<strong>{loop_author_comments.POST_TITLE}</strong>
<div class="comment_info">
<a href="{loop_author_comments.POSTER_PROFILE_URL}">{loop_author_comments.NAME}</a>, {loop_author_comments.DATE_POSTED}
</div>
{loop_author_comments.MESSAGE}

<br>
</td></tr></table>
<!-- END loop_author_comments --><br><br>

<!-- BEGIN switch_user_comments -->
<h1 class="sub-title"><u>User's Comments</u></h1>
<!-- END switch_user_comments -->
<!-- BEGIN loop_user_comments -->
<table class="comment"><tr>
<td width="125px" align="center">
<!-- BEGIN switch_poster_avatar -->
<a href="{loop_user_comments.POSTER_PROFILE_URL}"><img src="{loop_user_comments.POSTER_AVATAR_IMG_SRC}" alt="{loop_user_comments.NAME}"></a>
<!-- END switch_poster_avatar -->
</td><td><strong>{loop_user_comments.POST_TITLE}</strong>
<div class="comment_info">
<a href="{loop_user_comments.POSTER_PROFILE_URL}">{loop_user_comments.NAME}</a>, {loop_user_comments.DATE_POSTED}
<!-- 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;">( Edit )</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;">( Delete )</a><br>
<!-- END switch_user_can_delete -->
</div>
{loop_user_comments.MESSAGE}</td></tr></table>
<!-- END loop_user_comments -->
</div>

   <h1 class="post-me"><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;">Post A Comment</a></h1>


Image
-"Nearl, I'm gonna kill Babar."

-----------------------------------------

Image
User avatar
Frostwings
 
Posts: 67
Joined: April 30th, 2007, 10:13 pm
Location: Northrend...my feet are cold...


Return to Template Development & Support

Who is online

Users browsing this forum: No registered users and 2 guests