#silverstripe IRC Log

IRC log for 18 March 2013

All timestamps are in UTC.

1: [00:00:00] <Zauberfisch_> with a while back, do you mean 2.x?
2: [00:00:00] <Zauberfisch_> hmmm
3: [00:00:00] <Zauberfisch_> ah, ok
4: [00:00:00] <Zauberfisch_> or was it already in 3.x once?
5: [00:01:00] <Zauberfisch_> if its not yet there, create it
6: [00:01:00] <VSLOD> it was in 3.x
7: [00:01:00] <Zauberfisch_> VSLOD check on open.silverstripe.org if there is as ticket for it already
8: [00:02:00] <VSLOD> can't remember the exact version. but even regardless, is there any way to hide page types? Say you're creating a "Top Level" page. Any page types that are $can_be_root false, would be hidden. Or even add a css class to it that would display:none or something
9: [00:03:00] <Zauberfisch_> VSLOD this styles should be there
10: [00:03:00] <Zauberfisch_> i think its a bug
11: [00:03:00] <Zauberfisch_> what you should do is:
12: [00:03:00] <Zauberfisch_> 1) updated to the latest version of silverstripe (master or 3.1 beta from github)
13: [00:04:00] * Guest60173 quit (Ping timeout: 256 seconds)
14: [00:04:00] <Zauberfisch_> 2) check if the bug is still there
15: [00:05:00] <Zauberfisch_> 3) if the bug still exists, search for it on open.silverstripe.org and create it if it does not exist
16: [00:07:00] <Zauberfisch_> 4) if you are up to the task, fork silverstripe and fix the isseu yourself
17: [00:07:00] <Pyromanik> wtf is WebserverX
18: [00:10:00] * Zauberfisch quit (Read error: Connection reset by peer)
19: [00:10:00] <ss23> You post added a new feature - "We can make some parcels smaller to reduce the cost of postage." A+ awesome.
20: [00:11:00] <Zauberfisch_> ss23 I can't follow, what do you mean?
21: [00:11:00] <ss23> Zauberfisch_: Are you in New Zealand?
22: [00:12:00] <Pyromanik> Zauberfisch is from Austria ss23.
23: [00:12:00] <Zauberfisch_> no
24: [00:12:00] <ss23> Then don't worry :P
25: [00:12:00] <Zauberfisch> aye
26: [00:12:00] * Zauberfisch_ is now known as Zauberfisch
27: [00:14:00] <ss23> Oh, I hear you guys have a really kinky sex trade there. Something about incest and dungeons....
28: [00:14:00] <Pyromanik> :<
29: [00:14:00] <Pyromanik> really?
30: [00:14:00] <ss23> XD
31: [00:15:00] <Pyromanik> Dude, that's a bit harsh.
32: [00:15:00] <Pyromanik> no, srs.
33: [00:15:00] <ss23> pish posh
34: [00:15:00] * ajshort has joined #silverstripe
35: [00:16:00] * ss23 cries
36: [00:16:00] * ss23 runs away
37: [00:16:00] <ss23> I'm trying to make conversations
38: [00:16:00] <ss23> WOW OKAY Pyromanik
39: [00:16:00] <ss23> WAY TO MAKE ME FEED BAD
40: [00:16:00] <ss23> And you spring this on me
41: [00:20:00] <Pyromanik> Fritzel is a bad conversation topic m80.
42: [00:21:00] <ss23> Why? :<
43: [00:22:00] <ss23> No one gets worked up over geoffrey leonard in AU I'm sure...
44: [00:22:00] <ss23> It's hilarious, not bad conversation!
45: [00:23:00] <Pyromanik> I don't even who is.
46: [00:24:00] <Pyromanik> And rape is never hilarious.
47: [00:24:00] <ss23> WHATEVER MAN
48: [00:24:00] <ss23> We have different views about converastion, evidently
49: [00:28:00] * Zauberfisch_ has joined #silverstripe
50: [00:30:00] * Zauberfisch_ quit (Client Quit)
51: [00:30:00] * Zauberfisch^idle has joined #silverstripe
52: [00:31:00] * peter_ss has joined #silverstripe
53: [00:31:00] <peter_ss> guys how can I check the Controller action name inside the template?
54: [00:32:00] <Pyromanik> $Action
55: [00:32:00] * chillu quit (Ping timeout: 264 seconds)
56: [00:32:00] <Pyromanik> can't remember which.
57: [00:32:00] <Pyromanik> or $action
58: [00:34:00] <peter_ss> thanks Pyromanik
59: [00:35:00] <Pyromanik> sweet
60: [00:35:00] <peter_ss> it's $Action
61: [00:36:00] <akapi> bye ppl/
62: [00:36:00] * akapi quit ()
63: [00:43:00] <Jakx> yo
64: [00:43:00] * Jakx has joined #silverstripe
65: [00:45:00] <Jakx> simon_w, so I looked all through the ContentController and didn't see anything that renders the theme template. Do you know where the theme template is allocated and rendered? (no cms)
66: [00:46:00] <simon_w> A mix of SSViewer and template manifest
67: [00:46:00] <Jakx> simon_w, haha - yes indeed. I'm using a copy of it as reference
68: [00:46:00] <simon_w> And, if you don't have the CMS, you don't have ContentController :p
69: [00:47:00] <simon_w> SSViewer is all framework
70: [00:47:00] <Jakx> so, just to confirm can the framework render templates on it's own? or does it rely on the CMS module to do this?
71: [00:47:00] <Jakx> simon_w, should I expect my default install of the framework to render a template?
72: [00:48:00] <simon_w> Doing it wrong!
73: [00:48:00] <Jakx> good to know though ty, I think I might just go get the stable build
74: [00:48:00] <Jakx> weeelll it doesn't
75: [00:48:00] <simon_w> yes
76: [00:49:00] <Jakx> simon_w, lol. Maybe, but I'm not sure where I want wrong in between downloading the build and running the install
77: [00:50:00] * chillu has joined #silverstripe
78: [00:53:00] * liam_ quit (Client Quit)
79: [00:53:00] * liam_ has joined #silverstripe
80: [00:59:00] <Jakx> instead of "To get started with the SilverStripe framework: Create a Controller subclass (doc.silverstripe.org/framework/en/topics/controller) Setup the routes.yml to your Controller (doc.silverstripe.org/framework/en/reference/director#routing). Create a template for your Controller (doc.silverstripe.org/framework/en/reference/templates) "
81: [00:59:00] <Jakx> I would expect that once the framework was installed, it should just render the default theme as chosen during install
82: [01:00:00] <Jakx> simon_w, how many steps are needed between framework install and templates being rendered?
83: [01:00:00] <Jakx> ss23, lol
84: [01:00:00] <ss23> Writing code is a lot more epic with the Inception soundtrack going
85: [01:01:00] <simon_w> You just have no controllers
86: [01:01:00] <simon_w> Or no root one, anyways
87: [01:01:00] <simon_w> Jakx, none. That page is rendered with a template
88: [01:02:00] <Pyromanik> or maybe it is
89: [01:02:00] <Jakx> sup*
90: [01:02:00] <Pyromanik> yo Jakx
91: [01:02:00] <Pyromanik> unsure
92: [01:02:00] <Jakx> Pyromanik, example?
93: [01:02:00] <Jakx> Pyromanik, so man - good weekend?
94: [01:02:00] <Pyromanik> it's not automated I think
95: [01:02:00] <Pyromanik> Jakx, you need to define templates on your controllers
96: [01:02:00] <Pyromanik> it was alright
97: [01:03:00] <Pyromanik> check Controller::getViewer()
98: [01:03:00] <Pyromanik> iirc
99: [01:03:00] <Pyromanik> public $template = array('Layout', 'Main');
100: [01:03:00] <Jakx> Pyromanik, so the framework doesn't choose the template based on the classname?
101: [01:03:00] <Pyromanik> Jakx, might do
102: [01:04:00] <Pyromanik> ss23, dunno.
103: [01:04:00] <ss23> NumericField allows for numbers in the form "1.12" right? It's a all numbers type, not just int?
104: [01:04:00] <Pyromanik> might just be int I think
105: [01:04:00] <Pyromanik> http://api.silverstripe.org/3.0/source-class-Controller.html#273-310
106: [01:05:00] <Pyromanik> but they were probably merged
107: [01:05:00] <Pyromanik> I think there used to be a decimal field
108: [01:05:00] <ss23> I looked on api, but I can't figure out where to check ;_;
109: [01:05:00] <Pyromanik> ss23, under forms
110: [01:05:00] <ss23> oh, wait, I see :O
111: [01:05:00] <ss23> if($this->value && !is_numeric(trim($this->value))){
112: [01:05:00] <ss23> simple
113: [01:05:00] <Pyromanik> fields-formattedInput
114: [01:05:00] <Pyromanik> mmm
115: [01:05:00] <Pyromanik> cool
116: [01:06:00] * aaron1245 has joined #silverstripe
117: [01:06:00] <Pyromanik> Jakx, looks like it should choose template based on ClassName
118: [01:09:00] <Jakx> I'm trying a bunch of stuff but am making wrong assumptions and such
119: [01:09:00] <Jakx> Pyromanik, so what do you recommend I do to get the default Page template showing after framework install?
120: [01:10:00] <Pyromanik> make a templates/MyController.ss
121: [01:10:00] <Pyromanik> class MyController extends Controller {}
122: [01:10:00] <Jakx> any suggestions?
123: [01:10:00] <Pyromanik> Jakx, have you made a controller?
124: [01:10:00] <Jakx> Not yet, I am just rolling with this RootURLController class
125: [01:11:00] <Pyromanik> then browse yoursite/MyController
126: [01:11:00] <Pyromanik> done
127: [01:12:00] * chillu quit (Quit: chillu)
128: [01:12:00] <Jakx> Pyromanik, what's your preffered method for defining the root controller?
129: [01:12:00] <Jakx> preferred*
130: [01:12:00] <Jakx> Pyromanik, nice - proof that it's working
131: [01:13:00] * VSLOD quit (Ping timeout: 245 seconds)
132: [01:14:00] <Pyromanik> Probably you're supposed to use the config system for that
133: [01:14:00] <Jakx> but the example brings up an error
134: [01:14:00] <Pyromanik> yes
135: [01:14:00] <Jakx> Pyromanik, instructions suggest defining routes.yml
136: [01:14:00] <Pyromanik> I've just dealt with controllers that weren't pages.
137: [01:14:00] <Pyromanik> I dunno man, I've not used Framework on it's own
138: [01:15:00] <Jakx> http://doc.silverstripe.org/framework/en/reference/director#routing
139: [01:15:00] <Jakx> in the based I would have used a Director rule
140: [01:15:00] <Jakx> so basically I'm just raging
141: [01:15:00] <Jakx> lol
142: [01:15:00] <Pyromanik> Jakx, link?
143: [01:15:00] <Pyromanik> Director rules deprecated.
144: [01:15:00] <Pyromanik> oh?
145: [01:16:00] <Jakx> to*
146: [01:16:00] <Jakx> no working example in here, that's just the link the instructions send you too
147: [01:17:00] <Pyromanik> paste
148: [01:17:00] <Jakx> Fatal error: Based on their before & after rules two fragments both need to be before/after each other in F:\wamp\www\library.youthline.co.nz\framework\core\manifest\ConfigManifest.php on line 319
149: [01:17:00] <Jakx> anything I try
150: [01:17:00] <Pyromanik> ie
151: [01:18:00] <Jakx> http://www.sspaste.com/paste/show/51466b5687641
152: [01:18:00] <Pyromanik> the yml works in blocks, you need both to make a valid rule
153: [01:19:00] <Pyromanik> Jakx, so you have class Page extends Controller { ... ?
154: [01:19:00] <Jakx> yeah
155: [01:20:00] <Jakx> anything wrong with my routes.yml simon_w?
156: [01:20:00] <Pyromanik> yeah, I dunno :<
157: [01:21:00] <Jakx> 3.0.5
158: [01:21:00] <Pyromanik> Jakx, what version of SS you using?
159: [01:22:00] <Pyromanik> lol
160: [01:22:00] <Jakx> was using 3.1 beta but rage quit
161: [01:23:00] <Pyromanik> I think you might need it after rootroots
162: [01:23:00] <Pyromanik> eg
163: [01:23:00] <Pyromanik> https://github.com/silverstripe/silverstripe-cms/blob/3.0/_config/routes.yml
164: [01:23:00] <Jakx> get a*
165: [01:23:00] <Jakx> seems a little silly to me that I can't even a fundamental requirement of a site to work without incident
166: [01:23:00] <Pyromanik> first rule
167: [01:24:00] <ss23> However, the mark down looks almost identical in each of them, apart from the other ones end in a period, this one doesn't
168: [01:24:00] <ss23> Is the bug that this one doesn't end in a period or what?
169: [01:24:00] <ss23> It's because it's wrapped in a <p>, but the other ones aren't
170: [01:24:00] <ss23> So guys, on the Silverstripe docs, http://doc.silverstripe.com/framework/en/reference/form-field-types look at PasswordField on there. See how it's bigger?
171: [01:24:00] <simon_w> Jakx, you've flushed and got a Page class?
172: [01:24:00] <Jakx> simon_w, I flushed and got an error
173: [01:24:00] <simon_w> well, your after rule's a bit dodgy
174: [01:25:00] <simon_w> and so's your before
175: [01:25:00] <Pyromanik> or before
176: [01:25:00] <Pyromanik> was thinking that perhaps you should just omit the 'after'
177: [01:25:00] <simon_w> drop the before
178: [01:25:00] <ss23> https://github.com/silverstripe/sapphire/edit/3.0/docs/en/reference/form-field-types.md is the markdown
179: [01:25:00] <Jakx> still same error
180: [01:25:00] <Jakx> Pyromanik, updated the after rule to After: '#rootroutes
181: [01:25:00] <Jakx> just remove both?
182: [01:25:00] <Pyromanik> yeah
183: [01:26:00] <Pyromanik> lol
184: [01:26:00] <Pyromanik> yup
185: [01:26:00] <Jakx> that solved it, thanks guys
186: [01:26:00] <Jakx> yaaay - now I wanna go back to 3.1 siiigh
187: [01:26:00] <Jakx> fuck it, let's do it :D
188: [01:26:00] <Jakx> better housekeeping with an after I guess
189: [01:29:00] <Pyromanik> Jakx, get it in ya: http://www.jamendo.com/en/list/a2225/increase-the-dosage?autoplay=1
190: [01:29:00] * UncleCheese has joined #silverstripe
191: [01:31:00] <ss23> willr: Will the update fix that second bug too, though?
192: [01:31:00] <ss23> willr: You remember how there was that issue with the formatting / whitespace stuff (https://github.com/silverstripe/sapphire/pull/1286), there's also some bugs with http://doc.silverstripe.com/framework/en/reference/form-field-types wrapping certain things in <p> and not others, which makes the page look mismatched. The github version looks fine, so I'm guessing its something nonstandard on the silverstripe viewer side. What do to get it fixed? It looks
193: [01:31:00] * nickmolhoek quit (Quit: nickmolhoek)
194: [01:31:00] <ss23> simon_w: ^^
195: [01:31:00] <willr> ss23 yeah someone needs to update doc.silverstripe.org project and redeploy
196: [01:32:00] * nickmolhoek has joined #silverstripe
197: [01:32:00] <ss23> I mean, its a different bug isn't it?
198: [01:32:00] <Jakx> Pyromanik, aw had a youtube link bookmarked for you but it's been taken down
199: [01:32:00] * nickmolhoek quit (Remote host closed the connection)
200: [01:32:00] * nickmolhoek has joined #silverstripe
201: [01:32:00] <willr> No idea, haven't looked
202: [01:32:00] <ss23> willr: Can I leave it with you, or you want me to create a new bug for it?
203: [01:32:00] <willr> can check locally tonight
204: [01:33:00] <Pyromanik> also: http://www.jamendo.com/en/list/a66506/after-work#
205: [01:33:00] <Pyromanik> Jakx, :< what was the title?
206: [01:39:00] <ss23> willr: Did you want me to create a bug for it, or leave it with you?
207: [01:40:00] <Jakx> Pyromanik, tune was untitled
208: [01:41:00] <Pyromanik> :<
209: [01:41:00] <willr> ss23 leave it with me
210: [01:41:00] <ss23> Sweet :D
211: [01:41:00] <Pyromanik> Jakx, I'm on the mellows atm as you might have guessed by my links today :P
212: [01:42:00] <ss23> willr: XD
213: [01:42:00] <willr> ss23 http://bit.ly/116zmZA
214: [01:43:00] <Jakx> Pyromanik, http://www.youtube.com/watch?v=l2JyDWwrfCs
215: [01:43:00] * ss23 notes 5/6 of his pull requests are all for doc bugs
216: [01:43:00] <ss23> willr: I just figure after all my complaining about the docs being shit, I should make an effort to fix them where I can :P
217: [01:43:00] * joelpittet has left #silverstripe
218: [01:46:00] <Pyromanik> thas... interesting
219: [01:47:00] <ss23> Is that how you're meant to do it?
220: [01:47:00] <ss23> So guise, Pyromanik, I want to be able to include my map on my template. Should I use <% include Map %> and have an include for the map in my module and then the include be all like... getting the db fields and doing it there?
221: [01:48:00] <ss23> IS IT?
222: [01:49:00] <ss23> OH GOD
223: [01:49:00] <Pyromanik> yup, pretty much
224: [01:49:00] * ss23 is so nervous ;_;
225: [01:51:00] <ss23> k
226: [01:53:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/f4d16d01f87e...4ac9c23702e6
227: [01:53:00] * travis-ci has joined #silverstripe
228: [01:53:00] * travis-ci has left #silverstripe
229: [01:53:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5583345
230: [01:53:00] <travis-ci> [travis-ci] silverstripe/sapphire#1663 (3.0 - 4ac9c23 : Andrew Short): The build is still failing.
231: [01:54:00] <Pyromanik> Jakx, this is quite... creepy :<
232: [01:54:00] <Pyromanik> lol
233: [01:54:00] <ss23> Pyromanik likes it
234: [01:55:00] <Jakx> Not quite the fusion jazz you linked
235: [01:55:00] <Jakx> Pyromanik, haha - sorry yeah. It's a little out there
236: [01:55:00] <Pyromanik> it's alright
237: [01:55:00] <Pyromanik> lol
238: [01:56:00] <Pyromanik> just... not what the mood calls for :P
239: [01:56:00] * Pyromanik could go some trumpets
240: [01:56:00] <Pyromanik> mariachi band stuffs would go well now
241: [01:59:00] <Pyromanik> dunno if I've linked him to you before
242: [01:59:00] <Pyromanik> Jakx, have you heard of mooze?
243: [02:01:00] <Pyromanik> https://soundcloud.com/musicbymooze
244: [02:02:00] <Pyromanik> check out carbon black & tangrenjie
245: [02:02:00] <ss23> I tried just $FieldName, but it doesn't work
246: [02:02:00] <ss23> How do I access the values of an extensions db fields in a template?
247: [02:06:00] <ss23> simon_w~
248: [02:07:00] * LoveDuckie quit (Ping timeout: 258 seconds)
249: [02:13:00] <ss23> ah my bad, I got it
250: [02:21:00] * aaron1245_ has joined #silverstripe
251: [02:22:00] * aaron1245_ is now known as aaron1245
252: [02:22:00] * aaron1245 quit (Read error: Connection reset by peer)
253: [02:41:00] <Pyromanik> ss23, just as you said.
254: [02:41:00] <Pyromanik> which apparently you figured out.
255: [02:42:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5583899
256: [02:42:00] * UncleCheese quit (Quit: UncleCheese)
257: [02:42:00] * travis-ci has joined #silverstripe
258: [02:42:00] <travis-ci> [travis-ci] silverstripe/sapphire#1664 (user-specific-temp-folder - 89ccdd1 : Sam Minnee): The build failed.
259: [02:42:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/commit/89ccdd187d83
260: [02:42:00] * travis-ci has left #silverstripe
261: [02:45:00] * DrCuriosity quit (Ping timeout: 258 seconds)
262: [02:53:00] * elgrodo has joined #silverstripe
263: [03:02:00] * Jakx has left #silverstripe
264: [03:13:00] * maknz has joined #silverstripe
265: [03:18:00] * Error404NotFound has joined #silverstripe
266: [03:23:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
267: [03:28:00] * Error404NotFound has joined #silverstripe
268: [03:48:00] <ss23> My depression is triggered by idiocy. Can I get a "trigger warning" every time you're about to say something stupid, please?
269: [03:56:00] <ss23> $this->FieldName doesn't work
270: [03:56:00] <ss23> I'm sure it's simple...
271: [03:56:00] <simon_w> If that doesn't work, you're doing it wrong
272: [03:56:00] <ss23> How do I access the data for a class from within a method?
273: [03:56:00] <ss23> Help Pyromanik and simon_w
274: [03:58:00] <ss23> static $db = array(
275: [03:58:00] <ss23> 'CenterLatitude' => 'Varchar',
276: [03:59:00] <ss23> [Notice] Undefined property: GoogleMaps::$CenterLatitude
277: [03:59:00] <ss23> simon_w: Want me to paste the entire class?
278: [03:59:00] <Pyromanik> he is
279: [03:59:00] <simon_w> Let me guess, you're in a DataExtension?
280: [03:59:00] <ss23> simon_w: YES
281: [03:59:00] <Pyromanik> what do you mean it dosen't work?
282: [03:59:00] <ss23> :D
283: [04:00:00] <ss23> ty simon_w
284: [04:00:00] <Pyromanik> oh right yeah
285: [04:00:00] <ss23> I see, thanks
286: [04:00:00] <Pyromanik> I TOLD YOU THAT
287: [04:00:00] <Pyromanik> last night!
288: [04:00:00] <Pyromanik> GOSH
289: [04:00:00] * Pyromanik runs away crying
290: [04:00:00] * Pyromanik quit (Quit: running away crying)
291: [04:00:00] <ss23> XD
292: [04:00:00] <ss23> It is in the docs, I see! I just idnd't know what to look for
293: [04:00:00] <simon_w> And you want $this->owner->FieldName
294: [04:01:00] <willr> did it scare people off?
295: [04:01:00] <simon_w> willr, yup
296: [04:01:00] <willr> simon_w didn't you have a patch to magic over $this->owner
297: [04:02:00] <ss23> simon_w is just too scary~
298: [04:02:00] <simon_w> Don't know why. Just mapped Extension::__* to $this->owner->__*
299: [04:02:00] <simon_w> Yeah
300: [04:03:00] * simon_w just lives on the bleeding edge
301: [04:04:00] <ss23> simon_w is the l33t reverse engineer
302: [04:04:00] * DigNZ quit (Quit: DigNZ)
303: [04:09:00] * DigNZ has joined #silverstripe
304: [04:09:00] * nickmolhoek quit (Quit: nickmolhoek)
305: [04:09:00] * DigNZ quit (Remote host closed the connection)
306: [04:13:00] * DigNZ has joined #silverstripe
307: [04:14:00] * DigNZ quit (Remote host closed the connection)
308: [04:14:00] * DigNZ has joined #silverstripe
309: [04:15:00] * DigNZ quit (Client Quit)
310: [04:37:00] * willr quit (Quit: willr)
311: [04:40:00] * CodeTrap1 quit (Ping timeout: 245 seconds)
312: [04:41:00] * DrCuriosity has joined #silverstripe
313: [04:41:00] * CodeTrap has joined #silverstripe
314: [04:51:00] * cloph_away1 has joined #silverstripe
315: [04:53:00] * cloph_away quit (Ping timeout: 264 seconds)
316: [04:54:00] * SightUnseen has left #silverstripe
317: [04:54:00] * SightUnseen has joined #silverstripe
318: [05:47:00] * joelpittet has joined #silverstripe
319: [05:55:00] * Shrike_Finland quit (Quit: Leaving.)
320: [06:03:00] * willr has joined #silverstripe
321: [06:11:00] * SightUnseen has joined #silverstripe
322: [06:11:00] * SightUnseen has left #silverstripe
323: [06:21:00] * simon_w|air has joined #silverstripe
324: [06:30:00] * UncleCheese has joined #silverstripe
325: [06:33:00] * DrCuriosity quit (Ping timeout: 264 seconds)
326: [06:39:00] * hubertusanton has joined #silverstripe
327: [06:42:00] * Shrike_Finland has joined #silverstripe
328: [06:44:00] * UncleCheese quit (Read error: Operation timed out)
329: [06:59:00] * SightUnseen has joined #silverstripe
330: [07:07:00] <ss23> http://instagram.com/p/W_WeY0kXit/ Now that's putting a CISSP to good use.
331: [07:12:00] * aaron1245 quit (Quit: aaron1245)
332: [07:16:00] * DigNZ has joined #silverstripe
333: [07:18:00] * guci0 has joined #silverstripe
334: [07:19:00] <guci0> Hello moto!
335: [07:21:00] * SightUnseen has left #silverstripe
336: [07:22:00] <Zauberfisch> blubb
337: [07:22:00] * joelpittet has left #silverstripe
338: [07:39:00] <simon_w|air> ss23, NO, YOUR MUM
339: [07:39:00] * simon_w|air misses CIA bot
340: [07:39:00] <ss23> simon_w: Recreate it!
341: [07:39:00] <ss23> WE HAVE THE TECHNOLOGY
342: [07:39:00] <ss23> WE CAN REBUILD HIM
343: [07:40:00] <ss23> XD
344: [07:42:00] * Shrike_Finland has joined #silverstripe
345: [07:42:00] * Shrike_Finland quit (Read error: Connection reset by peer)
346: [07:55:00] * DigNZ quit (Quit: DigNZ)
347: [07:57:00] * MrGuits has joined #silverstripe
348: [07:57:00] * Guits quit (Read error: Connection reset by peer)
349: [08:01:00] * Liquide quit ()
350: [08:03:00] * zfmf has joined #silverstripe
351: [08:12:00] <simon_w|air> Migrating database servers, one database at a time!
352: [08:13:00] <ss23> simon_w|air is GANGSTA
353: [08:24:00] <ss23> bah humbug!
354: [08:24:00] <simon_w|air> bah, mysqli doesn't like this format :(
355: [08:24:00] <ss23> :<
356: [08:25:00] <simon_w|air> Exactly!
357: [08:31:00] * chillu has joined #silverstripe
358: [08:43:00] * UncleCheese has joined #silverstripe
359: [08:47:00] * priithansen has joined #silverstripe
360: [08:47:00] <simon_w|air> Yaaaay, no 3.0 way to connect to MySQL on a different port
361: [08:47:00] <ss23> o.o
362: [08:47:00] <ss23> That seems like a massive oversight, simon_w|air
363: [08:48:00] * SightUnseen has left #silverstripe
364: [08:48:00] <simon_w|air> Apparently not, since this is the first it's come up :p
365: [08:48:00] * SightUnseen has joined #silverstripe
366: [08:49:00] * Shrike_Finland1 has joined #silverstripe
367: [08:50:00] <simon_w|air> 12 hours of work is enough for one day!
368: [08:50:00] <ss23> simon_w|air: But it's so quick, you could get it done tonight...
369: [08:50:00] <ss23> :3
370: [08:50:00] <simon_w|air> I guess I'll write a patch for it tomorrow
371: [08:51:00] <simon_w|air> Oh, I've already added it to the 2.4 MySQLi class
372: [08:51:00] <ss23> simon_w|air: You should make Travis fixed
373: [08:51:00] <ss23> It seems useless to have Travis if the build errors are ignored!
374: [08:51:00] <simon_w|air> (and ConfigureFromEnv.php)
375: [08:52:00] * ocm has joined #silverstripe
376: [08:52:00] <ocm> goodmorning
377: [08:52:00] * simon_w|air blames composer
378: [08:52:00] <simon_w|air> yes, and no one knows why it's breaking
379: [08:53:00] * kinglozzer has joined #silverstripe
380: [08:53:00] * Shrike_Finland quit (Ping timeout: 255 seconds)
381: [08:53:00] * UncleCheese quit (Ping timeout: 252 seconds)
382: [09:04:00] * Err404NotFound has joined #silverstripe
383: [09:04:00] * Error404NotFound quit (Disconnected by services)
384: [09:19:00] <kinglozzer> Hmm. Created silverstripe-cache folder on my server, dev/build filled it with files with permission 600 that I can't delete :(
385: [09:19:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
386: [09:21:00] * lx-berlin has joined #silverstripe
387: [09:22:00] * spronk2 quit (Remote host closed the connection)
388: [09:25:00] * waveydave has joined #silverstripe
389: [09:35:00] * LoveDuckie has joined #silverstripe
390: [09:36:00] * joelpittet has joined #silverstripe
391: [09:42:00] <ss23> I'm doing some modeladmin / dataobject / extension stuff, and I'm getting this SQL error. Where is PArentID even coming from?
392: [09:42:00] <ss23> SELECT DISTINCT count(DISTINCT "GoogleMap"."ID") AS "0" FROM "GoogleMap" WHERE ("ParentID" = '1'); // Unknown column 'ParentID' in 'where clause'
393: [09:43:00] <simon_w|air> ss23, you've got a has_many but no has_one for it
394: [09:43:00] <ss23> Any way to find out where it is, simon_w|air? I thought I caught them all
395: [09:43:00] * DrCuriosity has joined #silverstripe
396: [09:43:00] <simon_w|air> kinglozzer, that's how permissions work...
397: [09:44:00] <simon_w|air> ss23, it's a has_many to GoogleMap
398: [09:44:00] <simon_w|air> not of the relation, no
399: [09:44:00] <ss23> simon_w|air: The name doesn't matter, right?
400: [09:44:00] <simon_w|air> and the call stack probably has something useful in it
401: [09:44:00] <ss23> simon_w|air: Yep, the on my GoogleMap I have a has_one back to GoogleMapsHolder
402: [09:45:00] <kinglozzer> simon_w|air: I know, but is this intended behaviour by SS or something to do with my server setup? I don't have admin access
403: [09:46:00] <ss23> (Of course, knowing me, I've done it wrong though)
404: [09:46:00] <ss23> simon_w|air: http://codepad.viper-7.com/SJAUxG/55dev? Thats the entire stack. I'll paste my code now, but as far as I can see between Google Map and the holder, the relationships should be fine
405: [09:47:00] <ss23> https://gist.github.com/ss23/5186055 GoogleMapsHolder.php https://gist.github.com/ss23/5186060 GoogleMap.php
406: [09:48:00] <simon_w|air> ss23, looks like the problem's with Deal
407: [09:48:00] <simon_w|air> Also, you need to has_one to the object you're sticking the DataExtension on, not the DataExtension
408: [09:49:00] <simon_w|air> Do you need to be able to get from the GoogleMap back to the class?
409: [09:49:00] <ss23> How does that work though? How do I know what the DataExtension is being applied to...?
410: [09:49:00] <ss23> Oh, uh
411: [09:49:00] <ss23> Like, if this is a module, and people should be able to apply this "module" to any class...?
412: [09:50:00] <simon_w|air> Change it to a many_many
413: [09:50:00] <ss23> I mean, in my code, I don't think I would need to
414: [09:50:00] <ss23> Nope, don't think so. But I'm guessing the ModelAdmin stuff wants to be able to, given the error?
415: [09:50:00] <simon_w|air> That's because of the has_many
416: [09:51:00] <ss23> okay
417: [09:51:00] <ss23> simon_w|air: But it's not a many_many relationship...?
418: [09:51:00] <simon_w|air> (it's intended)
419: [09:51:00] <ss23> simon_w|air: Is many_many just a hack to make it work?
420: [09:51:00] <simon_w|air> ss23, well, technically a has_many is just a restricted many_many. And it doesn't need the reverse relation
421: [09:51:00] <simon_w|air> kinglozzer, for the zend_cache ones, yes
422: [09:52:00] <kinglozzer> Okay thanks simon_w|air. Will probably just leave the cache folders in /tmp in future, seeing as I can't touch them anyway
423: [09:52:00] <simon_w|air> Like how you're supposed to handle relations to Image
424: [09:53:00] <ss23> Yay, this should work, simon_w|air! I'll have a few more questions soon if I can't find the answers in the CMS, maybe, but thanks for the help for now :D <3
425: [09:53:00] <ss23> simon_w|air: p.s. Silverstripe v3 is sexy <3
426: [09:55:00] <ss23> simon_w|air: But you're the most helpful person to bug!
427: [09:55:00] <ss23> But okay
428: [09:55:00] <ss23> I'll be waiting for tomorrow :3
429: [09:55:00] <ss23> Cyao
430: [09:55:00] <ss23> Oh, I know ;)
431: [09:55:00] <simon_w|air> and now, I leave you to bug someone else for the night :p
432: [09:55:00] <ss23> You need to add a wink on that
433: [09:55:00] <simon_w|air> oh, I know
434: [09:55:00] <ss23> XD
435: [09:56:00] <ss23> simon_w|air: Is there a fancier customization of CMS than the getfields stuff?
436: [09:56:00] <simon_w|air> There's even a thing on my wall that says so...
437: [09:56:00] <ss23> I wanna do a interactive Google Maps thing so people can pick their positions on it etc
438: [09:57:00] <ss23> Depends. What is leftandmain? I want to uh... when you click on "New Google Map" for now, it is like "Please enter a zoom, sizex..." etc etc, I wanna replace that with a nice javascript html thing that when you click on it, it will save to hidden fields of those kind of thing
439: [09:57:00] <simon_w|air> A custom LeftAndMain?
440: [09:58:00] <simon_w|air> Could use a custom field
441: [09:58:00] <kinglozzer> Partial caching question: if I have a load of DataObjects on the front end, each with a $many_many to another DataObject, will <% cached 'mydataobject'... cache for each DataObject? Or will the 'mydataobject' cache be overwritten each time a different DataObject is loaded?
442: [09:59:00] <simon_w|air> and have fun figuring it out :p
443: [09:59:00] <ss23> simon_w|air: Oh, so my getCMSFields just returns my custom "field", and the field is actually a bunch of HTML/Javascript that does the entire selection stuff?
444: [09:59:00] <simon_w|air> kinglozzer, if you add in the object's ID, it'll be per-object otherwise will be once
445: [09:59:00] <simon_w|air> LeftAndMain is the CMS controller base class
446: [09:59:00] <ss23> That sounds like it could work, simon_w|air. Are there docs on doing that, or just API stuff?
447: [09:59:00] <simon_w|air> ss23, yup
448: [10:00:00] <ss23> haha
449: [10:00:00] <ss23> Damn
450: [10:00:00] <kinglozzer> simon_w|air: Thought so, how do I add the ID? <% cached 'mydataobject$ID'... %>?
451: [10:00:00] <ss23> I'll try, be prepared to wake up to a bunch of messages, simon_w|air :P
452: [10:00:00] <simon_w|air> kinglozzer, should be something on the docs page about that
453: [10:01:00] * simon_w|air sleeps
454: [10:01:00] * joelpittet quit (Remote host closed the connection)
455: [10:01:00] <kinglozzer> Okay cheers
456: [10:01:00] * simon_w|air quit (Quit: This computer has gone to sleep)
457: [10:10:00] * Zauberfisch quit (Remote host closed the connection)
458: [10:12:00] <g4b0> hi all
459: [10:12:00] * g4b0 has joined #silverstripe
460: [10:12:00] * maatunix has left #silverstripe
461: [10:12:00] <g4b0> In a website I'm developing
462: [10:12:00] * maatunix has joined #silverstripe
463: [10:13:00] <g4b0> if the user is not ADMIN
464: [10:13:00] <g4b0> allowed_children isn't honored
465: [10:13:00] <g4b0> how can I solve?
466: [10:13:00] <g4b0> SS 3.1.0-beta2
467: [10:17:00] * willr quit (Quit: willr)
468: [10:23:00] <ocm> is there a buildin controller that transforms a date into an age?
469: [10:26:00] <kinglozzer> ocm: Not really sure what you mean. To work out an age, you have to subtract one date from another. Not sure about SilverStripe, but PHP's DateTime class can do it
470: [10:27:00] <ocm> and I am a lazy person :P
471: [10:27:00] <ocm> well, age
472: [10:27:00] <ocm> of a member
473: [10:27:00] <kinglozzer> You're just being lazy :P
474: [10:27:00] <ocm> who subscribes
475: [10:27:00] <ocm> yes I am
476: [10:27:00] <ocm> haha
477: [10:27:00] <ocm> current date - given date = age
478: [10:27:00] <kinglozzer> Ah
479: [10:27:00] <ocm> I know, its not hard to write. but maybe you have something like $Date.Age or something :P
480: [10:27:00] <kinglozzer> ocm: What do you mean 'age'? :P
481: [10:28:00] <ss23> Now for something not lazy! Not sure if you guys saw, but I want to have a customized interface in the CMS instead of the standard getCMSFields stuff. Someone suggested creating my own field type for it, what about creaiting my own form, then I can do it within a template. Any way to tell the CMS which form to use to render a entry screen?
482: [10:28:00] <kinglozzer> Yeah I doubt there's a built in function for that :P
483: [10:31:00] <kinglozzer> ss23: Why do you need a custom interface? You can override templates, but you probably don't want to ALWAYS override it. Not sure if you can do it with getCMSFields() as that only touches the FieldList, not the Form object
484: [10:31:00] <kinglozzer> ss23: You might be able to do it with updateEditForm
485: [10:33:00] <ss23> Well, its for adding Google Maps to a page, kinglozzer. And since its a MapHolder has many Maps, which has one position, and has many markers, and each marker has one position and a color, it's all a bit complex. So I want to build a different "Add Map" interface that is actually sane
486: [10:36:00] <ss23> That makes sense, right kinglozzer? Like, you get what I'm trying to do? What do you think would be the best way to actually do it?
487: [10:40:00] <ocm> ss23, you just want a custom login form for the cms? or did I misunderstand?
488: [10:40:00] <ss23> ocm: Neither of those things
489: [10:40:00] <ocm> is the custom interface for the whole cms?
490: [10:41:00] <ss23> ocm: Have you done stuff with DataObjects? I have a DataObject, which has the extension GoogleMaps (a DataExtension I made). This extension has a complex heirachey of classes to represent a set of Google Maps (including markers you can put on it). Because of how complex the heriachy is, the default interface for creating them is *yucky*, and near impossible to work
491: [10:42:00] <ss23> Hence, I want to replace the entier form when you click "Add new Google Map", so instead of the default form, I have my own Javascript / PHP code that will let the user interact with a Javascript map and save it properly after that
492: [10:43:00] <ocm> hm I have been working with DataObjects, but not with a custom cmsfield on that
493: [10:43:00] <ss23> I'm new to Silverstripe so it's all a bit confusing for me
494: [10:44:00] <ss23> Yeah, I can do that part, but then how about the entry of the Javascript / custom PHP to save it?
495: [10:44:00] <ocm> well, to start with you can use getCMSFields / update fields in order to remove all the exisiting fields which you dont need
496: [10:45:00] <ocm> silverstripe is MVC, use it ;P
497: [10:45:00] <ocm> isnt your custom php script making use of the framework sapphire?
498: [10:45:00] <ocm> for the js, put something like this in your config:
499: [10:46:00] <kinglozzer> I.e. do you have a tab on the left for 'maps', or do you edit a page, then click to add a new one in there?
500: [10:46:00] <ss23> Um
501: [10:46:00] <kinglozzer> ss23: Is your form a ModelAdmin interface or attached to a Page as a GridField?
502: [10:46:00] <ocm> LeftAndMain::require_javascript("js/MyCustomScript.js");
503: [10:46:00] <ss23> I have a Deal class, which has the extensnion on it, and that is done with a ModelAdmin thing. I've not done any GridField stuff, kinglozzer
504: [10:47:00] <ss23> I click on the left "Deal Administration", which I added with MOdelAdmin
505: [10:47:00] <kinglozzer> Ah okay
506: [10:47:00] <ss23> Then when you click a Deal, there's a tab for Maps
507: [10:48:00] <kinglozzer> ss23: So you just want to customise that tab?
508: [10:49:00] <kinglozzer> Or the whole 'Deal'
509: [10:49:00] <ss23> kinglozzer: Just the "Map" tab
510: [10:49:00] <ss23> Well
511: [10:49:00] <ss23> Just the "create a new map" tab
512: [10:50:00] <ss23> one sec, kinglozzer
513: [10:54:00] <ss23> kinglozzer: http://screencast.com/t/Igtd95M5X0HP Does that help explain it?
514: [10:54:00] <ss23> ocm: ^^
515: [10:54:00] <ss23> I made that short video to help explain it
516: [10:55:00] <kinglozzer> ss23: Ah I see, so you want to change that form with 'zoom', 'size x' etc?
517: [10:55:00] <ss23> (Also has my sexy voice in it, so A+ would recommend listning ;))
518: [10:56:00] <ss23> Yeah, I want to basically change it from looking like a form, to looking like what you see on maps.google.com, with a button for like "Save my current position on the map!", then that'll create all the database stuff so that the same map can be displayed to the user
519: [10:57:00] <ss23> simon_w suggested some kind of custom FieldType, but I'm unsure how to do that exactly
520: [10:57:00] <ss23> kinglozzer: I can do that, but there's no Field for "custom HTML/Javascript" right?
521: [10:57:00] <ss23> Just wondering how to best do that
522: [10:57:00] <kinglozzer> ss23: You'll need to edit your 'Google Map' DataObject's getCMSFields() function
523: [10:57:00] <ss23> kinglozzer: I have a handle on the maps API to do that part, if I can somehow insert my own HTML + Javascript into it, as well as run some of my PHP code when the user clicks "Add map" kind of thing
524: [10:58:00] <kinglozzer> ss23: Nope. You could add a custom field type: class MyFieldName extends FormField { ... etc (copy some stuff from existing fieldtypes probably), I've done something similar without creating a custom field type
525: [10:59:00] <ss23> kinglozzer: What methods do you think I would override? I had a quick look in api.silverstripe but didn't have a good idea of which ones I would overide, kinglozzer
526: [10:59:00] <kinglozzer> ss23: I used a LiteralField, to just insert plain HTML https://github.com/kinglozzer/SilverStripe-GMapsPage
527: [11:00:00] <chillu> Oh, they do vagrant boxes? Great!
528: [11:00:00] <ss23> Oh, damn
529: [11:00:00] <kinglozzer> :( *
530: [11:00:00] <kinglozzer> ss23: It won't work for what you need :)(
531: [11:00:00] <ajshort> chillu: I'm going to try and track down the travis issues. If you want to have a go as well, http://files.travis-ci.org/boxes/provisioned/travis-php.box might be useful
532: [11:00:00] <ss23> kinglozzer: Got a demo of it?
533: [11:00:00] <ss23> ajshort++
534: [11:00:00] <ss23> snap, I should just use yours! :D
535: [11:01:00] <ajshort> :(
536: [11:01:00] <ajshort> i am jealous
537: [11:01:00] <chillu> Says 8 mins left here ;)
538: [11:01:00] <ajshort> or 8 hours
539: [11:01:00] <ajshort> I started downloading it, but my internet is being a bit finicky at the moment so it's going to take me about 2 years
540: [11:01:00] <ajshort> ss23: ajshort *= ajshort
541: [11:02:00] <ss23> lol
542: [11:03:00] <ss23> Oh
543: [11:03:00] <ss23> Um
544: [11:03:00] <ss23> kinglozzer: That will work for some, but some things aren't fields, right
545: [11:03:00] <kinglozzer> ss23: The easiest way to do it is to insert HiddenFields and some custom JS to update them
546: [11:03:00] <kinglozzer> And a LiteralField for the map div :)
547: [11:04:00] <ss23> Map has_many Markers
548: [11:04:00] <ss23> kinglozzer: Like, I need to support more than one Marker
549: [11:04:00] <ss23> So I can't just use a hidden field for it, unless I can then take that field and process it in my class, right?
550: [11:05:00] <ajshort> chillu: in that box there should be a script called "post_install.sh" or something, which you need to run, and then you can try out the build
551: [11:05:00] <chillu> Yeah, probably won't get around to it today
552: [11:06:00] <chillu> Haha
553: [11:06:00] <ajshort> now taking bets
554: [11:06:00] <kinglozzer> Ah, tough one. You could possibly save them all into one field, comma or pipe separated or something, then in your onBeforeWrite() explode that list and save each as a new Marker.
555: [11:06:00] <kinglozzer> ss23
556: [11:06:00] <ajshort> my internet speed versus your free time
557: [11:06:00] <ajshort> We can have a race
558: [11:06:00] <chillu> Collaborative infrastructure development, love it! (https://github.com/travis-ci/travis-cookbooks)
559: [11:08:00] <ss23> Well
560: [11:08:00] <ss23> kinglozzer: onBeforeWrite will just get whatever I put in my getCMSFields, right? So I can put in a hidden form Foo, then I can access Foo in my onBeforeWrite()?
561: [11:08:00] <kinglozzer> Not sure if there's a better way though
562: [11:08:00] <ss23> Not "perfect", but it sounds like it will work as well as I expected
563: [11:08:00] <ss23> kinglozzer: Aha, that sounds perfect!
564: [11:09:00] <ss23> (I've not used onBeforeWrite yet)
565: [11:09:00] <kinglozzer> Yep
566: [11:09:00] <ss23> ty, kinglozzer! I am in your debt ^.^
567: [11:09:00] <ss23> sweet
568: [11:10:00] <ss23> kinglozzer: I could, but that feels slightly messier
569: [11:10:00] <kinglozzer> It'd be easier, because then you don't have to worry about what happens when people delete a marker, your JS would remove it and that would be that
570: [11:10:00] <kinglozzer> ss23: Could you just save the markers into that one field pipe separated? So you don't need the 'Marker' DataObject at all?
571: [11:11:00] <ss23> Crap, I just realised I haven't done that with any of my current stuff
572: [11:11:00] <ss23> Does Silverstripe not take care of that itself ever? Like, is there a helper for that?
573: [11:11:00] <ss23> Hmm, that is true, I guess... if I do it this way, I have to keep track of when I delete things and make it spiral down
574: [11:12:00] <ss23> foo has_many Bars, and Bars has_one foo, if you delete foo, does it delete the Bars too?
575: [11:12:00] <ss23> Or how can you make that happen?
576: [11:13:00] <priithansen> ss23: I think You have to do that Yourself in onAfterDelete
577: [11:14:00] <ss23> Damn, time to implmenet that in a bunch of code >.<
578: [11:17:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/df7671acb47e...b2552f885b4c
579: [11:17:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5591187
580: [11:17:00] * travis-ci has left #silverstripe
581: [11:17:00] * travis-ci has left #silverstripe
582: [11:17:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/5591206
583: [11:17:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/7e43afe39e2d...1bad0742fb30
584: [11:17:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#278 (3.1 - 1bad074 : Ingo Schommer): The build is still failing.
585: [11:17:00] * travis-ci has joined #silverstripe
586: [11:17:00] <travis-ci> [travis-ci] silverstripe/sapphire#1666 (3.1 - b2552f8 : Ingo Schommer): The build is still failing.
587: [11:17:00] * travis-ci has joined #silverstripe
588: [11:22:00] <travis-ci> [travis-ci] silverstripe/sapphire#1667 (post-2.4 - 84a3de6 : Ingo Schommer): The build is still failing.
589: [11:22:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5591312
590: [11:22:00] * travis-ci has left #silverstripe
591: [11:22:00] * travis-ci has joined #silverstripe
592: [11:22:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/d0ba94bea5db...84a3de6be8f6
593: [11:27:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#279 (3.1 - 9bce266 : Ingo Schommer): The build was fixed.
594: [11:27:00] * travis-ci has left #silverstripe
595: [11:27:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/1bad0742fb30...9bce2666394b
596: [11:27:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/5591342
597: [11:27:00] * travis-ci has joined #silverstripe
598: [11:28:00] * travis-ci has left #silverstripe
599: [11:28:00] <ss23> awards*
600: [11:28:00] <ss23> wait, what?
601: [11:28:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#280 (master - a451766 : Ingo Schommer): The build is still failing.
602: [11:28:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/18f4f6810185...a451766e62fc
603: [11:28:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/5591369
604: [11:28:00] <ss23> Oh, different branches
605: [11:28:00] <ss23> YAY!
606: [11:28:00] * ss23 aways chillu 100 points
607: [11:28:00] <chillu> yuss
608: [11:28:00] * travis-ci has joined #silverstripe
609: [11:34:00] * ajshort_ has joined #silverstripe
610: [11:36:00] * ajshort quit (Ping timeout: 256 seconds)
611: [11:36:00] * ajshort_ is now known as ajshort
612: [11:37:00] * ajshort is now known as Guest89763
613: [11:43:00] * waveydave quit (Ping timeout: 240 seconds)
614: [12:06:00] * cloph_away1 is now known as cloph
615: [12:11:00] * chillu quit (Quit: chillu)
616: [12:13:00] * chillu is now known as ajshort
617: [12:13:00] * Guest89763 is now known as chillu
618: [12:13:00] * Zauberfisch has joined #silverstripe
619: [12:23:00] <ss23> kinglozzer: You happen to still be here and know?
620: [12:23:00] <ss23> Tried that, I get null.
621: [12:23:00] <ss23> wait
622: [12:23:00] <ss23> So I was under the impression I could use "onBeforeWrite" to get the values of form elements I added in "getCMSFields", but how do I actualy get those values?
623: [12:23:00] <kinglozzer> ss23: $this->FieldName
624: [12:24:00] <ss23> var_dump($this->SizeX);
625: [12:24:00] <ss23> parent::onBeforeWrite();
626: [12:24:00] <ss23> Wait, uh
627: [12:24:00] <kinglozzer> Is that because the field is empty? ;)
628: [12:24:00] <ss23> Yep
629: [12:24:00] <ss23> lol
630: [12:24:00] <ss23> no
631: [12:24:00] <kinglozzer> Also, make sure you do parent::onBeforeWrite()
632: [12:24:00] <ss23> I just checked that, kinglozzer :P
633: [12:24:00] <ss23> My onbeforewrite is
634: [12:24:00] <ss23> var_dump($this->MapOptions);
635: [12:25:00] <ss23> I think it might be because I'm adding it in my literlafield, rather than my getCMSFields
636: [12:26:00] <ss23> Sweet, works now, I see kinglozzer
637: [12:26:00] * UndefinedOffset has joined #silverstripe
638: [12:26:00] <kinglozzer> Cool :)
639: [12:27:00] <ss23> wait, my bad
640: [12:27:00] <ss23> Sorry, kinglozzer. I'm not on the top of my game at the moment >.<
641: [12:27:00] <ss23> though I do have one thing that would help me, kinglozzer, since you're better at this than me. At the moment I'm doing a jQuery('#map-select').parent('form').submit(function() { jQuery("[name='MapOptions']").val("Wowzer"); }, and I'm planning to serialize the data here, however, that line of code doesn't seem to create an effect
642: [12:28:00] <kinglozzer> ss23: All the Javascript in the CMS should be handled by the Entwine library
643: [12:29:00] <ss23> Yeah, I figured I was bad for doing this, but it works, and thats what matters, right kinglozzer...? Right?
644: [12:30:00] <ss23> kinglozzer: I'm kind of doing this in stages. Main thing for now is to make sure a user can use it easily
645: [12:30:00] <ss23> After that, I'll paste all my code and let you guys tlel me off for all my bad things so I can get better
646: [12:30:00] <kinglozzer> Well, provided no one else will ever take over development of the CMS then I suppose it's okay :P
647: [12:31:00] * chillu has joined #silverstripe
648: [12:34:00] <ss23> Yeah, I dont doubt I can learn it, I just wanna get this part working first. Javascript front end stuff will be simple enough as long as I know it's possible, which I know it is now :)
649: [12:34:00] <kinglozzer> ss23: Entwine looks harder to use than it is, it's fairly simple once you understand what it's doing. Use the CMS javascript as an example, files in /framework/admin/javascript are easy enough to understand
650: [12:35:00] * webguest has joined #silverstripe
651: [12:43:00] <webguest> Event Calendar: Does any one know why only me first 6 repeating events are shown? My function: http://paste2.org/p/3202961 - my calendar event has got 14 date times (not repeating, just added new dates times_
652: [12:44:00] <webguest> 1 event, with multiple date times: http://paste2.org/p/3202988
653: [12:44:00] <webguest> also see http://tinyurl.com/cza6uqy
654: [12:44:00] <webguest> only showing till 13-july
655: [12:46:00] <webguest> in the CMS 'Number of future dates to show for repeating events' is set to 50
656: [12:58:00] <chillu> :D
657: [12:58:00] <ss23> chillu: Be careful! Soon you'll be in the negatives...
658: [12:58:00] * travis-ci has joined #silverstripe
659: [12:58:00] <travis-ci> [travis-ci] chillu/sapphire#78 (pulls/update-pages-list - bca055b : Ingo Schommer): The build is still failing.
660: [12:58:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/fe27f4cb040e...bca055b2adf9
661: [12:58:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/5593094
662: [12:58:00] * travis-ci has left #silverstripe
663: [12:58:00] * micmania1_ has joined #silverstripe
664: [12:58:00] * ss23 deducts 50 points from chillu
665: [13:00:00] * micmania1 quit (Ping timeout: 245 seconds)
666: [13:01:00] * ajshort quit (Ping timeout: 260 seconds)
667: [13:01:00] * ajshort_ is now known as ajshort
668: [13:01:00] * ajshort_ has joined #silverstripe
669: [13:02:00] * vwd has joined #silverstripe
670: [13:02:00] <vwd> Hi
671: [13:02:00] <g4b0> Hi vwd
672: [13:03:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/bca055b2adf9...c7d2d51c6a00
673: [13:03:00] * travis-ci has left #silverstripe
674: [13:03:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/5593227
675: [13:03:00] <travis-ci> [travis-ci] chillu/sapphire#79 (pulls/update-pages-list - c7d2d51 : Ingo Schommer): The build is still failing.
676: [13:03:00] * travis-ci has joined #silverstripe
677: [13:04:00] * travis-ci has left #silverstripe
678: [13:04:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5593260
679: [13:04:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/b2552f885b4c...1afd091fbe5b
680: [13:04:00] <travis-ci> [travis-ci] silverstripe/sapphire#1670 (3.1 - 1afd091 : Ingo Schommer): The build is still failing.
681: [13:04:00] * travis-ci has joined #silverstripe
682: [13:05:00] <g4b0> I wolud like to know what SilverStripe guru think about http://open.silverstripe.org/ticket/8300
683: [13:06:00] <ss23> g4b0: Looks like a bug to me, but I don't know much about Silverstripe. Wait and see what people post I guess, but looks dodgy, so hopefully you'll get a fix or response :)
684: [13:06:00] <webguest> http://www.silverstripe.org/all-other-modules/show/23204
685: [13:07:00] <ss23> Anyway, I'm heading off to bed now. Thanks for the help, kinglozzer. Got it working almost perfectly, just need to fix up that jquery to entwine then it should all work! I appericate the help
686: [13:07:00] <kinglozzer> No problem
687: [13:08:00] <g4b0> ss23: I hope :)
688: [13:09:00] <kinglozzer> g4b0: I can't even open that popup on mine :P
689: [13:09:00] <UndefinedOffset> g4b0 atleast it works for admins ;) I fixed that portion around when 3.0 came out. Its in CMSMain.php if I remember correctly... or SiteTree. It's the method that generates the tree hints anyways
690: [13:10:00] <g4b0> ??
691: [13:10:00] <g4b0> UndefinedOffset: I will never give admin permissions to my customer :)
692: [13:10:00] * ajshort quit (Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344])
693: [13:10:00] <kinglozzer> hints[pagetype] is undefined
694: [13:12:00] <kinglozzer> g4b0: I can't open it, JS error. Line 25 of CMSMain.Tree.js
695: [13:12:00] <vwd> hi g4b0. Anyone updated to 3.0.5 using composer update?
696: [13:12:00] <g4b0> kinglozzer: where does it's declared?
697: [13:12:00] <g4b0> never, just passed to 3.1-beta as soon as it was released :)
698: [13:13:00] <g4b0> which SS version?
699: [13:13:00] <kinglozzer> g4b0: 3.1.0-beta2
700: [13:13:00] <g4b0> kinglozzer: wonderful :P
701: [13:13:00] <kinglozzer> vwd: Nope, but it should work fine
702: [13:14:00] <g4b0> just pulled 3housr ago
703: [13:14:00] <kinglozzer> vwd: The only major change between 3.0.3 and 3.0.5 was the changes to $allowed_actions
704: [13:14:00] <g4b0> I also have the "duplicate" option
705: [13:14:00] <g4b0> yep
706: [13:14:00] <kinglozzer> Are you running the git branch? Might have been semi-fixed
707: [13:15:00] <g4b0> :)
708: [13:15:00] <g4b0> damn $allowed_actions !
709: [13:15:00] * Zauberfisch quit (Ping timeout: 256 seconds)
710: [13:15:00] <g4b0> nice
711: [13:15:00] <kinglozzer> g4b0: The popup works on every page /except/ those where I've defined $allowed_children :P
712: [13:16:00] <kinglozzer> I don't have duplicate, must've been merged later than beta2
713: [13:16:00] <kinglozzer> vwd: Ah I was just talking about cms and framework, those didn't pull it in right?
714: [13:16:00] <vwd> Another subtle change seems to be dependencies of one of the modules which is causing silverstripe-compass to be pulled in as well.
715: [13:17:00] <vwd> I use Compass externally anyway. But I now have a an error: [User Error] Compass Error:LoadError on line 36 of /Library/Ruby/Site/1.8/rubygems/custom_require.rb: no such file to load -- bundler/setupRun with --trace to see the full backtrace
716: [13:17:00] <kinglozzer> Not a clue, never used compass or ruby. /dev/build?flush=all ?
717: [13:18:00] <vwd> I didn't check which module pulled it in actually. But it appears that my default rvm ruby is being ignored. (@kinglozzer - yeah did a dev/build?flush=all)
718: [13:20:00] <vwd> I think I have to investigate why when SS is trying to execute compass calls, it's using the old OSX system Ruby instead of the latest default Ruby version managed by RVM...
719: [13:20:00] <g4b0> I'm looking at CMSMain::SiteTreeHints but I can't see anything related to admin/non admin
720: [13:25:00] <kinglozzer> g4b0: Check line 403 if($instance->stat('need_permission') && !$this->can(singleton($class)->stat('need_permission'))) continue;
721: [13:26:00] <kinglozzer> It might be fine, it's just the first thing I'd check
722: [13:27:00] * kinglozzer lunch
723: [13:28:00] <g4b0> good lunch :0
724: [13:29:00] <g4b0> GMT +2
725: [13:29:00] * UncleCheese has joined #silverstripe
726: [13:29:00] <vwd> @kinglozzer & @g4b0 - which timezone are you in?! It's way past my bedtime.
727: [13:29:00] <kinglozzer> In the UK :)
728: [13:29:00] <kinglozzer> GMT
729: [13:30:00] <g4b0> Italy :(
730: [13:30:00] <kinglozzer> Or is it GMT +1 now? I can never remember
731: [13:30:00] <kinglozzer> Stupid summer time
732: [13:30:00] <g4b0> ahaha, me too
733: [13:32:00] <vwd> Hope you guys enjoy your lunch. Thanks for your help. Goodnight.
734: [13:35:00] * vwd has left #silverstripe
735: [13:40:00] * travis-ci has left #silverstripe
736: [13:40:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/1afd091fbe5b...250834d9d22f
737: [13:40:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5594032
738: [13:40:00] * travis-ci has joined #silverstripe
739: [13:40:00] <travis-ci> [travis-ci] silverstripe/sapphire#1671 (3.1 - 250834d : Ingo Schommer): The build is still failing.
740: [13:48:00] * UncleCheese quit (Quit: UncleCheese)
741: [13:52:00] * webguest has joined #silverstripe
742: [13:52:00] * webguest quit (Quit: Page closed)
743: [13:53:00] <webguest> Does any one know the asnwer to this: http://www.silverstripe.org/all-other-modules/show/23204
744: [13:54:00] <g4b0> after some Debug::log and flush=all
745: [13:54:00] <g4b0> UndefinedOffset: strange issue...
746: [13:55:00] <g4b0> really strange
747: [13:55:00] <g4b0> now allowed children it's ok
748: [14:01:00] * UncleCheese has joined #silverstripe
749: [14:06:00] * Err404NotFound quit (Ping timeout: 258 seconds)
750: [14:07:00] <UndefinedOffset> smells like there caching going on then
751: [14:07:00] * Err404NotFound has joined #silverstripe
752: [14:17:00] <g4b0> yep
753: [14:18:00] * CodeTrap quit (Ping timeout: 258 seconds)
754: [14:18:00] * CodeTrap has joined #silverstripe
755: [14:19:00] <g4b0> another annoying (cache related?) bug: http://open.silverstripe.org/ticket/8327
756: [14:20:00] * cloph quit (Ping timeout: 258 seconds)
757: [14:23:00] * cloph_away has joined #silverstripe
758: [14:26:00] * jcwacky has joined #silverstripe
759: [14:27:00] <jcwacky> Is someone able to help me use SilverStripe's translation ability for a simple text line in a template?
760: [14:28:00] <jcwacky> I've got so far, but it's not picking up the translated version.
761: [14:34:00] * UncleCheese quit (Quit: UncleCheese)
762: [14:34:00] * Shrike_Finland1 quit (Quit: Leaving.)
763: [14:37:00] * UncleCheese has joined #silverstripe
764: [15:03:00] <jcwacky> first time I've done this, so could be doing something wrong
765: [15:03:00] <elgrodo> and only seeing the default (probably English) text
766: [15:03:00] <elgrodo> jcwacky: Just to clarify, is the issue one of not seeing entries from your chosen language file?
767: [15:03:00] <jcwacky> in the template I have: <% _t('READMORE','Read more articles in the News Room') %>
768: [15:03:00] <jcwacky> yep
769: [15:04:00] <jcwacky> and in /mysite/lang/de_dE.php I have: http://spdr.me/dAHR
770: [15:04:00] <elgrodo> hold on, I know the solutoin
771: [15:05:00] <elgrodo> in Page.php ensure your init() function has the if statement in this bit of code https://gist.github.com/gordonbanderson/5187802
772: [15:07:00] <jcwacky> although, now I realise I prob also have an issue with that file?
773: [15:07:00] <jcwacky> ah, I had tried that actually, but got: Undefined index: en_GB in de_DE.php
774: [15:08:00] <jcwacky> ah, fixed it!
775: [15:09:00] <jcwacky> perfect, thanks elgrodo, that helped immensely!
776: [15:15:00] <elgrodo> woot :)
777: [15:15:00] <elgrodo> I remember having the same problem :)
778: [15:16:00] <elgrodo> and that is in part what the IRC channel is for :)
779: [15:16:00] * UncleCheese quit (Quit: UncleCheese)
780: [15:31:00] * UncleCheese has joined #silverstripe
781: [15:38:00] * UncleCheese quit (Quit: UncleCheese)
782: [15:42:00] * Dynamic_Nic has joined #silverstripe
783: [15:51:00] * micmania1_ quit (Ping timeout: 245 seconds)
784: [15:56:00] * UncleCheese has joined #silverstripe
785: [15:59:00] * CodeTrap quit (Quit: CodeTrap)
786: [16:07:00] * waveydave has joined #silverstripe
787: [16:15:00] * aaron1245 has joined #silverstripe
788: [16:26:00] <UndefinedOffset> nice grats :)
789: [16:26:00] <g4b0> UndefinedOffset: I solved it!! https://github.com/silverstripe/silverstripe-cms/pull/304
790: [16:27:00] <g4b0> it was a really nasty bug
791: [16:30:00] <g4b0> chillu: can you kindly check https://github.com/silverstripe/silverstripe-cms/pull/304?
792: [16:30:00] <chillu> gotta head out in a minute, sorry
793: [16:31:00] <g4b0> np
794: [16:40:00] * joelpittet has joined #silverstripe
795: [16:41:00] * UncleCheese quit (Quit: UncleCheese)
796: [16:41:00] * joelpittet quit (Remote host closed the connection)
797: [16:41:00] * joelpittet has joined #silverstripe
798: [16:42:00] * chillu quit (Quit: chillu)
799: [16:46:00] * webguest quit (Ping timeout: 245 seconds)
800: [16:50:00] * joelpittet has left #silverstripe
801: [17:00:00] <g4b0> quit
802: [17:00:00] * g4b0 dinner
803: [17:01:00] * g4b0 quit (Quit: Sto andando via)
804: [17:19:00] * UncleCheese has joined #silverstripe
805: [17:23:00] * ocm quit ()
806: [17:28:00] * waveydave has left #silverstripe
807: [17:28:00] * kinglozzer quit (Remote host closed the connection)
808: [17:38:00] * popeshoe quit (Quit: This computer has gone to sleep)
809: [17:54:00] * zfmf has left #silverstripe
810: [17:58:00] * lx-berlin has left #silverstripe
811: [18:04:00] * Error404NotFound has joined #silverstripe
812: [18:06:00] * Err404NotFound quit (Ping timeout: 258 seconds)
813: [18:19:00] * UncleCheese quit (Quit: UncleCheese)
814: [18:31:00] * simon_w|air has joined #silverstripe
815: [18:34:00] * chillu has joined #silverstripe
816: [18:42:00] * SightUnseen has joined #silverstripe
817: [18:43:00] * SightUnseen has left #silverstripe
818: [18:59:00] * Dynamic_Nic quit (Remote host closed the connection)
819: [19:08:00] * catcher has joined #silverstripe
820: [19:16:00] * guci0 quit (Ping timeout: 245 seconds)
821: [19:18:00] * gelignite has joined #silverstripe
822: [19:20:00] * Bollig|DesignCty has joined #silverstripe
823: [19:25:00] * DigNZ has joined #silverstripe
824: [19:25:00] * DigNZ has joined #silverstripe
825: [19:25:00] * DigNZ quit (Remote host closed the connection)
826: [19:32:00] * nickmolhoek has joined #silverstripe
827: [19:32:00] * nickmolhoek has joined #silverstripe
828: [19:32:00] * nickmolhoek quit (Remote host closed the connection)
829: [19:40:00] * simon_w|air quit (Ping timeout: 246 seconds)
830: [19:57:00] * LoveDuckie quit (Ping timeout: 252 seconds)
831: [19:57:00] * LoveDuckie has joined #silverstripe
832: [20:01:00] * Pyromanik has joined #silverstripe
833: [20:03:00] <Pyromanik> love it
834: [20:03:00] <Pyromanik> [Tue Mar 19 09:01:31 2013] [error] [client 124.207.170.230] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /var/www/vhosts/.co.nz/httpdocs/sapphire/core/model/DataObjectSet.php on line 74
835: [20:04:00] <Pyromanik> Just a casual 17004
836: [20:04:00] * UncleCheese has joined #silverstripe
837: [20:04:00] <Pyromanik> how many objects in this set?
838: [20:08:00] * zfmf has joined #silverstripe
839: [20:11:00] <simon_w> I was loading a 130000-item set
840: [20:11:00] <simon_w> Eh, that's not bad
841: [20:14:00] <Pyromanik> "AlfredoOlofson you sell your house to start fresh in this galaxy"
842: [20:14:00] <Pyromanik> hhahahahah
843: [20:14:00] <Pyromanik> oh spambots, sometimes you're just so adorable
844: [20:15:00] * Pyromanik visits blog
845: [20:15:00] <Pyromanik> sees 1 post
846: [20:15:00] <Pyromanik> problem solved :D
847: [20:15:00] <Pyromanik> TRUNCATE PageComment
848: [20:15:00] <Pyromanik> eh
849: [20:16:00] <Pyromanik> WHY DID I SAVE THIS :<
850: [20:16:00] <simon_w> chillu, I need the MySQLDatabase class to handle a port parameter. Should I be targeting 3.0 or 3.1?
851: [20:16:00] <Pyromanik> no content in post
852: [20:17:00] * UndefinedOffset quit (Quit: Leaving.)
853: [20:18:00] <UncleCheese> anyone notice that you can't resize images in the wysiwyg anymore?
854: [20:19:00] <Pyromanik> nope.
855: [20:23:00] <simon_w> Eh, I should move that site to 3.1. I'll use that.
856: [20:23:00] * ARNHOE has joined #silverstripe
857: [20:25:00] <Marvanni> I have a obj manymany objects relation. In ModelAdmin the Tabtitles display the relationnames
858: [20:25:00] <Marvanni> How can i change that so it uses the pludarlname?
859: [20:25:00] <Marvanni> of the related object
860: [20:26:00] <Pyromanik> probably.
861: [20:26:00] <Marvanni> ah, fieldlabels i guess...
862: [20:26:00] <Pyromanik> is plural_name defined?
863: [20:27:00] <Pyromanik> I think that if it knows it's a many field and doesn't pull the plural by default then it should be updated.
864: [20:27:00] <simon_w> That just names the field
865: [20:27:00] <Pyromanik> it'll be the component you'll need to configure I guess.
866: [20:28:00] <Pyromanik> in core
867: [20:28:00] <simon_w> It usually pulls the name of the relation
868: [20:28:00] <Pyromanik> but that depends on whether it does any checks for many
869: [20:28:00] <Pyromanik> oh yeah
870: [20:28:00] <Pyromanik> so define the relation name as a plural (which is generally natural) and it's all good?
871: [20:28:00] * zfmf has left #silverstripe
872: [20:29:00] <Pyromanik> simon_w, how could one prevent a form being submitted more than once (doubleclick, etc) from php?
873: [20:29:00] <Pyromanik> oh right
874: [20:29:00] <Marvanni> I use a tables names like SA_TableName for this mod
875: [20:29:00] <Marvanni> plural names are set, but ignored in the formscaffolder
876: [20:30:00] <Marvanni> $this->obj->fieldLabel($relationship) is used
877: [20:31:00] <Pyromanik> oh :<
878: [20:31:00] * Jeremy_ is now known as password
879: [20:31:00] * Jeremy_ has joined #silverstripe
880: [20:31:00] <simon_w> Pyromanik, give the form a unique ID, check if already submitted
881: [20:31:00] <Pyromanik> simon_w, would the securityToken suffice?
882: [20:31:00] <simon_w> nope
883: [20:31:00] <Pyromanik> or is that same each user not each form?
884: [20:32:00] * password has left #silverstripe
885: [20:33:00] * SightUnseen has joined #silverstripe
886: [20:33:00] * SightUnseen has left #silverstripe
887: [20:33:00] <UncleCheese> chillu: is this your ticket? http://open.silverstripe.org/ticket/6007
888: [20:33:00] <UncleCheese> well of course it's your ticket, but do you know anything about it?
889: [20:34:00] <Pyromanik> oh, chrome has issues? who would have thought.
890: [20:34:00] <FrozenFire> Two years ago
891: [20:34:00] <Pyromanik> UncleCheese is just saying that it's still happening
892: [20:34:00] <chillu> UncleCheese: Haven't checked it in two years ;)
893: [20:35:00] * UncleCheese quit (Quit: UncleCheese)
894: [20:35:00] <Pyromanik> Chrome: new IE.
895: [20:35:00] <UncleCheese> it's still happening in SS3.
896: [20:35:00] <UncleCheese> really bad, no?
897: [20:35:00] <FrozenFire> o.O Chrome is pretty good for updates.
898: [20:35:00] <Pyromanik> Chrome is really bad? yes.
899: [20:35:00] <Pyromanik> I guess he doesn't like that reality.
900: [20:35:00] <FrozenFire> And unless you're shit at doing CSS, you shouldn't have many problems.
901: [20:35:00] <Pyromanik> yeah, shouldn't have many != none.
902: [20:36:00] * UncleCheese has joined #silverstripe
903: [20:36:00] <chillu> UncleCheese: I would say "bad", not "really bad". Not having a "link" icon is "really bad", and that's the kind of blocker tickets which are still outstanding for 3.1. We can use some help, as usual :)
904: [20:36:00] <chillu> I would say "bad", not "really bad". Not having a "link" icon is "really bad", and that's the kind of blocker tickets which are still outstanding for 3.1. We can use some help, as usual :)
905: [20:41:00] <UncleCheese> so image resizing has never worked in 3.0?
906: [20:42:00] * ARNHOE quit (Remote host closed the connection)
907: [20:43:00] <FrozenFire> It's worked for me, pretty sure
908: [20:44:00] <FrozenFire> And I'm using Chrome
909: [20:44:00] <FrozenFire> Shows the resize handles
910: [20:44:00] <FrozenFire> Yup. Just tested it
911: [20:45:00] <FrozenFire> Then again, thinking of it, that was 3.1 I was working on
912: [20:45:00] * CodeTrap has joined #silverstripe
913: [20:45:00] <FrozenFire> Version 25.0.1364.160 Ubuntu 12.04 (25.0.1364.160-0ubuntu0.12.04.1)
914: [20:51:00] <travis-ci> [travis-ci] silverstripe/sapphire#1673 (3.1 - 2a73b37 : Ingo Schommer): The build is still failing.
915: [20:51:00] * travis-ci has joined #silverstripe
916: [20:51:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/250834d9d22f...2a73b370d063
917: [20:51:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5605907
918: [20:51:00] * travis-ci has left #silverstripe
919: [20:51:00] * willr has joined #silverstripe
920: [20:54:00] * CHIex has joined #silverstripe
921: [20:54:00] * terryapodaca has joined #silverstripe
922: [20:55:00] <terryapodaca> in 2.4, is there a way to force the default site search to add one more class to "File" and "SiteTree"
923: [20:56:00] <terryapodaca> I know it's dumb to mess with core code
924: [20:57:00] <terryapodaca> but they won't be updating until there's another site redesign and that's a ways off
925: [20:59:00] <simon_w> edit SearchForm
926: [20:59:00] <FrozenFire> http://api.silverstripe.org/2.4/source-class-SearchForm.html#23-28
927: [21:00:00] <FrozenFire> And then maybe replace SearchForm with that
928: [21:00:00] <FrozenFire> Could extend SearchForm, overload the constructor and add additional classes
929: [21:00:00] <simon_w> And that full text decorator
930: [21:00:00] <simon_w> considering all the copy pasta you'll be doing
931: [21:00:00] <simon_w> You also have to do the same to the actual search method, so you may as well just edit it
932: [21:08:00] <terryapodaca> I hate to do it...but oh well....
933: [21:08:00] * simon_w quit (Quit: Leaving)
934: [21:16:00] * CodeTrap quit (Quit: CodeTrap)
935: [21:23:00] <azureKnight> Yo.
936: [21:23:00] * azureKnight has joined #silverstripe
937: [21:24:00] <FrozenFire> Sup, G?
938: [21:26:00] <azureKnight> Just thought I'd swing by and be part of the community, even though I'm not pushing the envelope on my ss sites today.
939: [21:26:00] <azureKnight> Not much, how are you?
940: [21:26:00] * simon_w has joined #silverstripe
941: [21:27:00] <simon_w> That doesn't sound healthy
942: [21:27:00] <FrozenFire> Haha. Doing reasonably well. Was poking at a mission-critical 260,000,000 row table earlier in MySQL. Never before have I felt my heart stop on every return key press.
943: [21:28:00] <FrozenFire> :P
944: [21:28:00] <FrozenFire> Really isn't. I need to set up a slave replication for that database so that I can poke it in peace.
945: [21:28:00] <FrozenFire> :P
946: [21:28:00] <azureKnight> Yikes… Seriously.
947: [21:28:00] <FrozenFire> Not to mention, if I were to botch that table, I'd probably hear about it in the news tomorrow.
948: [21:29:00] <azureKnight> *o*
949: [21:29:00] * jcwacky quit (Quit: jcwacky)
950: [21:29:00] <azureKnight> Careful.
951: [21:29:00] <simon_w> Do it then! You'll be (in)famous!
952: [21:29:00] <azureKnight> LIKE THE VIDEO GAME!
953: [21:32:00] <FrozenFire> Indeed. It's hard not to suffer from "high rise phenomenon" in those situations. :P
954: [21:33:00] <FrozenFire> Like the urge to jump off a bridge
955: [21:33:00] <FrozenFire> I kept picturing myself somehow accidentally typing out "DELETE FROM `table`;" by muscle memory
956: [21:35:00] * nickmolhoek quit (Ping timeout: 245 seconds)
957: [21:36:00] <simon_w> Means you always need a where clause for update/delete
958: [21:36:00] <simon_w> FrozenFire, you should use the safe flag to connect
959: [21:37:00] <FrozenFire> Easy to forget to use it
960: [21:37:00] <FrozenFire> Maybe I'll alias that on that box.
961: [21:37:00] <FrozenFire> Yeah, probably should.
962: [21:38:00] <FrozenFire> Heh. mysql --i-am-a-dummy
963: [21:41:00] <FrozenFire> Biggest trick with that particular database is that it's under heavy load all of the time
964: [21:41:00] * FrozenFire does that
965: [21:42:00] <FrozenFire> Anywho. Enough bragging for me. Off to get work done. :P
966: [21:42:00] <FrozenFire> Well, not necessarily peaked. Just being hit by so many important things, that slow-down is likely to affect the internets. :P
967: [21:45:00] * liam_ has joined #silverstripe
968: [21:45:00] * liam_ is now known as Guest41730
969: [21:46:00] <simon_w> Guest41730, ArrayList and ArrayData?
970: [21:46:00] <Guest41730> how can I create a custom collection of data to be rendered in a template?
971: [21:59:00] <simon_w> LoveDuckie, main install dir
972: [21:59:00] <LoveDuckie> but when installing this, by site root does it mean "mysite" or the main install dir of ss?
973: [21:59:00] <FrozenFire> I'm just installing silverstripe/installer for 3.1-dev
974: [21:59:00] <FrozenFire> And I end up with these other deps
975: [21:59:00] <LoveDuckie> https://github.com/colymba/GridFieldBulkEditingTools
976: [21:59:00] <LoveDuckie> Stupid question
977: [21:59:00] <FrozenFire> Any figuring as to why things like silverstripe-testsession are ending up being installed by composer?
978: [21:59:00] <LoveDuckie> okay, seems odd.
979: [22:00:00] <FrozenFire> Err, all modules
980: [22:00:00] <FrozenFire> All submodules go into the root of the site
981: [22:00:00] <LoveDuckie> but I shall follow
982: [22:00:00] <LoveDuckie> so not cms/ or framework/ ?
983: [22:01:00] <FrozenFire> cms and framework are modules
984: [22:01:00] <FrozenFire> Insofar as the layout of SS goes
985: [22:01:00] <LoveDuckie> Right, I see.
986: [22:01:00] <FrozenFire> Let's say that your site is at /var/www/vhosts/example.com/
987: [22:01:00] <FrozenFire> Everything that is a module goes directly into there
988: [22:01:00] <FrozenFire> E.g. /var/www/vhosts/example.com/framework
989: [22:01:00] * pex__ has joined #silverstripe
990: [22:02:00] <FrozenFire> Your project code is also a module
991: [22:02:00] <FrozenFire> E.g. /var/www/vhosts/example.com/mysite
992: [22:02:00] <pex__> hi, how can i manage data in other db from SS3?
993: [22:03:00] <LoveDuckie> okey dokey, so with that module for example, I would just dump it in a folder called "GridFieldBulkEditingTools" in the root
994: [22:03:00] <FrozenFire> But that latter option is significantly more complicated, and can be destructive.
995: [22:03:00] <FrozenFire> You can either simply create your own PDO/mysqli connection, or you could feasibly define a DataObject with the same fields as in that other database's table.
996: [22:03:00] <LoveDuckie> and it would be good to go?
997: [22:03:00] <LoveDuckie> flush
998: [22:03:00] <FrozenFire> pex__, One of two ways, typically.
999: [22:04:00] <FrozenFire> Otherwise certain paths might break
1000: [22:04:00] <FrozenFire> So you can name it as you please.
1001: [22:04:00] <pex__> thanks frozen
1002: [22:04:00] <FrozenFire> Yeah, the module you're talking about says it doesn't require a specific name
1003: [22:04:00] <Marvanni> silly question, but how do I add some js functionality when clicking on a CMS Tab in SS 3?
1004: [22:04:00] * nickmolhoek has joined #silverstripe
1005: [22:04:00] <LoveDuckie> it just says to place it in the root
1006: [22:04:00] <FrozenFire> Especially for anything involved in the CMS, you have to be very careful about how you name the module.
1007: [22:04:00] * nickmolhoek quit (Remote host closed the connection)
1008: [22:04:00] * nickmolhoek has joined #silverstripe
1009: [22:04:00] <FrozenFire> LoveDuckie, Assuming that the module specifies that as its intended installation directory.
1010: [22:05:00] <LoveDuckie> Awesome, thanks a bunch!
1011: [22:07:00] <Marvanni> nvm
1012: [22:08:00] <Pyromanik> FrozenFire, are you hacking the DoD again?
1013: [22:08:00] <pex__> frozenfire: could you tell me more about how can i create mysqli connection?
1014: [22:08:00] <FrozenFire> pex__, That'd be a question for ##php
1015: [22:08:00] <FrozenFire> But you probably want PDO
1016: [22:09:00] <pex__> oh, that you mean :), I though there is some option in ss
1017: [22:09:00] <FrozenFire> When in doubt, pick PDO
1018: [22:09:00] <Pyromanik> or both?
1019: [22:09:00] <FrozenFire> :P
1020: [22:09:00] <Pyromanik> does SS PDO or MySQLi?
1021: [22:09:00] <simon_w> MySQLi
1022: [22:10:00] <pex__> mysqli
1023: [22:10:00] <FrozenFire> https://github.com/silverstripe/sapphire/blob/3.0/model/MySQLDatabase.php#L57
1024: [22:10:00] * FrozenFire cringes at the lack of prepared statements
1025: [22:11:00] * simon_w cringes at prepared statements
1026: [22:11:00] <simon_w> So friggin slow!
1027: [22:12:00] <FrozenFire> Do you know what else is slow? Loading from backup when a table is dropped by SQL injection
1028: [22:13:00] <simon_w> Do you know what's great fun? Scaremongering
1029: [22:15:00] <catcher> No response in proper channels - anyone here know if a callback is required for a single-user twitter oauth 1.0? Seems like it shouldn't be, but it's all 401s so far.
1030: [22:16:00] <FrozenFire> Once government websites start using it, you can bet there are going to be many people scouring the code for those weaknesses.
1031: [22:16:00] <FrozenFire> SS just isn't a big enough target yet. :P
1032: [22:16:00] <FrozenFire> It's not scaremongering when the problem exists and is fatal to many companies.
1033: [22:17:00] <simon_w> It's scaremongering when you say that lack of prepared statements means it's wide open to SQL injections
1034: [22:17:00] <simon_w> No, but that's the vibe you keep giving off
1035: [22:17:00] <FrozenFire> The problem is that what you may know not to do with the database framework, many people may not.
1036: [22:17:00] <FrozenFire> Modules might introduce those vulnerabilities
1037: [22:17:00] * ccburns has joined #silverstripe
1038: [22:17:00] <FrozenFire> It's not wide open. I never said it was.
1039: [22:18:00] * C10ne has joined #silverstripe
1040: [22:18:00] <C10ne> Hi all :)
1041: [22:18:00] <simon_w> And prepared statements doesn't help that at all
1042: [22:19:00] <FrozenFire> They most certainly do. I'm not talking about end-around idiots that bypass the prepared statements entirely.
1043: [22:19:00] <FrozenFire> I'm talking about content encoding exploits and whatnot.
1044: [22:19:00] <C10ne> yes
1045: [22:19:00] <simon_w> C10ne, haven't seen that before. Are you running in dev mode?
1046: [22:19:00] <C10ne> Anybody having issues in CMS after upgrading to 3.0.5? I keep getting JS error: Uncaught Error: cannot call methods on accordion prior to initialization; attempted to call method 'destroy'
1047: [22:20:00] <simon_w> C10ne, does this happen every time, or just on certain pages? Have you added any collapsed fields?
1048: [22:20:00] <C10ne> Let me just retry something, maybe it was my error (again)
1049: [22:21:00] <C10ne> Happens when I try to enter settings, only when switching pages/menus, never on first load
1050: [22:21:00] * CHIex quit (Ping timeout: 246 seconds)
1051: [22:21:00] <simon_w> *who write
1052: [22:21:00] <simon_w> FrozenFire, so people write raw SQL clauses.
1053: [22:22:00] <travis-ci> [travis-ci] silverstripe/sapphire#1675 (3.1 - 62753d8 : Ingo Schommer): The build is still failing.
1054: [22:22:00] * travis-ci has joined #silverstripe
1055: [22:22:00] <FrozenFire> Do you have something *against* prepared statements?
1056: [22:22:00] * travis-ci has left #silverstripe
1057: [22:22:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5609132
1058: [22:22:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/2a73b370d063...62753d861200
1059: [22:23:00] <FrozenFire> [citation needed]
1060: [22:23:00] <FrozenFire> Other than that they apparently incur some minor performance penalty (maybe)
1061: [22:23:00] <FrozenFire> Maybe if you're developing a high-availability application taking a bajillion requests per second.
1062: [22:23:00] <simon_w> Count the number of trips to the database.
1063: [22:23:00] <simon_w> They are horribly slow
1064: [22:24:00] <FrozenFire> Most people end up with PHP-side prepared statements.
1065: [22:24:00] <FrozenFire> First and foremost, you're assuming that prepared statements ever talk to the database prior to issuance.
1066: [22:24:00] <FrozenFire> Guaranteed that for most people, none of that is going to happen database-side.
1067: [22:24:00] <simon_w> Oh right, because PDO is so much better
1068: [22:24:00] <FrozenFire> I think you overestimate the round-trips to the database.
1069: [22:25:00] <simon_w> Which is basically what SilverStripe has already
1070: [22:25:00] <FrozenFire> It doesn't give a shit about encoding, probably.
1071: [22:25:00] <FrozenFire> It doesn't give a shit about type of the field.
1072: [22:25:00] <FrozenFire> SilverStripe basically blindly hits a few common SQL injection patterns.
1073: [22:25:00] <FrozenFire> Utter BS to even try to say that.
1074: [22:25:00] <simon_w> Yes
1075: [22:25:00] <FrozenFire> Nope.
1076: [22:25:00] <FrozenFire> Which is as fast as *any* other code that's running.
1077: [22:26:00] <FrozenFire> Convert::raw2sql-lol
1078: [22:26:00] <FrozenFire> It doesn't care about context in the query.
1079: [22:26:00] <FrozenFire> ADDSLASHES?
1080: [22:26:00] <FrozenFire> WTF?
1081: [22:26:00] <FrozenFire> Addslashes?
1082: [22:26:00] <FrozenFire> http://api.silverstripe.org/master/source-class-Convert.html#122
1083: [22:27:00] <ccburns> In Model Admin if you save a record can you get the ID back on that initial save. The reason I ask is that when I save the news item I am trying to update a field that includes a NewsLink which needs to include the ID. In this module in SS2.4 I used onBeforeWrite() and updated the field there and it worked now in SS3 that method is no longer getting the ID so don't know how I can access the just saved records ID
1084: [22:27:00] <simon_w> Oh goody, now you're spouting ignorance. This is great.
1085: [22:27:00] <simon_w> ccburns, onAfterWrite()?
1086: [22:28:00] <ccburns> I tried that - didn't work - but I will try it again to make sure that I am not just being stupid
1087: [22:28:00] <FrozenFire> No context. No encoding shits given.
1088: [22:28:00] <FrozenFire> That's still horrendous
1089: [22:28:00] <FrozenFire> http://api.silverstripe.org/master/source-class-MySQLDatabase.html#966
1090: [22:28:00] <FrozenFire> So it's apparently using real_escape_string?
1091: [22:28:00] <FrozenFire> No care for the field type.
1092: [22:29:00] * FrozenFire is surprised that there are still people out there who cling to real_escape_string as a solution
1093: [22:30:00] <FrozenFire> Hrmm, apparently MySQLi::real_escape_string *does* care about the current charset
1094: [22:31:00] <simon_w> No shit. Just like mysql_real_escape_string.
1095: [22:31:00] <ccburns> @simon_w do I just use $this->ID or do I need something else?
1096: [22:32:00] <ccburns> oops simon_w
1097: [22:32:00] <simon_w> ccburns, assuming you're in the actual DataObject, yup
1098: [22:33:00] <ccburns> Yeah in the DO and it's still return 0 for the ID but is picking up another field $this->NewsHeadline … ???? Strange
1099: [22:34:00] <ccburns> http://sspaste.com/paste/show/51479664e692d
1100: [22:38:00] * Pyromanik sees FrozenFire doing research and burning himself. :<
1101: [22:39:00] <FrozenFire> Though that's still entirely attackable if the user does something wrong (entirely possible).
1102: [22:39:00] <Pyromanik> sickburn
1103: [22:39:00] <FrozenFire> Not really.
1104: [22:39:00] <FrozenFire> All I backpedalled on was the charset thing
1105: [22:39:00] <Pyromanik> Prepared statements probably wouldn't be all that bad if the backend persisted
1106: [22:40:00] <Pyromanik> but it doesn't, because generally php doesn't work like that.
1107: [22:40:00] <C10ne> I've found where the errors come from, they are somehow connected to sub-tabs (or how would I call them)
1108: [22:40:00] <FrozenFire> Which real_escape_string doesn't care about
1109: [22:40:00] <FrozenFire> There's still lack of context awareness, for instance using % in LIKE
1110: [22:41:00] <C10ne> And come from LeftAndMain.js and ToggleCompositeField.js, both in framework
1111: [22:42:00] * UncleCheese quit (Quit: UncleCheese)
1112: [22:47:00] <Pyromanik> hmm, never mind
1113: [22:47:00] <Pyromanik> so
1114: [22:51:00] * Guest41730 quit (Quit: Guest41730)
1115: [22:59:00] * pex__ has left #silverstripe
1116: [23:01:00] <SphereSilver> Goodevening :D
1117: [23:01:00] <ccburns> Pyromanik: I don't suppose you can see why this method isn't picking up the ID of the record just entered into the DB - http://sspaste.com/paste/show/51479664e692d
1118: [23:01:00] * SphereSilver has joined #silverstripe
1119: [23:02:00] <SphereSilver> LoveDuckie: If your problem still exists, please let me know with a detailed trace.
1120: [23:03:00] <SphereSilver> Except from the non-existing page, I seem to be unable to reproduce your problem
1121: [23:04:00] * popeshoe has joined #silverstripe
1122: [23:07:00] <SphereSilver> LoveDuckie: Could you, if the problem exists after creating the page, please create a new issue on my issue page?
1123: [23:07:00] <SphereSilver> https://github.com/Firesphere/silverstripe-newsmodule/issues?state=open
1124: [23:08:00] <SphereSilver> It's one of the bugreports, the page should be there first. I should autocreate,but I have afew other prioities atm. My bad
1125: [23:12:00] * travis-ci has joined #silverstripe
1126: [23:12:00] <travis-ci> [travis-ci] chillu/sapphire#80 (pulls/tree-node-limit - dd6f33a : Ingo Schommer): The build is still failing.
1127: [23:12:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/61dc6839dca9...dd6f33ab37de
1128: [23:12:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/5610433
1129: [23:12:00] * travis-ci has left #silverstripe
1130: [23:13:00] * SphereSilver quit (Quit: If it's not broke. It's lacking features.)
1131: [23:17:00] * ccburns has left #silverstripe
1132: [23:18:00] * UncleCheese has joined #silverstripe
1133: [23:20:00] <Pyromanik> guys, how to make gridfield obey default_sort ?
1134: [23:21:00] <Pyromanik> ccbu... urgh
1135: [23:21:00] <Pyromanik> halp
1136: [23:21:00] <Pyromanik> willr!
1137: [23:21:00] <Pyromanik> simon_w?
1138: [23:21:00] * liam__ has joined #silverstripe
1139: [23:23:00] <terryapodaca> simon_w, I think I am very close...but missing something in the select
1140: [23:25:00] <terryapodaca> http://www.sspaste.com/paste/show/5147a269a696c
1141: [23:26:00] * UncleCheese quit (Quit: UncleCheese)
1142: [23:27:00] <terryapodaca> or will I not be able to search my new fields I added to the SuccessStoriesPage?
1143: [23:29:00] <Pyromanik> 3.0.something
1144: [23:29:00] <ss23> :)
1145: [23:29:00] * ss23 looks at Pyromanik
1146: [23:29:00] <Pyromanik> or default_sort in general, seems to be ignored by SS now :(
1147: [23:30:00] * UncleCheese has joined #silverstripe
1148: [23:30:00] <priithansen> two kittys jeey
1149: [23:30:00] <ss23> XD
1150: [23:30:00] <ss23> Sometimes it gets windy and doors slam shut, and I hate to imagine what would happen if my kitty was right there (as in in the door) when it happened...
1151: [23:31:00] <ss23> holy shit, seriously? thats fucking amazing
1152: [23:31:00] <ss23> TVNZ: "There was certainly no intention to cause offence". BUT YOU PLAYED SMACK MY BITCH UP IN A DOMESTIC VIOLENCE STORY!!!! #dumb
1153: [23:37:00] * liam__ quit (Quit: liam__)
1154: [23:40:00] <terryapodaca> actually, where is FROM "SiteTree_Live" WHERE ("SiteTree_Live"."ClassName" IN ('SuccessStoriesPage')) being set? That almost looks hard coded minus the ClassName
1155: [23:45:00] <terryapodaca> Or anyone that knows for that matter

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