inherit
40611
0
May 2, 2017 18:44:32 GMT -8
Torrential
1,489
April 2005
zelda53
|
Post by Torrential on Mar 30, 2017 19:24:24 GMT -8
switchjoy.netHello, I use a custom page as the main page for my forum, and use the "Display Post" widget to act as sort of a list of news articles I write up. Toward the top of each post, it says "by (username)". My question is this: is there a way to add the date/time of that post near the byline? So, for example, if you look in one of my recent posts (in the thread view), it reads either how many minutes ago it was posted or, if it's older, it'll read, say, "Mar 28, 2017 at 2:17pm". On the "Display Post" widget, I'd like the byline to read something like "by (username) on Mar 28, 2017 at 2:17pm". Is something like this possible? Thank you! Edit: Just from digging around a bit, it looks like it might take a simple placement of $[post.created_on], but I'm unsure if it's even possible to edit a widget to include this.
|
|
inherit
40611
0
May 2, 2017 18:44:32 GMT -8
Torrential
1,489
April 2005
zelda53
|
Post by Torrential on Apr 2, 2017 20:45:39 GMT -8
Bump
|
|
inherit
40611
0
May 2, 2017 18:44:32 GMT -8
Torrential
1,489
April 2005
zelda53
|
Post by Torrential on Apr 5, 2017 18:47:34 GMT -8
Bump
|
|
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,017
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 6, 2017 20:14:26 GMT -8
Widgets are not editable except via the config options provided by Proboards while adding them, if the data is not available through config or via some other means on the page then then you have to basically maintain your own database if you want to have that data available for use (plugins have limited storage space). I'm not seeing any metadata being provided on the custom page for javascript's use when post widgets are being used and nothing is in the markup supplied by the widget that bears any kind of timestamp. Since these are single posts, would it be an inconvenience to quote the intended post then set the widget to display the quoted post instead of the original post, that way the timestamp that accompanies quotes is there front and center? If you then want a code to rearrange the widget it can transfer the timestamp from the quote and make it look like it was an original or if you are fine with the quoted content then no extra codes running would be necessary.
|
|
inherit
40611
0
May 2, 2017 18:44:32 GMT -8
Torrential
1,489
April 2005
zelda53
|
Post by Torrential on Apr 7, 2017 18:09:01 GMT -8
Widgets are not editable except via the config options provided by Proboards while adding them, if the data is not available through config or via some other means on the page then then you have to basically maintain your own database if you want to have that data available for use (plugins have limited storage space). I'm not seeing any metadata being provided on the custom page for javascript's use when post widgets are being used and nothing is in the markup supplied by the widget that bears any kind of timestamp. Since these are single posts, would it be an inconvenience to quote the intended post then set the widget to display the quoted post instead of the original post, that way the timestamp that accompanies quotes is there front and center? If you then want a code to rearrange the widget it can transfer the timestamp from the quote and make it look like it was an original or if you are fine with the quoted content then no extra codes running would be necessary. Thank you for the idea, Chris Phyffer! I created a hidden page and used a test board to try this out. I like how it looks, but I think in the end it won't be conducive to how I have things set up. I have it to where members can reply to these news posts and start a conversation around them, and quoting my own posts within the thread just looks odd, to be perfectly honest. I know my approach in general isn't the most elegant one for posting news articles, but it works for me, and if I have to do without a timestamp with how I have things currently set up, then it's not the end of the world.
|
|