IRC logs for #farmOS, 2021-03-07 (GMT)

2021-03-06
2021-03-08
TimeNickMessage
[12:20:24]* jgaehring[m] has quit (Ping timeout: 240 seconds)
[12:20:25]* frakman1[m] has quit (Ping timeout: 240 seconds)
[12:20:25]* braught[m] has quit (Ping timeout: 240 seconds)
[12:20:26]* generalredneck[m has quit (Ping timeout: 240 seconds)
[12:20:30]* skipper_is[m] has quit (Ping timeout: 246 seconds)
[12:20:51]* rationaljohn[m] has quit (Ping timeout: 265 seconds)
[12:21:25]* botlfarm[m] has quit (Ping timeout: 240 seconds)
[12:21:35]* arvidsjaur[m] has quit (Ping timeout: 240 seconds)
[12:21:49]* stevemwai[m] has quit (Ping timeout: 244 seconds)
[12:21:50]* wombat83[m] has quit (Ping timeout: 268 seconds)
[12:21:51]* naveenls[m] has quit (Ping timeout: 268 seconds)
[12:21:51]* farmtech[m] has quit (Ping timeout: 268 seconds)
[12:21:56]* mstenta[m] has quit (Ping timeout: 240 seconds)
[12:22:18]* zedrckr[m] has quit (Ping timeout: 265 seconds)
[12:22:27]* julianorman[m] has quit (Ping timeout: 268 seconds)
[12:22:27]* paul121[m] has quit (Ping timeout: 268 seconds)
[12:22:27]* symbioquine[m] has quit (Ping timeout: 268 seconds)
[12:23:39]* linus0[m] has quit (Ping timeout: 246 seconds)
[12:23:42]* dge[m] has quit (Ping timeout: 268 seconds)
[12:23:42]* kunigunde[m] has quit (Ping timeout: 268 seconds)
[12:24:00]* localisticepicur has quit (Ping timeout: 246 seconds)
[12:24:05]* calbasi_matrix has quit (Ping timeout: 240 seconds)
[12:24:14]* rocoroc[m] has quit (Ping timeout: 265 seconds)
[12:24:18]* dazinism has quit (Ping timeout: 258 seconds)
[12:25:12]* JulianF has quit (Ping timeout: 265 seconds)
[12:33:30]* skipper_is[m] has joined #farmos
[12:33:57]* jgaehring[m] has joined #farmos
[12:33:57]* frakman1[m] has joined #farmos
[12:33:59]* braught[m] has joined #farmos
[12:34:36]* rationaljohn[m] has joined #farmos
[12:35:06]* generalredneck[m has joined #farmos
[12:50:27]* wombat83[m] has joined #farmos
[12:50:52]* naveenls[m] has joined #farmos
[12:52:02]* farmtech[m] has joined #farmos
[12:52:59]* botlfarm[m] has joined #farmos
[12:57:35]* kunigunde[m] has joined #farmos
[13:01:43]* dge[m] has joined #farmos
[13:06:14]* linus0[m] has joined #farmos
[13:06:37]* rocoroc[m] has joined #farmos
[13:11:01]* arvidsjaur[m] has joined #farmos
[13:17:27]* localisticepicur has joined #farmos
[13:19:51]* stevemwai[m] has joined #farmos
[13:25:05]* calbasi_matrix has joined #farmos
[13:25:35]* zedrckr[m] has joined #farmos
[13:25:53]* mstenta[m] has joined #farmos
[13:26:32]* paul121[m] has joined #farmos
[13:26:34]* julianorman[m] has joined #farmos
[13:26:46]* symbioquine[m] has joined #farmos
[13:31:23]* dazinism has joined #farmos
[13:38:14]* JulianF has joined #farmos
[15:28:59]<skipper_is[m]>Is there a function to load a log entity by id? Like farm_asset_load?
[15:29:41]<mstenta[m]>Yes! log_load($id)
[15:32:14]<skipper_is[m]>ah perfect :) I was just trying to make a little function out of entity_load
[15:32:24]<skipper_is[m]>but log_load is much easier :)
[15:49:53]<skipper_is[m]>And for flags, the formatting? How can I get the same style of presentation on the flags, eg monitor?
[15:51:11]<mstenta[m]>The way those styles are added now is by adding a Bootstrap class to their div
[15:51:51]<skipper_is[m]>Ah, so if I do it in a form, it'd be as markup
[15:52:40]<mstenta[m]>Yes so in a form might require something clever
[15:52:50]<mstenta[m]>I don't think we do that anywhere in farmOS yet
[15:53:25]<skipper_is[m]>Any idea what the class is?
[15:54:18]<mstenta[m]>Not off the top of my head (on my phone)
[15:54:46]<skipper_is[m]>I can maybe pull it off of page inspector
[15:54:53]<mstenta[m]>Inspect element
[15:54:57]<mstenta[m]>Yea :-)
[15:55:08]<mstenta[m]>The bootstrap docs too
[15:55:16]<mstenta[m]>Bootstrap 3 FYI
[15:55:30]<skipper_is[m]>Ah nice
[15:57:58]<skipper_is[m]>My markup part is getting very messy....
[15:58:03]<skipper_is[m]>:sigh:
[15:58:39]<mstenta[m]>Yea tricky
[15:59:11]<mstenta[m]>There are definitely ways to keep things clean... But you gotta weigh the cost benefit :-)
[15:59:31]<mstenta[m]>If it works it works!
[15:59:53]<skipper_is[m]>Put things in arrays an iterate through them may be my next strategy..
[16:03:19]<skipper_is[m]>.....With php, if you use ' around a string, can you not use $variables?
[16:03:43]<mstenta[m]>Correct, use double quotes instead
[16:04:05]<skipper_is[m]>...Learn something new everyday
[16:04:18]<mstenta[m]>(I think? Although to be honest I generally concatenate)
[16:04:41]<skipper_is[m]>Yea, so I tried '$flags' and it just printed $flags
[16:04:49]<skipper_is[m]>"$flags" printed the variale
[16:04:51]<mstenta[m]>(or use t() to make it translatable) :-)
[16:05:16]<skipper_is[m]>Oooh, will t() hate markup?
[16:06:22]<mstenta[m]>https://www.drupal.org/docs/7/api/localization-api/dynamic-or-static-lin...
[16:08:13]<skipper_is[m]>Sorted
[16:13:38]<skipper_is[m]>Thereis a farm_flags_wrap() function!
[16:18:00]<skipper_is[m]>ACTION uploaded an image: image.png (4KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/GmNVBdSQkycBgYwJ... >
[16:18:07]<skipper_is[m]>Ay! Look at that!
[16:18:23]<mstenta[m]>Nice :-)
[16:21:15]<skipper_is[m]>Now for a checkbox to add those flags to new logs...
[16:28:49]<skipper_is[m]>There is a function under farm_flags, looks like it adds the relative parts to a form, but requires context?
[16:30:41]<skipper_is[m]>Oh, maybe i's for views..