#silverstripe IRC Log

IRC log for 19 July 2013

All timestamps are in UTC.

1: [00:00:13] <simon_w> Yeah
2: [00:01:01] <mirrors> should I stop using "new DateField" and start using DateField::create ?
3: [00:01:35] <simon_w> If you want. Personally, I only use ::create() for things where it makes sense to allow them to be overridden
4: [00:02:16] <ss23> I use ::create always, since sometimes I want to be able to ->foo it right away anyway, so it makes it look consistent
5: [00:03:09] <Pyromanik> yuh, I use new most places, unless I'm either writing code for injections or wanting to chain becauseILikeReallyLongLinesOfCode
6: [00:03:48] <simon_w> Oh right, you lot and you PHP 5.3
7: [00:04:46] <Pyromanik> OMG HE FIGURED OUT CLICKING
8: [00:05:34] <ss23> ;_;
9: [00:06:48] * aquaman quit (Ping timeout: 268 seconds)
10: [00:07:44] <mirrors> ok cheers
11: [00:10:43] * aquaman has joined #silverstripe
12: [00:10:47] * SightUnseen has joined #silverstripe
13: [00:12:21] * trent001 has joined #silverstripe
14: [00:15:36] * SightUnseen has left #silverstripe
15: [00:20:05] <Pyromanik> haha
16: [00:20:09] <Pyromanik> I know people in this video.
17: [00:20:27] <Pyromanik> Uncle Cheese and his infamous cheesecutter.
18: [00:20:42] <Pyromanik> and and simon_w even says something
19: [00:21:09] <ss23> lol
20: [00:21:26] <Pyromanik> and some rando harping on about HTMLVarchar
21: [00:21:33] <Pyromanik> gosh
22: [00:21:47] <Pyromanik> YUS, pretty much lunchtime.
23: [00:21:56] <ss23> u pro now, Pyromanik? :D
24: [00:23:40] <Pyromanik> 11:55 < Pyromanik> urgh, that damn fergie song.
25: [00:23:45] <Pyromanik> THIRTY MINUTES
26: [00:23:52] <Pyromanik> ss23: nah.
27: [00:23:55] <Pyromanik> not yet.
28: [00:25:03] <Colin[pi]> I must be getting old because I just don't see the Hunger Games appeal
29: [00:25:28] <Colin[pi]> I saw the first movie and scratched my head for a while after thinking "this is what classes as great entertainment nowadays?"
30: [00:35:53] * trent001 quit (Remote host closed the connection)
31: [00:36:28] * mirrors quit (Quit: Page closed)
32: [00:41:15] * trent001 has joined #silverstripe
33: [00:43:18] * Bollig|DesignCty has joined #silverstripe
34: [00:50:13] * priithansen quit (Quit: priithansen)
35: [00:52:34] * robert_ has joined #silverstripe
36: [00:53:19] <guzzlefry> How would I date_diff two SS_DateTimes?
37: [00:54:08] <Colin[pi]> TimeDiff() ?
38: [00:55:59] <guzzlefry> ah thanks. I keep forgetting to check inherited methods.
39: [00:56:57] <Colin[pi]> also TimeDiffIn()
40: [01:06:44] <ss23> oh simon_w, did youw ant lunch?
41: [01:10:06] * mirrors has joined #silverstripe
42: [01:10:27] <mirrors> hey can anyone direct me to any documentation on create custom reports in SS3
43: [01:10:32] <mirrors> i cannot find anything
44: [01:14:32] * trent001 quit (Remote host closed the connection)
45: [01:15:16] * ss23 climbs on simon_w
46: [01:15:18] <ss23> Did you want lunch?
47: [01:15:31] <ss23> He's been afk for an hour! Not sure if he's afk or what
48: [01:21:55] <Pyromanik> he's been having a Friday treat lunch.
49: [01:23:16] <ss23> :<
50: [01:23:17] <ss23> without me?
51: [01:23:17] <ss23> ;_;
52: [01:23:25] <ss23> Might just hit up burgerfuel alone
53: [01:35:09] <willr> mirrors http://www.balbuss.com/creating-reports-the-basics/
54: [01:36:02] <willr> also mirrors, an example report I used for 3.0 - https://gist.github.com/wilr/5400107
55: [01:37:41] <Pyromanik> thx for sharing willr
56: [01:37:53] <willr> sharing is caring
57: [01:37:57] <ss23> :D
58: [01:37:58] <Pyromanik> <3
59: [01:38:09] <ss23> Speaking of sharing, I wanna get lunhc, but someone messaged me
60: [01:38:13] * ss23 feels his stomach grumble
61: [01:38:18] <willr> I haven't bothered documenting reports as the API is SHIT
62: [01:38:23] <Pyromanik> unmessage yourself them
63: [01:38:33] <Pyromanik> willr: yeh, I've seen.
64: [01:38:43] <Pyromanik> I was confused, so is nice to have an example.
65: [01:38:58] <Pyromanik> what was that 2.4 field?
66: [01:38:59] * guzzlefry quit (Read error: Connection reset by peer)
67: [01:39:02] <Pyromanik> ImageIFrameField?
68: [01:39:06] <Pyromanik> or was it just ImageField?
69: [01:39:13] <willr> When I get up enough anger to rewrite the API I'll document it
70: [01:39:27] <Pyromanik> willr: you should make a ... google uml doc for it
71: [01:39:28] <Pyromanik> or soemthing
72: [01:39:29] * guzzlefry_dev has joined #silverstripe
73: [01:39:40] <Pyromanik> and then it could be a communal API design
74: [01:40:06] <willr> google uml?
75: [01:40:43] <Pyromanik> well, google doc but draw uml in it (so I don't mean word processor type google doc... or spreadsheet which I've had the misfortune of trying to decipher as an api specification once before :<)
76: [01:40:55] <Pyromanik> so presentation or something I guess.
77: [01:41:16] <Pyromanik> draw boxes, add text, identify what a report needs, what's missing from the api, how it woudl be better arranged, etc.
78: [01:41:17] <willr> Oh I thought it had a specialized tool for it. We used Gliffy in the past to do UML online
79: [01:41:26] <Pyromanik> oh, have not heard of
80: [01:41:37] <Pyromanik> have seen... umm... sec..
81: [01:41:44] <Pyromanik> *googles email*
82: [01:41:46] <Pyromanik> lucidchart
83: [01:41:51] <Pyromanik> used before
84: [01:43:13] * mobiusnz has joined #silverstripe
85: [01:43:31] * aquaman has left #silverstripe
86: [01:46:14] <simon_w> ss23, planning happens away from computer :p
87: [01:46:24] <ss23> simon_w: Had lunch, I presume?
88: [01:46:33] <simon_w> Nope
89: [01:46:35] <ss23> :O
90: [01:46:37] <ss23> want lunch? :d
91: [01:48:25] <simon_w> Yeah
92: [01:48:56] <ss23> mmk
93: [01:48:57] <ss23> simon_w: Now?
94: [01:49:50] <Pyromanik> lemme guess, 3 mins?
95: [01:51:09] <ss23> lol
96: [01:51:18] <simon_w> Hmm, probably should
97: [01:51:23] <simon_w> But email...
98: [01:52:22] <Pyromanik> BUT EMAIL
99: [01:53:04] <guzzlefry_dev> :(
100: [01:53:46] <ss23> simon_w: I'm busy for another 5 mins
101: [01:53:49] <ss23> simon_w: after that I get lunch anyway
102: [01:57:44] <ss23> simon_w: mmk, going down now, you coming? :D
103: [01:58:26] <simon_w> yeah
104: [01:58:50] <ss23> sweeeeeet, see you in like 3 mins or so
105: [01:59:33] * maknz quit (Ping timeout: 248 seconds)
106: [02:07:17] <Colin[pi]> how awesome is this? (check out the video) http://colarapp.com/
107: [02:10:36] * trent001 has joined #silverstripe
108: [02:13:42] <guzzlefry_dev> Does anyone here use PHPStorm for SilverStripe dev?
109: [02:14:14] <Pyromanik> umm
110: [02:14:16] <Pyromanik> maybe
111: [02:14:28] <Pyromanik> I think some of the German/Austrian folks do
112: [02:15:01] * trent001 quit (Ping timeout: 248 seconds)
113: [02:15:09] <Pyromanik> Colin[pi]: the app or the fact that there's a Pukeko on the front page?
114: [02:15:19] <Jayden90> Colin[pi]: pretty cool. How I imaged 2013 as a kid.
115: [02:15:31] <Pyromanik> which is odd, because some twat has spelt it "Color"
116: [02:15:50] <Pyromanik> puteko?
117: [02:16:09] <Pyromanik> Is that what they call it in Hawai'i I wonder?
118: [02:17:03] <Pyromanik> no
119: [02:17:04] <Pyromanik> no
120: [02:17:07] <Pyromanik> it's from Christchurch
121: [02:17:08] <Pyromanik> FULL MAD
122: [02:17:13] <Pyromanik> WHY WOULD YOU SPELL IT COLOR
123: [02:17:17] <Pyromanik> FFFFFFFFFFFFFUUUUUUUUUUUUUUUUUUUUUUUUU
124: [02:17:30] * trent001 has joined #silverstripe
125: [02:18:05] <ajmitch> Pyromanik: can't trust anything from there
126: [02:18:14] <Pyromanik> ajmitch: IKR
127: [02:18:31] <Pyromanik> first they spell Pukeko wrong
128: [02:18:34] <Pyromanik> then they can't spell Colour
129: [02:19:58] <Pyromanik> It's probably supposed to be a pun on TECH
130: [02:20:22] <ajmitch> sometimes puns just don't work. this is a great example
131: [02:20:22] <Pyromanik> and you can't make fun of americanese with colAR if you have a U
132: [02:20:34] <Pyromanik> yes indeed.
133: [02:20:34] <mirrors> when this array parameter is defined like this 'formatting' => '<a href=\"' . $linkBase . '$ID\" title=\"%s\">$value</a>' how does $value come from
134: [02:21:24] * trent001_ has joined #silverstripe
135: [02:21:26] <mirrors> i see this everywhere...where formatting is passed in and $value appears
136: [02:21:34] <Pyromanik> mirrors: it doesn't
137: [02:21:47] <Pyromanik> it's a single quote string, it won't parse backslashes or variables
138: [02:22:11] <Pyromanik> or %s, unless it's part of a printf
139: [02:22:13] <Jayden90> Colin[pi]: Our lead desiger just went nuts and has already printed the coloring in pages
140: [02:23:11] <mirrors> Pyromanik: it does..if you look at line 86 of BrokenLinksReport.php for example
141: [02:23:20] <Colin[pi]> hahaha
142: [02:23:30] <Pyromanik> mirrors: it can't.
143: [02:24:56] <mirrors> Pyromanik: e.g. http://pastebin.com/E8C4Ga1f
144: [02:25:21] <mirrors> in that pastie on line 13
145: [02:25:21] * trent001 quit (Ping timeout: 264 seconds)
146: [02:25:33] <Pyromanik> mirrors: it'll be a value passed into a function that printf formats it, then passes it through some kind of variable substitution.
147: [02:26:01] <Pyromanik> must be.
148: [02:26:24] * Peavers quit (Ping timeout: 252 seconds)
149: [02:26:31] <Pyromanik> http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.single
150: [02:27:04] <mirrors> oh i understand there is a str replace going on
151: [02:27:13] <Pyromanik> ah
152: [02:27:18] * travis-ci has joined #silverstripe
153: [02:27:18] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#631 (3.1 - d38bd7d : Hamish Friedlander): The build passed.
154: [02:27:18] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/b915c2364c58...d38bd7d5cb75
155: [02:27:18] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/9251804
156: [02:27:18] * travis-ci has left #silverstripe
157: [02:27:20] <Pyromanik> so that's where $value will be coming from.
158: [02:27:28] <mirrors> happens in GridFieldDataColumns
159: [02:27:38] <mirrors> around line 250
160: [02:27:38] * Peavers has joined #silverstripe
161: [02:27:53] <mirrors> but i still dont know what $value is
162: [02:29:35] <Pyromanik> https://github.com/silverstripe/silverstripe-framework/blob/3.1/forms/gridfield/GridFieldDataColumns.php#L125
163: [02:30:17] <Pyromanik> mirrors: ^ that I'd say.
164: [02:31:28] <guzzlefry_dev> ooh, PHPStorm has a plugin for SS templates. :)
165: [02:31:35] <Pyromanik> hmm
166: [02:31:47] <Pyromanik> was the author Zauberfisch?
167: [02:32:31] <mobiusnz> how do I sort on multiple terms in SS3?
168: [02:32:35] <Pyromanik> or lx-berlin
169: [02:32:41] <Pyromanik> mobiusnz: pass an array
170: [02:32:49] <Pyromanik> ->sort(array()?)
171: [02:34:14] <mobiusnz> Pyromanik: that gives me an SQL error
172: [02:35:16] <Pyromanik> hmm
173: [02:35:19] <Pyromanik> look at docs :<
174: [02:35:23] <Pyromanik> (api docs)
175: [02:41:37] * trent001_ quit (Read error: Connection timed out)
176: [02:42:22] <ss23> Back!
177: [02:42:25] * ss23 eats Pyromanik
178: [02:42:46] * trent001 has joined #silverstripe
179: [02:42:49] * Jayden90 quit (Quit: Jayden90)
180: [02:48:21] <Pyromanik> D:
181: [02:48:33] <Pyromanik> But I don't like being chewed...
182: [02:48:34] <ss23> :D
183: [02:48:40] <ss23> What if you taste good!
184: [02:48:43] <ss23> It would be a waste
185: [02:48:51] <Pyromanik> taste has nothing to do with chewing
186: [02:49:00] <ss23> Pyromanik: https://www.youtube.com/watch?v=H7wYECUvLE0
187: [02:49:04] <ss23> I'LL HAVE THE Pyromanik BURGER
188: [02:49:20] <Pyromanik> NOPE.
189: [02:49:46] * Pyromanik spies an opening for a salad tossing joke, but decides to forgo it.
190: [02:49:52] <ss23> XD
191: [02:50:20] * trent001_ has joined #silverstripe
192: [02:51:00] * DigNZ quit (Quit: DigNZ)
193: [02:53:51] * trent001 quit (Ping timeout: 246 seconds)
194: [02:55:53] * IMacSS has joined #silverstripe
195: [02:57:05] <IMacSS> Hello everyone. Anyone have an idea if there is a stable working build of the blog module that will work with SS 3.1.0-beta2?
196: [02:57:43] * Jayden90 has joined #silverstripe
197: [02:57:48] <simon_w> Beta 2? Doubt it. SS3.1 support's based on the current head
198: [02:58:01] <ss23> IMacSS: I doubt there would be a stable *Release* for an unstable branch of Silverstripe
199: [02:58:24] <IMacSS> Yeah, I was afraid of that. Thanks anyways.
200: [02:59:51] <ss23> tfw site is in dev mode, but sitll won't give you errors
201: [02:59:52] * ss23 rawrs
202: [03:02:04] * DigNZ has joined #silverstripe
203: [03:02:05] * DigNZ quit (Remote host closed the connection)
204: [03:02:19] * DigNZ has joined #silverstripe
205: [03:04:28] <irogue> http://www.thecivilian.co.nz/christchurch-warns-wellington-to-stop-stealing-sympathy-after-unauthorised-use-of-earthquakes/
206: [03:06:18] <ss23> haha
207: [03:07:13] <ss23> The shaking caused one barista’s dreadlocks to unravel, and a tsunami warning was issued for the bucket fountain.
208: [03:07:19] <ss23> THEY HAVE NO IDEA HOW TRAUMATIC IT WAS
209: [03:07:30] <ss23> Te Papa’s earthquake simulator was shut down for a short period in deference to the city’s victims, but has since reopened and is reported to be as underwhelming as ever.
210: [03:07:34] <ss23> I <3 civilian
211: [03:09:04] * cloph_away has joined #silverstripe
212: [03:09:26] * cloph quit (Ping timeout: 240 seconds)
213: [03:09:39] * DigNZ quit (Quit: DigNZ)
214: [03:11:16] * DigNZ has joined #silverstripe
215: [03:17:21] <Bollig|DesignCty> lol @ss23
216: [03:22:15] <ss23> dammit simon_w did you fart again
217: [03:22:19] <Colin[pi]> LOL
218: [03:22:33] <simon_w> You know it
219: [03:22:51] <willr> On the plus, an earthquake would give me a reason to go home early
220: [03:23:07] <ss23> lol
221: [03:23:16] <Colin[pi]> simon_w just made one
222: [03:23:22] * trent001_ quit (Read error: Connection reset by peer)
223: [03:23:33] * trent001 has joined #silverstripe
224: [03:23:40] <willr> sitting in the sun on a friday hasn't resulted in the highest productivity of my life.
225: [03:24:23] <irogue> http://www.thecivilian.co.nz/kate-middleton-not-pregnant-just-really-fat/
226: [03:24:31] <Colin[pi]> it hasn't stopped raining here for one week :C
227: [03:24:38] <ss23> Where are you, Colin[pi]?
228: [03:24:40] <ss23> chch, right?
229: [03:24:43] <Colin[pi]> Canberra, AU
230: [03:24:46] <simon_w> Colin[pi], you've got a meet up!
231: [03:24:52] <Colin[pi]> oh snap, when?
232: [03:25:06] <simon_w> http://www.meetup.com/silverstripe-australia/
233: [03:25:20] <Colin[pi]> oh cool!
234: [03:25:29] * mirrors quit (Quit: Page closed)
235: [03:26:24] <Colin[pi]> awesome I'll go along to that, thanks simon_w
236: [03:29:51] <ss23> I kind of want a big quake
237: [03:29:53] <ss23> not like deathly big
238: [03:29:58] <ss23> okay kind of deathly big but I'm okay
239: [03:29:59] <ss23> :D
240: [03:30:08] <ss23> oh and the poewr and water have to stay on
241: [03:30:14] <ss23> cause there be no way I'm going without showers
242: [03:30:41] <simon_w> So, a moderate sized, no one gets hurt, sort of thing
243: [03:30:45] <simon_w> like this morning's
244: [03:30:50] <ss23> that was too small
245: [03:30:52] <ss23> wasn't fun enough
246: [03:30:52] <ss23> maybe
247: [03:30:56] <ss23> Maybe it has to be while I'm walking home
248: [03:30:56] <ss23> :D
249: [03:31:16] <Colin[pi]> so boring here, no earthquakes or death and destruction :(
250: [03:31:36] <ss23> XD
251: [03:31:42] <simon_w> Build HipHop on Mavericks without brew! :p
252: [03:31:42] <ss23> No fires and floods during winter/ :P
253: [03:32:24] <spronk> lol
254: [03:32:53] <simon_w> Yeah, it was recommended I just VM it instead
255: [03:33:47] <ss23> wtb solr pro
256: [03:36:45] <simon_w> Hmm, maybe I should give VirtualBox another core. This build is slow
257: [03:37:05] * swordsmanz quit (Ping timeout: 268 seconds)
258: [03:44:47] <Colin[pi]> I just got asked to quote on doing a new site using 'silverlight' as the CMS... sigh
259: [03:44:56] <Colin[pi]> I suppose they do sound similar
260: [03:48:13] * travis-ci has joined #silverstripe
261: [03:48:13] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#636 (2.4 - 7fe183a : Sam Minnée): The build is still failing.
262: [03:48:13] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/b774db43fb4e...7fe183ab20bb
263: [03:48:13] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/9253539
264: [03:48:13] * travis-ci has left #silverstripe
265: [03:48:46] <ss23> lol Colin[pi]
266: [03:49:02] <ss23> Can smoeone help me use Java on my website for rollovers!
267: [03:49:07] <ss23> It's worse when you realise they actually *do* mean Java.
268: [03:49:32] <Colin[pi]> I had a guy once I worked with call the buttons on the taskbar "virtual machines"
269: [03:49:36] <Colin[pi]> in all seriousness
270: [03:51:25] * IMacSS quit (Quit: Page closed)
271: [03:54:26] * travis-ci has joined #silverstripe
272: [03:54:26] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#637 (3.0 - 7bfc872 : Sam Minnée): The build passed.
273: [03:54:26] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/7656a22329be...7bfc872a8e7a
274: [03:54:26] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/9253546
275: [03:54:26] * travis-ci has left #silverstripe
276: [03:56:43] <ss23> Colin[pi]: Well, you can model every programs a state machine, right? And it's not a dedicated machien built in hardware, it's a software implmentation, so you could call it virtual
277: [03:56:48] <ss23> Right? :D
278: [03:57:31] * travis-ci has joined #silverstripe
279: [03:57:31] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#638 (2.4 - e782648 : Sam Minnee): The build was fixed.
280: [03:57:31] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/7fe183ab20bb...e782648b3a7a
281: [03:57:31] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/9253609
282: [03:57:31] * travis-ci has left #silverstripe
283: [04:02:09] * metanat has joined #silverstripe
284: [04:02:10] * travis-ci has joined #silverstripe
285: [04:02:10] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#639 (3.1 - bed25a7 : Hamish Friedlander): The build passed.
286: [04:02:10] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/d38bd7d5cb75...bed25a7a79b9
287: [04:02:10] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/9253626
288: [04:02:10] * travis-ci has left #silverstripe
289: [04:03:11] * Peavers quit (Ping timeout: 264 seconds)
290: [04:03:47] * Peavers has joined #silverstripe
291: [04:08:15] * DigNZ quit (Quit: DigNZ)
292: [04:09:21] <Pyromanik> dat fergie song again
293: [04:09:33] * DigNZ has joined #silverstripe
294: [04:09:34] * DigNZ quit (Remote host closed the connection)
295: [04:09:48] * DigNZ has joined #silverstripe
296: [04:16:31] <Pyromanik> good golly miss molly, it's 13.5 mins to beer
297: [04:19:15] <irogue> Pyromanik: needs more cider
298: [04:20:08] * simon_w is still waiting for hiphop
299: [04:25:35] * Pyromanik feels like he should play cider time again
300: [04:25:49] <Pyromanik> except he's about to drink Asahi in 2.5 mins
301: [04:27:12] <Pyromanik> simon_w: can I mysql -u blah -p dbname < mysqldump -h server -u blah -p dbname ?
302: [04:27:26] <Pyromanik> or should I do it the other way around with a |
303: [04:27:33] <Pyromanik> or should I just write to a file like a normal guy
304: [04:27:52] <Pyromanik> ss23: TIPZ PLZ
305: [04:28:14] <willr> Mmm litre Asahi jug might be tonight.
306: [04:29:00] <simon_w> Pyromanik, has to be the other way around with a |
307: [04:30:27] <Pyromanik> hmm, nah doesn't work.
308: [04:30:41] <Pyromanik> 2x password questions does not operate nice I guess
309: [04:31:40] <ss23> um um um
310: [04:31:48] <ss23> wha tare you trying to do, Pyromanik?
311: [04:31:49] <ss23> yes
312: [04:31:52] <ss23> you can't do two -p's
313: [04:31:58] <ss23> you can either do it in two steps, or add a ~/my.cnf
314: [04:32:42] <ss23> willr: idk, me and flatmate finished off a 1l of asahi (thikn it was 1l) and it didn't do much
315: [04:32:52] <ss23> And I drink once every ~4 months, so it's not like I'm a heavyweight
316: [04:33:23] <willr> yeah the 1L is like $10 at new world. And you get an awesome vessel.
317: [04:34:11] <Pyromanik> ss23: i ninja'd a DB from one server to another and switched the site's config file to the new host in a matter of a second or two. NINJA
318: [04:34:12] <irogue> the 500ml speights cider for ~$4 is awesome
319: [04:34:24] <Pyromanik> now I'm free to transfer the site without having to worry about db sync issues
320: [04:34:48] <Pyromanik> just rsync the assets folder when site crosses over officially
321: [04:35:12] <ss23> lol
322: [04:35:24] <ss23> irogue: I really don't like speights cider
323: [04:35:38] <ss23> There was sa brand I really liked in AU, but I haven't seen it here (and I've forgotten the name :<)
324: [04:36:01] <Pyromanik> http://en.wikipedia.org/wiki/Beer_in_South_Africa]
325: [04:36:04] <Pyromanik> http://en.wikipedia.org/wiki/Beer_in_South_Africa
326: [04:36:19] <Pyromanik> saggy stone
327: [04:36:20] <Pyromanik> ?
328: [04:36:27] <Pyromanik> xD
329: [04:36:47] <Pyromanik> so anyway, time to drink the beers
330: [04:36:48] * Pyromanik quit (Quit: leaving)
331: [04:37:03] * DigNZ quit (Quit: DigNZ)
332: [04:39:39] <irogue> ss23: just rekorderlig it
333: [04:40:37] <ss23> I've not actually tried it!
334: [04:40:38] <ss23> :O
335: [04:40:43] <spronk> ClassName:not filters
336: [04:40:44] <ss23> But going to bar tonight for work party
337: [04:40:46] <spronk> if you have more than 1
338: [04:40:47] <spronk> it breaks.
339: [04:40:48] <spronk> why?
340: [04:41:08] <ss23> spronk: Presumably, it can only have one and that's just the way it is?
341: [04:41:38] <spronk> grrrrrrrrrrrrrrr
342: [04:42:19] <spronk> ah
343: [04:42:23] <spronk> ClassName:not => array()
344: [04:42:23] <spronk> sigh
345: [04:42:27] <spronk> doesn't do that shit by itself
346: [04:42:50] <ss23> lol
347: [04:42:52] <ss23> Relax, spronk
348: [04:43:44] <spronk> ITS FRIDAY AND I WANT TO STOP WORKING
349: [04:43:48] <ss23> lol
350: [04:43:55] <ss23> I'm just doing some releases
351: [04:45:37] * travis-ci has joined #silverstripe
352: [04:45:37] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#641 (master - 0a79ac3 : Hamish Friedlander): The build passed.
353: [04:45:37] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/cc33427218b6...0a79ac3592eb
354: [04:45:37] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/9254334
355: [04:45:37] * travis-ci has left #silverstripe
356: [04:45:53] <unsignedint> spronk: do it, I have. crack open a beer. if anyone asks, say that I said it was ok
357: [04:46:27] <spronk> lol
358: [04:47:00] <unsignedint> if you were in Napier I would buy you a beer too
359: [04:48:48] <spronk> :P
360: [05:01:44] <simon_w> ss23, today's burger fuel voucher also got me $40 off https://www.sony.co.nz/product/mdr-xb200/sku/mdr-xb200_vqe :p
361: [05:02:45] * mobiusnz quit (Quit: Leaving.)
362: [05:03:28] * UncleCheese has joined #silverstripe
363: [05:05:14] * UncleCheese quit (Client Quit)
364: [05:06:05] * trent001 quit (Remote host closed the connection)
365: [05:06:12] <ss23> :O
366: [05:06:14] <ss23> how did you get both?!
367: [05:06:19] <ss23> Also, rofl, I'm not sure they would be that good
368: [05:06:20] <ss23> idk
369: [05:06:42] <willr> simon_w you have to get it in the purple.
370: [05:06:51] <willr> pimping
371: [05:06:53] <ss23> lol
372: [05:06:55] <simon_w> willr, doh
373: [05:07:00] <ss23> I have purple headphones too
374: [05:07:00] <ss23> :D
375: [05:07:17] * Peavers quit (Ping timeout: 248 seconds)
376: [05:07:57] <simon_w> With any luck, they'll be as good as my HD 201s
377: [05:09:28] <simon_w> Same price point at least, so it's possible
378: [05:13:10] * Sam_ has joined #silverstripe
379: [05:14:14] <Sam_> Hi all
380: [05:17:26] * coldblooded01 quit (Quit: coldblooded01)
381: [05:24:28] * willr quit (Quit: willr)
382: [05:38:22] * BPower has joined #silverstripe
383: [05:39:06] <BPower> Hey everyone - How do I enable "list view" in /admin/pages ? I don't automatically have a button/tab for it.
384: [05:40:01] * metanat quit (Quit: Leaving.)
385: [05:42:04] <simon_w> BPower, you don't. Top right corner, click the little icon
386: [05:44:41] <BPower> simon_w: There's only one icon. Not two. (And clicking it doesn't do anything.) See: http://quick-markup.com/p/51e8d28d49cfc
387: [05:48:40] <BPower> We're running 3.0.3.
388: [05:49:14] <simon_w> Have you tried upgrading to 3.0.5?
389: [05:52:45] * simon_w quit (Quit: This computer has gone to sleep)
390: [06:08:22] * willr has joined #silverstripe
391: [06:10:32] <BPower> willr: Do you know how to enable "list view" in /admin/pages? I don't have the button and I'm running 3.0.3 (which, according to the change logs should have it). See: http://quick-markup.com/p/51e8d28d49cfc
392: [06:12:47] <willr> BPower, odd, I see the list icon
393: [06:13:03] <BPower> Isn't that the tree icon?
394: [06:13:50] <willr> Should be next to the tree icon. I mean, I see the list icon in my version of 3.0.x-dev
395: [06:14:00] <willr> try upgrading to 3.0.x-dev
396: [06:15:48] <BPower> willr: I think I just found the issue.... one sec while I verify
397: [06:24:50] * Error404NotFound has joined #silverstripe
398: [06:26:59] * travis-ci has joined #silverstripe
399: [06:26:59] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#642 (3.1 - 58a2eb0 : Will Rossiter): The build passed.
400: [06:26:59] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/bed25a7a79b9...58a2eb01555a
401: [06:26:59] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/9256071
402: [06:26:59] * travis-ci has left #silverstripe
403: [06:42:41] * openbees has joined #silverstripe
404: [06:44:23] <Colin[pi]> BPower will surely deliver, let's just wait
405: [06:44:40] <Colin[pi]> ;)
406: [06:45:15] <BPower> Colin[pi]: sorry!! I got so excited that I figured it out I started diving into why i needed it in the first place and totally forgot to report back!
407: [06:46:37] <BPower> Colin[pi]: willr: It ended up another developer (an agency we hired previously) had purposefully disabled it (copied the .ss file into our template dir and commented out the code for it). I have no idea why he did it.... I emailed him but it's past midnight his time.
408: [06:47:03] <BPower> If it happens to be bug-related, I'll send over the bug to the team.
409: [06:47:14] <BPower> err. file/log the bug
410: [06:47:19] <openbees> Is it not possible to get $this->ID in onBeforeDelete() function ?
411: [06:47:26] <willr> I remember that it was kinda buggy in 3.0.0 but all grid field interfaces were super buggy early on
412: [06:49:03] <BPower> willr: do we have an anticipated release date for 3.1.0? We're waiting for that because it has vital code changes that we rely on (that's not included in 3.0.5).
413: [06:49:30] <willr> Really really soon
414: [06:49:41] <willr> though we're running 3.1 for all our 3.* sites now
415: [06:52:30] <simon_w|air> openbees, depends if you're in a DataExtension or not
416: [06:53:14] <openbees> Thanks simon_w|air .. but it was some error in my code :|
417: [06:54:28] <openbees> <simon_w|air : just out of curiosity .. even in DataExtension we can get Id with $this->owner->ID .. right ?
418: [06:55:43] <simon_w|air> Yes
419: [06:56:16] <openbees> thansk
420: [06:58:04] <BPower> willr: as in, days? weeks? months? :)
421: [06:58:11] * Jayden90 quit (Quit: Jayden90)
422: [06:58:13] <BPower> willr: minutes? ;)
423: [07:00:29] <guzzlefry_dev> It's a surprise.
424: [07:02:07] * violetina has joined #silverstripe
425: [07:04:36] * zfmf1 has joined #silverstripe
426: [07:05:46] <guzzlefry_dev> What's the difference between flush=1 and flush=all?
427: [07:05:57] * zfmf1 quit (Read error: Connection reset by peer)
428: [07:06:33] * howardgr_ quit (Remote host closed the connection)
429: [07:06:45] <simon_w|air> When on a page that uses templates, ?flush=all deletes all cached templates
430: [07:06:52] * zfmf1 has joined #silverstripe
431: [07:07:33] <guzzlefry_dev> ah
432: [07:12:28] <guzzlefry_dev> <a class="prevLink navLink" href="$PrevLink">&larr;</a> <a class="nextLink navLink" href="$NextLink">&rarr;</a> Is there anything wrong with this?
433: [07:13:00] <guzzlefry_dev> Checked the variable in the controller and it seems fine, but I'm getting blank href attributes.
434: [07:15:05] <simon_w|air> Wrong scope?
435: [07:18:37] <guzzlefry_dev> Shouldn't be.
436: [07:19:34] <guzzlefry_dev> "PrevLink" => $prevLink, <-- that's in the Customise() array, along with another variable I can access. Is there some special casting that I'm not doing?
437: [07:25:03] <guzzlefry_dev> nevermind, ID-10T error. :P I was looking at the wrong layout template.
438: [07:30:11] <BPower> ooo I like ID-10T. I usually use PEBKAC
439: [07:30:44] * maknz has joined #silverstripe
440: [07:30:44] * maknz quit (Changing host)
441: [07:30:44] * maknz has joined #silverstripe
442: [07:33:25] <guzzlefry_dev> BPower: I don't get it.
443: [07:40:12] <Colin[pi]> Problem Exists Between Keyboard and Chair
444: [07:40:22] <simon_w|air> Problem Exists Between Keyboard And Chair
445: [07:40:34] <guzzlefry_dev> ha
446: [07:40:50] <BPower> Thanks Colin[pi], simon_w|air
447: [07:57:50] * kinglozzer has joined #silverstripe
448: [08:00:38] * BPower quit (Remote host closed the connection)
449: [08:07:45] * ocm has joined #silverstripe
450: [08:07:47] <ocm> howdy!
451: [08:11:21] <Colin[pi]> hey ocm
452: [08:12:14] * osterlaus has joined #silverstripe
453: [08:13:10] * osterlaus has left #silverstripe
454: [08:14:44] <ocm> Hi Colin[pi]\
455: [08:14:59] <ocm> is it just here or is it hot and sunny everywhere in the outsides?
456: [08:15:03] * ivoba has joined #silverstripe
457: [08:16:00] <simon_w|air> It's cool and dark in the outsides
458: [08:16:54] * r3v3rb has joined #silverstripe
459: [08:17:06] <r3v3rb> morning all
460: [08:17:53] <r3v3rb> has anyone implemented messagequeues into an email solution outside of the newsletter module?
461: [08:18:39] <ocm> r3v3rb never did either of them
462: [08:18:45] <r3v3rb> I have a page that needs to send out emails to a list of recipients on its 'first' save but I don't want to flood the server with 1000's of mails at once
463: [08:19:15] <guzzlefry_dev> meh, cronjob?
464: [08:19:51] <r3v3rb> guzzlefry_dev: meh, possibly but how would I split the messages in to batches?
465: [08:19:59] <guzzlefry_dev> hm
466: [08:20:12] <guzzlefry_dev> Is the message body the same for all recipients?
467: [08:20:18] <r3v3rb> yes
468: [08:20:29] <guzzlefry_dev> PHPMailer *might* help.
469: [08:20:35] <r3v3rb> really?!?
470: [08:20:42] <r3v3rb> it has a queue system now?
471: [08:21:24] <guzzlefry_dev> no, but "Send emails with multiple TOs, CCs, BCCs and REPLY-TOs"
472: [08:21:56] <r3v3rb> hmm, so I could in theory just BCC everyone on the list
473: [08:23:08] <guzzlefry_dev> Had to look up what BCC was. :P
474: [08:23:11] <guzzlefry_dev> "Bcc: Blind carbon copy to tertiary recipients who receive the message. The primary and secondary recipients cannot see the tertiary recipients. Depending on email software, the tertiary recipients may only see their own email address in Bcc, or they may see the email addresses of all recipients."
475: [08:23:31] <r3v3rb> but the prob with BCC is that it will hold and resend the message if only one fails - ugh
476: [08:23:34] <r3v3rb> not good
477: [08:23:39] <guzzlefry_dev> ah
478: [08:23:57] <r3v3rb> so back to creating a nice queue of messages somehow
479: [08:24:26] <guzzlefry_dev> I did this in some project a while ago iirc.
480: [08:24:53] * lobarvaz has joined #silverstripe
481: [08:25:53] <guzzlefry_dev> okay yeah, it was for a mailing list, using mail() >_>
482: [08:26:15] <simon_w|air> You act like that's a bad thing :p
483: [08:26:49] <guzzlefry_dev> r3v3rb: Just implement a queue in database.
484: [08:26:52] <r3v3rb> not bad, just need a way to stop the client from destroying the mail server by uploading a csv with possible 12000 addresses :D
485: [08:27:36] <guzzlefry_dev> ah okay, destroying the database server with my suggestion. :P
486: [08:27:45] <r3v3rb> guzzlefry_dev: simon_w|air no of any good examples/tutorials for ss that do this black magic?
487: [08:27:58] <simon_w|air> 12,000 is barely destroying a db server :p
488: [08:28:00] <r3v3rb> know*
489: [08:28:22] <guzzlefry_dev> I used pure PHP code for the project. :/
490: [08:28:32] <r3v3rb> 12,000 db i dont think is the issue - but the mail queue on a different server might see these as spammy
491: [08:28:38] <r3v3rb> no?
492: [08:28:50] <guzzlefry_dev> probably. :P
493: [08:29:11] <guzzlefry_dev> There are some laws, at least in the U.S., regarding email mailing lists.
494: [08:29:57] <guzzlefry_dev> Might want to look those up as well if they apply to you.
495: [08:30:05] <simon_w|air> r3v3rb, while(($list = EmailObject::get()->limit(100)) && $list->Count()) { foreach($list as $blah) { // process $blah; $blah->delete(); } sleep(300); }
496: [08:30:34] <simon_w|air> Will send 100, wait 5 minutes, send another 100, etc
497: [08:30:45] <guzzlefry_dev> Wouldn't the script timeout?
498: [08:30:51] <r3v3rb> so that would need to go in a cron task
499: [08:30:57] <guzzlefry_dev> oh yeah. :/
500: [08:31:06] <simon_w|air> Why are you running something like this from a web interface?
501: [08:31:20] <simon_w|air> Well, it'll just need to be a task that you can kick off
502: [08:31:33] <r3v3rb> simon_w|air: I'm not, I just want the client to hit save then the task/queue take over
503: [08:32:22] <r3v3rb> but I have not done alot with jobs outside the scope of a running script on a web interface before
504: [08:32:56] <simon_w|air> Easiest option: use something like Mailchimp
505: [08:33:37] <r3v3rb> is there a transport for content from a page in SS to mailchimp? I didn't see anything
506: [08:35:01] <simon_w|air> Well, it'll be a lot easier if you just build the email directly inside their system
507: [08:35:08] <r3v3rb> the process I am building is my client creates a page and puts in their content, when they hit save page, the site creates a 'overview' email using the first XX paragraphs of content from the page and sends to their list with links back to the page etc
508: [08:35:15] <guzzlefry_dev> Does <% include %> look for templates in a certain spot?
509: [08:35:39] <simon_w|air> guzzlefry_dev, Includes/
510: [08:36:01] <guzzlefry_dev> ThemeDir/Includes/ I'm guessing?
511: [08:36:13] <simon_w|air> well, templates/Includes
512: [08:36:18] <simon_w|air> every templates/
513: [08:37:43] <r3v3rb> simon_w|air: this looks promising for me ;) http://deadlytechnology.com/silverstripe/scheduled-tasks/
514: [08:38:42] * DesignerX has joined #silverstripe
515: [08:38:45] <DesignerX> join #c++
516: [08:39:24] <r3v3rb> DesignerX: no
517: [08:39:26] <r3v3rb> :P
518: [08:39:42] <DesignerX> lolz.. hate my IRC client, always mess upo my 1st post
519: [08:40:11] <ocm> lol
520: [08:40:48] <DesignerX> any of you here develop progrems for windows ?
521: [08:41:10] <r3v3rb> DesignerX: only one and that was using c#
522: [08:42:41] <DesignerX> looking for develop/ customize a file manager , I have soo many files , but feel ALL file managers are messing something
523: [08:44:05] <DesignerX> between personal files, test projects, jobs, experements, Study projects & backups, need my File manager to have few more options ! anyone feel the same ?
524: [08:44:46] * ivoba quit (Ping timeout: 276 seconds)
525: [08:48:42] * UncleCheese has joined #silverstripe
526: [08:48:54] <simon_w|air> Nope
527: [08:50:21] <DesignerX> :(
528: [08:50:52] <wmk> Hi UncleCheese
529: [08:51:00] <DesignerX> I will try find so0meone ro maybe do it my self, customize4 an already sxiting Filemangaer for windows, maybe I have to learn some C/C++ but it will be worth it .
530: [08:56:43] <guzzlefry_dev> DesignerX: I get by fine with shortcuts and indexing.
531: [08:57:07] <guzzlefry_dev> Start Menu -> Search... usually takes care of everything I need. :P
532: [08:58:59] * ivoba has joined #silverstripe
533: [09:03:18] * willr quit (Quit: willr)
534: [09:05:24] <DesignerX> guzzlefry_dev: :D that wont work for me lolz, I use Cubic Exploror File manager with Multi tabbing , one feature I realy want is having a side panel that reads the content of .readme files to display info related to the selected folder/project
535: [09:08:58] * NobrainerWeb has joined #silverstripe
536: [09:10:04] * zauberfisch has joined #silverstripe
537: [09:10:06] <NobrainerWeb> Hi, I'm trying to get my local MAMP installation setup a bit smarter using symlinks for the framework and cms folders, but i'm getting: SilverStripe Framework requires a $databaseConfig defined.
538: [09:10:39] <NobrainerWeb> I'm looking at: http://doc.silverstripe.org/framework/en/topics/environment-management and http://www.silverstripe.org/general-questions/show/4722?start=96#post317573
539: [09:10:52] <NobrainerWeb> using SS3.1 beta3 btw
540: [09:12:08] <NobrainerWeb> I have added a echo "something" to the _ss_environment.php and it does print "something"
541: [09:12:44] <simon_w|air> NobrainerWeb, you can't have a _ss_environment.php file above the actual location of the framework folder, and you need to define BASE_PATH in the _ss_environment.php for each site
542: [09:15:04] <ocm> little best-practice question about includes within a controller
543: [09:15:36] <ocm> I have a public function that uses some script for oauth
544: [09:15:52] <ocm> at the moment I am just doing include("oauth.php")
545: [09:15:59] <ocm> is that acceptable?
546: [09:16:02] <ocm> it is working..
547: [09:16:11] <NobrainerWeb> in my htdocs folder i have a folder with the cms and framework (BASE3.1) and also in htdocs i have _ss_environment.php defining basic database info
548: [09:16:33] * UncleCheese quit (Quit: UncleCheese)
549: [09:18:15] * UncleCheese has joined #silverstripe
550: [09:18:25] <NobrainerWeb> simon_w|air: i tried to add a _ss_environment.php file to my project folder (examplesite), containing define('BASE_PATH', rtrim(dirname(dirname($_SERVER['SCRIPT_FILENAME'])), DIRECTORY_SEPARATOR)); but still same error
551: [09:19:16] <NobrainerWeb> also tried moving the _environment file from htdocs to htdocs/BASE3.1, still same error
552: [09:20:12] <simon_w|air> Yes, because it's only loading the htdocs one, then doesn't know where to look for things, so can't pull in $database from mysite/_config.php
553: [09:20:23] <simon_w|air> Also, just define('BASE_PATH', __DIR__); should work fine
554: [09:22:33] <wmk> simon_w|air, is it possible to define multiple database configs in ss_environment? if i have more projects with different dbs..?
555: [09:23:39] <simon_w|air> wmk, you should only be using the same _ss_environment between different sites during development, where it's fine to have them all use the same user
556: [09:23:56] <wmk> ok.
557: [09:24:43] <wmk> so on production i can put ss_environment just one dir above website root and it's fine
558: [09:25:07] <wmk> guess i have to change some structure over here to use ss_environment
559: [09:25:33] <wmk> simon_w|air, thanks
560: [09:25:40] <guzzlefry_dev> night folks
561: [09:25:55] * guzzlefry_dev quit (Quit: Ex-Chat)
562: [09:34:25] * simon_w|air quit (Quit: Leaving)
563: [09:34:49] * simon_w has joined #silverstripe
564: [09:37:49] <wmk> i love it when things are working
565: [09:38:43] * Sam_ quit (Ping timeout: 250 seconds)
566: [09:42:31] <zauberfisch> wmk: ^^
567: [09:42:35] <zauberfisch> who doesn't
568: [09:42:39] <wmk> ;)
569: [09:43:51] * PigeonFriend has joined #silverstripe
570: [09:45:33] <NobrainerWeb> simon_w: i now have the following setup, but still no luck - can you have a look here and let me know what i need to change? http://www.sspaste.com/paste/show/51e90a201dbaf
571: [09:46:16] <NobrainerWeb> Btw example site is defined as a host (example site.dev) in MAMP
572: [09:46:25] <simon_w> NobrainerWeb, htdocs/_ss_environmment.php is still the problem. It's being used in place of htdocs/examplesite/_ss_environmment.php
573: [09:46:39] <simon_w> (as the search goes up from htdocs/BASE3.1 first)
574: [09:47:38] <NobrainerWeb> simon_w: ok, so i need to delete that file? Where should i define the default database settings then?
575: [09:48:01] <simon_w> Rename it
576: [09:57:21] <NobrainerWeb> simon_w: tried to rename it, then it does not execute anymore. But neither is the examplesite/_ss_environmment.php
577: [09:57:51] <simon_w> Are you sure?
578: [09:58:46] <simon_w> If you haven't changed examplesite/_ss_environmment.php, you won't notice if it's being loaded or not
579: [09:59:01] * r3v3rb quit (Quit: r3v3rb)
580: [09:59:51] <NobrainerWeb> i added echo "test"; to it
581: [10:00:06] <NobrainerWeb> nothing, and still that f….. error
582: [10:00:14] <NobrainerWeb> SilverStripe Framework requires a $databaseConfig defined.
583: [10:00:43] <simon_w> What version are you running?
584: [10:01:23] <NobrainerWeb> 3.1beta3
585: [10:02:04] <simon_w> Can you grab a later version of 3.1?
586: [10:03:40] <simon_w> Yeah, b3 only looks the realpath() tree
587: [10:04:39] <NobrainerWeb> can i download from browser, and what should i go for?
588: [10:05:17] <simon_w> https://github.com/silverstripe/silverstripe-framework/archive/3.1.zip and https://github.com/silverstripe/silverstripe-cms/archive/3.1.zip
589: [10:07:58] * r3v3rb has joined #silverstripe
590: [10:09:50] * r3v3rb has just been rolled over for 5k worth of work… not happy
591: [10:11:21] <NobrainerWeb> auch, that sucks
592: [10:11:51] <NobrainerWeb> simon_w: same error + a warning get_magic_quotes_gpc support is being removed
593: [10:12:25] <simon_w> NobrainerWeb, well, if you're not including the renamed file, then of course you're not going to have database details
594: [10:12:36] <r3v3rb> NobrainerWeb: yep, the designer got shitty becuase I asked him to stop changing the goalposts halve way through the development as it was a fixed price build...
595: [10:13:25] <NobrainerWeb> have avoided those so far - but was always an issue where i used to work before
596: [10:14:04] * Error404NotFound quit (Read error: Connection reset by peer)
597: [10:14:31] <NobrainerWeb> simob_w: i'm trying to include the file from htdocs/examplesite/mysite/_config.php but the file is not run (again trying to do echo)
598: [10:15:17] <r3v3rb> what really got me is he told me he was dropping the job, only to go and get another agency to build it - so I did all the meetings with the client, framework development etc and now he's dropped me like a sack to use someone who funnily enough say they can do it cheaper - because they don't have to do the leg work I put in!
599: [10:15:42] <simon_w> r3v3rb, invoice him anyway
600: [10:15:44] * r3v3rb thinks its the last time he'll work with said designer
601: [10:15:47] <r3v3rb> simon_w: I am
602: [10:16:10] <r3v3rb> just got off the phone and told him basically he's paying regardless
603: [10:16:29] <r3v3rb> he accepted the quote and instigated work on the project...
604: [10:16:46] <r3v3rb> he can pay for the time he has used
605: [10:17:30] * r3v3rb also told him to clear his website/ftp and email off my server by the end of next week or else its going down as he hasn't paid for the services for three years!
606: [10:17:44] <NobrainerWeb> r3v3rb: of course he needs to pay
607: [10:17:45] <simon_w> You're far too nice
608: [10:18:04] <r3v3rb> simon_w: I'm British of course I'm nice :D
609: [10:18:44] <r3v3rb> still thats what you get for trusting someone
610: [10:19:36] <r3v3rb> who in their first meeting 3 years ago said 'I really hope you never go behind my back as I have had it done before, I hope we can work together with trust'
611: [10:19:59] * r3v3rb laughs at the irony that he 'screwed' me after I have hand held him for 3 years
612: [10:21:13] * simon_w|air has joined #silverstripe
613: [10:21:49] <simon_w> I had one client like that. Came back a year after I sent off the first test build (with no response), asking for changes then got frustrated when I took my time getting back to him
614: [10:22:02] <r3v3rb> lol
615: [10:23:00] <simon_w> Turns out having an actual job, instead of being freelancing, kinda changes how much shits you give about a year-old project
616: [10:24:16] <NobrainerWeb> simon_w: examplesite/_ss_environment.php is now getting loaded - it just contains define('BASE_PATH', __DIR__); and an echo statement
617: [10:24:38] <simon_w> NobrainerWeb, yup. So, in that file, include the renamed one in htdocs
618: [10:24:39] <NobrainerWeb> but the mysite/_config.php is not
619: [10:24:45] <NobrainerWeb> ok
620: [10:25:18] <r3v3rb> simon_w: I guess, maybe I should just get a job with an agency...
621: [10:25:47] <r3v3rb> and work with wordpress or drupal all the time instead - ugh
622: [10:25:54] <simon_w> r3v3rb, I'm moving more and more into backend work, so would kinda have to, or at least only be a consultant
623: [10:26:04] <simon_w> All depends on what you feel like doing
624: [10:26:06] <r3v3rb> yep
625: [10:26:52] <r3v3rb> personally i prefer sitting in my house in the mountains in spain, but that doesn't get my children educated in england… :( only a few more years until they are self sufficient though!
626: [10:28:12] <NobrainerWeb> simon_r: i now do require_once("../../ConfigureFromEnv.php"); in examplesite/_ss_environment.php and the file gets loaded - but still SilverStripe Framework requires a $databaseConfig defined.
627: [10:28:13] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
628: [10:29:07] <simon_w> NobrainerWeb, do you rename the other environment file to ConfigureFromEnv.php?
629: [10:29:10] <simon_w> *did
630: [10:30:47] <NobrainerWeb> Yes, and it contains: http://www.sspaste.com/paste/show/51e90a201dbaf (se the last post)
631: [10:31:15] * UncleCheese quit (Quit: UncleCheese)
632: [10:31:16] <simon_w> And does your mysite/_config.php contain require_once('conf/ConfigureFromEnv.php');?
633: [10:33:25] <NobrainerWeb> simon_w: htdocs/examplesite/mysite/_config.php does contain require_once('conf/ConfigureFromEnv.php'); yes - but i also have an echo statement in that file - and nothing gets printed
634: [10:34:03] <simon_w> So you have htdocs/examplesite/_ss_environment.php and htdocs/ConfigureFromEnv.php?
635: [10:34:43] <NobrainerWeb> Yes
636: [10:35:29] * violetina quit (Remote host closed the connection)
637: [10:35:31] <simon_w> after your define('BASE_PATH', require_once BASE_PATH . '/../ConfigureFromEnv.php';
638: [10:37:49] <NobrainerWeb> my htdocs/_ss_environment.php now has define('BASE_PATH', __DIR__);
639: [10:37:50] <NobrainerWeb> require_once BASE_PATH . '/../ConfigureFromEnv.php';
640: [10:37:51] <NobrainerWeb> echo "examplesite";
641: [10:38:26] <NobrainerWeb> and the ConfigureFromEnv.php is loaded, as it echoes a string for me
642: [10:39:17] <NobrainerWeb> afk 15 min
643: [10:44:06] <r3v3rb> sheesh, why can I not find my previous code to stop onbeforewrite from firing multiple times!
644: [10:54:07] * ARNHOE has joined #silverstripe
645: [10:55:45] * priithansen has joined #silverstripe
646: [10:57:10] <r3v3rb> SS and links to media such as youtube in content ? isn't the framework meant to handle that now?
647: [10:57:34] <r3v3rb> I get an [embed] tag written into the client side page...
648: [10:59:14] <simon_w> You're calling a method on HTMLText that doesn't run the short codes
649: [10:59:26] <r3v3rb> not that I know of...
650: [10:59:33] * maknz quit (Ping timeout: 264 seconds)
651: [11:00:00] <r3v3rb> simon_w: nope no overrides anywhere
652: [11:01:10] <r3v3rb> running 3.1.0beta3
653: [11:02:59] <r3v3rb> erm, Shortcodes are no longer supported in template files. They continue to work in DB fields and other HTMLText-cast fields.
654: [11:03:30] <r3v3rb> so why does it support adding media via insert media and now not support the shortcode it generates!
655: [11:04:01] <r3v3rb> or am i missing something simon_w
656: [11:04:21] <simon_w> It means you can't have [embed]blah[/embed] in a .ss file
657: [11:04:28] * zauberfisch quit (Quit: Leaving...)
658: [11:04:57] <r3v3rb> i don't but I inserted a link to a youtube video and the page just shows the embed tags now not the video
659: [11:05:21] <r3v3rb> this was in the content editor in the cms admin btw
660: [11:05:56] * zauberfisch has joined #silverstripe
661: [11:06:31] * zauberfisch quit (Client Quit)
662: [11:06:32] <r3v3rb> shows the thumbnail in the admin interface, but the [embed] code in the web view
663: [11:07:36] * priithansen quit (Quit: priithansen)
664: [11:08:21] <simon_w|air> And what are you using in the template?
665: [11:09:47] <r3v3rb> straightforward $Content
666: [11:11:01] <simon_w|air> And have you tried a later build of 3.1?
667: [11:11:30] <r3v3rb> not yet, will grab one now from git
668: [11:11:31] * priithansen has joined #silverstripe
669: [11:13:49] <r3v3rb> dev/building
670: [11:14:07] <r3v3rb> thats better
671: [11:14:22] <r3v3rb> I wonder should someone change the download version on the SS site?
672: [11:14:33] <r3v3rb> for those lazy people like me
673: [11:14:45] <simon_w|air> But there hasn't been another release
674: [11:15:08] <r3v3rb> so everything on github is in the pre-release package on the SS downloads page?
675: [11:15:21] * r3v3rb thinks something changed?
676: [11:16:03] <simon_w|air> No, the pre-release package just has the latest non-stable tag
677: [11:16:16] <simon_w|air> There's been 3 months of development since then
678: [11:16:22] <r3v3rb> :P
679: [11:16:27] * r3v3rb = lazy
680: [11:17:35] <simon_w|air> sminnee, might want to change/remove the "Weekly appearance by the core developers" section on http://www.silverstripe.org/irc-channel :p
681: [11:18:12] <r3v3rb> lol
682: [11:25:57] * kerosene has joined #silverstripe
683: [11:26:12] * kerosene has left #silverstripe
684: [11:28:11] <r3v3rb> I wonder if checkboxfield should be able to have its label aligned with the rest of the labels in the CMS editor?
685: [11:28:21] * Colin[pi] quit (Ping timeout: 246 seconds)
686: [11:28:27] <r3v3rb> having it hang right, means its easily overlooked
687: [11:30:24] <simon_w|air> $field->setFieldHolderTemplate('FormField_holder')
688: [11:30:35] <NobrainerWeb> simon_w: Thank you for your help - I did not get it to work, but i have no more time to play with this for now
689: [11:32:30] <r3v3rb> simon_w: close but no cookie, still indented just left aligned now :)
690: [11:32:55] <r3v3rb> got it, field .checkbox class indenting
691: [11:38:14] * NobrainerWeb quit (Quit: NobrainerWeb)
692: [11:40:38] * openbees quit (Ping timeout: 240 seconds)
693: [11:47:15] * ivoba quit (Ping timeout: 246 seconds)
694: [11:52:08] <r3v3rb> ok, no way to removeExtraClass('checkbox') then :(
695: [11:52:57] * binman has joined #silverstripe
696: [11:53:11] * openbees has joined #silverstripe
697: [11:59:50] <r3v3rb> anyone know where I can find doc's on the oembed parser - I want the page on the site to show the oembed but the email to use a different template to show the embedded content
698: [12:02:13] * UndefinedOffset has joined #silverstripe
699: [12:22:53] * simon_w|air quit (Quit: This computer has gone to sleep)
700: [12:27:55] * zauberfisch has joined #silverstripe
701: [12:36:03] * ARNHOE quit (Remote host closed the connection)
702: [12:54:14] <r3v3rb> ever seen this: Uncaught exception TypeError: saveButton is not a function from lib.js
703: [13:04:13] * ARNHOE has joined #silverstripe
704: [13:07:31] * ivoba has joined #silverstripe
705: [13:24:19] * ivo_ has joined #silverstripe
706: [13:24:43] * ivo_ is now known as Guest73314
707: [13:26:01] * ivoba quit (Read error: Operation timed out)
708: [13:35:06] <ocm> anyone have a suggestion on this?
709: [13:35:18] <ocm> getting action and parameter on local dev server gives no problem
710: [13:35:30] <ocm> production server returns action as parameter
711: [13:35:36] <ocm> and no action at all
712: [13:35:41] <ocm> in ss2.4
713: [13:35:53] <r3v3rb> ocm, something to do with the htaccess?
714: [13:35:57] <ocm> Director::urlParam('ID') gives action, Director::urlParam('action') gives nothing
715: [13:35:58] <r3v3rb> I had a similar situation
716: [13:36:04] <ocm> hmm, could be
717: [13:36:13] <ocm> what did you do to fix it?
718: [13:36:19] <ocm> me and htaccess are not good friend
719: [13:36:19] <ocm> s
720: [13:36:30] <r3v3rb> where my htaccess had the username in it to get around the fact the url was setup fully
721: [13:36:53] <r3v3rb> 77.234.32.12/~username/page/id/action
722: [13:37:13] <r3v3rb> ~username was seen as part of the url and created the problem with the URLParams
723: [13:37:35] <r3v3rb> I have to go and pick up my son from school - bbiab
724: [13:37:41] <ocm> for dev I was using: localhost:80/site/page/action/id <- no problem
725: [13:37:56] <ocm> in production I am using: domain.com/page/action/id
726: [13:37:59] <ocm> and fails
727: [13:38:03] <ocm> goodluck
728: [13:38:31] * r3v3rb quit (Quit: r3v3rb)
729: [13:44:36] * mattybalaam has joined #silverstripe
730: [13:53:54] * pippy quit (Ping timeout: 240 seconds)
731: [13:55:48] <mattybalaam> I have created a new page type, but the page always renders with the default controller, rather than the theme. I have emptied the silvertstripe-cache folder, and done dev/build?flush=all Anytthing else I should be looking for?
732: [13:58:56] * mattybalaam quit (Quit: mattybalaam)
733: [14:02:00] * cloph_away is now known as cloph
734: [14:02:19] * mattybalaam has joined #silverstripe
735: [14:03:56] <micmania1> mattybalaam, check that your files & classes are correctly named.
736: [14:04:52] <micmania1> Also, check theat they're in the correct location.
737: [14:05:02] <wmk> mattybalaam, somtimes a ?flush=1 on the url is good...
738: [14:05:57] <mattybalaam> OK, I was doing extends ContentController not Page_Controller - thanks for making me double check through my code
739: [14:17:14] * mattybalaam quit (Ping timeout: 240 seconds)
740: [14:19:20] * mattybalaam has joined #silverstripe
741: [14:34:00] * ocm quit (Quit: HydraIRC -> http://www.hydrairc.com <-)
742: [14:35:26] <ARNHOE> Is it possible to use Delete/Remove in GridFieldConfig_RelationEditor instead of unliking?
743: [14:40:50] <ARNHOE> @param boolean $removeRelation - true if removing the item from the list, but not deleting it
744: [14:40:58] <ARNHOE> protected $removeRelation = false;
745: [14:41:00] <ARNHOE> hmpf
746: [14:46:43] <zauberfisch> ARNHOE: there is even a predifined config for both usecases
747: [14:46:48] <ARNHOE> $config->getComponentByType('GridFieldDeleteAction')->getActions('deleterecord'); am I close ?
748: [14:46:59] <zauberfisch> if you want to unlink you can use GridFieldConfig_RecordEditor::create()
749: [14:47:00] <ARNHOE> I am searching through the api
750: [14:47:01] <zauberfisch> fail
751: [14:47:10] <zauberfisch> if you want to unlink you can use GridFieldConfig_RelationEditor::create()
752: [14:47:19] <zauberfisch> if you want to delete then its GridFieldConfig_RecordEditor::create()
753: [14:47:51] <ARNHOE> so simple, yet I am stupid enough to not find it
754: [14:47:54] <ARNHOE> thanks zauberfisch once again
755: [14:48:43] <AlphaCactus> I do: field->getConfig()->removeComponentsByType('GridFieldDeleteAction');
756: [14:48:45] <AlphaCactus> $gridfield->getConfig()->addComponent( new GridFieldDeleteAction() );
757: [14:48:59] <AlphaCactus> this magically change it from unlink to delete
758: [14:49:20] <ARNHOE> that added delete but kept the unlink icon
759: [14:49:49] <AlphaCactus> wot, lol.
760: [14:50:16] <AlphaCactus> i use it all over the place and never had that happen
761: [14:50:36] <ARNHOE> using it in modeladmin aswell? mabye it goes wrong there
762: [14:50:44] <AlphaCactus> yes, in modeladmin mostly
763: [14:50:56] <AlphaCactus> on many_many
764: [14:51:11] <ARNHOE> weird, I used it on has_many and added a delete button and didnt remove the unlink one :P
765: [14:51:36] <AlphaCactus> I found a has_many too,
766: [14:51:55] <AlphaCactus> have you dont anything else to it? i'm not creating a new config for it, just using what is in place
767: [14:51:56] * mattybalaam quit (Remote host closed the connection)
768: [14:52:01] <AlphaCactus> also on 3.1+
769: [14:52:22] <ARNHOE> I dont know then
770: [14:53:09] <AlphaCactus> weird
771: [14:57:40] <AlphaCactus> did Zauberfisch's idea work ok though?
772: [14:58:09] <AlphaCactus> and you didn't do both?
773: [14:59:08] <ARNHOE> Yeah, GridFieldConfig_RecordEditor::create() fixed it
774: [14:59:21] <ARNHOE> and the unlink/delete button that I had was before changing GridFieldConfig_RecordEditor::create()
775: [14:59:34] <openbees> GridFieldDeleteAction class just checks $removeRelatio variable for deciding action. I found this yesterday .. my client wanted both unlink and delete for related dataobject on page :D
776: [15:01:11] <ARNHOE> Anyone worked with variable template includes before? I have seen it before on github, trying to find it again
777: [15:02:53] <openbees> "variable template includes" ??
778: [15:03:14] <ARNHOE> <% include AddonVersionDetailsLinks Items=$Provides %>
779: [15:03:21] <ARNHOE> found it I think, nots ure how advanced it is
780: [15:07:09] <openbees> I think for 3.1 we don't need these variables https://github.com/silverstripe/silverstripe-framework/pull/2139/commits
781: [15:08:27] <ARNHOE> Well, I will be calling the exact same layout atleast 5 times on one page. It would be easier to make a include, so I can style it easier and it shouldnt hurt the performance right?
782: [15:10:44] <openbees> yaah that's not a problem but I think we used to inject variables in include (like you mentioned above) because it used to ignore parent scope in includes.
783: [15:16:55] * openbees quit (Quit: Leaving)
784: [15:34:40] * jcwacky has left #silverstripe
785: [15:48:40] * Guest73314 quit (Quit: Leaving)
786: [15:49:42] * Nivery has joined #silverstripe
787: [15:56:50] * sam_ has joined #silverstripe
788: [15:58:02] <sam_> anybody please help me on css issue
789: [15:58:04] <sam_> please
790: [15:58:16] <sam_> http://golf.kc316.com/events/
791: [15:58:25] <sam_> in event-calender module
792: [15:58:48] <wmk> hey sam_
793: [15:58:51] <kinglozzer> what's the issue?
794: [15:59:08] <sam_> the calender and the listing is coming in awkward way
795: [15:59:20] <sam_> hi....wmk
796: [15:59:26] <wmk> i bet you have to adjust the templates, sam_
797: [15:59:36] <sam_> I know
798: [15:59:40] <sam_> but I am really novice
799: [15:59:41] <kinglozzer> sam_ do you want the calendar on the right? beside the listing?
800: [15:59:49] <sam_> yes
801: [16:00:41] <wmk> sam_, take a look at yourtheme/Layout/Page.ss
802: [16:00:55] <wmk> there you have the basic layout and the cols defined, right?
803: [16:01:24] <sam_> its a module
804: [16:01:36] <wmk> i know the module.
805: [16:01:41] <kinglozzer> sam_: Add clear:right; to the #calendar-sidebar ID
806: [16:02:00] <sam_> ok
807: [16:02:57] <kinglozzer> sam_: You removed the float: right. It needs float: right; and clear: right;
808: [16:03:32] <sam_> thnx
809: [16:03:38] <sam_> it worked.....
810: [16:03:46] * wmk thinked too complicated
811: [16:03:52] <kinglozzer> :P
812: [16:03:57] <wmk> it's either time for a thunderstorm or for a bath in the lake
813: [16:03:57] <sam_> can you guys help me on facebook?
814: [16:04:03] * kinglozzer home time
815: [16:04:05] * kinglozzer quit ()
816: [16:04:09] <wmk> but i guess the thunderstorm is faster than me
817: [16:04:29] <wmk> sam_, on facebook? what do you mean?
818: [16:04:49] <sam_> I tried to use facebook login...
819: [16:04:56] <wmk> oh, never used. sorry
820: [16:04:57] <sam_> it says login cancelled
821: [16:05:09] <sam_> oops,,, my bad luck
822: [16:05:22] <sam_> that day, I solved the forms issue...
823: [16:05:40] <wmk> gimme a hint...
824: [16:05:43] <sam_> by adding a html template in php page
825: [16:06:12] <sam_> from page/action/id... tried to call a function
826: [16:06:19] <sam_> or page
827: [16:06:29] <wmk> jup
828: [16:14:23] * zauberfisch quit (Quit: Leaving...)
829: [16:23:14] * Error404NotFound has joined #silverstripe
830: [16:27:51] * ARNHOE quit (Remote host closed the connection)
831: [16:34:58] * PigeonFriend quit ()
832: [16:44:09] * lobarvaz quit (Remote host closed the connection)
833: [16:50:57] * Nivery quit (Quit: Nivery)
834: [16:57:34] * r3v3rb has joined #silverstripe
835: [17:05:28] * Error404NotFound quit (Read error: Connection reset by peer)
836: [17:06:00] * Error404NotFound has joined #silverstripe
837: [17:18:21] * Error404NotFound quit (Ping timeout: 246 seconds)
838: [17:22:52] <r3v3rb> hmm, just uploaded the latest cms/framework folder to a site and getting: Warning</b>
839: [17:22:53] <r3v3rb> : array_search() expects parameter 2 to be array, null given in /home/dodaa/public_html/framework/forms/FormField.php
840: [17:23:25] <AlphaCactus> php version ok?
841: [17:23:38] <r3v3rb> works on most pages
842: [17:24:00] <r3v3rb> as soon as I hit a page with a checkboxfield i added I get the error
843: [17:26:35] <r3v3rb> php 5.3.25 running on server
844: [17:30:57] * catcher has joined #silverstripe
845: [17:32:33] <r3v3rb> lol, don't put a / in your label description without double escaping!
846: [17:35:49] * sam_ quit (Ping timeout: 250 seconds)
847: [17:45:29] <r3v3rb> interesting the problem doesnt occur on 5.4.10 on my local server
848: [17:48:01] <r3v3rb> and I worked out its to do with ->removeExtraClass('myClass')
849: [17:48:08] <r3v3rb> onwards we go
850: [18:00:06] <wmk> anyone put loginform into a bootstrap modal?
851: [18:14:08] <r3v3rb> not bootstrap just a normal one - it was a nightmare
852: [18:14:18] <r3v3rb> wmk: insafe.co.uk
853: [18:14:52] <wmk> r3v3rb, just noticed uncleceese made a bootstrap login form in his module
854: [18:15:03] <r3v3rb> nice
855: [18:15:13] <r3v3rb> life = easier
856: [18:16:37] <wmk> yep.
857: [18:23:32] <wmk> though the 1st time is still complicated
858: [18:27:28] <wmk> i have a fieldset. how can i add a param to a field?
859: [18:27:53] <wmk> s/fieldset/fieldlist
860: [18:28:00] * abitran quit (Read error: Connection reset by peer)
861: [18:28:43] * Nivery has joined #silverstripe
862: [18:33:47] <r3v3rb> hmm, having real issues with the latest github and setTemplate for an email
863: [18:34:07] <r3v3rb> i've dev/build and flush=all and it still wont pick up the template
864: [18:35:17] <r3v3rb> and it leaves the CMS looking like this http://i.imgur.com/J9PcOAy.png
865: [18:35:43] <wmk> not good
866: [18:35:50] <FrozenFire> What I usually have is a dev controller which sends the email out arbitrarily for me. So I can then flush on that action
867: [18:35:57] <FrozenFire> Email templates are finnicky that way
868: [18:42:10] * swordsmanz has joined #silverstripe
869: [18:48:41] <wmk> wow, got it. just tweaked BootstrapLoginForm to be in a modal
870: [18:49:18] <r3v3rb> FrozenFire: yeh maybe thats the way forward, didn't really want the extra complication but...
871: [18:49:38] <r3v3rb> just curious as to why 3.1XX isn't picking up the template/s
872: [18:49:58] <wmk> cache? wrong folder?
873: [18:50:12] * r3v3rb wonders if its because im in the class not the controller...
874: [18:50:28] <r3v3rb> hmmm
875: [18:53:22] <FrozenFire> r3v3rb, 3.1 caches extremely aggressively
876: [18:53:38] <FrozenFire> And seems to avoid cache misses at all costs
877: [19:04:05] * abitran has joined #silverstripe
878: [19:04:40] <wmk> r3v3rb, did you do the modal form with valdiation?
879: [19:10:55] * gelignite has joined #silverstripe
880: [19:18:48] <r3v3rb> wmk: yes
881: [19:19:00] <wmk> serverside or js?
882: [19:19:04] <r3v3rb> FrozenFire: does it - i shall keep trying
883: [19:19:07] <r3v3rb> wmk: both
884: [19:19:38] <wmk> does it work out of the box?
885: [19:22:36] <wmk> ok, wasnt bootstrap modal, i see
886: [19:25:37] * micmania2 has joined #silverstripe
887: [19:35:06] <r3v3rb> wmk: no its was custom built and hard work
888: [19:35:11] <r3v3rb> in 2.4.7
889: [19:35:34] <wmk> ok.
890: [19:35:49] <wmk> just wonder how validation works with ajax / modal
891: [19:40:11] <r3v3rb> wmk, one mo I'll post the customloginform.php I created it may help...
892: [19:41:06] <r3v3rb> http://www.sspaste.com/paste/show/51e995bf029ca php and validation
893: [19:41:14] <r3v3rb> next I'll find the ajax stuff
894: [19:43:20] <r3v3rb> http://www.sspaste.com/paste/show/51e9964a52022
895: [19:43:30] <r3v3rb> see if that helps. I gtg unfortunately
896: [19:44:14] <r3v3rb> it also handles some edge cases on group redirection to wmk
897: [19:44:38] * guzzlefry_dev has joined #silverstripe
898: [19:45:55] <wmk> thanks r3v3rb
899: [19:46:44] * zfmf1 has left #silverstripe
900: [19:59:15] * r3v3rb quit (Quit: r3v3rb)
901: [20:14:06] * zfmf1 has joined #silverstripe
902: [20:14:22] * zfmf1 quit (Remote host closed the connection)
903: [20:14:46] * zfmf1 has joined #silverstripe
904: [20:34:27] <micmania2> where does the "ItemEditForm" part of the GridField url come from?
905: [20:37:14] * UndefinedOffset quit (Read error: Connection reset by peer)
906: [20:45:18] * simon_w|air has joined #silverstripe
907: [20:47:38] <catcher> What's required to rewrite a File's filename on disk? Should I use native PHP for that, and then disassociate/delete the object?
908: [20:48:36] <micmania2> catcher, that's what I normally do. If you only want to move the file and keep the link to it you can just update your File DataObject.
909: [20:48:37] <catcher> or can I do something like File->setName('new')->updateFilesystem()?
910: [20:49:17] <micmania2> I would normally rename() then $file->Filename = "blah";
911: [20:53:33] <micmania2> If I create a GridFieldComponent which implement GridField_URLHandler, do I also need to include a GridFieldDetailForm?
912: [20:53:55] * Nivery quit (Quit: Nivery)
913: [20:57:01] * priithansen quit (Quit: priithansen)
914: [20:58:51] * willr has joined #silverstripe
915: [21:01:20] <simon_w|air> catcher, set the name/parentID and write
916: [21:02:15] <simon_w|air> micmania2, no
917: [21:02:50] <wmk> hmm, ss3.1 seems sometimes not to grab the latest templates
918: [21:04:30] <AlphaCactus> flush=all is my middle name
919: [21:04:58] <wmk> AlphaCactus, yeah, did a bunch of flush=all and flush=1 but still no luck
920: [21:05:34] <AlphaCactus> dev/build?
921: [21:05:38] <AlphaCactus> sure its the right template?
922: [21:09:42] <wmk> man, another module has overwritten the template?
923: [21:10:44] <wmk> let's try
924: [21:13:32] <wmk> it was the middle one
925: [21:13:56] <wmk> display-logic overwrites some bootstrap-form templates, man o man
926: [21:31:05] * zfmf1 has left #silverstripe
927: [21:34:51] * simon_w|air quit (Quit: This computer has gone to sleep)
928: [21:45:28] * UncleCheese has joined #silverstripe
929: [21:50:17] * Colin[pi] has joined #silverstripe
930: [21:53:18] * UncleCheese quit (Quit: UncleCheese)
931: [21:59:55] <guzzlefry_dev> How would I go about adding a field to the admin/security members CMS stuff?
932: [22:01:27] * UncleCheese has joined #silverstripe
933: [22:09:53] * priithansen has joined #silverstripe
934: [22:11:15] <AlphaCactus> extend or dataextend member?
935: [22:15:28] <guzzlefry_dev> AlphaCactus: Not sure, I basically need to be able to add a checkbox to flag something on the member's CMS area.
936: [22:19:35] <guzzlefry_dev> I see some stuff in mysite/code/Member/ that adds tabs to the interface for the member's CMS area. Not sure how it knows to add to the member, directory structure maybe?
937: [22:23:35] <AlphaCactus> if it extends member, silverstripe magically adds it. If it is a DataExtension, then a setting in one of the _configs will tell it to extend Member.
938: [22:24:28] <guzzlefry_dev> ah okay, it's a DataExtension (there's actually a doc for this! :P ), I'll search the _configs.
939: [22:24:29] <guzzlefry_dev> thank you
940: [22:25:25] <AlphaCactus> yep
941: [22:33:25] * willr quit (Quit: willr)
942: [22:33:25] * maknz has joined #silverstripe
943: [22:33:26] * maknz quit (Changing host)
944: [22:33:26] * maknz has joined #silverstripe
945: [22:35:32] <catcher> how does one set Security defaultAdmin via config.yml?
946: [22:40:55] <AlphaCactus> dunno, we do that in the environment file
947: [22:47:57] <FrozenFire> Yeah, don't set that in config.yml
948: [22:48:11] <FrozenFire> First and foremost, you shouldn't have any credentials in configuration files.
949: [22:48:29] <FrozenFire> Secondly, you shouldn't have your backdoor as anything global
950: [22:48:48] <FrozenFire> Also, you should only really ever use the default admin *once*
951: [22:52:02] <micmania2> Do GridField components get assigned a unique field like a name or something?
952: [22:53:01] * UncleCheese quit (Quit: UncleCheese)
953: [22:55:05] <simon_w> nope
954: [23:00:25] <catcher> FrozenFire, once indeed, more of an opportunity to learn the .yml format.
955: [23:00:54] <catcher> FrozenFire, DB credentials are _config.php though, in SS sites all over the universe
956: [23:01:10] <FrozenFire> And I'd say that's dramatically bad.
957: [23:01:25] <FrozenFire> You can and should configure it in an environment file.
958: [23:01:29] <FrozenFire> Or at least a local config
959: [23:01:36] <FrozenFire> Though preferably an environment file
960: [23:01:40] <catcher> the environment file isn't a config?
961: [23:02:43] <FrozenFire> It is, but it's not related to a specific application module.
962: [23:03:29] <catcher> so it's the usual location within mysite/ (or whatever) that you're saying is bad?
963: [23:05:30] <catcher> ah, gotta roll - thanks for the feedback guys
964: [23:05:33] * catcher quit (Quit: Leaving)
965: [23:11:07] * UncleCheese has joined #silverstripe
966: [23:14:00] * violetina has joined #silverstripe
967: [23:14:04] <guzzlefry_dev> I'm extending Member via DataExtensions, and I'm using $fields->push() to add something to the form. How do I go about giving a nice label/section like First Name, LastName, Email, etc. do?
968: [23:16:34] <simon_w> Which form?
969: [23:17:39] <guzzlefry_dev> simon_w: When you to go /admin/ then Security on the right, and then finally click on a member name.
970: [23:18:01] <guzzlefry_dev> it looks like I override fieldLabels()?
971: [23:18:02] * willr has joined #silverstripe
972: [23:18:10] <simon_w> Well, you probably shouldn't be using ->push() then
973: [23:18:21] <simon_w> and TextField::create('Name', 'Title')
974: [23:19:02] <guzzlefry_dev> Lost me...
975: [23:19:19] <simon_w> It's a tabbed form, you want ->addFieldToTab
976: [23:19:34] <simon_w> and the second argument to any field constructor sets the title for the field
977: [23:19:44] <guzzlefry_dev> ah okay
978: [23:20:07] <guzzlefry_dev> I tried $fields->push(new CheckboxField("IgnoreIP", "Ignore multiple IPs for this user")); in updateCMSFields();
979: [23:21:13] <guzzlefry_dev> oh, I'm guessing CheckboxFields won't get the same styling? >_>
980: [23:28:19] * priithansen quit (Quit: priithansen)
981: [23:48:00] * micmania2 quit (Quit: Leaving)
982: [23:52:26] * UncleCheese quit (Quit: UncleCheese)

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