Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Preview

This adds "Thread started on" and "Reply ## on" before the date in threads.

Find the Post List in the Thread Template.

Find this line:
                               <span class="thread-link">$[post.thread]</span>

Replace it with this:
                               <span class="thread-link">$[post.thread]</span>
                               <span id="post-text-$[post.id]" class="post-method"></span>
                               <script type="text/Javascript">
                               {if $[post.index] == 0}
                                   var post = { page: location.href.match(/page=(\d+)/)?RegExp.$1-0:1, index: 0 };
                               {/if}
                                   var index = (post.page-1)*15 + post.index++;
                                   if(!location.href.match(/(\?|\&)q=/) && proboards.data("route").name == "thread"){
                                       $("#post-text-$[post.id]").html(index == 0?"Thread started on ":"Reply #"+index+" on ");
                                   }
                               </script>



Last Edit: Jan 15, 2013 4:10:24 GMT by Chris

Stinky666

Stinky666 Avatar

****
Senior Member

422


December 2009
Omg yes. Definitely. I for one love seeing a reply #
Once again, thankies.

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
It was a request over at PBS, but I do miss them...

Stinky666

Stinky666 Avatar

****
Senior Member

422


December 2009
I only noticed a little while ago, but this actually doesn't work for me :(

Edit:

<div class="content-head ui-helper-clearfix">
<div class="info">
                           <span class="thread-link">$[post.thread]</span>
<span id="post-text-$[post.id]" class="post-method"></span>
<script type="text/Javascript">
{if $[post.index] == 0}
var post = { page: location.href.match(/page=(\d+)/)?RegExp.$1-0:1, index: 0 };
{/if}
var index = (post.page-1)*15 + post.index++;
if(!location.href.match(/(\?|\&)q=/) && proboards.data("route").name == "thread"){
$("#post-text-$[post.id]").html(index == 0?"Thread started on ":"Reply #"+index+" on ");
}
</script>

<span class="date">$[post.date]</span>


What I have..


Last Edit: Jan 14, 2013 12:15:50 GMT by Stinky666

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Stinky666 Avatar
I only noticed a little while ago, but this actually doesn't work for me :(

Edit:

<div class="content-head ui-helper-clearfix">
<div class="info">
                           <span class="thread-link">$[post.thread]</span>
<span id="post-text-$[post.id]" class="post-method"></span>
<script type="text/Javascript">
{if $[post.index] == 0}
var post = { page: location.href.match(/page=(\d+)/)?RegExp.$1-0:1, index: 0 };
{/if}
var index = (post.page-1)*15 + post.index++;
if(!location.href.match(/(\?|\&)q=/) && proboards.data("route").name == "thread"){
$("#post-text-$[post.id]").html(index == 0?"Thread started on ":"Reply #"+index+" on ");
}
</script>

<span class="date">$[post.date]</span>


What I have..


Forum URL? This won't show when using Preview, only once you save.

Stinky666

Stinky666 Avatar

****
Senior Member

422


December 2009
I did save. It's been in there ever since I replied, and nothing.
See exdat.freemessageboards.com/thread/10411/kittens?scrollTo=85469&page=1


Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Stinky666 Avatar
I did save. It's been in there ever since I replied, and nothing.
See exdat.freemessageboards.com/thread/10411/kittens?scrollTo=85469&page=1


Recopy. Somehow while editing it converted & to &amp;, which breaks things.

Stinky666

Stinky666 Avatar

****
Senior Member

422


December 2009
Wouldn't recopying just break the & again though?
I will do anyway but this time it's the entire Post List tab




Last Edit: Jan 15, 2013 12:35:34 GMT by Stinky666

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Stinky: I meant recopy the replacement part from the first post...

Stinky666

Stinky666 Avatar

****
Senior Member

422


December 2009
Bahahahahahahahahahahaaaa that makes more sense :P
Ok done and the result is...

*drum roll*

it works :D
Cheers ears

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Stinky666 Avatar
Bahahahahahahahahahahaaaa that makes more sense :P
Ok done and the result is...

*drum roll*

it works :D
Cheers ears


I guess it's worth clarifying a bit more with replacements vs installations. :P

newBookmarkLockedFalling