#silverstripe IRC Log

IRC log for 4 October 2013

All timestamps are in UTC.

1: [00:01:08] <guzzlefry> ss23: I've had to flush before /dev/build before, no clue why...
2: [00:02:02] <Stu_> Ok, so when the CMS tree is generated, /admin/pages/edit/show/1, THAT template or js has a typo. in the %s for setting data-url-addpage
3: [00:02:42] * chillu quit (Quit: chillu)
4: [00:03:03] <spronk> Stu_: this seems suspiciously like it's related to the same issue with escaping output that UncleCheese found just before 3.1 was released.
5: [00:04:05] <Stu_> ha https://github.com/silverstripe/silverstripe-cms/issues/855
6: [00:04:43] <Stu_> is there a fix pushed for that?
7: [00:04:48] <spronk> doubtful
8: [00:05:32] * EasyCo has joined #silverstripe
9: [00:05:49] <Stu_> if it's just encoding, that's less worrying than page ID's getting mangled
10: [00:06:25] <Stu_> %25 is %, so yeah, encoding definitely
11: [00:06:42] <spronk> https://github.com/silverstripe/silverstripe-cms/issues/846 ah, this is my issue
12: [00:06:57] <spronk> bloody ingo
13: [00:06:59] <spronk> breaking everything lately
14: [00:06:59] <spronk> :p
15: [00:07:26] <ss23> Had like a million security issues lately too, which makes it worse
16: [00:07:35] * travis-ci has joined #silverstripe
17: [00:07:35] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1118 (master - dcf9f2c : Ingo Schommer): The build passed.
18: [00:07:35] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/40ba269b1dda...dcf9f2c1332c
19: [00:07:35] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12115950
20: [00:07:35] * travis-ci has left #silverstripe
21: [00:07:55] <spronk> ingo has?
22: [00:08:03] * UncleCheese quit (Quit: UncleCheese)
23: [00:08:09] <ss23> lol
24: [00:08:12] <spronk> or ss in general?
25: [00:08:12] <ss23> SilverStripe has!
26: [00:08:14] <spronk> ah
27: [00:08:15] <spronk> mm
28: [00:08:22] <spronk> i was gonna say, bit harsh to bash on ingo :P
29: [00:08:41] <spronk> i mean, at least he doesn't maintain subsites
30: [00:09:29] * UncleCheese has joined #silverstripe
31: [00:09:33] * EasyCo quit (Client Quit)
32: [00:09:59] * EasyCo has joined #silverstripe
33: [00:10:49] <ss23> haha
34: [00:10:51] <ss23> Naw, Ingo is awesome
35: [00:12:46] <spronk> Stu_: i'm gonna guess it's somewhere in https://github.com/silverstripe/silverstripe-cms/pull/853
36: [00:13:01] <spronk> but it might be in ss framework
37: [00:13:22] <ss23> AW HELLS BELLS
38: [00:13:25] * ss23 headbangs on spronk
39: [00:13:30] <spronk> ?
40: [00:13:39] <ss23> Someone playing Hells Bells
41: [00:13:43] <spronk> o_O
42: [00:13:50] <ss23> AC/DC?
43: [00:13:56] <ss23> spronk: You know the song, right?
44: [00:13:59] <spronk> ACCA DACCA
45: [00:14:01] <spronk> of course i do
46: [00:14:11] * EasyCo quit (Ping timeout: 245 seconds)
47: [00:14:14] <ss23> You've been!
48: [00:14:16] <ss23> Dunderstruck!
49: [00:14:23] <spronk> ac/dc are awesome
50: [00:14:27] <ss23> Dirty deeds and da dunder-cheif!
51: [00:14:39] <spronk> and brian johnson is a boss.
52: [00:15:33] * EasyCo has joined #silverstripe
53: [00:15:43] <spronk> :(
54: [00:15:44] <spronk> what cd is down
55: [00:15:51] <ss23> ;_;
56: [00:15:58] <ss23> It is!
57: [00:15:59] <ss23> TO WAFFLES
58: [00:16:04] <spronk> YOU HAVE A WAFFLES ACCT?
59: [00:16:07] <ss23> yay waffles is up :D
60: [00:16:10] <spronk> INVITE PLOX
61: [00:16:15] <ss23> spronk: email?
62: [00:16:25] <ss23> what the shit
63: [00:16:26] <ss23> it's broken
64: [00:16:32] <spronk> D:
65: [00:16:36] <ss23> okay fixd
66: [00:16:48] <ss23> You have 6 invites and 2 anytime invites remaining
67: [00:17:05] <ss23> spronk: sent ^.^
68: [00:17:09] <spronk> :O
69: [00:17:09] <ss23> If anyone else wants one, just ask
70: [00:17:12] * spronk hugz ss23
71: [00:17:26] <spronk> wait
72: [00:17:27] <spronk> correct
73: [00:17:32] * spronk man hugz ss23
74: [00:17:38] <atmos> Waffles?
75: [00:17:42] <atmos> I want waffles
76: [00:17:48] * EasyCo quit (Client Quit)
77: [00:18:07] * EasyCo has joined #silverstripe
78: [00:18:41] <ss23> XD
79: [00:18:50] <spronk> omg microsoft
80: [00:18:52] <ss23> atmos: Do you know waffles.fm? Private torrent site, music
81: [00:18:56] <spronk> y u no allow passwords > 16char
82: [00:18:57] * EasyCo quit (Client Quit)
83: [00:19:34] <atmos> ss23: never head of it
84: [00:19:44] <atmos> ss23: but I'm sick of TPB
85: [00:20:15] <ss23> atmos: It's private, so very very tough on ratio
86: [00:20:26] <ss23> Less than ~.5 ratio == banned (they have more specific rules than that thoguh)
87: [00:20:35] * UncleCheese quit (Quit: UncleCheese)
88: [00:20:38] <ss23> atmos: But if you think you'll use it etc, you can PM me email
89: [00:20:38] <atmos> ss23: awesome, inv plox!
90: [00:21:01] <atmos> what's the catalogue like?
91: [00:21:10] <spronk> apparently someone else has been using my account. lol
92: [00:21:28] <ss23> Fairly good, not as good as what.cd
93: [00:21:49] <spronk> i think what.cd has bested oink these days
94: [00:21:51] <spronk> which is no mean feat
95: [00:21:52] <atmos> PM you on what exactly?
96: [00:21:58] <ss23> atmos: Here is fine? :O
97: [00:22:04] <atmos> kk
98: [00:22:05] <ss23> atmos: Or you can post your email publically, if you like :P
99: [00:22:17] <ss23> Prefer not to have a helpdesk ticket for this :P
100: [00:22:31] <atmos> lol
101: [00:22:39] * mirrors has joined #silverstripe
102: [00:23:01] <spronk> i no getted an invite in my inbox :(
103: [00:23:25] <spronk> unless it's this email in Junk from Slut-Findewr
104: [00:23:27] <spronk> -w
105: [00:23:29] <ss23> spronk: spam?
106: [00:23:49] <mirrors> hey guys...has anyone here used SilverSmith
107: [00:24:06] <mirrors> II am trying to work out how to use it but all the doco is pretty old
108: [00:24:51] <atmos> wait, what's the PM synt on irc again /msg?
109: [00:25:25] <ss23> yeah, atmos
110: [00:26:00] <atmos> I'll get it wrong, so dummy email account it is :D
111: [00:26:25] <Stu_> if you want to post it in chat, we will all look away for a minute
112: [00:26:32] <atmos> lol
113: [00:27:31] <spronk> THERE IT IS!
114: [00:28:33] * spronk adds 230XP to ss23's Awesome stat
115: [00:30:29] <ss23> https://github.com/silverstripe/silverstripe-translatable/issues/147 No idea on this.. anyone have an idea/
116: [00:30:55] * atmos keeps refreshing inbox...
117: [00:31:11] <ss23> atmos: I didn't get oyur email in a PM
118: [00:31:12] <ss23> o.o
119: [00:31:17] <ss23> Your /msg command didn't work!
120: [00:31:19] <atmos> fffffff
121: [00:31:26] <atmos> :P
122: [00:32:18] <ss23> Got it now, atmos
123: [00:32:19] <ss23> :D
124: [00:32:33] <atmos> ss23: :D I was using the @
125: [00:32:51] <ss23> haha
126: [00:32:51] <spronk> ouch
127: [00:32:53] <spronk> that
128: [00:32:54] <ss23> Yeah, that's just my status
129: [00:32:54] <ss23> :D
130: [00:32:56] <spronk> that's a sticky issue, ss23
131: [00:33:02] <ss23> Yes, spronk
132: [00:33:07] <ss23> It's one of those "archetecutral" issues
133: [00:33:10] <ss23> (With better spelling)
134: [00:33:50] <atmos> yeah that sounds scary
135: [00:34:11] <ss23> I'm going to go get lunch anyway! Be back soon
136: [00:34:15] <ss23> Good luck getting your invite, atmos :D
137: [00:35:32] <Stu_> atmos: looks like that fix was in the 3.1 pull I did the other day
138: [00:35:51] <atmos> hmmm
139: [00:37:33] <atmos> https://itunes.apple.com/au/app/id463731782?mt=8
140: [00:37:38] <guzzlefry> PHP Fatal error: Couldn't run query: <-- It doesn't give a better error?
141: [00:37:57] <atmos> 90% off if anyone is interested.
142: [00:38:41] <Stu_> if you're running 3.1, you can set the email address in the YAML to get database errors sent to you
143: [00:39:07] <guzzlefry> ah, fancy
144: [00:39:10] <guzzlefry> ss23, ^
145: [00:39:36] <Stu_> http://doc.silverstripe.org/framework/en/3.1/changelogs/3.1.0
146: [00:40:03] <guzzlefry> Stu_, Would that work with any errors? Having to look up AJax responses for CMS errors is a bit annoying.
147: [00:40:04] <spronk> hmm
148: [00:40:07] <spronk> is it any good?
149: [00:40:22] <Stu_> sometimes :P
150: [00:40:50] <Stu_> there's also directives you can set for verbose errors, which works well with templates, the CMS is a little more hard to get errors out of
151: [00:41:27] <Stu_> but yeah, I've spent most of the morning trying to figure out the CMS side of things, getting there >.>
152: [00:41:47] <guzzlefry> template errors?!
153: [00:42:54] <Stu_> .ss files, http://www.leftandmain.com/silverstripe-tips/2010/09/08/8-common-silverstripe-errors-explained-and-solved/
154: [00:43:04] <Stu_> that link is a little outdated though
155: [00:44:21] <Stu_> http://doc.silverstripe.org/framework/en/topics/debugging this looks good
156: [00:44:52] * atmos hugs ss23
157: [00:45:40] <ss23> :D
158: [00:46:39] <Stu_> If I was looking for the logic that builds the /admin/pages/edit/show page, where should I be looking?
159: [00:47:23] <Stu_> oops, nevermind
160: [00:51:14] <guzzlefry> ooh
161: [00:52:15] <guzzlefry> I just noticed that under the "Import CSV" stuff it now shows "Show Specification for <dataobject>" which when clicked lists all of the fields you can include in the CSV file. \o/
162: [00:52:29] * guzzlefry takes back all of the bad stuff he said about 3.1
163: [00:52:58] <atmos> \o\
164: [00:53:11] <Colin[pi]> didn't it have that in 2.4?
165: [00:53:28] <guzzlefry> Possibly, I didn't see it in 3.0 though.
166: [00:53:40] <guzzlefry> DIdn't notice it in the development versions of 3.1 either.
167: [00:53:58] <Colin[pi]> ooh Brave New World for Civ V is on sale on Steam
168: [00:55:02] <guzzlefry> Nevermind, it is in 3.1-dev.
169: [00:55:40] * UncleCheese has joined #silverstripe
170: [00:59:59] <guzzlefry> [Warning] Invalid argument supplied for foreach(): Line 1074 in /home/gus/site/translatable/code/model/Translatable.php
171: [01:00:15] <guzzlefry> rawr
172: [01:00:24] <Stu_> nice :)
173: [01:01:05] * guzzlefry hates working with code that he didn't write. :P
174: [01:01:20] <guzzlefry> Also, no clue on the original specs, so I don't really know what to test for broken.
175: [01:04:38] <atmos> ffffffff
176: [01:04:40] * bambii7 has joined #silverstripe
177: [01:04:42] <Colin[pi]> now that's weird: http://i.imgur.com/1nc8i2L.png
178: [01:04:43] <atmos> google drive hackers
179: [01:04:46] <atmos> that was close
180: [01:05:29] <spronk> o_O
181: [01:05:29] <spronk> ?
182: [01:05:48] <bambii7> Hi guys, anyone have any ideas about why my new install can't resize images?
183: [01:06:05] <bambii7> just installed a fresh lamp stack on linode, I know Im missing something
184: [01:06:11] <UncleCheese> guzzlefry: is your name Gus?
185: [01:06:19] <Colin[pi]> bambii7: missing GD?
186: [01:06:20] <guzzlefry> UncleCheese: How did you know!?
187: [01:06:27] <UncleCheese> the path on your filesystem
188: [01:06:31] * guzzlefry peeks out window.
189: [01:06:32] <guzzlefry> :P
190: [01:06:35] <UncleCheese> is it short for anything? or just Gus?
191: [01:06:37] <bambii7> thats probably it ^^ lol ty
192: [01:06:39] <guzzlefry> just Gus
193: [01:06:43] <UncleCheese> nice
194: [01:06:46] <UncleCheese> that's my son's name
195: [01:06:53] <UncleCheese> so it always jumps out at me :)
196: [01:07:29] <guzzlefry> ah cool, Gus is my dad's name.
197: [01:07:33] <UncleCheese> oh wow
198: [01:07:34] <guzzlefry> Oddly enough he never went by it. :P
199: [01:07:38] <ss23> Cool, Gus is that guy on Breaking Bad
200: [01:07:52] <Colin[pi]> *was
201: [01:07:57] <Colin[pi]> *spoiler
202: [01:07:59] <guzzlefry> spoilers?
203: [01:07:59] <UncleCheese> i know.. we were sad when we found out he was the bad guy, because we had pretty much already settled on it as our name
204: [01:08:10] <bambii7> yeah that was it, was missing GD :p
205: [01:08:16] <bambii7> thanks Colin
206: [01:08:19] <atmos> UncleCheese: he's not really bad
207: [01:08:20] <Colin[pi]> no worries
208: [01:08:22] <ss23> lol UncleCheese
209: [01:08:35] <UncleCheese> neither is Walt
210: [01:08:36] * guzzlefry will probably forget about the spoiler by the time he actually watches the show.
211: [01:08:53] <Colin[pi]> shit
212: [01:08:56] <ss23> Still can't believe what happened ot Jesse's son in the finale
213: [01:08:56] <Colin[pi]> sorry lol
214: [01:08:57] <atmos> UncleCheese: I don't even know anymore
215: [01:09:18] <ss23> (WAit does he have a son? I has a kid right?)
216: [01:10:00] * atmos goes to find Walt Jnr. breakfast memes
217: [01:10:06] <mirrors> hey UncleCheese ... is there a SilverStripe module version of SilverSmith available
218: [01:10:15] <Avroceptyr> still can't believe it's not butter
219: [01:11:28] <atmos> I have one really burning question about BB
220: [01:12:09] <atmos> but I don't know if it's a spoiler or not
221: [01:12:31] <UncleCheese> mirrors: it's on my list
222: [01:12:45] <UncleCheese> there are so many ways we could do it
223: [01:12:58] <UncleCheese> i'm just not clear enough on how many people are using it and how they're using it
224: [01:13:22] <UncleCheese> one approach is to have the UI appear in context of the edit forms, so you could add fields right in the cms
225: [01:13:40] <UncleCheese> another approach is to have more of a dedicated leftandmain panel for it which a more robust ui
226: [01:14:12] <UncleCheese> i've decoupled the content-seeding features into its own module.
227: [01:14:13] <Avroceptyr> atmos: it probably is a spoiler
228: [01:14:36] <guzzlefry> ss23: Does translatable have any tests? I did some temporary fixin' code. Not sure if it breaks anything else. :P
229: [01:14:44] <atmos> Avroceptyr: probably, but it is KILLING ME
230: [01:14:46] <atmos> lol
231: [01:14:52] <ss23> guzzlefry: It looked like it had like 1 test
232: [01:14:56] <ss23> guzzlefry: Best would be to fix it in core, idk
233: [01:15:12] <Avroceptyr> you can ask me in private message if you want, but I'll warn you that I haven't watched BB, so I'll give you some bullshit that will make you feel good about yourself.
234: [01:15:26] <atmos> Avroceptyr: ha! :D
235: [01:15:29] <guzzlefry> It doesn't seem to check that $this->getTranslations() actually returns anything before looping. :P
236: [01:15:54] <Avroceptyr> The beatings will continue until the code loops before returning.
237: [01:16:06] <Avroceptyr> It's friday afternoon, come on peoples!
238: [01:16:18] <guzzlefry> And I'm guessing that by using older database stuff, coupled with my odd subclassing already existing dataobjects thing, I broke something.
239: [01:17:52] <mirrors> UncleCheese: no worries. I was looking at screenshots of a GUI from 2011 and was hoping it was hiding somewhere
240: [01:18:03] <UncleCheese> it is
241: [01:18:13] <UncleCheese> i should open source that
242: [01:18:27] <mirrors> I am mostly using the CLI for the fixture generating
243: [01:18:47] <guzzlefry> Another question, should anything using translatable always have one existing translation listed in the translations tab?
244: [01:20:27] <Colin[pi]> oops, 2.4.13 update causes checkbox fields to do this: http://i.imgur.com/1nc8i2L.png
245: [01:20:49] <guzzlefry> Oh, it looks like it'll only list existing translation *other than* the currently selected one...?
246: [01:21:11] <guzzlefry> :X
247: [01:22:06] <Colin[pi]> lol: http://i.imgur.com/4ieImyX.png
248: [01:23:00] <guzzlefry> that's an "uh oh", not an "oops" :P
249: [01:23:11] <Colin[pi]> found the problem
250: [01:23:29] <Colin[pi]> FormField now casts Message => 'Text'
251: [01:23:40] <Colin[pi]> checkboxfield has this line: $messageBlock = isset($Message) ? "<span class=\"message $MessageType\">$Message</span>" : '';
252: [01:23:45] <Colin[pi]> isset($Message)
253: [01:23:51] <Colin[pi]> yep it's set as an empty string now :)
254: [01:25:23] <guzzlefry> Okay, my fix doesn't seem to break anything...at least not obviously.
255: [01:26:41] * AlphaCactus quit (Read error: Connection reset by peer)
256: [01:27:07] * AlphaCactus has joined #silverstripe
257: [01:29:07] * SightUnseen has joined #silverstripe
258: [01:30:25] * SightUnseen has left #silverstripe
259: [01:31:56] <Stu_> ok, so looks like the CMSPagesController_ContentToolActions.ss has a %s which is being url encoded when $LinkPageAdd in CMS main.php
260: [01:32:22] <Stu_> which calls join_links( ), which has the warning: "Caution: All parameters are expected to be URI-encoded already."
261: [01:33:01] <guzzlefry> ss23: http://bpaste.net/show/JyLkK8VwbH8wXWwEcYbT/ Line 58, worth a pull request? >_>
262: [01:33:37] <ss23> Hmm
263: [01:33:42] <ss23> guzzlefry: Probably not a bad PR anyway
264: [01:34:14] <guzzlefry> I'm just worried since I'm not precisely sure what the code does. :P
265: [01:34:22] * guzzlefry reads a bit more before.
266: [01:35:13] * EasyCo has joined #silverstripe
267: [01:35:32] * EasyCo quit (Client Quit)
268: [01:35:50] * Peavers_Broken has joined #silverstripe
269: [01:37:21] <Peavers_Broken> tgif.
270: [01:37:32] <Colin[pi]> ima go to the beach tomorrow ^_^
271: [01:37:43] <ss23> Colin[pi]: ew
272: [01:37:45] <ss23> </3 outside
273: [01:37:57] <guzzlefry> Australian beach?
274: [01:37:57] <Colin[pi]> :P
275: [01:38:05] <Colin[pi]> yes
276: [01:38:11] <Colin[pi]> unless I swim a long way
277: [01:38:44] <guzzlefry> The National Geographic Channel leads me to believe that if you step foot in that water you die. :P
278: [01:38:56] <atmos> anyone here implemented embargo/expiry for advanced workflow?
279: [01:39:16] <Peavers_Broken> Hey what does ::get()->filter(array(''=>'')); return if there isn't anything that correctly matches the filter?
280: [01:39:18] <ss23> atmos: Implemented as in used it/
281: [01:39:21] <ss23> atmos: If so, I have
282: [01:39:38] <ss23> atmos: If its not working for you, make sure you've got the cron running every min, so it actualy does the unpublish etc
283: [01:39:39] <Stu_> so looking at my URL i'm getting, ?ParentID=%s1admin/pages/add/?ParentID=%s&, this could be related to https://github.com/silverstripe/silverstripe-framework/pull/2435
284: [01:39:57] <Colin[pi]> why why why github do you use gravatar?
285: [01:40:01] <Colin[pi]> it SUCKS
286: [01:40:03] <ss23> Colin[pi]: Why not?
287: [01:40:05] <ss23> Why does it suck, Colin[pi]?
288: [01:40:11] <Stu_> it's also a security flaw
289: [01:40:16] <Colin[pi]> whytf should I go off to another site just for a friggin avatar?
290: [01:40:16] <atmos> ss23: yeah I can get the cron job sorted, I'm just not sure how to set it in the CMS... does it need to be enabled somewhere?
291: [01:40:17] <ss23> Why is it a security flaw/
292: [01:40:23] <ss23> Colin[pi]: Why not?
293: [01:40:27] <Colin[pi]> IT BLOWS
294: [01:40:35] <ss23> atmos: No, you just set it on the worfklow thingy etc etc
295: [01:40:43] <ss23> Colin[pi]: You haven't said *why*
296: [01:40:48] <ss23> I've heard a lot of "Gravatar sucks!"
297: [01:40:51] <ss23> But I don't know *why* it sucks
298: [01:41:04] <Colin[pi]> because it makes me click one too many times
299: [01:41:05] <Stu_> http://arstechnica.com/security/2013/07/got-an-account-on-a-site-like-github-hackers-may-know-your-e-mail-address/
300: [01:41:15] <atmos> ss23: you mean when setting up a definition?
301: [01:41:57] <ss23> Stu_: I would not say that is a security risk, personally
302: [01:42:41] <ss23> Stu_: Compare to sites which just list your email, etc
303: [01:42:50] <ss23> Though I see how some people might care about it
304: [01:43:00] <ss23> Still, bit excessive to bcrypt it, aye ;)
305: [01:43:45] <Stu_> yeah, i'm not too bothered personally, but having the same hash follow you round might be an issue
306: [01:45:20] <guzzlefry> Action "createtranslation" not allowed on controller (Class: Translatable_ItemRequest) why god why
307: [01:46:35] <guzzlefry> nevermind, that's custom code. :P
308: [01:47:06] <Stu_> woop got it
309: [01:48:29] <Stu_> LinkPageAdd is doing join_links, which does another URL encode at the end IF there is an argument inside, so only URL encoding the first half, and doing a simple join on the $extraArguments will stop the %s being expanded allowing creation of subpages with tree items selected
310: [01:49:20] <atmos> hmmmm
311: [01:49:26] <atmos> where is this damn option!
312: [01:49:34] <guzzlefry> Which option?
313: [01:51:03] <atmos> guzzlefry: for embargos
314: [01:51:23] <guzzlefry> Ah...no idea what those are.
315: [01:52:42] <atmos> guzzlefry: it's for workflows, allowing users to set a time at which a page is published
316: [01:53:11] <UncleCheese> it's like hoot suite :)
317: [01:55:34] <Colin[pi]> i'm here coding and my gf is cooking lunch, living the dream
318: [01:56:06] * coldblooded01 has joined #silverstripe
319: [01:56:22] <coldblooded01> is there a color picker module for user forms?
320: [01:56:37] <ss23> coldblooded01: Not that I'm aware of!
321: [01:56:45] <ss23> Colin[pi]: Nice find @ 2.4 bug
322: [01:56:46] <coldblooded01> ok
323: [01:57:03] <Colin[pi]> ss23: just a little one, should be easily fixed
324: [01:57:12] <Colin[pi]> maybe I'll do a pull req :P
325: [01:57:46] <atmos> ss23: sorry, where do you recall setting an embargo time for a workflow? I don't see the option :<
326: [01:58:14] <ss23> atmos: I cannot remember, sorry :<
327: [01:58:22] <atmos> :O
328: [01:58:35] <ss23> atmos: I just remmeber a client being like "This function doesnt' work!" (embargo) and they gave me a link to where it was
329: [01:59:10] <guzzlefry> is embargo some stock feature?
330: [01:59:11] <atmos> ss23: hmmm 3.0?
331: [01:59:24] <ss23> atmos: 3.1
332: [01:59:31] <atmos> -_-
333: [01:59:34] <ss23> ;_;
334: [02:00:13] <atmos> I wonder if we could make SS upgrade us to 3.1 inside our retainer? :D
335: [02:01:08] <Stu_> is anyone in their SS backend atm?
336: [02:01:17] <atmos> Stu_: yeah
337: [02:01:46] <guzzlefry> Stu_: yep
338: [02:01:48] <Stu_> if you click on one of your pages in treeview, and then click add new, do you get an error?
339: [02:02:04] <atmos> Stu_: i bloody hope not
340: [02:02:05] <atmos> lol
341: [02:02:07] <atmos> lemme check
342: [02:02:33] <atmos> Stu_: nope :>
343: [02:02:42] <Stu_> what version are you running?
344: [02:02:50] <atmos> 3.0
345: [02:02:59] <guzzlefry> nope on 3.1 stable as well.
346: [02:03:12] <guzzlefry> Stu_, What's the error?
347: [02:03:16] <Stu_> weird
348: [02:04:11] <Stu_> https://github.com/silverstripe/silverstripe-cms/issues/855
349: [02:04:35] <Stu_> I've just found a start place for a fix, and a fix that will work for now
350: [02:04:57] <Stu_> But it should be happening to everyone
351: [02:05:39] <Stu_> so your breadcrumb is something like Pages / Home, and you're pressing the add new in the top left?
352: [02:05:54] <atmos> Stu_: yeah
353: [02:06:34] <Stu_> what version of PHP?
354: [02:07:27] <atmos> Stu_: hmmm ah 5.4.13
355: [02:08:30] <atmos> posting again for luls http://d24w6bsrhbeh9d.cloudfront.net/photo/a09K5nv_700b_v2.jpg
356: [02:08:36] <atmos> couldn't help it :>
357: [02:11:13] <Stu_> oo
358: [02:11:15] <Stu_> I've 5.3
359: [02:11:35] <Stu_> in 5.4 http_build_query's default URL encode changed
360: [02:11:58] <atmos> indeed
361: [02:12:00] <Stu_> wait, nevermind
362: [02:14:29] <mobiusnz> https://pbs.twimg.com/media/BVsr959CEAA_Oa2.jpg:large
363: [02:15:19] <atmos> yeah, that's not disturbing
364: [02:15:21] <guzzlefry> I'm on whatever Ubuntu 12.04 Server uses...
365: [02:15:33] <mobiusnz> guzzlefry: php -v
366: [02:15:48] <guzzlefry> 5.3.10
367: [02:16:02] <guzzlefry> ffs debian, get with the times... :P
368: [02:16:20] <Stu_> bugger that's not it then
369: [02:16:40] <Avroceptyr> guzzlefry: run Debian Bleedingedge
370: [02:16:44] <Avroceptyr> you'll be with the times then :D
371: [02:16:53] <guzzlefry> I'd rather do Gentoo. >_>
372: [02:16:58] <Avroceptyr> (*whenever the build isn't broken)
373: [02:17:51] <guzzlefry> Debian builds breaking in bleeding edge? :P
374: [02:19:14] <Avroceptyr> haha
375: [02:34:21] <Stu_> ah well, I feel like I've at least got things to a point where someone who knows what they're doing can figure out a proper fix
376: [02:34:53] <Stu_> thanks guys
377: [02:46:38] <atmos> :< I must be missing a tab here
378: [02:49:37] <Avroceptyr> a bar tab, yes
379: [02:49:43] <Avroceptyr> a friday afternoon bar tab
380: [02:49:45] <Avroceptyr> mmm
381: [02:49:52] <Stu_> lol
382: [02:53:18] <Pyromanik> TIL php namespaces are 5.3
383: [02:53:58] <Pyromanik> Avroceptyr: nah we just fill the fridge
384: [02:54:44] <Pyromanik> Avroceptyr: this was last Friday: http://iforce.co.nz/i/phgewztl.jnk.jpg
385: [02:55:01] <Avroceptyr> damn that's a good effort
386: [02:55:13] <Pyromanik> It was pretty much all gone by the time we left.
387: [02:55:18] <atmos> so much coke!
388: [02:55:24] <Pyromanik> atmos: yeh it lasts a while
389: [02:55:55] <Colin[pi]> how many lines did you do?
390: [02:55:59] <Colin[pi]> oh wait wrong coke
391: [02:56:57] <atmos> Yeasty Boys!
392: [02:57:23] <guzzlefry> hrm
393: [02:57:26] <guzzlefry> Where has Simon been?
394: [02:57:36] <Pyromanik> atmos: not that one :<
395: [02:57:42] <Pyromanik> that's our workplace initiation.
396: [02:57:44] <Colin[pi]> guzzlefry: uhm he's taking a break from IRC
397: [02:57:51] <guzzlefry> ah
398: [02:57:56] <guzzlefry> I have to do that from time to time.
399: [02:58:04] <Pyromanik> atmos: It's been described as "fermented bandaids"
400: [02:58:11] <atmos> Pyromanik: LOL!
401: [02:58:16] <atmos> I've heard similar things
402: [02:58:24] <Pyromanik> atmos: It's the "Attitude Rex"
403: [02:58:28] <atmos> yeah remind me next week to not come on here :P
404: [02:58:41] <Pyromanik> it's an extreemly peety brew, like a Scotch.
405: [02:58:47] <atmos> yuck
406: [02:59:01] <Pyromanik> it's a love it or hate it kinda thing.
407: [02:59:02] <atmos> good scotch to me isn't peety scotch
408: [02:59:12] <Colin[pi]> ick scotch
409: [02:59:18] <Colin[pi]> gimme irish whiskey
410: [02:59:24] <atmos> Jamesons
411: [02:59:27] <Colin[pi]> mmmmm
412: [02:59:31] <Pyromanik> A few UK folk seem to like it, but generally 90% of the time it's a struggle to finish 1 bottle.
413: [02:59:34] <Pyromanik> or even half.
414: [02:59:34] <atmos> 3 rocks
415: [02:59:37] <Pyromanik> haha
416: [02:59:40] <atmos> plus tiny drop of GA
417: [02:59:48] <Pyromanik> google analytics?
418: [02:59:52] <Colin[pi]> jamesons, black bush, tullamore dew, all good
419: [03:00:04] <Pyromanik> appletons I hear is good.
420: [03:00:11] * zippy__ quit (Ping timeout: 248 seconds)
421: [03:00:18] <atmos> Appletons 15 is so good
422: [03:00:38] <Bollig|DesignCty> scotchy, scotch, scotch
423: [03:03:47] <Colin[pi]> i love me some irish whiskey on the rocks, but my old scottish boss called me a "pansy" for having ice in it
424: [03:05:04] <atmos> it's fine if you drink it quickly :P
425: [03:05:19] <Colin[pi]> yes indeed
426: [03:05:30] <Colin[pi]> I don't have it to reduce the strength, I just like it really cold
427: [03:05:40] <atmos> yup
428: [03:05:49] <Colin[pi]> i hate it when it gets watery
429: [03:06:01] <atmos> I have to admit CC isn't bad
430: [03:06:21] <Colin[pi]> it's great when I go to visit my gf's family in sao paulo, as her dad LOVES whiskey and looks for an excuse to have a drink with me each night lol
431: [03:06:48] <atmos> nice, yeah my gf's dad is the same
432: [03:06:58] <Colin[pi]> sweet :)
433: [03:07:04] <atmos> brings a bottle of Jamesons over twice a week lol
434: [03:07:08] <Colin[pi]> lol score
435: [03:07:22] <Colin[pi]> I can't talk with him much because my portuguese is still terrible, but I understand "Colin! Whiskey?"
436: [03:07:36] <atmos> that's all you need
437: [03:07:49] <Bollig|DesignCty> pretty much.
438: [03:08:19] <Colin[pi]> hehehe
439: [03:08:28] <Bollig|DesignCty> Colin[pi]: I've got some soapstone rocks, you freeze them like ice blocks except it doesn't water down your drink :)
440: [03:08:37] <Colin[pi]> oooh
441: [03:08:49] <Colin[pi]> now that's a cool idea (groan pun)
442: [03:09:00] <atmos> Bollig|DesignCty: yeah I've though about picking those up off MightyApe, do they stay cool for long?
443: [03:09:16] <Bollig|DesignCty> yeah, it's pretty HARDcore (because they're rocks!)
444: [03:09:28] <Bollig|DesignCty> atmos: depends how much you drink :D
445: [03:09:29] <Colin[pi]> badum tsh
446: [03:09:44] <atmos> I'm a pretty SOLID drinker
447: [03:09:59] <Bollig|DesignCty> about as long as an ice block really. if you want cold scotch, fix is to stick it in the freezer next to the vodka.
448: [03:10:01] <Peavers_Broken> How would I check if a dataobject already exists before calling write()? With a custon onBeforeWrite method eh?
449: [03:10:05] <Bollig|DesignCty> BOOM YEAH
450: [03:10:28] <atmos> mmmm cold Vodka, be like syrup!
451: [03:10:40] <Bollig|DesignCty> Peavers_Broken: aww man, we're talking scotch here! If you want to talk about silverstripe you should to to #silverstripeā€¦.. oh wait :(
452: [03:10:45] <Colin[pi]> Peavers_Broken: if ($this->isInDB()) in onBeforeWrite ?
453: [03:10:58] <Colin[pi]> or if ($this->ID)
454: [03:11:18] <Bollig|DesignCty> this ID is the standard check from memory
455: [03:11:19] <Peavers_Broken> I don't know the ID =(
456: [03:11:38] <Colin[pi]> eh?
457: [03:11:42] <Bollig|DesignCty> Peavers_Broken: if it's not in the DB, it doesn't have an ID, that's all you're checking.
458: [03:11:51] <Colin[pi]> wait, explain again what you need to do?
459: [03:12:05] <Colin[pi]> you want to check for a dupe on another field that's not ID?
460: [03:12:16] <Peavers_Broken> maybe? lol
461: [03:15:39] <Peavers_Broken> I'm loading results from an api call into the database, I want to do something like "ON DUPLICATE KEY UPDATE"
462: [03:15:47] <Peavers_Broken> without using raw sql
463: [03:17:04] <Colin[pi]> where is the key coming from, the API call?
464: [03:17:31] <Peavers_Broken> yeah
465: [03:18:02] <Peavers_Broken> the key could be anything, that bits irrelevant
466: [03:18:54] <Peavers_Broken> could maybe use a validate() method...
467: [03:19:42] <Peavers_Broken> if ($this->API_Result->Key != '') { write() } etc etc..??
468: [03:20:18] <Peavers_Broken> got to be a cleaner method than that though
469: [03:21:06] <chrisrio> oembed should just "work" in SS3 eh..
470: [03:21:23] <chrisrio> IE this youtube URL I pasted into the content section should have rendered on the front-end as the embeded vid ;P
471: [03:21:30] * aznain has joined #silverstripe
472: [03:22:37] * bambii7 quit (Ping timeout: 250 seconds)
473: [03:22:51] * atmos quit (Quit: Page closed)
474: [03:23:20] * nickmolhoek quit (Ping timeout: 256 seconds)
475: [03:23:41] <aznain> ss3: I have query inside a function like return DOAzeen::get()->where("'MONTH(Created)' = 'MONTH(CURDATE())'"); .. I want to see what query is called / run when this function executed. Is there any way to var_dump / print_r thing ?
476: [03:24:21] * mirrors quit (Ping timeout: 250 seconds)
477: [03:30:56] <guzzlefry> hm
478: [03:31:17] * Stu_ quit (Ping timeout: 250 seconds)
479: [03:32:25] <guzzlefry> aznain: Might be easier to get them from the database server.
480: [03:32:46] <guzzlefry> But you might need special privileges for that.
481: [03:37:34] <guzzlefry> aznain, I found it!
482: [03:39:33] <guzzlefry> aznain, just add ?showqueries to the URL :) http://doc.silverstripe.org/framework/en/reference/urlvariabletools
483: [03:41:41] * cloph_away quit (Read error: Operation timed out)
484: [03:41:55] * cloph_away has joined #silverstripe
485: [03:47:00] * travis-ci has joined #silverstripe
486: [03:47:00] <travis-ci> [travis-ci] sminnee/sapphire#24 (travis-behat-test - 5e356e2 : Sam Minnee): The build has errored.
487: [03:47:00] <travis-ci> [travis-ci] Change view : https://github.com/sminnee/sapphire/compare/70a496eed126...5e356e280e67
488: [03:47:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/sminnee/sapphire/builds/12120400
489: [03:47:00] * travis-ci has left #silverstripe
490: [03:48:44] * travis-ci has joined #silverstripe
491: [03:48:45] <travis-ci> [travis-ci] sminnee/sapphire#23 (travis-behat-test - 70a496e : Sam Minnee): The build has errored.
492: [03:48:45] <travis-ci> [travis-ci] Change view : https://github.com/sminnee/sapphire/compare/367825774183...70a496eed126
493: [03:48:45] <travis-ci> [travis-ci] Build details : http://travis-ci.org/sminnee/sapphire/builds/12120386
494: [03:48:45] * travis-ci has left #silverstripe
495: [03:49:29] * Stomach quit (Quit: Leaving.)
496: [03:50:49] * travis-ci has joined #silverstripe
497: [03:50:50] <travis-ci> [travis-ci] sminnee/sapphire#25 (travis-behat-test - 82b2bfb : Sam Minnee): The build has errored.
498: [03:50:50] <travis-ci> [travis-ci] Change view : https://github.com/sminnee/sapphire/compare/5e356e280e67...82b2bfbe9a4c
499: [03:50:50] <travis-ci> [travis-ci] Build details : http://travis-ci.org/sminnee/sapphire/builds/12120477
500: [03:50:50] * travis-ci has left #silverstripe
501: [03:54:12] * DigNZ quit (Quit: DigNZ)
502: [03:54:52] * UncleCheese quit (Quit: UncleCheese)
503: [03:55:30] <aznain> @guzzlefry: Thanks ... I tried that one before .. but It does not seems to work ... I mean it is not showing the queries which custom function is running ...
504: [03:55:59] * nickmolhoek has joined #silverstripe
505: [03:55:59] * nickmolhoek quit (Remote host closed the connection)
506: [03:56:13] * nickmolhoek has joined #silverstripe
507: [03:57:48] * UncleCheese has joined #silverstripe
508: [03:58:34] <aznain> @UncleCheese: ss3: I have query inside a function like return DOAzeen::get()->where("'MONTH(Created)' = 'MONTH(CURDATE())'"); .. I want to see what query is called / run when this function executed. Is there any way to var_dump / print_r thing ?
509: [03:59:51] * travis-ci has joined #silverstripe
510: [03:59:52] <travis-ci> [travis-ci] sminnee/sapphire#26 (travis-behat-test - 00d1c3f : Sam Minnee): The build has errored.
511: [03:59:52] <travis-ci> [travis-ci] Change view : https://github.com/sminnee/sapphire/compare/82b2bfbe9a4c...00d1c3f0e9b7
512: [03:59:52] <travis-ci> [travis-ci] Build details : http://travis-ci.org/sminnee/sapphire/builds/12120514
513: [03:59:52] * travis-ci has left #silverstripe
514: [04:01:16] * coldblooded01 quit (Quit: coldblooded01)
515: [04:01:21] * mobiusnz quit (Quit: Leaving.)
516: [04:05:52] * DigNZ has joined #silverstripe
517: [04:05:53] * DigNZ quit (Remote host closed the connection)
518: [04:07:26] * Peavers_Broken quit (Ping timeout: 240 seconds)
519: [04:09:01] * UncleCheese quit (Quit: UncleCheese)
520: [04:10:02] * nickmolhoek quit (Quit: nickmolhoek)
521: [04:12:40] <Colin[pi]> ugh firefox i am disappoint
522: [04:12:51] <Colin[pi]> click tab... wait wait wait wait wait... OH there it goes
523: [04:12:58] <Colin[pi]> I only have 11 open
524: [04:19:14] * chrisrio quit (Quit: Page closed)
525: [04:22:58] <nick86> Hi all, I have a form that is not displaying server side validation errors in the form message area.
526: [04:23:13] <nick86> I have put together a paste: http://www.sspaste.com/paste/show/524e35d58f7cc
527: [04:23:54] <nick86> anyone have any insights as to why the messages would not be displaying?
528: [04:24:37] * UncleCheese has joined #silverstripe
529: [04:25:45] * Jayden90 has joined #silverstripe
530: [04:27:56] <nick86> no love?
531: [04:28:32] <nick86> where is simon_w when i need him? :(
532: [04:32:09] <Jayden90> What branch should we be using, 3.1 or 3.1.0
533: [04:32:28] <Jayden90> what is the difference https://github.com/silverstripe/silverstripe-framework
534: [04:33:32] <Avroceptyr> 3.1.0 is a little bit better
535: [04:33:57] <Jayden90> is that the dev branch for the 3.1 family?
536: [04:34:11] <Avroceptyr> I have zero idea :)
537: [04:34:26] <Jayden90> haha thanks anyway :)
538: [04:36:08] * EasyCo has joined #silverstripe
539: [04:39:53] * UncleCheese quit (Quit: UncleCheese)
540: [04:42:35] * EasyCo quit (Ping timeout: 260 seconds)
541: [04:43:58] * kerosene has joined #silverstripe
542: [04:44:38] * EasyCo has joined #silverstripe
543: [04:46:54] * EasyCo quit (Client Quit)
544: [04:54:51] * mobiusnz has joined #silverstripe
545: [05:02:41] * travis-ci has joined #silverstripe
546: [05:02:42] <travis-ci> [travis-ci] sminnee/sapphire#26 (travis-behat-test - 00d1c3f : Sam Minnee): The build failed.
547: [05:02:42] <travis-ci> [travis-ci] Change view : https://github.com/sminnee/sapphire/compare/82b2bfbe9a4c...00d1c3f0e9b7
548: [05:02:42] <travis-ci> [travis-ci] Build details : http://travis-ci.org/sminnee/sapphire/builds/12120514
549: [05:02:42] * travis-ci has left #silverstripe
550: [05:03:48] * Jayden90 quit (Quit: Jayden90)
551: [05:09:56] * EasyCo has joined #silverstripe
552: [05:11:43] * mobiusnz quit (Quit: Leaving.)
553: [05:15:51] <Pyromanik> ha!
554: [05:15:52] * Pyromanik quit (Quit: leaving)
555: [05:16:19] * EasyCo_ has joined #silverstripe
556: [05:17:08] * EasyCo quit (Ping timeout: 260 seconds)
557: [05:17:08] * EasyCo_ is now known as EasyCo
558: [05:35:56] * EasyCo quit (Ping timeout: 246 seconds)
559: [05:37:46] <nick86> OK, really struggling over here, does any one have any idea why this form would not display server side errors? http://www.sspaste.com/paste/show/524e35d58f7cc
560: [05:39:59] * Jayden90 has joined #silverstripe
561: [05:46:13] <nick86> you guys have changed... you used to be cool :P
562: [06:00:28] <Jayden90> ,:',:`,:'
563: [06:01:06] <Jayden90> This chanel is so boring today
564: [06:04:58] <Colin[pi]> it is late on a friday in NZ
565: [06:11:55] * Mayazcherquoi is now known as Mayzie
566: [06:31:12] * kerosene quit (Quit: IT HAS BECOME WEEKENDFUL)
567: [06:38:26] * swordsmanz quit (Quit: swordsmanz)
568: [07:07:17] * Shrike_Finland has joined #silverstripe
569: [07:19:34] <guzzlefry> This translatable stuff is messy.
570: [07:22:40] <Guest68628> any idea why wysiwyg editor strips 'class' from html elements if i add it manually in HTML view?
571: [07:22:52] <Guest68628> i could almost swear that this has worked before
572: [07:25:16] <guzzlefry> I gave up trying to figure that thing out.
573: [07:25:18] <guzzlefry> uhm
574: [07:25:33] <guzzlefry> I think there is a way to manually specify classes you can set on things though.
575: [07:25:51] <guzzlefry> Hidden somewhere in the docs.
576: [07:25:59] <Guest68628> well, the problem is that this one specific page within a 300+-page site has rather quirky html
577: [07:26:38] <Guest68628> and it needs these specific css classes on certain elements to look right... i'm already thinking of just editing the content directly in database and telling people not to EVER touch the page via CMS :p
578: [07:26:47] <Jayden90> Guest68628: What sort of classes do you want to allow? might be better to make it a format dropdown option
579: [07:28:00] <Guest68628> Jayden90, just some classes that Foundation css framework uses to format things
580: [07:30:43] <guzzlefry> hrm, Anyone know how I can group CMS fields into sections?
581: [07:30:55] * aznain quit (Ping timeout: 250 seconds)
582: [07:31:01] <Jayden90> Guest68628: If it't not a ridiculous list you can add them in to the formats dropdown
583: [07:31:26] <Guest68628> given the rather fragile HTML structure of this said page, i'm not sure what'd happen... maybe i'll just try :p
584: [07:32:30] <Jayden90> Guest68628: Generally speaking most of the layout should be handled via templates. Having a few options in the htmleditorfield should suffice
585: [07:33:41] <Guest68628> Jayden90, i know... thing is just that this very special layout is only on this single page in a 300+-page website, and i'm not sure how much would it make sense to code yet another page type to handle this specific layout
586: [07:33:47] <Guest68628> given that it's really never updated via CMS anyway
587: [07:34:20] <Guest68628> thing is, i already made this work once, but now an UL element has lost class="block-grid four-up" and adding that in the HTML view + saving & publishing does not make it come back
588: [07:35:51] <Jayden90> Guest68628: wierd that is used to work
589: [07:36:42] <Guest68628> Jayden90, indeed.
590: [07:40:33] <guzzlefry> Does the Currency datatype allow negative values?
591: [07:41:39] * chillu has joined #silverstripe
592: [07:42:39] <guzzlefry> Nevermind, looks like it does.
593: [08:00:36] <Guest68628> looks like i solved my problem by setting valid_elements to *[*] instead of *
594: [08:00:39] <Guest68628> in html editor config
595: [08:04:25] * kinglozzer has joined #silverstripe
596: [08:12:30] * SightUnseen has joined #silverstripe
597: [08:12:33] * SightUnseen has left #silverstripe
598: [08:21:30] <Jayden90> Guest68628: nice
599: [08:22:25] <Jayden90> I had an epic gotcha recently when I was setting 'extended_valid_elements' with values comma space seperated, it didn't like the space
600: [08:22:53] <Jayden90> tiny mce does not throw an error, it just ignored everything past the space
601: [08:25:46] <Guest68628> ha, nice failure mode
602: [08:26:39] <Guest68628> i sorta hit a similar gotcha with js a couple of weeks ago. i had some sort of brainfart and tried to use an array like this: myArray.push[something]; - turns out js's auto-vivification automatically creates a sub-array called "push" and tries to find an item with key defined by 'something' in it, just returning false
603: [08:26:45] <Guest68628> no errror, not even a warning :p
604: [08:27:11] <guzzlefry> uhm
605: [08:27:14] <Guest68628> i just wondered why my code doesn't work until i saw what i had done and changed it to myArray.push(something);
606: [08:27:17] <Guest68628> :p
607: [08:27:20] <guzzlefry> 'Country' => "Enum('New Zealand,United States,Germany','New Zealand')"
608: [08:27:27] <guzzlefry> Anyone notice something odd with those single-quotes? :P
609: [08:27:59] * violetina has joined #silverstripe
610: [08:32:40] <lewellyn> and the pair of new zealands?
611: [08:32:51] <lewellyn> why do they feel like they get to show up twice!?
612: [08:32:54] <Guest68628> well, more is more, right?
613: [08:32:59] <ss23> New Zealand and Germany together!
614: [08:33:03] * ss23 high fives chillu
615: [08:33:26] <chillu> Wohoo
616: [08:34:58] <guzzlefry> ss23: What's the syntax for enums?
617: [08:35:21] <guzzlefry> I vaguely remember it being "Enum('this, that, this, that')"
618: [08:35:35] <guzzlefry> The doc example is: 'Country' => "Enum('New Zealand,United States,Germany','New Zealand')"
619: [08:35:37] <ss23> I can't remember, it's weird though
620: [08:36:01] <ss23> "Status" => "Enum('Active, Injured, Retired')"
621: [08:36:14] <guzzlefry> That is weird.
622: [08:36:23] <guzzlefry> Maybe that's SQL stuff. :P
623: [08:37:55] * NobrainerWeb has joined #silverstripe
624: [08:39:27] <NobrainerWeb> Hi guys, i just did a clean install of SS3.1.0 and the Even Calendar module by UC - i would like to get the upcoming events displayed on the frontpage, but i'm having no luck. Can someone show me what i need to do?
625: [08:39:41] * henkpoley has joined #silverstripe
626: [08:43:23] * Jayden90 quit (Quit: Jayden90)
627: [08:50:32] <guzzlefry> Should parent::onBeforeWrite() be called last, or does it not matter?
628: [08:50:41] <guzzlefry> When overriding it ^
629: [09:02:12] * micmania1 has joined #silverstripe
630: [09:17:33] * henkpoley quit (Quit: henkpoley)
631: [09:23:59] * henkpoley has joined #silverstripe
632: [09:40:42] * henkpoley quit (Quit: henkpoley)
633: [09:41:50] * henkpoley has joined #silverstripe
634: [09:43:28] * cloph_away is now known as cloph
635: [10:49:44] * NobrainerWeb quit (Quit: NobrainerWeb)
636: [10:51:42] * henkpoley quit (Quit: henkpoley)
637: [11:09:24] * henkpoley has joined #silverstripe
638: [11:35:10] * sam___ has joined #silverstripe
639: [11:35:53] <sam___> hi... can anybody knows how to use autocomplete field to search any char in the string?
640: [11:36:35] <sam___> I am using balbusautocomplete
641: [11:42:05] <MattSS> guzzlefry: A better way to declare an enum is using an array
642: [11:42:40] <MattSS> e.g. 'Country' => "Enum(array('New Zealand', 'United States', 'Germany'), 'Germany')"
643: [11:43:26] <MattSS> That way, you don't get weird enum values stored (e.g. in your example you're fine, but in ss23's example, the enum would be stored as "Active", " Injured", and " Retired" (note spaces at the beginning)
644: [11:43:38] <MattSS> at least in 3.0
645: [11:43:51] <ss23> MattSS: Then why do the docs say the way in my example!
646: [11:43:57] <ss23> MattSS: Your task for the weekend, you don't get a choice, is to fix the docs.
647: [11:44:11] <MattSS> ss23: yeah it's a bit odd
648: [11:45:37] <MattSS> ss23: What docs are you looking at?
649: [11:45:55] <ss23> MattSS: Can't remmeber, searched "silverstripe enum" on teh googlez
650: [11:45:57] <ss23> think it was datamodel
651: [11:47:27] * sam___ quit (Ping timeout: 250 seconds)
652: [11:47:49] * micmania1 quit (Ping timeout: 248 seconds)
653: [11:49:55] <MattSS> Oh I see, yeah there's two examples there
654: [11:53:53] * micmania1 has joined #silverstripe
655: [11:54:10] <MattSS> have submitted a PR to fix those
656: [11:54:18] * MattSS &
657: [12:01:15] * UndefinedOffset has joined #silverstripe
658: [12:42:22] * henkpoley quit (Quit: henkpoley)
659: [13:03:06] * chillu quit (Remote host closed the connection)
660: [13:27:20] * Guits has joined #silverstripe
661: [13:28:58] * Shrike_Finland quit (Quit: Leaving.)
662: [13:34:19] * Colin[pi] quit (Ping timeout: 248 seconds)
663: [13:55:17] * spronk quit (Quit: spronk)
664: [14:16:51] * g4b0 has joined #silverstripe
665: [14:17:12] <g4b0> hi all
666: [14:17:27] <g4b0> how can I install a SS 3.1.1 through composer?
667: [14:49:19] * catcher has joined #silverstripe
668: [14:49:34] * henkpoley has joined #silverstripe
669: [14:55:47] <g4b0> Is it possible to use a db table prefix for certain installation?
670: [15:01:26] <kinglozzer> g4b0: You can use define('SS_DATABASE_PREFIX', 'prefix_');
671: [15:01:44] <Guits> Is there a way to customize the Duplicate entry ERROR message on unique KEYS?
672: [15:01:48] <g4b0> kinglozzer
673: [15:01:51] <g4b0> nope
674: [15:02:03] <g4b0> it will add a prefix to the database
675: [15:02:10] <g4b0> not to the tables :(
676: [15:02:18] <kinglozzer> Oh I see
677: [15:02:29] <g4b0> I had a look into the code
678: [15:02:30] <kinglozzer> I don't think so
679: [15:02:35] <kinglozzer> At least not as far as I know
680: [15:02:48] <g4b0> actually in 3.1.0 it isn't possible :/
681: [15:03:17] <g4b0> even joomla can do it....
682: [15:04:01] <kinglozzer> I've never needed to prefix the tables
683: [15:04:15] <kinglozzer> Can't you use a separate database if table names are conflicting?
684: [15:05:35] <g4b0> I need to use same tables from 2 software
685: [15:05:49] <g4b0> and I would like to avoid opening 2 connections
686: [15:06:51] <g4b0> anyway it's a common feature of modern CMS
687: [15:07:19] <g4b0> and it's not so painful to develop
688: [15:07:48] <g4b0> maybe there will be some problem with modules that runs query "by hand"
689: [15:07:58] <kinglozzer> I'm sure they'd welcome a pull request :)
690: [15:08:12] <g4b0> without passing through MySQLDatabase
691: [15:08:36] <g4b0> are you?
692: [15:09:42] <kinglozzer> Am I what?
693: [15:10:19] <g4b0> sure they'd welcome a pull request? :)
694: [15:11:12] <g4b0> maybe I will start a discussion into the dev list
695: [15:11:30] <kinglozzer> Well you could post something on the mailing list and ask, but as long as it's unit tested I can't see any reason why they wouldn't accept it
696: [15:20:54] * Mayzie quit (Quit: Exit stage left.)
697: [15:40:36] * kinglozzer quit (Remote host closed the connection)
698: [15:50:10] * Mayzie has joined #silverstripe
699: [15:52:10] * henkpoley quit (Quit: henkpoley)
700: [16:05:10] * g4b0 quit (Quit: Sto andando via)
701: [16:59:58] * Colin[pi] has joined #silverstripe
702: [17:22:48] * Colin[pi] quit (Ping timeout: 260 seconds)
703: [17:32:45] <catcher> Is there something in the 3.1 CMS that lets you view the draft version of the site externally? All I'm seeing is the split mode, which obviously doesn't work for Versioned DOs.
704: [17:41:58] * razzi has joined #silverstripe
705: [17:42:12] <AlphaCactus> yeah.
706: [17:42:17] <razzi> TGIF
707: [17:43:55] <AlphaCactus> catcher: I can't find a link just now... if the site is in dev mode then the silverstripenavigator should provide it. otherwise, you might have to go to the page and then add ?stage=stage to the url manually.
708: [17:45:18] <catcher> Thanks for the sanity check AlphaCactus. I'll probably add links to the front-end that only display when logged in.
709: [17:46:12] <AlphaCactus> i'm always noob about that front end stuff.
710: [17:57:32] <catcher> with an attitude like that you are!
711: [18:03:51] <AlphaCactus> XD
712: [18:07:07] * swordsmanz has joined #silverstripe
713: [18:12:06] * swordsmanz quit (Ping timeout: 264 seconds)
714: [18:14:39] * swordsmanz has joined #silverstripe
715: [18:32:12] * dospuntocero has joined #silverstripe
716: [18:36:19] <dospuntocero> hey guys a question
717: [18:36:50] <dospuntocero> i have this arraylist
718: [18:36:51] <dospuntocero> http://pastie.org/private/qzwph5stiinmtup8tsq5a
719: [18:37:03] <dospuntocero> but not sure how to get the objets on my template
720: [18:37:08] <dospuntocero> what im doing wrong?
721: [18:41:01] <catcher> dospuntocero, can you share the code that generates the list?
722: [18:41:10] <dospuntocero> sure/
723: [18:41:56] <dospuntocero> http://pastie.org/private/pxtlxypxuc0y9xoxegbda
724: [18:42:17] <dospuntocero> (dont kill me, not my code. found it on github...)
725: [18:50:22] <catcher> dospuntocero, and your template code?
726: [18:50:37] <dospuntocero> at the moment...
727: [18:50:42] <dospuntocero> <% loop FeedsDataList %>
728: [18:50:43] <dospuntocero> $fibd
729: [18:50:43] <dospuntocero> <% end_loop %>
730: [18:51:14] <dospuntocero> if i use $Feeds
731: [18:51:16] <dospuntocero> it works
732: [18:51:29] <dospuntocero> but i need different views of that data
733: [18:51:54] <catcher> $fibd?
734: [18:51:55] <dospuntocero> and the one provided on the widget cant be modified... so i added the feedsdatalist function
735: [18:52:05] <catcher> You want $fbid
736: [18:52:06] <dospuntocero> its one of the values inside the array...
737: [18:52:11] <dospuntocero> i want it all
738: [18:52:17] <catcher> Look at the spelling.
739: [18:52:21] <dospuntocero> but for testing purposes... i added that one
740: [18:52:23] <catcher> fibd vs fbid
741: [18:53:02] <dospuntocero> its fbid
742: [18:53:10] <dospuntocero> same part of the array
743: [18:53:15] <catcher> not in your template you just pasted.
744: [18:53:25] <catcher> <dospuntocero> <% loop FeedsDataList %>
745: [18:53:25] <catcher> <dospuntocero> $fibd
746: [18:53:25] <catcher> <dospuntocero> <% end_loop %>
747: [18:53:47] <dospuntocero> oh.. i misspelled here...
748: [18:58:19] <catcher> The arraylist looks fine, I'd check for spelling & scoping issues in the template.
749: [18:59:33] <dospuntocero> the thing is i dont know what is the thing i must loop inside the function
750: [19:00:16] <dospuntocero> its like.. <% with FeedsDataList %> <% loop somethingHere %> $fbid
751: [19:01:08] <catcher> You should be able to loop $FeedsDataList and access those properties.
752: [19:01:53] <catcher> As long as scope is right.
753: [19:05:22] <dospuntocero> maybe thats the problem
754: [19:05:30] <dospuntocero> variables are 1 array deep
755: [19:05:35] <dospuntocero> but that array doesnt have a name
756: [19:05:57] <dospuntocero> so i dont know how to loop it.
757: [19:08:07] <dospuntocero> oh! its called items
758: [19:08:09] <dospuntocero> !!
759: [19:12:03] <dospuntocero> no luck.
760: [19:12:13] <dospuntocero> i cant loop over that...
761: [19:22:29] <catcher> FeedsDataList returns an ArrayList composed of ArrayDatas. When you loop over FeedsDataList, you should be in the context of each of those ArrayDatas, which should have access to those fields.
762: [19:22:33] <catcher> Can you paste your whole template?
763: [19:23:00] <dospuntocero> http://pastie.org/8378302
764: [19:23:03] <dospuntocero> thats all..
765: [19:23:20] <dospuntocero> i havent done anything yet since i cant get the information
766: [19:25:14] <catcher> dospuntocero, and you've tried this? http://pastie.org/8378309
767: [19:25:29] <dospuntocero> yup and nothing...
768: [19:29:30] <catcher> have you flushed your template cache lately?
769: [19:30:14] <dospuntocero> yup
770: [19:30:38] <catcher> what version of SS?
771: [19:30:43] <dospuntocero> this is driving me insane... i think i will go to take some air and kick some random person to get my hanger again...
772: [19:31:00] <dospuntocero> out i mean...
773: [19:31:09] <dospuntocero> 3.0.7 or something...
774: [19:31:19] <dospuntocero> i will put 3.1 now..
775: [19:31:30] <dospuntocero> i hope nothing breaks with the change...
776: [19:31:41] <catcher> 3.0.7 would be fine too, just making sure you weren't trying to loop in 2.x
777: [19:32:24] <catcher> I'm looking at an arraylist formed exactly the same way, looping as I pasted above, and accessing by that key just fine.
778: [19:32:45] <dospuntocero> no its 3xx totally sure
779: [19:32:54] <dospuntocero> cms looks decent
780: [19:32:54] <dospuntocero> hah
781: [19:33:27] <dospuntocero> thanks for your time catcher
782: [19:33:34] <dospuntocero> catch you next time ;)
783: [19:33:39] <catcher> k, gl
784: [19:33:40] * dospuntocero quit (Remote host closed the connection)
785: [19:50:24] <catcher> Is there any good way to generate at least part of a CMS link for a modeladmin or page-administered object?
786: [20:10:32] * UndefinedOffset quit (Read error: Connection reset by peer)
787: [20:23:44] <AlphaCactus> i just look up where I am when I am on an object (refresh while editing to see url if not updated) and then replace the ID(s) of in the url?
788: [20:24:05] <AlphaCactus> *of whatever objects
789: [20:26:00] <catcher> You hard-code the modeladmin name?
790: [20:28:30] <AlphaCactus> shore, why not
791: [20:29:07] <AlphaCactus> I'm not building modules, just unique functionality so it don't expect it to change
792: [20:29:27] <AlphaCactus> probaly could get fancy and dynamically determine it, but meh
793: [20:35:16] * violetina quit (Remote host closed the connection)
794: [20:38:45] <guzzlefry> Has anyone gone as far as pulling their site's theme into its own composer package?
795: [20:40:26] <catcher> I've been successful in completely avoiding composer so far.
796: [20:41:51] <guzzlefry> It's the best deployment method I've found so far.
797: [20:41:55] <guzzlefry> Although I haven't looked much.
798: [21:00:50] * Nightjar has joined #silverstripe
799: [21:44:49] * catcher quit (Quit: Leaving)
800: [22:25:55] * razzi quit ()
801: [23:14:17] * guci0 quit (Ping timeout: 250 seconds)
802: [23:53:17] * mobiusnz has joined #silverstripe

These logs were automatically created by ss-log on irc.freenode.net.