#silverstripe IRC Log

IRC log for 2 December 2013

All timestamps are in UTC.

1: [00:00:36] <antmas> bah
2: [00:00:39] <antmas> stupid where clause
3: [00:00:45] <antmas> y u no work!
4: [00:01:04] <simon_w> Because doing it wrong!
5: [00:01:11] <antmas> ;__;
6: [00:01:14] <antmas> am not!
7: [00:01:37] <antmas> it works in SQL, but gets ignored in code
8: [00:01:41] <antmas> sad face
9: [00:01:49] <simon_w> Doing it wrong!
10: [00:03:10] <Snowman23> sux2bu
11: [00:03:10] <Snowman23> :O
12: [00:04:01] <simon_w> antmas, probably doing $list->where() when you need $list = $list->where()
13: [00:04:54] <antmas> simon_w: yeah I think so
14: [00:04:59] <antmas> (not PHP)
15: [00:05:43] <antmas> anyway
16: [00:05:54] <antmas> SpaceX launch tomorrow now?
17: [00:08:38] * marvanni quit (Ping timeout: 240 seconds)
18: [00:09:53] <guzzlefry> is it possible to redirect the user after registration?
19: [00:10:57] <guzzlefry> BackURL only seems to work when logging in.
20: [00:11:19] <guzzlefry> which is silly because the registration form automagically logs the user in anyway. :P
21: [00:13:44] <zippy___> antmas: wonder what it'd cost for a ps4 with that flyer
22: [00:14:04] <zippy___> or a new macbook, hmm
23: [00:14:42] <zippy___> ah fook typical, apple products excluded
24: [00:16:03] <antmas> zippy___: yeah it'll be worth going in and checking it out
25: [00:16:16] <antmas> we normally get cost + 10% on everything in store
26: [00:16:23] <antmas> - apple products :P
27: [00:17:10] <zippy___> get the wife some pots and pans for xmas, she'll love it!
28: [00:17:13] <zippy___> maybe an iron
29: [00:17:28] <antmas> lol
30: [00:17:53] <antmas> lots of stuff they get in store though, is already at cost so the discount doesn't apply for a hell of a lot
31: [00:18:33] <Ryan-Toast> How can I get the value of an input before save if I'm not saving it to the database?
32: [00:19:20] <Colin[pi]> zippy: my mate bought his wife a vacuum for her birthday
33: [00:19:29] <Colin[pi]> and then posted on facebook about it
34: [00:19:31] <antmas> Colin[pi]: haha
35: [00:19:35] <Colin[pi]> he was ridiculed for days
36: [00:19:40] <Colin[pi]> funniest shit ever
37: [00:19:50] <antmas> I had a friend who bought his mrs a weight watchers starter pack for xmas
38: [00:19:54] <Colin[pi]> LOL
39: [00:20:00] <wracu> wut
40: [00:20:04] <Colin[pi]> "MERRY CHRISTMAS YOU FAT BITCH"
41: [00:20:08] <antmas> ROFL
42: [00:20:38] <Snowman23> holy shit, antmas
43: [00:20:42] <Snowman23> That guy is *brave*
44: [00:20:48] <antmas> Snowman23: XD
45: [00:20:48] <Snowman23> 13:05:54 < antmas> SpaceX launch tomorrow now?
46: [00:20:55] <antmas> she took it supprisingly well
47: [00:20:57] <Snowman23> They said Monday Evening for them, so should be Tuesday morning for us I guess! :D
48: [00:21:06] <antmas> Snowman23: nice
49: [00:21:23] <Snowman23> I would perhaps get a Weight Watchers thing as a joke, but only if we were alone
50: [00:21:33] <Snowman23> Like, I wouldn't subject a girlfriend to that in public.
51: [00:21:55] <Snowman23> My family embarrased me one Christmas kind of
52: [00:22:01] <antmas> yeah, it was pretty sad
53: [00:22:01] <Snowman23> They got a laptop box for a sweet new laptop
54: [00:22:06] <antmas> bit HIRRARIOUS
55: [00:22:11] <Snowman23> Put bricks in it so it fucking weighed the right amount
56: [00:22:16] <Snowman23> And I got all excited when I oeped it etc
57: [00:22:20] <Snowman23> But NOPE, was just bricks
58: [00:22:29] <antmas> Snowman23: oho hhhoo
59: [00:22:32] <Colin[pi]> ohhhh that's just fucking brutal
60: [00:22:33] <antmas> sucks
61: [00:22:36] <Snowman23> Like, such a cunt thing to do. Especially since like, you've just had Christmas fucking ruined because of it, and you're expected to just laugh it off
62: [00:22:37] <Ryan-Toast> Snowman23: I do that pretty much every year to someone.
63: [00:22:42] <Snowman23> Ryan-Toast: ASSHOLE.
64: [00:22:44] <Snowman23> :(
65: [00:22:49] <Snowman23> I would handle it better now
66: [00:22:51] <Snowman23> But as a kid
67: [00:22:57] <Snowman23> Not like you can actually afford a PC etc
68: [00:22:58] <Colin[pi]> that's brutal to a kid
69: [00:23:00] <Ryan-Toast> Snowman23: Usually just a brown box though, so they just think it's a massive gift.
70: [00:23:04] <antmas> yeah I had a similar then when my parents said I was getting a PS2
71: [00:23:07] <Snowman23> ah, that's not as bad, Ryan-Toast
72: [00:23:13] <antmas> and it ended up being a Gamecube :(
73: [00:23:17] <Snowman23> hahahhahahah antmas
74: [00:23:18] <Ryan-Toast> Snowman23: I'm not satan.
75: [00:23:20] <Snowman23> XD
76: [00:23:40] <Ryan-Toast> How can I get the value of an input before save if I'm not saving it to the database?
77: [00:23:50] <Snowman23> But yeah, the worst is like "LOL JUST BE HAPPY IT'S CHRISTMAS", and if you don't act mega happy after having your fucking year ruined, it's like *your* being unreasonable
78: [00:23:53] <Snowman23> :(
79: [00:24:02] * unsignedint has joined #silverstripe
80: [00:24:18] <Ryan-Toast> Snowman23: I got a joke scratchy once that said I won $50,000.
81: [00:24:27] <antmas> Ryan-Toast: oh no
82: [00:24:27] <Ryan-Toast> Snowman23: Was so fucking gutted, ruined my whole day.
83: [00:24:30] <antmas> I've had that
84: [00:24:55] <Ryan-Toast> antmas: I was ~15, so I was like my new car is going to get all the ladies.
85: [00:25:04] <antmas> Ryan-Toast: lol
86: [00:25:05] <antmas> nice
87: [00:25:15] <Ryan-Toast> antmas: but alas, twas a cuel jape.
88: [00:25:18] <Snowman23> Ryan-Toast: AWWWWWW, lol
89: [00:25:27] <Snowman23> My family got my grandmother like that too
90: [00:25:40] <Snowman23> Recorded last weeks lotto, got a ticket to match first division, played it on hte Saturday
91: [00:25:47] <Snowman23> And she was like "oh man oh man holy shit" etc
92: [00:25:49] <Snowman23> Then they're all laughing
93: [00:25:50] <Snowman23> like
94: [00:25:52] <Snowman23> would be soul-crushing
95: [00:26:02] <antmas> I'd smack a bitch
96: [00:26:16] <Ryan-Toast> That's how serial killers are born.
97: [00:26:21] <antmas> lol
98: [00:26:25] <Snowman23> hahaha
99: [00:26:36] <Ryan-Toast> I'd just leave. CHRISTMAS IS OVER.
100: [00:26:44] <Ryan-Toast> PACK UP YOUR SHIT AND GET OUT
101: [00:27:34] <Ryan-Toast> If I was your grandma I would have baked some delicious laxitive cookies.
102: [00:30:39] * UncleCheese has joined #silverstripe
103: [00:32:11] <guzzlefry> Any clues/hints on my question? >_>
104: [00:33:13] <guzzlefry> Figured redirecting the user after registration would be something simple.
105: [00:34:02] <Snowman23> I bet UncleCheese knows!
106: [00:34:10] <UncleCheese> hi
107: [00:34:16] <Snowman23> hai :D
108: [00:34:30] <UncleCheese> what's the tl;dr
109: [00:34:44] <Snowman23> How to redirect a user after succesful log in?
110: [00:34:50] <guzzlefry> err
111: [00:34:52] <LimRes> not login, registration
112: [00:34:57] <Snowman23> Registeration!
113: [00:35:01] <guzzlefry> how to redirect the user after successful registration :P
114: [00:35:07] <LimRes> login ez
115: [00:35:09] <UncleCheese> $this->redirect('my-page');
116: [00:35:14] <Ryan-Toast> How can I get the value of an input before save if I'm not saving it to the database?
117: [00:35:27] <guzzlefry> UncleCheese: I'm guessing I have to subclass/extending something for that?
118: [00:35:50] <UncleCheese> well silverstripe doesn't come with "registration" out of the box, so i assume you either have a module or custom code that is doing that?
119: [00:36:29] <guzzlefry> oh 0.o
120: [00:36:43] <LimRes> That's hilarious, for several years I assumed that our site's registration was out of the box
121: [00:36:44] <guzzlefry> UncleCheese: thanks. I was wrongly assuming it was bulit-in.
122: [00:36:49] <guzzlefry> Still learning this code. :)
123: [00:36:58] <UncleCheese> what module are you using?
124: [00:37:00] <guzzlefry> LimRes: I feel less dumb now! \o/
125: [00:37:09] <guzzlefry> UncleCheese: Pretty sure it's custom.
126: [00:37:09] <LimRes> it was written by my partner
127: [00:37:12] <UncleCheese> ah
128: [00:37:14] <LimRes> just never came up :)
129: [00:37:31] <LimRes> guzzlefry: no dumb questions!
130: [00:37:53] * SightUnseen has joined #silverstripe
131: [00:38:10] <Ryan-Toast> Can anyone help me with my dumb question? :P
132: [00:38:12] * SightUnseen has left #silverstripe
133: [00:38:43] <guzzlefry> Ryan-Toast: What was it?
134: [00:38:51] <Ryan-Toast> guzzlefry: How can I get the value of an input before save if I'm not saving it to the database?
135: [00:39:02] <LimRes> Is this in a front-end form Ryan Toast?
136: [00:39:10] <Ryan-Toast> CMS form
137: [00:39:14] <Ryan-Toast> so, backend.
138: [00:39:54] <LimRes> as in you have made a userform configured using the module?
139: [00:40:14] <LimRes> or is it ModelAdmin?
140: [00:40:21] <LimRes> or are you extending Page?
141: [00:40:31] <LimRes> what kind of form?
142: [00:40:36] <Ryan-Toast> No, I have a DataObject extension that I want to join multiple inputs to save into one row.
143: [00:40:48] <Ryan-Toast> But I don't know how to get the data.
144: [00:42:05] <LimRes> Not sure what you mean, you want to extend DataObject itself so that when you go to save the form it writes to some other record?
145: [00:42:48] <guzzlefry> Ryan-Toast: $this->owner()?
146: [00:44:19] <Ryan-Toast> LimRes: I have a data extension that adds widgetrs to a page. One of these widgets is a column generator. In the backend you can click a button to add as many htmlEditorFields as you want,m and I eneed these to save into the same row. So they're generated fields i.e generatedField[0] generatedField[1] etc
147: [00:44:50] <Ryan-Toast> these will save as an object in the backend, so I can loop through them in the frontend.
148: [00:46:18] <LimRes> That sounds like something I would have implemented in a front-end form, sorry, might just be me but it sounds a bit counter to anything the CMS was designed for?
149: [00:47:29] <Ryan-Toast> LimRes: I just need to know if I have an input in the backend, is that input saved into an object I can call?
150: [00:47:40] <Ryan-Toast> If it isn't saved to the db
151: [00:48:46] <LimRes> I have never seen an input work in a CMS form that did not correlate to a db entry on the object being edited, but you might want to ask around some more
152: [00:49:24] <Ryan-Toast> LimRes: Thanks anyway :)
153: [00:49:40] <Ryan-Toast> guzzlefry: Do you have any ideas, man?
154: [00:49:55] <LimRes> It kinda sounds like you are trying to cram a has_many relationship into a single object
155: [00:50:26] <LimRes> there are lots of controls that you can use to manage children
156: [00:50:39] <Ryan-Toast> LimRes: A has_many would be an easy solution, but it's a useless user experience for something like a column egenerator.
157: [00:50:47] * Liquide quit ()
158: [00:51:02] <Ryan-Toast> LimRes: Well a GridFields, anyhow.
159: [00:51:02] <guzzlefry> hm, I'm not sure.
160: [00:51:10] <Ryan-Toast> Gridfield**
161: [00:51:50] <Ryan-Toast> LimRes: Can ytou display all children on one page without having to open a new apage?
162: [00:52:33] <Ryan-Toast> LimRes: The old popups would have been okay, but those are gone now I believe.
163: [00:53:07] <LimRes> Ah ok, I only picked up 3.* recently so yeah if you can't just popup a TinyMCE then yeah bit of a pain
164: [00:53:10] <LimRes> but I bet you can.
165: [00:53:44] <LimRes> But that is why I do forms like this in the front end usually
166: [00:53:55] <Ryan-Toast> LimRes: It's backend functionality, though.
167: [00:53:56] <LimRes> so I am in total control and don't have to workaround anything
168: [00:54:08] <LimRes> well, define Backend?
169: [00:54:25] <Ryan-Toast> LimRes: It's extending apage functionality.
170: [00:54:32] <Ryan-Toast> LimRes: So it should be where you edit a page.
171: [00:55:10] <LimRes> yeah that's true, like I said keep asking sorry I couldn't answer
172: [00:55:49] <Ryan-Toast> LimRes: thanks anyway :) Pretty much I just need a single page GridField.
173: [00:55:49] <LimRes> is there an upward limit to the num of cols?
174: [00:56:13] <Ryan-Toast> No
175: [00:56:22] <Ryan-Toast> No limit.
176: [00:56:26] <LimRes> unlimited columns would get pretty thin on slices?
177: [00:56:39] <LimRes> or is it an expanding layout?
178: [00:56:40] <Ryan-Toast> Woould hit a max of 6, then drop down to another line.
179: [00:56:51] <LimRes> so not columns
180: [00:57:03] <LimRes> ok, well, yeah they sound like children
181: [00:57:03] <Ryan-Toast> yeah, columns. but with fallbacks.
182: [00:57:20] <Ryan-Toast> I suppose that's more an aesthetic thing.
183: [00:57:34] <Ryan-Toast> Just trying to get the children first :P
184: [00:57:55] <LimRes> where there is a will...
185: [00:58:07] <Ryan-Toast> Fuck it, I may just have 4 as a max then detect whether they have content or not.
186: [00:58:17] <Ryan-Toast> and have them as static.
187: [00:58:41] <LimRes> that;s what I was going to suggest if you are in a hurry
188: [00:58:54] <Ryan-Toast> No huirry, but I suppose it's a resonable solution.
189: [00:59:46] <LimRes> If it is not too unelegant, you could just have your children extend Page as well and just use in-built tree functionality to organize and edit?
190: [00:59:50] * camfindlay has joined #silverstripe
191: [00:59:52] <LimRes> os that what you are trying to abvoid?
192: [01:00:01] <Ryan-Toast> That's what I was trying to avoid.
193: [01:00:22] <Ryan-Toast> Having to click through to that many seperate pages isn't very good UX
194: [01:00:57] <LimRes> Not ideal no
195: [01:01:13] <Ryan-Toast> what I may do is have x columns hidden, then a dropdown asking how many you want, then have js show them.
196: [01:03:12] <LimRes> that's a point, if you are writing your own custom js you could just create your own controller for making an ajax call to handle the submit, and before the submit, add the child...?
197: [01:03:26] <LimRes> It sounds like a lot of effort for not much result tho
198: [01:03:28] <simon_w> Ryan-Toast, could you use the GridFieldBulkEdit module and a has_many?
199: [01:04:19] <Ryan-Toast> simon_w: Trying to avoid modules for the sake of learning :P
200: [01:04:59] <simon_w> Ryan-Toast, how about learning when to use a module? :p
201: [01:05:02] <Ryan-Toast> simon_w: I shall blossum from just a Front-end dev, into a beautiiful mix of both.
202: [01:05:24] <LimRes> haha
203: [01:05:30] <Ryan-Toast> simon_w: This is true :P I would if this was for a client, but this will be part of my boilerplate theme thingy.
204: [01:05:55] <LimRes> Plagiarism is learning!
205: [01:06:10] <LimRes> I have made a career on copying stuff until I understand it
206: [01:06:25] <LimRes> No shame
207: [01:06:27] <LimRes> in it
208: [01:07:01] <Ryan-Toast> LimRes: I know, I'm just making rapid dev stuff for myself, so I'd like to have written it all :P https://github.com/Rhym/ss_boilerplate
209: [01:08:20] <LimRes> Good on ya, I wish I had the time to do that :) I better get cracking...
210: [01:08:52] <Ryan-Toast> LimRes: I just do it in my down time.
211: [01:09:05] <Ryan-Toast> It's pretty fun.
212: [01:12:35] <LimRes> ahhh.... down time :D since kids I don't know what that is anymore
213: [01:13:21] <Ryan-Toast> LimRes: Haha, oh no.
214: [01:18:47] <guzzlefry> guys!
215: [01:18:56] <guzzlefry> Can you set the redirect for logouts?
216: [01:20:32] <Colin[pi]> [12:12:30] <LimRes> ahhh.... down time :D since kids I don't know what that is anymore
217: [01:20:37] <Colin[pi]> so true :(
218: [01:21:43] <Snowman23> Down time, aka like, not at working time? :O
219: [01:21:59] <Snowman23> oh
220: [01:22:00] <Snowman23> I misread
221: [01:22:07] <Snowman23> I thought you were saying "Kids don't know what downtime is!"
222: [01:22:11] <Snowman23> And I was like "I KONW WHAT IT IS :("
223: [01:22:17] <Snowman23> I guess I'm not a kid anymore anyway
224: [01:22:56] <zippy___> Colin[pi]: I hear you!
225: [01:23:03] <Colin[pi]> I love my son but he will own every waking hour of my life if he's able :D
226: [01:23:23] <zippy___> time sinks :)
227: [01:23:36] <Snowman23> Colin[pi]: We'll see how you feel about that when he hits 14 and wants you to leave him alone :P
228: [01:23:44] <Colin[pi]> lol yeah
229: [01:24:01] <Colin[pi]> I'll enjoy his attention while it lasts, until he hates me as a teen
230: [01:25:08] <zippy___> Is ther a way to get the current url requeted in a template?
231: [01:25:30] <zippy___> with any paramaters on the eg, like $_SERVER['REQUEST_URI'] but ss I can use in a template
232: [01:25:38] <Ryan-Toast> LimRes: I just ended up having 4 static fields and doing this: http://pastebin.com/itdNPY4X
233: [01:25:45] * DryerLintPurple quit (Quit: Erp.)
234: [01:26:21] <simon_w> guzzlefry, http://www.sspaste.com/paste/show/529bdf7377fd5 stick that in a controller, link to it instead of Security/logout
235: [01:26:29] * DryerLintPurple has joined #silverstripe
236: [01:26:31] <LimRes> Ryan-toast: looks nice and tidy
237: [01:26:59] <Ryan-Toast> LimRes: Javascript/Html/CSS are my expertese :P
238: [01:27:06] <Ryan-Toast> PHP not so much
239: [01:27:16] <Ryan-Toast> But I'm learning.
240: [01:28:21] <LimRes> I am a long-time Actionscript guy but have had to wear every hat made. I am about a year into porting my skills into JS so I like seeing these examples
241: [01:29:08] <zippy___> In a template, is it possible to get curentl url?
242: [01:29:28] <LimRes> Colin[pi]: on the other hand I have never been so motivated in all my life to succeed as I have been since becoming a dad, so yes they take, but they give more :)
243: [01:29:40] <Ryan-Toast> LimRes: Take a look at these: https://github.com/jquery-boilerplate/jquery-patterns/tree/master/patterns
244: [01:29:46] <Ryan-Toast> they will help you a lot.
245: [01:30:04] <Colin[pi]> LimRes: yes that's true, they help you will that :)
246: [01:32:20] <LimRes> Thanks Ryan-Toast
247: [01:33:00] <Ryan-Toast> What controller do I extend on a class that's extending DataObject?
248: [01:33:04] <Ryan-Toast> is it just DataObject_Controller ?
249: [01:33:11] * Jayden quit (Quit: Jayden)
250: [01:33:28] <LimRes> gotta run have a great day or night wherever you are all!
251: [01:33:39] * LimRes quit (Quit: Page closed)
252: [01:33:40] <Ryan-Toast> LimRes: Bye :)
253: [01:34:07] <simon_w> Ryan-Toast, data objects don't have controllers by default
254: [01:34:08] <guzzlefry> Snowman23: Are you rocking christmas tunes?
255: [01:34:25] <Snowman23> Nope
256: [01:34:25] <Snowman23> Hmm
257: [01:34:30] <Snowman23> No one playing anything
258: [01:34:35] <Snowman23> I'll put some Christmas music on
259: [01:34:35] <Snowman23> :3
260: [01:34:38] <simon_w> So play some CoD?
261: [01:34:40] <Snowman23> lol
262: [01:34:43] <Ryan-Toast> simon_w: So if I wanted to use functions in the frontEnd I should extend the Page_controller?
263: [01:34:44] <Snowman23> I'm going to be hated for this
264: [01:34:52] <simon_w> Ryan-Toast, Controller
265: [01:35:07] <Snowman23> So guis
266: [01:35:09] <Ryan-Toast> swish, simon_w
267: [01:35:10] <antmas> so, I bought headphones today
268: [01:35:11] <Snowman23> Snoopys Christmas, anyone?
269: [01:35:15] <antmas> and I haven't used them -_-
270: [01:35:22] <simon_w> Ooh, I need to get that
271: [01:35:48] <Snowman23> No no no, I can't do it, guzzlefry
272: [01:35:48] <guzzlefry> Snowman23: That's a song?
273: [01:35:49] <Snowman23> It's too mean
274: [01:35:54] <Snowman23> Snoopys Christmas album!
275: [01:35:58] <guzzlefry> dude
276: [01:36:03] <guzzlefry> if you want to be really evil
277: [01:36:10] <guzzlefry> Jimmy Buffet's Christmas Island album
278: [01:36:11] <antmas> Snowman23: http://www.youtube.com/watch?v=ikOWQ9YIb-A on repeat
279: [01:36:22] <guzzlefry> ruined my childhood :P
280: [01:36:33] <simon_w> guzzlefry, https://itunes.apple.com/nz/album/snoopys-christmas/id205120356?i=205120358
281: [01:36:49] <guzzlefry> It can't be worse than Jimmy Buffet, can it?
282: [01:36:59] <guzzlefry> Do you guys even know who that is? Might be isolated to the U.S.
283: [01:38:36] <guzzlefry> oh god, it might be worse...
284: [01:40:05] <simon_w> AND CALLED ON SNOOPY TO DO IT AGAIN
285: [01:41:08] <Snowman23> hahaha
286: [01:41:18] <Snowman23> simon_w is thinking of the album :D
287: [01:41:25] <Snowman23> I only played like half the first song before I gave up
288: [01:42:20] <simon_w> Well, I've got the album now
289: [01:42:29] * SightUnseen1 has joined #silverstripe
290: [01:43:05] <Snowman23> simon_w: I have a question
291: [01:43:13] <simon_w> Sorry, I'm taken
292: [01:43:16] <Snowman23> :(
293: [01:43:19] <Snowman23> simon_w: WE CAN SHARE <#
294: [01:43:24] * SightUnseen1 quit (Client Quit)
295: [01:44:09] <Snowman23> simon_w: In a gridfield, I want to get access to the exact member that I'm currently "on". $this->record displays the new item I'm adding
296: [01:44:15] <Snowman23> I almost need like $this->bigger-record
297: [01:44:19] <Snowman23> The record *above* the one I'm adding
298: [01:44:33] <simon_w> Why?
299: [01:44:50] <Snowman23> WEll I need the new object I create to be linked to the member I'm adding it for
300: [01:45:02] <simon_w> Using a HasManyList?
301: [01:45:26] <Snowman23> I'm not sure I understand. I want to set the relation on the new object in my gridfield "doSave" method
302: [01:45:40] <Snowman23> $sub = new Subscription(); $sub->MemberID = $the member ID how to get
303: [01:45:41] <Snowman23> etc
304: [01:45:45] <simon_w> Is the grid field managing a has_many or many_many?
305: [01:45:50] <Snowman23> I don't doubt I could be doing it wildly wrong
306: [01:45:51] <Snowman23> Um
307: [01:46:00] <Snowman23> Member has_many sub
308: [01:46:02] <Ryan-Toast> is there a javascript hook for after ajax has finished in the CMS?
309: [01:46:13] <simon_w> Snowman23, then the relation is set on save for you
310: [01:46:28] <Snowman23> simon_w: I'm not sure I can do what I want with the save
311: [01:46:29] <Snowman23> like
312: [01:46:45] <Snowman23> simon_w: I need to set a bunch of fields. Can I do that *and* call the default stuff that does the relation, can I?
313: [01:46:52] <simon_w> Snowman23, $this->list->add($sub)
314: [01:46:59] <simon_w> Or whatever it is
315: [01:47:06] <Snowman23> Does that set the reverse direction too?
316: [01:47:12] <Snowman23> $sub belongs to MemberID x
317: [01:47:23] <simon_w> It sets the has_one
318: [01:47:30] <simon_w> Since that's how a has_many works
319: [01:48:15] <Snowman23> I'm confused. I was under the impression, if member has one sub, $member needs to have the add called so it says "sub is my child", but *also*, sub needs to know the parent, memer, right?
320: [01:48:26] <Snowman23> So both $member->dostufftoaddsub, and $sub->MemberID = $member->ID?
321: [01:48:30] <simon_w> No
322: [01:48:34] <Snowman23> Hmm
323: [01:48:35] <Snowman23> Okay! :D
324: [01:48:36] <simon_w> Adding to the list sets the has_one
325: [01:49:10] <Snowman23> simon_w: $this->list doesn't exist though, that was a placeholder?
326: [01:49:14] <simon_w> yes
327: [01:49:16] <Snowman23> I can't var_dump($this) cause it inifinite loops somehow
328: [01:49:17] <Snowman23> :(
329: [01:49:20] <simon_w> it's whatever it actually is
330: [01:49:21] <Snowman23> So I don't know what it really is
331: [01:49:30] <Snowman23> $this->member for example?
332: [01:49:53] <Snowman23> $this is the gridlfield, right?
333: [01:49:54] <simon_w> $list = $this->gridField->getList();
334: [01:49:54] <simon_w> $list->add($this->record, $extraData);
335: [01:50:05] <simon_w> $this is the GridFieldDetailForm_ItemRequest
336: [01:50:17] <simon_w> THEN I SAW MUMMY KISSING SANTA CLAUSE
337: [01:51:16] <Snowman23> simon_w: I'm not using $this->Record atm. Should I use that instead of $foo = new foo()
338: [01:51:29] <Snowman23> simon_w: The reason I didnt' use it is if I caleld parent::doSave, it overwrites all my stuff
339: [01:51:30] <simon_w> Where are you?
340: [01:51:40] <Snowman23> SubscriptionGridFieldDetailForm_ItemRequest function doSave
341: [01:52:02] <simon_w> Then $this->record is what you should be using
342: [01:52:11] <Snowman23> Okay
343: [01:53:05] <Snowman23> hmm
344: [01:53:12] <Snowman23> doSave gets called when you edit something too, doesn't it? >.>
345: [01:53:17] <simon_w> yes
346: [01:53:20] <Snowman23> This is a lot more complicated than I would have liked
347: [01:53:37] <Snowman23> simon_w: Do you know a better way of doing this? I need to make it so that when you first create a new object via the gridfield "add" button, it sets some sane defaults
348: [01:53:40] <simon_w> Basically, copy doSave from GridFieldDetailForm_ItemRequest and change the $this->record->write(); line
349: [01:53:56] <Snowman23> Needs to be only when created via gridfield, not $foo = new Obj
350: [01:55:34] <antmas> so
351: [01:55:39] <antmas> no more Pyro?
352: [01:55:56] <simon_w> He's run off with his missus
353: [01:55:57] <Ryan-Toast> antmas: gone forever.
354: [01:56:17] <Snowman23> Oh what
355: [01:56:21] <Snowman23> Was friday his last IRC?
356: [01:56:21] <Snowman23> :O
357: [01:56:27] <antmas> yeah I think so
358: [01:56:33] <antmas> will be odd without him
359: [01:56:36] <antmas> ;__;
360: [01:56:49] <Snowman23> awww :(
361: [01:56:54] <Snowman23> Who's going to set us on fire?!
362: [01:57:26] <antmas> who's going to lol constantly at antmas ?
363: [01:57:42] <Snowman23> I'm laugh at you!
364: [01:57:43] <simon_w> Who's going to top most of the swear stats?
365: [01:57:48] <Snowman23> XD
366: [01:57:58] <antmas> Snowman23: I thought it was going to be simon_w
367: [01:57:59] <antmas> :P
368: [01:58:14] <Snowman23> we'll both laugh at you!
369: [01:58:18] <antmas> :D
370: [01:58:43] <antmas> I think spronk needs to be in here more to get the stats up
371: [01:58:55] <simon_w> But he's stopped using sub sites
372: [01:59:08] <simon_w> I like how autocorrect stops me from going up in those stats
373: [02:00:30] <Snowman23> ss23 best coder
374: [02:00:31] <Snowman23> $this->record->Subscriber = 1; // TODO: Halp what is this
375: [02:04:11] * antmas quit (Quit: Page closed)
376: [02:04:35] * antmas has joined #silverstripe
377: [02:06:34] <spronk> haha
378: [02:06:36] <spronk> subsites
379: [02:06:56] <simon_w> spronk, join us in laughing at antmas?
380: [02:07:02] <spronk> yup
381: [02:07:21] <antmas> everyone's doin it!
382: [02:07:33] <spronk> ;D
383: [02:07:37] <spronk> pyro not IRCing overseas?
384: [02:07:52] <antmas> I don't think he's left NZ yet
385: [02:07:56] <spronk> mm
386: [02:08:19] <antmas> BLAME IT ON MA ADD
387: [02:08:35] <simon_w> DON'T BLAME IT ON THE SUNSHINE
388: [02:09:02] <spronk> DON'T BLAME IT ON THE MOOONLIGHT
389: [02:09:14] <simon_w> DON'T BLAME IT ON THE GOOD TIMES
390: [02:09:23] <antmas> BLAME IT ON THE BOOGAAAAAAY
391: [02:09:36] <spronk> :AD
392: [02:09:56] <simon_w> We could start a text-based choir!
393: [02:10:03] <spronk> LAAAA
394: [02:11:30] <antmas> OMG
395: [02:11:43] <antmas> someone left chocolate fingers by my monitor
396: [02:12:09] <simon_w> Send them to me?
397: [02:12:35] * antmas passes simon_w melted chocolate fingers
398: [02:12:41] <simon_w> Bleugh
399: [02:12:54] <antmas> it'th all thlippery
400: [02:14:27] <Ryan-Toast> How can you call fucntions from a dataExtension
401: [02:14:37] <Ryan-Toast> Man, typing like a retard today.
402: [02:16:47] <Ryan-Toast> nv, you can just add them in.
403: [02:16:49] <Ryan-Toast> nvm**
404: [02:32:01] * robert_ quit (Read error: Connection reset by peer)
405: [03:09:41] * antmas quit (Quit: Page closed)
406: [03:10:03] * antmas has joined #silverstripe
407: [03:33:59] <antmas> yay for 4 day weeks :D
408: [03:39:24] <Zauberfisch23> so, where is Pyromanik going then? :O
409: [03:39:39] <antmas> Zauberfisch23: heading overseas
410: [03:39:52] <Zauberfisch23> I gathered as much
411: [03:40:03] <antmas> Zauberfisch23: oh
412: [03:40:05] <antmas> lol
413: [03:40:09] <antmas> WHERE
414: [03:40:13] <antmas> didn't read that
415: [03:40:18] <Zauberfisch23> but from NZ perspective, basicly anything is overseas
416: [03:40:20] <antmas> Zauberfisch23: he's heading to the UK
417: [03:40:52] <Zauberfisch23> I see
418: [04:01:37] * nickmolhoek quit (Quit: nickmolhoek)
419: [04:14:44] <Snowman23> simon_w: What you said doesnt' work :(
420: [04:14:48] <Snowman23> simon_w: Are you still here?
421: [04:17:06] <Snowman23> ;_;
422: [04:17:08] <Snowman23> this is hard
423: [04:20:09] * cloph has joined #silverstripe
424: [04:20:40] * camfindlay quit (Quit: camfindlay)
425: [04:20:50] * cloph_away quit (Ping timeout: 245 seconds)
426: [04:27:40] * Ryan-Toast quit (Quit: Ryan-Toast)
427: [04:29:53] <Zauberfisch23> Snowman23: blubb
428: [04:30:26] <Zauberfisch23> where is cam? :O
429: [04:42:37] <Snowman23> BLUB
430: [04:42:38] <Snowman23> He's gone home
431: [04:44:45] <Colin[pi]> slacker!
432: [04:44:59] <Zauberfisch23> !
433: [04:50:40] <Colin[pi]> what could go wrong
434: [04:50:41] <Colin[pi]> http://www.amazon.com/b?ie=UTF8&node=8037720011
435: [04:51:46] <Snowman23> I TAKE IT BACK
436: [04:51:51] <Snowman23> HE's here!
437: [04:51:54] <Snowman23> Just not on IRC I guess
438: [04:52:38] * UncleCheese quit (Quit: UncleCheese)
439: [04:53:52] <Zauberfisch23> Snowman23: :O
440: [04:54:12] <Zauberfisch23> naughty cam
441: [04:56:07] <Snowman23> ikr
442: [04:56:11] <Snowman23> Oh he's leaving now
443: [05:00:03] * EasyCo has joined #silverstripe
444: [05:00:54] <EasyCo> 'afternoon
445: [05:00:59] <Colin[pi]> heya
446: [05:03:05] <EasyCo> Argh, for some reason the $database name is no longer generating as SS_DATABASE_PREFIX . $database
447: [05:03:09] <EasyCo> I'm just getting the prefix
448: [05:03:42] <EasyCo> and it's only happening in production so it's bitch to debug
449: [05:04:39] <guzzlefry> Have anyone set up 301 redirects before?
450: [05:04:59] <guzzlefry> s/Have/Has
451: [05:05:03] <EasyCo> Si senior
452: [05:06:42] <guzzlefry> How tricky is it?
453: [05:06:53] <EasyCo> What 're u using?
454: [05:06:55] <EasyCo> Apache?
455: [05:07:17] <guzzlefry> yep
456: [05:07:20] <Zauberfisch23> guzzlefry: 1 line
457: [05:07:34] <EasyCo> .htaccess that shit
458: [05:07:52] <EasyCo> RewriteEngine On
459: [05:08:16] <guzzlefry> Zauberfisch23: Would silverstripe's .htaccess mess that up?
460: [05:08:37] <Zauberfisch23> guzzlefry: no, as long as you put it in the right place (before the silverstripe rewrites)
461: [05:08:41] <EasyCo> RewriteRule ^some_uri redirect/here [NC,L,R=301]
462: [05:09:21] <EasyCo> You can always use http://htaccess.madewithlove.be/ to test your rules too
463: [05:09:28] <guzzlefry> Redirect 301 /retiredpage.html http://www.xyz.com/newpage.html
464: [05:09:34] <guzzlefry> Didn't think it'd be that easy.
465: [05:09:43] <guzzlefry> Silverstripe's rewrites were my main concern though. :P
466: [05:09:49] <guzzlefry> thanks folks
467: [05:10:17] <Zauberfisch23> one note you might want to remember:
468: [05:10:22] <Zauberfisch23> redirecs are often cached
469: [05:10:45] <Zauberfisch23> so if you remove a redirect later, some clients might still do the redirect
470: [05:11:26] <guzzlefry> yeah, had that problem when moving the domain over the first time.
471: [05:11:37] <guzzlefry> It was redirecting from .com to the .biz site. :P
472: [05:13:05] <guzzlefry> another quick question, I should start immediately after setting a rewrite base, right?
473: [05:13:29] <EasyCo> start?
474: [05:13:32] <EasyCo> You mean restart?
475: [05:13:34] <EasyCo> No
476: [05:14:41] <Zauberfisch23> no, apache2 does not need a restart if you set the redirect via .htaccess
477: [05:15:13] <guzzlefry> err, I should start adding the 301s after the rewrite base declaration?***
478: [05:15:20] <guzzlefry> RewriteEngine On
479: [05:15:20] <guzzlefry> RewriteBase '/'
480: [05:23:32] <guzzlefry> Redirect 301 /retiredpage.html http://www.xyz.com/newpage.html
481: [05:23:36] <guzzlefry> That method doesn't seem to be working.
482: [05:23:42] <guzzlefry> But, I'll take this to @apache. :)
483: [05:34:41] <Zauberfisch23> guzzlefry: looks ok
484: [05:34:52] <Zauberfisch23> guzzlefry: paste your full .htaccess file
485: [05:41:08] <guzzlefry> okay, so now it's kind of working.
486: [05:41:18] <guzzlefry> But it's appending ?url=/path/to/old/page
487: [05:41:27] <guzzlefry> which is for whatever reason throwing SilverStripe off.
488: [05:44:54] <guzzlefry> Is it possible that SilverStripe is adding these?
489: [05:45:05] <Zauberfisch23> the htaccess part of silverstripe is
490: [05:45:28] <Zauberfisch23> unfortunately I am not that familiar with apache configs either
491: [05:45:32] <Zauberfisch23> but try something like this:
492: [05:45:32] <Zauberfisch23> RewriteCond %{REQUEST_FILENAME} ^retiredpage.html$
493: [05:45:33] <Zauberfisch23> RewriteRule (.*)$ http://www.xyz.com/newpage.html$1 [R=301,L]
494: [05:57:09] <Zauberfisch23> I know that this will work if you get the pattern right
495: [05:57:21] <Zauberfisch23> have a smiliar thing on seeral sites
496: [05:57:22] * Snowman23 parses some HTML with regex
497: [05:57:26] <Zauberfisch23> :D
498: [05:57:40] <Zauberfisch23> Snowman23: your parents must be proud
499: [05:57:52] <Snowman23> XD
500: [05:58:34] <Zauberfisch23> but I have to admit, in my early days, I actually tried parsing a xml document once
501: [05:58:37] <Zauberfisch23> with regex
502: [05:58:45] <Snowman23> HOLY DIVER, YOU'VE BEEN DOWN TOO LONG IN THE MIDNIGHT SEA, OH WHATS BECOMING OF ME
503: [05:58:48] * Snowman23 headbangs on Zauberfisch23
504: [05:59:00] <Snowman23> lo Zauberfisch23
505: [05:59:01] <Snowman23> Did you die?
506: [05:59:43] <Zauberfisch23> embarrassing, right?
507: [06:00:01] <Zauberfisch23> but well, early days, and I did realize that I was doing it wrong
508: [06:01:27] <guzzlefry> Snowman23: Dokken?
509: [06:01:29] <guzzlefry> or Dio...
510: [06:01:32] <guzzlefry> can never remember which :P
511: [06:02:39] <Snowman23> Dio, but Killswitch cover!
512: [06:02:57] <Snowman23> I realised I've spent like 4 hours writing code that I *know* is wrong
513: [06:03:01] <Snowman23> But it 'works'
514: [06:03:03] <Snowman23> yay ss23! :D
515: [06:03:59] <Colin[pi]> I've had moments like that before, but more like "this code is shit... but it's working so meh"
516: [06:04:15] <Snowman23> I'm getting coworker to peer review it, so he might have ideas of how to make it nicer
517: [06:04:36] <Colin[pi]> refactoring!
518: [06:15:28] * violetina quit (Remote host closed the connection)
519: [06:18:33] * Colin[pi] quit ()
520: [06:20:09] * sanjay has joined #silverstripe
521: [06:21:25] * Shashiechno has joined #silverstripe
522: [06:24:21] <Shashiechno> I am looking for paypal setup with ss any help ?
523: [06:24:25] <Shashiechno> Hey everyone,
524: [06:32:21] <sanjay> $query_some = DataObject::get_by_id("NAMEl", $parameter_some);------what is the new code for this in silverstripe 3.1
525: [06:34:27] <Snowman23> sanjay: TheDataObjectName::get()->byID(5)
526: [06:34:31] * Shashiechno quit (Quit: Page closed)
527: [06:36:43] * EasyCo quit (Quit: We can't stop here, this is bat country)
528: [06:42:10] * Shrike_Finland quit (Quit: Leaving.)
529: [06:42:20] * Shrike_Finland has joined #silverstripe
530: [06:42:31] * Shrike_Finland quit (Client Quit)
531: [06:49:57] * sanjay quit (Ping timeout: 250 seconds)
532: [07:00:37] * LEarner_ss has joined #silverstripe
533: [07:00:47] <LEarner_ss> syntax for removing field from tab in ss latest version
534: [07:02:39] <Snowman23> LEarner_ss: $form->removeByName('field-name')
535: [07:04:25] <LEarner_ss> removeFieldFromTab(root.content.main,content)------convert it to ss 3.1
536: [07:05:13] <LEarner_ss> send me the link where can i find solution to these issues?
537: [07:06:46] * willr has joined #silverstripe
538: [07:15:22] <LEarner_ss> add page is not moving forward wen i create the page...
539: [07:15:31] <LEarner_ss> what is the issue?
540: [07:17:37] <LEarner_ss> resolved the issue...
541: [08:00:29] * Azure quit (Quit: My MBP went to sleep.)
542: [08:02:34] * marvanni has joined #silverstripe
543: [08:02:35] * marvanni quit (Client Quit)
544: [08:15:44] * Sj0hn has joined #silverstripe
545: [08:27:49] * spronk2 has joined #silverstripe
546: [08:28:58] * Shrike_Finland has joined #silverstripe
547: [08:30:29] * LEarner_ss quit (Ping timeout: 250 seconds)
548: [08:31:37] * ARNHOE has joined #silverstripe
549: [08:58:15] * marvanni has joined #silverstripe
550: [09:01:18] * kinglozzer has joined #silverstripe
551: [09:10:30] * willr quit (Quit: willr)
552: [09:23:30] * zfmf has joined #silverstripe
553: [09:23:47] * wracu quit (Ping timeout: 250 seconds)
554: [09:38:41] * learner_ has joined #silverstripe
555: [09:42:51] * learner_ quit (Ping timeout: 250 seconds)
556: [09:48:50] <zippy___> spronk2: o/
557: [09:48:56] <spronk2> :P
558: [09:50:31] * learner_ has joined #silverstripe
559: [09:59:03] * robert_ has joined #silverstripe
560: [10:02:37] * spronk2 quit (Quit: spronk2)
561: [10:03:13] * learner_ quit (Ping timeout: 250 seconds)
562: [10:05:52] * spronk2 has joined #silverstripe
563: [10:10:01] * spronk2 quit (Ping timeout: 246 seconds)
564: [10:30:51] * sanjay has joined #silverstripe
565: [10:31:10] <sanjay> syntax for get_one
566: [10:32:19] <sanjay> what are the arguments in Dataobject::get(....)
567: [10:32:33] <sanjay> what are the arguments in Dataobject::get_one(....)
568: [10:39:01] <Zauberfisch23> we are not the API docs
569: [10:39:03] * mistersomeone has joined #silverstripe
570: [10:39:08] <Zauberfisch23> you should find the answer to that with google
571: [10:39:32] <mistersomeone> Anyone have time for a question?
572: [10:39:40] <discorpi1> sanjay: http://api.silverstripe.org/3.1/class-DataObject.html
573: [10:39:55] * discorpi1 is now known as discorpia
574: [10:40:33] * zippy___ quit (Ping timeout: 252 seconds)
575: [10:41:51] <mistersomeone> Well just going to throw this one out there. Recieved a Setting up the database; you will be returned to your site shortly.... message with a Server Error below ... just wondering if I should be waiting or if someone is wrong with the site...
576: [10:42:10] <mistersomeone> *something wrong with the site
577: [10:44:12] * zfmf has left #silverstripe
578: [10:51:29] * Martimiz has joined #silverstripe
579: [10:52:50] <Martimiz> Hi, anyone here who wants to talk to me about this forum spam issue?
580: [10:53:26] <Martimiz> Because this morning they're apearing as I delete them...
581: [10:54:46] <Martimiz> If this keeps up they'll totally fload the forums...
582: [10:56:31] <mistersomeone> which board is being spammed?
583: [10:56:55] <Martimiz> Hmm.. Noone? :(
584: [10:56:57] <mistersomeone> Oh just found it.....wow ..
585: [10:57:23] <mistersomeone> baba ji and tantrik should be banned
586: [10:58:09] <Martimiz> Sure, and others...
587: [10:58:32] <Martimiz> That's why I'm asking for a bit of help :)
588: [10:59:03] <mistersomeone> Yeah I have no power...but I am sympathetic to this issue..
589: [10:59:16] <kinglozzer> Yeah it's getting a bit ridiculous :P
590: [11:00:41] <Zauberfisch23> I have a solution
591: [11:00:49] <Zauberfisch23> actually, I have the solution
592: [11:00:52] <Zauberfisch23> dump the forum
593: [11:01:17] <Zauberfisch23> who uses that anyway? we have stackoverflow for support and the mailing list for dev talk
594: [11:02:26] <Martimiz> Still people using it. i don't know them personally :)
595: [11:02:48] <Zauberfisch23> they only use it because noone told them that they should ask on stackoverflow
596: [11:03:43] <kinglozzer> IMO the whole site is long overdue a rebuild
597: [11:03:55] <Zauberfisch23> agreed
598: [11:04:33] <Martimiz> Sure. But at this moment there is a problem and I'm personally receiving complaints...
599: [11:04:44] <kinglozzer> It's so 2008 :P
600: [11:06:31] * Martimiz quit (Quit: Page closed)
601: [11:07:15] <Zauberfisch23> did we just accidently trolled him away? that was not my intention
602: [11:07:39] <Zauberfisch23> I was sincere when I said dumping the forum is the solution
603: [11:12:12] <kinglozzer> I dunno, there are already captchas on the registration form anyway
604: [11:12:24] <kinglozzer> Not much more you can do besides dumping them like you suggest
605: [11:13:40] <Zauberfisch23> especially considering that the forum lacks so much features
606: [11:13:51] <Zauberfisch23> like "new posts since last visit", "unread posts"
607: [11:13:54] <Zauberfisch23> and all that
608: [11:14:08] <Zauberfisch23> so it was never really usefull to begin with, because it was just a pain to use
609: [11:14:27] <kinglozzer> Yeah. I'm guessing it's an old version of the silverstripe forum module
610: [11:14:46] <Zauberfisch23> I doupt the newer versions have more features
611: [11:15:15] <kinglozzer> Mm, I agree
612: [11:15:33] <kinglozzer> For that stuff, use proper forum software
613: [11:55:22] * Martimiz has joined #silverstripe
614: [12:01:30] <Martimiz> Hi again, @Zauberfish23: sorry, something went wrong on this site, sorry, never meant to just up and go like that!
615: [12:05:58] * Martimiz quit (Quit: Page closed)
616: [12:15:08] * martimiz has joined #silverstripe
617: [12:20:20] * DryerLintPurple quit (Remote host closed the connection)
618: [12:21:27] * DryerLintPurple has joined #silverstripe
619: [12:26:12] * zfmf has joined #silverstripe
620: [12:33:16] * zfmf has left #silverstripe
621: [12:49:11] <Zauberfisch23> martimiz (:
622: [12:50:26] <martimiz> I couldn't seem to keep a connection, is all :)
623: [12:51:04] <ARNHOE> Anyone can help me with a sql query/ orm filter? I would like to sent out a reminder 30 days before EndDate
624: [12:51:25] <Zauberfisch23> well, I was just saying that I honestly think that dumping the forum is the best idea
625: [12:51:44] <martimiz> You are probably right!
626: [12:52:15] <martimiz> But while they're thinking about it, we still need to find a solution
627: [12:53:06] <martimiz> because removing 100+ spam one by one is eh… a hassle..
628: [12:56:28] * sanjay quit (Quit: Page closed)
629: [13:06:06] <kinglozzer> Grrrrr. Why is SS_Cache ignoring my cache lifetimes? :(
630: [13:07:07] <kinglozzer> Does file-based caching not support lifetimes or something? I'm just trying to test it by passing '1' as the cache key
631: [13:07:21] <kinglozzer> Meh, one for after lunch
632: [13:42:15] <ARNHOE> Anyone can help me with a sql query/ orm filter? I would like to sent out a reminder 30 days before EndDate
633: [13:56:02] <martimiz> something like where("DATEDIFF(EndDate, CURDATE()) = 30")
634: [14:20:23] * violetina has joined #silverstripe
635: [14:33:12] * Shrike_Finland quit (Quit: Leaving.)
636: [14:45:30] <ARNHOE> cheers martimiz been struggling with INTERVAL and such, but that only seems to show rows between curdate and the interval. While I only want rows that are 30 days from expiring
637: [14:46:12] <martimiz> So this works?
638: [14:47:21] <ARNHOE> yes it does, but it could cause problems with months that are 31 days etc
639: [15:02:13] <martimiz> DATEDIFF just returns days between, never mind the month… So if it's 30 days you want?
640: [15:04:57] * catcher has joined #silverstripe
641: [15:15:42] * jrthomer quit (Ping timeout: 246 seconds)
642: [15:16:47] * jrthomer has joined #silverstripe
643: [15:22:03] <kinglozzer> Anyone in here who's good with javascript? I want to 'DRY' this off: http://pastie.org/8523072
644: [15:22:07] * Azure has joined #silverstripe
645: [15:30:44] <ARNHOE> Anyone working here for a internet agency that provides hosting? I wonder how you guys save the usernames and passwords, same for SilverStripe websites that are launched.
646: [15:32:16] <kinglozzer> ARNHOE: Yeah we do. We never give clients full 'ADMIN' privileges
647: [15:32:40] <kinglozzer> CMS usernames/passwords we store in an 'intranet' of sorts
648: [15:36:36] <ARNHOE> hmpf thats a cool idea. Whats the reason that you dont give out admin privileges?
649: [15:42:25] <kinglozzer> ARNHOE: No specific reason why, we do sometimes. But mostly because clients don't usually need admin privileges
650: [15:43:18] <kinglozzer> If we keep admin privileges, we've always got a log in (without editing _config.php and adding Security::defaultAdmin())
651: [15:43:31] <Sj0hn> I'm trying to redirect back a form that on a dataobject as page.. but it redirects back to the listing page
652: [15:43:36] <Sj0hn> i use this code $this->redirect( Director::baseURL() . $this->URLSegment . "/?success=2" );
653: [15:43:37] <kinglozzer> Just makes things a bit easier for us
654: [15:44:04] <kinglozzer> Sj0hn: Can't you use $this->redirectBack() ?
655: [15:44:47] <kinglozzer> Ah, you're adding a query string
656: [15:44:59] <Sj0hn> yes
657: [15:45:00] <Sj0hn> that works
658: [15:45:11] <Sj0hn> but indeed the query string
659: [15:45:17] <kinglozzer> Never used dataobject as pages, but I'm guessing you'll need to add in the action
660: [15:47:34] <Sj0hn> To bad :p not sure what to add though, hoped someone here had some exp using this module
661: [15:48:41] <Sj0hn> Can you set a message using the redirectBack function? (thats the only reason im using the query string)
662: [15:53:36] * Liquide^2 has joined #silverstripe
663: [16:04:48] * outrunthewolf has joined #silverstripe
664: [16:04:57] * g4b0_ has joined #silverstripe
665: [16:05:06] <g4b0_> hi all
666: [16:05:24] <outrunthewolf> hi
667: [16:05:41] <g4b0_> I'm working with staticpublishqueue
668: [16:06:12] * Sj0hn quit (Quit: Ik ga weg)
669: [16:06:37] <g4b0_> during pagesAffectedByChanges() I would like to know if the Page has been modified
670: [16:06:46] <g4b0_> how can I do it?
671: [16:18:36] * ARNHOE_ has joined #silverstripe
672: [16:19:15] * ARNHOE quit (Ping timeout: 260 seconds)
673: [16:23:39] * ARNHOE_ quit (Remote host closed the connection)
674: [16:40:47] * ocm has joined #silverstripe
675: [16:40:49] <ocm> howdy
676: [16:41:13] <ocm> I got something weird. I have a dataobject 'OfficeLocation' with has a field named 'Location'
677: [16:41:40] <ocm> I can attach the location to some page, however it gets an old (wrong) value with a type
678: [16:41:46] <ocm> flush=1 doesnt cure this
679: [16:41:56] <ocm> the wrong (old) value doesnt exists in the database anymore
680: [16:41:58] <ocm> help?!
681: [17:00:36] * g4b0_ quit (Quit: Sto andando via)
682: [17:01:55] * martimiz has left #silverstripe
683: [17:08:04] * kinglozzer quit ()
684: [17:29:40] * ocm quit (Ping timeout: 260 seconds)
685: [17:34:16] * travis-ci has joined #silverstripe
686: [17:34:16] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1631 (3.1 - 808a1a1 : Ingo Schommer): The build passed.
687: [17:34:16] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/6ea59e68ad64...808a1a13a036
688: [17:34:17] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/14816998
689: [17:34:17] * travis-ci has left #silverstripe
690: [17:38:02] * MichaelDesignerX quit (Ping timeout: 264 seconds)
691: [17:48:17] * r3v3rb has joined #silverstripe
692: [17:54:39] * AlphaCactus has joined #silverstripe
693: [17:59:08] * travis-ci has joined #silverstripe
694: [17:59:09] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1632 (3.1 - 7136daa : Ingo Schommer): The build has errored.
695: [17:59:09] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/808a1a13a036...7136daa56d7a
696: [17:59:09] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/14817564
697: [17:59:09] * travis-ci has left #silverstripe
698: [18:07:42] * peter_ss has joined #silverstripe
699: [18:19:06] * outrunthewolf quit (Ping timeout: 246 seconds)
700: [18:26:38] * r3v3rb quit (Read error: Connection reset by peer)
701: [18:26:54] * travis-ci has joined #silverstripe
702: [18:26:54] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1632 (3.1 - 7136daa : Ingo Schommer): The build passed.
703: [18:26:54] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/808a1a13a036...7136daa56d7a
704: [18:26:54] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/14817564
705: [18:26:54] * travis-ci has left #silverstripe
706: [18:28:13] * travis-ci has joined #silverstripe
707: [18:28:13] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#673 (3.1 - 78b9ef2 : Ingo Schommer): The build was fixed.
708: [18:28:13] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/8613e055ae3b...78b9ef2df32e
709: [18:28:13] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/14819349
710: [18:28:13] * travis-ci has left #silverstripe
711: [18:31:06] * r3v3rb has joined #silverstripe
712: [18:31:15] * r3v3rb quit (Client Quit)
713: [18:35:58] * travis-ci has joined #silverstripe
714: [18:35:58] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1633 (3.1 - a7ad85c : Ingo Schommer): The build passed.
715: [18:35:58] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/7136daa56d7a...a7ad85c2a8be
716: [18:35:59] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/14819367
717: [18:35:59] * travis-ci has left #silverstripe
718: [18:59:15] * antmas quit (Quit: Page closed)
719: [19:01:56] * SightUnseen has joined #silverstripe
720: [19:02:03] * SightUnseen has left #silverstripe
721: [19:12:29] * antmas has joined #silverstripe
722: [19:14:39] * ARNHOE has joined #silverstripe
723: [19:19:11] * antmas quit (Ping timeout: 250 seconds)
724: [19:27:29] * antmas has joined #silverstripe
725: [19:30:03] <catcher> Is it possible to send along a cms validation error from onAfterWrite?
726: [19:30:43] <simon_w> throw a ValidationException
727: [19:30:56] <simon_w> though onAfterWrite's a bit late
728: [19:31:47] * willr has joined #silverstripe
729: [19:32:34] <catcher> simon_w, onBefore soon enough?
730: [19:32:56] <simon_w> Yes, given that it hasn't written yet
731: [19:34:08] * mobiusnz quit (Quit: Leaving.)
732: [19:39:46] <catcher> any way for an object to determine its modeladmin edit link?
733: [19:40:44] <AlphaCactus> you can copy paste the url and replace the unique bits...
734: [19:41:48] * Ryan-Toast has joined #silverstripe
735: [19:42:29] <catcher> AlphaCactus, 'til the url seg changes..
736: [19:44:14] * Liquide^2 quit ()
737: [19:46:12] <AlphaCactus> oh is dis a module
738: [19:46:36] <simon_w> catcher, you need that the url segment is a static you provide?
739: [19:47:11] * UncleCheese has joined #silverstripe
740: [19:47:22] <catcher> It'd be convenient to provide a link from a page to a related object's edit form
741: [19:47:42] <catcher> Not a module, so it's probably safe to hard-code the URL.
742: [19:47:52] <simon_w> Even in a module it's safe
743: [19:48:13] * peter_ss quit (Quit: Leaving.)
744: [19:49:04] <catcher> unless the URLSeg of the modeladmin itself changes, which is pretty unlikely.
745: [19:59:16] * SightUnseen has joined #silverstripe
746: [19:59:21] * SightUnseen has left #silverstripe
747: [20:02:33] * mobiusnz has joined #silverstripe
748: [20:13:51] <Ryan-Toast> antmas: Nearly finished my new portfolio site. Looks sooo good.
749: [20:14:38] <antmas> I still haven't started yet :(
750: [20:14:45] <Ryan-Toast> antmas: You can do eet :D
751: [20:15:14] <simon_w> Can I be bothered building a portfolio? Hmm, nah
752: [20:15:52] <Ryan-Toast> simon_w: I just want to beat out that fucking Cartoon network kid for my name.
753: [20:16:01] <simon_w> Haha
754: [20:16:17] <simon_w> http://nz.bing.com/search?q=simon+welsh&form=APMCS1
755: [20:16:26] <simon_w> Hmm, that poet's moved up
756: [20:16:44] <Ryan-Toast> Bing? What are this?
757: [20:17:01] <Ryan-Toast> Look at this smug asshole: https://www.google.co.nz/search?q=ryan+potter&oq=ryan+potter&aqs=chrome..69i57j69i61l2j69i60j0l2.1429j0j7&sourceid=chrome&espv=210&es_sm=119&ie=UTF-8
758: [20:17:04] <simon_w> Doesn't do stupid things like google
759: [20:17:41] <simon_w> Start some blackhat SEO? ;)
760: [20:17:53] <Ryan-Toast> I am going to, MUHAHAHA
761: [20:18:34] <antmas> Bing beta?
762: [20:18:35] <antmas> hmmm
763: [20:19:05] <Ryan-Toast> Welcome to ryan potter's portfoio, of work done by ryan potter. ryan potter has been working for...
764: [20:19:41] <antmas> blgh
765: [20:19:48] <antmas> breath mints and coffee
766: [20:19:49] <antmas> :<
767: [20:20:56] <simon_w> Ryan-Toast, that's not blackhat :p
768: [20:21:13] <Ryan-Toast> simon_w: Well I don't want to get blacklisted :P
769: [20:21:22] <simon_w> So don't get caught? :p
770: [20:21:28] <Ryan-Toast> lol.
771: [20:21:34] <Ryan-Toast> Just DDOS all his sites.
772: [20:21:59] <simon_w> Nah, get them blacklisted instead :p
773: [20:22:08] <simon_w> Ooh, DCMA requests!
774: [20:24:03] <Ryan-Toast> What's a DCMA request?
775: [20:24:14] <antmas> request of content removal kinda thing isn't it?
776: [20:24:19] <Ryan-Toast> lol
777: [20:24:20] <simon_w> Yeah
778: [20:24:30] <simon_w> With no penalties for false claims
779: [20:24:32] <Ryan-Toast> I DON'T LIKE THEM BEING HIGHER ON GOOGLE THAN ME!
780: [20:24:50] <Ryan-Toast> I shall consult the elders of the internet.
781: [20:25:24] <simon_w> She didn't give the internet back either!
782: [20:25:38] <Ryan-Toast> It was destroyed, that's why.
783: [20:25:50] <simon_w> Nope, watch the bonus final episode :p
784: [20:26:27] <Ryan-Toast> I did.
785: [20:26:29] <Ryan-Toast> Hmm.
786: [20:26:37] <Ryan-Toast> Can't remember what happened now.
787: [20:26:52] <Ryan-Toast> Fuck I love that show.
788: [20:27:03] * mobiusnz quit (Quit: Leaving.)
789: [20:27:06] * antmas doesn't know what show it is :(
790: [20:27:17] <Ryan-Toast> IT crowd
791: [20:27:23] <simon_w> SHUN
792: [20:27:26] <antmas> :OI
793: [20:27:30] <Ryan-Toast> SHUN THE NON BELIEVER
794: [20:27:31] <antmas> <3
795: [20:27:45] <simon_w> SHHHH-UNNNNNNN
796: [20:28:08] <guzzlefry> :(
797: [20:28:47] <Ryan-Toast> "Morning, Ryan. Can you change this link on my site?", Sure, can I get your login details, and I'll do that for you now. "Sorry, we can't let anyone but us log in" ............
798: [20:28:48] <antmas> guzzlefry: what problem?
799: [20:29:02] <simon_w> guzzlefry, do we need to shun you too?
800: [20:29:07] <guzzlefry> antmas: they're shunning you!
801: [20:29:19] <guzzlefry> simon_w: I was shunned the day I was born.
802: [20:29:20] <antmas> :O but I do know the show
803: [20:29:32] <antmas> just didn't get the ref
804: [20:29:33] * guzzlefry plays Fallout Boy really loud.
805: [20:29:58] <simon_w> It's the internet Jen, it doesn't weigh anything
806: [20:30:24] <Ryan-Toast> simon_w: Well if it's okay with the Hawk
807: [20:31:19] <antmas> huh
808: [20:31:26] <antmas> Richard Ayoade was also in Mighty Boosh
809: [20:31:29] <antmas> I think
810: [20:31:42] <antmas> Moss is awesom
811: [20:32:55] <Ryan-Toast> antmas: yeah, he was.
812: [20:33:17] <Ryan-Toast> antmas: he's a genie I think
813: [20:33:26] <antmas> Saboo
814: [20:33:58] <Ryan-Toast> antmas: http://www.youtube.com/watch?v=ufP1bXKBipg
815: [20:34:16] <antmas> the crunch
816: [20:34:18] <antmas> XD
817: [20:34:22] <antmas> also
818: [20:34:29] <antmas> Census out today?
819: [20:36:04] <simon_w> Aren't you the government worker?
820: [20:36:42] <antmas> simon_w: not really
821: [20:37:30] <simon_w> Where's Peavers when you need him?
822: [20:38:09] <antmas> local govt. IT probably has LESS knowledge of govt. info than the general public :P
823: [20:39:31] <antmas> although if Zippy ever needs his rates changed... :P
824: [20:44:48] <simon_w> Add a "tip to antmas" to the charges? ;)
825: [20:45:08] <antmas> my family's religion is officially 'Cthulhu Cult'
826: [20:47:53] * antmas quit (Quit: Page closed)
827: [20:48:02] <Ryan-Toast> antmas: the census should have some more interesting sections i.e would you rather fight 100 duck sized horses, or one horse sized duck?
828: [20:48:13] * antmas has joined #silverstripe
829: [20:48:33] <simon_w> Ryan-Toast, bad timing :p
830: [20:48:47] <Ryan-Toast> simon_w: Really bad timing.,
831: [20:48:49] <Ryan-Toast> Ryan-Toast: antmas: the census should have some more interesting sections i.e would you rather fight 100 duck sized horses, or one horse sized duck?
832: [20:49:57] <antmas> Ryan-Toast: important information
833: [20:50:09] <Ryan-Toast> antmas: Well the rest is so boring.
834: [20:50:33] <Ryan-Toast> "If you could have three testicals, would you?"
835: [20:51:54] <Ryan-Toast> that and they waste hundreds of thousands of dollars on printing out all the forms, and I just go online and do it.
836: [20:52:39] <antmas> it should be totally online now
837: [20:52:46] <antmas> did ours online too
838: [20:53:01] <simon_w> But filling it out by hand is so much more fun
839: [20:53:24] <AlphaCactus> when you say fun...
840: [20:53:34] <antmas> I'm a Cthulhu priest, my partner is my concubine and our 1.4yr old sun is our sacrificial bargaining chip
841: [20:53:35] <antmas> lol
842: [20:53:37] <AlphaCactus> is that kinda like "yay"
843: [20:53:39] <simon_w> That's not a sarcastic fun either
844: [20:53:46] <Ryan-Toast> antmas: lol.
845: [20:54:06] <simon_w> I got to fill out two forms and everything!
846: [20:54:47] * DigNZ has joined #silverstripe
847: [20:55:12] <antmas> I wonder what NZ's Jedi/Sith ratio is now
848: [20:56:51] * mobiusnz has joined #silverstripe
849: [21:07:44] <Ryan-Toast> antmas: Sith 4 lyf.
850: [21:08:04] <Ryan-Toast> Well technically there should only be 2.
851: [21:09:16] <antmas> I bet the Sith is that Craig guy from the Conservative party
852: [21:09:35] <Ryan-Toast> antmas: I know nothing about politics.
853: [21:10:13] <antmas> Ryan-Toast: it's kinda annoying - but I have quite sharply become knowledgeable since joining local govt.
854: [21:10:22] <antmas> even though it has nothing to do with it really
855: [21:10:33] <simon_w> Sucks to be you!
856: [21:10:38] <antmas> it does :(
857: [21:10:48] <antmas> now people expect opinions of me :(
858: [21:11:04] <simon_w> People just expect answers from me
859: [21:11:11] <antmas> "oh, you don't support asset sales?" "go die in a fire"
860: [21:11:25] <antmas> or vice versa
861: [21:11:53] <antmas> simon_w: but you have all the answers!
862: [21:12:09] <simon_w> Pfft!
863: [21:12:14] <antmas> snowman23 is late :O
864: [21:12:33] <simon_w> "Preliminary info from event recorders shows train was traveling at approx 82 mph as it entered the 30 mph curve."
865: [21:12:37] <simon_w> That's not so good
866: [21:12:52] <antmas> was that the US crash?
867: [21:12:56] <simon_w> Yeah
868: [21:12:59] <antmas> crazy
869: [21:13:20] <simon_w> NTSB: Talking about investigations properly
870: [21:14:00] <antmas> being numbed by crappy media, I still read that as "train gon' too damn fast!"
871: [21:14:38] <antmas> what was the death toll in the end?
872: [21:16:04] * Azure_ has joined #silverstripe
873: [21:16:36] <simon_w> 7? Still chance of going up though
874: [21:16:40] * Azure quit (Disconnected by services)
875: [21:16:44] * Azure_ is now known as Azure
876: [21:17:24] <antmas> dang
877: [21:17:33] <antmas> also, SpaceX launch today?
878: [21:18:54] * Toe has joined #silverstripe
879: [21:20:38] * DryerLintPurple quit (*.net *.split)
880: [21:24:20] <simon_w> Yay, VirtualBox may have finally fixed the zombie process problem!
881: [21:25:25] <simon_w> Well, I need to restart to install the update, so I may as well grab 10.9 GM2
882: [21:26:04] <Ryan-Toast> Does anyone know if DPS have a limit to how much you can have in a transaction?
883: [21:28:33] <simon_w> If it does, we haven't hit it
884: [21:31:10] * simon_w quit (Quit: Leaving)
885: [21:39:28] <antmas> Ryan-Toast: monetary value you mean?
886: [21:39:41] <Ryan-Toast> antmas: Yeah.
887: [21:39:57] <Ryan-Toast> antmas: Can they set that in your account, or something?
888: [21:40:08] <Ryan-Toast> More likely an issue with this code.
889: [21:40:18] <Ryan-Toast> antmas: yay I get to sift through 1000+ classes.
890: [21:40:36] <guzzlefry> Has anyone successfully done 301 redirects in SilverStripe?
891: [21:41:02] <guzzlefry> basically pointing pages from an old server to the new SilverStripe-type URLs.
892: [21:41:02] <antmas> Ryan-Toast: I'm sure it can be set yeah
893: [21:41:14] <guzzlefry> sans ?url crap that it appends...
894: [21:42:50] <Snowman23> antmas: I'M HERE
895: [21:43:08] <antmas> Snowman23: HOORAY!
896: [21:45:47] * thatguy_ has joined #silverstripe
897: [21:45:52] * Apenstaart has joined #silverstripe
898: [21:46:05] * ARNHOE quit (Remote host closed the connection)
899: [21:46:08] <thatguy_> Hey anyone have time for a question?
900: [21:46:25] <antmas> thatguy_: shoot
901: [21:47:00] * ARNHOE has joined #silverstripe
902: [21:47:12] <thatguy_> Rebuilding a live site and I run into an access denied error
903: [21:47:43] <antmas> thatguy_: permissions?
904: [21:48:35] <thatguy_> Well the permissions are set in the environment file as a regular user to access the database
905: [21:56:29] * Apenstaart quit (Ping timeout: 250 seconds)
906: [21:58:59] * camfindlay has joined #silverstripe
907: [21:59:43] * UncleCheese quit (Quit: UncleCheese)
908: [22:00:09] <Ryan-Toast> antmas: Found the issue. When the amount got into the thousands it adds a "," which the classes didn't like.
909: [22:00:19] <Ryan-Toast> REGEX TO THE RESCUE
910: [22:01:17] <antmas> weird
911: [22:01:39] <antmas> surely you can stop the "," without a regex?
912: [22:01:48] <Ryan-Toast> yeah, just used a preg_replace
913: [22:06:49] <antmas> census info is up
914: [22:06:53] <antmas> or some of it at least
915: [22:09:28] <antmas> phwoar, unemployment went up a bit
916: [22:10:51] <antmas> "The median income was $28,500" :(
917: [22:10:55] <antmas> that's depressing
918: [22:13:55] * antmas quit (Quit: Page closed)
919: [22:14:18] * antmas has joined #silverstripe
920: [22:20:35] <antmas> cool, SpaceX launch at ~9.45am tomorrow
921: [22:20:52] <Snowman23> ohhh
922: [22:20:52] <Snowman23> kk
923: [22:40:50] <antmas> :D payrise info coming this week
924: [22:40:51] <antmas> w00t
925: [22:42:42] <Snowman23> yay!
926: [22:43:30] <antmas> probably just enough to match inflation!
927: [22:43:31] <antmas> :P
928: [22:45:19] * catcher quit (Quit: Leaving)
929: [22:45:46] <Ryan-Toast> antmas: I'm getting one too :D My 3 month probation period is over, yay.
930: [22:46:39] <antmas> Ryan-Toast: trial period?
931: [22:46:48] <Ryan-Toast> antmas: yeah that 90 day bs
932: [22:47:00] <antmas> we go through some crazy grading system every 12 months
933: [22:47:08] <antmas> appraisals on crack
934: [22:47:47] <antmas> mine was 'oustanding' :D
935: [22:48:21] <Ryan-Toast> antmas: At my old job we had that too. You had a whole day to write out reports on people in your team, and you had to acheieve certain goals for weach quarter etc
936: [22:48:40] <antmas> Ryan-Toast: yeah exactly the same here
937: [22:48:57] <Ryan-Toast> And your pay rise was reletive to how that report went :P
938: [22:49:05] <Ryan-Toast> relative*
939: [22:49:20] <antmas> my big one was a proof of concept on Sharepoint 2013 as an intranet replacement o.O
940: [22:49:36] <Ryan-Toast> wow onl;y 76% of nz homes have internet.
941: [22:50:49] <antmas> Ryan-Toast: relatively speaking, those remaining 24% probably SHOULDN'T have internet if it's taken them this long
942: [22:51:20] <Ryan-Toast> antmas: Probs state housing.
943: [22:55:08] <antmas> prolly
944: [22:56:49] <Ryan-Toast> 7.1% unemplyment rate.
945: [22:56:53] <Ryan-Toast> no good.
946: [22:56:57] <antmas> wait
947: [22:57:02] <antmas> I thought it was higher than that?
948: [22:57:11] * antmas must have read the wrong stat
949: [22:57:18] <Ryan-Toast> . The unemployment rate gives the number of unemployed people as a percentage of the labour force.
950: [22:57:30] <Ryan-Toast> Don't know what that means.
951: [22:58:06] <antmas> so it's bascially not out of the whole country
952: [22:58:13] <antmas> just those who are able to work in some capacity
953: [22:58:17] <Ryan-Toast> What is the labor force?
954: [22:58:31] <Ryan-Toast> Over a million adults (people aged 15 years and over) were not in the labour force in 2013 – up 10.0 percent since 2006. Almost 1 in 3 people (32.9 percent) aged 15 and over were not in the labour force.
955: [22:58:59] <antmas> yeah its the number of people capable of work
956: [23:01:42] <antmas> I wonder if that counts ACC benos?
957: [23:04:09] * EasyCo has joined #silverstripe
958: [23:05:21] <EasyCo> Morning
959: [23:05:38] <antmas> afternoon
960: [23:07:07] * violetina quit (Remote host closed the connection)
961: [23:17:33] * folibis has joined #silverstripe
962: [23:17:41] <folibis> hi all!
963: [23:19:20] <EasyCo> Hello
964: [23:20:04] <folibis> guys, please help! I have a controller with form and handker, getForm() and doForm() accordingly. inside getForm() I set session and inside doForm() I want to read it. but Controller calls doForm() to get the form data and rewrite my session.
965: [23:20:43] * thatguy_ quit (Quit: Page closed)
966: [23:20:47] <folibis> sorry ... Controller calls getForm() before doForm()
967: [23:21:50] <folibis> I try to do my own captcha
968: [23:22:30] <EasyCo> paste bin your code, you might get more help :)
969: [23:22:54] <folibis> ehh ... ok
970: [23:23:29] <antmas> folibis: use this http://www.sspaste.com/
971: [23:29:46] <Ryan-Toast> Reddit always goes down on my lunch break :(
972: [23:31:53] <folibis> ok this is simplified code of my contyroller - http://www.sspaste.com/paste/show/529d15c90b2f7
973: [23:31:53] * MichaelDesignerX has joined #silverstripe
974: [23:32:52] <folibis> so, if I understand, Contyroller calls PostForm() just before doPost() and clear the session
975: [23:34:16] <EasyCo> Are you sure PostForm is getting called on post?
976: [23:37:19] * terryapodaca has joined #silverstripe
977: [23:37:19] * Avro quit (Ping timeout: 260 seconds)
978: [23:37:19] <terryapodaca> type="text/rocketscript" can someone tell me why this is being added to all my script tags?
979: [23:37:19] * Jayden has joined #silverstripe
980: [23:37:37] * Kapdap_ quit (Ping timeout: 252 seconds)
981: [23:38:41] <folibis> yes, this is only place where i set the session and inside doPost() session already wrong
982: [23:38:41] <folibis> if I do some logging i see that PostForm() called twice
983: [23:39:17] * Kapdap has joined #silverstripe
984: [23:39:17] <Jayden> Guys what is best practice these days, "<% if Content %>" or "<% if $Content %>"
985: [23:39:26] <EasyCo> Jayden: Always $
986: [23:39:26] <terryapodaca> both are allowed
987: [23:39:34] <terryapodaca> but i've been adding it now that we can
988: [23:40:38] <terryapodaca> old versions of SS didn't use it
989: [23:40:38] * camfindlay quit (Quit: camfindlay)
990: [23:40:38] <terryapodaca> in the condition that is...you had to use the $ with variables
991: [23:41:43] <Jayden> Even stuff you dont set, like "<% if $First %>"?
992: [23:41:43] <EasyCo> Yep
993: [23:41:43] <EasyCo> Just stick with it
994: [23:41:43] <Jayden> Sweet :)
995: [23:41:43] <EasyCo> Convention bruuu
996: [23:41:43] <Jayden> yea
997: [23:41:57] <Jayden> except "<% include Banner %>"
998: [23:43:07] <terryapodaca> does that not work?
999: [23:43:11] * Avro has joined #silverstripe
1000: [23:43:28] <EasyCo> folibis: I wouldn't expect PostForm to run twice but I guess you could just clear the session in the doPost instead
1001: [23:45:47] <folibis> EasyCo: but before I clear it I need to get the saved session
1002: [23:45:52] <Jayden> terryapodaca: yep, trying gets "Parse error in template on line 1. Error was: Unexpected problem parsing template"
1003: [23:47:04] <folibis> doPost() looks like public function doPost($data,$form) and I guess it calls PostForm() to get the form data
1004: [23:48:16] <EasyCo> folibis: Yah that's fine, leave line 18 of http://www.sspaste.com/paste/show/529d15c90b2f7 there.
1005: [23:48:33] <EasyCo> But place line 19 after line 38?
1006: [23:48:42] <EasyCo> Would that not achieve the same thing?
1007: [23:49:20] * simon_w has joined #silverstripe
1008: [23:50:21] <terryapodaca> type="text/rocketscript" can someone tell me why this is being added to all my script tags?
1009: [23:50:43] <folibis> noo ... I store form fields data in some errro case and restore it ...
1010: [23:51:44] * DigNZ1 has joined #silverstripe
1011: [23:52:27] <simon_w> terryapodaca, CloudFlare
1012: [23:52:48] * DigNZ quit (Ping timeout: 260 seconds)
1013: [23:53:14] <terryapodaca> wtf is CloudFlare
1014: [23:53:54] * DigNZ has joined #silverstripe
1015: [23:54:08] <Bollig|DesignCty> search engine it?
1016: [23:56:38] * DigNZ1 quit (Ping timeout: 264 seconds)

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