Rajiv
New Member
Posts: 143
inherit
149477
0
Jan 30, 2014 17:24:59 GMT -8
Rajiv
143
November 2009
rainjar
|
Post by Rajiv on Jan 30, 2014 16:04:08 GMT -8
Rajiv, the timestamp you see above posts (and underneath thread subjects in the Last Post column on boards, etc etc) all share the same styles, so changing those styles in the visual editor will change them all across the forum. Did you want just the timestamp in posts to be affected this way? .... If possible, I just want to change the appearance of the timestamp in posts. If not, is it possible to make the post number appear to the left of the timestamp, and make it large and bold. .... The Like system can be disabled by going to Settings > Forum Settings > Enable Like System > No. Done, thanks. I see it also allows auto-embedding of video links.
|
|
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 Jan 30, 2014 16:30:39 GMT -8
This should work to affect timestamps at the top of posts, Rajiv. Place it at the bottom of your style sheet. article > div > .info > .date > .time { font-style: normal; font-weight: bold; font-size: 50px; }Edit the font size to your liking.
|
|
Rajiv
New Member
Posts: 143
inherit
149477
0
Jan 30, 2014 17:24:59 GMT -8
Rajiv
143
November 2009
rainjar
|
Post by Rajiv on Jan 30, 2014 16:41:39 GMT -8
Thanks, will try that. Having considered it, is it possible to have the post number appear to the left of the timestamp in each post?
|
|
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 Jan 30, 2014 16:49:34 GMT -8
It won't be on the left-hand side without additional modifications, but here's a thread that goes over a couple of ways to get reply #s to the right-hand side of timestamps Rajiv.
|
|
Rajiv
New Member
Posts: 143
inherit
149477
0
Jan 30, 2014 17:24:59 GMT -8
Rajiv
143
November 2009
rainjar
|
Post by Rajiv on Jan 30, 2014 17:17:50 GMT -8
Tried it, works, and it is on the left hand-side of the timestamp. Took me a while to figure out that Footers were under "Structure", not "Themes" Now how do I get the post number larger and in bold. And a small point, but it is slightly misaligned from the datestamp. And how do I remove the link from the post number? Edit: I have asked on the other thread as well.
|
|
Rajiv
New Member
Posts: 143
inherit
149477
0
Jan 30, 2014 17:24:59 GMT -8
Rajiv
143
November 2009
rainjar
|
Post by Rajiv on Jan 30, 2014 21:17:23 GMT -8
Sorted on the other thread. One more question (hopefully the last for this thread!) - When a post is first made, the time is given as "[ ] hours/minutes ago". This is in a different size and style from the timestamp. How do I make them the same? Ok, hopefully the second last one for this thread, one more - Is it possible to remove the timestamp from a particular thread only?
|
|
Rajiv
New Member
Posts: 143
inherit
149477
0
Jan 30, 2014 17:24:59 GMT -8
Rajiv
143
November 2009
rainjar
|
Post by Rajiv on Jan 31, 2014 16:35:35 GMT -8
Thanks for the code - added it to Layout Templates > Thread > Post List > line 14 <span class="date"><b>Posted by $[post.created_by.link]</b> $[post.created_on]</span> The "Posted by" appears in bold, but not the Display Name. Will follow up on the other thread. Once again, thanks. This is the "other thread", so here goes. How do I get the Display Name to appear in bold? I also stripped the mini-profiles of much of their content through Layout Templates > Mini-profiles All I have for Mini-profiles is: {if $[user.is_guest]}Guest<br />{/if} {if $[user.group]} $[user.group.name]<br /> {elseif $[user.rank]} $[user.rank.name]<br /> {/if} <br /> $[user.avatar_small]<br /> How do I make the mini-profile column narrower? And centre the contents? And get "Guest" or group/rank name in bold? And make the image linkable to the user profile? I would also like the padding to the right of the post message to be the same width as the mini-profile. .... One more question (hopefully the last for this thread!) - When a post is first made, the time is given as "[ ] hours/minutes ago". This is in a different size and style from the timestamp. How do I make them the same? Ok, hopefully the second last one for this thread, one more - Is it possible to remove the timestamp from a particular thread only? No answer yet. For recent posts, might be simpler just to have the date/time appear as well, in addition to the duration since posting.
|
|
Rajiv
New Member
Posts: 143
inherit
149477
0
Jan 30, 2014 17:24:59 GMT -8
Rajiv
143
November 2009
rainjar
|
Post by Rajiv on Feb 4, 2014 21:53:03 GMT -8
.... .... One more question (hopefully the last for this thread!) - When a post is first made, the time is given as "[ ] hours/minutes ago". This is in a different size and style from the timestamp. How do I make them the same? Ok, hopefully the second last one for this thread, one more - Is it possible to remove the timestamp from a particular thread only? No answer yet. For recent posts, might be simpler just to have the date/time appear as well, in addition to the duration since posting. This appears to be useful: .... <script type="text/javascript"> $('abbr.recent_time').livequery(function () { $('abbr.time').expire(); var time = $(this).removeClass('recent_time'), raw_date = new Date(time.data("timestamp")), user_date = ['M d, yy', 'd M, yy'][proboards.data("time_style") || 0]; //clone to circumvent uncancellable timeouts time.replaceWith( $(this).clone() .text( $.datepicker.formatDate(user_date, raw_date) + ' at ' + (proboards.data('military_time') ? $.formatTime('HH:mm', raw_date) : $.formatTime('h:mmp', raw_date)) ) );
}) </script>
I've added it to the Global Footer. However, it also changes the timing on the Home page and Board/Thread list. I was hoping, if possible, to make the change only within a thread/Post list.
|
|
Rajiv
New Member
Posts: 143
inherit
149477
0
Jan 30, 2014 17:24:59 GMT -8
Rajiv
143
November 2009
rainjar
|
Post by Rajiv on Feb 5, 2014 17:33:45 GMT -8
There are issues with the above solution: .... Rajiv, just be aware that there is a bug in that version of the code you chose to use, that and the fact that the use of livequery in Proboards coding is officially discouraged (plugins won't be approved if they use it for example). A more up-to-date version that addresses that bug as well as the livequery issue can be found in the first reply. If you decide to use that newer version just drop it in the bottom of your post list layout and it should affect only posts. Ok, done. Thanks. Used the script/code from here. Got confused with the outcome, until I read this: .... Also note that dates that contain "yesterday" are absolute ( not elapsed) time since they point to a specific event in time instead of being a measure of time since that event has occurred. The alternative works to the extent of the main issue. I guess the appearance (bold, not italicised) isn't a big issue.
|
|