#silverstripe IRC Log

IRC log for 24 April 2014

All timestamps are in UTC.

1: [00:07:29] <ss23> curmudgeon is just way too close to "cum dungeon" for my liking
2: [00:07:41] <ss23> 11:24:22 < Colin[pi]> you reckon I can stop by at SS on Fri 1st Aug?
3: [00:07:43] <ss23> um
4: [00:07:54] <ss23> I guess, but do you know anyone else here, or did you just wanna see the offices? :O
5: [00:08:00] * Bollig|DesignCty has joined #silverstripe
6: [00:15:27] <ss23> Oh Wellington people https://pbs.twimg.com/media/Bl8higlCQAE6SFn.jpg:large
7: [00:21:25] * Tanger has joined #silverstripe
8: [00:21:42] * NeckCutter has joined #silverstripe
9: [00:26:10] <Colin[pi]> ss23: I've talked with sminnee on here...? :D
10: [00:26:18] <ss23> Yeah, but he's normally busy
11: [00:26:18] <ss23> :P
12: [00:26:20] <Colin[pi]> lol
13: [00:26:30] <Colin[pi]> I just want to say hi
14: [00:26:54] <Colin[pi]> see the offices, see where THE MAGIC HAPPENS
15: [00:27:34] <ss23> np np, that should be fine
16: [00:27:35] <ss23> :)
17: [00:27:41] * jordanmk has joined #silverstripe
18: [00:28:19] <jordanmk> cheers for the suggestions with the auto-email task, will give it a try and see how i go :)
19: [00:29:16] <Colin[pi]> ss23: I've based my core business around the software that you all work on, so it's kinda nice to see the place and say hi and thanks
20: [00:29:53] <Colin[pi]> SS is *so* much better than what I used to use, so the current fact that my business is doing MUCH better than before I owe in no small part to SS
21: [00:29:55] <ss23> yep yep
22: [00:30:00] <ss23> :D
23: [00:30:21] <Colin[pi]> so just to say hi, no homo
24: [00:30:45] <ss23> XD
25: [00:30:59] <Colin[pi]> though if you play your cards right and buy me a drink...
26: [00:31:01] <Colin[pi]> *wink*
27: [00:31:02] <Colin[pi]> ;P
28: [00:31:21] <ss23> XD
29: [00:31:22] * Colin[pi] 's turn to freak out ss23
30: [00:31:23] <ss23> Dude
31: [00:31:28] <ss23> Reminds me of the time Pyro came down
32: [00:31:42] <ss23> And... well... I'm pretty sure the bar tender thought the three of us (a friend of mine too) was gay or something
33: [00:32:27] <Danae> That sounds awfully like a guy I know up here who goes by the name Pyrocam
34: [00:32:33] <Danae> *suspicious*
35: [00:32:53] <ss23> Pyro has been in here with weird names lately :O
36: [00:32:56] <Colin[pi]> ss23: lol
37: [00:33:05] <ss23> And he's in UK now
38: [00:33:06] <ss23> :P
39: [00:33:13] <Danae> k not the same guy haha
40: [00:33:20] <Colin[pi]> ss23: was the bartender giving you that like "what's all this racket" stern dad face all night?
41: [00:33:54] <ss23> haha, no, he came over near the end of the night and we ordered some shit, and he came back with mine with a coke and lime being like "my girlfriend likes it served like this"
42: [00:33:58] <ss23> so free bottle of coke + lime too
43: [00:34:01] <ss23> he was awesome :D
44: [00:34:02] <Colin[pi]> LOL
45: [00:34:18] <Colin[pi]> maybe he was coming on to you
46: [00:34:25] <ss23> I know right!
47: [00:34:25] <ss23> :P
48: [00:34:33] <Colin[pi]> he liked your milkshake
49: [00:34:48] <ss23> XD
50: [00:34:57] <ss23> My milkshake brings bartenders away from the bar?
51: [00:35:08] <Colin[pi]> apprarently!
52: [00:35:12] <Colin[pi]> *apparently
53: [00:35:13] <Colin[pi]> also
54: [00:35:30] <Colin[pi]> btw I've been told I need to try NZ fush und chups
55: [00:35:37] <Colin[pi]> supposed to be quite good
56: [00:35:42] <ss23> They're like any other fish and chips
57: [00:35:44] <ss23> fish and potatoes!
58: [00:35:52] <Danae> unless you go to Kaiaua
59: [00:36:01] <Danae> now those are the real deal
60: [00:36:31] <Colin[pi]> oh and ss23, a friend of mine told me the EXACT same thing about Weta Cave "Oh that was kinda just a gift shop"
61: [00:36:41] <ss23> :D
62: [00:36:46] <Colin[pi]> so.. ehhh dunno about that
63: [00:36:51] <ss23> They have tours n stuff of the back, but it's just like "look at these people working!"
64: [00:36:51] <Colin[pi]> I will go to Te Papa though
65: [00:36:54] <ss23> ::P
66: [00:36:56] <ss23> Yeah, Te Papa is cool
67: [00:36:58] <ss23> GIANT SQUID!
68: [00:36:59] <ss23> :D
69: [00:37:02] <ss23> Danae: Psh!
70: [00:37:03] <ss23> :P
71: [00:37:08] <Colin[pi]> oh snap is that where the squid is?>?
72: [00:37:09] <Danae> XP
73: [00:37:20] <Danae> I saw that squid
74: [00:37:26] <Colin[pi]> fuck yeah, I want to see that
75: [00:37:27] <Danae> last time I was in wellytown
76: [00:37:31] * Ryan-Toast quit (Quit: Ryan-Toast)
77: [00:37:58] <ss23> :D
78: [00:38:02] <ss23> Everyone see's the squid man
79: [00:38:03] <ss23> Oh shit
80: [00:38:06] <ss23> What about the...
81: [00:38:07] <Danae> they also had the Britten motorcycle so that was pretty cool
82: [00:38:08] <ss23> BUCKET FOUNTAIN?
83: [00:38:11] <ss23> Shit is off the *hook*
84: [00:38:13] <Danae> hahaha
85: [00:38:15] <Colin[pi]> OH I saw about that lol
86: [00:38:37] <Colin[pi]> I'm staying there right? Te Aro
87: [00:38:55] <Colin[pi]> yep I'm real close to there
88: [00:39:02] <ss23> Yeah, that's just the main city part
89: [00:39:18] <ss23> There's the cool end of the city, Te Aro, and the shitty end of the city, thorndon
90: [00:40:15] <Colin[pi]> what else can I do? I'll have a car Fri and Sat
91: [00:40:26] <ss23> idk man, I don't do anything in Wellington really
92: [00:40:30] <Colin[pi]> :P
93: [00:40:34] <Danae> go throw rocks off that one beach on the way to the airport
94: [00:40:34] <ss23> When I visited, we did bucket fountain, Te Papa, Burger Fuel...
95: [00:40:45] <ss23> Yeah, could do that
96: [00:40:48] <Danae> you could try and break into the windfarm
97: [00:40:49] <ss23> Lots of bars here, get drunk 24/7!
98: [00:40:58] <ss23> Drive up to Waihope
99: [00:41:11] <ss23> Waihipai
100: [00:41:13] <ss23> fuck
101: [00:41:15] <ss23> I can't spell for shit
102: [00:41:19] <ss23> Waihopai
103: [00:41:36] <Danae> Why oh why Waihopai
104: [00:41:46] <Danae> not asking, just singing
105: [00:41:47] <ss23> http://thedailyblog.co.nz/wp-content/uploads/2014/02/Waihopai_dome_collapsed_719999.jpg
106: [00:41:50] <ss23> Get famous
107: [00:41:52] <ss23> oh
108: [00:41:52] <ss23> :(
109: [00:41:55] <ss23> :D
110: [00:43:53] <ss23> fuck
111: [00:43:59] <ss23> Now I'm reading about Waihopai and getting mad
112: [00:44:00] <ss23> :(
113: [00:44:59] * jenniferaslan quit (Quit: jenniferaslan has left the room)
114: [00:45:09] <Stomach> ss23 - you should tell peavers his side of town is shitty, he'd be mad :D
115: [00:45:17] <ss23> I'm sure he knows it
116: [00:45:48] <Stomach> newtown represent!
117: [00:45:57] <Stomach> lived in the bum flat in Brooklyn too
118: [00:47:06] <Danae> everytime I saw "Newtown" signs I thought it said "Newton"
119: [00:48:24] <ss23> Ah, I lived in a shitty place in Newtown, then went to a really nice place in Brooklyn near the wind turbine, then to Mt Vic!
120: [00:51:54] <Colin[pi]> ss23: lol a friend of mine said to go skiing, I'm like no I'm only there for a couple of days in Welly... he said "Oh, go to Courtney Place and get drunk"
121: [00:54:00] <Stomach> oh that sounds _fun_
122: [00:54:43] <lrniningine> is there an atomic way with the ORM to increase a counter
123: [00:54:51] <lrniningine> not used to using ORM really
124: [00:55:03] <ss23> haha Colin[pi]
125: [00:55:10] <ss23> lrniningine: Nope, but there should be
126: [00:55:20] <ss23> lrniningine: I started thinking of a nice API to do it, but got too lazy to implmeent
127: [00:55:29] <lrniningine> :<
128: [00:55:39] <ss23> lrniningine: If you feel like writing one, https://groups.google.com/forum/#!topic/silverstripe-dev/yZVNJRXa5kY
129: [00:56:07] <Colin[pi]> ss23: what's all this about Waihopai? can you give me the back story?
130: [00:56:24] <lrniningine> i can just send some raw SQL some how right
131: [00:56:48] <ss23> lrniningine: Sure can! DB::query() or SQLQuery class
132: [00:56:53] <ss23> Colin[pi]: http://en.wikipedia.org/wiki/Waihopai_Station
133: [00:56:57] <ss23> Mother fucking 5eyes spies
134: [00:57:17] <Colin[pi]> ahh the domes cover dishes
135: [00:57:24] <Colin[pi]> lol they busted it?
136: [00:57:33] <ss23> Someone did, yeah
137: [00:58:00] <ss23> I guess I shouldn't publically talk about how I fucking hate the GCSB/intel in general, but *shrug*
138: [00:58:03] <lrniningine> cheers ss23 ur a babe
139: [00:58:10] * ss23 blushes
140: [00:58:14] <ss23> n-no problems
141: [01:02:18] * UncleCheese_ quit (Quit: UncleCheese_)
142: [01:13:31] * simon_w quit (Ping timeout: 252 seconds)
143: [01:14:30] <lrniningine> maybe i'm missing something basic http://dpaste.com/1793698/
144: [01:14:34] <lrniningine> works fine on the command line
145: [01:15:30] * Ryan-Toast has joined #silverstripe
146: [01:19:23] * UncleCheese_ has joined #silverstripe
147: [01:19:52] <Colin[pi]> http://recode.net/2014/04/23/google-turns-street-view-into-a-time-machine-adding-back-its-history-of-imagery/
148: [01:20:54] <lrniningine> should i enable mysqld query logging or am i missing something obvious
149: [01:23:03] <lrniningine> got it, no double quotes, just single quotes
150: [01:34:42] <Zauberfisch> lrniningine: first guess: use ' instead of "
151: [01:34:45] <Zauberfisch> ah
152: [01:35:03] <Zauberfisch> fail, should have finished reading and see that you already solved it
153: [01:38:28] <lrniningine> yeah weirdly it was working fine on my CLI client
154: [01:38:39] <lrniningine> but yeah basic fail on my part ;_;
155: [02:02:34] <lrniningine> is there a relatively easy way to add a thumbnail to a datagrid in a model admin
156: [02:02:46] <lrniningine> managing a set of images through that interface is kinda opaque at the moment
157: [02:08:01] <Stomach> yeah
158: [02:08:16] <Stomach> try $summary_fields = array('CMSThumbnail')
159: [02:08:27] <Stomach> its CMSThumb or CMSThumbnail
160: [02:08:56] <Stomach> yeah, CMSThumbnail in class Image
161: [02:09:10] <Stomach> so array('Image.CMSThumbnail') should work
162: [02:12:31] <lrniningine> uh
163: [02:12:38] <lrniningine> ok
164: [02:12:44] * Ryan-Toast quit (Quit: Ryan-Toast)
165: [02:13:14] <Stomach> like
166: [02:13:14] <Stomach> private static $summary_fields = array(
167: [02:13:15] <Stomach> 'Title' => 'Title',
168: [02:13:15] <Stomach> 'Image.CMSThumbnail' => 'Image'
169: [02:13:15] <Stomach> );
170: [02:13:20] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
171: [02:13:24] <lrniningine> yeah nice one cheers
172: [02:28:47] <Stomach> gource is fun
173: [02:34:21] * Ryan-Toast has joined #silverstripe
174: [02:38:00] * Bollig|DesignCty has joined #silverstripe
175: [02:49:33] <Colin[pi]> >_< http://i.imgur.com/JT7un2t.jpg
176: [02:50:04] <ss23> rofl
177: [02:51:09] * an_Eskimo has joined #silverstripe
178: [03:03:09] * klord has joined #silverstripe
179: [03:06:12] <klord> Hi I am trying to install ss on a host in a addon domain. Can't get the htaccess files so that homepage is visible. Keep getting a redirect loop. Other pages are ok. Does anyone know where I can see example htaccess files. I have not been able to find anything that is working.
180: [03:10:04] <Zauberfisch> https://github.com/Zauberfisch/silverstripe-boilerplate/blob/master/.htaccess
181: [03:10:10] <Zauberfisch> this is the .htaccess that I use
182: [03:10:34] <ss23> klord: Where is the redirect going to/from
183: [03:10:40] <ss23> Zauberfisch: hmm, that's out of date!
184: [03:11:02] <ss23> Zauberfisch: You should replace it with the silverstripe-installer one
185: [03:11:13] <ss23> some people call their configs .yaml, which that particular rule doesn't fix against
186: [03:11:37] <Zauberfisch> ss23: just had the same tought. already on it
187: [03:12:29] <klord> just keeps trying to redirect to the site root
188: [03:13:07] <Zauberfisch> why does the htaccess of the installer no longer block the readme.md?
189: [03:13:27] <ss23> Why would you block it?
190: [03:13:29] <ss23> It should be public IMO
191: [03:14:53] <Zauberfisch> might contain project specific details
192: [03:15:08] <Zauberfisch> lets imagine that someone replaced the installers readme with his own
193: [03:15:19] <Zauberfisch> and puts sensitive comments in there
194: [03:15:21] <klord> does there need to be a htaccess file in the website root in addition to the one in the ss directory where the site files are?
195: [03:15:50] <Zauberfisch> klord: no
196: [03:16:06] <Zauberfisch> klord: some points to start your search:
197: [03:16:23] <Zauberfisch> - have you perhaps set a baseURL somewhere? so that silverstripe believes it needs to redirect you?
198: [03:16:56] <Zauberfisch> - perhaps some misconfigured mod_rewrite. I think there is a case where you might need to define a RewriteBase in your htaccess file
199: [03:17:43] <Zauberfisch> - has your website been installed with the silverstripe installer? have you run that installer in that folder or have you run it somewhere else and then moved the website to this folder?
200: [03:17:59] <klord> the host provider did the initial ss install but this is the first ss site they have set up, so not really sure what was done.
201: [03:18:26] <ss23> Zauberfisch: then he should deny it. That's silly IMO. What if he uploaded a "secret-details.txt"?
202: [03:18:26] <Zauberfisch> when you say addon domain
203: [03:18:29] <Zauberfisch> what do you mean?
204: [03:18:44] <Zauberfisch> ss23: well ... yeah ... I guess
205: [03:18:45] * cloph_away has joined #silverstripe
206: [03:18:54] <Zauberfisch> ss23: I'll keep on blocking it in my boilerplate
207: [03:19:01] <ss23> I guess it's a safe default, nothing *wrong* with it, idk
208: [03:19:14] <Zauberfisch> exactly
209: [03:19:15] <klord> that is what they call it there are two folders in the website root, one is the ss directory and the other is joomla
210: [03:19:29] * cloph quit (Ping timeout: 264 seconds)
211: [03:20:12] <Zauberfisch> how do you visit the url?
212: [03:20:16] <klord> there is a htaccess file in the website root - public_html and then another one in the ss site directory
213: [03:20:20] <Zauberfisch> is it foo.bar.com or bar.com/foo
214: [03:22:02] <klord> site.com - the ss folder is set in httpd.conf for the ip
215: [03:22:37] <klord> so I do not have to add the /directory where the ss site files are
216: [03:22:47] <Zauberfisch> so you have 2 domains
217: [03:22:53] <Zauberfisch> site-foo.com which is joomla
218: [03:22:59] <Zauberfisch> site-bar.com which is silverstripe?
219: [03:23:07] <klord> yes
220: [03:23:25] <Zauberfisch> and site-bar.com redirects to site-foo.com for some reason?
221: [03:24:18] <klord> no they are separate. it is just that the ss site keeps looping when try to browse to the home page all other pages are ok
222: [03:24:29] <Zauberfisch> ok
223: [03:24:48] <Zauberfisch> could you tell us again which URLs it loops exactly?
224: [03:24:57] <Zauberfisch> site-bar.com and site-bar.com/home ?
225: [03:25:19] <klord> yes
226: [03:25:24] <Zauberfisch> hmmm
227: [03:25:35] <Zauberfisch> is it a plain install of silverstripe? no custom code?
228: [03:25:40] <Zauberfisch> what ss version?
229: [03:25:59] <klord> no there is custom code. it is version 3.1.4
230: [03:26:34] <klord> the site worked fine locally using MAMP
231: [03:26:40] <Zauberfisch> have you tried it with a default setup?
232: [03:26:49] <Zauberfisch> to ensure its not your code causing the trouble
233: [03:27:08] <Zauberfisch> also, is the site in dev or live mode online?
234: [03:27:20] <klord> dev
235: [03:27:52] <Zauberfisch> have you set Director::forceWWW() somewhere? (eg in _config.php)
236: [03:28:05] <klord> no
237: [03:30:46] <Zauberfisch> do you have a method "index()" in your Page_Controller?
238: [03:31:21] <Stomach> or index.php in the paths to the other urls?
239: [03:31:47] <Zauberfisch> nono, I am not talking about a file
240: [03:32:03] <Zauberfisch> method in Page_Controller
241: [03:32:14] <klord> no the method index is not in the page.php file
242: [03:32:19] <Zauberfisch> ok
243: [03:32:22] <Stomach> yes, but it also sounds like it could be that mod_rewrite is bugging out
244: [03:32:51] <klord> there is an index.php in both the public_html and one in the ss site directory
245: [03:33:41] <Stomach> so the site isn't in public_html? rather public_html/site/ ? does your virtual host point to public_html or public_html/site
246: [03:34:37] <klord> yes the site is in public_html/site and the virtual host points to public_html/site
247: [03:35:03] <Zauberfisch> I am running out of ideas, I guess you just have to do a lot of debuging
248: [03:35:14] <Stomach> can you link us to the site?
249: [03:35:23] <Stomach> or is it on a staging zone somewhere
250: [03:37:20] <klord> you can see it with the following ip but will have to add the folder name. When I view it I have modified my hosts file so that I can use the url. THis is the ip http://67.210.99.29/nea/products
251: [03:38:10] <klord> nea is the site folder name
252: [03:38:13] <Zauberfisch> I thought you had a domain and not a sub folder?
253: [03:39:10] <klord> that is how the host provider refers to it I didn't know if it was a common term
254: [03:39:36] <Zauberfisch> doesn't matter what the termn is
255: [03:39:44] <Zauberfisch> but I asked if its foo.com or foo.com/folder
256: [03:39:49] <Zauberfisch> you said its just foo.com
257: [03:39:53] <Zauberfisch> but http://67.210.99.29/nea/ has a folder at the end
258: [03:40:31] <Zauberfisch> then it probably is a mod rewrite issue
259: [03:41:15] <klord> yes. that is how I access it with my hosts file modified.
260: [03:41:38] <Zauberfisch> ah, now I see
261: [03:41:58] <Zauberfisch> so you do have a domain, just only locally
262: [03:42:01] <Zauberfisch> ok
263: [03:42:19] <Zauberfisch> well, anyway, to see if its a rewrite issue, could you add the green line to your htaccess file: http://paste2.org/Ed1IUAdp
264: [03:42:35] <Zauberfisch> or actually
265: [03:42:41] <Zauberfisch> try just "RewriteBase /" first
266: [03:42:52] <klord> once the dns is changed the site will be accessed neaelectronics.com. There is currently a live site that will be replaced by this new site
267: [03:44:09] <klord> should i add that to the htaccess file in the /site dir or the one in public_html?
268: [03:45:10] <Stomach> it should be in the site dir is thats where the virtual host will end up pointing
269: [03:46:01] <klord> yes thats where the virtual host is pointing. does there need to be a htaccess file in the public_html?
270: [03:46:08] <Zauberfisch> no
271: [03:47:16] * CodeTrap quit (Ping timeout: 265 seconds)
272: [03:47:39] * Sticks has joined #silverstripe
273: [03:47:41] <klord> ok I will give that a try. I appreciate all your help. This has been driving me crazy
274: [03:48:12] * CodeTrap has joined #silverstripe
275: [03:50:09] <Sticks> Hi guys, how can I get a list of the SiteConfigs for all Subsites? $SiteConfigs = Subsite::get_from_all_subsites('SiteConfig'); returns only 1 result (should be 5).
276: [03:51:16] <Zauberfisch> Sticks: perhaps disable the filter and then run SiteConfig::get() ?
277: [03:51:53] <klord> still get The page isn't redirecting properly when go to the homepage
278: [03:52:27] <Sticks> Zauberfisch, I'll give that a shot. I didn't try it after seeing this issue: https://github.com/silverstripe/silverstripe-subsites/issues/106
279: [03:53:20] <Zauberfisch> $oldMode = Subsite::$disable_subsite_filter;
280: [03:53:24] <Zauberfisch> Subsite::$disable_subsite_filter = true;
281: [03:53:49] <Zauberfisch> $allConfigs = ArrayList::create(SiteConfig::get()->toArray());
282: [03:53:54] <Zauberfisch> Subsite::$disable_subsite_filter = $oldMode;
283: [03:54:22] <ss23> p.s. I like spronk's avatar on github
284: [03:55:17] <Zauberfisch> link
285: [03:57:33] <Sticks> Cheers Zauberfisch, I'll give that a crack.
286: [03:59:08] <ss23> Zauberfisch: https://github.com/silverstripe/silverstripe-subsites/issues/106
287: [03:59:13] <ss23> it has his avatar there
288: [03:59:15] <ss23> it's not nice blown u
289: [03:59:16] <ss23> up
290: [04:01:08] * klord quit (Quit: Page closed)
291: [04:08:22] <Sticks> Thanks Zauberfisch, that seems to have worked. That ->toArray() looks to be the key part I was missing.
292: [04:11:49] <Zauberfisch> yeah, the problem is that with ss3 the ::get() stuff doesn't actually perform the query yet
293: [04:12:07] <Zauberfisch> the query only happens when you actually start to fetch data
294: [04:12:25] <Zauberfisch> so you need to force it to fetch all data right away, which can be done with ->toArray()
295: [04:17:43] <Sticks> Ah, nice. That's good to know.
296: [04:21:08] <ss23> I like how everyone sets up away emails over the easter break, then proceeds to keep checking their email and emailing people back etc anyway
297: [04:25:48] <Ryan-Toast> is there a function like onCreate() for DataObjects?
298: [04:26:04] <Stomach> onAfterWrite, onBeforeWrite
299: [04:26:15] <ss23> If you're doing a write an an ID hasn't been set, it's being created, Ryan-Toast
300: [04:26:16] <Stomach> if ($this->ID) // is new
301: [04:26:18] <ss23> Or something
302: [04:26:27] <Stomach> !$this->ID rather
303: [04:26:43] <Ryan-Toast> Stomach: so an onAfterWrite() then check for the id?
304: [04:26:53] <Stomach> onbeforewrite
305: [04:26:54] <Zauberfisch> $this->isInDB()
306: [04:27:00] <Stomach> onAfterWrite will always have an ID
307: [04:27:07] <Ryan-Toast> Ah, coolio.
308: [04:27:13] <Ryan-Toast> Chur guys
309: [04:32:05] <lrniningine> can i go filter with not equals? i just want to nuke the current item from the filter set
310: [04:32:31] <lrniningine> "ID" => "!= " . $ID ? or so
311: [04:32:51] <lrniningine> or should i use exclude before filter
312: [04:33:00] <lrniningine> i guess after to reduce the size
313: [04:33:01] <Zauberfisch> yes
314: [04:33:09] <Zauberfisch> you can chain those calls anyway
315: [04:33:34] <lrniningine> yeah there we go
316: [04:33:36] <lrniningine> cheers
317: [04:34:02] <Zauberfisch> Page::get()->filter('Name:StartsWith', 'Foo')->exclude('ID', array(1,5))->sort('Title','DESC')->filter('Foo:GreaterThan', 42);
318: [04:34:51] <Zauberfisch> as this just prepairs a data query for you, you can use any order and can call as much filters as you want
319: [04:59:02] * Ryan-Toast has left #silverstripe
320: [05:14:02] * UncleCheese_ quit (Quit: UncleCheese_)
321: [05:15:04] * UncleCheese has joined #silverstripe
322: [05:17:59] * Shrike_Finland has joined #silverstripe
323: [05:20:18] * an_Eskimo quit (Ping timeout: 240 seconds)
324: [05:24:33] * violetina has joined #silverstripe
325: [05:25:13] <Colin[pi]> lol, the contrast between the headline and the photo backdrop is impressive: http://i.imgur.com/eiVj7Uw.png
326: [05:25:40] * UncleCheese quit (Quit: UncleCheese)
327: [05:33:48] * Danae quit (Ping timeout: 240 seconds)
328: [05:38:30] * Shrike_Finland quit (Quit: Leaving.)
329: [05:39:45] * travis-ci has joined #silverstripe
330: [05:39:45] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2377 (3.1 - 346990c : Damian Mooyman): The build passed.
331: [05:39:45] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/fc9864eed383...346990c87794
332: [05:39:45] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/23648691
333: [05:39:45] * travis-ci has left #silverstripe
334: [05:41:22] * jedateach quit (Quit: jedateach)
335: [05:54:21] * violetina quit (Remote host closed the connection)
336: [05:56:23] * Shrike_Finland has joined #silverstripe
337: [06:02:56] * bwaah_ has joined #silverstripe
338: [06:05:09] * pippy_ has joined #silverstripe
339: [06:06:55] * anselmdk has joined #silverstripe
340: [06:07:35] * pippy quit (Ping timeout: 252 seconds)
341: [06:11:45] * jedateach has joined #silverstripe
342: [06:33:13] <jordanmk> hey guys
343: [06:33:22] <jordanmk> how do i use the GridFieldExportButton?
344: [06:33:28] <jordanmk> not sure how to add it to my gridfield
345: [06:36:01] <Bollig|DesignCty> anyone else have an issue where 3.1 won’t let you upload directly into the assets folder but it will in the parent folders?
346: [06:36:13] <Bollig|DesignCty> sorry, it will in the *children* folders...
347: [06:40:05] * Shrike_Finland quit (Quit: Leaving.)
348: [06:43:58] * Shrike_Finland has joined #silverstripe
349: [06:45:03] <jordanmk> can you guys see what's wrong with this gridfield export button? http://pastebin.com/AEH705tn
350: [06:45:22] <jordanmk> the exported CSV has all of the right headings, but none of the actual data for each of the items in the gridfield...
351: [06:47:09] <jordanmk> and if i don't do the setExportColumns, the CSV has only FirstName and nothing else
352: [06:48:12] * pazuur has joined #silverstripe
353: [06:48:58] <Zauberfisch> jordanmk: my guess is that the export button is stupid and needs an array of key value paris
354: [06:49:01] <Zauberfisch> try
355: [06:49:10] <Zauberfisch> 'FirstName' => 'FirstName',
356: [06:49:11] <Zauberfisch> ...
357: [06:49:25] <jordanmk> i'll give that a try
358: [06:50:56] <jordanmk> yep, that worked lol. cheers
359: [06:52:33] * willbarker has joined #silverstripe
360: [06:53:18] * qlex has joined #silverstripe
361: [06:55:04] <willbarker> hello everyone. when directing a user to sign up to take payments using stripe connect, the only country not available is Australia, which is the only country we want them to choose. why is that?
362: [06:57:14] * pazuur quit (Quit: Page closed)
363: [07:01:53] * andylockran has joined #silverstripe
364: [07:06:15] * babak has joined #silverstripe
365: [07:07:22] * danfo has joined #silverstripe
366: [07:07:42] * Shrike_Finland quit (Quit: Leaving.)
367: [07:24:06] * willbarker quit (Quit: willbarker)
368: [07:31:26] * Sticks quit (Read error: Connection reset by peer)
369: [07:44:11] * UncleCheese has joined #silverstripe
370: [07:51:52] * Shrike_Finland has joined #silverstripe
371: [08:00:32] * jedateach quit (Quit: jedateach)
372: [08:03:08] * kinglozzer has joined #silverstripe
373: [08:07:37] * kinglozzer quit (Client Quit)
374: [08:10:37] * stnvh has joined #silverstripe
375: [08:12:22] * Bollig|DesignCty quit (Ping timeout: 276 seconds)
376: [08:20:23] * Py^k has joined #silverstripe
377: [08:48:39] * Shrike_Finland quit (Quit: Leaving.)
378: [08:48:49] * r3v3rb has joined #silverstripe
379: [08:49:21] <r3v3rb> morning, is there any documentation about how to regist a shortcode in the config.yml file?
380: [08:49:58] <r3v3rb> lol, found simon_w response in the forum "You can't"
381: [08:50:04] <r3v3rb> that'll be that then
382: [08:50:10] * micmania1 has joined #silverstripe
383: [08:54:48] * bwaah_ quit (Ping timeout: 240 seconds)
384: [08:58:37] * jedateach has joined #silverstripe
385: [09:05:38] <Colin[pi]> hai r3v3rb
386: [09:08:35] <Py^k> r3v3rb: if it's a method, you can't call from yml.
387: [09:08:52] <Py^k> if it's injectible and takes primitives as a construction, you might be able to.
388: [09:09:10] <Py^k> rule of thumb.
389: [09:09:11] * bwaah_ has joined #silverstripe
390: [09:09:37] <bwaah_> Parse error: syntax error, unexpected 'new' (T_NEW), expecting ')' in C:\xampp\htdocs\silverstripe\simplify\code\SimplifyDataObjectDecorator.php on line 54
391: [09:10:23] <bwaah_> i was trying to add a new permision to block a given user for publishing pages
392: [09:10:31] * Shrike_Finland has joined #silverstripe
393: [09:10:38] * jedateach quit (Quit: jedateach)
394: [09:11:32] <bwaah_> any one who has eva encountered this error...im using the simpilfy module to grant and deny permissions
395: [09:12:25] <bwaah_> my line 54 consists of two lines new HeaderField('SimplifyHidePublish',_t('Smplify.HIDEPUBLISHHEADER', "Simplify - Hide Publish button from these users"), 2),...and new TreeMultiselectField("SimplifyHidePublishGroups", 'Hide Publish Groups')
396: [09:15:38] * r3v3rb quit (Quit: My iMac has gone to sleep. ZZZzzz…)
397: [09:18:22] * Tanger quit (Quit: Tanger)
398: [09:18:57] * r3v3rb has joined #silverstripe
399: [09:20:08] <Py^k> bwaah_: that's a php error, not a silverstripe one. And it's telling you exactly what is wrong.
400: [09:28:35] * r3v3rb quit (Quit: My iMac has gone to sleep. ZZZzzz…)
401: [09:29:33] * r3v3rb has joined #silverstripe
402: [09:30:50] <Py^k> so this is bullshit, cannot send to channel #git :<
403: [09:30:53] <r3v3rb> Py^k Colin[pi] hi all
404: [09:30:59] <Py^k> how the hell do I get help?
405: [09:31:13] <Py^k> hi r3v3rb
406: [09:31:22] <r3v3rb> call the men in white suits Py^k ;)
407: [09:31:36] <r3v3rb> I have often said you need help...
408: [09:32:13] <r3v3rb> bbiab, got to switch of electric to move a switch in the 'new' kitchen - fed up with the shitty electrician's the installers use!
409: [09:32:32] <r3v3rb> why am i paying them over £3.5k I do wonder
410: [09:33:10] <Py^k> r3v3rb: story of this country tbh.
411: [09:33:46] <Py^k> Most folk don't do their job properly it seems.
412: [09:33:59] <Py^k> or just halfarse it
413: [09:34:24] <Py^k> I've been waiting to get my fridge fixed for over a month now.
414: [09:34:40] <Py^k> They ordered parts without investigating what the issue was, then after installation it's still broken.
415: [09:35:12] <Py^k> so now gotta wait for longer before I can refrigerate perishable items.
416: [09:35:37] <Py^k> and it's coming into summer (was fine in winter, kitchen in constant state of 4 deg C or less)
417: [09:36:35] <Py^k> so my walk in fridge is getting too warm, and my refrigerator is still wildly too cold.
418: [09:38:35] <r3v3rb> Py^k its a bunch of arse it truly is
419: [09:39:44] * r3v3rb quit (Quit: Textual IRC Client: www.textualapp.com)
420: [09:41:55] <micmania1> Py^k: how was sendgrid last week?
421: [09:44:08] * qlex quit (Quit: Leaving.)
422: [09:53:27] <Py^k> micmania1: ha, pretty good.
423: [09:53:34] * chr1stopher has joined #silverstripe
424: [09:53:46] <Py^k> had a couple of guniess, then left before the last train did.
425: [09:54:02] <Py^k> got stopped half way home because some twats playing chicken further up the line.
426: [09:54:28] <micmania1> Was Chris able to prevent himself from arguing with php women? or any other women?
427: [09:54:36] <Py^k> Train companies should make it policy to only ever employ sociopaths as train drivers.
428: [09:55:03] <Py^k> micmania1: hahahah, yeah there weren't many women there. He refrained from most sexist comments.
429: [09:55:20] <micmania1> haha that's not like him
430: [09:55:29] * qlex has joined #silverstripe
431: [09:55:29] <chr1stopher> good morning, is it possible to get only the clean text of a HTMLText field in a template?
432: [09:55:35] <Py^k> I say refrained as in didn't go well off on a rant, hahaha
433: [09:55:52] <Py^k> chr1stopher: define 'clean text'?
434: [09:55:55] <micmania1> chr1stopher: what do you mean by 'clean'?
435: [09:56:01] <Zauberfisch> chr1stopher: yes. $HTMLText.NoHTML
436: [09:56:20] <Py^k> ah yeh, that makes sense I guess.
437: [09:56:22] <Zauberfisch> this is the equivalent of phps $text = strip_tags($html);
438: [09:57:14] * qwerzxcv has joined #silverstripe
439: [09:57:20] * qwerzxcv is now known as Pyromanik
440: [09:57:32] <chr1stopher> Zauberfisch: thank you ... getting help and the perfect anwser within 30 seconds ...
441: [09:58:25] * Pyromanik has left #silverstripe
442: [09:58:35] <chr1stopher> is it possible to use all these things in templates? http://api.silverstripe.org/3.1/class-HTMLText.html
443: [09:58:47] <chr1stopher> thought i need to search on a special page for template stuff
444: [09:58:51] <Zauberfisch> all those that are public. yes
445: [09:59:10] <chr1stopher> maybe i should start to learn php ...
446: [09:59:15] <Zauberfisch> also the methods that are inherited from the parent classes (Text, StringField, ...)
447: [09:59:18] <chr1stopher> would make it a lot easier ^^
448: [09:59:29] <Zauberfisch> chr1stopher: oh yes you should if you build websites with silverstripe)
449: [09:59:34] <chr1stopher> ;D
450: [10:00:05] <danfo> classes in typography.css should appear in the tinymce Styles dropdown, right?
451: [10:03:51] <Py^k> Getting "cannot send to channel"? /msg gitinfo .voice | I bet you thought this was a joke. Nope, git-testa.
452: [10:03:59] <Py^k> lawlawl^
453: [10:04:16] <Py^k> danfo: depends. but generally, yes.
454: [10:04:32] <Py^k> been a long time since I've fiddled with that kinda trick though.
455: [10:05:18] <danfo> cool, well I just touched editor.css and it sprung to life :D woohoo
456: [10:05:30] <danfo> thx
457: [10:06:00] <Py^k> oh, yeh. historically editor.css has had simply @import typography.css or whatever the command is
458: [10:06:20] <Py^k> that's the one that gets included.
459: [10:07:08] <Py^k> although I think there might be some php or config setting that you can use to set editor.css to be something else (like typography directly)
460: [10:07:18] <Py^k> idk *shrug*
461: [10:07:26] <danfo> :D working, happy dan
462: [10:07:37] <Py^k> ggdan
463: [10:08:16] <danfo> I think I ran into that… actually may’ve been changing the class name from ‘typography’, which sort of makes sense to do but happy to stay standard
464: [10:08:32] <danfo> typy
465: [10:08:44] <Py^k> yeah, I find standard is actually a nice clean abstraction between layout and content.
466: [10:09:05] <Py^k> makes sense to me now, I probably wouldn't dev a site without it :P
467: [10:09:15] <Py^k> even if it was without ss
468: [10:10:08] <danfo> now why on earth would selecting a style when no selection go out of its way to create a <span> to surround the current word… why not apply it to the first parent…
469: [10:10:17] <danfo> oh boy… this rabbit hole probably goes deep
470: [10:12:42] <danfo> the project I’m working on had <div class=“typography”> replaced with <div id=“content”>… my solution… <div id=“content” class=“typography”> :P
471: [10:12:52] * kinglozzer has joined #silverstripe
472: [10:12:57] <Py^k> [11:01] <Pyromanik> so I have an issue with a repo and am looking for help and/or advice. I have a 'blessed repository' setup where the live environment pulls from, and dev environments push to (and pull from). However my live environment has issues in that it contains files from my dev env which can only really have come from a pull, but they're maked as 'modified' or 'untracked'. Almost as if someone has pulled to another dev env
473: [10:13:14] <Py^k> [11:02] <Pyromanik> however there are only 2 of us working on this project, and the other guy hasn't done anything so crazy as that so far as he recalls. [11:02] <Pyromanik> and I certainly haven't.
474: [10:13:21] <Py^k> halp?
475: [10:13:33] <Py^k> kinglozzer: my man, help a brother out with git issues.
476: [10:14:17] <kinglozzer> Uh, never had files appear like that before D: did someone checkout the wrong branch or something?
477: [10:14:38] <Py^k> kinglozzer: but then there'd be another branch!
478: [10:14:44] <Py^k> and they wouldn't show up as untracked
479: [10:15:32] <kinglozzer> Hrm yeah
480: [10:16:37] <kinglozzer> You've got me stumped, someone must've pulled them there O.o
481: [10:16:51] <Py^k> yeah like I say, it's like a copy
482: [10:17:00] <Py^k> someone did in their own dev env
483: [10:17:02] <Py^k> git pull
484: [10:17:10] <Py^k> cp * /our/live/env
485: [10:17:55] <danfo> your working tree has teleported itself to the server
486: [10:18:03] <danfo> haha
487: [10:18:34] <kinglozzer> I'd put it down to someone goofed and just delete them and forget it :P
488: [10:18:44] <kinglozzer> Unless they reappear
489: [10:18:44] <Py^k> kinglozzer: live env.
490: [10:18:51] <kinglozzer> Py^k: No access?
491: [10:18:51] <Py^k> and they're updated files.
492: [10:19:04] <Py^k> as in, what SHOULD be there, if it were a git pull scenario.
493: [10:19:18] <Py^k> thus updated files shouldn't be deleted.
494: [10:19:47] <micmania1> Py^k: git diff?
495: [10:19:57] <Py^k> micmania1: my up to date changes are shown.
496: [10:20:09] <danfo> I have the same setup, going to change to the live environment doing reset/checkout -f rather than pull.. have made assets a submodule so everything should be safe.. should help me avoid any of this sort of issue… keep everything repeatable
497: [10:20:16] <Py^k> well, up to date from the state of the 'blessed' (master) repo.
498: [10:20:55] <Py^k> danfo: well the real answer here is to work on separate branches 100% of the time, merging where necessary.
499: [10:21:03] <Py^k> but I don't :<
500: [10:21:08] <kinglozzer> Oh you Py^k
501: [10:21:10] <danfo> hehe
502: [10:21:56] <Py^k> the git log shows only commits from before where the code in the working tree is at.
503: [10:22:00] <danfo> that is better, but probably wouldn’t help you if your dev non-staged files appear on the server
504: [10:22:16] <Py^k> I wonder if it's some kind of detached head issue where the files weren't cleaned up on the checkout or something
505: [10:27:28] <kinglozzer> Py^k: git reset --hard <commit id> ?
506: [10:30:45] <chr1stopher> Zauberfisch: thank you very much again. leaving for lunch and changing to windows
507: [10:30:48] <chr1stopher> byebye
508: [10:31:11] * chr1stopher has left #silverstripe
509: [10:34:02] <Py^k> kinglozzer: that'd mean that there's an up to date commit in the history
510: [10:36:08] * qlex says hi
511: [10:37:09] <qlex> when i create a new page in cms (standard page type), WYSIWYG editor already shows up the default text of that page - in english even tough i have pl_PL locale set up...where do i change the text and why does it appear in english, if SiteTree.DEFAULTABOUTTITLE value in polish is set in pl_PL.yml in code/lang ?
512: [10:37:16] <qlex> *cms/lang that is
513: [10:37:29] <kinglozzer> Py^k: So your live env is behind the latest 'stable' commit you want?
514: [10:38:17] <Py^k> yes
515: [10:39:06] <Py^k> but contains the files of it.
516: [10:39:25] <Py^k> how much confuse? ALL OF THE CONFUSE.
517: [10:39:31] <kinglozzer> And you can't just git reset --hard origin branch-name ?
518: [10:40:45] <kinglozzer> Yeah, very confuse :P
519: [10:44:24] <kinglozzer> Failing that, could you locally create a new branch at your desired commit then check that out on the live env?
520: [10:45:24] <Py^k> a chap in #git recommended [11:23] <Vampire0> Pyromanik, What the issue is, is hard to guess, to fix it, well. I guess "git clean -fd && git co ." should clean up your prod worktree
521: [10:45:59] <Py^k> most of the files are mine, and non-critical. however a couple aren't, so I've gotta check those first to ensure they're not changed beyond the scope of the repo head.
522: [10:46:23] <danfo> git stash and see if anyone has an issue
523: [10:46:24] <danfo> :P
524: [10:46:31] <Py^k> ha
525: [10:46:49] <Py^k> well... about 30 people in the next room actively using it all day, so perhaps not.
526: [10:47:20] <danfo> haha
527: [10:47:49] <danfo> yuck
528: [10:48:09] <Py^k> - <th style="width: 78px;">Order#:</th>
529: [10:48:13] <Py^k> + <th style="width: 78px;">Order#:</th>
530: [10:48:17] <Py^k> oh fuck you git diff.
531: [10:48:36] <Py^k> the hell.
532: [10:49:02] <Py^k> probably something stupid like -\n + \r\n
533: [10:54:00] * UncleCheese quit (Quit: UncleCheese)
534: [10:56:48] * bwaah_ quit (Ping timeout: 240 seconds)
535: [10:59:50] <micmania1> What should I have for dinner?
536: [11:00:01] <NeckCutter> pizza
537: [11:00:28] <micmania1> ooooo!
538: [11:00:37] <NeckCutter> bbq chicken pizza
539: [11:00:45] <micmania1> I don't even think I can get good pizza here :(
540: [11:01:03] <NeckCutter> where is here
541: [11:01:11] <micmania1> Gateshead.
542: [11:01:23] <NeckCutter> where is gateshead
543: [11:01:28] <micmania1> There's a tesco, subway (had yesterday) and fish and chips lol
544: [11:01:35] <NeckCutter> oh england
545: [11:01:39] <micmania1> near the Tyne Bridge
546: [11:01:52] <NeckCutter> im in melbourne australia
547: [11:02:00] <micmania1> ah, nice
548: [11:02:13] <micmania1> isn't it like midnight?
549: [11:02:34] <NeckCutter> 2100
550: [11:02:48] <NeckCutter> gmt+10
551: [11:06:58] <danfo> haha Py^k… ignore whitespace?
552: [11:08:00] <danfo> micmania1: pizza from Tesco :P
553: [11:10:24] <Py^k> oh you're talking lunch micmania1
554: [11:10:25] <Py^k> right
555: [11:10:42] <Py^k> sandwich and a milkshake.
556: [11:11:31] <Py^k> danfo: yeah, a better diff app shows me the removal of about 27 spaces on the end of the line.
557: [11:12:03] <danfo> haha
558: [11:20:35] * EasyCo quit (Quit: Connection closed for inactivity)
559: [11:23:00] <firefox2kx> In Class page .. can I get a Page by Pagetype?
560: [11:23:36] <Py^k> yes, of course
561: [11:23:36] <Py^k> #
562: [11:24:56] <firefox2kx> so there would be some pages for e.g. of type Product. I'd want to get the parent first and then its childs..
563: [11:25:25] <Py^k> read tutorial 2.
564: [11:25:45] <firefox2kx> ok, so where is it?
565: [11:26:06] <Py^k> on the internet
566: [11:26:14] <firefox2kx> have it thanks ^^
567: [11:26:25] <Py^k> I knew it wasn't that hard ;)
568: [11:27:32] <firefox2kx> I've never knew that google was my friend xD
569: [11:28:04] <Py^k> they're in the title.
570: [11:28:52] * cloph_away is now known as cloph
571: [11:28:53] <Py^k> docs.silverstripe.org, api.silverstripe.org, etc.
572: [11:59:52] * camel_case has joined #silverstripe
573: [12:11:26] * UndefinedOffset has joined #silverstripe
574: [12:24:02] <Py^k> micmania1: so what the fuck is the deal with 'minimum spend' limit on card usage?
575: [12:24:06] <Py^k> so bollocks.
576: [12:24:19] <Colin[pi]> fuck banks
577: [12:24:26] <Py^k> I assume it's because the merchants get charged a fee for using the terminal or something stupid.
578: [12:24:39] <micmania1> I have no idea
579: [12:24:40] <Py^k> fuck'n backwards man. I mean, it's common for credit cards.
580: [12:24:50] <Py^k> in NZ about fuck'n everything is done with debit cards.
581: [12:25:08] <Py^k> it's reasonably common for a retailer to not accept credit cards though.
582: [12:25:24] <Py^k> the machines are different, you can access up to about 3 different accounts on a single card.
583: [12:25:57] <Colin[pi]> Py^k: u reckon it'd be ok for me to use a mastercard travel passport in NZ?
584: [12:26:08] <Py^k> you choose your account before pin number. Lots of places have credit blocked out because of extra charges I guess, but EFT-POS is no issue.
585: [12:26:29] <Py^k> Colin[pi]: yeah, you mean a 'money passport' or whatever the fuck they call them?
586: [12:26:56] <Colin[pi]> Py^k: yeah that's it, I can get visa or mastercard.. no real idea if that has much difference in NZ
587: [12:27:05] <Py^k> should be fine. Or you could just use a normal credit card and load up on dosh at an ATM like I do, or like you pretty much HAVE to in this country.
588: [12:27:09] <Colin[pi]> basically load it with cash before I go
589: [12:27:17] <Py^k> Colin[pi]: yeh, it'll be fine.
590: [12:27:22] <Colin[pi]> cool
591: [12:27:32] <Py^k> kinda defeat the point of them if it wasn't.
592: [12:28:02] <Colin[pi]> well I had some issues in brazil with certain cards.. like the diff between visa and visa plus or some shit
593: [12:35:47] <Py^k> yeah, they harp on about that shit here too.
594: [12:36:09] <Py^k> visa vs visa debit, where visa debit is supposed to be 100% compatible so it's 100% irrelevant.
595: [12:36:51] <Py^k> although the money isn't insured, because it's your own. So if it gets caught in a skimming scam or something you're out of pocket.
596: [12:37:13] <danfo> Didn’t know that… screw that. Time to get me a credit card.
597: [12:38:21] <kinglozzer> I only have a credit card as it's an easy way to boost your credit rating (when you're my age anyway)
598: [12:38:34] <kinglozzer> Only use it for petrol though
599: [12:38:47] <Colin[pi]> credit cards are super useful... if you pay them off quickly
600: [12:38:51] <danfo> yeah… being self-employed too, that would be a good idea.
601: [12:39:19] <danfo> I don’t intend to pay 1c of credit card interest in my life… screw those rates
602: [12:40:08] <danfo> how would you go able making changes in /framework/javascript/HtmlEditorField.js… it won’t pick up a /mysite/javascript/HtmlEditorField.js or anything hey?
603: [12:41:05] <kinglozzer> Yeah I've never paid late, fuck that :P
604: [12:44:11] * ocm has joined #silverstripe
605: [12:44:27] * deschebbs has joined #silverstripe
606: [12:44:38] <danfo> go able? go about* !
607: [12:45:07] <Py^k> danfo: the credit card issue is more about charges and stuff because it's technically a load card.
608: [12:45:23] <Py^k> interest, ability to accidentally overspend, etc.
609: [12:46:00] <Py^k> debit card is more like a normal eft-pos card, requires a pin and all, etc. But with the added benefit that you can use the numbers online to order things.
610: [12:46:29] <danfo> yep
611: [12:46:39] <Py^k> I muchly dislike borrowing money, thus have never had a credit card.
612: [12:47:06] <Py^k> I used to get other people to order things for me, then transfer them money straight afterwards when they knew the exact amount they were out of pocket.
613: [12:47:16] <Py^k> then, someone invented debit cards and it's awesome.
614: [12:47:30] <Py^k> but... fuck steam sales :<
615: [12:49:24] <danfo> :D
616: [12:49:54] <Colin[pi]> Py^k: ugh steam sales... "I'll never play it.... but it's SO cheap."
617: [12:50:52] <danfo> looks like some visa debit’s have Zero Liability Protection… might need to look into that anyway. perhaps should’ve before leaving aus to travel for a couple of years, whoops.
618: [12:53:24] <danfo> only having a mac helps with steam sales, haha
619: [12:53:53] <danfo> feel like having a game… hmm… league of legends… :P
620: [12:54:12] <danfo> anyway OT! what would you do to stay out of /framework and /cms but edit /framework/javascript/HtmlEditorField.js
621: [12:54:43] * violetina has joined #silverstripe
622: [12:56:46] <danfo> subclass to change the file path in LeftAndMain init, HtmlEditorField_Toolbar construct and ReportAdmin init?
623: [12:57:54] <micmania1> danfo: you just trying to block the javascript file?
624: [12:58:13] <danfo> want to make changes
625: [12:58:26] <danfo> in the javascript file
626: [13:00:20] <danfo> or I could fork silverstripe-framework I guess. seems a little silly just to add some link style customisation
627: [13:03:01] <micmania1> copy+paste the file and use Requirements::block() to block the original
628: [13:03:57] <micmania1> Or you could use entwine if possible. You can use more specific selectors to overwrite functionality.
629: [13:07:36] <firefox2kx> On CMS in pages main tab, there is an accordion-header that includes meta fields. How can such a accordion slider be replicated for elements on another tab?
630: [13:09:04] * deschebbs quit (Quit: User terminated!)
631: [13:09:29] <danfo> micmania1: Requirements::block() won’t be able to block it once it has run through Requirements::combine_files?
632: [13:09:53] * Colin[pi] quit (Ping timeout: 252 seconds)
633: [13:11:34] * Shrike_Finland quit (Quit: Leaving.)
634: [13:15:13] <danfo> entwine looks interesting, so I would just need to include my changes with LeftAndMain.extra_requirements_javascript… hmm! thanks micmania1
635: [13:19:06] * micmania1 quit (Read error: Connection reset by peer)
636: [13:19:31] * micmania1 has joined #silverstripe
637: [13:21:50] * ARNHOE has joined #silverstripe
638: [13:27:37] * qlex has left #silverstripe
639: [13:28:34] <Zauberfisch> danfo: yeah, entwine does look interesting
640: [13:28:56] <Zauberfisch> danfo: but you will curse the day you first saw it when you have to deal with namespaces in the CMS
641: [13:29:03] <Py^k> danfo: you can block from combine, it should skip a prerequisite if it's in the block list when doing the combine.
642: [13:29:13] <Py^k> will need a flush though I think.
643: [13:29:19] <danfo> haha :)
644: [13:29:26] <Py^k> not entirely sure tbh, I've not really made as much use of combine as I should have.
645: [13:29:41] <danfo> yeah, wow that would be cool if it does that
646: [13:30:13] <danfo> might as well try
647: [13:34:15] * catcher has joined #silverstripe
648: [13:39:17] * anselmdk quit (Quit: anselmdk)
649: [13:44:31] * circ-user-4djyf has joined #silverstripe
650: [13:45:10] * circ-user-4djyf quit (Remote host closed the connection)
651: [13:45:34] * circ-user-4IoWz has joined #silverstripe
652: [13:45:43] * circ-user-4IoWz quit (Client Quit)
653: [13:47:33] <danfo> Py^k: yep looks like it does… live env so it should be combined, but no HtmlEditorField.js to be seen :D
654: [13:47:40] * svandragt has joined #silverstripe
655: [13:48:34] * stefanovic72 has joined #silverstripe
656: [13:49:00] <svandragt> did something change in the last few releases regarding getCMSValidator method / RequiredFields object? I used to check for required fields automatically with code like public function getCMSValidator() {return new RequiredFields('StartDate', 'EndDate', 'Year'); } but now all entry is always accepted.
657: [13:50:31] <micmania1> svandragt: I haven't seen anything & it shouldn't have. What version are you using?
658: [13:50:50] * stnvh quit ()
659: [13:50:57] <svandragt> micmania1: 3.0.9
660: [13:51:34] <micmania1> I don't think so. It would constitute an API change which would mean it would have to go into master (3.2)
661: [13:52:04] <svandragt> micmania1: crazy content authors trying to force functionality by creating empty records
662: [13:52:19] <micmania1> haha
663: [13:54:19] <svandragt> micmania1: thanks *unfolds the case of debug tools* guess i'll have to poke around a bit
664: [13:54:49] <svandragt> i guess unfolding works better with a satchel or some kind of cloth holder :P
665: [14:01:07] <stefanovic72> Hello, i just started working with silverstripe. I'm trying to build my first module in the CMS now. So, a newbie question. I hope someone can help me on the right track.
666: [14:01:18] <stefanovic72> I'm building a league manager.
667: [14:01:34] <stefanovic72> A league can have one or more stages (for instance: poule stage, quarter final, semi final, final) A stage can have a type: poule or knockout
668: [14:01:46] <stefanovic72> In case the type of the stage is equal to 'poule' a stage has one or more poules. A poule itself has teams and one or more matches.
669: [14:01:56] <stefanovic72> In case the type of the stage is equal to 'knockout' a stage has one or more matches. I managed to build the form for adding the league and the stage. When I add a stage I have three tabs, a main tab with the fields: 'stage name' and 'type' (dropdownfield), a poules tab and a matches tab.
670: [14:02:05] <stefanovic72> What I want: When I change the value in the type field (dropdown) to the value poule, the tab matches must disappear. When I change the value to knockout the tab poules must disappear. Any ideas how to do this?
671: [14:02:39] <Py^k> stefanovic72: you might be interested in Tutorial #5
672: [14:02:47] <Py^k> doc.silverstripe.org
673: [14:03:08] <Py^k> or docs.silverstripe.org, I don't particularly remember
674: [14:04:24] <Py^k> stefanovic72: to make things disappear, generally one must save.
675: [14:04:55] <Py^k> or you'll need to manage CMS fields live with javascript, in which case you'll need to learn about Entwine (jquery plugin)
676: [14:05:07] <Py^k> so it's possible, but can be tricky.
677: [14:06:20] <stefanovic72> Thanks Py^k, yes I thought so. I probably have to submit first before the tab can disappear.
678: [14:06:43] <Py^k> Just hit the save button, generally that makes the record form refresh.
679: [14:06:56] <Py^k> though not always (if you're using modeladmin instead of pages for example)
680: [14:08:53] <catcher> man, mod_security is fun
681: [14:11:04] <Py^k> hai
682: [14:11:20] <catcher> herro
683: [14:12:08] <Py^k> nihongo wa, hai 'yes' imasu.
684: [14:12:29] <Py^k> yay pidgin japanese!
685: [14:13:40] <catcher> pidgin, like the messaging client?
686: [14:28:08] * neller has joined #silverstripe
687: [14:28:17] <Py^k> yeh, the name comes from 'pidgin english'
688: [14:28:34] <Py^k> ie, not 'pigeon'
689: [14:28:37] <neller> Hi Guys
690: [14:28:42] <Py^k> hi
691: [14:28:49] <catcher> hey hey
692: [14:29:09] <neller> anyone used userforms recently?
693: [14:29:27] <catcher> been a minute for me
694: [14:30:06] <neller> I have used it on many provious sites, but I can't figure out a problem with newest version
695: [14:30:23] <Py^k> wrong version probably
696: [14:30:36] <svandragt> micmania1: hmm when I debug in getCMSRequired that gets displayed and any fields added to requiredfields get a required bullet visually, but on save nothing gets checked wtf
697: [14:30:50] <neller> basically whan I try to set a reciepient email as an email field in the form, the selection is empty
698: [14:30:51] <svandragt> micmania1: and the validation_enabled status is true on the data object
699: [14:31:13] <neller> I tried 3.1.0 as stipulated in required version
700: [14:31:54] <neller> and 3.1.4, smae issues for both
701: [14:32:10] <neller> no one had this problem before?
702: [14:32:29] <Py^k> because save first
703: [14:33:11] <Py^k> neller: ^
704: [14:33:45] <Py^k> It's been like that in all 3.x versions.
705: [14:34:07] <neller> really?
706: [14:34:48] <neller> is there a workaround?
707: [14:39:28] <danfo> success!! thanks Py^k, micmania1
708: [14:39:54] <svandragt> micmania1: the cms validator gets called on the modeladmin's editform on the first level, but any relationships within that it never gets checked
709: [14:40:07] * Alboes has joined #silverstripe
710: [14:41:55] <Alboes> hi, is there anybody known with the events-calendar module?
711: [14:46:29] <Py^k> neller: yes, click the save button.
712: [14:46:39] <Py^k> it can't load up things that aren't in the database already.
713: [14:47:01] <Py^k> Alboes: avoid it at ALL costs
714: [14:47:05] <Py^k> ALL costs.
715: [14:47:19] <Py^k> Never, not even once.
716: [14:47:40] <Py^k> It's redecorate your office with your brains material.
717: [14:48:51] <neller> Py^k - I have pressed the save button also the publish button, but still no option
718: [14:49:09] <Py^k> could be a bug then.
719: [14:49:30] <Py^k> you have entered email recipients in the recipients tab, right?
720: [14:49:34] <Alboes> okay, but I don't understand the responses :)
721: [14:49:42] <Py^k> Alboes: it's a bad thing, never use it.
722: [14:50:53] <neller> yes and that is stored
723: [14:52:07] <Py^k> bummer
724: [14:53:55] <catcher> Py^k, really? It's that bad?
725: [14:54:14] <Alboes> okay, surprised with this advice, so better not use the unclecheese event-calendar...
726: [14:54:30] <svandragt> Anyone that understands modeladmin / gridfield can maybe explain why in https://github.com/silverstripe/silverstripe-framework/blob/3.0/forms/gridfield/GridFieldDetailForm.php#L322-L327 the component's (?) validator is called instead of the record's validator? When editing a relation from a model admin the ItemEditForm is loaded instead of the EditForm which uses the GridFieldDetailForm which means the getCMSValidator method isn't triggered :(
727: [14:54:35] <Alboes> gonna look for other options, thanks for the warning
728: [14:55:03] <neller> yup, looking at adding it direct in dataabse, but can't figure out the vaule to enter in UserDefinedForm_EmailRecipient
729: [14:55:32] <Py^k> because you're not supposed to
730: [14:56:40] * stnvh has joined #silverstripe
731: [14:56:45] <neller> yes but the email selection is supposed to work, so its an eye for an eye
732: [14:57:05] <neller> anyhoo, thanks. If i figure it out I wil lshare
733: [14:57:16] <Py^k> neller: sounds like you've got something messed up :<
734: [14:57:26] <Py^k> could be a bug, are you using master or something?
735: [14:57:40] <Py^k> I'm in a meeting, I can't really be too much help, sorry.
736: [14:58:29] <Py^k> could be a bug though, if you trace it back and it is, lodge a report on github
737: [14:58:33] <Py^k> :>
738: [14:58:38] <Py^k> or fix it and pull request
739: [14:58:46] <neller> no worries, i'm using master from github and ss 3.1.0 also tried 3.1.4 on fresh installs
740: [14:59:05] <neller> will do
741: [14:59:17] <neller> hard to believe I'm the only one though
742: [14:59:22] <Py^k> try last stable tag, rather than master
743: [14:59:29] <Py^k> (for userforms)
744: [14:59:50] <Py^k> yeah well catcher said he'd installed it successfully about 20 mins ago, so must be something screwey.
745: [15:00:04] <neller> thats a good idea, not actually done that yet...
746: [15:00:31] <neller> that wasn't scarsacm
747: [15:00:43] <neller> or sarcasm either
748: [15:00:48] <Py^k> :>
749: [15:00:50] <catcher> "been a minute" is american for "been a long time"
750: [15:01:09] <catcher> but yeah, definitely try stable
751: [15:02:02] <catcher> I was, in fact, being scarsactic.
752: [15:09:54] <neller> wait... *facepalm
753: [15:10:13] <neller> when you say press save button...
754: [15:10:15] <neller> that worked
755: [15:11:02] <neller> it is required to save a static email as a reciepient first with subject and from address, save it
756: [15:11:05] <Py^k> *trollface*
757: [15:11:15] <neller> then the dropdown option is populated
758: [15:11:29] <Py^k> you don't have to put anything in, just save it then the dropdown will happen.
759: [15:11:36] <Py^k> save it without an address like
760: [15:11:49] * muskie9 has joined #silverstripe
761: [15:11:56] <neller> well now I know and your advice suddenly makes sense
762: [15:12:03] <Py^k> :>
763: [15:12:30] <Py^k> I agree it probably should be a better user experience there, but eh.
764: [15:12:41] <neller> thanks and thanks again. although I did kind of figure it our for myself exactly as you said to do.
765: [15:12:42] <neller> eh indeed
766: [15:12:46] <Py^k> it is how it is has been for ages, no one's gotten around to it yet :P
767: [15:14:20] <neller> and on that note, I'm going home
768: [15:14:27] <Py^k> good on ya
769: [15:14:31] * neller quit (Quit: Page closed)
770: [15:14:50] * Alboes has left #silverstripe
771: [15:19:52] * ARNHOE quit ()
772: [15:30:35] * cloph is now known as cloph_away
773: [15:33:58] <svandragt> fixed my issue by setting the GridFieldDetailForm validator to the relation's getCMSValidator method ($config->getComponentByType('GridFieldDetailForm')->setValidator($relationInstance->getCMSValidator());)
774: [15:44:19] * jenniferaslan has joined #silverstripe
775: [15:48:31] * stefanovic72 quit (Remote host closed the connection)
776: [15:48:31] <Py^k> good report svandragt :>
777: [15:48:37] <Py^k> nice for logs
778: [15:50:56] <svandragt> code could be improved by using a singleton :P
779: [15:51:42] <svandragt> anyone feeling up to writing a short tutorial on how to get started writing tests for pull requests in addition to the documentation? That would help people like me getting their contributions accepted :D
780: [15:53:58] <svandragt> Py^k: thanks
781: [15:54:30] <micmania1> svandragt: just lookat the other tests
782: [15:55:37] <Py^k> and docs for that test system, eg phpunit or behat
783: [15:55:40] <micmania1> svandragt: do you use the cli with SilverStripe?
784: [15:55:47] <svandragt> micmania1: maybe I will look also at accepted pull requests and their tests so I can check just a few at a time.
785: [15:55:50] <svandragt> micmania1: yep
786: [15:56:19] <micmania1> so if you run sake dev/tests/MyClass flush=1 it will run tests on that class (assuming you have phpunit installed)
787: [15:56:35] <micmania1> You can install phpunit with composer (simplest way)
788: [15:57:17] <micmania1> Running Tests: http://doc.silverstripe.com/framework/en/topics/testing/#running-tests
789: [15:58:01] <svandragt> ok thanks micmania1, Py^k
790: [15:58:24] <micmania1> svandragt: and for writing tests: http://doc.silverstripe.com/framework/en/topics/testing/creating-a-functional-test
791: [16:02:35] * andylockran quit (Ping timeout: 252 seconds)
792: [16:05:21] * catcher quit (Quit: Leaving)
793: [16:28:23] * scpi has joined #silverstripe
794: [16:31:44] * kinglozzer quit ()
795: [16:32:36] * stnvh quit ()
796: [16:38:36] * Py^k quit (Quit: Page closed)
797: [17:03:51] * anselmdk has joined #silverstripe
798: [17:05:49] * Motoservo quit (Read error: Connection reset by peer)
799: [17:06:51] * Motoservo has joined #silverstripe
800: [17:11:56] * muskie9 quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
801: [17:14:25] * camel_case quit (Ping timeout: 240 seconds)
802: [17:18:36] * babak quit (Quit: Connection closed for inactivity)
803: [17:36:14] * scpi quit (Quit: naptime)
804: [18:08:32] * muskie9 has joined #silverstripe
805: [18:35:59] * bti has joined #silverstripe
806: [18:36:36] <bti> hello, i am trying to turn on loginattempts and i have this in my _config.php file: Security::set_login_recording(true); but it is not actually doing any writing to the database. is there anything else i need to do?
807: [18:40:04] * danfo quit (Quit: danfo)
808: [18:40:20] * scpi has joined #silverstripe
809: [18:42:25] * camel_case has joined #silverstripe
810: [18:43:11] * scpi has left #silverstripe
811: [18:43:28] * scpi has joined #silverstripe
812: [19:18:03] * scpi quit (Quit: naptime)
813: [19:21:05] * scpi has joined #silverstripe
814: [19:45:16] * robert_ quit (Ping timeout: 276 seconds)
815: [19:47:41] * cloph_away is now known as cloph
816: [19:50:28] * robert_ has joined #silverstripe
817: [19:50:29] * robert_ quit (Changing host)
818: [19:50:29] * robert_ has joined #silverstripe
819: [20:10:57] * SightUnseen has joined #silverstripe
820: [20:11:09] * gelignite has joined #silverstripe
821: [20:11:21] * SightUnseen has left #silverstripe
822: [20:15:13] * UncleCheese has joined #silverstripe
823: [20:16:14] * UndefinedOffset quit (Quit: Leaving.)
824: [20:16:45] * UndefinedOffset has joined #silverstripe
825: [20:20:24] * oddnoc has joined #silverstripe
826: [20:21:40] * UndefinedOffset quit (Ping timeout: 276 seconds)
827: [20:21:55] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
828: [20:25:26] * UncleCheese quit (Quit: UncleCheese)
829: [20:29:57] * muskie9 has joined #silverstripe
830: [20:30:37] * babak has joined #silverstripe
831: [20:57:06] * FrozenFire quit (Read error: Connection reset by peer)
832: [20:57:24] * jedateach has joined #silverstripe
833: [20:59:01] * gelignite quit (Quit: http://bit.ly/nkczDT)
834: [21:08:15] * jedateach quit (Quit: jedateach)
835: [21:08:40] * joelpittet has joined #silverstripe
836: [21:12:36] * Motoservo_ has joined #silverstripe
837: [21:13:40] * muskie9 quit (Ping timeout: 276 seconds)
838: [21:14:59] * Motoservo quit (Read error: Connection reset by peer)
839: [21:14:59] * Motoservo_ is now known as Motoservo
840: [21:40:51] * violetina quit (Remote host closed the connection)
841: [21:49:01] * joelpittet quit ()
842: [21:49:40] * Azure quit (Quit: My MBP went to sleep.)
843: [21:51:12] * scpi quit (Quit: be excellent to each other)
844: [22:06:22] * anselmdk quit (Quit: anselmdk)
845: [22:12:51] * jedateach has joined #silverstripe
846: [22:16:48] * Azure has joined #silverstripe
847: [22:28:48] * oddnoc quit (Quit: bye!)
848: [22:39:30] * micmania1 has joined #silverstripe
849: [22:51:12] * FrozenFire[alt] has joined #silverstripe
850: [22:51:18] * micmania1 quit (Ping timeout: 240 seconds)
851: [22:52:25] * FrozenFire[alt] is now known as FrozenFire
852: [22:54:03] * bti quit (Quit: Textual IRC Client: www.textualapp.com)
853: [22:56:25] * joelpittet has joined #silverstripe
854: [23:08:29] * simon_w|air has joined #silverstripe
855: [23:31:20] * Azure quit (Quit: My MBP went to sleep.)
856: [23:40:04] * Colin[pi] has joined #silverstripe
857: [23:40:42] * UncleCheese_ has joined #silverstripe
858: [23:40:54] <simon_w|air> UncleCheese_, yes
859: [23:42:12] <simon_w|air> Turns out, one of the things I'm shipping to AU is my passport. So I'm still in the country and now need to get a witness this afternoon
860: [23:57:53] <UncleCheese_> are you sending a container?
861: [23:58:36] * babak quit (Quit: Connection closed for inactivity)
862: [23:58:53] <simon_w|air> Nope
863: [23:59:28] <simon_w|air> Not sending anywhere near that much stuff

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