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 Sept 20, 2013 10:01:01 GMT -8
It's closed to guests soup but that's OK as long as there are no problems. If you notice anything strange or have a suggestion you can always post it here in this thread.
|
|
inherit
99060
0
May 28, 2024 11:56:49 GMT -8
JJ
1,660
February 2007
justjj
|
Post by JJ on Oct 11, 2013 15:48:23 GMT -8
Hi, Chris, I've installed the code in my Global Footer and it works, but I would like to change the Bold to just regular font. I saw the all the 's in the code, but don't know enough about coding to change that to just plain old font, not bold, what do I remove?
By the way, I really love having this back, I missed it.
Thank you for your help.
Oops, sorry about that, the b in parenthisis executed. *JJ goes and stands in a corner.*
|
|
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 Oct 11, 2013 22:19:31 GMT -8
Hi, Chris, I've installed the code in my Global Footer and it works, but I would like to change the Bold to just regular font. I saw the all the [b]'s in the code, but don't know enough about coding to change that to just plain old font, not bold, what do I remove? By the way, I really love having this back, I missed it. Thank you for your help. Oops, sorry about that, the b in parenthisis executed. *JJ goes and stands in a corner.* The code doesn't bold anything, those [b]'s you're seeing are variable indices being used by the code not bbcode. If you're seeing bolded dates than it is more likely coming from CSS so if you want me to take a look I'll need a forum URL. By the way (for those interested) in addition to the "time" and "recent_time" classes added by Proboards this code also adds new classes for flexible targeted styling: "modified_time" "today" "yesterday" as well as classes to target sub-components of the date "at-time" "at" "year" "month" "day"
|
|
inherit
99060
0
May 28, 2024 11:56:49 GMT -8
JJ
1,660
February 2007
justjj
|
Post by JJ on Oct 12, 2013 8:49:58 GMT -8
Chris, thank you for the quick response. Yes, I would appreciate you looking at my codes to tell me how I can change the bold font. hootyowl.proboards.com/
|
|
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 Oct 13, 2013 5:00:46 GMT -8
JJ, since the latest post visible to guests such as myself on that forum link you just posted is dated October 4 th and I see no bolded dates I am going to assume these are dates that bear the class "recent_time" which Proboards gives to dates that are younger than 24 hours. If this is indeed the case then this is the standard behavior by the Proboards software itself. You can change this by editing the CSS stylesheet and looking for It is found around line 138 on a test forum (I just checked). If you're look for a more plugin-like equivalent setting in the Visual Editor tab where you do not need coding knowledge then I do not know since I rarely use that tab but perhaps someone over in the support board can help you there.
|
|
inherit
99060
0
May 28, 2024 11:56:49 GMT -8
JJ
1,660
February 2007
justjj
|
Post by JJ on Oct 13, 2013 9:04:42 GMT -8
Thank you very much, Chris, your method worked and I'm all fixed up! Sure appreciate your help.
|
|
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 13:44:37 GMT -8
.... .... 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. Is there a tweak that would limit the change to threads/Post Lists?
|
|
#eb7100
33409
0
1
Nov 13, 2024 16:56:46 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Feb 5, 2014 14:18:18 GMT -8
Here you go, Rajiv. Changes are in green.
|
|
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 15:50:53 GMT -8
Done, thanks.
|
|
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 Feb 5, 2014 16:20:57 GMT -8
Brian, you da man! 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.
|
|
#eb7100
33409
0
1
Nov 13, 2024 16:56:46 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Feb 5, 2014 16:29:02 GMT -8
Updated my post as well to utilize the most recent code.
|
|
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:28:54 GMT -8
.... 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.
|
|
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 Feb 5, 2014 17:39:53 GMT -8
The today/yesterday was a frequent request Rajiv simply because it was included in the last Proboards version and people find comfort in familiarity. If you do not want it then it could be changed back to standard date/time format when I have a few minutes on my hands. I should probably just make it into a plugin so it could be easily customizable and be done with it.
|
|
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 6, 2014 0:14:49 GMT -8
I'm fine with the yesterday/today thing on the Home page and the Board/Thread list (which remain unchanged as I have placed the script/code at the bottom of the Post List layout template as you suggested), but would prefer the actual date in the Thread/Post list. If there is a tweak to the code/script, would make it simpler for me.
|
|
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 Feb 6, 2014 22:32:58 GMT -8
I'm fine with the yesterday/today thing on the Home page and the Board/Thread list (which remain unchanged as I have placed the script/code at the bottom of the Post List layout template as you suggested), but would prefer the actual date in the Thread/Post list. If there is a tweak to the code/script, would make it simpler for me. I haven't had a chance to fully test this change for adverse effects but try adding the following red portion to the existing line in the code and it should get you there Updated my post as well to utilize the most recent code. Brian, the posted code appears to have had BBCode auto-correct rendering it inoperable (e.g. "function" == typeof $.livequery.queries[/a][a].fn)
|
|