#silverstripe IRC Log

IRC log for 17 March 2014

All timestamps are in UTC.

1: [00:00:17] <Colin[pi]> so realistic :o
2: [00:00:32] * nickmolhoek has joined #silverstripe
3: [00:02:25] * howardgrigg quit (Ping timeout: 240 seconds)
4: [00:08:14] * howardgrigg has joined #silverstripe
5: [00:12:36] * howardgrigg quit (Ping timeout: 255 seconds)
6: [00:18:56] * UncleCheese quit (Quit: UncleCheese)
7: [00:29:32] * Bollig|DesignCty has joined #silverstripe
8: [00:32:05] * webbower has joined #silverstripe
9: [00:32:57] <webbower> Having some issues doing a 2.3.x upgrade to 2.4.x. My DB queries are borking because it looks like mysql doesn't like using double quotes for column names
10: [00:34:16] <webbower> Nevermind. It was something else :-/
11: [00:34:52] <zippy____> webbower: why not go to 3.1.3?
12: [00:35:04] <webbower> Bigger upgrade than I care to do for this client
13: [00:35:09] <spronk> http://www.kotaku.com.au/2014/03/the-perfect-game-for-anyone-who-hates-their-desk-job/
14: [00:37:32] <antmas> spronk: :P
15: [00:38:12] <spronk> looks AWESOME
16: [00:38:17] <spronk> partly because the techno music is cool
17: [00:39:04] * howardgrigg has joined #silverstripe
18: [00:39:07] <antmas> spronk: yeah I linked it before
19: [00:41:22] <spronk> mm i saw
20: [00:41:43] <spronk> was easier to ctrl+v than to type antm<TAB>
21: [00:41:47] <spronk> ... then i forgot to say the next thing
22: [00:43:29] * howardgrigg quit (Ping timeout: 246 seconds)
23: [00:43:56] * UncleCheese has joined #silverstripe
24: [00:44:12] <antmas> :D
25: [00:44:32] * liam__ has joined #silverstripe
26: [00:45:39] <liam__> how can I use a custom template for a specific dataobject when it is viewed via modeladmin?
27: [00:45:56] <liam__> specific type of dataobject*
28: [00:48:02] <simon_w> For what purpose?
29: [00:49:37] <liam__> simon_w: I am displaying some external data in the cms for administration of a chat system. I want to render a conversation when it is selected in modeladmin. I need to create a custom template to display this nicely. Is it possible?
30: [00:50:04] <simon_w> Yes, but it sounds more like you don't want ModelAdmin
31: [00:50:19] <liam__> simon_w: Ok what should i use?
32: [00:50:27] <simon_w> Custom LeftAndMain subclass
33: [00:50:37] <liam__> I just used modeladmin because I am using the externaldata module
34: [00:51:03] <liam__> simon_w: ok thanks. and so to override the templates do I use Name_right.ss and Name_left.ss?
35: [00:51:15] <simon_w> Something like that
36: [00:52:55] <liam__> ok thanks
37: [00:54:26] <ss23> willr: pls
38: [00:55:01] <spronk> whats the best add on these days for ordered data objects managed with a gridfield ?
39: [00:55:29] <simon_w> SortableGridField?
40: [00:55:34] <simon_w> UndefinedOffset's one
41: [00:55:38] <spronk> excellent, thanks simon_w
42: [01:01:22] <Colin[pi]> aw yiss, three quotes sent
43: [01:01:47] <antmas> Ryan-Toast: did you end up playing Titanfall whilst hungover?
44: [01:01:56] <Ryan-Toast> antmas: I did
45: [01:02:03] <Ryan-Toast> For pretty much the whole weekend.
46: [01:02:08] <antmas> Ryan-Toast: was it awesome?
47: [01:02:09] <Colin[pi]> lol piloting a giant mech while hungover, what could go wrong?
48: [01:02:19] <Ryan-Toast> It's pretty fun
49: [01:02:36] <antmas> considering picking it up
50: [01:02:43] <Ryan-Toast> Do it
51: [01:02:44] <antmas> but... full price for a game with only MP?
52: [01:02:53] <Colin[pi]> yeah it's the lack of SP that stops me :\
53: [01:03:03] <Colin[pi]> I JUST WANT A NEW MECHWARRIOR
54: [01:03:07] <Ryan-Toast> It's not a single player game
55: [01:03:14] <antmas> I don't mind no SP, but the price should reflect that
56: [01:03:30] <Colin[pi]> antmas: how much?
57: [01:03:44] <antmas> Colin[pi]: looks like $80 NZD
58: [01:03:49] <Colin[pi]> ...
59: [01:03:52] <Colin[pi]> fuck
60: [01:04:27] <Ryan-Toast> I got the season pass, which was 110
61: [01:04:35] <Colin[pi]> antmas: http://www.cjs-cdkeys.com/products/Titanfall-CD-Key-for-Origin.html
62: [01:04:42] <Colin[pi]> ;)
63: [01:05:09] <antmas> Colin[pi]: is... is that even legit?
64: [01:05:22] <Colin[pi]> I've used them before, it worked
65: [01:05:23] <Colin[pi]> dunno
66: [01:05:24] <Colin[pi]> lol
67: [01:05:35] <simon_w> $80 NZD for a game? Seems like it'd be much better spent on me...
68: [01:05:46] <antmas> simon_w: :P
69: [01:05:49] <Colin[pi]> oh oh it's all about you isn't it simon_w
70: [01:05:51] <antmas> Colin[pi]: that is super tempting :D
71: [01:05:59] <simon_w> It's always about me!
72: [01:06:08] <Colin[pi]> WE HAVE A CHILD NOW, HE'S OUR PRIORITY
73: [01:06:10] * Colin[pi] cries
74: [01:06:30] <Colin[pi]> antmas: I got NFS Rivals through them
75: [01:06:37] <Ryan-Toast> I have no dependants, and plenty of $$ so doesn't bother me :P
76: [01:06:38] <Colin[pi]> paid, got cd key within about 5 mins
77: [01:06:43] <Colin[pi]> installed, working :o
78: [01:06:51] <antmas> Colin[pi]: is that Brittish Pound sterling? or Euro?
79: [01:07:13] <Colin[pi]> use currency converter on the side
80: [01:07:23] <antmas> oh
81: [01:07:24] <antmas> :P
82: [01:07:53] <Ryan-Toast> god I hate SEO.
83: [01:07:59] <antmas> aw snap, that makes it $46 NZD
84: [01:08:00] <Colin[pi]> I'm still not really sure how it all works, all I care is that I dont get ripped off and I get a valid key.. paid through paypal, so that's one buffer
85: [01:08:52] <antmas> might do that tonight :D
86: [01:09:05] <Colin[pi]> ahh "Our company functions by importing the games from main distributors within the EU, where games have cheaper retail prices than in countries such as Australia"
87: [01:09:09] <Colin[pi]> I see
88: [01:09:39] <Colin[pi]> I wonder though of the legality in terms of the steam/origin TOS
89: [01:09:45] <antmas> so it's legit, but faily 'grey'
90: [01:09:49] <Colin[pi]> ya
91: [01:09:49] <Colin[pi]> :\
92: [01:10:11] <Colin[pi]> there are some dodgy ones, but this site seems to have a fairly good rep on facebook
93: [01:10:13] <antmas> still, it's better than the old days of taking photos of cd keys from the Warehouse
94: [01:10:35] <Colin[pi]> lol back in 98 when I was in sydney, there was a blatantly pirated games shop in Chinatown
95: [01:10:36] <Colin[pi]> like
96: [01:10:38] <Colin[pi]> BLATANT
97: [01:10:38] <antmas> NOT THAT I EVER DID THAT
98: [01:11:06] <Colin[pi]> they started with color copied stuff, in the end they were selling blank looking discs with b+w photocopied covers
99: [01:11:06] <Colin[pi]> lol
100: [01:11:11] <antmas> yeah, the n00bs at Warehouse Nelson don't take the cd key cards out of digital games
101: [01:11:14] <Colin[pi]> SEEMS LEGIT
102: [01:11:15] <Stomach> I bought wrestlemania on floppy discs from a pirate store in brisbane around that time too, was choice as
103: [01:11:48] <Colin[pi]> one day I walked to this store with guys from work, and when we arrived there were suits with glasses standing out front
104: [01:11:51] <Colin[pi]> think Agent Smith
105: [01:11:56] <Colin[pi]> exactly the same look
106: [01:12:03] <Colin[pi]> and this guy I worked with was from Bangladesh
107: [01:12:18] <Colin[pi]> and we arrive and he goes loudly "IS THIS THE PLACE THAT SELLS THE ILLEGAL GAMES???"
108: [01:12:19] <Ryan-Toast> How do I get the google site maps module to generate the sitemap?
109: [01:12:28] <antmas> Colin[pi]: hahahaha
110: [01:12:29] <simon_w> Ryan-Toast, install it
111: [01:12:32] <Colin[pi]> could have killed him rofl
112: [01:12:39] <Ryan-Toast> simon_w: I did, but the site map is empty
113: [01:12:46] <simon_w> Ryan-Toast, no it's not
114: [01:12:52] <simon_w> It's an index file
115: [01:12:57] * muskie9 quit ()
116: [01:13:04] <Stomach> goto domain.dev/sitemap.xml/sitemap/SiteTree/1
117: [01:13:16] <Ryan-Toast> Hmmm
118: [01:14:08] <Ryan-Toast> http://www.toast.co.nz/sitemap.xml ?
119: [01:14:35] <simon_w> Ryan-Toast, see that <loc> thing?
120: [01:14:41] <Ryan-Toast> yarp
121: [01:14:54] <Ryan-Toast> ahh, coolio
122: [01:15:02] <Ryan-Toast> I don't know shit about xml
123: [01:15:26] <Colin[pi]> eh it's just like html
124: [01:15:39] <Colin[pi]> but more strict
125: [01:15:44] <Colin[pi]> well xhtml is strict to
126: [01:15:45] <Ryan-Toast> Fair enough, just never had to use it for anything
127: [01:15:45] <Colin[pi]> *too
128: [01:15:59] <simon_w> XHP!
129: [01:16:07] <antmas> xml is easy
130: [01:16:20] <Stomach> Ryan-Toast - never had the pleasure of a wsdl nightmare? :D
131: [01:16:40] <antmas> Stomach: shhhhh
132: [01:16:41] <Ryan-Toast> I have not :P
133: [01:16:45] <antmas> Stomach: don't speak of such things
134: [01:17:01] <Stomach> haha
135: [01:17:22] * nbezzala has joined #silverstripe
136: [01:17:24] <Stomach> its what ive spent like the last 8 weeks on :\ two seperate jobs with huge third party soap integrations
137: [01:17:25] <Stomach> zzz
138: [01:17:34] * webbower quit (Quit: webbower)
139: [01:17:42] <simon_w> Maybe you should go for body wash instead?
140: [01:17:54] <Stomach> yeah, I am drying out a bit too much
141: [01:18:01] <antmas> Stomach: that is like, my life
142: [01:18:14] <Stomach> well I am indeed sorry for you
143: [01:18:19] <Stomach> poor guy :(
144: [01:18:38] <zippy____> fooking sliders
145: [01:18:43] <simon_w> I had to build a SAML module for SS
146: [01:18:43] <spronk> grrr
147: [01:18:48] <simon_w> Word of advice: don't.
148: [01:18:52] <Stomach> lol
149: [01:18:55] <spronk> "I noticed that a field HasFixedPricing appears twice...
150: [01:18:57] <spronk> HOW TO FIX?!
151: [01:19:06] <simon_w> Don't add it twice?
152: [01:19:10] <spronk> isn't :(
153: [01:19:14] <spronk> is added once, inside a ToggleCompositeField
154: [01:19:15] <simon_w> Apparently it is!
155: [01:19:17] <Stomach> speaking of API and fun times, has your oauth impl been pen tested simon_w?
156: [01:19:26] <simon_w> Stomach, nah
157: [01:20:15] <Stomach> I'm probably going to put it over the top of a small API we are doing and I want the client to get the whole site security audited before we go live, will let you know that it passed when it does ;)
158: [01:20:19] <spronk> oh, wtf
159: [01:20:25] <spronk> everything in the composite field appears to appear twice
160: [01:20:58] <spronk> is there something special you have to do with scaffolding and composite fields in dataobjects?
161: [01:21:23] <simon_w> Remove the scaffolded fields
162: [01:21:37] <spronk> .. you have to do that?
163: [01:21:49] <simon_w> Well, if you're not going to be using them
164: [01:22:05] <spronk> sigh
165: [01:30:52] <spronk> ERROR [Notice]: Undefined variable: fieldType line 167 GridFieldSortableRows.php
166: [01:30:53] <spronk> ARHGHH
167: [01:32:43] <spronk> yeah
168: [01:32:47] <spronk> this module is broken.
169: [01:32:48] <spronk> fuck
170: [01:33:33] <simon_w> Try ajshort's one then?
171: [01:33:40] <simon_w> And bitch to UndefinedOffset :p
172: [01:34:11] <antmas> fark, content db is full
173: [01:34:18] <antmas> well done, sharepoint
174: [01:35:37] <simon_w> FIX IT FIX IT FIX IT FIX IT FIX IT FIX IT FIX IT
175: [01:37:11] <spronk> bleh
176: [01:37:11] <spronk> k
177: [01:37:12] <spronk> ajshorts it is
178: [01:37:30] * PapaBearNZ has joined #silverstripe
179: [01:37:39] <PapaBearNZ> Hi Everyone.
180: [01:38:07] <simon_w> Herro
181: [01:39:26] <PapaBearNZ> We have a custom section in the current project that is an extension of LeftandMain. Essentially it is a form that when the action button is clicked launches a new window and then needs to refresh the content within the detail pane of the CMS.
182: [01:39:59] <PapaBearNZ> currently the only solution we have is to refresh the whole CMS page which is overkill. Can someone point us in the right direction for just updating the content pane?
183: [01:40:12] * howardgrigg has joined #silverstripe
184: [01:40:43] * antmas quit (Quit: Page closed)
185: [01:41:04] <spronk> heh
186: [01:41:08] <spronk> good luck :)
187: [01:41:14] * antmas has joined #silverstripe
188: [01:41:34] <PapaBearNZ> essentially the content pane changes from a "Launch function" screen to a "Cancel function" screen and also needs to update a tab with a gridfiend showing the audit trail of the functions launched.
189: [01:41:58] <PapaBearNZ> spronk: Umm - not entirely helpful, dude *grin*
190: [01:42:05] <spronk> yeah
191: [01:42:13] <spronk> you're probably gonig to have to dig quite heavily into javascript
192: [01:42:16] <PapaBearNZ> we've tried luck - it didn't work so well as a design methodology *grin*
193: [01:42:19] <spronk> basically, look at the source code for the existing CMS
194: [01:42:27] <spronk> that's probably the best documentation you'll find on this
195: [01:43:06] <simon_w> PapaBearNZ, have a look at what submitForm does in LeftAndMain.js
196: [01:44:38] <PapaBearNZ> spronk: I was hoping not to have to do that. I'll do it if that is the only way but it's easy to burn time getting lost in there. Oh well - I should stop being lazy I guess!
197: [01:44:49] <PapaBearNZ> simon_w: Thanks for the tip... We'll start there!
198: [01:44:51] * howardgrigg quit (Ping timeout: 255 seconds)
199: [01:46:15] * wracu has joined #silverstripe
200: [01:46:24] <antmas> "something went wrong. Please consult your IT administrator for more info on the error code "61a71117-e457-43c0-a00c-bd10f327dc1c"
201: [01:46:32] <antmas> HELPFULL
202: [01:46:53] <spronk> ajshorts one seems to work fine
203: [01:47:06] <ss23> lol antmas
204: [01:47:16] <simon_w> antmas, CONTACT YOURSELF
205: [01:47:34] <antmas> I imagine someone saying that code out loudly to an IT guy
206: [01:51:22] <wracu> When a DataObject has multiple types of Child DataObjects... whats the easiest way to loop through a particular child only?
207: [01:51:41] <simon_w> wracu, filter on ClassName
208: [01:51:41] <Ryan-Toast> SCRUM - http://i.imgur.com/3Z3E5qf.jpg
209: [01:51:50] <wracu> ah thanks
210: [01:52:26] <pippy> $authentication = Config::inst()->get('EBSWebservice', 'authentication');
211: [01:52:26] <pippy> if (!isset($authentication['username']) || !isset($authentication['username'])) {
212: [01:52:29] <pippy> Debug::friendlyError(500, 'EBS EBSWebservice authentication not set in .yml file');
213: [01:52:32] <pippy> return null;
214: [01:52:51] <pippy> is this how you use the yml settings?
215: [01:53:14] <ss23> EBS...
216: [01:53:15] <spronk> hmm
217: [01:53:18] * ss23 gets scared
218: [01:53:19] <ss23> ;_;
219: [01:53:23] <ss23> Where do you work for, pippy?
220: [01:53:24] <spronk> is there any way to add query string parms to a call to action page link?
221: [01:53:38] <spronk> err
222: [01:53:40] <pippy> Otago polytechnic
223: [01:53:43] <spronk> $Page.Link
224: [01:53:45] <ss23> My condolences!
225: [01:53:54] <ss23> NMIT uses EBS a lot too (we do theirs)
226: [01:53:56] <spronk> scenario is i want to pre-fill some user defined form parameters
227: [01:54:04] <ss23> (their site, not their EBS)
228: [01:54:24] <pippy> ss23: yeah EBS isn't the most friendly system in the world :(
229: [01:54:31] <simon_w> spronk, $Page.Link("?blah=face")
230: [01:54:54] <spronk> will that take into account existing query params that might be on the current page ?
231: [01:55:06] <simon_w> Nope
232: [01:55:13] <spronk> hmm
233: [01:55:13] <simon_w> For that, you need a custom method
234: [01:55:17] <spronk> ah
235: [01:55:28] <ss23> $Static.Controller.join_links($Page, "?blah=face")
236: [01:55:44] <ss23> I lied
237: [01:56:05] <spronk> woahh
238: [01:58:14] * Guits quit (Read error: Connection reset by peer)
239: [01:58:39] * Guits has joined #silverstripe
240: [02:00:52] <Ryan-Toast> google doesn't use keywords anymore, right?
241: [02:00:57] <Ryan-Toast> the meta tag that is.
242: [02:01:09] <spronk> DOESNT WORK SS23
243: [02:01:24] <ss23> lol
244: [02:01:27] <ss23> I said I lied, spronk!
245: [02:01:28] <spronk> :(
246: [02:01:34] <spronk> how you make work?!
247: [02:01:37] <spronk> surely other people do this?
248: [02:01:40] <ss23> idk
249: [02:01:44] <ss23> Do what simon_w said :O
250: [02:01:47] <antmas> EBS? what is?
251: [02:01:48] <spronk> but
252: [02:01:51] <ss23> Make an instance method that links stuff
253: [02:01:54] <ss23> antmas: Course information
254: [02:01:55] <spronk> that doesnt work if you have something already on the page D:
255: [02:02:00] <antmas> ss23: ah yes
256: [02:02:01] <ss23> antmas: just an api/system for manging course data etc
257: [02:02:02] <spronk> yeah fair enoguh
258: [02:02:15] <ss23> spronk: Well it could...
259: [02:02:20] <simon_w> spronk, look at HTTP::setGetVar()
260: [02:02:21] <Bollig|DesignCty> Ryan-Toast: no, they haven't for a long time. They don't use it for anything at all.
261: [02:02:26] <spronk> yeah ill make a custom meth
262: [02:02:27] <ss23> spronk: Make the "join_stuff" be aware of its currecnt viarables
263: [02:02:30] <spronk> COOKIN MY METH BRO
264: [02:02:31] <ss23> lol
265: [02:02:32] <ss23> custom meth
266: [02:02:40] <Bollig|DesignCty> Ryan-Toast: they still use Title and Description, but not for ranking signals.
267: [02:02:52] <spronk> we deal with the hard stuff here, ss23
268: [02:02:52] <Ryan-Toast> Bollig|DesignCty: Thought so, sick of clients using shitty online tools to tell me how to do my job.
269: [02:03:15] <Bollig|DesignCty> lol ridiculous :)
270: [02:03:25] <antmas> Electronic Bull Shit
271: [02:04:05] * Tanger has joined #silverstripe
272: [02:05:59] <spronk> return Controller::curr()->join_links($this->CallToActionPage()->Link(), '?pricingPlanName='.urlencode($this->Name));
273: [02:05:59] <spronk> done
274: [02:11:44] <zippy____> antmas: with the tasman council site, what sort of traffic you get to that may I ask?
275: [02:12:11] <antmas> zippy____: hmmmm, I can't remember, but ti's unusually high
276: [02:12:33] <antmas> zippy____: we get slammed with weekends like this last one, obviously
277: [02:12:49] <zippy____> I'd be curious to know some ball parks
278: [02:13:02] <antmas> zippy____: I'll take a look at some stage
279: [02:13:09] <zippy____> I pay my rates!!
280: [02:13:16] <antmas> :P
281: [02:13:28] <simon_w> I don't!
282: [02:13:47] <antmas> it's approx. 20% more than the NCC site anyway
283: [02:13:49] <antmas> I know that much
284: [02:15:03] <zippy____> so… 20% more than x
285: [02:15:06] <zippy____> whats x :)
286: [02:15:25] <antmas> zippy____: errr, like 4000 per month IRC
287: [02:15:35] <antmas> iirc*
288: [02:15:43] <simon_w> Woo, spacer.png!
289: [02:17:29] <antmas> heh, the site basically crawled to a halt over the weekend with traffic
290: [02:21:01] * Jakx has joined #silverstripe
291: [02:22:34] <zippy____> mmm thats not much
292: [02:22:55] <zippy____> was expecting a bit more than that
293: [02:35:15] <Jakx> why can I filter $this->Children(); but can't filter $this->AllChildren() without an error?
294: [02:35:22] <antmas> zippy____: that's if iirc, I could be way off
295: [02:35:34] <Jakx> e.g $this->AllChildren()->filter("customValue", true);
296: [02:38:47] <Ryan-Toast> Is there a good blog post on what caching to use where?
297: [02:41:24] * howardgrigg has joined #silverstripe
298: [02:43:58] <simon_w> All of it, everywhere!
299: [02:44:01] <Colin[pi]> is there a good blog post on what <insert topic here> to use where? ;P
300: [02:45:37] * howardgrigg quit (Ping timeout: 240 seconds)
301: [02:45:49] <unsignedint> hey does anyone know how to SSViewer::dontRewriteHashlinks() for a certain page only. Everywhere says to set it as a config setting (since that method is deprecated), however I only want it for a certain page and not all pages. I looked at the code and using setOption on SSViewer produces the same message, 'use the config setting instead'
302: [02:49:20] <willr> Config::inst()->set() on the Page init function?
303: [02:51:38] <ss23> willr: Did you release forum yet? :O
304: [02:51:45] <willr> No one told me?
305: [02:54:43] <ss23> willr: I told you right now!
306: [02:54:46] <ss23> willr: I sent the patch last night
307: [02:55:23] <willr> after I went to sleep and I don't check personal email at work
308: [02:55:28] <ss23> ah kk
309: [02:55:35] <ss23> willr: Well yeah, it's ready to be released whenever you are ^.^
310: [02:55:36] <ss23> :D
311: [02:56:25] <willr> will do it tonight then
312: [02:56:34] <ss23> Cool :D
313: [02:56:40] <zippy____> ss23: where is 3.1.4!
314: [02:56:47] <ss23> zippy____: I've scheduled 4 hours for tomorrow to work on it
315: [02:56:59] <ss23> There's going to be some rather hefty patches needing to be built for it, so it may be quite a while
316: [02:57:40] <willr> patched ss forums yet?
317: [02:58:00] <willr> don't want to publicly release patch before the main forum is updated
318: [02:59:18] <ss23> willr: We've got it ready to deploy, will be deploying tomorrow
319: [02:59:31] <ss23> I'm not too worried personally, but I could deploy now I guess
320: [02:59:34] <ss23> ss.org isn't amazingly important
321: [02:59:35] <ss23> :D
322: [03:00:03] <willr> I don't want my posts deleted. How would everyone know I'm awesome
323: [03:00:08] <ss23> haha
324: [03:00:32] <ss23> oh yeah
325: [03:00:33] <simon_w> Custom rank
326: [03:00:35] <ss23> this patch is simple
327: [03:00:37] <ss23> I'll just deploy now
328: [03:00:43] <ss23> WISH ME LUCK NOT TAKING DOWN SILVERSTRIPE.ORG GUIS
329: [03:00:57] <ss23> oh we have a test site for it
330: [03:00:59] <ss23> I'll try that first
331: [03:01:00] <ss23> :O
332: [03:01:01] <zippy____> bom internet down!
333: [03:01:10] <UncleCheese> work in progress, but keen to see if anyone can improve: http://pastie.org/8936918
334: [03:01:34] <UncleCheese> it omits a lot, but the idea is that false negatives are better than false positives :)
335: [03:04:01] <Colin[pi]> 17-Mar-2014: never forget
336: [03:04:09] <Colin[pi]> the day ss23 destroyed the site
337: [03:04:12] <Colin[pi]> ;D
338: [03:04:17] <ss23> XD
339: [03:04:20] <zippy____> lol
340: [03:04:29] <ss23> Jokes on you, I destroy sites lall the time
341: [03:04:29] <ss23> :D
342: [03:04:47] * zippy____ takes a screen shot now, for remembrance..
343: [03:05:07] <simon_w> UncleCheese, get_one() can't be replaced yet, doesn't handle quoted identifiers, or different quotes
344: [03:05:50] <simon_w> UncleCheese, all wildcards should be lazy, not greedy
345: [03:05:57] <ss23> (toivo)
346: [03:08:09] <zippy____> '([A-Za-z0-9_]+)' --> '([^']+)'
347: [03:10:24] <Colin[pi]> ick dat feel when I need to modify one of my old pre-SS sites
348: [03:10:29] <Colin[pi]> hideous
349: [03:13:04] * nbezzala quit (Read error: Connection reset by peer)
350: [03:15:49] <unsignedint> Colin[pi]: what did you used to build your sites in?
351: [03:15:57] <unsignedint> nothing? just spaghetti php?
352: [03:16:04] <Colin[pi]> proprietary framework built at the last placed I worked
353: [03:16:05] * antmas quit (Quit: Page closed)
354: [03:16:08] <unsignedint> oh right
355: [03:16:13] <Colin[pi]> so shitty lol
356: [03:16:58] <unsignedint> haha yeah I think every programmer goes down the path of trying to create a framework, realises the insane amount of work and uses an existing one
357: [03:17:18] <unsignedint> insane amount of work to make a good one*
358: [03:17:26] * Colin[pi] glances at simon_w
359: [03:17:49] <simon_w> Only took two weeks to write ours
360: [03:17:54] <unsignedint> what framework did simon_w make?
361: [03:18:06] <Colin[pi]> he's still making it I think?
362: [03:18:14] <simon_w> https://wiki.pocketrent.com/beatbox/start
363: [03:18:34] * unsignedint hasnt been following the channel much since the boss doesnt like to see him chatting on IRC instead of working
364: [03:19:07] <unsignedint> "Currently, Beatbox is only available from our SVN repository" - yep, definitely simon_w :P
365: [03:19:18] <Colin[pi]> lol
366: [03:19:20] <simon_w> Oh right, I need to change that
367: [03:19:27] <simon_w> There's a github mirror
368: [03:19:31] <unsignedint> you mean you gave in and used git?
369: [03:19:32] <unsignedint> ah
370: [03:19:37] <simon_w> https://github.com/PocketRent/beatbox/
371: [03:20:33] <ss23> beatbox with hiphop
372: [03:21:04] <unsignedint> oh thats cool, hiphop supports return types (just looking at some of the code)
373: [03:21:26] <unsignedint> I might have to look into that, I hate that normal php doesnt support return types and typehints for scalar types
374: [03:21:49] <simon_w> Oh, the parameter types aren't type hints
375: [03:21:57] <simon_w> Just like they're not in PHP
376: [03:22:14] <simon_w> Return and ivar types are just hints though
377: [03:23:33] <unsignedint> oh right
378: [03:23:49] <PapaBearNZ> simon_w: spronk: Problem resolved, Thank you for your help pointing out avenues of investigation! :) $('.cms-container').entwine('ss').reloadCurrentPanel(); refer http://www.silverstripe.org/customising-the-cms/show/44638
379: [03:23:53] <unsignedint> oh it seems to support generics too!
380: [03:24:04] <simon_w> Yes
381: [03:26:13] <ss23> willr: deploying now, so feel free to release forum tonight
382: [03:26:30] <unsignedint> well I cant say im a fan of the "million global functions" programming style but the code looks interesting due to the HipHop-specific stuff
383: [03:27:16] <simon_w> There's hardly any global functions :p
384: [03:28:25] <ss23> well fuck that deploy did *not* work well.
385: [03:28:44] * zippy____ wonders, when loading a site, if it's slow is it the site thats slow or some part of the NSA collections which is going slow atm
386: [03:28:54] <unsignedint> well looking at the code, nothing seems to be encapsulated in a class. but I guess the 'modular' aspect means each module is sandboxed
387: [03:28:55] <Colin[pi]> ss23: BOOM!
388: [03:29:13] <ss23> good news is it didn't explode shit!
389: [03:29:13] <ss23> yay
390: [03:29:13] <ss23> :D
391: [03:29:17] <unsignedint> zippy____: nah its your site, NSA collections happen at the ISP level
392: [03:29:26] <simon_w> unsignedint, look in the php/classes/ folder :p
393: [03:29:28] <UncleCheese> i hate when fatal errors have "Hmm…" in the message
394: [03:29:36] <UncleCheese> "Fatal error: Hmm - depth calc wrong, hit negatives"
395: [03:29:45] <ss23> UncleCheese: A good sign a dev wasn't expecting it to ever be hit
396: [03:29:46] <ss23> :P
397: [03:29:51] <UncleCheese> totally
398: [03:29:55] <ss23> I've seen that before thouh!
399: [03:30:00] <UncleCheese> die("This should never happen"
400: [03:30:06] <UncleCheese> die("How did you get here?!");
401: [03:30:13] <UncleCheese> ^ seen both of these more than once
402: [03:30:16] <simon_w> UncleCheese, unbalanced braces in a PHP file
403: [03:30:22] <UncleCheese> uh?!
404: [03:30:24] <UncleCheese> it's that simple
405: [03:31:19] <simon_w> Also, Hamish needs to learn to write useful error messages
406: [03:31:28] <UncleCheese> you'd think it would throw a parse error?
407: [03:31:33] <simon_w> (The depth went negative, so something was closed that wasn't open)
408: [03:31:41] <simon_w> ConfigStaticManifest doesn't include the file
409: [03:31:46] <UncleCheese> oh, because this is in the configstaticmanifest
410: [03:31:50] <UncleCheese> its just reflecting
411: [03:32:00] <UncleCheese> silly config
412: [03:32:03] <simon_w> No, it's tokenising
413: [03:32:22] <simon_w> reflection requires it to include the file
414: [03:35:21] <Colin[pi]> they think that plane could have been flown via a mobile phone now? what in the actual fuck
415: [03:35:30] <Colin[pi]> imagine the implications if that was the case
416: [03:36:00] <ss23> willr: cool, deployed
417: [03:36:14] <ss23> willr: so you can review the patch there, and release when you're ready :)
418: [03:36:22] <UncleCheese> Colin[pi]: what news source are you reading?
419: [03:36:29] <UncleCheese> Perez Hilton?
420: [03:36:38] <Colin[pi]> came up within Windows 8 news
421: [03:36:43] <UncleCheese> ahh
422: [03:36:49] <an_Eskimo> Colin[pi], I've seen pics floating around twitter that it has ended up on the moon.... somehow feel this might be slightly inaccurate...
423: [03:36:53] <Colin[pi]> LOL
424: [03:36:59] <UncleCheese> well it's nice to know something sucks more than their UX
425: [03:37:28] <ss23> willr: http://www.silverstripe.org/forum-module-forum/show/44979 p.s.
426: [03:37:44] <willr> ss23 good. That shall be put on my todo list then
427: [03:37:56] <ss23> willr: sounds good! But yeah, idk if you wanna delete his forum posts or what
428: [03:38:05] <ss23> He seems like a nice guy, so I don't think he'll mind etc
429: [03:39:42] <simon_w> Ghost him! :p
430: [03:39:53] <willr> done. Good test of the CSRF then.
431: [03:40:08] <willr> csfr*
432: [03:40:19] <ss23> lol
433: [03:40:22] <willr> bah
434: [03:40:30] <ss23> Be nice to him! Be glad he reported it rather than explode all our forums
435: [03:41:15] <willr> Yeah who knows what sort of stuff simon_w clicks on while logged in
436: [03:41:29] <ss23> lol
437: [03:41:43] <simon_w> Hey, I've only had problems once and that's because of the redirect back from the login form :p
438: [03:42:28] * howardgrigg has joined #silverstripe
439: [03:43:08] <simon_w> I wonder what happens if I ban ss23...
440: [03:43:14] <ss23> Nothing?
441: [03:43:17] <ss23> I don't use the forums :P
442: [03:43:37] <ss23> Besides, I can just unban myself! :D
443: [03:44:06] <simon_w> Not if I SQLi and change your password! :p
444: [03:44:11] <ss23> haha
445: [03:44:30] <ss23> I can change that too, and better yet, I can a) see the request to fix the sqli myself, b) ban *you*, and c) reset my passord!
446: [03:44:48] <ss23> I checked, and the sqli that was CMS only was fixed at some point
447: [03:44:53] <ss23> (the one I found at least)
448: [03:45:00] <ss23> The shit-ton of ones in forum are likely not
449: [03:45:01] <ss23> :P
450: [03:45:17] <simon_w> Maybe I should go through forum and email security lots :p
451: [03:45:22] <ss23> NU UH
452: [03:45:25] <ss23> email willr!
453: [03:45:27] <ss23> He loves patching forum
454: [03:45:28] <ss23> :D
455: [03:45:54] * willr loves patching user forms more.
456: [03:46:00] <Colin[pi]> is willr even checking his email?
457: [03:46:12] <willr> no, still got 300 unread from simon_w
458: [03:46:13] <Colin[pi]> I thought he would have nuked it from orbit after simon_w's efforts
459: [03:46:17] <willr> ignoring it
460: [03:46:39] <Colin[pi]> only thing I can say about this old framework of mine, fuck it's fast :D
461: [03:46:48] * howardgrigg quit (Ping timeout: 255 seconds)
462: [03:46:53] <Colin[pi]> prolly all the stuff it's not doing, like security
463: [03:46:54] <Colin[pi]> :D
464: [03:49:22] <unsignedint> bah who needs security
465: [03:49:31] <unsignedint> if someone breaks in, all the more power to them!
466: [03:49:43] <Colin[pi]> hell they might even be able to fix it!
467: [03:49:45] <Colin[pi]> ;D
468: [03:50:02] <unsignedint> haha yeah
469: [03:50:14] <simon_w> Fix it like neuter it?
470: [03:50:22] <unsignedint> youll see a merge conflict next time you do a git pull :P
471: [03:50:35] <unsignedint> assuming you deploy sites with git, which you probably dont
472: [03:50:48] <unsignedint> on an old-ass homegrown framework
473: [03:50:52] <simon_w> 11 years kinda pre-dates git
474: [03:51:11] <unsignedint> doesnt mean you cant stick it in a git repository later
475: [03:51:34] <ss23> We deploy some sites with git
476: [03:51:41] <ss23> But believe me, that's on the "nice" end of our scale of deployment methods
477: [03:51:49] <unsignedint> haha
478: [03:52:07] <unsignedint> do you have a script-per-site for deployment or something?
479: [03:52:17] <ss23> Sometimes
480: [03:52:28] <unsignedint> wow
481: [03:52:31] <simon_w> We deploy... 1 site with git
482: [03:52:31] <ss23> We have a "standard" way of deploying, but it only became standard after I started working here
483: [03:52:36] <ss23> So ther rest are like... yeah, whatever.
484: [03:52:37] <unsignedint> too much effort involved in standardising?
485: [03:52:43] <ss23> unsignedint: It's on the todo list
486: [03:52:46] <ss23> Not the top of it, but it's quite here
487: [03:52:52] <ss23> Migrating sites away from SVN is also on the list
488: [03:52:52] <ss23> :P
489: [03:52:56] <unsignedint> makes sense :P
490: [03:53:06] <unsignedint> simon_w cant be happy about migrating away from SVN haha
491: [03:53:07] <ss23> Migrating away from SVN is higher than to a standard deployment tool
492: [03:53:09] <ss23> lol
493: [03:53:30] <unsignedint> well you can use a home grown deployment tool, just make it generic enough to be used by all your sites
494: [03:53:31] <simon_w> unsignedint, I don't (and won't) work for SS :p
495: [03:53:48] <ss23> You used to want to work here!
496: [03:53:55] <unsignedint> oh really? I dont know why I thought you did then, didnt you and ss23 used to go on man dates for lunch?
497: [03:54:18] <unsignedint> and I thought you were one of the core devs
498: [03:54:25] <simon_w> ss23, and then I left high school!
499: [03:54:32] <simon_w> unsignedint, I am
500: [03:54:42] <unsignedint> does another company pay you to work on core?
501: [03:54:52] <simon_w> Nope
502: [03:54:53] <Colin[pi]> lol
503: [03:55:00] <Colin[pi]> simon_w does it out of the goodness of his heart
504: [03:55:19] <unsignedint> simon_w what do you do for a day job then
505: [03:55:35] <simon_w> Currently, slack off :p
506: [03:55:44] <simon_w> https://pocketrent.com
507: [03:55:52] <simon_w> And a couple of contracted things
508: [03:56:04] <simon_w> (As in, we as a company are contracted for them)
509: [03:56:15] * nickmolhoek quit (Quit: nickmolhoek)
510: [03:56:49] <ss23> unsignedint: Me and simon_w are both in Wellingotn (as are a bunch of other people) so yeah, we went to lunch for a while
511: [03:56:52] <unsignedint> haha nice scale effect, logo into bootstrap nav
512: [03:56:53] <ss23> But then he decided to "diet" :(
513: [03:57:22] <unsignedint> gosh who does that :P
514: [03:57:31] <ss23> IKR
515: [03:57:33] * ss23 glares at simon_w
516: [03:57:43] <simon_w> People that don't want to end up like ss23 :p
517: [03:57:46] <ss23> lol
518: [03:57:47] <ss23> ouch
519: [03:58:54] <simon_w> Silly Chrome, you shouldn't send the redirect header when changing between http and https
520: [03:59:02] <simon_w> *referer
521: [04:00:21] <ss23> SHOULD/SHOULD NOT is just a recomendation man
522: [04:00:43] <simon_w> So's everything the W3C publishes
523: [04:01:50] <zippy____> Ryan-Toast: Why have a layout.css and a typography.css ? I find I am jumping between them so much, and sort of "doubling" up. Adding things like, footer ul margin here, but then footer ul font-size there - it almost feels better to just drop the typography sheet
524: [04:03:33] <unsignedint> I have a typography css for base h1,h2,h3, p and a styles and then customise them as required per page. anything else is not typography.
525: [04:03:33] * PapaBearNZ quit (Ping timeout: 245 seconds)
526: [04:05:43] <zippy____> unsignedint: so footer font styles into typography?
527: [04:23:51] * k_fish has joined #silverstripe
528: [04:26:04] * willr quit (Quit: willr)
529: [04:26:50] * k_fish_ quit (Ping timeout: 252 seconds)
530: [04:33:08] * an_Eskimo quit (Ping timeout: 245 seconds)
531: [04:35:07] <zippy____> hm
532: [04:35:22] <zippy____> after installign the blog module - my header fails with the nav now. the method 'fortemplate' does not exist on 'BlogHolder'
533: [04:35:30] <zippy____> when it tires to do $Current
534: [04:36:03] <zippy____> other pages worked fine with it, odd
535: [04:41:42] * cloph has joined #silverstripe
536: [04:42:31] * cloph_away quit (Ping timeout: 264 seconds)
537: [04:43:16] * howardgrigg has joined #silverstripe
538: [04:44:13] * UncleCheese quit (Quit: UncleCheese)
539: [04:47:37] * howardgrigg quit (Ping timeout: 240 seconds)
540: [04:49:38] * zippy____ quit (Ping timeout: 240 seconds)
541: [04:50:04] * k_fish quit (Quit: Leaving)
542: [05:02:12] * willr has joined #silverstripe
543: [05:04:05] * MrGuits has joined #silverstripe
544: [05:05:55] * Guits quit (Ping timeout: 264 seconds)
545: [05:10:11] <Colin[pi]> "this functionality would be great to add to the importer" "yeah, it would be wouldn't it? but I'll have to quote on that." "... oh."
546: [05:10:18] <Colin[pi]> no freebies son!
547: [05:44:38] * howardgrigg has joined #silverstripe
548: [05:49:19] * howardgrigg quit (Ping timeout: 264 seconds)
549: [05:52:51] * willr quit (Quit: willr)
550: [05:59:04] <Bollig|DesignCty> lol Colin[pi], I hear you :)
551: [05:59:28] * liam__ quit (Quit: liam__)
552: [06:05:38] <Colin[pi]> Bollig|DesignCty: this guy has already got a LOT of extras, no more
553: [06:13:09] <simon_w|air> madmatt, go back to work so I can bug you about behat! :p
554: [06:13:13] * liam_ has joined #silverstripe
555: [06:13:21] <simon_w|air> Shouldn't leave at 1830 when I need to bug you after hours
556: [06:13:34] * liam_ quit (Client Quit)
557: [06:27:57] <simon_w|air> Anyone got access to a box running PHP <5.3.7?
558: [06:30:58] * willr has joined #silverstripe
559: [06:31:14] <simon_w|air> willr, do you have access to a box running PHP <5.3.7?
560: [06:31:42] * howardgrigg has joined #silverstripe
561: [06:31:51] <ss23> I'm sure ssltd does
562: [06:31:52] <ss23> :O
563: [06:32:23] <simon_w|air> Yeah, so am I
564: [06:32:26] <simon_w|air> But I don't :p
565: [06:32:41] <willr> And still 5.3?
566: [06:33:00] <willr> I have 2 still on 5.2 god damnit
567: [06:33:06] <simon_w|air> Well, 5.2's fine
568: [06:33:13] <simon_w|air> Just need to know if php -r 'var_dump(is_a("stdClass", "stdClass", true));' is true or false
569: [06:35:05] <willr> Lemme check
570: [06:35:24] <jonShape_> True on 5.3.25, closest box I have to hand
571: [06:35:50] <simon_w|air> Yeah, I know what it is on >=5.3.7
572: [06:35:59] <simon_w|air> That's when the change happened
573: [06:39:26] * willr quit (Ping timeout: 246 seconds)
574: [06:40:36] * willr has joined #silverstripe
575: [06:42:18] <jonShape_> simon_w|air: PHP Warning: is_a() expects exactly 2 parameters, 3 given in Command line code on line 1
576: [06:42:23] <jonShape_> PHP 5.3.7 (cli) (built: Sep 6 2011 07:03:45)
577: [06:42:35] <simon_w|air> Sweet, thanks
578: [06:42:39] <jonShape_> php -r 'var_dump(is_a("stdClass", "stdClass"));'
579: [06:42:41] <jonShape_> true
580: [06:43:41] <simon_w|air> Yeah, so it's false in <5.3.7
581: [06:43:53] <simon_w|air> (and >= 5.3.9)
582: [06:45:55] <willr> 4.0 in force 5.4 minimum requirement? Do the PHP ecosystem some good
583: [06:46:21] <simon_w|air> I'd say 5.5 at least by the time 4.0 happens
584: [06:59:19] * howardgrigg quit (Ping timeout: 264 seconds)
585: [07:02:29] * violetina has joined #silverstripe
586: [07:11:13] <lewellyn> or maybe even 5.6!
587: [07:12:50] <willr> Well my thinking was all of tractor cows stuff would perhaps break enough to warrant a 4.0
588: [07:12:52] <lewellyn> though i think rhel 7 will have 5.5, so that's probably a sane baseline for a couple years.
589: [07:13:29] <willr> See he's now at SS AK? Back to just you and me simon_w as the outsiders.
590: [07:13:41] <lewellyn> it might be worthwhile to recommend remi's repos to rhel/clone users on < 7
591: [07:14:17] <lewellyn> otherwise even 5.4 will be painful for lots of users.
592: [07:14:19] <simon_w|air> willr, but then I'd need to change the milestones!
593: [07:14:33] <simon_w|air> lewellyn, people should stop using CentOS
594: [07:14:35] <willr> simon_w|air api for that right :P
595: [07:14:50] <simon_w|air> willr, edit button, but shhh :p
596: [07:15:11] <lewellyn> simon_w|air: and rhel and scientific and all the other white labels.
597: [07:15:12] <willr> no, not another email bombardment.
598: [07:15:28] <simon_w|air> willr, you can edit the milestones
599: [07:15:47] <simon_w|air> and changing labels and stuff doesn't seen emails
600: [07:16:01] * howardgrigg has joined #silverstripe
601: [07:16:06] <willr> wheres the fun in something I could script
602: [07:17:18] <ss23> you could script a relase tool for releasing forum module!
603: [07:17:38] <simon_w|air> Or, for the latter part of the second email I sent to the secret mailing list!
604: [07:18:43] <simon_w|air> Oh right, mail keeps crashing. Wondered why I wasn't getting notifications
605: [07:21:40] * spronk2 has joined #silverstripe
606: [07:25:16] * chr1stopher has joined #silverstripe
607: [07:33:53] * zippy____ has joined #silverstripe
608: [07:35:13] * willr quit (Ping timeout: 240 seconds)
609: [07:39:00] * Jakx quit (Ping timeout: 255 seconds)
610: [07:39:04] * Jakx_ has joined #silverstripe
611: [07:39:09] * Jakx_ is now known as Jakx
612: [07:39:29] * Jakx quit (Client Quit)
613: [07:40:25] * mrzero has joined #silverstripe
614: [07:40:25] * mrzero quit (Changing host)
615: [07:40:25] * mrzero has joined #silverstripe
616: [07:40:52] <chr1stopher> good morning, i would love to install silverstripe on openshift and got a problem with the installation because of setting up the DB. openshift offers me some variables but not common mysql information. i thought maybe i can use these variables in the config-file, but i wanted to know if the installer is doing more things than just editing the config file?
617: [07:42:34] * travis-ci has joined #silverstripe
618: [07:42:34] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2163 (3.1 - 7feb225 : Simon Welsh): The build was broken.
619: [07:42:34] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/16fe87e4aa63...7feb225e7be7
620: [07:42:34] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/20868991
621: [07:42:34] * travis-ci has left #silverstripe
622: [07:45:18] * howardgrigg quit (Ping timeout: 255 seconds)
623: [07:57:21] * EasyCo has joined #silverstripe
624: [08:03:18] * Motoservo quit (Ping timeout: 240 seconds)
625: [08:07:24] * Motoservo has joined #silverstripe
626: [08:10:02] * Shrike_Finland has joined #silverstripe
627: [08:14:34] * violet- has joined #silverstripe
628: [08:15:20] * violetina quit (Ping timeout: 246 seconds)
629: [08:16:44] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
630: [08:17:38] * Colin[pi] quit (Ping timeout: 240 seconds)
631: [08:19:59] * Shrike_Finland1 has joined #silverstripe
632: [08:20:02] <zippy____> chr1stopher: I think it also updates htaccess files
633: [08:20:15] * mrzero_ has joined #silverstripe
634: [08:20:28] <zippy____> chr1stopher: best bet would to either check the installer on git hub, or, install it locally and check what changes
635: [08:22:59] * Shrike_Finland quit (Ping timeout: 240 seconds)
636: [08:23:14] <chr1stopher> zippy____: thanks. there is also already a package on github to use for silverstripe on openshift. i allready try to figure out the difference what this guy changed: https://github.com/PhillyOpen/openshift-silverstripe-installer
637: [08:23:44] <chr1stopher> i guess one important part are these environment settings
638: [08:24:25] * mrzero quit (Ping timeout: 240 seconds)
639: [08:24:25] * mrzero_ is now known as mrzero
640: [08:24:30] * Guits has joined #silverstripe
641: [08:25:52] * UncleCheese_ has joined #silverstripe
642: [08:25:56] * jimt has left #silverstripe
643: [08:27:33] * ARNHOE has joined #silverstripe
644: [08:28:53] * MrGuits quit (Ping timeout: 240 seconds)
645: [08:28:54] * Ryan-Toast quit (Ping timeout: 240 seconds)
646: [08:28:55] * Motoservo quit (Ping timeout: 240 seconds)
647: [08:32:30] * Motoservo has joined #silverstripe
648: [08:33:11] * ARNHOE quit ()
649: [08:33:59] * ARNHOE has joined #silverstripe
650: [08:39:58] * howardgrigg has joined #silverstripe
651: [08:42:20] * howardgrigg quit (Client Quit)
652: [08:58:43] * travis-ci has joined #silverstripe
653: [08:58:43] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2173 (3.1 - 912cda9 : Will Rossiter): The build is still failing.
654: [08:58:43] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/804b942e8a1a...912cda9a1e4a
655: [08:58:43] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/20921330
656: [08:58:43] * travis-ci has left #silverstripe
657: [09:05:29] * kinglozzer has joined #silverstripe
658: [09:09:15] * travis-ci has joined #silverstripe
659: [09:09:15] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2163 (3.1 - 7feb225 : Simon Welsh): The build was broken.
660: [09:09:15] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/16fe87e4aa63...7feb225e7be7
661: [09:09:15] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/20868991
662: [09:09:15] * travis-ci has left #silverstripe
663: [09:17:17] * ocm has joined #silverstripe
664: [09:17:24] <ocm> howdy!
665: [09:18:01] <zippy____> oh hi
666: [09:19:52] <Zauberfisch> good morning
667: [09:22:17] <ocm> wzup? :D
668: [09:30:21] * micmania1 has joined #silverstripe
669: [09:32:40] <kinglozzer> Best ORM way of selecting records that are up to 1 month old?
670: [09:33:21] <kinglozzer> ->filter('Date:GreaterThan', '1 month ago, yo'); ?
671: [09:33:26] * Tanger quit (Quit: Tanger)
672: [09:34:38] <Zauberfisch> kinglozzer: http://stackoverflow.com/a/22417106/1119263
673: [09:34:44] <Zauberfisch> not sure if its the best way
674: [09:34:48] <Zauberfisch> but its a way that works
675: [09:35:06] <Zauberfisch> $date = date('Y-m-d H:i:s', strtotime("now -1 day"));
676: [09:35:13] <Zauberfisch> or you use mktime()
677: [09:35:43] <Zauberfisch> and yes, you can use the modifiers like GreaterThan and LessThan with dates
678: [09:37:20] <kinglozzer> Thanks Zauberfisch :)
679: [09:40:53] * willr has joined #silverstripe
680: [09:42:31] <zippy____> hi willr
681: [09:43:02] <willr> howdey
682: [09:54:40] * kk has joined #silverstripe
683: [09:56:19] <kk> hellp
684: [09:56:25] <kk> hello
685: [09:56:31] <zippy____> hi
686: [09:59:52] <kk> i have a search problem. -> i have a page named "Help center". when i search for help nothing is found. but when i search for "help center" the page is found.
687: [10:01:33] * Cari has joined #silverstripe
688: [10:02:32] <zippy____> how are you using the search?
689: [10:02:39] <zippy____> what is the search?
690: [10:06:12] * travis-ci has joined #silverstripe
691: [10:06:12] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2163 (3.1 - 7feb225 : Simon Welsh): The build was broken.
692: [10:06:12] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/16fe87e4aa63...7feb225e7be7
693: [10:06:12] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/20868991
694: [10:06:12] * travis-ci has left #silverstripe
695: [10:11:14] <kk> @zippy____: i have a searchform in my template and a FulltextSearchable::enable() in my config_... or what did you mean?
696: [10:14:50] * travis-ci has joined #silverstripe
697: [10:14:50] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#784 (3.1 - 403b47f : Simon Welsh): The build failed.
698: [10:14:50] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/7f62cd3c8846...403b47fe6c89
699: [10:14:50] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/20867295
700: [10:14:50] * travis-ci has left #silverstripe
701: [10:27:54] * chr1stopher has left #silverstripe
702: [10:32:43] * UncleCheese_ quit (Quit: UncleCheese_)
703: [10:38:43] <kinglozzer> Best way of handling 'No URL rule was matched' when using just the framework?
704: [10:40:29] <micmania1> kinglozzer: I just copied some stuff from the CMS
705: [10:42:27] <kinglozzer> micmania1: I can't seem to find anywhere to stop the default behaviour :/ the CMS always has a URL rule matched with ModelAsController. The only place I can see to hook into it is Debug::friendlyError(), which checks for an 'ErrorPage' class
706: [10:42:31] <kinglozzer> Coupling ftw
707: [10:42:35] * Shrike_Finland1 quit (Quit: Leaving.)
708: [10:42:50] <micmania1> kinglozzer: http://www.sspaste.com/paste/show/5326ce13542a3
709: [10:43:14] <micmania1> That's not the full solution - you'll have to write your own handleRequest method and all that shit
710: [10:44:07] <micmania1> also, those routes will disable /admin and some other stuff (mostly legacy stuff).
711: [10:44:20] * zippy____ quit (Quit: zippy____)
712: [10:44:22] <micmania1> I re-add those back in with a sepaate dev module :)
713: [10:44:35] <micmania1> separate
714: [10:44:39] <kinglozzer> micmania1: Yeah that's the approach I'm gonna have to go with. You can add those without removing all the other routes though
715: [10:44:53] <kinglozzer> You have to name your block 'rootroutes' I think
716: [10:45:00] <kinglozzer> Then they'll be merged
717: [10:45:13] <micmania1> ah, I just set mine to run after framework
718: [10:45:32] <micmania1> so it took precedence
719: [10:46:18] <kinglozzer> http://www.silverstripe.org/general-questions/show/23712#post337135
720: [10:46:29] <micmania1> but basically, the httpError function just looks for a template named ErrorPage_{code} and uses that.
721: [10:48:02] <Zauberfisch> does it?
722: [10:48:10] <micmania1> mine does :)
723: [10:48:10] <Zauberfisch> I thought httpError just outputs a string
724: [10:48:30] <Zauberfisch> I always use
725: [10:48:40] <Zauberfisch> return ErrorPage::responseFor(404);
726: [10:48:44] <Zauberfisch> or something
727: [10:48:56] <micmania1> Zauberfisch: http://www.sspaste.com/paste/show/5326ce13542a3 - We were talkign about routing without the CMS
728: [10:49:04] <Zauberfisch> ah, I see
729: [10:49:05] <Zauberfisch> nvm then
730: [10:51:51] * Shrike_Finland has joined #silverstripe
731: [10:53:29] * boytikz quit (Quit: Leaving.)
732: [10:55:06] * boytikz has joined #silverstripe
733: [10:55:07] * boytikz quit (Client Quit)
734: [10:55:43] * philbenoit has joined #silverstripe
735: [10:55:57] <philbenoit> evening all
736: [10:56:20] <philbenoit> quick question, how can i return multiple bits of data to the template from one function all
737: [10:56:45] <philbenoit> I have a share price feed with 9 bits of data that I need to drop into a template
738: [10:56:48] <philbenoit> any ideas?
739: [11:00:45] * EasyCo quit (Quit: Connection closed for inactivity)
740: [11:01:15] <kinglozzer> philbenoit: ArrayData
741: [11:01:16] <micmania1> philbenoit: use ArrayData
742: [11:01:18] <Zauberfisch> philbenoit: is it a list of items or 9 different properties
743: [11:01:20] <micmania1> what he said
744: [11:01:22] <kinglozzer> snap
745: [11:01:23] <kinglozzer> :P
746: [11:01:31] <Zauberfisch> (:
747: [11:01:55] <Zauberfisch> if its different proprtties, then ArrayData
748: [11:01:59] <Zauberfisch> otherweise ArrayList
749: [11:02:54] <philbenoit> ok its 3 x share price, up or down and value
750: [11:03:00] <Zauberfisch> http://stackoverflow.com/a/17922260/1119263
751: [11:03:03] <philbenoit> so arrayData
752: [11:03:26] <Zauberfisch> here basically works the same way like arraylist
753: [11:03:36] <philbenoit> @Zauberfish thats what I have now
754: [11:03:56] <philbenoit> just making sure that looping does not make 9 requests still
755: [11:04:03] <Zauberfisch> public function Foo() { return ArrayData(array('Hello' => 'World', 'Zauberfisch' => 'Awesome')); }
756: [11:04:06] <Zauberfisch> template:
757: [11:04:13] <Zauberfisch> $Hello
758: [11:04:15] <Zauberfisch> $Zauberfisch
759: [11:04:17] <Zauberfisch> will ptint
760: [11:04:20] <Zauberfisch> World
761: [11:04:24] <Zauberfisch> Awesome
762: [11:04:36] <Zauberfisch> actually, my mistake.
763: [11:04:43] <Zauberfisch> $Foo.Hello and $Foo.Zauberfisch
764: [11:05:04] <Zauberfisch> or <% with $Foo %>$Hello ...<% end_with %>
765: [11:05:29] <philbenoit> thanks! just what I was looking for. If 'World' comes from another function that is pulling from an external feed?
766: [11:05:42] <Zauberfisch> doesn't matter
767: [11:05:57] <philbenoit> I will need to put the feed return into a variable first
768: [11:06:01] <philbenoit> ok
769: [11:06:03] <Zauberfisch> ArrayData is basically the same as an array, just a wrapper around array to allow silverstripe to do its magic
770: [11:06:23] <Zauberfisch> so you can build your array first
771: [11:06:28] <philbenoit> will it still call the external feed multiple times?
772: [11:06:39] <Zauberfisch> the template call to php is cached
773: [11:06:50] <Zauberfisch> so your php method will only be called once from the template
774: [11:07:08] <philbenoit> ok great, that the nugget I didnt know yet!!!
775: [11:07:10] <Zauberfisch> if you don't call the method from somewhere else as well, then its good
776: [11:07:25] <Zauberfisch> otherweise you should cache it yourself
777: [11:07:25] <philbenoit> Will update and test! Thanks for your time1
778: [11:07:27] <philbenoit> !
779: [11:08:31] <Zauberfisch> also there is a RestfulService class that can take care of queriing data for you
780: [11:08:34] <Zauberfisch> http://doc.silverstripe.org/framework/en/reference/restfulservice
781: [11:08:57] <Zauberfisch> it does the caching for you, file based. so its not just per request but over a period of time
782: [11:12:13] * Shrike_Finland quit (Quit: Leaving.)
783: [11:12:49] <philbenoit> that looks like the best idea, we are having issues with long responce times from the feed so this should help with that also
784: [11:13:10] <ocm> Zauberfisch, does the restfulservice properly cache? Just looking at the code of RestfulService.php, says this on function request()
785: [11:13:11] <ocm> @todo Caching of requests - probably only GET and HEAD requestst
786: [11:16:23] * Shrike_Finland has joined #silverstripe
787: [11:16:47] <Zauberfisch> ocm: last time I looked it writes the response to file
788: [11:17:02] <Zauberfisch> but that was a while ago
789: [11:18:20] <ocm> ah; I havent used it myself before
790: [11:19:21] <ocm> maybe I should, have been working on a REST API implementation, though just setup curl myself
791: [11:19:22] * cloph is now known as cloph_away
792: [11:19:40] <ocm> requesting ss controller with angular
793: [11:21:47] <kinglozzer> ocm, Zauberfisch: Yeah it does cache, think the docs are out of date
794: [11:22:04] <kinglozzer> There's a PR from one of the BetterBrief guys for improving the whole class I think
795: [11:28:50] <ocm> does git has an easy way to find a PR on keyword?
796: [11:29:49] <ocm> nvm, found it
797: [11:34:54] * willr quit (Quit: willr)
798: [11:47:45] * Shrike_Finland quit (Quit: Leaving.)
799: [11:54:20] * GAA_SS has joined #silverstripe
800: [11:54:32] <GAA_SS> Hi
801: [11:56:15] <GAA_SS> I have created a databoject "Contact" with a field "TotalScore"... I want to count each Totalscore and display the average
802: [11:56:24] <GAA_SS> Does somebody have any idea?
803: [12:01:00] <ocm> get all values and divide it to the total of all totalscores
804: [12:02:19] <GAA_SS> Thanks
805: [12:02:36] <GAA_SS> maybe im think to difficult haha
806: [12:02:52] <GAA_SS> How can i set that up?
807: [12:10:38] <Zauberfisch> GAA_SS: you mean you have many records of that dataobject and you want the average of the TotalScore?
808: [12:10:39] * Shrike_Finland has joined #silverstripe
809: [12:11:13] <Zauberfisch> $average = Contact::get()->avg('TotalScore');
810: [12:11:18] <Zauberfisch> all hail the new ORM
811: [12:13:32] <philbenoit> this 'new' style of Something::Something, where can I learn more about it and the correct coding
812: [12:13:41] <philbenoit> syntax / structure
813: [12:17:37] <kinglozzer> philbenoit: http://doc.silverstripe.org/framework/en/topics/datamodel
814: [12:20:37] <philbenoit> thanks kinglozzer, is this a 3.x change
815: [12:21:39] <GAA_SS> zauberfisch: Thanks
816: [12:21:45] <GAA_SS> its working great
817: [12:21:58] <kinglozzer> I think so, yeah. 2.4 docs seem to be more raw SQL http://doc.silverstripe.org/framework/en/2.4/topics/datamodel
818: [12:24:54] * Liquide has joined #silverstripe
819: [12:26:53] * philbenoit quit (Ping timeout: 245 seconds)
820: [12:37:59] * ryszard has joined #silverstripe
821: [12:45:10] * spronk2 quit (Quit: spronk2)
822: [12:45:19] * desperate has joined #silverstripe
823: [12:45:21] <ryszard> Hey guys! I've got a quick question.
824: [12:45:24] <desperate> hello everyone
825: [12:45:30] <desperate> i hope we're all well
826: [12:45:58] <desperate> is it possible within a template to access the url and title of a parent holder page?
827: [12:46:08] <desperate> I thought it was possible using loop Paretn control
828: [12:46:14] <desperate> *parent
829: [12:47:38] <ryszard> check out this: http://doc.silverstripe.com/framework/en/reference/templates#scope
830: [12:47:40] <desperate> oh i see it is.. you just need to use $Parent.Title
831: [12:47:43] <desperate> just $Title
832: [12:49:58] <ryszard> So, back to my question. I want to extend Comment class to overflow its $db field.
833: [12:50:17] <ryszard> Comment extends DataObject itself.
834: [12:51:36] <ryszard> How do I extend Comment in mysite/config so it uses my class? What do I put inside config.yml?
835: [12:55:08] <micmania1> ryszard: don't extend it. Use a DataExtension instead.
836: [12:55:20] <micmania1> http://doc.silverstripe.org/framework/en/reference/dataextension
837: [12:58:43] * ryszard quit (Ping timeout: 264 seconds)
838: [13:10:59] * ryszard has joined #silverstripe
839: [13:15:37] <GAA_SS> Thanks to Zauberfish i have the average of all dataobjects, yippy!!! with the following code: $average = Contact::get()->avg('TotalScore');
840: [13:16:07] <GAA_SS> does someone know how i can filter the output between two dates?
841: [13:17:03] <GAA_SS> somethin like array( 'Created:GreaterThan' => date('Y-m-d').' 00:00:00', 'Created:LessThan' => date('Y-m-d').' 23:59:59' )
842: [13:17:24] <Zauberfisch> $datList = Contact::get();
843: [13:17:40] <Zauberfisch> $dataList->filter(array('Created:GreaterThan' => date('Y-m-d').' 00:00:00'
844: [13:17:43] <Zauberfisch> ....
845: [13:17:45] <Zauberfisch> ));
846: [13:17:57] <Zauberfisch> $average = $dataList->avg('TotalScore');
847: [13:18:10] <GAA_SS> great :D i try that :d thanks again :D
848: [13:18:34] <Zauberfisch> ryszard: same game again. attach an extension to it instead of subclassing it
849: [13:18:46] <Zauberfisch> ryszard: as micmania1 mentioned, use a DataExtension
850: [13:19:11] <Zauberfisch> class CommentExtension extend DataExtension {
851: [13:19:33] <Zauberfisch> private static $db = array('MyExtraDBField', 'Varchar');
852: [13:19:35] <Zauberfisch> }
853: [13:19:43] <Zauberfisch> in yml:
854: [13:19:47] <Zauberfisch> Comment:
855: [13:19:50] <Zauberfisch> extensions:
856: [13:19:55] <Zauberfisch> - 'CommentExtension'
857: [13:20:10] <Zauberfisch> then run a /dev/build?flush=1
858: [13:20:12] <Zauberfisch> done
859: [13:21:14] <ryszard> Zauberfish: mkay, so extension doesn't need $this->extend in base class?
860: [13:21:29] <Zauberfisch> no, not for everything
861: [13:21:41] <Zauberfisch> extend is for hooks
862: [13:21:56] <ryszard> and i can overflow any method and field inside?
863: [13:22:00] <Zauberfisch> private static $db, $has_one, ... are picked up by something else
864: [13:22:17] <Zauberfisch> I presume you mean overwrite ;)
865: [13:22:25] <ryszard> yeah, i do :P
866: [13:22:49] <Zauberfisch> but no, you can't. what you can do is add additional methods. and add new DB fields
867: [13:23:34] <ryszard> In that case ive got another question
868: [13:23:39] <Zauberfisch> and add methods that are picked up by ->extend() things
869: [13:23:49] * cloph_away is now known as cloph
870: [13:24:07] <ryszard> I tried to extend MemberLogin
871: [13:24:35] <ryszard> using Object::useCustomClass('MemberLogin','CustomLogin')
872: [13:24:44] * Shrike_Finland quit (Quit: Leaving.)
873: [13:24:57] <Zauberfisch> useCustomClass only works under some circumstances unfrotunately
874: [13:25:27] <Zauberfisch> it only works if the class you want to overwrite uses MemberLogin::create() instead of new MemberLogin()
875: [13:25:29] <ryszard> and inside mysite/code CustomLogin __construct threw soooo many errors
876: [13:25:37] <ryszard> o, i see
877: [13:25:45] <Zauberfisch> unfortunately, not everything in the core acutally uses ::create()
878: [13:25:52] <Zauberfisch> so you can't overwrite all classes
879: [13:26:23] <Zauberfisch> when you say MemberLogin, do you actually mean MemberLoginForm?
880: [13:26:29] <ryszard> yep
881: [13:26:54] <ryszard> same deal, iwant to remove class='left' from labels
882: [13:27:04] <Zauberfisch> it looks like it does use ::create()
883: [13:27:07] <Zauberfisch> so it should work
884: [13:27:29] <Zauberfisch> what errors did you get?
885: [13:28:22] <ryszard> no, w8, it was MemberLofin
886: [13:28:28] <ryszard> *Login
887: [13:28:37] <ryszard> i wrout about it here: http://www.silverstripe.org/customising-the-cms/show/46456
888: [13:29:16] <ryszard> sorry for spelling today, I'm in the middle of a lecture :P
889: [13:29:38] * catcher has joined #silverstripe
890: [13:29:57] <Zauberfisch> ryszard: so you just want to replace the label left?
891: [13:30:12] <Zauberfisch> then you can reduce it to like 5 lines
892: [13:30:23] <ryszard> Yeah, I just need to remove a class from label.
893: [13:31:17] <ryszard> But I'd like to know how to extend the hell out of it. So eg I could have full control over outputted HTML.
894: [13:32:48] <ryszard> And I've got a module idea. I want to connect comments with flikr.
895: [13:34:23] <ryszard> Add a db field and form uploadfield. Make AJAX request to flikr API putting image file there and return generated URL saving it to comment.
896: [13:34:39] <Zauberfisch> http://paste2.org/fGecWWb2
897: [13:35:23] <ryszard> O, so its pretty much the same deal as with comments.
898: [13:35:47] <ryszard> Only I don't use hook but __construct method itself.
899: [13:35:52] <Zauberfisch> yep
900: [13:36:05] <Zauberfisch> and you don't attach it as extension
901: [13:36:27] <Zauberfisch> instead you subclass, and tell silverstripe to use your subclass instead of the original
902: [13:36:39] <ryszard> I use 'useCustomClass'
903: [13:36:51] <ryszard> and is it possible to do it from yml?
904: [13:37:21] <Zauberfisch> in fact, we could have done that as well with the CommentsController, we could have used useCustomClass there as well and overwrite the form method. but since there was a hook it worked that way as well
905: [13:37:35] <Zauberfisch> no, as far as I know, there is no yml version of useCustomClass yet
906: [13:37:56] <ryszard> So no hook = no possibility of YAML configuration?
907: [13:38:20] <Zauberfisch> well, no, you got it mixed up
908: [13:38:27] <ryszard> damn
909: [13:38:29] <Zauberfisch> Extensions can be added via yml config
910: [13:38:42] <Zauberfisch> CustomClasses can only be set with php code
911: [13:38:57] <Zauberfisch> eventually CustomClass will also be turned into yml config
912: [13:39:14] <ryszard> Yeah, that seems reasonable.
913: [13:39:16] <Zauberfisch> but no one has done that yet
914: [13:39:24] <Zauberfisch> should create a ticket for it
915: [13:40:20] <ryszard> And about that Comments to Flikr connection. Any advice? Like "don't do it, it's to hard"?
916: [13:48:50] <Zauberfisch> ticket created
917: [13:48:51] <Zauberfisch> https://github.com/silverstripe/silverstripe-framework/issues/2965
918: [13:49:10] <Zauberfisch> ryszard: no idea. never had to deal with flikr
919: [13:49:19] <micmania1> Isn't using CustomClass the same as using Member->class = "MyCustomClass"?
920: [13:49:38] <Zauberfisch> I am pretty sure it is not
921: [13:49:39] <micmania1> which can be set via yaml
922: [13:49:52] <Zauberfisch> in fact I would be supprised if Member->class = 'Foo' has any effect at all
923: [13:50:07] <Zauberfisch> besides perhaps breaking a few if statements
924: [13:50:24] <micmania1> I'm pretty sure it works. I've done it before with Controller
925: [13:50:48] <Zauberfisch> as far as I know $obj->class is just a convenient thing to avoud many get_class($this) calls
926: [13:50:58] <Zauberfisch> I don't think writing to it has any real effect
927: [13:51:06] * ivoba has joined #silverstripe
928: [13:52:16] <micmania1> http://www.sspaste.com/paste/show/5326fa6d90edd - This would replace all TextFields with TextFieldOnSteroids
929: [13:52:29] <micmania1> As long as the FormField::create() was respected
930: [13:53:55] <Zauberfisch> oh, in yml
931: [13:53:56] <Zauberfisch> I see
932: [13:54:07] <Zauberfisch> I thought you meant $this->class = "Foo"
933: [13:54:17] <Zauberfisch> I was not aware of a class directive in yml
934: [13:55:20] <Zauberfisch> I guess then I was wrong
935: [13:55:30] <Zauberfisch> ryszard: you might want to try what micmania1 suggested
936: [14:04:10] <ryszard> yep, doing it :)
937: [14:07:27] <GAA_SS> zauberfisch : lol
938: [14:07:34] <GAA_SS> i still cant get it working :D
939: [14:07:42] <GAA_SS> see my following code : http://pastebin.com/0hBVRR7n
940: [14:07:53] <GAA_SS> can you see whats wrong with it?
941: [14:09:20] <Zauberfisch> GAA_SS: yes
942: [14:09:26] <Zauberfisch> you are overwriting the datalist
943: [14:09:35] <Zauberfisch> first you put the list into $dataList
944: [14:09:48] <Zauberfisch> then you completely overwrite $dataList by setting it to be an array
945: [14:09:54] <Zauberfisch> obviously that can not work
946: [14:10:30] <Zauberfisch> and you have a syntax error there
947: [14:10:40] <Zauberfisch> you can't use date('2013-1-31')
948: [14:10:46] <Zauberfisch> date takes a format as paramert
949: [14:10:51] <Zauberfisch> not a date string
950: [14:11:10] <GAA_SS> ooow ok
951: [14:11:15] <Zauberfisch> date('Y-m-d') // correct, this will give you 2014-03-17
952: [14:11:28] <Zauberfisch> date('2013-1-31') // incorrect, this will give you an empty string ""
953: [14:11:40] <Zauberfisch> sorry, actually no
954: [14:12:07] * Guits quit (Ping timeout: 264 seconds)
955: [14:12:41] <Zauberfisch> it will write just '2013-1-31'
956: [14:12:43] <Zauberfisch> I think
957: [14:12:46] <Zauberfisch> or '--'
958: [14:12:47] <Zauberfisch> not sure
959: [14:13:16] <Zauberfisch> but you don't need date anyway here
960: [14:13:43] <Zauberfisch> http://paste2.org/5mZhvk9Z
961: [14:13:48] <Zauberfisch> somethin like that
962: [14:13:59] <GAA_SS> i see, lol, but i get a blank page now i think its someting with the $datalist
963: [14:14:29] <Zauberfisch> when using the code I pasted?
964: [14:14:58] <GAA_SS> nope that is working properly indeed...
965: [14:15:02] <GAA_SS> tahnks
966: [14:15:21] <Zauberfisch> the blank page probably means that there was an error but the error was not displayed
967: [14:15:46] <Zauberfisch> you will probably get that again in the future
968: [14:15:53] <Zauberfisch> so you should turn error reporting on
969: [14:15:59] <Zauberfisch> 3 things you need to do:
970: [14:16:26] <Zauberfisch> 1) set display_errors to On. either in php.ini, _ss_environment.php or the settings panel of your webhosting
971: [14:16:45] <GAA_SS> ok
972: [14:16:48] <Zauberfisch> 2) set error_reporting to E_ALL or similar. either in php.ini, _ss_environment.php or the settings panel of your webhosting
973: [14:17:00] <Zauberfisch> 3) set silverstripe in developement mode
974: [14:17:40] <GAA_SS> ok the third i have already. the other two i will take care off
975: [14:17:45] <Zauberfisch> see http://doc.silverstripe.com/framework/en/topics/debugging on how to put silverstripe into dev mode
976: [14:17:50] <Zauberfisch> ah, good
977: [14:18:10] <Zauberfisch> 1 and 2 can often also be done in .htaccess
978: [14:18:21] <GAA_SS> ok, thanks
979: [14:18:34] * chr1stopher has joined #silverstripe
980: [14:18:54] <GAA_SS> but what you mean with the dates? its not possible to put a date in the filter array?
981: [14:19:21] <Zauberfisch> it is
982: [14:19:30] <Zauberfisch> I was just saying that you missunderstood how date() works
983: [14:20:20] <Zauberfisch> date() is a function that returns a string of a date/time in the format you want
984: [14:20:25] <Zauberfisch> so if you do:
985: [14:20:30] <GAA_SS> ooow i get u
986: [14:20:33] <GAA_SS> i see
987: [14:20:38] <Zauberfisch> echo date('Y-m'); it will give you 2014-03
988: [14:20:54] <Zauberfisch> echo date('m/Y'); it will give you 03/2014
989: [14:21:03] <Zauberfisch> date() is for formatting a date/time
990: [14:21:23] <desperate> i'm try to install gallery which i found on github
991: [14:21:23] <Zauberfisch> if you already have a date as string, you don't need date() at all
992: [14:21:30] * Guits has joined #silverstripe
993: [14:21:52] <desperate> the instructions say "1. composer require frankmullenger/gallery 1.0.*@dev"
994: [14:21:57] <desperate> what does this mean?
995: [14:22:07] <GAA_SS> ok :D thanks for your help again zauberfisch ::D
996: [14:22:11] <Zauberfisch> np
997: [14:22:30] <Zauberfisch> desperate: composer is a php pakage manager
998: [14:22:57] <desperate> @Zauberfisch excuse my ignorance.. what is that?
999: [14:23:06] <Zauberfisch> desperate: most modules provide a download as alternative to composer, but not all do
1000: [14:23:07] <desperate> is it a line I have to add to composer?
1001: [14:23:21] <Zauberfisch> desperate: composer is a tool that installs dependencies for you
1002: [14:23:49] <desperate> so i can install manually as an alternative?
1003: [14:23:55] <Zauberfisch> so basically I say "I need framework, cms, gallery from frank, gridfieldexnteions from andrew". go composer, fetch it for me
1004: [14:24:04] <desperate> neat
1005: [14:24:20] <Zauberfisch> I just write the things I want in a file, and composer gets it for me
1006: [14:24:29] <Zauberfisch> sort if like cristmas, but everyday :P
1007: [14:24:44] <Zauberfisch> *christmas
1008: [14:24:48] * MrGuits has joined #silverstripe
1009: [14:25:13] * Shrike_Finland has joined #silverstripe
1010: [14:25:39] <Zauberfisch> desperate: usually you can manually install, but it depends on the creator of the module how easy it is
1011: [14:25:58] <desperate> the documentation isn't very clear
1012: [14:26:04] <Zauberfisch> looking at the gallery module I actually see instructions for a manual install
1013: [14:26:07] <Zauberfisch> https://github.com/frankmullenger/silverstripe-gallery
1014: [14:26:16] <desperate> look under manual:
1015: [14:26:21] <Zauberfisch> you see there, that are actually 2 options
1016: [14:26:25] <Zauberfisch> Composer is the first option
1017: [14:26:29] <Zauberfisch> Manual is the alternative
1018: [14:26:31] * Guits quit (Ping timeout: 264 seconds)
1019: [14:26:34] <desperate> "Place this directory in the root of your SilverStripe installation, rename the folder 'gallery'."
1020: [14:26:36] <Zauberfisch> just do step 1 and 2 of manual and you are good
1021: [14:26:43] <desperate> which directory?
1022: [14:27:01] <Zauberfisch> the silverstripe-gallery
1023: [14:27:27] <Zauberfisch> so he is saying: download the zip. extract it. rename it to silverstripe-gallery
1024: [14:27:42] <Zauberfisch> rename it from silverstripe-gallery to gallery
1025: [14:27:53] <desperate> but the silverstripe-gallery folder form zip looks like the strcuture of a silverstripe website
1026: [14:27:59] <Zauberfisch> :O
1027: [14:28:00] <desperate> it has a 'mysite' folder
1028: [14:28:12] <Zauberfisch> it shouldn't :O
1029: [14:28:24] <desperate> sorry, i mean it has code, templates etc
1030: [14:28:31] <Zauberfisch> actually, you are right, it does
1031: [14:28:37] <Zauberfisch> well, thats how every module looks like
1032: [14:28:48] <Zauberfisch> mysite is just a module. but its the primary one
1033: [14:29:02] <desperate> you can see ther structure at the top of the page
1034: [14:29:02] <Zauberfisch> so you are good
1035: [14:29:04] <desperate> https://github.com/frankmullenger/silverstripe-gallery
1036: [14:29:13] <Zauberfisch> yeah yeah, its suppose to be that way
1037: [14:29:15] <desperate> so just throw it in as it is and rename it?
1038: [14:30:11] * ryszard quit (Ping timeout: 246 seconds)
1039: [14:31:50] <Zauberfisch> wait
1040: [14:33:55] <Zauberfisch> desperate: the folder/file structure should look something like this: http://paste2.org/3yXF16YK
1041: [14:34:53] <Zauberfisch> so download the gallery. make sure the files that you downloaded are in a folder named "gallery" and copy that folder gallery into your project
1042: [14:35:04] <GAA_SS> zauberfisch :D still one issue haha
1043: [14:35:40] <GAA_SS> the result of the output is still blank :D
1044: [14:37:14] <Zauberfisch> I need a little more to go on
1045: [14:37:17] <Zauberfisch> is the whole page blank?
1046: [14:37:38] <GAA_SS> nope never mind :d its working now :d
1047: [14:37:44] <GAA_SS> really thanks for your help
1048: [14:37:46] <GAA_SS> :D
1049: [14:38:09] * ryszard has joined #silverstripe
1050: [14:38:13] <GAA_SS> i just used the wrong variable :D my fault
1051: [14:38:35] <Zauberfisch> ryszard: if you got it figured out, please post a reply on the forums with your solution
1052: [14:38:40] * evelin has joined #silverstripe
1053: [14:38:47] <evelin> hi
1054: [14:38:49] <Zauberfisch> so others that find your question through serach have a solution
1055: [14:39:38] <evelin> does someone know if there is a Dutch version of the Silverstripe userhelp?
1056: [14:42:47] <Zauberfisch> probably not
1057: [14:43:12] <Zauberfisch> I don't think userhelp has ever been translated
1058: [14:43:39] <Zauberfisch> and no one has bothered to do, because the CMS is so simple, most clients don't even need any help
1059: [14:45:59] * Shrike_Finland quit (Quit: Leaving.)
1060: [14:47:51] * ryszard quit (Ping timeout: 255 seconds)
1061: [14:51:43] * chr1stopher has left #silverstripe
1062: [14:51:45] <desperate> Zauberfisch: thanks that worked (gallery)
1063: [14:53:40] <desperate> so the gallery upload works in the CMS but what I want to be able to do is have several galleries and images can belong to one or more galleries
1064: [14:53:50] <desperate> any suggestions as to how I can achieve this
1065: [14:54:54] <Zauberfisch> I never used a gallery module
1066: [14:55:36] <Zauberfisch> in the time it took you to install that module and figure out it is not doing what you expect it to do, I would have built it myself :P
1067: [14:56:55] <Zauberfisch> not sure how your php/silverstripe skills are, but if you are well settled in, I'd recommend you build it yourself
1068: [14:58:51] <desperate> Yeah I think it might be a better option
1069: [14:59:16] <Zauberfisch> its pretty straigt forward unless you want some super special feature
1070: [14:59:23] <desperate> so I would have a gallery_holder page
1071: [14:59:31] <Zauberfisch> class GalleryHolderPage extends Page
1072: [14:59:38] * Shrike_Finland has joined #silverstripe
1073: [14:59:45] <Zauberfisch> actually, I would call it just
1074: [14:59:52] <Zauberfisch> class GalleryPage extends Page
1075: [14:59:59] <desperate> imageItem extends data object?
1076: [15:00:02] <Zauberfisch> class GalleryAlbum extends DataObject
1077: [15:00:08] <Zauberfisch> class GalleryImage extends DataObject
1078: [15:00:21] <Zauberfisch> GalleryPage has_many GalleryAlbums
1079: [15:00:21] <desperate> cool
1080: [15:00:34] <Zauberfisch> GalleryAlbum has_many GalleryImage
1081: [15:00:39] <Zauberfisch> GalleryImage has_one Image
1082: [15:00:53] <Zauberfisch> that would be one option
1083: [15:00:54] <desperate> GalleryPage has_one GalleryAlbum?
1084: [15:01:08] <Zauberfisch> has one? :O
1085: [15:01:36] <Zauberfisch> actually, tell us exactly what your gallery should do
1086: [15:01:46] <Zauberfisch> I will then give a recommendation on architecture
1087: [15:02:21] <desperate> should just display a selection of images
1088: [15:02:34] <desperate> and they should be clickable into something like lightbox
1089: [15:02:42] <desperate> images need a caption
1090: [15:06:53] * kk quit (Ping timeout: 245 seconds)
1091: [15:19:04] <desperate> Zauberfisch: If GalleryImage has_many GalleryAlbums the foreign key is stored in the GalleryAlbums page?
1092: [15:19:44] * evelin quit ()
1093: [15:19:59] * muskie9 has joined #silverstripe
1094: [15:20:21] <Zauberfisch> sorry, was away
1095: [15:20:29] <Zauberfisch> so your gallery sounds pretty simple
1096: [15:20:44] <Zauberfisch> didn't you say you wanted to use a gallery multiple times or something?
1097: [15:21:34] <Zauberfisch> also, GalleryImage has_many GalleryAlbums sounds like a terrible idea.because this would imply that GalleryAlbum can only have 1 image because yes, the foreign key is on GalleryAlbum
1098: [15:21:56] <desperate> an image can belong to multiple galleries
1099: [15:25:57] <desperate> if ImageAlbum is a dataobject how do I configure the details in the CMS?
1100: [15:26:10] <desperate> do i have to add a tab
1101: [15:26:37] <desperate> for example I might have Album 1, 2 and 3 and each has it's own title and description
1102: [15:26:41] <Zauberfisch> desperate: you can have nested gridfields
1103: [15:26:47] <Zauberfisch> how many albums do you expect to have?
1104: [15:26:54] <Zauberfisch> you could also make the albums pages
1105: [15:26:55] <desperate> 3 or 4 at most
1106: [15:27:00] <Zauberfisch> which is probably easyer for you
1107: [15:27:03] <Zauberfisch> ok, then lets use page
1108: [15:27:07] <desperate> i think making the albums as pages is a bette roption
1109: [15:27:10] <Zauberfisch> something like this could work for you:
1110: [15:27:16] <Zauberfisch> http://paste2.org/DH8jJWzA
1111: [15:27:55] * guci0 has joined #silverstripe
1112: [15:28:00] <guci0> Hello Wold!
1113: [15:29:14] <Zauberfisch> desperate: updated: v
1114: [15:29:15] <Zauberfisch> http://paste2.org/WaGdChs0
1115: [15:30:57] * adambuczek has joined #silverstripe
1116: [15:32:41] <desperate> thanks I'll give it a whirl
1117: [15:32:58] <desperate> I'm wondering how I iwll administer images - ie assign them to mutliple galleries
1118: [15:33:09] * adambuczek quit (Client Quit)
1119: [15:33:25] <Zauberfisch> desperate: the gridfield record editor comes with a "link existing" thing
1120: [15:33:28] * ryszard has joined #silverstripe
1121: [15:44:23] * ryszard quit (Ping timeout: 246 seconds)
1122: [15:48:58] * ryszard has joined #silverstripe
1123: [15:49:05] <desperate> Zauberfisch: I have used your code thanks! When I add a top level GalleryAlbum page I get internal server error
1124: [15:50:21] * ryszard_ has joined #silverstripe
1125: [15:52:10] * ryszard__ has joined #silverstripe
1126: [15:53:13] * ryszard quit (Ping timeout: 240 seconds)
1127: [15:55:07] * ryszard_ quit (Ping timeout: 264 seconds)
1128: [15:56:12] <abitran> hello there
1129: [15:56:55] * ryszard__ quit (Ping timeout: 264 seconds)
1130: [15:58:05] <desperate> Zauberfisch: there seems to be an issue here> $return->addFieldToTab('Root.Images', GridField::create( 'Images', 'Images for this Gallery', $this->Images(), GridFieldConfig_RelationEditor::create() ));
1131: [15:58:17] <desperate> if i comment out this line i don't get the error
1132: [16:07:03] <desperate> Zauberfisch: are you there?
1133: [16:12:20] <Zauberfisch> what is the error?
1134: [16:14:13] <desperate> here is what i am using:
1135: [16:14:13] <desperate> http://paste2.org/djetBghZ
1136: [16:14:50] <desperate> if i create a GalleryAlbum top lvel page the frmae in the cms turns white
1137: [16:15:54] <Zauberfisch> have you turned on error reporting?
1138: [16:16:07] <desperate> is that in the cofig?
1139: [16:16:15] <desperate> *config.
1140: [16:16:25] <desperate> or the dev=1 in the url?
1141: [16:16:44] <Zauberfisch> config
1142: [16:16:59] <Zauberfisch> well, you can set dev mode via url I think
1143: [16:17:03] <desperate> i'll turn it on now
1144: [16:17:05] <Zauberfisch> but thats not a good solution
1145: [16:17:32] <Zauberfisch> desperate: explained that once already today to someone else
1146: [16:17:33] <Zauberfisch> http://logs.simon.geek.nz/index.php?date=2014-03-18#log_1220267
1147: [16:17:43] <Zauberfisch> read line 231 to lube 237
1148: [16:19:36] * Cari quit (Quit: Page closed)
1149: [16:19:38] <desperate> i put it into dev mode but i see the same in admin
1150: [16:19:41] <desperate> no error output
1151: [16:19:49] <desperate> in my config file: Director: environment_type: 'dev'
1152: [16:19:53] <Zauberfisch> then you are missing 1) or 2)
1153: [16:22:34] <desperate> just chekcing
1154: [16:30:29] * Shrike_Finland quit (Quit: Leaving.)
1155: [16:32:00] * ARNHOE quit ()
1156: [16:32:23] * Shrike_Finland has joined #silverstripe
1157: [16:33:27] <desperate> Zauberfisch: I SET MY PHP.INI AS FOLLOWS:
1158: [16:33:32] <desperate> sorry for caps
1159: [16:33:35] <desperate> error_reporting: E_ALL
1160: [16:33:45] <desperate> display_errors: On
1161: [16:33:51] <desperate> saved, restarted apache
1162: [16:34:01] <desperate> still don't see any debug messages
1163: [16:34:14] <Zauberfisch> reload the browser in that window
1164: [16:34:17] <Zauberfisch> and see what happens
1165: [16:35:24] * Liquide quit (Ping timeout: 255 seconds)
1166: [16:37:03] <desperate> reloaded, saved, flushed I just get a black box with "internal server error"... this is causing the problem
1167: [16:37:04] <desperate> display_errors: On
1168: [16:37:08] <desperate> sorrry..
1169: [16:37:15] <desperate> $fields->addFieldToTab('Root.Images', GridField::create( 'Images', 'Images for this Gallery', $this->Images(), GridFieldConfig_RelationEditor::create() ));
1170: [16:38:32] <Zauberfisch> ah, wait
1171: [16:38:49] <Zauberfisch> could it be that the varible is called $return instead of $fields?
1172: [16:38:50] * ryszard has joined #silverstripe
1173: [16:39:28] <desperate> yeah i changed that so it's inlien with my previous work
1174: [16:39:49] <desperate> i just did a nother dev build GalleryAlbum appeared in green
1175: [16:39:56] <desperate> and now i think it is working
1176: [16:40:45] * Liquide has joined #silverstripe
1177: [16:41:56] * babak has joined #silverstripe
1178: [16:42:52] <desperate> Zauberfisch: on the images tab I can upload an image and edit it, at the bottom of the page there is a green create button... if i click that i get an internal server error
1179: [16:44:02] <desperate> and i also get an error when i click to edit the image from the gridfield
1180: [16:44:59] <Zauberfisch> weird
1181: [16:45:07] <Zauberfisch> could you paste the full code again please
1182: [16:46:41] <desperate> http://paste2.org/vZIMIsch
1183: [16:48:31] <Zauberfisch> what version of SS are you using?
1184: [16:49:04] <desperate> 3.13
1185: [16:52:21] <desperate> for my Gallery Image don't I have to say belongs_to_many_many
1186: [16:54:46] <ryszard> Is there any inherited method/field/global function or var that lets me chceck current locale?
1187: [16:55:11] <ryszard> From, like, anywhere I want to?
1188: [16:55:50] <desperate> i am wondering if the way to go might be to work with the pre-written gallery page and modify it?
1189: [16:58:31] * Guits has joined #silverstripe
1190: [17:05:43] * ss-log_ has joined #silverstripe
1191: [17:06:45] <desperate> Zauberfisch: did that PM work correctly with the link?
1192: [17:07:11] <Zauberfisch> yes
1193: [17:07:49] <Zauberfisch> VM is setting up as we speak
1194: [17:07:56] <Zauberfisch> should be done in a minute
1195: [17:09:00] <desperate> thnaks
1196: [17:10:08] <desperate> is the "link existing" challenging to set up?
1197: [17:15:30] <Zauberfisch> no
1198: [17:16:06] <muskie9> should the forgotPassword function in MemberLoginForm be setting a from address for the reset password email
1199: [17:18:08] <muskie9> using an smtp module off of addons.silverstripe and it's showing a missing from address
1200: [17:21:05] <Zauberfisch> hmmm
1201: [17:21:19] <Zauberfisch> muskie9: could it be that you have not configured an admin email?
1202: [17:21:27] <Zauberfisch> desperate: found the problem
1203: [17:21:38] <desperate> go on..
1204: [17:21:38] <Zauberfisch> you renamed GalleryAlbumPage to GalleryAlbum
1205: [17:21:47] <muskie9> Zauberfisch, have it set in my env file
1206: [17:21:59] <Zauberfisch> however, in the GalleryImage there is still a belongs_many_many that refences to the Page
1207: [17:22:15] <desperate> ah yes i see the relation is then messed up
1208: [17:22:30] <Zauberfisch> works for me now
1209: [17:24:51] <Zauberfisch> desperate: http://mars.zauberfisch.at/share/gallery-thingy.png
1210: [17:25:07] <desperate> yes works here now since I changed the relation name
1211: [17:26:02] <desperate> how does the link exisiting work
1212: [17:26:13] <desperate> i have to input the file name in the search field?
1213: [17:26:19] <Zauberfisch> start typing
1214: [17:26:22] <Zauberfisch> its a search
1215: [17:26:28] <Zauberfisch> it search all exisiting items
1216: [17:26:36] <Zauberfisch> % is a wild card
1217: [17:27:34] <desperate> can you get the link existing button to not be greyed out
1218: [17:27:38] <desperate> for me it remians grey
1219: [17:27:50] <Zauberfisch> you have to select the item from the dropdown thingy
1220: [17:27:52] <Zauberfisch> click on it
1221: [17:27:57] <Zauberfisch> then the button becomes clickable
1222: [17:27:59] * ryszard quit (Ping timeout: 246 seconds)
1223: [17:28:29] <muskie9> desperate: have you looked into GridFieldRelationHandler? I've used it in place of the link existing box: https://github.com/simonwelsh/silverstripe-GridFieldRelationHandler
1224: [17:29:16] <muskie9> Zauberfisch: found where the admin email should be getting set in the Email class send function, not sure if it's not able to grab the admin email for some reason
1225: [17:29:22] * kinglozzer quit ()
1226: [17:29:35] <Zauberfisch> muskie9: sounds like a bug
1227: [17:29:37] <desperate> do you think it would work better for my use case
1228: [17:30:03] <desperate> also i can't get the link related thing to ever display an options for me
1229: [17:30:27] <Zauberfisch> desperate: do you have existing items?
1230: [17:30:36] <Zauberfisch> obviously you can only link things that already exist
1231: [17:31:14] <Zauberfisch> desperate muskie9: I wouldn't use that module in this usecase
1232: [17:38:47] * ryszard has joined #silverstripe
1233: [17:42:23] <desperate> mybw because i only have one gallerty?
1234: [17:42:27] <desperate> gallery
1235: [17:44:22] <desperate> yes that's it I had to add another gallery
1236: [17:44:29] <desperate> then i get suggestions
1237: [17:44:39] <desperate> but I think I will give the github contribution a try
1238: [17:44:54] <desperate> this was written by simon form this chat right?
1239: [17:44:59] <desperate> simon_w?
1240: [17:50:46] * cloph is now known as cloph_away
1241: [17:50:59] <desperate> there aren't any install instructions, do I just copy the file into my silverstripe install
1242: [17:54:20] <desperate> or in this case do i just copy the contents into the same folders
1243: [17:56:27] <desperate> Zauberfisch: Thanks for your hlep, I will pick this up again later got to run now
1244: [18:00:38] * desperate quit (Ping timeout: 245 seconds)
1245: [18:11:11] * cloph_away is now known as cloph
1246: [18:21:06] * boytikz has joined #silverstripe
1247: [18:23:02] * Shrike_Finland quit (Quit: Leaving.)
1248: [18:34:00] * ryszard quit (Remote host closed the connection)
1249: [18:37:36] * gelignite has joined #silverstripe
1250: [18:49:41] * ivoba quit (Quit: Leaving)
1251: [18:51:38] * Azure quit (Quit: My MBP went to sleep.)
1252: [18:59:00] * Shrike_Finland has joined #silverstripe
1253: [19:01:19] * Motoservo quit (Ping timeout: 264 seconds)
1254: [19:01:23] * Azure has joined #silverstripe
1255: [19:11:33] * Azure quit (Quit: Blue Sky Fish)
1256: [19:16:32] * travis-ci has joined #silverstripe
1257: [19:16:32] <travis-ci> [travis-ci] guttmann/silverstripe-framework#8 (html-text-absolutelink-placeholders - cd4ebb2 : James Goodman): The build passed.
1258: [19:16:32] <travis-ci> [travis-ci] Change view : https://github.com/guttmann/silverstripe-framework/compare/76a81e0806b0...cd4ebb25ca59
1259: [19:16:32] <travis-ci> [travis-ci] Build details : http://travis-ci.org/guttmann/silverstripe-framework/builds/20961350
1260: [19:16:32] * travis-ci has left #silverstripe
1261: [19:20:45] * Azure has joined #silverstripe
1262: [19:21:53] * zippy____ has joined #silverstripe
1263: [19:22:38] <zippy____> Morning
1264: [19:25:38] * guci0 quit (Ping timeout: 245 seconds)
1265: [19:33:34] * k_fish has joined #silverstripe
1266: [19:41:36] * bubaphex has joined #silverstripe
1267: [19:42:49] * Ryan-Toast has joined #silverstripe
1268: [19:43:03] <zippy____> Ryan-Toast: hi
1269: [19:43:13] <Ryan-Toast> zippy____: hai
1270: [19:45:24] <Ryan-Toast> Typography is for anything that TinyMCE can use
1271: [19:46:20] <Ryan-Toast> zippy___: ^
1272: [19:54:42] <Ryan-Toast> Is there a demo of the events calendar somewhere?
1273: [19:57:11] * ss-log has joined #silverstripe
1274: [19:58:37] * alexwijn has joined #silverstripe
1275: [19:58:41] <simon_w> Should have fixed the CMS build now
1276: [19:58:57] <simon_w> ss23, the dashboard should be green once Travis runs!
1277: [19:59:02] <simon_w> Well, master might still be broken
1278: [19:59:31] <alexwijn> Hi guys, does anyone what can cause the problem when the following function return null: Config::inst()->get('SSViewer', 'theme');
1279: [19:59:45] <zippy____> Ryan-Toast: I think there is some screen shots or something on the left and main website
1280: [19:59:55] <alexwijn> know*
1281: [20:00:12] <simon_w> alexwijn, you're in the CMS
1282: [20:00:20] <alexwijn> nope
1283: [20:00:24] <Ryan-Toast> zippy____: Yeah, I found the github page and just rummaging through the code :)
1284: [20:00:31] <alexwijn> I'm in a custom controller
1285: [20:00:48] <simon_w> alexwijn, you haven't set it
1286: [20:01:01] <alexwijn> It is set in the settings
1287: [20:01:05] <alexwijn> The site itself works fine
1288: [20:01:13] <simon_w> That doesn't set the config setting
1289: [20:01:31] <simon_w> Well, not if you're subclassing Controller
1290: [20:01:50] <alexwijn> How to set the correct theme that has been set in the CMS settings?
1291: [20:02:08] <zippy____> alexwijn: look in /mysite/_config/config.xml
1292: [20:02:21] <zippy____> or might be set in /mysite/_config.php (the new way uses the xml)
1293: [20:02:38] <simon_w> alexwijn, look at ContentController::init()
1294: [20:02:44] <alexwijn> ok
1295: [20:02:56] <simon_w> zippy____, first, it's .yml. Second, that doesn't help :p
1296: [20:03:11] <zippy____> yml, of course!
1297: [20:03:24] <alexwijn> ($config = SiteConfig::current_site_config()) && $config->Theme)
1298: [20:03:28] <alexwijn> Config::inst()->update('SSViewer', 'theme', $config->Theme);
1299: [20:03:29] <alexwijn> :)
1300: [20:03:38] <alexwijn> Got it, thanks
1301: [20:03:43] <alexwijn> Let me test it
1302: [20:04:31] <alexwijn> Thanks, it works!
1303: [20:09:59] <alexwijn> Does anyone know when the following issue is going to be a version number?
1304: [20:10:00] <alexwijn> https://github.com/silverstripe/silverstripe-framework/issues/2930
1305: [20:10:22] <alexwijn> So this fix will be applyable through composer update
1306: [20:10:38] * UncleCheese has joined #silverstripe
1307: [20:10:57] <simon_w> alexwijn, there's a few important things that ss23 needs to do before 3.1.4. If you want it now, you can use 3.1.x-dev as your composer version
1308: [20:12:54] <alexwijn> I don't like to run my production websites on dev
1309: [20:13:09] <alexwijn> is there any eta of every version?
1310: [20:13:17] <Stomach> when its done :P
1311: [20:13:25] <Ryan-Toast> zippy____: did you see the thing about the typography.scss?
1312: [20:13:36] <alexwijn> So the Sivlerstripe theme does not apply a schedule for example new version every x weeks/months
1313: [20:13:49] <simon_w> Nope
1314: [20:13:55] <alexwijn> Ic ok
1315: [20:14:07] <alexwijn> Thanks anyway
1316: [20:14:21] <zippy____> Ryan-Toast: I did, thanks
1317: [20:14:37] <zippy____> Ryan-Toast: I thought that the cms editor used an editor.css file
1318: [20:14:42] <Ryan-Toast> zippy____: You don't have to follow it, but I just like to separate it out. so I know what I can use in the cms.
1319: [20:15:15] <Ryan-Toast> I use the Shortcodes module thing to declare the classes since you can set wrappers etc
1320: [20:15:28] <Ryan-Toast> and choose what elements get which class etc
1321: [20:15:50] <simon_w> zippy____, typography.css should have everything prefixed with .typography, and then editor imports it and can change things a little to better suit the CMS
1322: [20:19:08] * travis-ci has joined #silverstripe
1323: [20:19:09] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#789 (3.1 - 7002dcf : Simon Welsh): The build was fixed.
1324: [20:19:09] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/403b47fe6c89...7002dcfa7fdb
1325: [20:19:09] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/20965137
1326: [20:19:09] * travis-ci has left #silverstripe
1327: [20:19:09] * simon_w fixed it!
1328: [20:23:52] * simon_w now tries for master
1329: [20:26:52] <zippy____> simon_w: when you finish up?
1330: [20:26:56] <zippy____> in NZ
1331: [20:27:01] <zippy____> ps, where is your blog post
1332: [20:27:04] <simon_w> ANZAC Day
1333: [20:27:13] <zippy____> still 6 weeks~ then
1334: [20:27:19] <simon_w> Blog post is still waiting
1335: [20:27:36] <simon_w> Need to rewrite it too, now that I know why I've been asked to wait
1336: [20:27:56] <Ryan-Toast> Will there be a full change log in the blog post|
1337: [20:27:58] <Ryan-Toast> ?**
1338: [20:28:11] <simon_w> No
1339: [20:30:38] * wracu quit (Ping timeout: 245 seconds)
1340: [20:46:20] * Motoservo has joined #silverstripe
1341: [20:48:34] <simon_w> Probably shouldn't have this entire bag of skittles as breakfast
1342: [20:50:12] <Ryan-Toast> simon_w: Follow your dreams
1343: [20:50:34] <simon_w> That's why I'm moving to Australia :p
1344: [20:50:47] <Ryan-Toast> simon_w: Coolio, what're you doing over there?
1345: [20:51:02] <simon_w> Living
1346: [20:51:09] <simon_w> (Hopefully)
1347: [20:51:14] <Ryan-Toast> simon_w: For work I mean
1348: [20:51:32] <simon_w> No idea
1349: [20:53:35] <Ryan-Toast> simon_w: you should be a billionaire playboy philanthropist, I hear it's fun
1350: [20:54:03] <simon_w> Have to be a billionaire first
1351: [20:54:08] <Ryan-Toast> ez
1352: [20:55:27] * EasyCo has joined #silverstripe
1353: [20:57:13] * muskie9_ has joined #silverstripe
1354: [20:57:14] * muskie9 quit (Read error: Connection reset by peer)
1355: [20:58:54] * travis-ci has joined #silverstripe
1356: [20:58:54] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#790 (master - b497b8f : Simon Welsh): The build is still failing.
1357: [20:58:54] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/f6d929f05db6...b497b8f548b0
1358: [20:58:54] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/20966991
1359: [20:58:54] * travis-ci has left #silverstripe
1360: [20:59:12] <simon_w> ss23, cms master is still failing. CBF fixing it :p
1361: [21:02:50] * bubaphex quit (Ping timeout: 252 seconds)
1362: [21:03:04] <simon_w> Yay! First major 3.2 feature landed!
1363: [21:03:59] * Shrike_Finland quit (Quit: Leaving.)
1364: [21:04:07] * Shrike_Finland has joined #silverstripe
1365: [21:04:12] <Ryan-Toast> simon_w: what is it?
1366: [21:04:19] <Stomach> yay polymorphic has_one relationships!
1367: [21:04:28] <simon_w> has_one to DataObject
1368: [21:04:47] <Ryan-Toast> YAY! ... what's that?
1369: [21:05:07] <Stomach> you can do $has_one = array('DontKnowTheTypeYet' => 'DataObject');
1370: [21:05:19] <Ryan-Toast> Oh, nice.
1371: [21:05:33] * Liquide quit ()
1372: [21:05:42] * bubaphex has joined #silverstripe
1373: [21:07:09] <simon_w> Time to go through the PR for the next major feature
1374: [21:07:26] <Stomach> I didn't know there was belongs_to
1375: [21:08:00] <simon_w> There is! It's basically has_many->First()
1376: [21:08:35] * alexwijn quit ()
1377: [21:09:22] <simon_w> Haha, there's already 195 comments on this PR
1378: [21:09:24] <Stomach> well now I know
1379: [21:09:32] <Stomach> link?
1380: [21:09:39] <simon_w> Also, Showing 156 changed files with 10,317 additions and 4,756 deletions.
1381: [21:09:46] <simon_w> https://github.com/silverstripe/silverstripe-framework/pull/1360
1382: [21:13:54] <zippy____> >> Everything is going to break all at once and I'm anticipating lots of hard work in the near future.
1383: [21:13:55] <zippy____> Merge it! 3.2.0 :)
1384: [21:15:30] * Azure quit (Quit: My MBP went to sleep.)
1385: [21:23:22] <zippy____> btw… why go with prepared_query ?
1386: [21:23:34] * violet- quit (Quit: No Ping reply in 180 seconds.)
1387: [21:23:37] <zippy____> hang on
1388: [21:23:38] <zippy____> nm
1389: [21:23:40] <simon_w> What else would it be?
1390: [21:27:45] * nickmolhoek has joined #silverstripe
1391: [21:28:34] * babak quit (Quit: Connection closed for inactivity)
1392: [21:29:37] <Ryan-Toast> why does the 3.1.3 zip file have a chart of New York temperatures in it?
1393: [21:29:44] <ss23> simon_w: "i cbf fixing" is what made it not green in the first place! :O
1394: [21:30:57] * catcher quit (Quit: Leaving)
1395: [21:34:00] <Stomach> Ryan-Toast - its important.
1396: [21:34:19] <Ryan-Toast> Stomach: Need to know the temps at all times!
1397: [21:34:39] <Stomach> or else bad things _will_ happen
1398: [21:35:03] <Ryan-Toast> titans.will.clash. CLASHOFTHETITANS
1399: [21:35:20] <simon_w> ss23, you fix it then :P
1400: [21:35:25] <simon_w> I fixed 3.1!
1401: [21:35:37] <simon_w> Siriam wrote broken behat tests
1402: [21:38:22] * violetina has joined #silverstripe
1403: [21:39:30] * Azure has joined #silverstripe
1404: [21:41:19] <ss23> NU UH
1405: [21:41:43] <ss23> I cna't even remember the dashboard URL, and it's too far away to see easily
1406: [21:43:26] <simon_w> http://github-dashing.herokuapp.com
1407: [21:46:05] * desperate has joined #silverstripe
1408: [21:47:10] <Stomach> is that gonna go red by the end of the day as stuff starts reacting to the merges onto master? :D
1409: [21:47:32] <desperate> hi does anyone know how to install this https://github.com/simonwelsh/silverstripe-GridFieldRelationHandler
1410: [21:48:34] <desperate> is it a case of just copying the files into the same file structure within my site root?
1411: [21:48:56] <zippy____> download the https://github.com/simonwelsh/silverstripe-GridFieldRelationHandler/archive/master.zip
1412: [21:49:21] <zippy____> unzip in the site root, which should give you a foldr (probably master) which rename to GridFieldRelationHanlder, then dev/build and flush
1413: [21:51:12] <simon_w> Stomach, it was red yesterday from selenium breaking
1414: [21:51:30] <Stomach> well thats disappointing
1415: [21:51:43] <desperate> thanks I will take a look
1416: [21:51:56] <desperate> BTW is anyone here part of the London Silverstripe group?
1417: [21:52:06] <Ryan-Toast> I will be in two years :P
1418: [21:53:12] * antmas has joined #silverstripe
1419: [21:53:19] <antmas> le mornin
1420: [21:53:24] <Stomach> how do
1421: [21:53:44] <Ryan-Toast> Hey, Unclecheese. Have you donee booking with your events calendar module before?
1422: [21:53:50] <Ryan-Toast> bookings**
1423: [21:53:57] <UncleCheese> yup
1424: [21:54:09] <simon_w> Overheating
1425: [21:54:15] <simon_w> Can't keep reviewing pull requests
1426: [21:54:21] <Ryan-Toast> UncleCheese: Is there any code up on Github, or was it just a one off kind of thing?
1427: [21:54:24] * gelignite quit (Quit: http://bit.ly/nkczDT)
1428: [21:54:41] <antmas> Ryan-Toast: are you talking about like booking tickets/seats via the events module? if so, I need dis!
1429: [21:54:41] * Motoservo quit (Ping timeout: 246 seconds)
1430: [21:54:49] <Ryan-Toast> antmas: yeah
1431: [21:59:44] <Stomach> how do you escape a $ in a template
1432: [21:59:56] <Ryan-Toast> {$} ?
1433: [22:00:07] <Stomach> name that outputs {$}
1434: [22:00:16] <Ryan-Toast> Oh.
1435: [22:00:21] <simon_w> \$
1436: [22:00:33] <simon_w> Or just &dollar;
1437: [22:00:57] <Stomach> &dollar; it is!
1438: [22:01:03] <Stomach> that makes more sense anyway
1439: [22:01:22] <Ryan-Toast> UncleCheese: Yeah Nah?
1440: [22:01:30] <UncleCheese> no
1441: [22:01:39] <UncleCheese> i wrote a tut on my blog
1442: [22:01:41] <UncleCheese> but that was for 2.4
1443: [22:01:45] <Ryan-Toast> UncleCheese: Sweet as, worth a shot :)
1444: [22:01:53] <UncleCheese> i mean, it's really straight forward
1445: [22:02:06] <Ryan-Toast> something like members have many bookings etc
1446: [22:02:13] <UncleCheese> yeah, exactly
1447: [22:02:18] <UncleCheese> just create a simple registration form
1448: [22:02:26] <UncleCheese> pass it the ID of an event of date time
1449: [22:02:28] <UncleCheese> bob's your uncle
1450: [22:02:34] <Ryan-Toast> Swish, thanks man.
1451: [22:03:28] <Stomach> this bob guy's brothers and sisters sure are prolific
1452: [22:05:33] * UncleCheese_ has joined #silverstripe
1453: [22:06:02] * SightUnseen has joined #silverstripe
1454: [22:06:05] * SightUnseen has left #silverstripe
1455: [22:08:36] <antmas> Ryan-Toast: maybe git that? I'd like to use it :D
1456: [22:08:46] <Ryan-Toast> antmas: sure thing, man.
1457: [22:09:11] <madmatt> simon_w: Why do you want to bug me a bout behat |:
1458: [22:09:38] <madmatt> also, delayed response to ping :) I don't even know what day it was, it's that old
1459: [22:09:42] <antmas> anyone ever dealt with Wizbang before?
1460: [22:12:38] * an_Eskimo has joined #silverstripe
1461: [22:13:12] * muskie9_ quit (Remote host closed the connection)
1462: [22:13:44] * muskie9 has joined #silverstripe
1463: [22:14:54] <simon_w> madmatt, because Travis was failing from it and I couldn't get it to find Firefox locally
1464: [22:14:58] <simon_w> Is all fixed now!
1465: [22:18:43] * muskie9 quit (Ping timeout: 264 seconds)
1466: [22:19:23] * an_Eskimo quit (Ping timeout: 245 seconds)
1467: [22:19:49] <madmatt> simon_w: _b
1468: [22:21:06] * an_Eskimo has joined #silverstripe
1469: [22:23:24] * UncleCheese quit (Quit: UncleCheese)
1470: [22:23:25] * UncleCheese_ is now known as UncleCheese
1471: [22:28:39] * muskie9 has joined #silverstripe
1472: [22:33:10] * Motoservo has joined #silverstripe
1473: [22:33:16] * UncleCheese quit (Quit: UncleCheese)
1474: [22:33:31] * muskie9 quit (Ping timeout: 264 seconds)
1475: [22:41:40] <simon_w> I'm rather liking this song
1476: [22:41:40] <simon_w> http://onevoice.net.nz
1477: [22:44:00] * muskie9 has joined #silverstripe
1478: [22:45:08] <Ryan-Toast> She has a nice voice.
1479: [22:45:23] <Ryan-Toast> chorus is a bit meh though
1480: [22:45:37] * Kapdap_ quit (Quit: leaving)
1481: [22:45:50] * Kapdap has joined #silverstripe
1482: [22:46:00] * Shrike_Finland quit (Quit: Leaving.)
1483: [22:46:55] * muskie9 quit (Remote host closed the connection)
1484: [22:46:59] * UncleCheese has joined #silverstripe
1485: [22:47:13] <Ryan-Toast> simon_w: token rapper.
1486: [22:50:13] <madmatt> cool song, chorus is pretty muddy (if that's the actual recording, they should have used separate mics. Ah well, still pretty cool
1487: [22:53:05] <antmas> She has a lovely voice, but that song is terrible
1488: [22:53:16] <antmas> I know it has a message, a good one.
1489: [22:55:12] * Azure quit (Quit: My MBP went to sleep.)
1490: [22:58:44] <antmas> for 15, that's pretty crazy
1491: [23:05:01] * k_fish quit (Quit: Leaving)
1492: [23:08:33] * GAA_SS quit (Ping timeout: 245 seconds)
1493: [23:09:23] * an_Eskimo quit (Ping timeout: 245 seconds)
1494: [23:10:12] <Ryan-Toast> Needs more cowbell
1495: [23:14:31] * spronk quit (Ping timeout: 264 seconds)
1496: [23:15:16] * spronk has joined #silverstripe
1497: [23:17:26] * Colin[pi] has joined #silverstripe
1498: [23:17:41] <Stomach> http://www.youtube.com/watch?v=fhdCslFcKFU
1499: [23:17:43] * antmas quit (Ping timeout: 245 seconds)
1500: [23:19:29] <Ryan-Toast> baby metal is gaining traction...yeeeesssssss
1501: [23:29:33] * antmas has joined #silverstripe
1502: [23:29:38] <antmas> hmmmm
1503: [23:29:58] <antmas> I've tracked down what's been causing our site to slow right down over the rainy days
1504: [23:30:01] <antmas> goddamn XML
1505: [23:32:49] * Colin[pi] shakes fist at XML
1506: [23:34:34] <antmas> we're storing a bunch of river flow and rain flow data
1507: [23:34:45] <antmas> sucks :(
1508: [23:34:46] <ss23> lol
1509: [23:34:47] * an_Eskimo has joined #silverstripe
1510: [23:34:48] <simon_w> Woo, pizza lunch!
1511: [23:34:49] <antmas> time to change that I think
1512: [23:34:50] <ss23> hahahahhahah an_Eskimo
1513: [23:34:53] <ss23> antmas*
1514: [23:34:55] <ss23> That is amazing
1515: [23:35:13] <antmas> ss23: ;__;
1516: [23:35:22] <antmas> SS set it up as a cached service, but it's balls
1517: [23:35:25] <an_Eskimo> @ss23, have you only just noticed that?
1518: [23:35:47] <ss23> antmas: Just noticed what? I meant to talk to antmas sorry :O
1519: [23:35:51] <ss23> antmas: FIX IT THEN!
1520: [23:36:01] <ss23> antmas: In our defence, we have no idea if your website is slow if you don't tell us :P
1521: [23:36:03] <simon_w> ss23, you're still failing at tabbing :p
1522: [23:36:15] <an_Eskimo> ss23, ahhh haha
1523: [23:36:27] <ss23> :(
1524: [23:36:29] <antmas> ss23: I will! I plan to rip the whole thing out and use a restful service instead
1525: [23:36:36] <ss23> antmas: Sounds good :D
1526: [23:36:42] <simon_w> antmas, just async it!
1527: [23:37:12] <antmas> well it's just super cludgy. Data changes don't get reflected for hours
1528: [23:37:17] <antmas> should have been dynamic from the start!
1529: [23:37:26] * antmas pumps fist
1530: [23:37:29] <antmas> o/
1531: [23:37:40] <ss23> Does anyone care about rain data that much, when we have metserv etc? :P
1532: [23:38:02] <antmas> ss23: heh, old people do
1533: [23:38:10] <antmas> the 'don't trust metservice'
1534: [23:38:12] <antmas> they*
1535: [23:39:10] <simon_w> So just send them to NIWA?
1536: [23:39:15] <ss23> lol
1537: [23:39:28] <simon_w> Can't see the NIWA building from Metservice, so it's fine!
1538: [23:41:03] <antmas> our whole 'weather' section is poos
1539: [23:41:13] <simon_w> Literally? Ewwww!
1540: [23:41:30] <antmas> simon_w: well, not really, but we do have an effluent section! :D
1541: [23:41:52] <simon_w> And ours is better :p
1542: [23:44:53] <simon_w> Aww, my left option button is broken. I use that key :(
1543: [23:45:10] <antmas> simon_w: your effluent section is better?
1544: [23:45:12] <antmas> :P
1545: [23:45:28] <simon_w> yes :p
1546: [23:49:07] <antmas> simon_w oh, for NIWA?
1547: [23:53:04] <simon_w> ss23, wanna buy a full-sized chicklet keyboard with one broken key? :p
1548: [23:53:39] <ss23> ...
1549: [23:53:49] <ss23> idk what a "chicklet" keyboard is, but knowing your tastes in keyboards, I'm going to go HELL NAW
1550: [23:55:01] <simon_w> http://store.apple.com/nz/product/MB110LL/B/apple-keyboard-with-numeric-keypad-english-usa?fnode=5b3abcc454654c56a0e1d775d3d6376db8041083c9ce7e2898d21e1eb184a3ad6e0cfc3bf2491a37e86048c22a77079570707acc4e2677e2a7d412cfb3146608
1551: [23:55:17] * SphereSilverNL has joined #silverstripe
1552: [23:56:31] <Colin[pi]> so in other words, a keyboard with spaces between the keys
1553: [23:56:49] <ss23> *bzz* nope
1554: [23:56:51] <ss23> hate typing on them
1555: [23:56:55] <ss23> they feel like yucky mushy
1556: [23:57:14] <Colin[pi]> I <3 my mechanical keyboard
1557: [23:57:20] * Bollig|DesignCty has joined #silverstripe
1558: [23:57:25] <Colin[pi]> dakka dakka dakka
1559: [23:58:12] <antmas> Colin[pi]: +1
1560: [23:58:18] <simon_w> If I didn't switch between keyboards all the time, I would go mechanical
1561: [23:59:32] <Colin[pi]> cherry blue... noisy as fuck, but I love it
1562: [23:59:46] <SphereSilverNL> I got brown :)
1563: [23:59:58] <SphereSilverNL> But yeah, noisy as fuck, but sooooo awesome!

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