inherit
192360
0
Apr 5, 2013 19:05:52 GMT -8
democration
3
April 2013
democration
|
Post by democration on Apr 5, 2013 12:28:43 GMT -8
Since it seems to have been removed from the old version, I'd like to request that the post # is implemented as an optional feature.
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Apr 5, 2013 12:37:08 GMT -8
Hey democration, looks like I missed it. There is a template variable for this already, so I have moved the thread over to template modification so they can show you how to utilize the variable. Apologies about that!
|
|
inherit
123501
0
Aug 9, 2021 15:26:46 GMT -8
Mands
❤ GABRIEL LUNA ❤
1,312
April 2008
queenkitty
|
Post by Mands on Apr 5, 2013 12:53:47 GMT -8
I asked for this, as I liked to have the reply number. This is what you have to do. But it has to be added to ALL THEMES! To add “reply number”: Admin > Themes > Layout Templates > Thread > Post List
Remove: <span class="thread-link">$[post.thread]</span> Line 12 Replace with: <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>
|
|
inherit
192360
0
Apr 5, 2013 19:05:52 GMT -8
democration
3
April 2013
democration
|
Post by democration on Apr 5, 2013 18:41:37 GMT -8
Thank you so much.
|
|
inherit
yllaciledehcysP citsatkranS
161169
0
Nov 28, 2013 18:47:45 GMT -8
moonbeam
I have NO IDEA what "psychedelic insultment" is, but I'm clearly a victim of it!
7,230
December 2010
lmccull
|
Post by moonbeam on Apr 6, 2013 8:51:02 GMT -8
Note that the code is written for the default of 15 posts per page. So, if you have yours set to something else, you will need to change where it says "*15" to whatever number of posts you have your board set to.
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Apr 6, 2013 9:19:09 GMT -8
There is a template variable for this, that shouldn't require JS to make work.
|
|
inherit
123501
0
Aug 9, 2021 15:26:46 GMT -8
Mands
❤ GABRIEL LUNA ❤
1,312
April 2008
queenkitty
|
Post by Mands on Apr 6, 2013 11:42:19 GMT -8
Sorry! I just posted it because it's what I had been using and my post numbers are set to default which is 15. If there is something better by all means point them in the right direction. I was just trying to help.
|
|
inherit
yllaciledehcysP citsatkranS
161169
0
Nov 28, 2013 18:47:45 GMT -8
moonbeam
I have NO IDEA what "psychedelic insultment" is, but I'm clearly a victim of it!
7,230
December 2010
lmccull
|
Post by moonbeam on Apr 6, 2013 11:47:13 GMT -8
Mands - no, what you posted is just fine. I only pointed it out because when I put in the mod on my own board, I noticed it wasn't counting properly, and it was because my default is set to 30 per page. So I had to modify it to suit my board. That's all.
|
|
inherit
123501
0
Aug 9, 2021 15:26:46 GMT -8
Mands
❤ GABRIEL LUNA ❤
1,312
April 2008
queenkitty
|
Post by Mands on Apr 6, 2013 11:49:54 GMT -8
Thanks but I was more referring to RedBassett's comment than yours to be honest, but I can understand why that would mess up. I didn't think of the fact that some people could have different post numbers as I've never touched anything like that.
|
|