#silverstripe IRC Log

IRC log for 28 January 2015

All timestamps are in UTC.

1: [00:01:05] <ss23> Feature Request: Play music from the Inception soundtrack whenever you deploy to a live envrionment
2: [00:02:23] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
3: [00:04:45] <antmas> ss23: +1
4: [00:06:29] <Colin[pi]> ss23: BRRRAAAAAHMMMMMP
5: [00:07:07] <antmas> then run a script that makes sweat sprites appear on screen
6: [00:08:11] <ss23> screen starts shaking
7: [00:08:48] <MichalKleiner> is there a filter for template to remove html or do I need to create a function for that?
8: [00:08:59] <MichalKleiner> something similar to URLATT but to remove html tags
9: [00:10:13] <Hailwood> nicolaas, Are you still around?
10: [00:10:29] <nicolaas> hey Hailwood -- I was sleeping but you woke me ;-)
11: [00:10:33] <antmas> does iRogue ever come on here now?
12: [00:10:33] <nicolaas> how can I help???
13: [00:10:49] <micmania1> MichalKleiner: cast to Text?
14: [00:10:53] <Colin[pi]> antmas: haven't seen him on for quite a while
15: [00:11:16] <MichalKleiner> micmania1 from a template?
16: [00:11:30] <nicolaas> Hailwood: ask away...
17: [00:11:39] <MichalKleiner> I have a function on DO with strip_tags but was wondering if there is something built in
18: [00:11:41] * Olliepop has joined #silverstripe
19: [00:12:17] <Hailwood> nicolaas, Keyboards don't make the best pillows ;) Anyway - I have added payment_dps to our site, and added it as a payment option, and set the userid/key. But when I select it on the order payment page and click pay I get taken straight to the confirmation with a status of Incomplete. What am I missing?
20: [00:12:35] <nicolaas> MichalKleiner: try Convert::raw2att or something like that???
21: [00:13:11] <nicolaas> what ecommerce are you using?
22: [00:15:02] <Hailwood> nicolaas, Hmm, the DCC connection failed - But I am using sunnysideup/silverstripe-ecommerce
23: [00:15:35] <nicolaas> dw about the DCC - that was just a feeble attempt by me to automatically add your name at the start of a message ;-)
24: [00:15:56] <nicolaas> are you using trunk / master?
25: [00:15:56] <MichalKleiner> should be the NoHTML inherited from Text field
26: [00:16:05] * veb has joined #silverstripe
27: [00:16:15] * veb quit (Client Quit)
28: [00:17:37] <nicolaas> Hailwood: do you get the choice in the checkout page to choose the DPS Payment option?
29: [00:17:58] * irogue_ has joined #silverstripe
30: [00:18:13] * irogue_ licks Colin[pi]
31: [00:20:03] <nicolaas> Hailwood: just read your message again.... It seems it is all ready, but it does not go through to DPS - right?
32: [00:20:20] <Colin[pi]> OMG the summoning worked irogue_
33: [00:20:29] <irogue_> it did
34: [00:20:38] <Colin[pi]> I didn't even say your name three times
35: [00:20:43] <nicolaas> i am happy look at your server if you like. I definitely have this working on some sites.
36: [00:20:44] <irogue_> mostly cos i'm low on the busyness scale right now
37: [00:20:49] <irogue_> and am busy eating Sal's
38: [00:21:01] <Colin[pi]> irogue_: ha, cool.. how things been?
39: [00:21:19] <ss23> bah, working on this site, so bad
40: [00:21:24] <ss23> oh shit irogue_ is here I can't talk about how bad his code is
41: [00:21:25] <ss23> :D
42: [00:21:28] <irogue_> lol
43: [00:21:32] <Colin[pi]> haha
44: [00:22:04] * UncleCheese has joined #silverstripe
45: [00:22:25] * veb has joined #silverstripe
46: [00:23:30] * r3v3rb has joined #silverstripe
47: [00:23:36] <r3v3rb> howdy partners
48: [00:23:40] <Colin[pi]> hey r3v3rb
49: [00:23:45] <r3v3rb> Colin[pi]: :D
50: [00:24:12] <r3v3rb> is it possible to split a form into two sections on a page?
51: [00:24:57] <irogue_> ugh i think my belly is going to pop
52: [00:25:03] * camfindlay quit (Quit: camfindlay)
53: [00:25:06] <irogue_> 4 slices of sals = too much for me
54: [00:25:15] <r3v3rb> I have two chunks of HTML that need to sit between form fields and doing it via literalfields feels durty
55: [00:25:33] <Colin[pi]> irogue_: I'm trying to diet, and failing
56: [00:26:02] <Hailwood> nicolaas, Correct, It just skips straight to the confirmation page
57: [00:26:18] * camfindlay has joined #silverstripe
58: [00:26:46] * veb quit (Client Quit)
59: [00:27:11] <irogue_> hey aucklanders: come to our things http://www.meetup.com/SilverStripe-Auckland/
60: [00:33:01] * terryapodaca1 has joined #silverstripe
61: [00:33:15] * terryapodaca quit (Ping timeout: 252 seconds)
62: [00:33:16] <camfindlay> ^
63: [00:35:12] <Stomach> r3v3rb - just template the form out rather than using $Form or whatever?
64: [00:35:51] <r3v3rb> Stomach, okay that sounds worse! lol this form is a nightmare - I’ll roll the html into literals
65: [00:35:54] <r3v3rb> :D
66: [00:36:01] <Stomach> :P
67: [00:36:07] <Stomach> irogue_ - I dont wanna come
68: [00:36:09] * terryapodaca1 has left #silverstripe
69: [00:36:34] <irogue_> Stomach: tough :P
70: [00:36:35] <r3v3rb> irogue_: plane tickets on offer for UKer to come?
71: [00:37:15] <irogue_> r3v3rb: i don't think camfindlay will approve that :P
72: [00:37:22] <r3v3rb> awww, come on
73: [00:37:29] * veb has joined #silverstripe
74: [00:37:38] <r3v3rb> sometimes I hate clients :D
75: [00:38:14] <irogue_> r3v3rb: stab them in the spleen
76: [00:38:27] <r3v3rb> irogue_: bit extreme - I could just say no
77: [00:39:41] * veb quit (Client Quit)
78: [00:40:46] * veb has joined #silverstripe
79: [00:40:57] <irogue_> r3v3rb: hmm, might work i guess
80: [00:41:04] <r3v3rb> :P
81: [00:41:13] * veb quit (Client Quit)
82: [00:43:53] <camfindlay> r3v3rb - you should just skype in ;)
83: [00:44:09] * travis-ci has joined #silverstripe
84: [00:44:09] <travis-ci> silverstripe/silverstripe-framework#3947 (3.1 - eeacbb1 : Damian Mooyman): The build passed.
85: [00:44:09] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/efb1eb588606...eeacbb1b9565
86: [00:44:09] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/48566075
87: [00:44:09] * travis-ci has left #silverstripe
88: [00:44:20] <r3v3rb> i might just go to sleep instead
89: [00:44:29] <r3v3rb> camfindlay: its been a 14hr day so far
90: [00:45:02] <camfindlay> and your point is? :P
91: [00:45:13] <r3v3rb> camfindlay: whahahahahaaaaaaaa
92: [00:45:24] <r3v3rb> i’m a little frayed around the edges now
93: [00:45:39] <micmania1> r3v3rb: don’t pretend you don’t spend all day at the beach. I know your game.
94: [00:45:43] <r3v3rb> client demo with working site tomorrow am :D
95: [00:46:00] <r3v3rb> micmania1: well it is only a 3 minute walk from the front door
96: [00:50:53] <r3v3rb> i do have another questio too, if a user fills in a form and click submit, this goes to next form in process, they submit that, but then they then go back twice ( all data populates from loaddata each time going back ). When they submit and go forward the previously entered data on the second form is missing???
97: [00:51:32] <r3v3rb> but still visible in the debugger as FormData in the session…
98: [00:56:45] * masnun is now known as masnun|away
99: [00:56:56] <nicolaas> Hailwood: did you get it working?
100: [00:58:11] * mobiusnz1 has joined #silverstripe
101: [00:58:12] * mobiusnz quit (Read error: Connection reset by peer)
102: [00:58:26] * mobiusnz1 is now known as mobiusnz
103: [00:59:45] <Hailwood> nicolaas, Not yet, I'm just trying to debug it now, Are you able to provide me with a quick overview - if a payment method is selected and it fails, what should happen from the users perspective?
104: [01:00:21] <nicolaas> Hailwood: send me a PM with your phone number and I will give you a call if you like.
105: [01:00:28] <nicolaas> very happy to help FOC.
106: [01:00:46] <nicolaas> if you prefer to work it out here that is fine too.
107: [01:01:16] <nicolaas> my first question in any case is - your problem is that the user does not reach the DPS Payment page ...or are you taking payment using CC on the page?
108: [01:02:01] <Hailwood> nicolaas, Nope, redirecting the user to the payment page, running through the process the link is being generated correctly.
109: [01:02:18] <nicolaas> ok - but the user is not redirected?
110: [01:03:06] <nicolaas> and instead ends up at the order confirmation page?
111: [01:03:12] <Hailwood> correct
112: [01:04:10] <nicolaas> ok- I am working on an ecommerce install right now so let me check if I can make it work with the latest master.
113: [01:04:26] <Hailwood> Strange... I just tried again and it has redirected successfully.
114: [01:05:09] <Hailwood> I wonder... I've been getting some errors with geoip forking failing, if that happened while it was generating the redirection url and caused that to fail would that likely cause the issue I mentioned?
115: [01:05:41] <nicolaas> yeah - I am having issues with geoip as well , but that should not affect it AFAIK
116: [01:06:48] <nicolaas> give me a few minutes ...
117: [01:10:30] * Tanger has joined #silverstripe
118: [01:14:11] * CoreyW has joined #silverstripe
119: [01:14:35] <CoreyW> Using the CMS, is there a way to modify the Page Versions date format to match the user's date format preference?
120: [01:15:30] * Tanger quit (Quit: Tanger)
121: [01:15:31] <CoreyW> Same with the Assets date column format
122: [01:16:05] <Hailwood> nicolaas, Well I can't reproduce it now which is a good thing. My next question is, If the payment fails due to insufficient funds, (or using the Test Decline) then on the outcome page is there an easy way to add a "try again" type feature which would take them back to the Confirm and Pay step (essentially the same as what the "confirmation/copyorder" function does without actually copying the order)
123: [01:16:49] <nicolaas> Hailwood: yes, you can... the way to do this to allow customers to pay in the step they are at ...
124: [01:17:23] <nicolaas> go to ... /admin/shop/OrderStep
125: [01:17:57] <nicolaas> and review the settings there.
126: [01:18:09] <nicolaas> I will just have a look to see if my theory above holds true ;-)
127: [01:21:08] * Tanger has joined #silverstripe
128: [01:21:13] <CoreyW> I find it weird that they use their own formats anyways
129: [01:26:16] <nicolaas> Hailwood: that should work - I just placed an order on http://silverstripe-ecommerce.com/ and if you choose the "failure payment" you defnitely can pay again.
130: [01:26:32] * OldTom is now known as ProKero
131: [01:26:37] <Hailwood> nicolaas, Yeah just tried it on my system and it works too
132: [01:26:44] <nicolaas> :-)
133: [01:27:03] <Hailwood> I hadn't tried that initially as I thought that would cause orders that had already been paid to also show the payment interface again heh
134: [01:27:42] <nicolaas> great - if you have any questions about e-commerce I am here to help. I want the e-commerce module to be really good, simple and easy to work with. Any feedback would be much appreciated.
135: [01:28:08] <antmas> irogue_: :O
136: [01:28:10] <antmas> irogue_: o/
137: [01:28:17] * antmas waves furiously
138: [01:28:33] * irogue_ waves gently back
139: [01:28:55] * masnun|away is now known as masnun
140: [01:29:23] <nicolaas> kicks CIA
141: [01:29:33] <nicolaas> ha ha ha - how did that go again??? that kick thing???
142: [01:29:50] <nicolaas> for old time's sake...
143: [01:31:07] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
144: [01:36:32] * zagoodwin has joined #silverstripe
145: [01:37:05] <zagoodwin> Hey, does anyone know how to get a checkbox field to have a label in the CMS?
146: [01:37:39] * CoreyW quit (Ping timeout: 276 seconds)
147: [01:39:46] <Ryan-Toast> zagoodwin: new CheckboxField(‘Foo’, ‘My Label’);
148: [01:40:01] <Ryan-Toast> or do you mean left label?
149: [01:41:01] <Colin[pi]> label above the checkbox? sounds like?
150: [01:41:44] * CoreyW has joined #silverstripe
151: [01:43:58] <Ryan-Toast> checkbox is a bit fucked for labels.
152: [01:44:09] <antmas> </3 checkboxes
153: [01:47:02] <zagoodwin> He , i mean left label sorry
154: [01:47:19] <zagoodwin> I've noticed the show in menu and show in search has one
155: [01:48:28] * CoreyW quit (Ping timeout: 272 seconds)
156: [01:51:48] <zagoodwin> ahh found it
157: [01:52:38] * WandL has joined #silverstripe
158: [01:53:30] * r3v3rb quit (Quit: r3v3rb)
159: [01:53:53] * spronk2 has joined #silverstripe
160: [01:56:43] <Hailwood> Hey nicolaas, It's not worth me doing a pull request, but this line needs fixing: https://github.com/sunnysideup/silverstripe-ecommerce/blob/master/code/model/Order.php#L2430
161: [01:57:05] <Hailwood> It's causing completed orders to show as incomplete
162: [01:57:42] <nicolaas> yes - that does NOT look right ;-)
163: [01:57:45] <Olliepop> Hailwood: totally worth a PR!
164: [01:57:45] * CoreyW has joined #silverstripe
165: [01:57:50] <CoreyW> Using the CMS, is there a way to modify the Page Versions date format to match the user's date format preference?
166: [01:57:53] <nicolaas> I will have a look at it and fix it if you like ?
167: [01:57:59] <CoreyW> Same with the Assets date column format
168: [01:58:45] <nicolaas> Hailwood ... I have fixed this.
169: [01:58:48] <nicolaas> THANK YOU ;-)
170: [01:59:49] <Stomach> CoreyW - unsure :(
171: [02:00:41] <CoreyW> I can change it from "$Nice" to "$NiceUS", but cant figure out how to match the user's preference
172: [02:01:48] * UncleCheese has joined #silverstripe
173: [02:04:23] <Stomach> UncleCheese will know!
174: [02:04:28] <WandL> Hi guys what is the best way to filter a ManyManyList by ID? tried using byIDs() but doesn't do anything and the array I am passing is correct idList, I tried setByIDList and that works but actually deleted the items, just need to filter them?
175: [02:04:28] <UncleCheese> hi
176: [02:04:48] <Stomach> CoreyW - can you use FormatFromSettings
177: [02:04:52] <Stomach> $FormatFromSettings even
178: [02:04:59] <UncleCheese> what was the question?
179: [02:05:14] <Hailwood> No problem, I'll put forward any issues I find that like - So as part of the order process once payment we have a cron that runs through the orders and fires off to an api every 5 minutes to generate the digital download links. For this purpose would you suggest adding another OrderStep before Archived along the lines of "Processing" so it shows nicely for any users, and then with the cron grab orders that are in that order step and process them,
180: [02:05:14] <Hailwood> then set the order to the next step once the links are generated?
181: [02:05:16] <Stomach> changing Version display times to use the users settings instead of Nice
182: [02:05:19] <Hailwood> ^ nicolaas
183: [02:05:46] <CoreyW> Stomach: how do I use it? $NiceUS($FormatFromSettings)?
184: [02:05:52] <Stomach> WandL - can you do ->filter('ID', $ids)
185: [02:05:58] <Stomach> CoreyW - just $FormatFromSettings
186: [02:06:32] <WandL> Stomach: ok thx will give that a crack...
187: [02:06:57] <UncleCheese> WandL filter('ParentObject.ID' => $ids)
188: [02:07:20] <CoreyW> Stomach: that looks right. but how about removing the time portion? i just need the date.
189: [02:07:24] <nicolaas> Hailwood: yes - your plan sounds good. I like using OrderSteps because they make it a lot easier to (a) manage groups of orders (b) see what orders are stuck, etc...
190: [02:07:43] <Stomach> CoreyW - you will have to write your own function for just the date
191: [02:07:55] <Stomach> you could copy from http://api.silverstripe.org/3.1/source-class-SS_Datetime.html#96-117
192: [02:07:57] <WandL> @UncleCheese: ahh that makes sense as is a relation table thx will try that...
193: [02:08:22] <UncleCheese> don't forget that every joining table record has its own ID.. which is effectively useless
194: [02:08:39] <CoreyW> hmm, very annoying.. how about doing the same for the Assets date column?
195: [02:10:13] <WandL> UncleCheese: yeah gets confusing I always slip up on that...
196: [02:13:42] <Hailwood> nicolaas, One suggestion I have for the orders - with the getTitle function I would default have $dateFormat and $includeName default to null, and have those as options in the config file which are used unless something is explicitly passed in
197: [02:15:02] <nicolaas> ok, could you elaborate a little bit?
198: [02:15:20] <nicolaas> basically making the name of the order (getTitle) a bit more flexible?
199: [02:16:12] <zagoodwin> What is the easiest way for me to add a label to a blog post if it's newer than 2 weeks old?
200: [02:16:25] <nicolaas> define label?
201: [02:17:14] <Stomach> <label>
202: [02:17:50] <zagoodwin> just like an icon to represent that it's a new post. Just the logic in the controller really
203: [02:21:38] * CoreyW has left #silverstripe
204: [02:23:26] * zippy has joined #silverstripe
205: [02:23:42] <zippy> antmas: o/
206: [02:24:12] <Stomach> zagoodwin - you can write a function that checks if the date on it is less than some 2 weeks old then call that
207: [02:24:24] <Stomach> if IsNewPostThatHasBeenHereForLessThanTwoWeeks()
208: [02:27:36] <zippy> Stomach: mmm no it's the. If NotSoNewAnymore()
209: [02:30:35] <Stomach> public function keeping_my_job_1() { return $this->keeping_my_job_23();}
210: [02:32:07] <zippy> as long as the output is wrapped in a <div class="green"> which in the css is .green { color: red; }
211: [02:32:39] <antmas> zippy: o/
212: [02:32:44] <zippy> Ryan-Toast: thing I found a slightly longer one for you. ".page-content.user-enviroment .page-left .module .info .content .module-title"
213: [02:32:50] <zippy> thats a selector and a half
214: [02:33:10] <zippy> the guy should of just done #id on everything
215: [02:33:22] <irogue_> wow
216: [02:33:23] <antmas> zippy: he might as well at that point
217: [02:33:27] <irogue_> thats a horrible selector
218: [02:33:47] <antmas> everything is wrong in that selector
219: [02:33:49] <antmas> all of it
220: [02:33:53] <antmas> bad and WRONG
221: [02:34:19] <zippy> css is full of it, all 5300 lines of it
222: [02:34:39] <zippy> .home-page .second-blocks .reasons .reason:hover .data .figure .caption:before,
223: [02:34:39] <zippy> .home-page .second-blocks .reasons .reason:hover .data .figure .caption:after {
224: [02:34:40] <zippy> background: #fff;
225: [02:34:40] <zippy> }
226: [02:34:57] <antmas> oh god
227: [02:38:08] <Ryan-Toast> zipyy: http://i.imgur.com/ttrzXX1.gif
228: [02:39:23] <zippy> hahaha jezus I just found the same block of code further up. The difference is it's in a media query.... shit. They've doubled up on a whole lot of css... like..
229: [02:39:39] <antmas> is there a way to do colspan in css?
230: [02:39:54] <antmas> because it looks horrible inline
231: [02:40:10] <zippy> I want the bg white on anything below 1024 wide, so they have put it in 3 different different media queries for below there... just.. i ... d.sdfsagd
232: [02:40:55] <antmas> zippy: do they even media query?
233: [02:40:57] <zippy> I bet this file could be cut to a third..
234: [02:41:06] <zippy> antmas: no antmas, it seems they don't even css
235: [02:41:19] <zippy> just copy paste everywhere and one of them will work
236: [02:41:38] <antmas> forget the colspan q, you can't
237: [02:41:41] <antmas> another question
238: [02:41:58] <antmas> if you have form that has hard set maxlength in various fields
239: [02:42:10] <antmas> should you tell the user what the max is when they hit it?
240: [02:42:30] <antmas> or not worry?
241: [02:42:57] <irogue_> zippy: needs moar sass
242: [02:43:27] <zippy> antmas: it'd be nice to know if there is a limit
243: [02:43:28] <irogue_> then they can *next* their asshattery
244: [02:43:31] <irogue_> *nest
245: [02:43:52] <zippy> Ryan-Toast: did you link me to a online css thing that cleans things up?
246: [02:43:54] <zippy> irogue_: mmm for sure
247: [02:44:13] <zippy> but, I think people should know a bit about the basics before they add magic..
248: [02:44:31] <irogue_> .home-page { .second-blocks { .reasons { &:hover { .data { .figure { .caption:before, .caption:after { background: #ffff; } } } } } } }
249: [02:44:41] <zippy> beautiful;
250: [02:44:49] <antmas> +1
251: [02:45:07] <antmas> irogue_: but that'd require some js
252: [02:45:09] <Ryan-Toast> zippy: you mean your own email address?
253: [02:45:13] <antmas> of which I'm trying to avoid
254: [02:45:23] * veb has joined #silverstripe
255: [02:45:42] <antmas> one thought was say something like 'Max = 50 characters' as placeholder text in relevant fields
256: [02:45:47] <zippy> Ryan-Toast: no, I am sure you send me a site where you could dump your css it it would remoe duplicates and clean shit um.. im sure
257: [02:46:00] <zippy> antmas: small label under the field in like <small> or something?
258: [02:46:15] * zippy has just gone shirtless in the office because it's too hot
259: [02:46:16] <antmas> zippy: you could look at unused styles in chrome
260: [02:46:41] <Ryan-Toast> zippy: you mean this? http://www.codebeautifier.com/
261: [02:46:41] <irogue_> zippy: my office is pretty casual but I think that'd still raise eyebrows
262: [02:46:52] <zippy> nop
263: [02:47:49] <zippy> maybe it was that chick that is sometimes in here...
264: [02:48:11] <zippy> http://tools.maxcdn.com/procssor/ was it i think
265: [02:48:33] * adrexia has joined #silverstripe
266: [02:49:10] <zippy> look at that, 44 seconds after being mentioned :)
267: [02:49:21] <zippy> adrexia: was http://tools.maxcdn.com/procssor/ a site you've mentioned before
268: [02:49:29] <zippy> cleanup up a css file
269: [02:49:47] <adrexia> you were talking about me?
270: [02:49:48] <adrexia> :D
271: [02:49:54] <zippy> ... maybe
272: [02:50:01] * mobiusnz quit (Quit: Leaving.)
273: [02:50:05] <adrexia> hmm, I am not sure I've used that specific one
274: [02:50:19] <adrexia> but there are hundredds of decent css clean up tools :)
275: [02:50:57] <adrexia> I usually used sass, so often will just use this - http://css2sass.herokuapp.com/
276: [02:51:16] <Ryan-Toast> adrexia: that looks interesting
277: [02:51:16] <zippy> woooo that might be the ticket
278: [02:51:28] <zippy> this css might break that tool thou
279: [02:51:48] <zippy> the css file has the "is shit" attribute on it..
280: [02:51:56] <adrexia> Ryan-Toast, they've just redone the interface, but the tool itself has been around for as long as I've been using sass :)
281: [02:52:04] <adrexia> hahahaha
282: [02:52:11] <Ryan-Toast> adrexia: “Dude, nasty error! - Invalid CSS after "": expected selector, was "0%"”
283: [02:52:19] <adrexia> hehehe
284: [02:52:21] <Ryan-Toast> such helpful.
285: [02:54:17] <antmas> zippy: "maybe it was that chick that is sometimes in here..."
286: [02:54:21] <antmas> how eloquent
287: [02:54:23] <antmas> :P
288: [02:54:29] <zippy> shhh damn due!
289: [02:54:31] <zippy> *dude
290: [02:59:43] <Hailwood> Hey guys, how do I say SomeDataObject::get()->... where ... = ID is not in array $processed
291: [03:01:11] <irogue_> Hailwood: http://api.silverstripe.org/3.1/class-DataList.html#_exclude
292: [03:01:16] <Hailwood> Ah snap
293: [03:01:23] <Hailwood> I always forget about exclude!
294: [03:01:57] <Hailwood> Cheers
295: [03:04:14] <Stomach> can you still do 'ID:not' => 1
296: [03:04:16] <Stomach> irogue_ ^
297: [03:04:44] <Stomach> Ryan-Toast give me job
298: [03:04:57] <zippy> Stomach: I have this css file.........
299: [03:05:01] <Ryan-Toast> Stomach: you want the accounts manager job?
300: [03:05:05] <Stomach> why not!
301: [03:05:10] <Stomach> zippy - yesssss?
302: [03:05:23] <Ryan-Toast> Stomach: you could probs just wait 6 months and take my dev job. Will be more money.
303: [03:05:27] <zippy> it's god awful, I am going to send it back
304: [03:05:31] <zippy> Ryan-Toast: leaving?
305: [03:05:34] <Ryan-Toast> zippy: yarp
306: [03:05:37] <Ryan-Toast> zippy: Europe
307: [03:05:40] <zippy> jezus
308: [03:05:43] <Ryan-Toast> GET MY TRAVEL ON
309: [03:05:57] <irogue_> LEAVING ON A JET PLANE
310: [03:06:02] <Colin[pi]> Ryan-Toast: I look forward to gifs of you flipping the bird at us from Europe
311: [03:06:04] <zippy> who else is going to leave!
312: [03:06:24] <adrexia> <antmas> zippy: "maybe it was that chick that is sometimes in here..."
313: [03:06:24] <adrexia> lol
314: [03:06:42] <Ryan-Toast> Colin[pi]: :D
315: [03:06:50] <Colin[pi]> adrexia: hello resident chick!
316: [03:06:51] <Colin[pi]> :D
317: [03:07:21] <adrexia> I'm pretty sure I've seen at least one other woman here :P
318: [03:07:50] <Colin[pi]> adrexia: might have been debatable
319: [03:07:52] * irogue_ looks at ss23
320: [03:07:56] <zippy> mmm I am pretty sure ss23 is a guy..
321: [03:08:25] <Ryan-Toast> there’s Jennifer as well.
322: [03:08:28] <Colin[pi]> zippy: how do you know? have you seen pics of ss23?
323: [03:08:31] <Colin[pi]> ;P
324: [03:08:41] <irogue_> ss23 sent zippy nudez
325: [03:08:44] <Colin[pi]> rofl
326: [03:09:04] <zippy> #ssfappening
327: [03:09:31] * zippy leaks them to the media
328: [03:09:45] <Colin[pi]> zippy: ss23 has been trying to leak them to the media, they keep sending them back
329: [03:09:53] <antmas> hahahaha
330: [03:10:03] <antmas> I knew it was a good time to tab back here
331: [03:10:07] <antmas> had that 'feeling'
332: [03:10:16] <Colin[pi]> classic #silverstripe
333: [03:10:17] <irogue_> they were also sent back by Calvin Klein
334: [03:10:23] <ss23> help
335: [03:10:26] <ss23> my nudes have been leaked
336: [03:10:31] <irogue_> they went with someone manlier
337: [03:10:38] <ss23> hey, some people prefer girly guys
338: [03:10:45] <antmas> I have like 8 chest hairs
339: [03:10:52] <antmas> so much manlier
340: [03:10:55] <ss23> lol
341: [03:11:00] <ss23> chest hair? that's gross, I shave my chest.
342: [03:11:37] <antmas> that
343: [03:11:43] <antmas> that would require so much effort
344: [03:12:33] <Colin[pi]> ss23: I tried waxing my chest once. It did not go well.
345: [03:12:43] <irogue_> Colin[pi]: did you rip your nip off?
346: [03:12:46] <antmas> Ryan-Toast: when you go to europe, you should post heaps of photos of you drinking with other young people at random bars and clubs
347: [03:12:52] <antmas> Ryan-Toast: becuase no on does that
348: [03:13:04] <Colin[pi]> irogue_: no I ended up with infected hair follicles fucking everywhere :(
349: [03:13:10] <irogue_> we should give Ryan-Toast SS shirts to wear in europe
350: [03:13:11] <Ryan-Toast> antmas: I’m taking a deck of cards and getting people to sign a card each.
351: [03:13:11] <antmas> Colin[pi]: jesus
352: [03:13:13] <ss23> rofl Colin[pi]
353: [03:13:16] <Colin[pi]> was awful
354: [03:13:29] <Ryan-Toast> irogue_: Maybe not through Germany.
355: [03:13:40] <antmas> lol
356: [03:13:43] <irogue_> silverstripe is super popular in germany!
357: [03:13:49] <irogue_> they just have their own shortening of it
358: [03:13:52] <Colin[pi]> that's true!
359: [03:14:03] <Ryan-Toast> MY FU’MEWORK
360: [03:14:18] <antmas> 'The thing Ingo does'
361: [03:15:57] <zippy> got a free $50 ppc voucher, and used it to pickup 6 dropbox referals for some free extra storage......win :)
362: [03:17:13] <antmas> http://www.silverstripe.org/blog/open-source-academy-bootstrapping-the-next-generation-of-silverstripe-developers/?utm_source=SilverStripe+Community+Blog&utm_medium=facebook&utm_campaign=Blog+to+Social+Media
363: [03:17:40] <antmas> I see ss23 :O
364: [03:17:53] <Colin[pi]> its the chick in the black right?
365: [03:18:03] <antmas> and some very nervous looking young people
366: [03:18:19] <ss23> ME ITR'S ME
367: [03:18:19] <ss23> :D
368: [03:18:21] <ss23> antmas: :3
369: [03:18:24] <Ryan-Toast> antmas: teaching kids agiele ebefore they know any better. You monsters.
370: [03:18:29] <Ryan-Toast> agile**
371: [03:18:41] <antmas> hahaha
372: [03:18:42] <Colin[pi]> they all look so young
373: [03:18:46] * Colin[pi] feels old :(
374: [03:18:56] <irogue_> Colin[pi]: don't worry
375: [03:18:57] <irogue_> you are
376: [03:19:04] * Colin[pi] cries
377: [03:19:09] <Colin[pi]> irogue_: but yes it's true :P
378: [03:19:13] <Ryan-Toast> Found out that a girl from town I was with on Saturday was 19 :/
379: [03:19:34] <antmas> Ryan-Toast: did you go all single on us?
380: [03:19:36] <Ryan-Toast> Made me feel old.
381: [03:19:41] <Ryan-Toast> antmas: I did, yeah
382: [03:19:45] <antmas> :O
383: [03:19:49] <Colin[pi]> Ryan-Toast: at least she's an adult :P
384: [03:19:57] <antmas> half your age plus 7
385: [03:19:59] <antmas> is that right?
386: [03:20:13] <Colin[pi]> antmas: think so
387: [03:20:33] <zippy> ss23: how often do you perm that?
388: [03:20:43] <Stomach> antmas thats 100% right
389: [03:20:50] <Stomach> and double your age minus seven for cougar hunting
390: [03:20:58] <antmas> hehe
391: [03:21:10] <Colin[pi]> antmas: they say a seven year age gap (older guy, younger girl) is perfect apparently due to maturity level diffs in men and women
392: [03:21:24] <Stomach> thats BS
393: [03:21:30] <Stomach> I'm way less mature than 7 years
394: [03:21:34] <Colin[pi]> :D
395: [03:21:36] <antmas> hahah same
396: [03:21:56] <antmas> "in not immature, I have way more life skills"
397: [03:21:58] <Colin[pi]> 7 years between my gf and me, works pretty well
398: [03:22:08] <antmas> Colin[pi]: dat justification
399: [03:22:10] <antmas> :P
400: [03:22:36] <Colin[pi]> found that out after :P
401: [03:22:41] <Stomach> so Ryan-Toast are you enjoying your soft programmer hands at the moment
402: [03:22:47] <ss23> 16:20:34 < zippy> ss23: how often do you perm that?
403: [03:22:50] <ss23> I never brush it
404: [03:22:52] <antmas> Stomach: ROFL
405: [03:23:06] <Stomach> just bringing the convo full circle :P
406: [03:23:32] <antmas> my best mate was recently single for 2 years
407: [03:23:37] <antmas> no kidding
408: [03:23:43] <antmas> his new gf's last name is Palmer
409: [03:23:48] <Stomach> hahahahaha
410: [03:23:54] <spronk2> lawl
411: [03:23:58] <irogue_> ss23: http://youtu.be/lqz9eJiBa_Q?t=12s
412: [03:24:12] <antmas> he struggled to tell me for WEEKS :P
413: [03:28:25] <Colin[pi]> antmas: LOL that's hilarious
414: [03:30:07] <zippy> whats the use case for the flushtoken ?
415: [03:30:28] <zippy> if I am logged as admin, or in dev mode why the need for a flushtoken - anyone recall?
416: [03:31:50] <Stomach> so that you are security and CWP php 5.3 semver
417: [03:33:31] <zippy> yea but what?
418: [03:34:59] <Colin[pi]> zippy: I remember this being talked about before, what I don't remember is the reason
419: [03:35:07] <zippy> oh google broken..
420: [03:35:09] <zippy> 502. That’s an error.
421: [03:35:09] <zippy> The server encountered a temporary error and could not complete your request.
422: [03:35:45] <Ryan-Toast> Stomach: My doft programmer hands?
423: [03:35:48] <Ryan-Toast> soft**
424: [03:36:15] <zippy> [15:33:30] <simon_w|air> Ryan-Toast, prevents DoS attacks by non-admins spamming ?flush
425: [03:36:24] <zippy> not sure why it needs the token to do that...
426: [03:36:49] <Colin[pi]> zippy: and here: http://logs.simon.geek.nz/index.php?date=2013-10-15#log_1081443
427: [03:37:11] <zippy> no that still doesn't make sense
428: [03:37:40] <Ryan-Toast> oh good, there are ads on the logs now...
429: [03:37:42] <zippy> in the routine for ?flush you can do a developer check in there, what is the point of redirecting with a flush token
430: [03:37:52] <zippy> Ryan-Toast: yes, and check the very very bottom
431: [03:38:05] <Ryan-Toast> single ukraine women?
432: [03:38:15] <zippy> oh he's removed it...
433: [03:38:51] <zippy> nm then :)
434: [03:38:55] * antmas quit (Ping timeout: 246 seconds)
435: [03:40:00] <Ryan-Toast> Stomach: ?
436: [03:42:28] * Stomach quit (Ping timeout: 244 seconds)
437: [03:43:21] * camfindlay quit (Quit: camfindlay)
438: [03:45:02] <zippy> mmm it'd be to stop csrf requests
439: [03:45:13] * mahfuz quit (Ping timeout: 246 seconds)
440: [03:50:44] * helenclarko has joined #silverstripe
441: [03:50:54] * Olliepop quit (Quit: Page closed)
442: [03:51:29] <helenclarko> Hi all, is there any way to easily log the searchform's search results?
443: [03:56:46] * zagoodwin quit (Ping timeout: 246 seconds)
444: [04:00:54] * helenclarko quit (Quit: Page closed)
445: [04:01:51] * mobiusnz has joined #silverstripe
446: [04:02:36] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
447: [04:03:56] * Phlunk3 quit (Remote host closed the connection)
448: [04:09:37] * Hailwood quit (Ping timeout: 264 seconds)
449: [04:17:42] * irogue_ quit (Quit: Textual IRC Client: www.textualapp.com)
450: [04:19:12] * Ryan-Toast quit (Quit: Ryan-Toast)
451: [04:19:57] * wracu quit (Quit: Leaving)
452: [04:19:58] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
453: [04:20:09] * MichalKleiner heading for the SS meetup
454: [04:24:33] * EasyCo has joined #silverstripe
455: [04:24:50] * mobiusnz quit (Quit: Leaving.)
456: [04:31:22] * MichalKleiner is now known as MK_away
457: [04:31:32] * MK_away is now known as MichalKleiner|aw
458: [04:36:30] * nicolaas quit (Ping timeout: 246 seconds)
459: [04:42:05] * cloph_away has joined #silverstripe
460: [04:42:13] * cloph quit (Ping timeout: 252 seconds)
461: [04:56:55] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
462: [04:57:20] * Ryan-Toast has joined #silverstripe
463: [05:09:12] * ProKero is now known as kerosene
464: [05:16:50] * Ryan-Toast quit (Quit: Ryan-Toast)
465: [05:31:03] * jimbo_ has joined #silverstripe
466: [05:33:48] * jimbo_ quit (Client Quit)
467: [05:51:20] * spekulatius quit (Quit: Leaving)
468: [06:08:41] * Colin[pi] quit (Ping timeout: 244 seconds)
469: [06:12:29] <Tanger> Hey guys, what's the deal with PHP's func_get_args?
470: [06:12:42] <spronk2> what about it?
471: [06:12:52] <Tanger> Do you needc a specific declaration in the function signature?
472: [06:12:58] <Tanger> Like in C
473: [06:13:13] <Tanger> Or does it just guess what arguments it can parse
474: [06:13:20] <Tanger> Based on what's passed in at the time
475: [06:13:30] <spronk2> no need for specific varargs declaration
476: [06:13:32] <spronk2> args are always dynamic
477: [06:13:42] <spronk2> it doesn't give you named args though
478: [06:13:42] <spronk2> just numbered
479: [06:13:59] <Tanger> Nice, thanks spronk2
480: [06:14:05] <spronk2> and it doesn't matter what args the func is declared with
481: [06:14:11] <spronk2> func_get_args always returns the full array of args, numbered
482: [06:22:50] * peter_w has joined #silverstripe
483: [06:25:43] <peter_w> Hey there....I am thinking about putting a couple of SilverStripe sites on an EC2 instance on AWS....have anyone had any troubles running on a t2.small instance?
484: [06:36:23] * Sticks quit (Quit: Leaving)
485: [06:45:45] * mobiusnz has joined #silverstripe
486: [06:51:37] * mobiusnz quit (Quit: Leaving.)
487: [06:51:47] * jyrkililja has joined #silverstripe
488: [06:52:00] <jyrkililja> Hi all!
489: [06:52:22] <jyrkililja> Has anyone experieced random cache_dir permission errors on IIS?
490: [06:59:52] * Shrike_Finland has joined #silverstripe
491: [07:06:09] * wmk has joined #silverstripe
492: [07:07:18] * babak_ has joined #silverstripe
493: [07:12:18] <wmk> lol, english is a funny language
494: [07:12:27] <wmk> if a hotel has a big room it's a "suite".
495: [07:12:49] <wmk> if someone misses the last "e"... a "suit" is something totally different
496: [07:13:21] <Tanger> A rapper: A musician who employs the power of da beat.
497: [07:13:29] <Tanger> Miss a P and it's a whole different kettle of fish
498: [07:13:41] <wmk> ower of da beat?
499: [07:13:55] <wmk> raper?
500: [07:13:57] <Tanger> Yeah
501: [07:13:59] <Tanger> Technical term
502: [07:14:01] <Tanger> Da beat
503: [07:18:18] <wmk> Tanger, but py*'s joke about the magical tractor is the best
504: [07:18:52] <Tanger> wmk: Which joke?
505: [07:19:51] <wmk> Tanger, http://logs.simon.geek.nz/index.php?date=2014-07-01#log_1328857
506: [07:20:14] * spronk2 quit (Quit: I may need a longer sleep timer...)
507: [07:20:46] <Tanger> wmk: lolwut?
508: [07:21:03] <wmk> lolwut?
509: [07:21:28] <Tanger> That's funny
510: [07:21:33] <wmk> ah.
511: [07:21:40] <wmk> "wut" is german for "anger"
512: [07:21:47] <Tanger> Ooooh
513: [07:21:48] <wmk> so i was just a bit confused with this term
514: [07:22:05] <Tanger> Yeah, english internet slang
515: [07:22:06] <wmk> lol and anger doesn't fit together imho
516: [07:22:15] <wmk> Tanger, just looking the term up
517: [07:27:12] <Tanger> Hey guys, if I'm subclassing a formfield that, when I focus or unfocus, passes data to a function on the FormField class. How do I tell AJAX that I want the target to be that particular formfield. Should I be handling the AJAX call on the encompassing Controller?
518: [07:28:26] * spronk2 has joined #silverstripe
519: [07:28:53] <Tanger> Hell, is that even possible?
520: [07:29:37] <Tanger> I assume a class such as TreeDropdownField uses AJAX to get it's source values on focus of the input or something
521: [07:37:54] * benjhocking has joined #silverstripe
522: [07:39:29] * spronk2 quit (Quit: I may need a longer sleep timer...)
523: [07:42:12] <wmk> Tanger, there are some ajax fields
524: [07:42:15] <wmk> e.g. tagfield
525: [07:43:28] <wmk> Tanger, https://github.com/chillu/silverstripe-tagfield/blob/master/code/TagField.php#L150
526: [07:44:04] * glenn-bautista quit (Quit: Leaving.)
527: [07:46:45] * Kingy[a] is now known as Kingy
528: [07:47:36] <Kingy> is there a way to access a single array element in template (like you would $blah[3])
529: [07:54:17] <wmk> maybe arraylist has something for this?
530: [07:55:22] <Tanger> wmk: Cool, thanks. Will have to have a look through it. Looks like it might be just what I need
531: [07:55:45] <wmk> Tanger, seems like a formfield is also a controller
532: [07:55:59] <wmk> so just define $allowed_actions and go
533: [07:56:34] <Tanger> wmk: Of course! It inherits from RequestHandler
534: [07:56:41] <Tanger> That's so obvious :P
535: [07:56:56] * wmk should have looked at api docs ;)
536: [07:57:08] <wmk> though phpstorm has also some functionality for that
537: [07:57:47] <Eliseth> Goodmorning
538: [08:01:18] <wmk> hi Eliseth
539: [08:01:24] <Tanger> Hey Eliseth
540: [08:01:57] <Eliseth> So we were thinking...
541: [08:02:22] <Eliseth> WIth the amounts of SS sites increasing (don't bother with any other framework anymore)
542: [08:02:40] <Eliseth> And our setup being pretty optimized for SS now (HHVM on NGINX)
543: [08:05:04] <Eliseth> We are feeling the need to make ready-set-deploy environments of some sort for SS sitess
544: [08:05:38] <Eliseth> (Currently we run multiple sites on a single VPS)
545: [08:06:44] <Eliseth> I'm a bit hesitant to jump into this whole cloud hype just like that, since our VPS is functioning fine.
546: [08:06:57] <Eliseth> We do feel the need though to isolate the sites more
547: [08:09:22] <wmk> Eliseth, did you have a look at ansible for setting up a VM / deploying a site?
548: [08:09:28] <jyrkililja> Eliseth: How do you handle HHVM on NGINX configuration? Manually? Your solution sounds pretty interesting to me as well :)
549: [08:09:31] <wmk> should be pretty cool for this job
550: [08:09:51] <Eliseth> jyrkililja: yes, manual config atm
551: [08:09:58] <wmk> afaik simon_w is using ansible for setting up a new vm
552: [08:10:17] <jyrkililja> Ansible seems like a way to go to me as well
553: [08:10:27] <Eliseth> wmk: I'll check out ansible
554: [08:10:28] <jyrkililja> If you want easily deployable virtual machines, that is
555: [08:10:32] <wmk> Eliseth, would be interested in a receipe / module for ansible
556: [08:10:51] <wmk> jyrkililja do you have experience with it?
557: [08:10:56] <jyrkililja> Me too :)
558: [08:11:12] <jyrkililja> almost none
559: [08:11:20] <wmk> the o'reilly book comes in june :(
560: [08:11:51] <jyrkililja> Have followed and commented along when my colleague configured one server using ansible
561: [08:12:03] <Eliseth> I was carefully looking at chef, cookbooks and stuff like that... but it really is a specialisation.. and I lack the time tbh :)
562: [08:12:04] <wmk> jyrkililja, nice...
563: [08:12:36] <wmk> Eliseth, i guess it's the same like everywhere... putting some hours / days of effort in learning it will save you weeks later on
564: [08:12:45] <wmk> like scss / grunt and all the stuff
565: [08:12:46] <jyrkililja> But a public starting point for HHVM/NGINX/MySQL would be nice
566: [08:13:08] <wmk> jyrkililja, i bet there are some modules out for it
567: [08:13:13] <jyrkililja> yep
568: [08:13:15] <jyrkililja> like http://phansible.com/
569: [08:14:56] <jyrkililja> And considering adding new targets to ansible wasn't too difficult (when followed behind the shoulder that is :)) I think phansible would be a good starting point
570: [08:14:57] <Eliseth> phansible looks nice
571: [08:15:05] <Eliseth> too bad it's based on ubuntu
572: [08:15:33] <jyrkililja> Oh
573: [08:16:24] <jyrkililja> that is only for vagrant though
574: [08:16:54] <jyrkililja> But the package installation scripts wouldn't probably work on RHEL based
575: [08:17:50] <jyrkililja> https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/lemp
576: [08:18:00] <jyrkililja> here's nginx, MySQL, PHP
577: [08:18:20] <jyrkililja> modifying that to HHVM wouldn't probably be too much if you compare phansible and this
578: [08:19:02] <wmk> jyrkililja, i guess i have to setup the base vm on my esxi manually first, then configure / deploy with ansible
579: [08:19:18] <jyrkililja> might be so
580: [08:19:19] <wmk> dunno if you can setup a new vm e.g. on digitalocean using ansible
581: [08:19:46] <jyrkililja> me neither
582: [08:20:43] * Kingy is now known as Kingy[a]
583: [08:20:58] <Eliseth> That's the other part I need to investigate I guess... 1: how do we manage them? (ansible, other way). 2: where will we host/deploy them. What cloud service is suitable
584: [08:21:58] <Eliseth> And 3: how do we ensure optimal speed. Our current VPS is really fast, I don't know if these ready/set/deploy versions in "the cloud" are just as fast as native machines?
585: [08:22:09] <jyrkililja> I think Ansible can be used anywhere as long as you get SSH access ;)
586: [08:22:11] <Eliseth> No experience in this part of webhosting whatsoever
587: [08:24:00] <wmk> Eliseth, you can even manage your vhosts with ansible
588: [08:24:30] <wmk> and best: you can run commands (e.g. apt-get upgrade / update) on all registered machines with one line
589: [08:25:58] <wmk> jyrkililja, Eliseth making a ssansible site should be easy ;) https://github.com/Phansible/phansible
590: [08:26:11] <wmk> though if it was based on ss framework it would be even nicer ;)
591: [08:26:40] <wmk> but for vagrant developing i'm totally happy with my zauberfisch box. has everything installed i need for coding
592: [08:27:20] <jyrkililja> wmk would love one. site I mean
593: [08:27:53] <wmk> problem with provisioning / installing manually on a vagrant box before was: it takes time...
594: [08:28:05] <jyrkililja> true
595: [08:28:06] <wmk> using a ready-to-use box is much faster
596: [08:28:26] <wmk> as one vagrant dev box is like the other
597: [08:29:10] <wmk> as long as you don't need anything special
598: [08:29:40] <Eliseth> Ansible Tower isn't exactly cheap....
599: [08:29:51] <wmk> Eliseth, you don't need it
600: [08:29:56] <wmk> it's a nice guy
601: [08:30:03] <wmk> but you can run it from any command line
602: [08:30:44] <wmk> Eliseth, http://www.ansible.com/ansible-book for more infos
603: [08:31:07] <wmk> you just get some ansible related emails afterwards from that site
604: [08:31:41] <Eliseth> Ah, interesting, thanks
605: [08:31:58] <wmk> quite good information for starting
606: [08:33:55] * Shrike_Finland quit (Quit: Leaving.)
607: [08:35:40] * masnun quit (Quit: Signing out.)
608: [08:37:16] <wmk> Eliseth, tower is a GUI, not a guy... sorry
609: [08:40:19] <Eliseth> I figured :)
610: [08:45:56] <wmk> this damned auto pilot while typing
611: [08:50:24] <Eliseth> Question
612: [08:50:27] <Eliseth> https://github.com/unclecheese/TranslatableDataObject/issues/6
613: [08:50:47] <Eliseth> at the bottom there's: "Finally: foreach...." etc
614: [08:51:11] <Eliseth> Should that go in page.php as well? Or in my modeladmin, or dataobject?
615: [08:54:44] * zippy has joined #silverstripe
616: [08:59:28] * Tanger quit (Quit: Tanger)
617: [09:00:24] <Eliseth> (can't believe even instructions for noobs are too hard, haha)
618: [09:02:06] <zippy> Eliseth: o/
619: [09:02:17] <Eliseth> Oh hi Zippy
620: [09:02:44] <zippy> hows it going
621: [09:03:16] <Eliseth> Trying to make my dataobject translatable using https://github.com/unclecheese/TranslatableDataObject/issues/6
622: [09:03:35] <Eliseth> Can't figure out where the last part of that code is supposed to go (foreach... etc)
623: [09:04:07] * jyrkililja leaves for lunch
624: [09:04:09] * jyrkililja has left #silverstripe
625: [09:04:34] <discorpia> Eliseth: in the function that returns the fields for cms i believe
626: [09:05:19] <wmk> Eliseth, i can feel you, just fighting with fluent
627: [09:07:01] <discorpia> Eliseth: it loops through the fields for the other language and adds them to a tab called "IT", so in that example's specific case it's in Page::getCMSFields()
628: [09:07:40] * MrGuits quit (Read error: Connection reset by peer)
629: [09:07:40] * Guits quit (Read error: Connection reset by peer)
630: [09:07:48] * kinglozzer has joined #silverstripe
631: [09:07:56] <Eliseth> Yes, I tried putting it in getCMSFields() function of my dataobject, but that didn't work :)
632: [09:08:05] * MrGuits has joined #silverstripe
633: [09:08:05] * Guits has joined #silverstripe
634: [09:14:11] * Copperis has joined #silverstripe
635: [09:15:42] * lerni has joined #silverstripe
636: [09:24:40] * lawrencehowlett has joined #silverstripe
637: [09:25:41] <lawrencehowlett> Morning all - anyone know if you can download the new forum theme that is used here - http://www.silverstripe.org/community/forums/
638: [09:31:21] <zippy> lawrencehowlett: I don't think it's a forum theme per say, I think it's a custom theme since it intergrates into their site
639: [09:31:33] <zippy> eg; <link rel="stylesheet" type="text/css" href="themes/ssv3/css/forum.min.css" />
640: [09:34:27] * Kingy[a] is now known as Kingy
641: [09:35:35] <zippy> Kingy: veb o/
642: [09:35:42] <Kingy> hey mateeee
643: [09:35:50] <zippy> hows it
644: [09:35:55] <Kingy> good good
645: [09:35:58] <Kingy> just working
646: [09:36:33] <Kingy> yaself?
647: [09:37:38] <zippy> yea doing some work too
648: [09:37:49] <zippy> your poor computer has been idle all week! terrrribbllee
649: [09:38:00] <Kingy> goddammit zippy lol
650: [09:38:12] <Kingy> you had one job lol
651: [09:38:18] <zippy> my daughter was playing a flash based princess game the other day....
652: [09:38:32] <zippy> maxing out that gpu!
653: [09:39:04] <Kingy> rofl, well that's something :P
654: [09:39:32] <zippy> hows bahrain
655: [09:40:07] <Kingy> farking awesome
656: [09:40:14] <Kingy> it's so cool here
657: [09:40:28] * lawrencehowlett quit (Ping timeout: 246 seconds)
658: [09:42:06] <zippy> 5c gas litre?
659: [09:42:16] <Kingy> more like 25
660: [09:42:17] <Kingy> but still
661: [09:42:21] <Kingy> 12NZD to fill up something like that
662: [09:42:30] * peter_w quit (Quit: Page closed)
663: [09:46:10] <Kingy> right so if i have a function
664: [09:46:25] <Kingy> function getStuff ($pos = 0) {
665: [09:46:29] <Kingy> and then in template
666: [09:46:39] <Kingy> <% control Stuff(1) %>
667: [09:46:49] <Kingy> why is 1 not being passed through
668: [09:51:25] <zippy> a different get stuff is being called? you havn't flushed?
669: [09:51:36] <kinglozzer> Kingy: What're you doing inside the method? I had a bug the other day where it seemed the function was being called without passing anything into it, but it was then being called a second time with the args passed before being rendered :s
670: [09:52:53] <zippy> and are you really passing 1 or are you trying to pass a variable
671: [09:56:06] <zippy> this is just so impressive https://www.youtube.com/watch?v=xTLSgne_TWQ
672: [10:02:12] <veb> KINGY
673: [10:02:12] <veb> KINGYYYYYY
674: [10:02:14] <veb> MY BUDDY
675: [10:02:34] <Eliseth> ok!
676: [10:02:44] <Eliseth> Nxet step
677: [10:02:50] <Eliseth> http://pastie.org/private/huerpjgwep8kam0kh2ulua
678: [10:02:57] <Eliseth> Works!
679: [10:02:59] <Eliseth> But!
680: [10:03:03] <Eliseth> Looks like shit: https://unsee.cc/nupadori/
681: [10:03:24] * Alboes has joined #silverstripe
682: [10:03:33] <Eliseth> Any tips on how to make that align properly etc?
683: [10:03:34] <Alboes> good morning
684: [10:03:44] <Eliseth> Morning Alboes
685: [10:04:00] * UncleCheese has joined #silverstripe
686: [10:04:10] <Alboes> How can i check if a user is logged in in a ss template?
687: [10:05:11] <UncleCheese> <% if $CurrentMember %>
688: [10:07:08] <veb> why did Kingy ignore me
689: [10:07:15] * MrGuits quit (Ping timeout: 264 seconds)
690: [10:07:23] * Kingy is now known as Kingy[a]
691: [10:07:38] * Kingy[a] is now known as Kingy
692: [10:07:42] <Kingy> sorry back now
693: [10:07:51] * Guits quit (Ping timeout: 264 seconds)
694: [10:07:54] <veb> zippy: holy shit at that accident
695: [10:08:02] <Kingy> kinglozzer: I'm just called a die ($pos) and this stage
696: [10:08:04] <veb> wow!
697: [10:08:04] <veb> how fast was he going
698: [10:08:17] <zippy> the dodge from the guy behind was amazing eh
699: [10:08:41] <kinglozzer> Kingy: That's probably it then. Change it do if($pos) {die('yes')} and see if 'yes' appears
700: [10:08:59] <kinglozzer> I think it's run once with no args, I just have no idea why
701: [10:09:42] * Guits has joined #silverstripe
702: [10:09:48] * MrGuits has joined #silverstripe
703: [10:10:48] <zippy> Kingy: drop in a debug_print_backtrace() in your function and see where it gets called
704: [10:11:38] <Eliseth> Any thoughts on how to get my admin layout straightened out?
705: [10:11:58] * MrGuits quit (Read error: Connection reset by peer)
706: [10:12:02] <veb> Kingy: say hi to me maybe
707: [10:12:02] <veb> >:{
708: [10:12:04] <veb> and I could maybe... help toy
709: [10:12:08] <Alboes> thanks UncleCheese
710: [10:12:09] <lerni> Eliseth can you push Fields?
711: [10:12:10] * Guits quit (Read error: Connection reset by peer)
712: [10:12:17] <Kingy> HI VEB
713: [10:12:17] <zippy> Time: 16.23 seconds, Memory: 79.25Mb
714: [10:12:18] <zippy> OK (18 tests, 77 assertions)
715: [10:12:18] <zippy> vs
716: [10:12:30] <zippy> Time: 1.31 seconds, Memory: 29.00Mb
717: [10:12:30] <zippy> OK (16 tests, 27 assertions)
718: [10:12:32] <veb> why did you not say hi before buddy :(
719: [10:12:33] <lerni> not create a new FieldList
720: [10:12:43] <veb> now, explain problem to me man
721: [10:12:45] <zippy> Kingy: veb miss you very much.
722: [10:12:52] <zippy> Kingy: backtrace it!!
723: [10:12:58] <veb> hehe yeah I told zippy that I missed you :(
724: [10:13:07] <Eliseth> But isn't the Fieldlist needed for that getTranslatableTabSet() to work?
725: [10:13:32] <Kingy> i am backtracing it!
726: [10:13:58] <Kingy> called at viewable data
727: [10:14:08] <veb> Kingy: bro, I can help if you let me.
728: [10:14:16] <Kingy> viewable data from ssviewer and on and on
729: [10:14:32] <Eliseth> I tried $fields = parent::getCMSFields(); but that didn't work
730: [10:15:08] <Kingy> k veb
731: [10:15:38] <Kingy> zippy, how about this question
732: [10:15:39] <Kingy> [10:47] <Kingy> is there a way to access a single array element in template (like you would $blah[3])
733: [10:15:50] <wmk> argh....
734: [10:16:02] <veb> Kingy: yes.
735: [10:17:16] <veb> how's your controller?
736: [10:17:41] <Kingy> returns as arraylist or shite
737: [10:17:48] <veb> ok
738: [10:17:51] <veb> in the view?
739: [10:17:54] <veb> what do you have
740: [10:18:06] <wmk> SphereSilver, around?
741: [10:18:31] <Kingy> I can loop through them fine in the template
742: [10:18:35] <Kingy> just don't want to do that
743: [10:18:41] <veb> okay - why not
744: [10:18:48] <Kingy> because i want them in specific places
745: [10:19:03] <veb> ok
746: [10:19:32] <veb> would with work?
747: [10:20:52] <veb> I was certain you could just call it as $var
748: [10:21:03] * Shrike_Finland has joined #silverstripe
749: [10:21:26] <veb> <% control foo %>
750: [10:21:32] <veb> $var1
751: [10:21:35] <veb> $var2
752: [10:21:44] <veb> <% end_control %>
753: [10:21:58] <veb> sorry I haven't worked with SS in since I was 19
754: [10:22:27] <veb> foo of course is the array you got from your controller
755: [10:23:05] <Kingy> of course
756: [10:23:06] <Kingy> but no
757: [10:23:32] <veb> okay, why?
758: [10:23:36] <veb> din't be snarky with me :-(
759: [10:23:46] <veb> I'm tired and I wanted to help the friend I dearly miss.
760: [10:24:13] <Kingy> sorry
761: [10:24:17] <Kingy> frustrated
762: [10:24:58] <zippy> you can't loop an array like that. you need to pass in an arraydata list. eg. function foo() { return new ArrayData(array('foo1' => 'x', 'foo2' => 'xx'))); etc
763: [10:25:19] <Kingy> hmmk
764: [10:25:30] <wmk> veb, <% control %> is outdated, use <% with %> or <% loop %> with ss3.x
765: [10:25:41] <veb> I said with before.
766: [10:25:49] <veb> he didn't say anything
767: [10:25:59] <zippy> Kingy: then you could just do $Foo.Foo2
768: [10:26:26] <Kingy> zippy :)
769: [10:26:30] * jyrkililja has joined #silverstripe
770: [10:26:33] <veb> :-/
771: [10:26:35] <jyrkililja> back again!
772: [10:26:45] <zippy> Shadeys back, tell a friend
773: [10:27:02] <veb> well I am so sorry, for sucking.
774: [10:27:04] <veb> my bad.
775: [10:27:19] <zippy> 11:27pm, about to roll out a change on live site with db migration.. what could go wrong..
776: [10:27:35] <wmk> zippy, everything could
777: [10:27:43] <zippy> good time to do it, clients not awake
778: [10:27:48] <wmk> ;)
779: [10:28:02] <jyrkililja> :)
780: [10:28:08] <jyrkililja> You never know who is :P
781: [10:28:16] <jyrkililja> awake I mean
782: [10:28:28] <wmk> so this injector is for passing my subclass of an DO instead of the DO itself?
783: [10:30:55] <veb> I honestly though that something like... https://gist.github.com/0640362738066ea83393 would work Kingy
784: [10:31:44] <Kingy> veb: yes
785: [10:31:57] <Kingy> but I need to access a list of widgets
786: [10:32:10] <Kingy> which I can do fine, and I can get them all on the page at once
787: [10:33:42] <veb> or Kingy https://gist.github.com/27fb8748ad608b45d845
788: [10:33:57] <veb> it's sorta psuedo code i can't remember
789: [10:34:05] <Kingy> yep, that's what zippy mentioned, trying that now
790: [10:34:09] <veb> oh
791: [10:34:14] * Copperis quit (Quit: Leaving)
792: [10:34:20] <veb> sorry, my scar is fucke again
793: [10:34:26] <veb> my eye is uh blind
794: [10:34:27] <veb> lol
795: [10:34:32] <veb> yeah
796: [10:34:34] <wmk> hey veb, no problem!
797: [10:34:48] <veb> i think the pain in my scar/implant has caused some shit
798: [10:34:57] <veb> especially fafter my seizure in the weekend
799: [10:35:02] <veb> broke two molars :'(
800: [10:35:08] <veb> but am seeing ENT tomorro
801: [10:35:32] <veb> wmk: what?
802: [10:36:07] <wmk> calm down ;)
803: [10:36:41] <veb> huh?
804: [10:36:50] <veb> sorry mate you've confused me
805: [10:37:03] <wmk> np ;)
806: [10:37:16] <veb> you're fucking with me to confuse me.
807: [10:37:18] <veb> arse.
808: [10:37:19] <veb> :D
809: [10:38:04] <wmk> you're welcome
810: [10:39:11] <wmk> Kingy, maybe ArrayData is better for getting a value by key
811: [10:39:24] <wmk> ArrayList for looping over
812: [10:39:25] * Pyhewk has joined #silverstripe
813: [10:39:29] <wmk> Pyhewk, !!!
814: [10:39:34] <Pyhewk> hullo :>
815: [10:39:43] <Pyhewk> That's a very warm welcome!
816: [10:39:53] <Kingy> wmk, I don't necessarily want to loop over
817: [10:40:02] <Pyhewk> oh Kingy, why not.
818: [10:40:04] <wmk> well, we're warm and like brothers, but no warm brothers
819: [10:40:18] <wmk> (if this joke works in english language)
820: [10:40:23] <Kingy> I just want a list that I can call sporadically throughout the template if that makes sense
821: [10:40:25] <Pyhewk> uhh, sorta.
822: [10:40:27] <Eliseth> Hello Pyhewk
823: [10:40:36] <Pyhewk> But I get that there might be a back reference to something I don't know.
824: [10:40:47] <Pyhewk> Morgen Eliseth
825: [10:41:00] <Kingy> german?
826: [10:41:20] <Pyhewk> Dolbre rano, Dolbre utra, ohayoo gozaimus
827: [10:41:22] <Pyhewk> yes
828: [10:42:11] <veb> I know what Kingy wants.
829: [10:42:18] <veb> so Kingy my code didn't help?
830: [10:42:24] <Kingy> sure does
831: [10:42:26] <veb> can you tell me what it does when you try?
832: [10:42:28] <veb> oh.
833: [10:42:46] <veb> well I guess you have to thank zippy, he'sa pro dude.
834: [10:42:57] <veb> but I wanted to try and see if I remembered lol
835: [10:43:02] <veb> shrug
836: [10:43:41] <Pyhewk> Morena Kingy veb
837: [10:43:54] <veb> it's not mōrena yet dude
838: [10:44:03] <Kingy> i'm not in nz :(
839: [10:44:05] <Pyhewk> yeah so I live in the past now, fuck you.
840: [10:44:15] <Pyhewk> yeah but y'all still kiwis!
841: [10:44:16] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
842: [10:44:24] <Pyhewk> ps, fuck your macron veb
843: [10:44:26] <Pyhewk> :>
844: [10:44:26] <Kingy> صباح
845: [10:44:31] <Pyhewk> o.0
846: [10:44:34] <Kingy> I believe that is it
847: [10:44:53] <veb> why fuck my māori macron
848: [10:45:03] <Pyhewk> because it's not on my keyboard.
849: [10:45:10] <wmk> so Injector !== Object::useCustomClass ???
850: [10:45:13] <Pyhewk> Kingy: what time is it there/
851: [10:45:13] <Pyhewk> ?
852: [10:45:17] <Kingy> Sabah el kheer
853: [10:45:19] <Pyhewk> wmk: nup.
854: [10:45:25] <wmk> :(
855: [10:45:27] <Pyhewk> but useCustomClass is basically the same as:
856: [10:45:32] <Pyhewk> ClassName
857: [10:45:32] <veb> it's software
858: [10:45:33] <Pyhewk> :
859: [10:45:37] <veb> not keunord\
860: [10:45:41] <Pyhewk> class: CustomClassName
861: [10:45:44] <Pyhewk> wmk:
862: [10:45:54] <wmk> Pyhewk, i'll try
863: [10:46:05] <Pyhewk> iirc useCustomClass still works.
864: [10:46:12] <Pyhewk> but... idk. yaml probably better.
865: [10:46:37] <wmk> "class" all lowercase?
866: [10:46:47] * zippy slaps Pyhewk with a trout
867: [10:46:53] <zippy> yaml probably better....!
868: [10:47:30] <wmk> probably...
869: [10:47:43] <Pyhewk> wmk: http://api.silverstripe.org/3.1/source-class-Injector.html#94
870: [10:47:54] <Pyhewk> zippy: pfft, it's *large* trout, GOSH
871: [10:48:04] <veb> zippy: what's your FB? I'll add you!
872: [10:48:14] <zippy> Pyhewk: ah jezus!
873: [10:48:31] <zippy> last time I added someone facebook went down for an hour
874: [10:48:33] <Pyhewk> and you also missed out the 'a bit' part
875: [10:48:51] <Pyhewk> zippy: oh yeah, was it enjoyable?
876: [10:49:18] <Pyhewk> I dunno if I could last an hour... although if facebook's personification is an ugly hag... idk. maybe.
877: [10:50:24] <wmk> hmm, doesn't seem to use my custom class...
878: [10:53:23] * Kingy is now known as Kingy[a]
879: [10:55:53] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
880: [10:56:44] * Shrike_Finland1 has joined #silverstripe
881: [10:58:47] * Shrike_Finland quit (Ping timeout: 252 seconds)
882: [10:59:15] <Pyhewk> that's a shame. Did you do all the red and white stuff?
883: [10:59:23] <Pyhewk> uhh... lol. build and flush?
884: [10:59:35] <Pyhewk> We were just talking about red food dye in the office :/
885: [11:07:40] <wmk> bianco y rocho?
886: [11:09:02] <wmk> Pyhewk, of course i flushed
887: [11:09:29] <Pyhewk> You speak Italian too wmk?
888: [11:09:42] <ss23> pizza!
889: [11:09:43] <ss23> pasta!
890: [11:09:46] <ss23> mozerella!
891: [11:09:54] <wmk> hmm, i tried to type in spain...
892: [11:10:05] * jamesbrowne has joined #silverstripe
893: [11:10:05] <Pyhewk> ah
894: [11:10:08] <wmk> our guitar orchestra has a new song, composed for us.
895: [11:10:16] <wmk> called "blanco y rojo"
896: [11:10:24] <wmk> as austria's flag is red-white-red
897: [11:10:29] <Pyhewk> :)
898: [11:10:49] <wmk> unfortunately only audio, no video available
899: [11:13:45] <wmk> when debugging in phpstorm / idea: how can i jump to a specific method in a chain?
900: [11:13:55] <wmk> if my code is:
901: [11:13:56] <wmk> $record = $gridField->getList()->byId($request->param("ID"));
902: [11:14:04] <wmk> i want jump to the "byID" part...
903: [11:14:32] <Pyhewk> control click?
904: [11:14:35] <Pyhewk> idk :<
905: [11:16:23] <wmk> hmm
906: [11:16:35] <wmk> damn, byID ignores my customclass
907: [11:18:29] <jamesbrowne> I've got an "ERROR [Warning]: timezone_open(): Unknown or bad timezone" error on saving a DataObject containing a date field, only when there is a date in the field. The error is suppressed in a "live" environment, as opposed to "dev", and everything works smoothly. Anyone hit this error?
908: [11:19:33] <wmk> jamesbrowne, seems like timezone isn't set in your php ini
909: [11:19:46] <wmk> which php version?
910: [11:19:55] <wmk> didn't have it on 5.3, but on 5.5
911: [11:20:01] <wmk> maybe on 5.4
912: [11:21:36] <jamesbrowne> wmk, It's a local vagrant machine and I'm on PHP Version 5.5.21-1+deb.sury.org~precise+2
913: [11:22:28] <jamesbrowne> wmk, timezone is Europe/London
914: [11:22:45] <Pyhewk> snew bruvs!
915: [11:22:58] <Pyhewk> snewan!
916: [11:23:48] <wmk> seems not to be recognized...?
917: [11:23:51] <Pyhewk> HA
918: [11:23:51] <kinglozzer> Pyhewk: Send some this way will ya?
919: [11:24:20] <Pyhewk> kinglozzer: yi dun wan this stoof man
920: [11:24:21] <wmk> though it should be correct
921: [11:24:32] <Pyhewk> it's snowing, but the sun is out.
922: [11:24:47] <Pyhewk> moments later... it's sleeting.
923: [11:24:50] <Pyhewk> ....
924: [11:24:55] <Pyhewk> and now it's just raining.
925: [11:25:11] <Pyhewk> It's all because I opened the fuck'n blind.
926: [11:25:13] <Pyhewk> HURGH
927: [11:25:21] <Pyhewk> jamesbrowne in the channel!
928: [11:25:26] <jamesbrowne> :-)
929: [11:25:40] <jamesbrowne> I'm definitely here.
930: [11:26:01] <Pyhewk> and yeah it'll work in live. It's only a warning, not a fatal error
931: [11:27:33] <jamesbrowne> Yeah. Thanks. It's on a site that's been live for a good few months. I just wondered if anyone else had had the same problems.
932: [11:28:11] <wmk> jamesbrowne, had it when timezone wasn't configured in php.ini
933: [11:29:17] <jamesbrowne> wmk, perhaps I've got a configuration error. I definitely have timezone configured though, phpinfo(); reports Europe/London back to me. I'll try to investigate.
934: [11:29:25] <wmk> Pyhewk, is it possible that gridfield ignores my customclass setting?
935: [11:29:43] <wmk> jamesbrowne, hmmm...
936: [11:31:11] <Pyhewk> wmk: well, I'd hope not. But if it uses new $Class(args) instead of Injector::create($Class, args) or whatever it is, then perhaps yes.
937: [11:31:31] <Pyhewk> but I'm reasonably sure it doesn't (ignore injector that is)
938: [11:32:07] <Pyhewk> jamesbrowne: could be that your site or vhost is unsetting the timezone
939: [11:32:22] <Pyhewk> the error doesn't happen in dev at all you say?
940: [11:35:08] * tilly has joined #silverstripe
941: [11:35:11] <jamesbrowne> The error happens only in dev, so I wouldn't be surprised if it is a configuration error at my end.
942: [11:36:21] <Pyhewk> There's no error in any log but suppressed to output in live?
943: [11:37:07] <jamesbrowne> Sorry, I think it does happen on live, but the error is suppressed by setting the environment. I'll check that in a second.
944: [11:38:11] <jamesbrowne> Right. I'm being called in to a meeting. Back later.
945: [11:38:20] * jamesbrowne quit (Quit: My Mac has gone to sleep. ZZZzzz…)
946: [11:39:28] * tilly quit (Ping timeout: 246 seconds)
947: [11:43:46] <veb> Kingy[a]: why
948: [11:51:25] * lerni quit (Remote host closed the connection)
949: [11:56:51] <wmk> is there a possibility to call an extension after all other extensions have been called?
950: [11:56:59] <wmk> with $this->extend()
951: [11:57:07] * GioVdK has joined #silverstripe
952: [12:01:39] * r_hector has joined #silverstripe
953: [12:16:19] * r_hector quit (Quit: Leaving.)
954: [12:20:40] * Shrike_Finland1 quit (Quit: Leaving.)
955: [12:29:49] * Hailwood has joined #silverstripe
956: [12:30:14] * Shrike_Finland has joined #silverstripe
957: [12:32:20] <Hailwood> Hey guys, I'm using the sunnysideup ecommerce platform, and I noticed that account form isn't saving. Am I correct in my belief that there should be $member->write(); in between these two lines? https://github.com/sunnysideup/silverstripe-ecommerce/blob/master/code/forms/ShopAccountForm.php#L167-168
958: [12:33:20] <ss23> Without knowing for sure, certainly looks like it
959: [12:33:24] <ss23> oh uh
960: [12:33:29] <ss23> $form->saveInto($member);
961: [12:33:32] <ss23> I thought that saved
962: [12:33:35] <ss23> maybe not
963: [12:33:36] <ss23> idk
964: [12:34:42] <wmk> ss23, doesn't write the member DO
965: [12:34:48] <wmk> just ads the form values to it
966: [12:35:15] <ss23> makes sense
967: [12:35:18] <ss23> then yes, probably does, Hailwood
968: [12:43:58] <wmk> argh, getting two extensions playing nice together is sometimes a bit difficult
969: [12:44:15] <ss23> Yes :(
970: [12:44:28] <Hailwood> ss23, wmk, Cheers. That was annoying to track down heh
971: [12:48:18] <wmk> how can i define the order of the extensions?
972: [12:51:54] <ss23> I think you can do the "before" or "after" thing
973: [12:52:09] <ss23> Not sure how it works though sorry
974: [12:55:08] <wmk> ss23, i tried after in my yml, didn't get it working
975: [13:17:55] * Shrike_Finland1 has joined #silverstripe
976: [13:20:57] * Shrike_Finland quit (Ping timeout: 276 seconds)
977: [13:25:43] * r3v3rb has joined #silverstripe
978: [13:25:46] <r3v3rb> hello
979: [13:26:26] <r3v3rb> if I have 'purchase/$ID/$OtherID/$MessageID' => 'purchase' in my $url_handlers I can access $ID, $OtherID but not $MessageID - any idea why not?
980: [13:26:36] <r3v3rb> using getURLParams()
981: [13:36:02] <r3v3rb> is anyone at home?
982: [13:36:29] * veb quit (Quit: veb-irc: quit)
983: [13:42:39] * DimiStripe has joined #silverstripe
984: [13:46:16] * Azure quit (Read error: Connection reset by peer)
985: [13:46:37] <wmk> r3v3rb, ?
986: [13:46:57] * Azure has joined #silverstripe
987: [13:48:12] * Shrike_Finland1 quit (Quit: Leaving.)
988: [13:53:19] * muskie9 has joined #silverstripe
989: [13:58:21] <r3v3rb> wmk: :P
990: [14:02:22] * wmk quit (Ping timeout: 245 seconds)
991: [14:15:07] * Hailwood quit (Ping timeout: 255 seconds)
992: [14:31:37] * catcher has joined #silverstripe
993: [14:37:36] * tscole has joined #silverstripe
994: [14:38:01] * tscole has left #silverstripe
995: [14:54:18] * eagles0513875_ has joined #silverstripe
996: [14:57:56] <Pyhewk> sorry r3v3rb, can't answer, I'm not at home.
997: [14:58:06] <r3v3rb> no worries Pyhewk
998: [14:58:19] <r3v3rb> working a way around it instead
999: [14:58:21] <r3v3rb> :D
1000: [14:58:34] <Pyhewk> it's because Page controller comes before your route.
1001: [14:58:41] <Pyhewk> which matches, so it's used.
1002: [14:58:53] <Pyhewk> this is where before & after priorities come in.
1003: [14:59:04] <Pyhewk> try $Action instead of $MessageID
1004: [14:59:07] <Pyhewk> I bet it'll work.
1005: [14:59:14] <r3v3rb> Pyhewk: you job interviewing?
1006: [14:59:20] <Pyhewk> r3v3rb: eh?
1007: [14:59:40] <r3v3rb> it works for every item up to getting hold of $MessageID if it is passed in the url
1008: [14:59:43] <Pyhewk> I'm job... thinging.
1009: [14:59:57] <Pyhewk> r3v3rb: var_dump($this->request)
1010: [15:00:07] <Pyhewk> it'll list your url params
1011: [15:00:20] <Pyhewk> even just dump $this->request->params()
1012: [15:00:21] <Pyhewk> perhaps
1013: [15:00:21] <r3v3rb> Pyhewk: phpstorm shows all bar the $MessageID in the url params
1014: [15:00:23] <Pyhewk> something ilke that
1015: [15:00:32] <r3v3rb> :( so its not being recognised for some reason
1016: [15:00:36] <Pyhewk> r3v3rb: yes, but $ID and $OtherID are part of the 'default' route.
1017: [15:00:44] <r3v3rb> got it
1018: [15:00:46] <Pyhewk> rename them.
1019: [15:00:48] <Pyhewk> flush
1020: [15:00:51] <Pyhewk> see if they're still there.
1021: [15:00:52] <r3v3rb> so my url_handlers is being ignored
1022: [15:00:58] <r3v3rb> flush a million times
1023: [15:01:03] <Pyhewk> well
1024: [15:01:08] <r3v3rb> change names yeh
1025: [15:01:13] <Pyhewk> you just gave a route definition, you didn't say where you'd defined it.
1026: [15:01:51] * cloph_away quit (Ping timeout: 264 seconds)
1027: [15:05:26] <Pyhewk> r3v3rb: ?
1028: [15:06:01] <r3v3rb> sorry in the page class
1029: [15:06:08] <r3v3rb> not routes.yml
1030: [15:09:17] <r3v3rb> 15minutes to go
1031: [15:13:10] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
1032: [15:14:05] * UndefinedOffset has joined #silverstripe
1033: [15:14:43] * muskie9 has joined #silverstripe
1034: [15:16:42] <GioVdK> Hello
1035: [15:17:22] <GioVdK> I know that with ?showqueries=1 you can show the queries, but is it possible to see also the ones executed in the ajax calls ?
1036: [15:17:24] * lerni_ has joined #silverstripe
1037: [15:17:28] * lerni_ quit (Remote host closed the connection)
1038: [15:17:36] * lerni_ has joined #silverstripe
1039: [15:18:24] <GioVdK> ok found it... I just need to open the ajax call url on its own and append the showqueries param ;)
1040: [15:26:49] * iconjen has joined #silverstripe
1041: [15:26:58] <iconjen> hi guys, i'm kinda new here
1042: [15:28:09] <iconjen> would like to ask some help regarding SS upgrade from 3.0 to 3.1
1043: [15:29:54] <kinglozzer> iconjen: Have you seen this? http://doc.silverstripe.org/en/changelogs/3.1.0/#upgrading
1044: [15:30:16] <kinglozzer> Any other questions, just ask - don't ask to ask!
1045: [15:31:30] <iconjen> yes, i've seen that one. apparently, some (or most) of the errors i'm seeing are not in there.
1046: [15:32:22] <iconjen> so far what i did was delete the old CMS and FRAMEWORK folders and replace it with the CMS and FRAMEWORK folders from the new version
1047: [15:32:47] <iconjen> when i ran dev/build, the first thing i got was this: http://awesomescreenshot.com/0294acm503
1048: [15:33:20] <catcher> iconjen, you'll need to clear your caches, but you've got some other work to do first.
1049: [15:33:51] <catcher> iconjen, my suggestion is to completely delete & re-create the cache dir.
1050: [15:34:00] <iconjen> okay, where can i find that?
1051: [15:35:20] <kinglozzer> iconjen: You'll probably need to update all your modules as well - that error is because you're running an old version of the "geoip" module
1052: [15:35:49] <iconjen> yeah, i did that. after that i got a new error
1053: [15:35:55] <iconjen> wait a sec...
1054: [15:36:10] <iconjen> Fatal error: Class 'Options' not found in D:\public_html\inspiredwd\framework\core\manifest\ConfigStaticManifest.php(371) : eval()'d code on line 1
1055: [15:37:09] <kinglozzer> iconjen: Well, what code is calling that?
1056: [15:37:38] <iconjen> that would be this one: framework\core\manifest\ConfigStaticManifest.php
1057: [15:38:11] <iconjen> $value = eval('static $temp = '.$value.";\n".'return $temp'.";\n");
1058: [15:38:25] <kinglozzer> iconjen: Look at the stack trace, does it give you any indication of where that is being called from?
1059: [15:38:28] <catcher> iconjen, how about some custom code?
1060: [15:39:13] <iconjen> @catcher, what do you mean some custom code?
1061: [15:39:51] <catcher> iconjen, as kinglozzer said, check the stack trace. There's probably some code you've written that needs to be updated.
1062: [15:40:55] <iconjen> uhh bummer. actually i'm not the one who developed this one. i'm just sort of "asked" to upgrade it to 3.1
1063: [15:41:00] <iconjen> T^T
1064: [15:41:01] <kinglozzer> My guess: somewhere, there's code like "private/public/protected static $something = Options::something"
1065: [15:41:14] <kinglozzer> Try searching the codebase for "= Options" (limit it to just PHP files)
1066: [15:41:26] <iconjen> okay will try that.
1067: [15:41:29] <iconjen> gimme a minute...
1068: [15:44:09] * g4b0_ has joined #silverstripe
1069: [15:45:41] <iconjen> hmmmm, aws module seems to use Options:: a lot
1070: [15:46:50] <kinglozzer> iconjen: Is it using it in "private static $property = " though?
1071: [15:46:57] <kinglozzer> Or just in general code?
1072: [15:48:30] <iconjen> no, i don't think so. i think it's just using it in general code
1073: [15:48:36] <iconjen> not the private static thing
1074: [15:48:41] <Alboes> how to make depended live dropdownfields? Like select Category and after the Subcategory without submit first
1075: [15:48:45] <kinglozzer> That should be okay
1076: [15:49:42] <kinglozzer> The error is coming from a static class property
1077: [15:50:51] <iconjen> $value = eval('static $temp = '.$value.";\n".'return $temp'.";\n");
1078: [15:50:58] <iconjen> that's the line from earlier before
1079: [15:51:07] <iconjen> i tried changing it to this: $value = eval('private static $temp = '.$value.";\n".'return $temp'.";\n");
1080: [15:51:12] <iconjen> or should it be public?
1081: [15:51:36] <kinglozzer> iconjen: Don't change that line, the error is somewhere else - it's just being highlighted there
1082: [15:52:01] * nontgor quit (Remote host closed the connection)
1083: [15:53:24] <kinglozzer> iconjen: Okay, insert this before that line: if(strpos($value,'Options') !== false) die($class);
1084: [15:53:39] <kinglozzer> That should then echo out a class name, the error is somewhere in that class - you just have to find it
1085: [15:53:47] <iconjen> okay will try, wait
1086: [15:53:50] <kinglozzer> (insert that code snipper above like 371)
1087: [15:53:53] <kinglozzer> snippet*
1088: [15:54:40] <iconjen> EditableMultipleOptionField
1089: [15:55:24] <iconjen> static $has_many = array( "Options" => "EditableOption" );
1090: [15:55:38] <iconjen> is this the part where i change all static $has_many $has_one, etc to private static?
1091: [15:55:52] <kinglozzer> iconjen: That's the userforms module, you'll need to update that too
1092: [15:58:27] * wmk has joined #silverstripe
1093: [15:58:48] <iconjen> still getting the error though
1094: [15:59:03] <Pyhewk> yeah, update it.
1095: [15:59:08] <Pyhewk> update all the things, not just core.
1096: [15:59:28] <iconjen> change static to private static, correct?
1097: [15:59:34] <Pyhewk> if you're editing code you didn't write, you're doing it wrong.
1098: [15:59:40] <Pyhewk> so no. Do not. Just update userforms.
1099: [15:59:53] <Pyhewk> [15:55] <kinglozzer> iconjen: That's the userforms module, you'll need to update that too
1100: [16:00:28] <kinglozzer> iconjen: Download the latest version from here: https://github.com/silverstripe/silverstripe-userforms
1101: [16:00:37] <kinglozzer> replace the 'userforms' folder
1102: [16:00:43] <iconjen> got it. thanks!
1103: [16:00:53] <Pyhewk> iconjen: as a rule of thumb, most things can be found at addons.silverstripe.org
1104: [16:01:16] <iconjen> perfect! i was wondering where i could get all the other modules so i can update
1105: [16:01:34] <Pyhewk> editing core code (be it SS core or a module's core) should only ever be done as a last resort. Saves future hassle.
1106: [16:01:49] <kinglozzer> Pyhewk: Unless you're simon_w
1107: [16:01:50] <kinglozzer> :P
1108: [16:02:01] <kinglozzer> Where is he? :(
1109: [16:02:07] <Pyhewk> iconjen: not _all_ things are listed there though, so if you can't find it it pays to also search github, and then failing that, google in general.
1110: [16:02:15] <Pyhewk> kinglozzer: slowly detatching
1111: [16:02:27] <kinglozzer> Mm, logbot has disappeared from open source now too
1112: [16:02:38] <Pyhewk> oh?
1113: [16:02:46] <iconjen> okay, duly noted. thanks mate!
1114: [16:02:47] * wmk quit (Ping timeout: 245 seconds)
1115: [16:02:49] <kinglozzer> <freenode> ss-logss-log's future existence is no longer certain.
1116: [16:02:51] <kinglozzer> :'(
1117: [16:02:58] <Pyhewk> the bot doesn't bother me so much, it's the logs that are the gold for the most part.
1118: [16:03:03] <Pyhewk> so it's just data.
1119: [16:03:16] <Pyhewk> If someone steps forward to take over the logger, I'm sure he'd share that much.
1120: [16:03:26] <kinglozzer> mm, *cough* ss23
1121: [16:03:34] <Pyhewk> yeh. gosh.
1122: [16:11:52] <iconjen> Strict Standards: Declaration of Translatable::augmentSQL() should be compatible with DataExtension::augmentSQL(SQLQuery &$query) in /var/www/inspiredwd/translatable/code/model/Translatable.php on line 154 Warning: array_key_exists() expects parameter 2 to be array, boolean given in /var/www/inspiredwd/framework/i18n/i18n.php on line 2461 Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Invalid locale "e
1123: [16:12:13] <iconjen> i updated translatable already
1124: [16:12:46] <kinglozzer> iconjen: Did you download the "master" branch from here? https://github.com/silverstripe/silverstripe-translatable
1125: [16:12:50] <kinglozzer> Because that's the wrong version
1126: [16:13:04] <kinglozzer> https://github.com/silverstripe/silverstripe-translatable/tree/2.0 < that's the one you want to download for 3.1
1127: [16:13:18] <iconjen> oh crap
1128: [16:13:20] <iconjen> okay
1129: [16:15:09] * lerni_ quit (Remote host closed the connection)
1130: [16:17:46] <iconjen> getting the userforms editableoptionfield options error thing again
1131: [16:19:39] <kinglozzer> iconjen: You downloaded it from here? https://github.com/silverstripe/silverstripe-userforms
1132: [16:19:51] <iconjen> yes, i did. twice
1133: [16:20:59] <kinglozzer> The module isn't there twice or something?
1134: [16:21:07] <kinglozzer> like "userforms" and "silverstripe-userforms"
1135: [16:21:18] <iconjen> i downloaded it twice to make sure i downloaded the correct one :))
1136: [16:24:18] <iconjen> nope, still getting the same error
1137: [16:24:23] <iconjen> Fatal error: Class 'Options' not found in /var/www/inspiredwd/framework/core/manifest/ConfigStaticManifest.php(371) : eval()'d code on line 1
1138: [16:33:06] <kinglozzer> iconjen: Does EditableMultipleOptionField definitely say: private static $has_many = array( "Options" => "EditableOption" ); ?
1139: [16:33:22] <iconjen> no. it's just static
1140: [16:33:25] <iconjen> not private static
1141: [16:33:31] <kinglozzer> iconjen: You're still using the wrong version
1142: [16:33:52] <kinglozzer> https://github.com/silverstripe/silverstripe-userforms/archive/master.zip
1143: [16:33:58] * ThePeach has joined #silverstripe
1144: [16:34:04] <iconjen> ah no wait, it says private static now
1145: [16:35:05] <iconjen> yep, downloaded it again. wait will try now
1146: [16:38:15] <iconjen> Fatal error: Access level to BlogEntry::$has_one must be public (as in class Page) in /var/www/inspiredwd/blog/code/BlogEntry.php on line 7
1147: [16:41:16] <zauberfisch> hey guys, funny story, I have a question about upload field
1148: [16:41:22] <kinglozzer> iconjen: Upgrade the blog module
1149: [16:41:37] <zauberfisch> is there an api for setting which buttons are displayed to the user?
1150: [16:41:44] <zauberfisch> I haven't seen anything so far
1151: [16:41:54] <iconjen> i already did
1152: [16:42:07] <iconjen> https://github.com/silverstripe/silverstripe-blog
1153: [16:42:18] <kinglozzer> iconjen: You didn't :P
1154: [16:42:27] <kinglozzer> Or....
1155: [16:42:32] * jenniferaslan has joined #silverstripe
1156: [16:42:38] <kinglozzer> You haven't updated your public static to private static in Page
1157: [16:44:39] <iconjen> now getting same options error
1158: [16:44:41] <iconjen> again
1159: [16:47:30] <zauberfisch> oh, I see there is "setCanAttachExisting()" and so on for all adding buttons
1160: [16:47:40] <zauberfisch> but there is none for the remove or delete button D:
1161: [16:50:50] * cloph_away has joined #silverstripe
1162: [16:52:53] <Pyhewk> wtf eval code
1163: [16:53:26] <kinglozzer> Pyhewk: Mmm, everyone's favourite
1164: [16:53:58] <iconjen> T^T
1165: [16:54:13] <kinglozzer> I also like that in _config.php, $this is an instance of SS_ConfigManifest
1166: [16:54:34] <iconjen> i guess installing a clean 3.1 and adding each module one by one, seeing which module works and doesn't, seems a better idea
1167: [16:55:14] <Pyhewk> at this point iconjen, that's probably easiest
1168: [16:55:25] <Pyhewk> even better, you can convert the install to composer.
1169: [16:55:33] <iconjen> yeah. thanks for the assist though.
1170: [16:55:45] <Pyhewk> write a json file, composer stuff, job done.
1171: [16:55:59] <Pyhewk> edit the code in mysite that's breaking the site. Job done :D
1172: [16:58:47] * g4b0_ quit (Quit: Sto andando via)
1173: [16:59:06] <iconjen> thanks guys, will try again tomorrow.
1174: [17:03:13] * iconjen quit (Ping timeout: 246 seconds)
1175: [17:10:12] * cloph_away is now known as cloph
1176: [17:13:43] <Pyhewk> must be about home time
1177: [17:13:45] * Pyhewk quit ()
1178: [17:16:45] * travis-ci has joined #silverstripe
1179: [17:16:45] <travis-ci> silverstripe/silverstripe-cms#1112 (3 - 475b6d1 : Damian Mooyman): The build has errored.
1180: [17:16:45] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/e9e95b9dbab5...475b6d18e50d
1181: [17:16:45] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/47080596
1182: [17:16:45] * travis-ci has left #silverstripe
1183: [17:19:37] * kinglozzer quit ()
1184: [17:26:15] * Alboes quit (Remote host closed the connection)
1185: [17:37:31] * Shrike_Finland has joined #silverstripe
1186: [17:48:06] * ThePeach quit (Quit: leaving)
1187: [17:51:38] * Shrike_Finland quit (Quit: Leaving.)
1188: [18:04:28] * GioVdK quit (Ping timeout: 246 seconds)
1189: [18:08:36] * Dedra has joined #silverstripe
1190: [18:16:47] <Dedra> Hi, I have a SS2 contact form: http://pastie.org/private/oiuoo1z5gxsysfamnwhyq and I don't get any spaces in the email. see: https://dl.dropboxusercontent.com/u/23661277/email.png
1191: [18:17:06] <Dedra> any sugestion?
1192: [18:28:59] * benjhocking quit (Read error: Connection reset by peer)
1193: [18:29:42] <Dedra> I looked into send() and i don't find any trim on the message field hmm
1194: [18:29:58] <Dedra> Let me search in Mailer.php
1195: [18:31:59] <Dedra> should i change it from send() to sendPlain() to get the spaces back? I mean it's just a simple form:
1196: [18:32:12] <Dedra> http://dedra-sc.com/kontakt
1197: [18:51:15] * gelignite has joined #silverstripe
1198: [18:53:10] * Stomach has joined #silverstripe
1199: [18:55:47] * Nachos_ has joined #silverstripe
1200: [18:58:06] <Nachos_> Hello - does anybody know how to modify the cms insert image function? I'd like to avoid inserting width and height to keep responsive and to add available image classes in the dropdown menu. Help would be very much appreciated, thanks for reading!
1201: [18:59:02] <Nachos_> For 2.4 there was a solution modifying cms/code/ThumbnailStripField.php which is deprecated, I'm am using 3.1
1202: [19:33:06] * MichalKleiner|aw is now known as MichalKleiner
1203: [19:33:10] <MichalKleiner> morning Nachos_
1204: [19:34:36] <MichalKleiner> you can create your class i.e. ImageSanitizeParses extending TextParser with a public function parse(). That will do whatever you need from $this->content and return it as a string
1205: [19:34:50] * mobiusnz has joined #silverstripe
1206: [19:34:56] <MichalKleiner> in template you then use it as $fieldname.parse(ImageSanitizeParser)
1207: [19:35:29] <MichalKleiner> I'll copypaste a sspaste for you
1208: [19:35:40] <Nachos_> Thank you!!!
1209: [19:36:13] * zippy has joined #silverstripe
1210: [19:38:20] <MichalKleiner> http://www.sspaste.com/paste/show/54c93a6b92cdf
1211: [19:38:58] <MichalKleiner> it uses 3rd party simple_html_dom parses but you can also you just a regex to remove all width and height attributes from images
1212: [19:39:32] <Dedra> MichalKleiner, do you have any solution for my contact form?
1213: [19:39:32] <Nachos_> where do I place the file then?
1214: [19:39:46] * Ryan-Toast has joined #silverstripe
1215: [19:39:52] <Dedra> Hi, I have a SS2 contact form: http://pastie.org/private/oiuoo1z5gxsysfamnwhyq and I don't get any spaces in the email. see: https://dl.dropboxusercontent.com/u/23661277/email.png
1216: [19:40:13] <MichalKleiner> Dedra you mean you're not getting new lines?
1217: [19:40:20] <Dedra> right.
1218: [19:40:45] <Dedra> like trimed. i looked into the methods. but didnt find anything
1219: [19:40:58] <Dedra> well, i found the sendPlain() instead of send()
1220: [19:41:18] <Dedra> perhaps this could help. Because my contact form is a simple one: http://dedra-sc.com/kontakt
1221: [19:41:19] <MichalKleiner> i believe they are there, you just need to convert them to <br> so before sending the email pass the content via nl2br function
1222: [19:41:34] <Dedra> ah, i see
1223: [19:41:47] <Dedra> so i just can (should) use nl2br before sending, makes sense
1224: [19:41:56] <MichalKleiner> that would be my first bet
1225: [19:42:03] <Dedra> let me try that. I though SS would do the in the class itself
1226: [19:42:28] <Dedra> well, atleast SS2 should to that on a html send ^^
1227: [19:42:59] <MichalKleiner> I think it shouldn't change your content without you telling it to do so
1228: [19:43:02] <MichalKleiner> even when html
1229: [19:43:13] <MichalKleiner> that's more whether it strips tags out or not, not to create them
1230: [19:43:54] <Dedra> i ee
1231: [19:43:56] <Dedra> *see
1232: [19:44:18] <Dedra> oh, another short question. my contact form is german, but i get english error messages. I searched for it. but found nothing
1233: [19:44:47] <Dedra> i have translation files de_DE and en_US.php but i dont know the place holder variable for that contact form to change it
1234: [19:45:10] * r3v3rb quit (Quit: r3v3rb)
1235: [19:45:25] <Dedra> like this $lang['de_DE']['ArticlePage']['BE_AUTHOR_LABEL'] = 'Author Name'; (but just the contact form variables from ss)
1236: [19:46:37] <MichalKleiner> well I'd search for the error message within the project and it should come up somewhere
1237: [19:47:45] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
1238: [19:47:57] <Dedra> already did
1239: [19:48:18] <Dedra> and nothing. that's why i'm asking. i searched for: "Please fill out"
1240: [19:48:23] * wracu has joined #silverstripe
1241: [19:48:26] <Dedra> so that the variable isn't in the search
1242: [19:48:39] <Dedra> Please fill out "E-Mail", it is required.
1243: [19:48:43] <Dedra> is the whole error message for it
1244: [19:48:51] <Nachos_> @MichalKleiner I put the code in /mysite but I didn't see a result
1245: [19:49:44] <MichalKleiner> did you flush?
1246: [19:49:50] <MichalKleiner> dev/build?
1247: [19:52:36] <Nachos_> yep - nothing changed in the cms, still automatically adding height and width with the insert image function
1248: [19:54:08] <MichalKleiner> Nachos_: you will see it in the backend in the wysiwyg editor
1249: [19:54:31] <MichalKleiner> and the function I pasted doesn't do exactly that, you need to tweak it for you, it was more like a hint
1250: [19:54:41] <MichalKleiner> and it modifies just the output going to the template
1251: [19:54:46] <MichalKleiner> I mean frontend
1252: [19:54:51] <MichalKleiner> Dedra: try this - http://www.webmasterbulletin.net/2008/07/silverstripe-form-validation-translation/78
1253: [19:55:23] <Dedra> I made the nl2br solution: $data['Comments'] = nl2br($data['Comments']); and it works :) not the prettiest way but it's ok ^^
1254: [19:55:29] <Dedra> let me see your link
1255: [19:55:34] <Nachos_> MichalKleiner: OK I see, thanks anyway!
1256: [19:56:15] <MichalKleiner> np, if I had more time I'd code it for ya but have to get back to work now
1257: [19:56:53] <Dedra> well hmm, that's a database solution.
1258: [19:57:09] <Dedra> have fun MichalKleiner thx for your help :)
1259: [19:58:03] <Dedra> I understand your link. No problem at all. I just think there should be a way via the translation files in my project. I will test some things. cya
1260: [19:58:03] <MichalKleiner> Dedra: you don't need to add the Language field if you can provide current language somehow differently
1261: [19:58:17] <Dedra> y. I try something on my own :)
1262: [19:58:40] <MichalKleiner> Dedra: I haven't done much about translations, sorry.. and in NZ it's too early for the skilled guys :-D
1263: [19:58:59] <Dedra> haha, yeah np at all :D
1264: [19:59:06] <Dedra> "early" like 21.00 xd
1265: [19:59:14] <Dedra> but yes, we are all night owls :)
1266: [20:03:48] <Ryan-Toast> Dedra: Wouldn’t you just create an email template?
1267: [20:04:59] <Dedra> well, like i understand that solution: you create a new "tab" in the backend for the translations.
1268: [20:05:09] <Dedra> So that you have to enter that in the backend (admin menu) ?! O.o
1269: [20:06:16] <Dedra> mysite/lang/de_DE.php (i try / want to add the error messages in here). Or just translate the source of it don't know ^^
1270: [20:07:51] <Dedra> http://pastie.org/private/zo6negc68tetfzgqp3hzg that's what I'm using
1271: [20:08:57] <Dedra> And that's static. Like 3 fields. Name, Email and Comments. And I just need to add 3 error translations for that. That's what I think. It's not a backend form i can create as an editor (user of the backend). It's just static
1272: [20:14:49] <MichalKleiner> brb
1273: [20:14:51] * MichalKleiner quit ()
1274: [20:15:23] * glenn-bautista has joined #silverstripe
1275: [20:22:22] * novaweb quit (Quit: Leaving)
1276: [20:26:47] * Michal__ has joined #silverstripe
1277: [20:27:16] * Michal__ is now known as MichalKleiner
1278: [20:29:39] <muskie9> anyone get this when running tests locally? 3.1.9 http://puu.sh/f9Nz7/04c2d89635.png
1279: [20:31:50] * Nightjar has joined #silverstripe
1280: [20:33:41] <MichalKleiner> haven't seen it but you may try to increase the limit a bit
1281: [20:33:43] <MichalKleiner> xdebug.max_nesting_level = 500
1282: [20:34:04] * Hailwood has joined #silverstripe
1283: [20:35:00] <Nightjar> MichalKleiner, if you're recursing that much, you've probably already got more than enough info to find your problem.
1284: [20:35:19] <Nightjar> default is 100
1285: [20:36:24] <MichalKleiner> that's true..
1286: [20:36:39] * catcher quit (Quit: Leaving)
1287: [20:37:26] <MichalKleiner> that would be the very next step after proving that increasing the limit is not helping :-D
1288: [20:37:30] * spekulatius has joined #silverstripe
1289: [20:43:34] <Nightjar> o.0 ss-log isn't ss-logging it would seem.
1290: [20:43:36] <Nightjar> since an hour ago
1291: [20:43:41] <Nightjar> weird.
1292: [20:44:30] <Ryan-Toast> Simon not getting enough money from his ads.
1293: [20:46:44] <Nightjar> Oh, no it seems like it's just delayed.
1294: [20:46:50] <Nightjar> By an hour I guess.
1295: [20:47:42] <Nightjar> Morena Ryan-Toast
1296: [20:48:00] <Ryan-Toast> Nightjar: Morning?
1297: [20:48:20] <Ryan-Toast> :P
1298: [20:49:23] <Nightjar> ae
1299: [20:50:19] <Ryan-Toast> Confuse.
1300: [20:51:21] <MichalKleiner> dobre rano
1301: [20:51:27] <Nightjar> Te Reo bro.
1302: [20:51:39] <Nightjar> Indeed MichalKleiner
1303: [20:52:07] <MichalKleiner> ;-)
1304: [20:52:15] * zippy has joined #silverstripe
1305: [20:52:17] <MichalKleiner> that's good morning in czech
1306: [20:52:26] <Nightjar> Polish
1307: [20:52:32] <MichalKleiner> dobré ráno to be precise
1308: [20:52:46] <Nightjar> same in both I guess :>
1309: [20:52:50] <MichalKleiner> similar
1310: [20:53:56] <zippy> got a weird issue. i am doing $pages = $this->Children()->filter('ClassName', 'MyPage'); to get a list of pages under this page of that class. The problem is it's missing some pages. Using the Children() call should get all pages which are published and the user canView()
1311: [20:54:06] <zippy> i've checked and they are published and show in menu is ticked on them
1312: [20:54:20] <zippy> if I flush, or click save and publish then the pages show, until I log out and log in again
1313: [20:55:21] <zippy> even doing $this->Children()->Count() returns the wrong number... so it seems something is getting caught in the Children call
1314: [20:55:38] * Colin[pi] has joined #silverstripe
1315: [20:56:11] <zippy> Colin[pi]: o/
1316: [20:56:57] <Nightjar> zippy, no, AllChildren will.
1317: [20:57:07] <Colin[pi]> HAI ZIPPY o/
1318: [20:57:09] <Nightjar> "Using the Children() call should get all pages which are published and the user canView() "
1319: [20:57:23] <zippy> Nightjar: annnd show in menus
1320: [20:57:28] <Nightjar> wrong, only those 'showinmenus'=1
1321: [20:57:35] <Nightjar> mmmm'
1322: [20:57:56] <zippy> in the Children() function there is code which loops over all of them checking the canView() permission
1323: [20:58:06] <Nightjar> yup
1324: [20:58:13] <Nightjar> is slow coz arraylist, not query
1325: [20:58:14] <zippy> but yea, AllChildren seems to only fetch published pages, I thought it got ALL children.
1326: [20:58:44] <Nightjar> well yeah, it's for ALL children (including hidden). As opposed to staged items.
1327: [20:58:56] <Colin[pi]> zippy: all children regardless of their menu status
1328: [20:59:00] <Nightjar> all queries are always from the selected stage.
1329: [20:59:36] <Nightjar> The difference between Children and AllChildren is just ShowInMenus filter.
1330: [20:59:56] <Nightjar> eg. for creating sidebar menus.
1331: [20:59:58] * nicolaas has joined #silverstripe
1332: [21:00:07] <Nightjar> as opposed to listing stuff.
1333: [21:00:31] <Nightjar> Are you Czech MichalKleiner ?
1334: [21:00:46] <MichalKleiner> yip
1335: [21:00:55] <Nightjar> Did I meet you at SSEU?
1336: [21:01:00] <zippy> Nightjar: and, AllChildren doesn't call the canView filter.
1337: [21:01:00] <MichalKleiner> nope
1338: [21:01:04] <Nightjar> Oh wait no, that chappy was Slovakian.
1339: [21:01:05] <MichalKleiner> I live in Welly
1340: [21:01:09] <Nightjar> oh, I see.
1341: [21:01:10] <Nightjar> :>
1342: [21:01:26] <zippy> so really, in a lot of places I should be using AllChildren...
1343: [21:01:31] <Nightjar> zippy, probably, yes.
1344: [21:01:31] * zippy mind is blown
1345: [21:01:34] <MichalKleiner> AllKids
1346: [21:01:49] * Phlunk3 has joined #silverstripe
1347: [21:01:51] <Nightjar> Allademlittleshits()
1348: [21:03:30] <Nightjar> zippy, no canView()? That... surprises me. Sounds like bug.
1349: [21:04:36] <zippy> Nightjar: https://github.com/silverstripe/silverstripe-framework/blob/3.1/model/Hierarchy.php#L502 - https://github.com/silverstripe/silverstripe-framework/blob/3.1/model/Hierarchy.php#L516
1350: [21:05:31] <Nightjar> zippy, so you mean: https://github.com/silverstripe/silverstripe-framework/blob/3.1/model/Hierarchy.php#L502-516 ?
1351: [21:05:52] <zippy> getting fancy now
1352: [21:06:11] <zippy> i mean php
1353: [21:06:15] <zippy> https://github.com/silverstripe/silverstripe-framework/blob/3.1/model/Hierarchy.php#L498-518
1354: [21:06:16] <zippy> :P
1355: [21:06:26] <Nightjar> also, who the fuck did the indentation on that piece of code? D:
1356: [21:07:48] <Nightjar> AllChildren doesn't cache either.
1357: [21:09:03] <micmania1> Nightjar: you going to be in Newcastle in April?
1358: [21:09:16] <Nightjar> mmm maybe
1359: [21:09:23] <Nightjar> why's that?
1360: [21:09:30] <micmania1> That’s when i’m coming home :D
1361: [21:09:35] <Nightjar> So soon?
1362: [21:09:41] <micmania1> Well, end of March really, but for 3 weeks.
1363: [21:09:49] <micmania1> yeah, Sunderland vs Newcast;e.
1364: [21:09:51] <micmania1> Newcastle*
1365: [21:09:54] <Nightjar> I'll be here end of march I guess, yeh.
1366: [21:10:00] <Nightjar> Oh yeah? Should I buy tickets?
1367: [21:10:11] <micmania1> I get back 29th March and leave on 17th April I think
1368: [21:10:37] * UncleCheese has joined #silverstripe
1369: [21:10:38] <micmania1> Nah, I got tickets haha Its hard to buy them as well. I’m getting mine on my season ticket.
1370: [21:11:18] <Nightjar> Nah man I meant for me -,-
1371: [21:11:53] * mahfuz has joined #silverstripe
1372: [21:11:55] <micmania1> They won’t go on general sale but you could try
1373: [21:12:56] <Nightjar> not on sale? does everyone get season tickes?
1374: [21:13:24] <micmania1> It goes on points. You get 1 point per away game you go to on your season ticket. Then they’re sold to thoe with the most points.
1375: [21:13:35] <Nightjar> oic
1376: [21:13:56] <Nightjar> so no general public seats eh. Weird.
1377: [21:14:02] <Nightjar> oh well
1378: [21:14:08] <micmania1> you could get one in the sunderland end perhaps haha
1379: [21:14:12] <Nightjar> haha
1380: [21:14:24] <Nightjar> I wouldn't mind, prolly. I work wiht a bunch of mackams
1381: [21:14:33] <micmania1> yeah, wouldn
1382: [21:14:40] * spronk2 has joined #silverstripe
1383: [21:14:40] <micmania1> wouldnt be so bad for a kiwi
1384: [21:15:49] <Nightjar> Although the new boss used to work at NUFC. But he's a cunt. And he also used to work at Sunlan FC too. Although I think he supports nufc.
1385: [21:16:01] <Nightjar> is a mackam though, so is an odddity I guess.
1386: [21:16:09] <Nightjar> which fits his character a bit :<
1387: [21:16:28] <Motoservo> Hello all. I’ve been away from dev for a couple years and I’m just installing an SS site to try and get back to speed. I’m reading through my old notes and I have, as my next step after exporting from svn (obviously no longer relavent) rm cms and sapphire dirs.
1388: [21:16:43] <Nightjar> no clue on how to manage, no idea how he's a manager. Especially of a it dept, when he can't even use ms office efficiently, lol.
1389: [21:16:52] <Nightjar> bu that's by the by.
1390: [21:16:58] <Motoservo> any idea why I was doing that at the time?
1391: [21:17:21] <Nightjar> to update.
1392: [21:17:27] <Nightjar> also, don't bother with any of that.
1393: [21:17:27] <zippy> .... maybe for an update
1394: [21:17:45] <Nightjar> just composer create-project silverstripe/installler
1395: [21:17:51] <Nightjar> job done.
1396: [21:17:57] <Motoservo> Not sure what you mean, for an update.
1397: [21:18:03] <Nightjar> to update SS.
1398: [21:18:08] <Nightjar> to the latest version.
1399: [21:18:43] <Motoservo> I’m stickign with svn, for now, until I’m further along. So I just downloaded and will later check in to my repos. Just don’t want to take on too many new things, all at once.
1400: [21:19:07] <Nightjar> well, you can do it the hard way too I guess.
1401: [21:19:18] <Motoservo> Oh, gotcha. But wouldn’t the export from svn that I was doing in step one already be getting me the version I was aiming for?
1402: [21:19:36] <Nightjar> well I dunno. You wrote the instructions!
1403: [21:19:41] <Motoservo> Seems a bit early for an update.
1404: [21:19:48] <Nightjar> and presumably maintain the repository.
1405: [21:19:53] <Motoservo> I know! Silly me. FIgured future Troy would understand.
1406: [21:20:03] <Motoservo> I overestimated future Troy.
1407: [21:20:12] <Nightjar> no, seems like you'd save you about 5 years of pain by updating before you start developing.
1408: [21:20:21] <zippy> maybe you were doing something freaky like removed those folders and then used svn externals or something to track them... weirdly
1409: [21:20:35] <Motoservo> Maybe so.
1410: [21:20:36] <zippy> coffee
1411: [21:20:48] <Motoservo> If it was freaky, I was probably doing it.
1412: [21:20:49] * Frans_Amsterdam has joined #silverstripe
1413: [21:20:58] <Nightjar> I presume by 'a couple of years' you really mean like... a decade?
1414: [21:21:33] <Frans_Amsterdam> Hi all, can I pop a question on validation here?
1415: [21:21:39] <Nightjar> no, you may not.
1416: [21:22:02] <Nightjar> this is not where one comes to get help. It's just pure conincidence we all like silverstripe!
1417: [21:22:17] <Motoservo> Yeah, circa 08 to 10, I guess.
1418: [21:22:20] <Nightjar> we never discuss it here, that's why the channel is #silverstripe.
1419: [21:22:24] <MichalKleiner> Nightjar: COD!
1420: [21:22:35] <MichalKleiner> i mean COC
1421: [21:22:39] <Nightjar> first rule of #silverstripe, you don't talk about #silverstripe... xD
1422: [21:22:53] <Frans_Amsterdam> Ah, Silverstripe. I can Google that.
1423: [21:22:56] <Nightjar> Frans_Amsterdam, by which I mean I'm obviously joking. You're breaking the first rule of IRC.
1424: [21:23:30] <Frans_Amsterdam> I'm new to IRC and SS. Double luck for me.
1425: [21:24:00] <Nightjar> well, it's basically common sense for the most part.
1426: [21:24:26] <Nightjar> but basically it goes: Never ask if you can ask a question. If you never ask your question, how can you ever get an answer?
1427: [21:24:51] <Nightjar> if you never ask your *actual* question :>
1428: [21:25:56] <Nightjar> the other thing is basically that it's not necessarily live with activity. If you don't ask the question before going AFK, you can't check for answers periodically while you're not active either.
1429: [21:26:41] <Nightjar> so basically just ask your question ;) of course it's ok to ask, that's the entire point of the channel! :D
1430: [21:26:41] <Frans_Amsterdam> OK, I like to know how to show the message that is generated in: $validator->validationError(..... I have extended EmailField to check if the address submitted already exist?
1431: [21:27:58] <Nightjar> http://api.silverstripe.org/3.1/class-FormField.html#_validate
1432: [21:28:03] <Nightjar> return a Validator object
1433: [21:28:28] <Nightjar> http://api.silverstripe.org/3.1/source-class-EmailField.html#24-52
1434: [21:28:52] <Nightjar> or rather, set the message on the validator object that's passed in, and return false.
1435: [21:29:09] <Nightjar> sorry, a bit misleading to begin with there.
1436: [21:31:09] <Nightjar> I would do something like public function validate(Validator $validator) { $valid = false; if(parent::validate($validator)) { <check for duplicate here, if none found, $valid = true, else set validator message> } return $valid; }
1437: [21:31:25] <Nightjar> make sense Frans_Amsterdam?
1438: [21:31:33] <Frans_Amsterdam> Not yet.
1439: [21:31:45] <Nightjar> oh :<
1440: [21:31:54] <Nightjar> what can i explain better?
1441: [21:32:38] <Nightjar> this line specifically sets the message: http://api.silverstripe.org/3.1/source-class-EmailField.html#43
1442: [21:32:41] <Frans_Amsterdam> I have created that function in a extended class like the example in te documentation.
1443: [21:33:00] <Frans_Amsterdam> That works but I can not see in the view
1444: [21:33:12] <Motoservo> Shazbat…. Call to undefined function mb_http_output() on visiting SS site for first time setup.
1445: [21:33:13] <Motoservo> Obviously my dev environs still need some work.
1446: [21:33:30] <Nightjar> so class UniqueEmailField extends EmailField { public function validate(Validator $validator) { ... } } >
1447: [21:33:31] <Nightjar> ?
1448: [21:33:41] <Frans_Amsterdam> Yes
1449: [21:34:31] <Frans_Amsterdam> It returns false, so the: $validator->validationError(
1450: [21:34:31] <Frans_Amsterdam> 44 $this->name,
1451: [21:34:38] <Nightjar> did you if($alreadyexists){$validator->validationError($this->name, 'This email already exists');} ?
1452: [21:34:41] <Frans_Amsterdam> Is somewhere
1453: [21:34:45] <Nightjar> Frans_Amsterdam, please... use pastie.
1454: [21:34:46] * drye has joined #silverstripe
1455: [21:34:48] <Nightjar> or similar
1456: [21:35:20] <Nightjar> sspaste.com perhaps, can you paste your function?
1457: [21:35:24] <Frans_Amsterdam> Yes, like you typed.
1458: [21:35:48] <Frans_Amsterdam> OK, also new to me. I'm having fun.
1459: [21:35:50] <Nightjar> hmm, that should work.
1460: [21:36:13] <Nightjar> yeah, another bit of IRC ettiquite is to not paste code (or otherwise flood the channel)
1461: [21:36:17] <Ryan-Toast> zippy: *looks at css targetting* would zippy think this is too long?
1462: [21:36:25] <Ryan-Toast> WOULD HE BE ASHAMED?!
1463: [21:36:34] <Nightjar> Ryan-Toast, nope, he loves the laraveils in the bumbadukes
1464: [21:36:43] <Nightjar> nothing's too long for him.
1465: [21:36:44] <drye> Curious what the goto method is for restful endpoints in the current version of SS. restfulserver seems to have a lack of maintenance, so I wasn't sure what the goto was these days
1466: [21:36:56] <Nightjar> drye, never goto, ever.
1467: [21:37:16] <drye> haha
1468: [21:37:16] <Colin[pi]> 10 print "You suck"
1469: [21:37:19] <Colin[pi]> 20 goto 10
1470: [21:37:21] <Nightjar> drye, also, addons.silverstripe.org
1471: [21:37:27] <Nightjar> there are more than one.
1472: [21:37:30] <drye> yes, I've looked there
1473: [21:37:35] <Nightjar> well, try the other one then.
1474: [21:37:54] <Frans_Amsterdam> Nightjar I have pasted on sspate my function
1475: [21:38:20] <Nightjar> Personally I'd just write my own endpoints. But that's not so handy if you're tyring to convert an existing site (as opposed to just building a pure api)
1476: [21:38:28] <Nightjar> Frans_Amsterdam, paste the link in channel then :>
1477: [21:38:39] <zippy> Ryan-Toast: whats long?
1478: [21:38:50] <Frans_Amsterdam> Nightjar http://sspaste.com/paste/show/54c9561622f3f
1479: [21:38:59] <Ryan-Toast> zippy: http://www.sspaste.com/paste/show/54c956b4bfdc9
1480: [21:39:01] <Nightjar> zippy, you're mommas baguettes
1481: [21:39:40] <zippy> no doubt
1482: [21:40:41] <Nightjar> Ryan-Toast, fuckit, .just .write .a .story .for .zippie
1483: [21:40:59] <Nightjar> .make .it a .romantic #one
1484: [21:41:41] <Nightjar> Frans_Amsterdam, http://api.silverstripe.org/3.1/class-Validator.html#_validationError
1485: [21:42:01] <Nightjar> it only takes three parameters
1486: [21:42:11] <Nightjar> and 'validation' might not be the correct type to give it
1487: [21:42:39] <Nightjar> although original emailField seems to suggest it is.
1488: [21:43:38] <Nightjar> that should work though, from what I can tell
1489: [21:43:55] * drye quit (Ping timeout: 246 seconds)
1490: [21:43:57] <Nightjar> Frans_Amsterdam, the field definitely fails if the email exists?
1491: [21:45:31] <Frans_Amsterdam> Yes it should, now it fails anyway becuase I'm not checking anything. I like to know where and how the message appears.
1492: [21:45:47] <Frans_Amsterdam> Nice typo there.
1493: [21:47:54] <Frans_Amsterdam> If I var_dump $validator I can see the message, how do I get it in the view?
1494: [21:48:13] <Nightjar> Frans_Amsterdam, the form should display it
1495: [21:50:29] * UndefinedOffset quit (Quit: Leaving.)
1496: [21:50:39] * Nachos_ quit (Quit: Page closed)
1497: [21:58:22] <UncleCheese> just put silverstripe.org on nginx
1498: [21:58:29] <zippy> mm?
1499: [21:58:39] <UncleCheese> nothign to see here, just tripled the page load
1500: [21:58:42] <zippy> load dropped / any resource changes?
1501: [21:58:47] <UncleCheese> speed *
1502: [21:58:55] <UncleCheese> no, it's just balzingly fast now
1503: [21:59:02] <UncleCheese> i can't belive that's all you need to do
1504: [21:59:04] <zippy> oh really
1505: [22:00:29] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
1506: [22:00:55] * kinglozzer has joined #silverstripe
1507: [22:01:32] <zippy> UncleCheese: still quite, slow isn't it
1508: [22:01:58] <UncleCheese> mmm, no
1509: [22:02:07] <UncleCheese> i wonder if it's not public yet
1510: [22:02:34] <zippy> it says nginx in the headers
1511: [22:02:53] <zippy> seeing 600ms to get the home page - that is excluding dns loopup
1512: [22:03:33] <UncleCheese> you're in nelson, aye?
1513: [22:03:38] <zippy> if I slap the site, I am getting 9 requests a second
1514: [22:03:41] <zippy> yeap
1515: [22:03:47] <UncleCheese> well there's no hope for you down there
1516: [22:03:58] <UncleCheese> you must be used to 600ms response times
1517: [22:04:30] <zippy> pingtimes to welly are usualy 15ms~
1518: [22:04:55] <UncleCheese> i'm kidding
1519: [22:04:56] <UncleCheese> i dunno
1520: [22:05:06] <zippy> docs.silverstripe is giving me 180ms, thats not in nz is it.
1521: [22:05:09] <UncleCheese> the home page is pretty big
1522: [22:05:16] <UncleCheese> has a video and everything
1523: [22:05:24] <zippy> I am getting just the HTML
1524: [22:05:34] <UncleCheese> try the blog or something
1525: [22:05:46] <zippy> $ time curl http://www.silverstripe.org/
1526: [22:05:57] <zippy> thats close to a second (but would have dns and little bit sof other overhead)
1527: [22:06:24] <zippy> static publish it, then it would zoom
1528: [22:06:30] <zippy> esp with nginx
1529: [22:07:05] <Nightjar> nginx is not faster.
1530: [22:07:06] <zippy> whats the CPU load like on that server atm?
1531: [22:07:10] <Nightjar> it handles more connections.
1532: [22:07:20] <Nightjar> the two are not for confusing.
1533: [22:07:39] <zippy> Nightjar: mm and, the issue here isn't the request handling as such, but the php time needed for the site
1534: [22:08:02] * zippy is making those server fans spin!
1535: [22:08:13] <Nightjar> yup, but we can blame SS for that, not the web server!
1536: [22:08:32] * mobiusnz quit (Quit: Leaving.)
1537: [22:08:41] <zippy> indeed, changing out apache for nginx wont speed that up, I not disagreeing with you
1538: [22:08:47] <Nightjar> has anyone come up with a decent nginx config for SS yet?
1539: [22:08:48] <spronk2> well
1540: [22:08:50] <zippy> static publishing would speed it up
1541: [22:08:51] <spronk2> with static pub nginx would eventually be faster
1542: [22:09:13] <spronk2> at higher connection counts apache will spaz out
1543: [22:09:20] <Nightjar> last I looked (a while ago) they all fell into about everything the 'pitfalls' nginx wiki docs mentioned.
1544: [22:09:25] <spronk2> mm
1545: [22:09:27] <Nightjar> although they did work I guess.
1546: [22:09:55] <Nightjar> spronk2, yeah, at higher connection counts.
1547: [22:10:10] <Nightjar> apache with no .ht file checks, not actually all that much slower at all.
1548: [22:10:13] <Nightjar> in fact, can be faster.
1549: [22:10:19] <spronk2> mm..
1550: [22:10:26] <spronk2> uses more resources though
1551: [22:10:33] <Nightjar> mod_php is faster than fpm
1552: [22:10:41] <Nightjar> yeah well, not gonna argue that.
1553: [22:11:00] <Nightjar> just saying, nginx is renowned for speed, but speed isn't technically where it's edge is at all.
1554: [22:12:35] * Dedra quit (Quit: Bye guys, have to go!)
1555: [22:12:59] <zippy> the profile has been removed from the dev query options?
1556: [22:13:07] * Olliepop has joined #silverstripe
1557: [22:13:09] <zippy> used to be able to ?something to get a profile of the page
1558: [22:15:53] <kinglozzer> zippy: Yeah, removed
1559: [22:16:41] <kinglozzer> Though... it's still there https://github.com/silverstripe/silverstripe-framework/blob/b7015cca463191d9f28b1b643f9d243fc8bb611e/dev/Profiler.php
1560: [22:17:53] <zippy> UncleCheese: docs. and addons. are in the github repo. the code for ss.org not?
1561: [22:21:36] * zippy wonders if he burst UC's bubble
1562: [22:22:55] <Colin[pi]> zippy: careful, he gets off on that
1563: [22:23:50] <Nightjar> trying to load ss
1564: [22:24:06] <Nightjar> I fear I'm gonna hit apache timeout :<
1565: [22:24:09] <Nightjar> or php
1566: [22:24:25] <zippy> lol
1567: [22:24:29] <zippy> thats a bit... harsh
1568: [22:24:46] <zippy> unless your doing a dev/build :)
1569: [22:25:02] <Colin[pi]> dat yaml
1570: [22:26:51] <Nightjar> nah zippy, just /install.php :<
1571: [22:26:57] <Nightjar> lol
1572: [22:27:11] <Nightjar> You'd think dual core with a gig of ram would be fine... but apparently not.
1573: [22:27:45] <Nightjar> of course, that dual core is an Atom tho... :s
1574: [22:27:49] <Nightjar> :P
1575: [22:27:53] <Nightjar> But still!
1576: [22:29:22] <Colin[pi]> eeeuw atom
1577: [22:32:51] * willr has joined #silverstripe
1578: [22:34:08] <Nightjar> pfft, get over yourself Colin[pi] !
1579: [22:34:20] <Nightjar> Serves me fantastically :D
1580: [22:35:35] * Nightjar loves his netbook
1581: [22:36:17] <Nightjar> apart from the fact that SS seems to still think it's installing.
1582: [22:37:12] <Nightjar> Frans_Amsterdam, yeah, your code works fine for me!
1583: [22:37:13] <Nightjar> :<
1584: [22:37:49] <Nightjar> Perhaps inspect the html directly, you might have some crazy css that's blocking it or something :/
1585: [22:38:55] <Frans_Amsterdam> Bummer for me, it can be because I use it in a custom form. It does not appear in the Chrome inspector.
1586: [22:41:43] <Nightjar> Frans_Amsterdam, do you have a custom template for this custom form?
1587: [22:42:14] <ss23> 05:03:16 < Pyhewk> If someone steps forward to take over the logger, I'm sure he'd share that much.
1588: [22:42:19] <ss23> I tried asking on Twitter but he didn't respond
1589: [22:42:35] <Nightjar> yet at least.
1590: [22:42:43] * novaweb has joined #silverstripe
1591: [22:44:09] <Nightjar> so did that big complex rfc get tidied any?
1592: [22:45:59] * willr quit (Quit: willr)
1593: [22:47:11] <Motoservo> I’ve installed gd2 from macports but the only indication that seems possibly related on my phpinfo page is GD Imaging. Is this the same thing? Or, is it not loading for some reason?
1594: [22:48:23] <zippy> ss23: I've messaged him on irc and emailed him a couple of times. nothing. I know he was on irc cos he idle time kept resetting.... :(
1595: [22:48:29] <Motoservo> Macports only has gd2 and rb-gd2 (which I didn’t get since it’s for Ruby). Can’t figure out what’s amiss here, macports shows it as installed and active.
1596: [22:48:59] <Motoservo> But the SS installer shows it as missing.
1597: [22:49:27] <zippy> installed the php plugin? (it need the plugin?) restarted apache since installing it
1598: [22:50:32] * willr has joined #silverstripe
1599: [22:51:07] <micmania1> Motoservo: phpinfo();
1600: [22:51:59] <Colin[pi]> I just made my first template with parallax
1601: [22:52:01] <Colin[pi]> I feel dirty
1602: [22:52:12] <Ryan-Toast> Colin[pi]: WHAT YEAR IS IT?
1603: [22:52:32] <Colin[pi]> Ryan-Toast: I've tried to avoid it for the longest time!
1604: [22:52:54] <Ryan-Toast> Colin[pi]: I’ve never made one.
1605: [22:53:01] <Ryan-Toast> Just refuse to :P
1606: [22:53:05] <Colin[pi]> Ryan-Toast: good for you!
1607: [22:53:34] <Ryan-Toast> Colin[pi]: :3
1608: [22:53:40] <Motoservo> micmania1: phpinfo() is where I see that GD Imaging I mentioned.
1609: [22:53:49] <Motoservo> was a couple posts higher.
1610: [22:54:04] <Motoservo> but no mention of “gd2”
1611: [22:55:19] <Frans_Amsterdam> Nightjar yes i have
1612: [22:55:32] <Motoservo> Maybe this is relating to my lack of knowing how to address the two ini files. Used to be just one the last I was coding, but now I see php has one for dev and one for pro. How do I determine which? Am I supposed to just copy one and remove the dev or pro part?
1613: [22:55:54] <Nightjar> Frans_Amsterdam, that's the most likely cause I can think of (that you're missing something from your template)
1614: [22:56:22] <Nightjar> Frans_Amsterdam, what is the reason for a custom form? Simply for the template?
1615: [22:56:40] <Frans_Amsterdam> Nightjar that is my guess to.
1616: [22:57:11] <Nightjar> Frans_Amsterdam, because if it's just for a custom template, you don't need to create a custom subclass for it.
1617: [22:57:26] <Nightjar> you can control and loop through a form too :>
1618: [22:58:17] <micmania1> Motoservo: https://github.com/silverstripe/silverstripe-framework/blob/3.1/dev/install/install.php5#L503
1619: [22:58:39] <micmania1> try var_dump(function_exists(‘imagecreatetruecolor’));
1620: [22:58:57] <micmania1> and ‘imagecreate’
1621: [22:59:15] <Nightjar> Ryan-Toast> Colin[pi]: WHAT YEAR IS IT?
1622: [22:59:21] <Nightjar> 200 mother fuckin 10
1623: [22:59:36] <Nightjar> err, 2000*
1624: [23:01:31] <Nightjar> zzz
1625: [23:01:33] * Nightjar quit (Quit: Leaving)
1626: [23:01:38] <Frans_Amsterdam> nightjar, it is in the template, have figure out how but the message appears now, thanks
1627: [23:05:36] * kinglozzer quit ()
1628: [23:07:31] * antmas has joined #silverstripe
1629: [23:07:33] <antmas> morning all :D
1630: [23:08:35] <zippy> afternoono
1631: [23:12:04] * Frans_Amsterdam quit (Quit: Textual IRC Client: www.textualapp.com)
1632: [23:13:42] <Motoservo> micmania1: when you suggest var_dump, where would I do that? Would I edit the install.php page?
1633: [23:14:17] <micmania1> Just create a random php file that you can access via your web browser.
1634: [23:15:01] <Motoservo> Ah, okay. I keep one a index.html with just the php.info(). I’ll add it there.
1635: [23:16:34] <Motoservo> Got a notice.
1636: [23:16:37] <Motoservo> Notice: Use of undefined constant ‘imagecreatetruecolor’ - assumed '‘imagecreatetruecolor’' in /Users/Moto/Sites/index.php on line 2
1637: [23:16:38] <Motoservo> bool(false)
1638: [23:17:04] <Motoservo> same for imagecreate.
1639: [23:19:01] <zippy> so sounds like php not picking up on imagecreate
1640: [23:19:11] <Motoservo> I think I got it. I had been searching for gd2 but somebody on macports channel just suggested a port I need. php56-gd
1641: [23:19:16] <Motoservo> Missed it by searching gd2
1642: [23:19:33] <zippy> yea, you need the php wrapper, which gives you the php functions to call it..
1643: [23:19:37] <zippy> then restart apache
1644: [23:19:56] <Motoservo> gotcha
1645: [23:21:18] * Sticks has joined #silverstripe
1646: [23:23:55] * auto9 has joined #silverstripe
1647: [23:26:44] * veb has joined #silverstripe
1648: [23:27:35] <zippy> veb: o/
1649: [23:27:41] <veb> hey
1650: [23:28:05] <Colin[pi]> antmas: heya o/
1651: [23:31:26] <antmas> hey all o/
1652: [23:31:27] <antmas> :D
1653: [23:33:43] <zippy> o/
1654: [23:33:55] <zippy> see I was thinking again... doign the flushtoken wouldn't protect against csrf.
1655: [23:34:14] * zagoodwin has joined #silverstripe
1656: [23:35:14] <zagoodwin> Hey, is there any way i can make a hidden field when extending the DataObject
1657: [23:36:15] * willr quit (Quit: willr)
1658: [23:38:55] <muskie9> zagoodwin, in a form?
1659: [23:50:41] * DimiStripe_ has joined #silverstripe
1660: [23:50:51] <DimiStripe_> Hey guys!
1661: [23:51:05] <DimiStripe_> Is there any chance of doing smth like Filesystem::sync(); on just one folder ?
1662: [23:52:04] <muskie9> DimiStripe_ Filesystem::sync($yourFolderID) maybe? http://api.silverstripe.org/3.1/source-class-Filesystem.html#143-217
1663: [23:52:37] <DimiStripe_> Thanks ! :)
1664: [23:52:49] <muskie9> sure, never done it so just guessing it'll work
1665: [23:58:13] * DimiStripe_ quit (Quit: Page closed)
1666: [23:59:59] * travis-ci has joined #silverstripe
1667: [23:59:59] <travis-ci> tractorcow/sapphire#34 (pr/3179 - 25a5705 : Damian Mooyman): The build has errored.
1668: [23:59:59] <travis-ci> Change view : https://github.com/tractorcow/sapphire/compare/b62ccc25ec78...25a570533807
1669: [23:59:59] <travis-ci> Build details : http://travis-ci.org/tractorcow/sapphire/builds/48698965
1670: [23:59:59] * travis-ci has left #silverstripe

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