#silverstripe IRC Log

IRC log for 14 January 2014

All timestamps are in UTC.

1: [00:00:01] <ss23> In SS
2: [00:00:08] <Colin[pi]> difficult?
3: [00:00:11] <Colin[pi]> or was OK?
4: [00:00:12] <ss23> Easy :)
5: [00:00:28] <Colin[pi]> well sir I might need to pick your brains in the next few weeks ;)
6: [00:00:32] <ss23> Hardest part was the redirects and things for various payment accepted methods etc
7: [00:00:35] <ss23> Okay!
8: [00:00:43] <Colin[pi]> (need to make one very soon D:)
9: [00:00:46] <ss23> I think it only took me like a day to build the main part of it
10: [00:00:57] <ss23> Then just do payment intergration
11: [00:01:08] <Colin[pi]> yeah I was going over it conceptually last night, I think the model is not too difficult
12: [00:01:09] <ss23> Ended up doing my own since the payment modules for SS all seemed *way* over the top
13: [00:01:23] <Colin[pi]> yeah payment stuff can be a pain in the arse
14: [00:01:40] <Colin[pi]> what payment gateway did you use?
15: [00:01:44] <ss23> function displayQuanaity() { return this->quantity - $this->locks()->count();
16: [00:01:48] <ss23> etc
17: [00:01:50] <ss23> DPS, Colin[pi]
18: [00:01:54] <Colin[pi]> hmm
19: [00:02:07] <Colin[pi]> is that taking CC details on the site, or third party
20: [00:02:07] <Colin[pi]> ?
21: [00:02:12] <ss23> Third party
22: [00:02:14] <Colin[pi]> coo
23: [00:02:21] <Colin[pi]> seems easier :o
24: [00:02:25] <Colin[pi]> less worry
25: [00:02:29] <ss23> Yeah, otherwise PCI complaince etc
26: [00:02:37] <camfindlay> need to get lunch, talk again soon... otherwise leave me some comments on the dev list
27: [00:02:40] * UncleCheese has joined #silverstripe
28: [00:02:46] <Colin[pi]> i think I'll go that way, esp. considering the time constraints
29: [00:04:04] <ss23> Colin[pi]: I'm happy to get the code for you tonight if you want
30: [00:04:13] <Colin[pi]> :o
31: [00:04:16] <ss23> (or at least, some of it, will leave templates out etc)
32: [00:04:20] <Colin[pi]> you open sourced it?
33: [00:04:31] <ss23> No, it's not a module or anything
34: [00:04:32] <ss23> lol
35: [00:04:35] <ss23> Can't really "opensource" it
36: [00:04:38] <Colin[pi]> oh lol
37: [00:04:43] <ss23> But I don't really believe in not sharing knowledge/code
38: [00:04:53] <ss23> Just seems stupid to get everyone to reimplment the same shit that's already been built lots of times
39: [00:05:00] <ss23> So you can have my code and do whatever you want if you like
40: [00:05:15] <Colin[pi]> well I always think it's fun to model something fresh... then that thrill lasts for like a week
41: [00:05:20] <Colin[pi]> and then I'm like FFFFUUUUUUUU
42: [00:05:20] <ss23> XD
43: [00:05:32] <ss23> It's easy enough to model if oyu give it a think about :D
44: [00:05:37] <Colin[pi]> you know the feel ;)
45: [00:05:37] <simon_w> And then I go on holiday!
46: [00:06:07] <ss23> simon_w: NOW?!
47: [00:06:08] <ss23> :O
48: [00:06:19] <simon_w> Nope
49: [00:06:25] <ss23> Oh, okay
50: [00:06:42] <simon_w> Though I could...
51: [00:06:49] <simon_w> Need to cook up eight meals worth of food
52: [00:07:42] <Colin[pi]> wat?
53: [00:08:06] <ss23> What are you doing, simon_w
54: [00:08:09] <ss23> I saw you mention this
55: [00:08:11] <ss23> but I do not know
56: [00:08:12] <simon_w> Camp thing
57: [00:08:19] <simon_w> Self catered
58: [00:08:21] <ss23> oic
59: [00:08:29] <simon_w> I get a microwave, so will be taking reheat-able foods
60: [00:09:36] <Colin[pi]> you're taking a microwave to a camp site?
61: [00:10:18] <chrisrio> :P
62: [00:10:31] <ss23> composer is annoying. If a package is marked as dev only, and you're on stable, it doesn't go "Bro that package is dev only!", it says "Requested package could not be found in any version!"
63: [00:10:36] <ss23> Oh
64: [00:10:42] <ss23> though I see it says "causes: might be dev only and you're ons table"
65: [00:10:43] <ss23> hmm
66: [00:10:45] <ss23> pls ignore
67: [00:10:49] <ss23> reading is hard
68: [00:10:53] <Colin[pi]> lol
69: [00:11:48] <chrisrio> yo does SS have a problem with the old fashioned Redirect 301 /sweetpage /http://awesome.com/not-so-sweet-page style syntax?
70: [00:11:54] <chrisrio> it seems to be ragin'
71: [00:12:01] <chrisrio> (.htaccess)
72: [00:12:15] <chrisrio> ignore the random / too
73: [00:12:20] <chrisrio> thats just there for fun
74: [00:12:42] * camfindlay quit (Quit: camfindlay)
75: [00:14:02] * Azure has joined #silverstripe
76: [00:14:39] * antmas_ quit (Ping timeout: 272 seconds)
77: [00:15:16] <chrisrio> a better question would just be - how do you perform a 301 redirect in the SS htaccess file as Redirect 301 blah doesn't work as it would normally.
78: [00:15:47] <simon_w> chrisrio, where are you putting it in the file?
79: [00:16:03] <chrisrio> ive tried above and below the SS rules
80: [00:16:10] <chrisrio> but obv both below the RewriteBase call
81: [00:17:14] <zippy__> Rewrite ^sweetpage(|/)$ http://awesome.com/not-so-sweet-page [R=301, L]
82: [00:17:22] <zippy__> so sweetpage with or without a /
83: [00:17:36] <zippy__> you might need a / at the start of sweetpage depending on your base
84: [00:18:08] <zippy__> unless you want sweetpage-anything, in which case remove the (|/)$
85: [00:18:43] <zippy__> simon_w: I thought, calling a relationship multiple times in a template render wouldn't cause multiple db calls?
86: [00:19:00] <simon_w> zippy__, it shouldn't
87: [00:19:11] <zippy__> that ss 3.1 or 3.0?
88: [00:19:13] * Ryan-Toast quit (Quit: Ryan-Toast)
89: [00:19:18] <simon_w> Both
90: [00:19:20] <simon_w> And 2.4
91: [00:19:44] * UncleCheese quit (Quit: UncleCheese)
92: [00:24:48] <chrisrio> zippy__: cheers boss - you sure you were looking for Rewrite?
93: [00:25:29] <zippy__> RewriteRule - my bad
94: [00:25:33] <zippy__> chrisrio: RewriteRule sorry
95: [00:25:45] <zippy__> simon_w: hmmm, but not in dev mode?
96: [00:25:58] <simon_w> zippy__, always should
97: [00:26:05] <zippy__> hm
98: [00:26:13] <simon_w> Wait, it stopped in 3.0
99: [00:26:22] <simon_w> The DataList is cached, but the result isn't
100: [00:26:48] <zippy__> right, so if I do it multiple times, I should still only see 1 query in the showqueries log I thought
101: [00:27:19] <simon_w> You'll see it multiple times
102: [00:27:26] <simon_w> Now that it's lazy
103: [00:28:35] * camfindlay has joined #silverstripe
104: [00:31:18] <zippy__> man, why do people code in sub folders, like localhost/site1 localhost/site2
105: [00:31:19] * xini quit (Quit: Page closed)
106: [00:31:26] * mojo5000 has joined #silverstripe
107: [00:31:57] <simon_w> So they don't need to set up vhosts for every different site?
108: [00:32:43] <guzzlefry> ^
109: [00:32:43] <zippy__> don't need to, or don't know how
110: [00:32:53] * Shrapnel_ has joined #silverstripe
111: [00:32:58] * Shrapnel_ is now known as RobboNZ
112: [00:33:00] <guzzlefry> Well wait, I still have to do vhosts for each. :/
113: [00:33:02] <simon_w> Don't need to
114: [00:33:11] <simon_w> It's just so much effort
115: [00:33:16] <ss23> I have a script that does it for me, since I already need to do a bunch of setup for new sites anyway
116: [00:33:17] <zippy__> lol lazy!
117: [00:33:49] <ss23> oh that was scary
118: [00:33:59] <ss23> I thought burgerfuel forgot my doofer
119: [00:34:00] <ss23> :(
120: [00:34:10] <ss23> They didnt', but it was scary
121: [00:34:19] <simon_w> They could start making them out of cash!
122: [00:34:29] <simon_w> http://www.burgerfuel.com/nz/corporate/news/burgerfuel-welcomes-american-investor
123: [00:34:33] <ss23> lolwhy?!
124: [00:34:41] * ss23 clicky
125: [00:35:54] * mojo5000 quit (Read error: Connection reset by peer)
126: [00:36:16] * mojo5000 has joined #silverstripe
127: [00:40:37] <spronk> they didnt seem to have a doofer dispenser herer
128: [00:41:42] * UncleCheese has joined #silverstripe
129: [00:42:37] <simon_w> :o
130: [00:42:46] <simon_w> Even the Hataitai store has one!
131: [00:44:26] <Colin[pi]> pfft BF site is not even responsive
132: [00:47:35] * MrT has joined #silverstripe
133: [00:47:59] <simon_w> Stop resizing your browser!
134: [00:48:45] <Colin[pi]> PROBLEM SOLVED, THANKS SIMON_W!
135: [00:51:15] <RobboNZ> cash is dead
136: [00:51:19] <RobboNZ> long live bitcoin
137: [00:52:27] <guzzlefry> Try paying for something using bitcoin when the power is out. :P
138: [00:52:34] <guzzlefry> or when at a yard sale. >_>
139: [00:52:58] <lewellyn> guzzlefry: someone said something the other day about going to a bar that took bitcoin. it took upwards of twenty minutes to pay.
140: [00:53:17] <guzzlefry> Doesn't it have to do some intense verification?
141: [00:53:25] <guzzlefry> I haven't really looked into how it works.
142: [00:53:30] <lewellyn> it's not actually MEANT to be used by mere mortals.
143: [00:54:05] <guzzlefry> Right...it's like stock. :P
144: [00:54:45] <lewellyn> there's been a suggestion floated since the early days to mint coins and to print bills so that people don't have to dick with bitcoin. that doesn't exactly become the next level of currency if you're just using the same things with a new back-end which is still effectively a fiat currency.
145: [00:55:13] <lewellyn> there is no intrinsic value to bitcoin.
146: [00:55:13] <RobboNZ> bitcoin is still in alpha
147: [00:55:33] <Colin[pi]> lewellyn: there is no intrinsic value to fiat currency either ;P
148: [00:55:38] <RobboNZ> but its like looking at the internet in 1994 and saying, it takes 20 mins to boot my computer to read an email, how is that ever going to take off
149: [00:55:43] <Colin[pi]> it's not backed by gold any more
150: [00:55:50] <lewellyn> Colin[pi]: exactly. that makes bitcoin "not an improvement"
151: [00:57:05] <lewellyn> bitcoin is doomed to ever-increasing devaluation if it catches on. in 25 years, you'll be doing 0.00000001 BTC transactions to pay bills.
152: [00:57:09] <RobboNZ> im amazed at the amount of people i meet who dont see the potential of bitcoin
153: [00:57:20] <lewellyn> the doom is, of course, by design.
154: [00:57:26] <RobboNZ> so what, thats 1 satoshi
155: [00:57:42] <RobboNZ> u pay a bill very easily with 1 satoshi
156: [00:57:54] * camfindlay quit (Quit: camfindlay)
157: [00:58:04] <lewellyn> except that the bills i have in mind are in the range of current 100-200 USD
158: [00:58:30] <RobboNZ> might have to build the bitcoin gateway for silverstripe payments to get u guys to take notice
159: [00:58:31] <lewellyn> so buying a soda might be 0.00000000023 BTC
160: [00:58:54] <RobboNZ> you'll be paying bills in bitcoins eventually
161: [00:58:57] <lewellyn> adding zeroes doesn't make the currency more viable. look at mexico and the new peso :P
162: [00:59:04] <Colin[pi]> RobboNZ: I'll take notice when you implement it for DOGECOIN
163: [00:59:07] <Colin[pi]> ;D
164: [00:59:17] <lewellyn> Colin[pi]: i'm waiting for support for coinye.
165: [00:59:20] <RobboNZ> and they will get cheaper each year, instead of more expensive
166: [00:59:26] <RobboNZ> haha
167: [00:59:49] <RobboNZ> yeah good point i'll have to make it so that u can slot <anycoin> in to the gateway
168: [00:59:56] <Colin[pi]> such wow, much coin
169: [00:59:57] <RobboNZ> SilverstripeCoinz
170: [01:00:17] <RobboNZ> Colin, you should change ur name to Coinlin[pi]
171: [01:00:56] * MrT quit (Quit: Page closed)
172: [01:02:02] <RobboNZ> 1 mBTC is 0.001 bitcoins
173: [01:02:13] <RobboNZ> so the zeros dont matter
174: [01:02:39] <RobboNZ> you'll be payin in pico Bitcoins and Femto Bitcoins
175: [01:02:52] <RobboNZ> nano Bitcoins
176: [01:02:55] <RobboNZ> whatever
177: [01:07:18] <ss23> simon_w: cool, lots of cash :D
178: [01:07:26] <ss23> foul
179: [01:07:27] <ss23> ff
180: [01:07:30] <ss23> 13:52:27 < guzzlefry> Try paying for something using bitcoin when the power is out. :P
181: [01:07:36] <ss23> try to pay for something when eftpos is down
182: [01:07:52] <guzzlefry> eftpos what?
183: [01:08:56] <ss23> EFTPOS THE ALL
184: [01:08:59] <RobboNZ> try paying for something when the governmint have devalued ur currency
185: [01:09:17] <ss23> We will go back to barter system
186: [01:09:25] <ss23> Work will pay me in sheeps
187: [01:09:26] <ss23> Is this good?
188: [01:09:30] <guzzlefry> yes
189: [01:09:37] <guzzlefry> well, depends on climate
190: [01:09:43] <RobboNZ> yes sir, your beer will be 0.33 sheeps
191: [01:09:44] <guzzlefry> wool is good for cold
192: [01:09:57] <guzzlefry> and helping you sleep
193: [01:10:08] <ss23> RobboNZ: But I only have 4 rabbits!
194: [01:10:57] <RobboNZ> 4.47 rabbits = 1 sheeps
195: [01:11:56] <zippy__> Getting this weird error… Warning: Unknown class passed as parameter in /xxx/framework/core/Object.php on line 556
196: [01:12:01] <zippy__> works fine local, but not remove
197: [01:12:03] <zippy__> *remote
198: [01:12:09] <zippy__> blew away the cache folder, still fails
199: [01:12:17] <zippy__> I am 100% sure all files added
200: [01:12:55] <RobboNZ> drop the tables, see if it happens on an empty DB
201: [01:13:05] <RobboNZ> after a build
202: [01:14:45] <zippy__> O.o
203: [01:14:58] <zippy__> what would cause that?
204: [01:17:47] <RobboNZ> it work?
205: [01:17:48] <RobboNZ> no idea
206: [01:18:09] <RobboNZ> maybe u created an object, built, removed the code, then transfererd the DB
207: [01:18:14] <RobboNZ> or some shizzle
208: [01:21:01] <zippy__> yea it looks like that is what has happened
209: [01:21:32] <zippy__> I just dumped out a list of the classes it was trying to use, and there was one it was trying to use which didn't exist, sorted
210: [01:22:41] * OxFF1 quit (Ping timeout: 272 seconds)
211: [01:24:52] * Ryan-Toast has joined #silverstripe
212: [01:33:58] <RobboNZ> no worries, any time
213: [01:41:20] <variable_office> I have a gridfield - is there a way to tell whether the item currently open in the gridfield is a new creation or editing an existing object?
214: [01:43:07] <guzzlefry> Check in onBeforeWrite()?
215: [01:44:35] <variable_office> I need to do it before that, where I display the fieldlist. Because if it is a new relation I want to show all the fields, but if it is an edit, I want to show only the extraoptions fields
216: [01:44:54] <guzzlefry> oh
217: [01:44:58] <guzzlefry> in getCMSFields?
218: [01:45:02] <variable_office> yep
219: [01:45:18] <guzzlefry> I think you can still check for if ($this->ID)
220: [01:46:04] <variable_office> but that would do the parent wouldn't it, IE. that would check ID on the object setting the gridfield up?
221: [01:47:03] <guzzlefry> no
222: [01:47:37] <guzzlefry> variable_office: getCMSFields() is in the DataObject's class, so $this will refer to that instance.
223: [01:55:10] * UncleCheese quit (Quit: UncleCheese)
224: [01:55:42] * UncleCheese has joined #silverstripe
225: [01:56:23] <UncleCheese> are there any kiwis here?
226: [01:56:28] <ss23> of course
227: [01:56:29] <ss23> lol
228: [01:56:35] <UncleCheese> shocked
229: [01:56:44] <UncleCheese> I have to get something called a W.O.F. for my car
230: [01:56:50] <UncleCheese> what do I have to do?
231: [01:57:29] <ss23> Warrent of fitness
232: [01:57:30] <ss23> !
233: [01:57:31] <ss23> Um
234: [01:57:38] <ss23> Did you buy a car or what?
235: [01:57:51] <simon_w> UncleCheese, get it tested
236: [01:57:59] <ss23> And the certificate!
237: [01:58:01] <ss23> Or sticker, I guess
238: [01:58:01] <RobboNZ> are u new to NZ mr cheese?
239: [01:58:04] <variable_office> but I'm using singleton('xxx')->getCMSFields so ID would never be set yes?
240: [01:58:14] <RobboNZ> google VTNZ and take it to your nearest
241: [01:58:51] <RobboNZ> they will give you a W.O.F.
242: [02:00:12] <UncleCheese> which places are the ones that will just give you one
243: [02:00:23] <ss23> lol
244: [02:00:25] <ss23> you have to pay
245: [02:00:25] <ss23> lots
246: [02:00:26] <UncleCheese> and not just make up a bunch of stuff that is wrong with the car
247: [02:00:28] <simon_w> You can't just be given one. Your car needs to be checked
248: [02:00:33] <simon_w> VTNZ
249: [02:00:33] <UncleCheese> "checked"
250: [02:00:41] <ss23> VTNZ, yeah
251: [02:00:48] <UncleCheese> "Yeah, we're very sorry, sir.. you need new seats. That will be $2,200"
252: [02:00:49] <RobboNZ> VTNZ have no reason to fail you
253: [02:00:53] <ss23> UncleCheese: We have more raesonable laws in this country, remember :P
254: [02:00:55] <simon_w> UncleCheese, just because the US is swimming in corruption doesn't mean we are
255: [02:01:09] <guzzlefry> variable_office: I'm not familiar with that. :/
256: [02:01:10] <UncleCheese> not yet
257: [02:02:48] <UncleCheese> RobboNZ: is VTNZ pretty much a walk-in service? or do you need an appt?
258: [02:02:56] <RobboNZ> drive in bro
259: [02:03:00] <RobboNZ> yeah
260: [02:03:01] <UncleCheese> sweet as, bro
261: [02:03:04] <RobboNZ> just rock up
262: [02:03:11] <RobboNZ> dont take it sat morning
263: [02:03:25] <RobboNZ> aim for 10 am any week day
264: [02:03:29] <RobboNZ> i reckon
265: [02:03:35] <RobboNZ> should be front of the queue
266: [02:03:50] <ss23> psh
267: [02:03:55] <ss23> don't you have to ring up and book in?
268: [02:04:05] <RobboNZ> not at my VTNZ
269: [02:04:10] <UncleCheese> Adelaide road?
270: [02:04:15] * metanat has joined #silverstripe
271: [02:04:20] <RobboNZ> mines in Queenstown
272: [02:04:21] <ss23> UncleCheese: Oh I know that road
273: [02:04:22] <simon_w> Should just be a drive up
274: [02:04:25] <ss23> In fact, I probably know that VTNZ
275: [02:04:25] <ss23> :D
276: [02:04:28] <UncleCheese> killer
277: [02:04:50] <UncleCheese> "we're very sorry, sir.. your car is not fit for the road"
278: [02:04:51] <simon_w> Even trucks are just drive up, and there's only one of those in greater wellington
279: [02:05:02] <UncleCheese> "it seems it's the wrong colour"
280: [02:05:23] <simon_w> "No family decal"
281: [02:05:31] <UncleCheese> "luckily, we have a sale on paint jobs on right now."
282: [02:05:38] <RobboNZ> You also need registration as well mr. cheese
283: [02:05:44] <RobboNZ> that u can get online
284: [02:05:45] <UncleCheese> yeah, well that's the thing
285: [02:05:51] <UncleCheese> i can't get that until i get this WAF thing
286: [02:06:04] <RobboNZ> ah yeah
287: [02:06:12] <RobboNZ> what car u driving?
288: [02:06:17] <UncleCheese> FUNCARGO
289: [02:06:28] <UncleCheese> It's the fun car that goes
290: [02:06:36] <RobboNZ> oh shit
291: [02:06:42] <simon_w> UncleCheese, just wait until you need a COF :p
292: [02:06:47] <UncleCheese> hmm
293: [02:06:52] <RobboNZ> sorry sir, your gonna need a new chassis
294: [02:06:57] <UncleCheese> :(
295: [02:07:01] <UncleCheese> no funcargo love?
296: [02:07:24] <RobboNZ> ah wait a yaris
297: [02:07:30] <RobboNZ> you should be sweet with a toyota
298: [02:07:42] <UncleCheese> yeah, that's what it is
299: [02:07:49] <UncleCheese> it's gotta be like 50hp, though
300: [02:07:55] <UncleCheese> barely makes it up mt. vic
301: [02:08:00] <RobboNZ> they dont salty the road over here as well, so should be sweet for rust, unless u live unda da sea
302: [02:08:08] <UncleCheese> true
303: [02:08:14] <simon_w> It's Wellington
304: [02:08:20] <RobboNZ> u just moved over didya?
305: [02:08:23] <simon_w> Wind + sea
306: [02:08:30] <ss23> simon_w: wtf is a COF?
307: [02:08:39] <simon_w> ss23, certificate of fitness
308: [02:08:45] <ss23> I don't think I have heard of it
309: [02:08:52] <ss23> warrant and rego, good to go!
310: [02:09:00] <simon_w> Disappointing
311: [02:09:05] <RobboNZ> cert is when u have modified ur shizzle
312: [02:09:08] * metanat1 has joined #silverstripe
313: [02:09:14] <simon_w> Things that need COF > Things that need WOF
314: [02:09:20] <RobboNZ> raised ur truck or sommet
315: [02:09:38] <simon_w> RobboNZ, you know you don't really have a character limit here?
316: [02:09:55] <zippy__> lolz
317: [02:10:11] <RobboNZ> are u giving me shit for textspeak?
318: [02:10:24] <simon_w> No, I'm being nice about it ;)
319: [02:10:27] <RobboNZ> its like 3 times quicker to press u than type you
320: [02:10:40] <RobboNZ> and means i can add more meaningfull shizzle
321: [02:11:02] <ss23> sif it is
322: [02:11:08] <RobboNZ> some words are pretty ineffiecient IMHO
323: [02:11:09] <simon_w> Not really, since it takes longer to comprehend what you're saying
324: [02:11:18] <ss23> Unless you're horribly slow at typing, I can't imagine it being anywhere *near* 3x slow
325: [02:11:19] <RobboNZ> woah, maybe i should expand that acronym
326: [02:11:22] <ss23> slower*
327: [02:11:45] * mojo5000 quit (Remote host closed the connection)
328: [02:12:55] * metanat quit (Ping timeout: 245 seconds)
329: [02:14:35] <RobboNZ> sorry guys, i have a wealth of SS knowledge, but type in textspeak, so please press ignore if it hurts your eyes to read my shizzle
330: [02:15:33] <ss23> I don't care personally
331: [02:15:39] <ss23> My prefernce is typing properly, but *shrug*
332: [02:22:33] * UncleCheese quit (Quit: UncleCheese)
333: [02:26:36] <guzzlefry> well this is new: [User Error] Uncaught Exception: No has_one found on class 'Comment', the has_many relation from 'BlogEntry' to 'Comment' requires a has_one on 'Comment'
334: [02:27:14] <simon_w> guzzlefry, update the comment module
335: [02:27:54] <ss23> hmm
336: [02:28:00] <ss23> Yeah
337: [02:28:03] <ss23> Wasn't that a recent fix?
338: [02:28:07] <simon_w> Yup
339: [02:28:24] <guzzlefry> ok
340: [02:28:28] <guzzlefry> hold onto your butts...
341: [02:28:34] <simon_w> But then I can
342: [02:28:37] <simon_w> But then I can't type
343: [02:29:04] <guzzlefry> use your nose! :P
344: [02:29:17] <simon_w> Done that once
345: [02:29:20] <simon_w> Not fun :p
346: [02:29:24] <simon_w> Also, hard to aim
347: [02:31:13] <ss23> lol
348: [02:31:42] <guzzlefry> so basically, stuff that once worked is now broken...why? >_>
349: [02:31:54] <simon_w> You broke it!
350: [02:32:14] <ss23> lol
351: [02:32:15] <guzzlefry> I didn't mean to!
352: [02:33:17] <guzzlefry> 0.o
353: [02:33:43] <guzzlefry> Are the Facebook/Twitter/etc. buttons at the top something new, or have I just never noticed them? :P
354: [02:33:50] <guzzlefry> They could also be custom I guess...
355: [02:34:02] <simon_w> Top of what?
356: [02:34:07] <guzzlefry> blog entries
357: [02:34:47] <simon_w> Where?
358: [02:35:00] <simon_w> And they'll be custom
359: [02:35:14] <guzzlefry> okay, odd that I don't remember them.
360: [02:35:20] <guzzlefry> I am getting old though.
361: [02:47:07] <guzzlefry> Is there a way to combine FieldLists? I have three composite fields that I need to pass to RequiredFields::__contstruct()
362: [02:51:15] <guzzlefry> Guess I could just call appendRequiredFields() two times.
363: [02:51:50] <Colin[pi]> ->merge() ?
364: [02:51:55] <Colin[pi]> does that work on fieldlists?
365: [02:52:09] <simon_w> They're all in a FieldList right?
366: [02:52:10] <zippy__> can a theme have a - in it?
367: [02:52:41] <Colin[pi]> zippy: think so yes
368: [02:52:57] <zippy__> yeap :D
369: [02:52:58] <simon_w> new RequiredFields(array_keys($fields->dataFields()))
370: [02:52:59] <zippy__> was another issue
371: [02:55:57] <guzzlefry> simon_w: I have three CompositeFields and then a single HiddenField that I need to add. I figured I could just call CompositeField::FieldList() and pass it along.
372: [02:56:32] <simon_w> guzzlefry, you're sticking the CompositeFields and HiddenField into $fields though
373: [02:56:53] <Colin[pi]> hardware monitoring system your API is bad and you should feel bad
374: [02:56:54] <guzzlefry> yep, but some of $fields shouldn't be required.
375: [03:01:36] <guzzlefry> http://sspaste.com/paste/show/52d4a5c082870 meh :P
376: [03:01:51] <guzzlefry> I should make sure that actually works...
377: [03:02:07] <simon_w> RequiredFields needs a list of names
378: [03:03:26] <guzzlefry> That's what I'm passing it, I think? 0.o
379: [03:03:57] <simon_w> Yup
380: [03:04:46] <guzzlefry> yay, thanks simon_w
381: [03:05:02] <guzzlefry> I searched for probably 20 minutes last night, somehow missed dataFields().
382: [03:09:52] * UncleCheese has joined #silverstripe
383: [03:11:35] * b00mtastik has joined #silverstripe
384: [03:12:13] <b00mtastik> Hey doodes, has anyone ever used class constants for dataobjects? Or can you even?
385: [03:12:32] <simon_w> Yes
386: [03:13:46] <guzzlefry> Something odd is going on. When I call $validator->removeRequiredField("BillingAddressCity") it unsets a ton of others...
387: [03:14:13] <b00mtastik> Is there documentation regarding this, as in is there a silverstripe way of doing it, because I'm just using a constant in there now with just php, and its throwing an error.
388: [03:15:14] <guzzlefry> What's the error?
389: [03:16:11] <willr> b00mtastik tons of classes use constants, see Config / Form classes
390: [03:16:36] <simon_w> You just can't use them as default values for statics
391: [03:16:36] * simon_w glares at Hamish
392: [03:17:09] <guzzlefry> array_splice($this->required, $i);
393: [03:17:26] <guzzlefry> That removes everything from index $i onward in $this->required, right? :P
394: [03:18:24] <simon_w> yup
395: [03:18:33] <simon_w> Probably want a , 1
396: [03:19:08] <guzzlefry> Time to do my pull request thing. :P
397: [03:19:18] <simon_w> Don't forget a test :p
398: [03:19:43] <guzzlefry> I don't know how to write those! :(
399: [03:19:52] <simon_w> Time to learn!
400: [03:20:00] <guzzlefry> Although this is important enough to need a test...
401: [03:20:02] <simon_w> Also, you'd just be adding to the existing RequiredFields tests
402: [03:20:04] <guzzlefry> simon_w: Where do I start?!
403: [03:20:09] <guzzlefry> oh
404: [03:20:40] <guzzlefry> someone already fixed it.
405: [03:21:59] <simon_w> That's handy
406: [03:24:30] <guzzlefry> yay, it's in 3.1.2 as well.
407: [03:24:44] <RobboNZ> hey guys
408: [03:25:06] <RobboNZ> search context, have you ever wanted 1 box that searches lots of different fields?
409: [03:25:16] <RobboNZ> i want to do this, but am not sure
410: [03:25:46] <RobboNZ> as in i have title and content data fields, and i want 1 seach box from search context that will search both these fields
411: [03:28:07] <simon_w> SearchContext can't do that
412: [03:28:14] <simon_w> You'll need to do your own handling
413: [03:28:23] <RobboNZ> ah ok, thanks
414: [03:28:57] <b00mtastik> I think I should probably clear up where I'm trying to put the constants, I have fields that I'm storing that are enums, but they all have the same enum list that gets presented to the user, part of a rating system, same rating, different areas to rate.
415: [03:29:17] <b00mtastik> I was trying to use a constant to only have to list those enum options once, and then spread it out to all the fields that might need to use it.
416: [03:29:47] <b00mtastik> The error I got was that the class doesn't exist, using self::OPTIONS and even tried CustomClass::OPTIONS
417: [03:30:16] <b00mtastik> There could actually be a much better way of doing a rating system I guess, I just haven't thought of it yet...
418: [03:30:33] <guzzlefry> oh boy
419: [03:30:57] <guzzlefry> So in 3.1.2 required fields now glow red rather than having error text?
420: [03:31:08] <guzzlefry> And CreditCardField isn't being marked in any visual way. -_-
421: [03:32:31] <guzzlefry> oh nevermind, they must've added some javascript validation. :P
422: [03:34:40] * willr quit (Quit: willr)
423: [03:42:12] <Ryan-Toast> VM'd into a workmates computer then used the say command in the terminal to get it to talk to them.
424: [03:42:20] <Ryan-Toast> The look of confusion is hilerious.
425: [03:42:47] <Colin[pi]> LOL
426: [03:42:55] <Colin[pi]> done that before too, so funny
427: [03:46:42] <guzzlefry> a bug a bug!
428: [03:46:53] <Colin[pi]> my kingdom for a bug
429: [03:47:06] <simon_w> He IS the messiah!
430: [03:47:42] <guzzlefry> at least I think so
431: [03:47:54] * mobiusnz`home has joined #silverstripe
432: [03:48:05] * UncleCheese quit (Quit: UncleCheese)
433: [03:48:28] <guzzlefry> simon_w: FormField::validate() and overridden versions need to return true for the form logic to actually continue, right?
434: [03:48:41] <simon_w> No
435: [03:49:04] <simon_w> They need to not set any errors on the validation object
436: [03:49:14] <guzzlefry> okay...something is off.
437: [03:49:43] <guzzlefry> Let me restate...
438: [03:49:58] <guzzlefry> validate() should return true if the object actually validates, right? :P
439: [03:50:15] <simon_w> DataObject subclass?
440: [03:50:26] <guzzlefry> FormField subclass
441: [03:50:37] <guzzlefry> Specifically CreditCardField.
442: [03:51:12] <simon_w> No. The return value from validate() on a FormField is ignored as is the return value from php() on a Validator object
443: [03:52:01] <guzzlefry> That's confusing. -_-
444: [03:53:24] <simon_w> You set validation errors on the Validator object instead
445: [03:53:29] <guzzlefry> So I shouldn't be doing this in my custom validator?: if (!parent::php($data)) {
446: [03:54:10] <simon_w> Not really
447: [03:54:16] <guzzlefry> How should I approach it?
448: [03:54:25] <simon_w> parent::php($data);
449: [03:54:32] <guzzlefry> oh.. :P
450: [03:54:49] <guzzlefry> thanks
451: [03:55:21] <simon_w> If you don't want to do any custom validation of RequiredFields fails, parent::php($data); if(!$this->getErrors()) {
452: [03:55:31] <simon_w> *if RequiredFields
453: [03:56:22] <guzzlefry> yay
454: [03:57:17] <guzzlefry> So why bother returning false on CreditCardField::validate()? Should I just add return true at the end for consistency's sake?
455: [03:57:43] <simon_w> So it exits early
456: [03:57:46] <simon_w> If you want
457: [03:59:49] * DigNZ quit (Quit: DigNZ)
458: [04:00:31] * DigNZ has joined #silverstripe
459: [04:01:10] * DigNZ quit (Client Quit)
460: [04:02:02] <chrisrio> the shit is a doofer?
461: [04:02:11] <chrisrio> boom wrong window.
462: [04:02:18] <chrisrio> go about your lives citizens.
463: [04:02:21] <simon_w> It holds your burger!
464: [04:02:26] <chrisrio> it does not
465: [04:02:30] <chrisrio> dont be ridiculous
466: [04:02:30] <simon_w> Does too
467: [04:02:44] <chrisrio> what human has such poor quality hands
468: [04:02:48] <simon_w> Don't argue with the truth
469: [04:02:49] <chrisrio> that they cannot hold a burger
470: [04:03:01] <simon_w> It's to collect the juices and insides that fall out
471: [04:03:03] <chrisrio> is this an American thing where a burger is 12 kilo?
472: [04:03:11] <chrisrio> thats what a face is for, sir.
473: [04:04:10] <guzzlefry> We have plates to collect the juices and insides.
474: [04:04:34] <chrisrio> flash guy over there.
475: [04:04:40] <simon_w> Plates for a burger?
476: [04:04:59] <chrisrio> do you also have burger eating slacks?
477: [04:05:01] <guzzlefry> depends on where you buy it actually.
478: [04:05:24] <guzzlefry> There's typically a wrapper regardless.
479: [04:06:01] <guzzlefry> hungry now :/
480: [04:06:06] <ss23> Burgerfuel burgers are too big to use your hands!
481: [04:06:16] <simon_w> ss23 also has pansy hands
482: [04:06:27] <RobboNZ> i have a burger jacket
483: [04:06:29] <ss23> wtf no
484: [04:06:35] <ss23> u r lying
485: [04:06:39] * UncleCheese has joined #silverstripe
486: [04:06:41] <guzzlefry> ss23: use a grilling fork
487: [04:07:44] <chrisrio> ss23: he is, but its all he knows.
488: [04:08:36] <guzzlefry> hrm, I have further questions! When form validation fails it goes back to the form with values filled in. Is there any way to change those field values?
489: [04:08:41] <RobboNZ> is burgerfuel better than Fergburger?
490: [04:08:42] * metanat1 quit (Quit: Leaving.)
491: [04:08:57] <chrisrio> dont be ridiculous RobboNZ
492: [04:09:20] * cloph_away has joined #silverstripe
493: [04:09:33] <ss23> What is fergburger
494: [04:09:36] * cloph quit (Ping timeout: 252 seconds)
495: [04:10:28] <RobboNZ> ss23 its a burger shop with a huge international following
496: [04:14:03] <Colin[pi]> never heard of it D:
497: [04:14:20] <chrisrio> its a cool person thing
498: [04:14:21] <chrisrio> gais
499: [04:15:32] * nickmolhoek quit (Quit: nickmolhoek)
500: [04:16:40] <guzzlefry> Any ideas? Something seems to be overwriting the formfield's value with the previous post data after I return new Form();
501: [04:19:50] <variable_office> anyone have an idea for how I can display different in gridfield whether editing or adding an object
502: [04:19:51] <variable_office> ?
503: [04:19:58] <RobboNZ> might be in the session?
504: [04:20:12] * Ryan-Toast quit (Quit: Ryan-Toast)
505: [04:21:04] <RobboNZ> variable_office the ID will not be set for a new object, so should be able to test for that and display differently
506: [04:23:49] <variable_office> RobboNZ, yes, but i mean on the object that is being added. IE. I have a recipe that is adding an ingredient. I want all the fields to display ONLY if a new ingredient is being added. How would I check for the ID of the ingredient when the cmsfields() is in recipe?
507: [04:26:55] <RobboNZ> i'm not sure, there is too much ambiguity in your quiestion, you might have better luck pasting your code onto the forum maybe
508: [04:28:48] <variable_office> RobboNZ, maybe this would help: In the gridfield you can either add a new object or add a relation to an existing one. I need to know whether it is an existing object being added or a new object. Does that help any?
509: [04:30:04] <RobboNZ> but there is no form shown when you add an existing object
510: [04:30:24] <variable_office> There is for me because I am using manymany extrafields
511: [04:30:35] <variable_office> I want those extrafields displayed irregardless
512: [04:31:19] <RobboNZ> ah ok you're out of my area of expertise sorry!
513: [04:33:25] <RobboNZ> I'd look at the gridfield class and find where the form is generated and see if you can override it
514: [04:34:41] <simon_w> variable_office, the getCMSFields() is in Ingredient
515: [04:35:01] <variable_office> simon_w, yes
516: [04:35:20] <simon_w> variable_office, you can check $this->ID there
517: [04:39:45] <variable_office> simon_w, but it is just using singleton("Ingredient")->getCMSFields() so the ID will always be null correct?
518: [04:41:03] <simon_w> variable_office, GridField doesn't use singletons
519: [04:41:49] * UncleCheese quit (Quit: UncleCheese)
520: [04:42:07] <variable_office> simon_w, this might help --> http://pastebin.ca/2536515
521: [04:43:20] <simon_w> variable_office, do you have any other interface for editing ingredients?
522: [04:43:40] <variable_office> yes
523: [04:44:00] <variable_office> but I could pass a variable to cmsfields if it is that other variable
524: [04:44:35] <variable_office> (like how I have that true) going there
525: [04:46:38] <simon_w> variable_office, pass a closure into setItemEditFormCallback() on the GridFieldDetailForm to add in the ManyMany fields, then use if($this->ID) in the Ingredient's getCMSFields(). Doesn't set the fields explicitly on the GridFieldDetailForm.
526: [04:48:07] <variable_office> I'm not familiar with setItemEditFormCallback() would you happent to have a good example using it?
527: [04:48:38] <simon_w> Nope. You pass it a closure, that closure gets passed the form object
528: [04:50:51] <Colin[pi]> my outside weather station has apparently stopped sending a signal, that can't be a good sign
529: [04:57:53] <guzzlefry> Do I need to subclass Form to actually change the form field values that get loaded on error?
530: [04:59:36] * simon_w quit (Quit: This computer has gone to sleep)
531: [05:00:37] * travis-ci has joined #silverstripe
532: [05:00:37] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#698 (master - c608282 : Will Rossiter): The build has errored.
533: [05:00:37] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/07033548fc05...c6082827dc25
534: [05:00:37] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/16912268
535: [05:00:37] * travis-ci has left #silverstripe
536: [05:06:18] * JP has joined #silverstripe
537: [05:13:47] <JP> I have a HasMany (ObjectA) table field and in the fieldlist are db values as expected. ObjectA mays have one ObjectB. Is it possible to include in the fieldlist a boolean representation of this, like a disabled checkbox or literal strings like yes or no?.
538: [05:25:35] * chrisrio quit (Quit: Page closed)
539: [05:33:29] * travis-ci has joined #silverstripe
540: [05:33:29] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1790 (3.1 - 9b5a9af : Will Rossiter): The build passed.
541: [05:33:29] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/e302793bda6b...9b5a9afe2be7
542: [05:33:29] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/16912754
543: [05:33:29] * travis-ci has left #silverstripe
544: [05:34:34] <JP> you know it would be so cool if there was a way
545: [05:37:03] <JP> Maybe I am not clear enough.....
546: [05:37:13] <JP> I'll try again
547: [05:43:44] <JP> The 4th arg of HasManyComplexTableField takes an array( 'FIELDNAME' => 'FIELDTITLE'). Is it possible to call a function returning a conditional value instead of giving the field name?
548: [05:44:55] <JP> sorry its array('FIELDNAME' => 'SUMMARY_FIELDTITLE')
549: [05:57:14] * Liquide quit ()
550: [06:01:43] * RobboNZ quit (Ping timeout: 272 seconds)
551: [06:04:35] * simon_w has joined #silverstripe
552: [06:10:20] * SightUnseen has joined #silverstripe
553: [06:10:39] * SightUnseen has left #silverstripe
554: [06:21:20] * learner_ has joined #silverstripe
555: [06:24:41] <guzzlefry> okay, so far it looks like the old form data is stored in session and then loaded from it?
556: [06:27:52] <JP> are you talking about the same form as yesterday?
557: [06:29:00] <guzzlefry> possibly :P
558: [06:29:02] <guzzlefry> different issue
559: [06:29:20] <guzzlefry> JP: Was I going on about some order checksum?
560: [06:29:46] <JP> okay, /I see
561: [06:30:21] <guzzlefry> I may have figured it out finally. :)
562: [06:31:05] <JP> I remember having some trouble with forms and redirection, the handler redirects itself which I found a pain at the time, I can't remember what is was tho
563: [06:31:51] <guzzlefry> It's not redirection at the moment. I'm trying to figure out how to change form field values when the form reloads after an error.
564: [06:37:24] * willr has joined #silverstripe
565: [06:39:02] <JP> hmm, not sure about that code path but I find myself driving forms on the client side more and more
566: [06:41:27] <learner_> how to debug using debug::log(); ?
567: [06:43:09] <guzzlefry> learner_: call it where and when you need information.
568: [06:43:30] <guzzlefry> Then it goes into the debug.log file.
569: [06:45:09] <learner_> actually i want to know whether i am getting some value or not in $data = Name::get()->byID($id); ?
570: [06:45:21] <learner_> will debug answer that?
571: [06:46:52] <learner_> where is debug.log file located?
572: [06:52:15] <JP> have you tried debug::log(Name::get()->byID($id)); I think its in the htdocs parent folder
573: [06:54:14] <simon_w> Debug's in framework/dev/Debug.php
574: [06:55:54] <JP> simon did you see my earlier question?
575: [06:56:58] <JP> The 4th arg of HasManyComplexTableField takes an array( 'FIELDNAME' => 'SUMMARY_FIELDTITLE'). Is it possible to call a function returning a conditional value instead of giving the field name?
576: [06:57:52] <simon_w> JP, fairly sure it goes through the getBlah() magic stuff
577: [06:57:55] <simon_w> Also, upgrade :p
578: [06:59:17] <JP> okay I have not looked into it yet :\
579: [07:04:00] * joelpittet has joined #silverstripe
580: [07:05:29] * Vik has joined #silverstripe
581: [07:12:55] * zippy__ quit (Ping timeout: 260 seconds)
582: [07:24:30] <guzzlefry> well, that didn't work. :/
583: [07:24:44] <guzzlefry> This shouldn't be this damn difficult. :P
584: [07:31:16] <guzzlefry> Trying this in the form method doesn't seem to work: Session::set("FormInfo.{$form->FormName()}.data.OrderChecksum", $orderChecksum);
585: [07:31:18] * Azure quit (Quit: My MBP went to sleep.)
586: [07:35:55] * Azure has joined #silverstripe
587: [07:36:17] <guzzlefry> k so, Is this just not possible with the default Form class? So I'm not wasting 3 more hours looking for it. :(
588: [07:43:23] <simon_w> guzzlefry, what are you trying to do?
589: [07:44:33] * Azure quit (Ping timeout: 265 seconds)
590: [07:44:36] <simon_w> And I have a feeling my response is going to be "Look what Form does in httpSubmission in the if(!$this->validate()) block"
591: [07:45:17] <guzzlefry> simon_w: When the form fails validation and it posts back and fills in all of the forms, I want to change what's in one of the fields.
592: [07:45:33] <simon_w> guzzlefry, in your validator?
593: [07:46:02] <guzzlefry> anywhere possible really
594: [07:46:25] <guzzlefry> I figured since the field is dynamically populated in my method that returns new Form, that this would be a non-issue...
595: [07:47:10] <simon_w> $this->form->Fields()->dataFieldByName('blah')->value = 'Blah';
596: [07:47:24] * Stomach quit (Ping timeout: 252 seconds)
597: [07:48:47] <guzzlefry> yay
598: [07:48:50] <guzzlefry> thanks
599: [07:49:40] <guzzlefry> man
600: [07:49:57] <guzzlefry> Why is it that things in SilverStripe take forever to find but end up being insanely simple? :P
601: [07:51:00] <guzzlefry> simon_w: is setValue() better to use?
602: [07:51:17] <simon_w> It gets called
603: [07:51:27] <guzzlefry> ah
604: [07:58:42] * Azure has joined #silverstripe
605: [08:05:13] * learner_ quit (Ping timeout: 272 seconds)
606: [08:12:51] * hubertusanton quit (Remote host closed the connection)
607: [08:17:24] * ocm has joined #silverstripe
608: [08:17:26] <ocm> howdy!
609: [08:19:00] <guzzlefry> hello!
610: [08:23:09] * willr quit (Quit: willr)
611: [08:38:57] * ARNHOE has joined #silverstripe
612: [08:51:28] * ShaggyStyle has joined #silverstripe
613: [08:53:57] * joelpittet quit (Remote host closed the connection)
614: [08:54:24] * joelpittet has joined #silverstripe
615: [08:58:51] * joelpittet quit (Ping timeout: 260 seconds)
616: [08:59:09] * Sj0hn has joined #silverstripe
617: [09:06:21] * kinglozzer has joined #silverstripe
618: [09:07:46] <Sj0hn> Is it possible/easy to turn of finding files within the full-search function of silverstripe?
619: [09:16:35] <simon_w> Sj0hn, FulltextSearchable::enable('SiteTree');
620: [09:17:59] <Sj0hn> Thanks :)
621: [09:18:05] * spronk2 has joined #silverstripe
622: [09:18:06] <Sj0hn> that was pretty easy xD
623: [09:30:39] * lewellyn quit (Ping timeout: 276 seconds)
624: [09:36:30] * micmania1 has joined #silverstripe
625: [09:46:17] <kinglozzer> micmania1: Opinion on Gutierrez? Haven't seen much of him on MOTD for ages
626: [09:47:06] <micmania1> he's past it
627: [09:47:34] <micmania1> All last season he was crap. He still has the odd decent game in him
628: [09:49:46] <kinglozzer> Ah shit, thought there was probably a reason he hadn't played
629: [10:05:18] * g4b0_ has joined #silverstripe
630: [10:07:54] * joelpittet has joined #silverstripe
631: [10:09:16] * Azure quit (Ping timeout: 272 seconds)
632: [10:09:59] * ShaggyStyle quit (Ping timeout: 272 seconds)
633: [10:10:25] <micmania1> kinglozzer, apparently he has a clause in his contract which is activated if he plays once more. Mike Asley style that.
634: [10:10:52] * unculture has joined #silverstripe
635: [10:11:05] <Sj0hn> any ever had problem with 301 redirect within silverstripe's htacces? its does the following "/new_url/?url=/old_url.html" (its adds the ?url=/old_url.html)
636: [10:11:20] <kinglozzer> micmania1: You mean if he plays for Newcastle once more? Like a bonus or something?
637: [10:11:26] <micmania1> yep
638: [10:11:34] <micmania1> not sure if its true but it wouldn't surprise me.
639: [10:12:22] * joelpittet quit (Ping timeout: 248 seconds)
640: [10:12:37] <kinglozzer> Haha, reminds me of what Puncheon said about Neil Warnock - players he signs get appearance bonuses, so he plays them and they pay him some of the appearance bonus :P
641: [10:13:11] * violetina has joined #silverstripe
642: [10:22:55] * simon_w quit (Ping timeout: 272 seconds)
643: [10:23:23] * simon_w has joined #silverstripe
644: [10:51:15] * ocm quit (Ping timeout: 276 seconds)
645: [10:56:08] * r3v3rb has joined #silverstripe
646: [10:56:22] <r3v3rb> kinglozzer: you around?
647: [10:56:36] <r3v3rb> good morning everyone by the way :)
648: [10:56:43] <kinglozzer> r3v3rb: I am
649: [10:57:11] <r3v3rb> did you get the image attachment/cid working for emails last week?
650: [10:57:50] <r3v3rb> I've got to do a responsive email template today and wonder if have the images attached will make life easier...
651: [10:59:27] <kinglozzer> r3v3rb: It won't be any easier :P I got it working, but it didn't solve my issue and it was a pain in the arse to implement
652: [10:59:37] <kinglozzer> You've got to write a custom Mailer class
653: [10:59:54] <r3v3rb> ok, I'll stick with server side imagery
654: [10:59:59] <r3v3rb> thanks kinglozzer
655: [11:00:03] <kinglozzer> Np
656: [11:00:39] <r3v3rb> As I already use a ProcessedMail class extending the Mailer class and Emogrifier I don't want to confuse things much more
657: [11:04:36] * lewellyn has joined #silverstripe
658: [11:05:49] <r3v3rb> is it best to extend a class or make an extension to add functionality to onAfterWrite for example?
659: [11:06:49] <r3v3rb> I want my comment to send an email when a new comment is added to a dataobject in the course...
660: [11:10:38] <kinglozzer> r3v3rb: Personal preference I guess, I'd probably use onAfterWrite() personally
661: [11:11:07] <r3v3rb> kinglozzer: yes, but by extending or extension
662: [11:11:25] <kinglozzer> r3v3rb: Sorry, extension
663: [11:11:28] <r3v3rb> sure
664: [11:11:54] <kinglozzer> I thought you meant onAfterWrite() vs overloading write or something :P
665: [11:12:07] <kinglozzer> But I'd always go for an extension if possible
666: [11:12:14] <r3v3rb> anything in that extension is then a part of the original am I right?
667: [11:12:26] <kinglozzer> If you extend a DataObject class it's adding a extra classes to the database etc
668: [11:12:29] <r3v3rb> don't really use extensions that much
669: [11:12:57] <r3v3rb> so extending a class that is already an extension of a dataextension should be fine?
670: [11:13:13] <kinglozzer> r3v3rb: "anything in that extension is then a part of the original am I right?" - how do you mean?
671: [11:13:22] <r3v3rb> nevermind ;)
672: [11:20:16] <r3v3rb> hmm, what table holds the relation for a comment to a dataobject? I cannot find anything in my mysql db to tell me how a comment is related to my message class
673: [11:23:04] <r3v3rb> got it, its the ParentID of the BaseClass in the db I think
674: [11:23:23] <kinglozzer> r3v3rb: Is it a has_many >< has_one or a many_many?
675: [11:23:35] <kinglozzer> Yeah it'll be SomethingID if it's a has_many/one
676: [11:23:37] <r3v3rb> neither it seems
677: [11:24:16] <r3v3rb> the comment stores the BaseClass you have associated the comment to and then the parentID of that entry in the BaseClass
678: [11:24:41] <kinglozzer> ParentID == SomethingID :P
679: [11:25:00] <r3v3rb> so no extra table required
680: [11:25:03] * spronk2 quit (Quit: spronk2)
681: [11:25:17] <kinglozzer> Yup, only many_many needs a join table
682: [11:25:39] <r3v3rb> got it
683: [11:32:44] <r3v3rb> ok errors ahoy!
684: [11:33:49] <r3v3rb> in the extension this: fb::log($this->ID); results in an error of $ID is an undefined property
685: [11:33:59] <r3v3rb> in onAfterWrite()
686: [11:34:11] <kinglozzer> r3v3rb: $this->owner->ID
687: [11:34:18] <r3v3rb> kinglozzer: thanks again
688: [11:35:19] * g4b0_ quit (Ping timeout: 246 seconds)
689: [11:35:37] <r3v3rb> however, fb::log doesn't log anything :(
690: [11:35:48] <r3v3rb> but the site doesn't break so thats progress ;)
691: [11:36:10] <kinglozzer> r3v3rb: Debug::log() the ID and see if anything shows up?
692: [11:37:18] <r3v3rb> nope nothing
693: [11:38:12] <kinglozzer> r3v3rb: Debug::log($this->owner); ?
694: [11:38:14] <r3v3rb> print_r did something but then refreshed the page
695: [11:38:28] <r3v3rb> so I didn't catch the output
696: [11:38:29] <kinglozzer> You're looking in the log file, right? :P
697: [11:38:36] <r3v3rb> of course
698: [11:38:38] <r3v3rb> ;)
699: [11:38:41] <r3v3rb> :P
700: [11:45:09] * Colin[pi] quit (Ping timeout: 248 seconds)
701: [11:48:42] <r3v3rb> hmm, no error logs generated
702: [11:49:01] <r3v3rb> even when using Debug::log($this->owner);
703: [11:50:57] * mobiusnz`home quit (Quit: Leaving.)
704: [11:51:10] <r3v3rb> okay found it, its buried in framework for some reason :)
705: [11:55:07] <kinglozzer> r3v3rb: Yeah that's happened to me a few times, no idea what causes that ><
706: [11:55:34] <r3v3rb> odd
707: [11:55:52] <r3v3rb> just changed the path and now its lost in the system somewhere...
708: [11:56:41] * joelpittet has joined #silverstripe
709: [12:01:15] * joelpittet quit (Ping timeout: 245 seconds)
710: [12:08:36] <r3v3rb> holy crap - it works!
711: [12:10:17] * r3v3rb pats $self::onBack();
712: [12:12:12] * artemb has joined #silverstripe
713: [12:13:54] <artemb> Hi! I have a problem with silverstripe 3.1 which is perfectly summarised here: http://www.silverstripe.org/installing-silverstripe/show/25183. Can anyone please suggest a probable reason / solution to this? I would much appreciate it.
714: [12:19:44] <r3v3rb> artemb: this wont be a problem on a remote server - it can be an issue when viewing locally though
715: [12:19:48] <kinglozzer> artemb: Try renaming index.php to index.php.old or something
716: [12:20:55] <artemb> kinglozzer: This trick worked! Thank you!
717: [12:20:58] <kinglozzer> Some host configurations always look for an index.php file, even when mod_rewrite tells it not to
718: [12:21:01] <artemb> r3v3rb: I wonder why is that?
719: [12:21:11] <r3v3rb> see kinglozzer above
720: [12:21:23] <artemb> Oh, so is it apache's configuration?
721: [12:21:24] <kinglozzer> If mod_rewrite is working, you don't need index.php anyway :)
722: [12:21:43] <kinglozzer> artemb: Not sure what it is, but it's a common problem
723: [12:22:14] <artemb> Weird. Well, at least it is fixed now. Thanks again!
724: [12:27:30] <r3v3rb> ugh opening DW for the first time in two years - wish me luck
725: [12:46:16] <micmania1> anybody setup their custom packagist?
726: [12:51:29] <Zauberfisch> micmania1: why would you want to do that?
727: [12:51:49] <micmania1> Zauberfisch, private repo's.
728: [12:52:27] <kinglozzer> micmania1: Custom packagist?
729: [12:52:47] <micmania1> private packagist*
730: [12:53:02] <Zauberfisch> micmania1: I have used a private repo as dependency in a project already
731: [12:53:09] <Zauberfisch> you don't need a private packagist for that
732: [12:53:51] <micmania1> I know. I didn't set it up.
733: [12:54:08] <micmania1> But, we now have a private packagist, I just need to know how to point composer to it
734: [12:54:51] <micmania1> I did advise to go for the simpler approach btw... :)
735: [12:58:08] <micmania1> I'm just going to do it the easy way. Too much overkill...
736: [12:59:07] <Zauberfisch> http://getcomposer.org/doc/05-repositories.md#hosting-your-own
737: [12:59:12] <Zauberfisch> it speaks of hosting your own
738: [12:59:20] <Zauberfisch> but I see not mention how to make composer use yours
739: [13:00:50] <Zauberfisch> micmania1:
740: [13:01:47] * stefandpunkt has joined #silverstripe
741: [13:02:43] <micmania1> https://github.com/composer/composer/blob/master/src/Composer/Config.php#L43 - Think I found it.
742: [13:02:54] <Zauberfisch> composer config -g "repositories.packagist.url" "https?://your-own-packagist.org"
743: [13:03:00] <Zauberfisch> thats what I got so far
744: [13:03:00] * stefandpunkt quit (Client Quit)
745: [13:03:03] <Zauberfisch> its just not working
746: [13:03:26] <Zauberfisch> what you could do is:
747: [13:03:26] * stefandpunkt has joined #silverstripe
748: [13:03:31] <Zauberfisch> composer config -ge
749: [13:03:35] <Zauberfisch> this will open an editor
750: [13:04:44] * stefandpunkt quit (Client Quit)
751: [13:04:56] * stefandpunkt has joined #silverstripe
752: [13:05:41] <Zauberfisch> and make it look something like this: http://paste2.org/hkPmBdwF
753: [13:05:55] * UndefinedOffset has joined #silverstripe
754: [13:06:16] <micmania1> cool, thanks Zauberfisch.
755: [13:08:11] <Zauberfisch> micmania1: to see if it worked you can do:
756: [13:08:14] <Zauberfisch> composer config -l
757: [13:08:18] <Zauberfisch> will list all config
758: [13:10:38] <micmania1> it didn't work setting it globally, but its probably because my project is being ran as a different user.
759: [13:10:57] <micmania1> I can set the config on just that project through in my composer.json file which *should* work
760: [13:12:30] <micmania1> done: )
761: [13:17:37] * g4b0_ has joined #silverstripe
762: [13:21:59] * spronk has left #silverstripe
763: [13:22:13] * Sj0hn quit (Ping timeout: 248 seconds)
764: [13:23:59] * spronk has joined #silverstripe
765: [13:31:52] * unculture quit (Ping timeout: 246 seconds)
766: [13:34:54] * Sj0hn has joined #silverstripe
767: [13:35:44] <micmania1> about to composer update... here it goes...
768: [13:44:28] <micmania1> argggh! no luck.
769: [13:45:29] * joelpittet has joined #silverstripe
770: [13:47:02] <Zauberfisch> (micmania1: I was just guessing, I could be wrong)
771: [13:50:05] * joelpittet quit (Ping timeout: 246 seconds)
772: [13:51:17] * stefandpunkt quit (Ping timeout: 272 seconds)
773: [13:51:31] <micmania1> I don't think its looking at my packagist. sucks.
774: [13:52:18] * spronk has left #silverstripe
775: [13:59:39] * spronk has joined #silverstripe
776: [14:00:46] * r3v3rb quit (Quit: r3v3rb)
777: [14:03:59] <micmania1> composer config -g repositories.packagist.url composer http://mypackagist.com
778: [14:04:12] <micmania1> that works. just got a few server issues now.
779: [14:06:23] * spronk has left #silverstripe
780: [14:06:39] * g4b0_ quit (Ping timeout: 252 seconds)
781: [14:07:18] * unculture has joined #silverstripe
782: [14:08:36] * spronk has joined #silverstripe
783: [14:09:24] * r3v3rb has joined #silverstripe
784: [14:18:37] * g4b0_ has joined #silverstripe
785: [14:23:46] <r3v3rb> quicky! How can I strip [embed] code when sending data to a Mail message
786: [14:24:37] <r3v3rb> if my client adds a youtube link for example the mailer produces: [embed width="480" height="270" class="leftAlone" thumbnail="http://i1.ytimg.com/vi/QXZ1ZV_t1jk/hqdefault.jpg?
787: [14:39:15] * simon_w quit (Ping timeout: 265 seconds)
788: [14:39:46] * simon_w has joined #silverstripe
789: [14:41:14] <r3v3rb> simon_w: good evening
790: [14:41:25] <r3v3rb> it must be very late there
791: [14:41:45] <r3v3rb> unless simon_w is a drone and I'm talking to myself :D
792: [14:48:02] * ObiWanShanobi has joined #silverstripe
793: [14:49:56] * r3v3rb quit (Quit: r3v3rb)
794: [15:07:11] * g4b0_ quit (Ping timeout: 272 seconds)
795: [15:33:46] * joelpittet has joined #silverstripe
796: [15:38:51] * joelpittet quit (Ping timeout: 272 seconds)
797: [15:41:36] * g4b0_ has joined #silverstripe
798: [15:51:31] * r3v3rb has joined #silverstripe
799: [16:09:48] <r3v3rb> hello anyone home?
800: [16:17:30] * Sj0hn quit (Ping timeout: 245 seconds)
801: [16:20:48] * ARNHOE quit ()
802: [16:56:12] * JP quit (Quit: Page closed)
803: [17:03:39] * g4b0_ quit (Quit: Sto andando via)
804: [17:06:40] * simon_w quit (Ping timeout: 265 seconds)
805: [17:07:16] * simon_w has joined #silverstripe
806: [17:22:11] * joelpittet has joined #silverstripe
807: [17:27:15] * joelpittet quit (Ping timeout: 272 seconds)
808: [17:31:28] * kinglozzer quit ()
809: [17:46:27] * mojo5000 has joined #silverstripe
810: [17:47:24] * joelpittet has joined #silverstripe
811: [17:55:45] * Sj0hn has joined #silverstripe
812: [18:07:37] * mojo5000 quit (Remote host closed the connection)
813: [18:10:23] * mojo5000 has joined #silverstripe
814: [18:18:16] * guest1234 has joined #silverstripe
815: [18:19:03] <guest1234> is the SortableGridfield module still the best way to get drag & drop for dataobjects in ss3?
816: [18:23:34] * gelignite has joined #silverstripe
817: [18:27:53] * r3v3rb quit (Quit: r3v3rb)
818: [18:30:38] <guzzlefry> I've heard better suggestions for it, but I can't remember offhand.
819: [18:30:47] <guzzlefry> maybe I can find the logs.
820: [18:36:25] * mobiusnz`home has joined #silverstripe
821: [18:39:07] <simon_w> Maybe I can go away for the weekend!
822: [18:39:11] <simon_w> Oh right, I am :D
823: [18:42:51] * unculture quit (Ping timeout: 265 seconds)
824: [18:43:27] * Pyromanik has joined #silverstripe
825: [18:45:34] <Pyromanik> devops
826: [18:45:35] <Pyromanik> hmm
827: [18:45:37] <Pyromanik> what do?
828: [18:45:50] <Pyromanik> halp halp, someone explain this nonsense to me :/
829: [18:45:58] <Pyromanik> irogue23, do you not holiday still?
830: [18:46:10] <Pyromanik> ss23, wake up and explain devops to me
831: [18:48:12] <simon_w> Pyromanik, the stuff in-between sysadmin and developer
832: [18:48:32] <simon_w> Looks after the software side of things
833: [18:51:26] * ObiWanShanobi quit (Remote host closed the connection)
834: [18:53:52] * ObiWanShanobi has joined #silverstripe
835: [18:56:00] <Pyromanik> simon_w, so like proper developer or something?
836: [18:56:48] * ObiWanShanobi quit (Remote host closed the connection)
837: [18:57:08] <simon_w> No, developer writes the code. Devops deploys and stuff
838: [18:57:22] <Pyromanik> oic. for example wtf is this all about http://www.performancehorizon.com/whatwedo ?
839: [18:58:04] <simon_w> Google Analytics competitor?
840: [18:59:07] <Pyromanik> seems like it yeh
841: [18:59:43] <Pyromanik> 'opps oriented' ? So is that more deployment than... dev?
842: [19:00:14] <simon_w> Operations, yeah
843: [19:01:04] <Pyromanik> so that'd be like... fine tuning AWS instances and stuff for more speed, etc?
844: [19:01:11] <simon_w> Yeah
845: [19:01:18] <simon_w> The fun stuff :D
846: [19:01:34] <Pyromanik> hmm, not sure if convinced...
847: [19:01:51] <simon_w> I'm bored of developing :p
848: [19:04:00] * SphereSilverNL has joined #silverstripe
849: [19:08:24] <Pyromanik> sup simon
850: [19:08:42] <SphereSilverNL> Not much, just debugging my website :(
851: [19:09:03] <Pyromanik> laguna casa?
852: [19:09:15] <SphereSilverNL> Nope, a movie-website of mine, filmsvandaag
853: [19:09:26] <SphereSilverNL> It used to have almost 200 visitors/day
854: [19:09:35] <SphereSilverNL> suddenly, it's hardly at 40 right now :(
855: [19:10:20] <SphereSilverNL> Ow, and rewriting for the fun of it. One function broke into two. From 190 to 24 lines :D
856: [19:10:59] <Pyromanik> :>
857: [19:14:17] <SphereSilverNL> hmmmmm.... yes, that breaks stuff: >>WHERE `Title` LIKE 'Wallace and Gromit in 'A Matter of Loaf and Death''<<
858: [19:17:11] <simon_w> Weekend time!
859: [19:17:30] * simon_w quit (Quit: Leaving)
860: [19:17:57] <SphereSilverNL> He has a strange sense of humour
861: [19:18:06] <SphereSilverNL> Or a strange sense of time
862: [19:22:29] <Sj0hn> Would agree on that
863: [19:27:29] <SphereSilverNL> Is it possible to respond with a "disallow" and add a message? In htaccess, I want unwanted bots to get
864: [19:27:46] <SphereSilverNL> "Error 403 I DO NOT WANT YOU HERE"
865: [19:28:06] * ObiWanSh_ has joined #silverstripe
866: [19:28:21] <SphereSilverNL> You are.... ObiWanShenobi?
867: [19:33:37] * ObiWanSh_ quit (Remote host closed the connection)
868: [19:34:35] <SphereSilverNL> I guess not :(
869: [19:36:37] * Ryan-Toast has joined #silverstripe
870: [19:36:44] * Vik quit (Ping timeout: 252 seconds)
871: [19:37:23] * Vik has joined #silverstripe
872: [19:38:12] * SightUnseen has joined #silverstripe
873: [19:39:32] * nickmolhoek has joined #silverstripe
874: [19:47:59] * DigNZ has joined #silverstripe
875: [19:48:39] * joelpittet quit ()
876: [19:52:00] * ObiWanSh_ has joined #silverstripe
877: [19:54:43] * SightUnseen has left #silverstripe
878: [20:02:38] <Pyromanik> Sj0hn, SphereSilverNL, he has the rest of the week off.
879: [20:03:03] <Pyromanik> that or his work days have shifted to include sat and sun, thus has wed/thr off or something.
880: [20:03:21] <SphereSilverNL> He's still making me jealous
881: [20:03:44] <SphereSilverNL> Dafuq, this works! http://maps.google.com/?q=Berlin
882: [20:03:48] <Pyromanik> yeh, he would be me too except I don't even have a job.
883: [20:03:49] <SphereSilverNL> Why didn't I know that?
884: [20:04:05] <SphereSilverNL> Where do you live Pyromanik ?
885: [20:04:17] <Pyromanik> I am a Kiwi.
886: [20:04:22] <Pyromanik> Currently in UK though.
887: [20:04:28] <Pyromanik> You're just across the water from me.
888: [20:04:31] <SphereSilverNL> Netherlands ok?
889: [20:04:37] * Azure has joined #silverstripe
890: [20:04:46] <Pyromanik> SphereSilverNL, do I have to turn up in the office?
891: [20:04:55] <SphereSilverNL> Ehhhhh, yeah, you have :(
892: [20:05:01] <Pyromanik> then no, not really :P
893: [20:05:35] <SphereSilverNL> you don't have to do anything, but it's Dutch, you need to be in the office.
894: [20:05:35] <Pyromanik> I'd have to get up too early to catch the train to get to the docs to catch the ferry to make it to NL to get to the office.
895: [20:05:45] <Pyromanik> SphereSilverNL, I don't follow.
896: [20:05:59] <Pyromanik> Turn up, do no work, ???, profit?
897: [20:06:10] <SphereSilverNL> Dutch always show up at the office, therefor, it's expected to be at the office
898: [20:06:26] <SphereSilverNL> But doing actual stuff at our office is somewhat debatable.
899: [20:06:50] <SphereSilverNL> We play games a lot, like GTA 5, Unreal Tournament etc.
900: [20:07:13] <SphereSilverNL> Or Fifa 14
901: [20:08:19] <SphereSilverNL> This is where we work. When we work. https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-prn2/t31/1276545_588581004531455_198726292_o.jpg
902: [20:08:45] <Sj0hn> Well you have it better then me then
903: [20:08:56] <SphereSilverNL> My boss (the one with his fist in the air) just beat Niels, my colleauge, the one behind my boss's arm :D
904: [20:08:57] <Sj0hn> my boss probaly wont allow that
905: [20:09:14] <SphereSilverNL> Really?
906: [20:09:28] <Sj0hn> Yeh, its all about productivity basicly
907: [20:09:31] <SphereSilverNL> The best part of just having fun at the office, is you actually work harder
908: [20:09:38] <Sj0hn> yeah i agree,
909: [20:09:49] <SphereSilverNL> We game about 3 to 5 hours a day, we just play games
910: [20:09:52] <Sj0hn> + some more motivation going 2 work
911: [20:10:02] <SphereSilverNL> But in the actual production-hours, production is way up.
912: [20:10:02] <Sj0hn> Haha
913: [20:10:12] <Sj0hn> so were do you work?
914: [20:10:21] <SphereSilverNL> Netherlands, We::Code
915: [20:10:39] <SphereSilverNL> (I, personally, think it should be We::Code() )
916: [20:11:15] <Sj0hn> what about the ;
917: [20:11:40] <SphereSilverNL> Too much effort :P
918: [20:11:54] <SphereSilverNL> But yeah, at the office, we just have fun in what we do
919: [20:12:24] <SphereSilverNL> And if that means, having a laugh because we're gaming.... we're gaming :D
920: [20:12:31] <Sj0hn> Bring some of that spirit more east towards our office :P
921: [20:12:40] <Sj0hn> mayby my boss will convert :p
922: [20:12:41] <SphereSilverNL> How much east?
923: [20:12:47] <Sj0hn> Doetinchem East
924: [20:13:14] <SphereSilverNL> That's not East, that South :P
925: [20:13:35] <Sj0hn> It's east in the netherlands
926: [20:13:41] <Sj0hn> Brabant thats south
927: [20:13:44] <SphereSilverNL> It's south of Enschede :P
928: [20:14:28] <Sj0hn> ok correction: South East
929: [20:15:59] <SphereSilverNL> It's actually quite simple. Motivated personnel, means high production.
930: [20:16:19] <SphereSilverNL> How to motivate geeks? GAMES! GAMES! And did I mention.... Geeks often like gaming?
931: [20:17:04] <Sj0hn> True that
932: [20:17:46] <SphereSilverNL> When I get stressed, I have two options: Hit Bob (Bob is a dummy), or play games
933: [20:18:00] <SphereSilverNL> and nobody bats an eye when I'm gaming for an hour or so.
934: [20:18:48] <Sj0hn> But i would guess you still have to get stuff done right
935: [20:19:00] <Sj0hn> You drink quite the coffee also :p
936: [20:19:22] <SphereSilverNL> Yes, you somewhat have to get stuff done :(
937: [20:19:43] <SphereSilverNL> I don't drink that much coffee! Just 12 mugs a day!
938: [20:20:16] <SphereSilverNL> We need to update that. The number should be 10 times what's on the website
939: [20:20:24] <Sj0hn> holy crap
940: [20:20:28] <Sj0hn> how do you even sleep?
941: [20:21:12] <SphereSilverNL> Usually on my belly or my side.
942: [20:22:10] <SphereSilverNL> And close to 90% of the times, also, in my bed.
943: [20:22:30] * ObiWanSh_ quit (Remote host closed the connection)
944: [20:23:59] <SphereSilverNL> I'm working on getting that percentage above 95%, I must admit
945: [20:24:36] * ObiWanSh_ has joined #silverstripe
946: [20:24:53] <Sj0hn> other 10% on the ground ?
947: [20:25:19] <SphereSilverNL> More like "couch"
948: [20:25:29] <Sj0hn> haha
949: [20:25:32] <Sj0hn> k :p
950: [20:25:53] * ObiWanSh_ quit (Remote host closed the connection)
951: [20:26:30] <SphereSilverNL> I have a good couch. Couch is nice. Unless it isn't weekend :D
952: [20:27:56] <SphereSilverNL> appearantly, saying "I like the couch" is enough for couch-time. Little does she know, it's a folding couch, so I can make a bed out of it :D
953: [20:27:59] * ObiWanSh_ has joined #silverstripe
954: [20:28:20] <SphereSilverNL> I shouldn't have said that while she was reading along :(
955: [20:28:54] * UncleCheese has joined #silverstripe
956: [20:29:05] * zippy__ has joined #silverstripe
957: [20:29:13] <Sj0hn> haha
958: [20:30:07] <Sj0hn> What study did you do Sphere?
959: [20:30:21] <zippy__> morning
960: [20:30:21] <SphereSilverNL> Applied Physics
961: [20:30:31] <SphereSilverNL> Evening zippy__
962: [20:30:42] * willr has joined #silverstripe
963: [20:32:24] <Sj0hn> Quite the switch then
964: [20:33:03] <SphereSilverNL> Yup, but it got me a job. And now, I'm wanted by multiple companies. Not complaining :D
965: [20:33:49] <SphereSilverNL> I've been programming for about 5 years now, as a job. Oddly, I like it, but I'm not qualified.
966: [20:34:19] <Sj0hn> So how did you get into it then, like the beginning
967: [20:34:26] <Sj0hn> just curious
968: [20:35:08] <SphereSilverNL> That's a funny story. Really funny. It started all with me losing my first job due to budget cuts
969: [20:35:26] <SphereSilverNL> So, I went to UWV, because I needed to pay my bills.
970: [20:35:45] <SphereSilverNL> I made an appointment, Tuesday 2PM
971: [20:36:17] <SphereSilverNL> While I was on my way there, I noticed a big sign outside a building, saying "We need developers, PHP, Java and MySQL"
972: [20:36:29] <SphereSilverNL> I thought "Hey, I can do that shit, so why not try"
973: [20:37:03] <SphereSilverNL> 45 minutes later, I arrived at UWV, with a contract. And told my "jobcoach" she was kinda obsolete
974: [20:37:40] <SphereSilverNL> That's literally, how I ended up being a developer.
975: [20:39:32] <SphereSilverNL> Only thing is, I have always been into programming. So that did help.
976: [20:41:23] * antmas has joined #silverstripe
977: [20:41:34] <antmas> merning
978: [20:41:40] <SphereSilverNL> Evening
979: [20:41:54] <Sj0hn> Lol, Its quite nice that they gave you that oppertunity then
980: [20:42:12] <SphereSilverNL> Yeh, I never expected it :)
981: [20:42:21] <SphereSilverNL> But it's a funny experience :)
982: [20:42:34] <Sj0hn> Yeah would guess so
983: [20:42:38] <Sj0hn> =)
984: [20:43:33] <Sj0hn> Problem at our company is that me and my college who are the Devs, dont have a real programmer background
985: [20:43:49] * mojo5000 quit (Remote host closed the connection)
986: [20:43:58] <Sj0hn> Dont have time given to figure stuff out, and no one with expiernce in the company on that matter xD
987: [20:44:31] <SphereSilverNL> That completely depends on what they can do. I can do Java, C#, and obviously PHP. So that's easy
988: [20:44:32] <Sj0hn> But we're managing so it's quite ok
989: [20:44:49] <SphereSilverNL> But introducing someone into the world of coding, is hard.
990: [20:45:33] <SphereSilverNL> If they don't understand logic, it's really hard to explain WHY X does Y
991: [20:46:12] <Ryan-Toast> SphereSilverNL: I was washing cars for a living, I was driving into town to deliver a car to a dealership, and I saw a sign for a Web Development course. I illegally parked, went inside signed up and resigned that day.
992: [20:46:28] <antmas> Ryan-Toast: epic
993: [20:46:31] <SphereSilverNL> Nice :D
994: [20:46:31] <Sj0hn> idd
995: [20:46:34] <Sj0hn> epic :p
996: [20:46:45] <SphereSilverNL> that beats my story by miles :D
997: [20:46:56] <Ryan-Toast> Crazy to think what my life would be like if I didn't make that split second decision.
998: [20:47:20] <antmas> yeah mine was I started my diploma (switched to degree early one) because my ex mrs dragged me up from the West Coast lol
999: [20:47:33] <antmas> on*
1000: [20:47:36] <SphereSilverNL> In my case, I felt like "Who gives a fuck, anything is better than nothing"
1001: [20:48:17] <Sj0hn> Cant even compete with any of ye :p
1002: [20:48:18] <Ryan-Toast> We lucked out :D
1003: [20:48:26] <Ryan-Toast> Programming is ffun as shit most of the time.
1004: [20:48:30] <SphereSilverNL> No, we're just that good :P
1005: [20:48:31] <Sj0hn> Did an intership still, and still working there
1006: [20:48:49] <Sj0hn> haha, you would like that woudn't you
1007: [20:49:00] <SphereSilverNL> I know I am :P
1008: [20:49:18] <Sj0hn> *Sphere tabs himselve on the shoulder
1009: [20:49:44] * Vik quit ()
1010: [20:49:55] * Vik has joined #silverstripe
1011: [20:50:06] <SphereSilverNL> Not really :) I feel like shit tbh
1012: [20:50:55] <Sj0hn> How's that, weather still pretty decent for this time.. not even freezing
1013: [20:50:59] <Vik> Hi all, I've attempted to change the default currency in the framework and in the config file but it's still showing dollars. What would cause this?
1014: [20:51:37] <SphereSilverNL> Extend the currency via an extension, forcing it to be the correct Currency
1015: [20:52:15] <antmas> Vik: yeah try stay away from framework and config if possible - all can be done via yaml
1016: [20:53:01] <Vik> Thanks guys, how would I go about this? I'm a complete SS noob
1017: [20:53:06] <SphereSilverNL> Yes, bed. Hi bed, I missed you
1018: [20:53:15] <SphereSilverNL> Sleep tight folks
1019: [20:53:28] * SphereSilverNL quit (Remote host closed the connection)
1020: [20:54:22] <antmas> Vik: are you using payment express?
1021: [20:54:55] <Vik> no no, just a currencyfield to display frontend user form and currency as the DB datatype
1022: [20:55:04] <Sj0hn> also off,
1023: [20:55:05] <Sj0hn> bb
1024: [20:55:10] * Sj0hn quit (Quit: Ik ga weg)
1025: [20:55:17] <antmas> Vik: ah, so it's not for ecommerce?
1026: [20:55:58] <Vik> not at all. the user just needs to put in an estimated price they think that their design will cost to make
1027: [20:57:15] <Vik> But it's appending a dollar and not ZAR and I don't know how to change it :(
1028: [20:57:55] * jerga has joined #silverstripe
1029: [20:58:02] * jerga has left #silverstripe
1030: [20:58:18] <antmas> Vik: which file did you change in /framework?
1031: [20:58:49] <Vik> framework/model/fieldtypes/Currency.php
1032: [20:59:04] <antmas> Vik: and you've flushed?
1033: [20:59:09] * b00mtastik quit (Ping timeout: 272 seconds)
1034: [21:00:14] <Vik> Yes, I've definitely flushed. also did a dev/build (although I don't think that was necessary)
1035: [21:00:33] <antmas> Vik: ok cool, can you paste your Currency.php here? http://www.sspaste.com/
1036: [21:00:43] <Vik> sure
1037: [21:01:27] <Vik> http://www.sspaste.com/paste/show/52d5a2d6e9e5b
1038: [21:03:03] <antmas> hmmm
1039: [21:03:05] <antmas> that looks ok
1040: [21:03:08] <antmas> Ryan-Toast: ?
1041: [21:03:17] <Ryan-Toast> antmas: ?
1042: [21:03:28] <antmas> Ryan-Toast: what do you think of ^^^?
1043: [21:03:41] <Ryan-Toast> the currency thing?
1044: [21:03:45] <antmas> yeh
1045: [21:03:50] <Ryan-Toast> Give me a sec
1046: [21:04:29] <Vik> Thanks a million! Really appreciate the help :)
1047: [21:04:39] <antmas> Vik: I think it looks OK - but someone else will confirm it while I continue to spaz over this SQL :/
1048: [21:05:09] <Vik> sure antmas! Thanks again
1049: [21:08:24] <Ryan-Toast> Vik: Can't you just do this? http://www.sspaste.com/paste/show/52d5a47321951
1050: [21:08:31] <Ryan-Toast> in your config.yml?
1051: [21:09:19] <Vik> Ryan-Toast: I'll try
1052: [21:10:52] <guest1234> What's the recommended way to do big data imports/conversions? Sake a buildtask?
1053: [21:15:30] * Colin[pi] has joined #silverstripe
1054: [21:18:21] <Colin[pi]> morning all :D
1055: [21:22:45] <Vik> Ryan-Toast: I give up, nothing's working
1056: [21:23:54] * stevedore has joined #silverstripe
1057: [21:23:55] <stevedore> greets
1058: [21:24:16] * UncleCheese quit (Quit: UncleCheese)
1059: [21:25:02] <stevedore> I have a challenge with SS 3.12 ... I get a reset password link emailed to me, I click on the link and it loads a login form (not a change password form)
1060: [21:25:06] <stevedore> how can I fix this?
1061: [21:28:46] <Vik> Ryan-Toast: Is there anything else I could try?
1062: [21:29:49] <Ryan-Toast> Vik: Sorry man, I have no idea.
1063: [21:30:01] <Ryan-Toast> Everything looks good from what I saw.
1064: [21:30:29] <Ryan-Toast> May be a case of putting in some break points and see where the variables are getting overriden.
1065: [21:30:48] <Vik> Ryan-Toast In my Extension, I added the field to the DB as datatype "currency". Will this cause a problem?
1066: [21:31:37] <Ryan-Toast> Vik: Perhaps try it as a Varchar.
1067: [21:31:56] <Vik> coolio
1068: [21:34:36] * UndefinedOffset quit (Quit: Leaving.)
1069: [21:38:17] <willr> stevedore make sure you use $Form and not $LoginForm
1070: [21:38:22] * Stomach has joined #silverstripe
1071: [21:38:49] <Vik> Tried everything... Nothing seems to work
1072: [21:44:19] <stevedore> willr: can you elaborate? the reset password link is generated by SS I believe
1073: [21:44:47] <willr> in your template though
1074: [21:45:11] <willr> the change password form will render into the $Form value in your default template
1075: [21:47:28] <stevedore> you mean in Page.ss inn [theme]/templates ?
1076: [21:47:32] <stevedore> in
1077: [21:51:02] * SightUnseen has joined #silverstripe
1078: [21:51:08] * SightUnseen has left #silverstripe
1079: [21:52:54] <Pyromanik> [09:43] <Sj0hn> Dont have time given to figure stuff out, and no one with expiernce in the company on that matter xD
1080: [21:52:57] <Pyromanik> I had that issue.
1081: [21:53:06] <ss23> Pyromanik: I am devops
1082: [21:53:07] * ss23 devops
1083: [21:53:09] <Pyromanik> intermediate dev at best filling senior role.
1084: [21:54:11] <Pyromanik> ss23, support person for keeping stuff alive.
1085: [21:54:13] <Pyromanik> right
1086: [21:54:31] <ss23> Something like that
1087: [21:54:37] <willr> We're looking for a DevOp!
1088: [21:55:06] <willr> dna.co.nz/#!/careers/Infrastructure-Developer/ if ya know anyone :D
1089: [21:55:44] <willr> I want to go back to working 3 day weeks..
1090: [21:56:56] <stevedore> I have $Form in my default template - it still redirects to the login form
1091: [21:56:59] <antmas> mmm dat 3 daw week
1092: [21:57:03] <antmas> day*
1093: [21:57:37] * robert_ has joined #silverstripe
1094: [21:58:14] <willr> stevedore - is the url still Security/forgotpassword ?
1095: [21:58:42] <antmas> willr: I know a few people looking - I've thrown it on twitter
1096: [21:59:03] <willr> Thanks!
1097: [21:59:11] <stevedore> http://mydomain.co.nz/mydir/Security/login?BackURL=%2Fcvt%2FSecurity%2Fchangepassword
1098: [21:59:17] * ObiWanSh_ quit (Remote host closed the connection)
1099: [21:59:30] <antmas> willr: pay range?
1100: [22:00:08] <stevedore> cvt = mydir
1101: [22:00:16] * UncleCheese has joined #silverstripe
1102: [22:00:36] <willr> Depends on how senior they are. We want as senior as possible but for someone that fits that criteria and fits we'll be around $80k
1103: [22:01:39] <willr> stevedore sounds like your Security form is asking you to login before changing password which defeats the purpose
1104: [22:01:46] * ObiWanShanobi has joined #silverstripe
1105: [22:01:59] <antmas> willr: pretty standard - a friend of mine fits the bill, you'll probably hear from him in the next day or so
1106: [22:02:01] <stevedore> exactly! any ideas how/where to fix?
1107: [22:03:46] <willr> Hard to tell without having your project code but I would look at where Security::permissionFailure() is triggered in your custom code. Also check your SiteConfig table if you require auth to view the site
1108: [22:05:41] <stevedore> I have worked out that if the user has logged in before using the same browser then the change password form displays... however if I clear cookies and try the reset password link again it redirects to the login page
1109: [22:09:54] * Ryan-Toast quit (Quit: Ryan-Toast)
1110: [22:12:26] <guest1234> Anything better than BuildTasks w/ sake for writing data importers/converters from another site?
1111: [22:12:46] * guest1234 is now known as catcher
1112: [22:13:29] * catcher quit (Changing host)
1113: [22:13:29] * catcher has joined #silverstripe
1114: [22:13:29] * catcher quit (Changing host)
1115: [22:13:29] * catcher has joined #silverstripe
1116: [22:14:46] <stevedore> willr: what do you think about the incident with the cookies?
1117: [22:15:57] <willr> still the issue is why Security/forgotpassword is requiring a login. Something in your site is causing that I assume
1118: [22:16:03] <stevedore> I'm using MemberProfiles if that makes any difference (?)
1119: [22:16:23] <Pyromanik> [10:55] <@willr> I want to go back to working 3 day weeks..
1120: [22:16:27] <Pyromanik> liv'n the dream
1121: [22:17:17] <willr> I wonder if it does.. You could try remove it temporarily and see. http://demo.silverstripe.org/Security/lostpassword works
1122: [22:18:30] <Pyromanik> nite folks, interview tomorrow
1123: [22:19:09] * nick86 has joined #silverstripe
1124: [22:19:29] <stevedore> removing MemberProfiles then doing dev/build?flush=1 didn't fix it
1125: [22:20:32] <stevedore> I found this:
1126: [22:20:34] <stevedore> https://groups.google.com/forum/#!topic/silverstripe-dev/AugtpSbhXGc
1127: [22:20:45] <stevedore> but I'm using 3.1.2 which should have these changes
1128: [22:22:21] * Ryan-Toast has joined #silverstripe
1129: [22:23:33] * nick86 quit (Ping timeout: 252 seconds)
1130: [22:36:46] <stevedore> willr: have determined that framework/security/Security.php triggers: self::permissionFailure( $this, _t('Security.ERRORPASSWORDPERMISSION', 'You must be logged in in order to change your password!')
1131: [22:36:54] * mojo5000 has joined #silverstripe
1132: [22:37:00] <stevedore> how do I change the permissions?
1133: [22:40:44] * gelignite quit (Quit: http://bit.ly/nkczDT)
1134: [22:43:11] <Colin[pi]> 9:40 and already 30C outside D:
1135: [22:47:58] <willr> Oh stevedore use lostpassword instead of changepassword
1136: [22:48:23] <willr> no wait,
1137: [22:48:25] <willr> hmm
1138: [22:49:10] <ss23> p.s. ingo is in NZ now so if anyone needs me to throw things at him, let me know
1139: [22:50:05] <spronk> please throw a soft toy at him
1140: [22:50:37] <willr> What does your reset link look like? It should have m and a t get variable.
1141: [22:50:53] <ss23> spronk: Hmm
1142: [22:51:00] <ss23> spronk: I'm thinking about it
1143: [22:51:09] <ss23> But their team is working really hard so I don't wanna interupt them..
1144: [22:51:09] <ss23> ;_;
1145: [22:51:11] <spronk> LETS START A WAR!
1146: [22:51:13] <ss23> I'm too scared to actually do it
1147: [22:51:22] <willr> ss23 without me or ajoneil there I think there is a shortage of soft toys
1148: [22:51:27] <ss23> spronk: BLAME IT ON THE MIDDLECLASS
1149: [22:51:35] <spronk> the fuck man
1150: [22:51:39] <spronk> that's not what we're singing
1151: [22:51:42] <ss23> willr: And yet somehow they all accumulate on my desk! :O
1152: [22:51:44] <ss23> Wait
1153: [22:51:56] <ss23> Yeah, I currently have a suse lizard, and a.... some thing
1154: [22:51:56] <willr> Mr Toast collection still
1155: [22:52:09] <ss23> I think this thing is Mr Toast? It's a white thing with a face on it
1156: [22:52:13] <ss23> Very round with tiny little arms and legs
1157: [22:52:40] <antmas> the only soft toys we have a stress balls :/
1158: [22:52:47] <antmas> are*
1159: [22:53:10] <ss23> lol
1160: [22:53:15] <ss23> We have a MLP pony here
1161: [22:53:22] <ss23> (really hurts to have it thrown at you, is not actually a soft toy...)
1162: [22:54:22] <spronk> excellent
1163: [22:54:22] <spronk> throw that
1164: [22:54:25] * stevedore quit (Ping timeout: 272 seconds)
1165: [22:54:49] * nhorstmeier has joined #silverstripe
1166: [22:56:34] <ss23> lol
1167: [22:58:39] * nhorstmeier quit (Client Quit)
1168: [22:59:20] <antmas> man
1169: [22:59:26] <antmas> I should really use sass
1170: [22:59:32] <ss23> We "use" it here
1171: [22:59:42] <antmas> I need something at least
1172: [23:00:10] <antmas> need some automation up in this hizzo
1173: [23:00:12] <Ryan-Toast> antmas: Don't let Pyro hear you say that
1174: [23:00:17] <antmas> Ryan-Toast: :P
1175: [23:00:25] <antmas> I checked he wasn't hear first
1176: [23:00:30] <ss23> I don't do enough CSS to really care about SASS etc
1177: [23:00:31] <Ryan-Toast> lol
1178: [23:00:31] <antmas> here*
1179: [23:00:34] <ss23> I jutts do what I'm told :O
1180: [23:01:42] <Ryan-Toast> Sass + Grunt = Happy.
1181: [23:01:54] <antmas> Ryan-Toast: yeah I still need to do le grunts
1182: [23:02:35] <antmas> I've set aside 2 hours a week to learn stuffs, will get onto automation firs
1183: [23:02:36] <antmas> first*
1184: [23:02:43] <Ryan-Toast> antmas: Just install it then copy what I have here: https://github.com/Rhym/ss_boilerplate/blob/master/Gruntfile.js
1185: [23:02:47] <Stomach> how do you define the name of a page for the add button in a modeladmin - singular_name doesnt seem to work :\
1186: [23:03:00] <antmas> Ryan-Toast: awesome, tah
1187: [23:05:15] <antmas> "...unit testing, automation, linting..." - wtf is linting?
1188: [23:05:21] <Stomach> js linting
1189: [23:05:24] <Stomach> looks for lint
1190: [23:05:28] <antmas> ah
1191: [23:05:30] <antmas> ofc
1192: [23:05:41] <Stomach> checks code style
1193: [23:05:44] <Ryan-Toast> you can use jslint with Grunt I believe
1194: [23:05:51] <antmas> Ryan-Toast: yeah
1195: [23:05:52] <Stomach> yeah you can
1196: [23:06:13] <Ryan-Toast> <3 Grunt
1197: [23:06:28] <antmas> Ryan-Toast: yeah I haven't even tried it yet, but I already love it
1198: [23:06:34] <Ryan-Toast> I'm going here this weekend, so fucking PUMPED! http://www.jumpwithus.co.nz/
1199: [23:07:09] <antmas> holy shit colours
1200: [23:07:11] <Colin[pi]> Ryan-Toast: heh, I'm building a bookings site for a new one of those as we speak
1201: [23:07:35] <antmas> TRAMAMPOLINE!
1202: [23:08:02] <antmas> http://www.youtube.com/watch?v=FRIaKMdO-Vw
1203: [23:08:26] <Colin[pi]> LOL
1204: [23:08:32] <Ryan-Toast> Colin[pi]: Really?
1205: [23:08:52] <Colin[pi]> Ryan-Toast: yep! different company, but same concept yeah
1206: [23:08:56] <Ryan-Toast> Vertical video!
1207: [23:09:05] <Ryan-Toast> Colin[pi]: I like how it's becoming a thing.
1208: [23:09:14] <Colin[pi]> Ryan-Toast: a BIG thing by the looks of it
1209: [23:09:16] <Ryan-Toast> Wish there was one closer to town.
1210: [23:09:50] <Ryan-Toast> I used to be able to do all sorts of tricks, now I'll most likely hurt myself and vomit from exhausion.
1211: [23:09:55] * antmas suddenly has a massive urge to find a trampoline
1212: [23:10:18] <Colin[pi]> Ryan-Toast: yeah the last time I tried one I felt like an old man
1213: [23:10:23] <Colin[pi]> (already am, but you know)
1214: [23:10:41] <antmas> also
1215: [23:10:45] <antmas> Colin[pi]: !!!
1216: [23:10:50] <Colin[pi]> HAI
1217: [23:10:52] <Ryan-Toast> I was jumping on my friends trampoline, and I had to sit down for a bit after.
1218: [23:10:59] <Colin[pi]> Ryan-Toast: yep ;(
1219: [23:11:09] <Ryan-Toast> I'm only 24, I mean shit.
1220: [23:11:15] <Colin[pi]> I'll be just over here holding my chest
1221: [23:11:19] <Ryan-Toast> Need to get outdoors more.
1222: [23:11:33] <Colin[pi]> I ride bikes like a mofo but my knees are shit
1223: [23:11:39] <Stomach> anyone know how to overwrite a static config set on a PageType - for example the BlogEntry has a singular_name set to 'Blog Entry Page' which I want to change to 'whatever'
1224: [23:12:11] * ObiWanShanobi quit (Quit: Leaving...)
1225: [23:12:19] <spronk> anyone here use PDT 3?
1226: [23:12:57] <antmas> yeah I threw up my gin and tonic on new years while on a trampoline
1227: [23:13:10] <Ryan-Toast> antmas: *nice*
1228: [23:14:02] <Ryan-Toast> I made a facebook event for JUMP!, and so fdar 5 busty ladies have clicked attending. Aww yiss.
1229: [23:14:16] <antmas> rofl
1230: [23:14:43] <antmas> double bouncing + slow mo go pro footage
1231: [23:14:50] <antmas> baBOUNCE!
1232: [23:15:13] <Ryan-Toast> didn't even think about goPro.
1233: [23:15:18] <Colin[pi]> Ryan-Toast: lol.. all you need now is white shirts and a hose
1234: [23:15:20] <Ryan-Toast> I'll take my chest mount thing.
1235: [23:16:22] <Ryan-Toast> did anyone used to put their sprinkler under the tramp, with some soap on it?
1236: [23:16:29] <Stomach> oh hell yes
1237: [23:16:31] <Ryan-Toast> Goddam that shit was dangerous, haha.
1238: [23:16:33] <Colin[pi]> yeah lol
1239: [23:17:25] <antmas> Ryan-Toast: yup, now I have 2 matching scars back and front of noggin
1240: [23:18:13] <Colin[pi]> now all the kids these days have giant nets around their tramps... pffft
1241: [23:18:16] <Colin[pi]> not in my day
1242: [23:18:26] <antmas> lol we didn't even have mats
1243: [23:18:30] <Colin[pi]> nope
1244: [23:18:36] <Colin[pi]> in my day the ground broke your fall :D
1245: [23:18:43] <Colin[pi]> and the springs were lethal
1246: [23:18:48] <Ryan-Toast> I had springs that would break and fly at your fassce, for like no reason.
1247: [23:18:51] <Ryan-Toast> face**
1248: [23:18:59] <Colin[pi]> dat tension
1249: [23:19:07] <Ryan-Toast> It was just old as fuck.,
1250: [23:19:21] <Ryan-Toast> I used to weld them back together, which was most likely a cause.
1251: [23:19:25] <Colin[pi]> lol
1252: [23:19:36] <Colin[pi]> being on a big tramp with another kid was awesome fun
1253: [23:19:38] <Ryan-Toast> 8 years olds with a tig welder isn't exactly saftey 101
1254: [23:19:44] <antmas> the way they would pinch the fat on your thighs when you misjudged your landing
1255: [23:19:46] <Colin[pi]> used to get launched so high
1256: [23:20:24] <Ryan-Toast> Colin[pi]: Just had to hope you went upwards, and not slightly sideways
1257: [23:21:04] <Colin[pi]> yeah hehe
1258: [23:21:17] <Colin[pi]> arms flailing still don't do very much :D
1259: [23:32:23] * violetina quit (Remote host closed the connection)
1260: [23:36:36] <Colin[pi]> I can never not laugh at this video: http://www.youtube.com/watch?v=ZZ5LpwO-An4
1261: [23:37:22] * nick86 has joined #silverstripe
1262: [23:38:22] <nick86> hey guys, I am wondering if there is a way to sort a DropdownField alphabetically based of the map() title value
1263: [23:38:59] <nick86> This is what i currently have: $treatments = TreatmentPage::get()->map('ID', 'BannerHeading');
1264: [23:39:03] <nick86> $treatmentsDropDown = new DropdownField('Treatment', 'Treatment', $treatments);
1265: [23:39:24] <nick86> which is sorting it ASC based on ID
1266: [23:39:44] <nick86> is there a way to sort based on the title?
1267: [23:39:58] <guzzlefry> TreatmentPage::get()->sort("BannerHeading")->map("ID", "BannerHeading"); Does that work?
1268: [23:40:44] * bar338 has joined #silverstripe
1269: [23:40:46] <nick86> brilliant!
1270: [23:40:52] <nick86> thanks heaps!
1271: [23:40:59] <nick86> so simple ion the end....
1272: [23:41:02] <nick86> in*
1273: [23:41:56] <guzzlefry> I said something akin to that yesterday. :P
1274: [23:43:52] <Ryan-Toast> Colin[pi]: This one always gets me http://www.youtube.com/watch?v=jlSF0dtDRD8
1275: [23:45:31] * nick86 quit (Ping timeout: 260 seconds)
1276: [23:47:02] * Azure quit (Quit: Textual IRC Client: www.textualapp.com)
1277: [23:48:09] <bar338> Hello, i'm having just a bit of trouble understanding form submission. I found this http://stackoverflow.com/a/12042925 which i've been modeling my code after. I've ended up with something like this: http://paste.ubuntu.com/6753341/ Problem is my code never makes it to doProcessMyMethod it just hits my_method and returns.
1278: [23:49:34] <Ryan-Toast> bar338: I've made a registration module that you can have a look at https://github.com/Rhym/ss_boilerplate/tree/master/mysite/Boilerplate/code/Modules/Registration
1279: [23:50:07] <Colin[pi]> Ryan-Toast: haha I forgot about that one
1280: [23:50:30] <Ryan-Toast> bar338: you'll need the flashmessage one too I think https://github.com/Rhym/ss_boilerplate/tree/master/mysite/Boilerplate/code/Modules/FlashMessage
1281: [23:50:39] <Ryan-Toast> if you're just going to copy/paste that is.
1282: [23:50:57] <antmas> Ryan-Toast: Colin[pi] bahahahah
1283: [23:51:01] <antmas> I remember those
1284: [23:51:21] <Ryan-Toast> This is from yesterday, and it's fucking funny https://www.youtube.com/watch?v=PUKMUZ4tlJg
1285: [23:52:03] <antmas> \m/
1286: [23:53:28] <antmas> that is the best thing ever
1287: [23:54:12] <bar338> Ryan-Toast: I don't think that necessarily applies to my question. The important part of my question is in the second link. I"m not trying to implement registration, just trying to understand form submission so that I can figure out why my submission isn't working.
1288: [23:57:09] * Azure has joined #silverstripe
1289: [23:57:57] <antmas> who will ss23 go to lunch with now?
1290: [23:58:39] <ss23> ^^^^^
1291: [23:58:41] <ss23> I want lunch
1292: [23:58:41] <ss23> :)
1293: [23:59:02] <antmas> I bought lunch in with me, but I really don't want it :(
1294: [23:59:25] <ss23> :O
1295: [23:59:42] <antmas> left overs are no fun unless it's pizza

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