inherit
cycleman221@gmail.com
195360
0
Jul 4, 2022 1:19:15 GMT -8
cycleman
36
June 2013
cycleman
|
Post by cycleman on Jul 10, 2013 18:44:28 GMT -8
i used to reference posts by "reply #." those posts no longer make sense, as the reply # is not listed. the reader must search through the named thread manually and laboriously count the number of replies to get to the relevant post. if they lose count, they have to start all over again.
most would give up and just request a re-posting. while a reasonable request, this is still wasteful. a re-posting takes up space in the thread, in bandwidth, and sometimes attachment limits.
this plugin is vital to my board. pls help.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jul 10, 2013 19:17:52 GMT -8
There's a template mod for this and below you'll find the latest update to that code. Well the Post List "Reply #" template modification can be fixed, all you have to do is include the changed "list_posts" route. My layout template that adds classes to the rows in Recent Threads isn't going to work though, because it's based on using the route to determine where the user is, and if it just changes to the same value as any regular thread list, it's not gonna work. Maybe I'll write it as a plugin instead. Oh well, here's the updated Reply # code for you, Chrissie.
And as always, edit the bit in red to match what you have set for your Post Per Page setting in Admin > Forum Settings.
|
|
inherit
cycleman221@gmail.com
195360
0
Jul 4, 2022 1:19:15 GMT -8
cycleman
36
June 2013
cycleman
|
Post by cycleman on Jul 11, 2013 9:12:11 GMT -8
thx Eton Bones, but i don't know much about code so i don't know where to insert that bit. plug ins are handy in that you don't usually need to know code.
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Jul 11, 2013 11:30:55 GMT -8
Sorry cycleman, I neglected to include contextual instructions for that update so now the walkthrough for how to install it is kind of all over the place. Head to your admin control panel. Mousing over the Structure tab, click on Layout Templates. On this next screen, locate the Thread template, and click on the Post List tab on the next screen. You're going to want to make a new line under line 19 and paste the code that Eton quoted above. Save the template and then browse to a thread to ensure the reply is showing as it should. Also I agree on the plugin comment. This would be possible with a plugin, but it doesn't appear that anyone's taken up the project. Maybe this thread you made will change that.
|
|
inherit
cycleman221@gmail.com
195360
0
Jul 4, 2022 1:19:15 GMT -8
cycleman
36
June 2013
cycleman
|
Post by cycleman on Jul 11, 2013 11:46:02 GMT -8
thx David. i think i'll wait for a plug in before i start making changes to the layout.
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Jul 11, 2013 12:12:44 GMT -8
Right-o. Just as a potential temporary workaround, were you aware that you can link directly to posts now in v5? Just expand the cog dropdown in any post, mouse over Link to Post, and copy the link for "Link to this post in this thread". When accessing this link, it will automatically scroll you down the page to the relevant post in a thread.
|
|
inherit
cycleman221@gmail.com
195360
0
Jul 4, 2022 1:19:15 GMT -8
cycleman
36
June 2013
cycleman
|
Post by cycleman on Jul 11, 2013 12:47:26 GMT -8
cool, i'll try that. i still need a plug though.
|
|
inherit
cycleman221@gmail.com
195360
0
Jul 4, 2022 1:19:15 GMT -8
cycleman
36
June 2013
cycleman
|
Post by cycleman on Jul 13, 2013 9:13:54 GMT -8
bump
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Jul 14, 2013 6:02:51 GMT -8
I have looked into this before, but could not find any way of retrieving a reply number from the source code, or a way of getting the number of posts per page. David Clark, are either of these available, or am I missing something obvious?
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jul 14, 2013 6:20:25 GMT -8
I have looked into this before, but could not find any way of retrieving a reply number from the source code, or a way of getting the number of posts per page. David Clark, are either of these available, or am I missing something obvious? window.listMan.options.limit would reflect the value chosen as posts per page for the forum and the reply number would be a calculation of current_page-1 * post_per_page + current_post. This post might help
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Jul 14, 2013 6:54:32 GMT -8
Oh wow.. No work is needed then, the plugin is right there..
Just remove the <script></script> tags and copy/paste the content into the Javascript part of the plugin, save, and Bob's your uncle.
|
|
inherit
cycleman221@gmail.com
195360
0
Jul 4, 2022 1:19:15 GMT -8
cycleman
36
June 2013
cycleman
|
Post by cycleman on Jul 14, 2013 13:24:18 GMT -8
thx for the input, Eton Bones and Todge. unfortunately, i saw no change in the post format. i even took out the <script></script> tags. still nothing. does it only apply to new posts?
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Jul 14, 2013 16:01:47 GMT -8
Nope, it should work for all existing posts too.. I'll throw the plugin together using EBs code and post it here.. Numbered Replies.pbp (706 B)
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jul 14, 2013 16:49:18 GMT -8
there is still the issue of referring to replies in later posts.
lets say you make a reference to reply #10 in a later post, say reply #25. then someone deletes reply #5. what used to be reply #11 is now #10 and the reference in (now post #24) wont make any sense now.
|
|
inherit
cycleman221@gmail.com
195360
0
Jul 4, 2022 1:19:15 GMT -8
cycleman
36
June 2013
cycleman
|
Post by cycleman on Jul 14, 2013 17:19:46 GMT -8
this has only come up once before since so far, as the admin, i have been the only one to delete posts. presumably at some point this will no longer be the case, so a note of some kind should be made. i was thinking something like the [this post has been deleted by ...] posts in the IMDb discussions.
|
|