#silverstripe IRC Log

IRC log for 5 August 2014

All timestamps are in UTC.

1: [00:00:23] <spronk> http://img.planespotters.net/photo/199000/original/A9C-HAK-Bahrain-Royal-Flight-Boeing-747SP_PlanespottersNet_199003.jpg
2: [00:00:28] <spronk> tiny little short 747s
3: [00:00:47] <antmas> spronk: woah, weird
4: [00:00:58] <irogue_> my fav plane is the beluga
5: [00:01:01] <spronk> so much less boring than http://upload.wikimedia.org/wikipedia/commons/7/71/2010-06-30_A330_LH_D-AIKK_EDDF_02.jpg
6: [00:01:03] <spronk> fucking flying tubes
7: [00:01:13] <spronk> god cylindrical planes are ugly
8: [00:01:19] <spronk> haha :D
9: [00:01:31] <spronk> the whales
10: [00:01:37] <spronk> http://www.kristofmeunier.fr/pm187853.JPG
11: [00:01:41] <spronk> SUCH LOGO DESIGN
12: [00:02:09] <Ryan-Toast> spronk: How shit like that stays in the air is beyond my understanding.
13: [00:02:13] <spronk> ikr
14: [00:02:23] <zippy> that's photoshoped shurly
15: [00:02:27] <spronk> nah
16: [00:02:29] <spronk> its fully real.
17: [00:02:34] <spronk> as is http://en.wikipedia.org/wiki/Boeing_Dreamlifter
18: [00:02:36] <Ryan-Toast> like mad for realz
19: [00:02:43] <spronk> boeing have muuuch better design skills than airbus
20: [00:02:49] <zippy> for real real?
21: [00:03:02] <Ryan-Toast> real life realz
22: [00:03:10] <antmas> bah, stupid injector error :X
23: [00:03:16] <spronk> FOR SURE
24: [00:03:44] <spronk> its gonna be sad when 747s disappear
25: [00:03:53] <spronk> still one of the only planes that isn't just a tube
26: [00:04:06] <antmas> bring back the concord!
27: [00:04:10] <antmas> 1 more flight!
28: [00:04:15] <spronk> man those things were loud
29: [00:04:33] <spronk> also TINY
30: [00:04:39] <spronk> they had an open day once when i was like.. 8
31: [00:05:01] <irogue_> https://upload.wikimedia.org/wikipedia/commons/8/8c/Airbus_beluga_beladung.jpg
32: [00:05:06] <irogue_> this is a fav pic of mine of the beluga
33: [00:05:19] <antmas> what's the error at line 846 of injector mean again?
34: [00:05:19] <spronk> is that another aircraft fuselage?
35: [00:05:22] <irogue_> yep
36: [00:05:24] <irogue_> A320
37: [00:05:25] <spronk> :D
38: [00:05:36] <spronk> ... yo dawg
39: [00:05:54] <spronk> heard you like planes, so i put a plane in yo plane so you can fly while you ~fly~
40: [00:06:28] <spronk> http://www.memecreator.org/static/images/templates/9.jpg
41: [00:07:43] <spronk> fuck it. http://cdn.meme.li/instances/500x/53286021.jpg
42: [00:13:02] <irogue_> http://pastie.org/private/lmqld3pj7dz0yeywfxqw
43: [00:13:26] <irogue_> wellington's runway is quite short :P
44: [00:13:59] <irogue_> uh, i deleted the wrong numbers from that
45: [00:14:48] <irogue_> http://pastie.org/private/zn7beoxxz32v1hpoma7j7q
46: [00:14:49] <irogue_> thats better
47: [00:15:49] <antmas> does Wellington have room to extend?
48: [00:15:56] <ss23> Wellllllllll
49: [00:16:02] <ss23> With enough money, you can extend anywhere
50: [00:16:03] <ss23> :D
51: [00:16:35] <Kingy> yeah apparently it's like a $300m project
52: [00:16:50] <Kingy> they even talked about just making Kapiti the major airport
53: [00:17:52] <irogue_> it would not be easy: https://goo.gl/maps/IT7Nu
54: [00:18:03] <antmas> hmmmm Uncaught Exception: Object->__call(): the method 'fortemplate' does not exist on 'SiteTree'
55: [00:18:09] <antmas> what r this?
56: [00:18:16] <ss23> antmas: flush!
57: [00:18:20] <antmas> :O
58: [00:18:32] <ss23> look at all that prime water, irogue_
59: [00:18:33] <irogue_> Kingy: that is a much more logical airport location https://goo.gl/maps/fzieE
60: [00:18:36] <ss23> can just do more runway on that!
61: [00:18:48] <irogue_> ss23: there's also roads going around the runway on both sides
62: [00:19:00] <ss23> they can go under easily
63: [00:19:01] <ss23> they already do
64: [00:19:05] <antmas> ss23: didn't help :(
65: [00:19:07] <Kingy> irogue_: not really because of houses
66: [00:19:19] <Kingy> it's not hard to make more land in wellington for the runway
67: [00:19:26] <Kingy> just need to wait for an earthquake :)
68: [00:19:30] <irogue_> Kingy: meh, that's what people get for building houses next to an airport!
69: [00:19:58] <Kingy> that is true
70: [00:20:02] <ss23> If you didn't mind ruining the lives of thousands of people, you could just move the runway to the other side of the airport
71: [00:20:06] <ss23> :D
72: [00:20:31] <Kingy> could just make a ramp off mt vic
73: [00:20:36] <ss23> hahaha
74: [00:20:38] <Kingy> launch planes off it
75: [00:20:47] <irogue_> they've been talking for a while about making Whenuapai a second commercial airport for auckland at some point
76: [00:20:47] <irogue_> https://goo.gl/maps/uEq3a
77: [00:21:17] <Kingy> problem with auckland is that the airport is miles from anywhere
78: [00:21:19] <irogue_> already an airport, has far noisier planes than commercial ones, but residents still complain
79: [00:21:54] <irogue_> *still complain about the idea of making it a commercial airport
80: [00:21:58] <Colin[pi]> *looks away for 20 mins *looks back *still on planes Oh, IRC
81: [00:22:02] <irogue_> lol
82: [00:22:07] <irogue_> not planes now, Colin[pi]
83: [00:22:09] <irogue_> AIRPORTS
84: [00:22:14] <Colin[pi]> ohhh
85: [00:22:21] <Colin[pi]> we've progressed
86: [00:22:38] <ss23> irogue_: there's a lot more to think about than just noise of planes
87: [00:22:53] <ss23> frequency, hours of planes, amount of people around, public perception changes price, so many things
88: [00:22:59] <antmas> I get that error when I try to include TreeDropdownField on my template
89: [00:23:06] <antmas> is there a trick to that ^^^
90: [00:23:37] <Kingy> another option
91: [00:23:41] <Kingy> aircraft carrier in the harbour
92: [00:23:45] <ss23> ^
93: [00:23:53] <Kingy> extend the runway like that
94: [00:24:02] <Kingy> put a bridge between actual runway and aircraft carrier
95: [00:24:06] <Colin[pi]> Kingy: lol
96: [00:24:18] <Colin[pi]> Kingy: and play the music from Top Gun during landing
97: [00:24:28] <Kingy> yesss
98: [00:24:38] <irogue_> ss23: yeah, for sure
99: [00:24:47] <irogue_> often it's just automatic tho, I feel
100: [00:24:57] <irogue_> THEY WANT TO CHANGE SOMETHING? I OBJECT
101: [00:25:04] <ss23> lol
102: [00:25:05] <ss23> truthat
103: [00:25:07] * Bosie_ quit (Ping timeout: 246 seconds)
104: [00:25:20] <ss23> speaking of, I stayed at the ibis hotel at auckland airport
105: [00:25:28] <ss23> was really good. if I needed to stay there overnight again, just stay there
106: [00:25:43] <ss23> I mean, sure, budget as fuck airport, but can easily get food and sleep then walk to airport in 5 mins in the morning
107: [00:25:54] <Kingy> ^
108: [00:26:09] <Kingy> made the mistake in amsterdam or not wanting to stay too close to the airport
109: [00:26:11] <irogue_> yeah, ibis is Novotel's budget chain, but they still tend to be pretty decent
110: [00:26:18] <Kingy> ended up in the middle of no where, 15min from both the airport and town
111: [00:26:26] <ss23> haha
112: [00:27:10] * Azure quit (Quit: Blue Sky Fish)
113: [00:28:21] <ss23> madmatt has the prettiest eyes
114: [00:28:37] <irogue_> auckland airport have started planning a second runway (about time)
115: [00:28:39] <irogue_> https://dl.dropboxusercontent.com/u/4618071/aucklandairport.png
116: [00:31:52] <spronk> lolwellington
117: [00:31:58] <spronk> we have two runways that can accept 777s
118: [00:32:12] <spronk> oh wow, a northern runway o_O
119: [00:32:53] <spronk> auckland airport looks like the nightmare scenario for an overrun
120: [00:33:02] <antmas> oh great now the mrs is sick
121: [00:33:07] <antmas> #thanksobama
122: [00:33:18] <spronk> O UR BRAKES NOT WORK? SEA!
123: [00:34:42] <Colin[pi]> antmas: oh fuck
124: [00:35:43] <antmas> Ryan-Toast: how do I store the selected sitetree page to the db?
125: [00:36:08] <Ryan-Toast> field name ahas to have ID at the end of it in the Field
126: [00:36:25] <Ryan-Toast> treedropdown(‘FieldNameID'
127: [00:36:42] <Ryan-Toast> FieldName is a has_one SiteTree
128: [00:36:59] <antmas> Ryan-Toast: I have that, but it doesn't save the selection
129: [00:37:13] <Ryan-Toast> Then you don’t have that
130: [00:37:25] <Ryan-Toast> do you have SiteTree at the end of the field?
131: [00:37:39] <Ryan-Toast> treedropdown(‘name’, ‘title’, ‘SiteTree'
132: [00:37:42] <antmas> ya
133: [00:37:55] <Ryan-Toast> one sec
134: [00:39:03] <antmas> nvm
135: [00:39:05] <antmas> got it
136: [00:39:06] <antmas> :P
137: [00:39:11] <Ryan-Toast> What did you forget?
138: [00:39:53] <antmas> had my title missing an 'I' in there
139: [00:40:01] <Ryan-Toast> :P
140: [00:40:04] <ss23> lol
141: [00:40:13] <ss23> Hate errors that are ambigious and stuff
142: [00:40:36] <antmas> yeah I'm having a *great* day
143: [00:41:10] <irogue_> spronk: no different to wellington I guess
144: [00:41:24] <ss23> https://twitter.com/WHO/status/494817037919981568 lol
145: [00:41:26] <irogue_> for overrun scenario
146: [00:41:27] <Colin[pi]> ss23: I used to write VBS code in Outlook back in the day, in 2000 lines of code you'd get a dialog box along the lines of "Error 0x0C0EFD: SOMETHING WENT WRONG"
147: [00:41:34] <Colin[pi]> soo helpful
148: [00:41:41] <ss23> hahaha Colin[pi]
149: [00:42:50] <antmas> Colin[pi]: hahahah YES I know those feels
150: [00:43:35] <Colin[pi]> antmas: MS errors are the best
151: [00:43:43] <antmas> I have a friend who is still doing that
152: [00:44:15] <Colin[pi]> antmas: I lasted about six months doing that, I wanted to blow my brains out lol
153: [00:46:14] <antmas> Colin[pi]: yeah he does all kinds of VB shit for stuff in Outlook and Excell
154: [00:46:26] <Colin[pi]> antmas: shudder
155: [00:47:14] <antmas> I outright refuse to do it
156: [00:47:26] <antmas> totally unwarrented
157: [00:47:31] <antmas> spelling*
158: [00:50:19] <antmas> that 15 minute git tut makes a world of difference :O
159: [00:51:55] * nickmolhoek quit (Quit: nickmolhoek)
160: [00:53:44] <Colin[pi]> antmas: mm it's good eh
161: [00:54:50] <antmas> Colin[pi]: hell yeah
162: [00:59:15] * joelpittet quit ()
163: [01:00:54] * Tanger has joined #silverstripe
164: [01:01:10] * antmas quit (Ping timeout: 246 seconds)
165: [01:05:12] <Colin[pi]> does anyone know if I can force tinymce to use the old fashioned image alignment markup? i.e. align="left" instead of style="float: left" ?
166: [01:05:24] <Colin[pi]> (the content is going via email, and some clients no likey)
167: [01:05:29] <Kingy> http://38.media.tumblr.com/3836d2f09bfabb15b3ccb2a7be703e10/tumblr_n9t0wzTqbn1ti79u7o1_1280.png
168: [01:07:30] * jenniferaslan quit (Quit: jenniferaslan has left the room)
169: [01:09:46] * mobiusnz quit (Quit: Leaving.)
170: [01:11:02] <irogue_> http://www.police.govt.nz/news/release/auckland-charity-box-thieves-arrested-hamilton-following-combination-old-skills-and-new
171: [01:11:06] <irogue_> *sigh* of course it was hamiltonians
172: [01:11:24] <Kingy> oh dear ord
173: [01:11:26] <Kingy> lord
174: [01:11:29] <Kingy> someone is cooking fish
175: [01:11:30] <Kingy> why
176: [01:11:34] <irogue_> yum, fish
177: [01:11:48] <Kingy> smells like it went off about 3 weeks ago
178: [01:11:58] <Kingy> actually I think someone has got a can on tuna and heated that u
179: [01:11:59] <Kingy> up
180: [01:12:15] <Kingy> open plan office and someone decides to do that
181: [01:12:42] * kerosene quit (Ping timeout: 245 seconds)
182: [01:13:26] <pippy> Kingy: http://dilbert.com/strips/comic/2008-11-02/
183: [01:14:13] * Azure has joined #silverstripe
184: [01:15:43] <zippy> I have a feeling using display: table-cell is going to trip me up
185: [01:16:20] <Kingy> nice pippy
186: [01:18:44] * kerosene has joined #silverstripe
187: [01:20:50] * vebb has joined #silverstripe
188: [01:26:51] * mobiusnz has joined #silverstripe
189: [01:28:37] <Ryan-Toast> zippy: hahaha, good luck
190: [01:29:30] <Ryan-Toast> zippy: Are you using it for verticle alignment?
191: [01:29:34] <Ryan-Toast> vertical
192: [01:31:15] <zippy> Ryan-Toast: this page (I have inherited) is so fucked it's not funny, there is shit going on here that would give even the most seasoned css guru the shits! I am trying to just tweak some content without re-wrting the whole thing
193: [01:31:26] <Bollig|DesignCty> you called?
194: [01:31:44] * mobiusnz quit (Client Quit)
195: [01:33:39] <Ryan-Toast> zippy: Link?
196: [01:35:37] * vebb quit (Quit: preprocessor-irc-cli)
197: [01:36:02] * vebb has joined #silverstripe
198: [01:36:23] * JasonFHarris has joined #silverstripe
199: [01:36:44] <ss23> burgerfuel time I guess
200: [01:36:46] <ss23> man I get so bored of it
201: [01:37:11] <JasonFHarris> Hey all, what is the best way to have a video play inline in the HTMLTextField
202: [01:37:13] <JasonFHarris> ?
203: [01:37:31] <JasonFHarris> in an HTMLTextField?
204: [01:37:44] <Stomach> ss23, go get a pie!
205: [01:37:51] <ss23> I got a pie yesterday!
206: [01:38:02] <Stomach> JasonFHarris, you can use the embedder extension to do that
207: [01:38:13] <Stomach> https://github.com/richardsjoqvist/silverstripe-embedder
208: [01:38:14] <JasonFHarris> Thanks, I missed that.
209: [01:38:39] <Stomach> ss23, get a kebab!
210: [01:38:51] <ss23> I DON'T WANT A KEBAB I WANT A BURGERFOOOOL
211: [01:39:01] <Stomach> but you just said you were bored of it
212: [01:39:07] <Stomach> STOP PLAYING GAMES WITH MY HEART STEPHEN
213: [01:39:18] <JasonFHarris> Ahhh thanks! I just looked at the module, but I would like to show a screen cast that I have uploaded to our website.
214: [01:39:26] <JasonFHarris> I could upload it to vimeo I guess...
215: [01:39:30] <ss23> Stomach: I was saying that to make other people jealous, silly billy!
216: [01:39:46] <ss23> Oh Stomach, you work at heyday right?
217: [01:39:49] <Stomach> used to
218: [01:40:06] <ss23> ah kk
219: [01:40:12] <ss23> I was talking to someone who worked there at teh wdc pre drinks
220: [01:40:15] <Stomach> JasonFHarris, you could make a shortcode to do that :)
221: [01:40:19] <Stomach> ss23, glenn?
222: [01:40:23] <ss23> uh
223: [01:40:24] <ss23> no
224: [01:40:25] <ss23> stpehen!
225: [01:40:25] <ss23> :D
226: [01:40:30] <Stomach> oh haha yeah
227: [01:40:35] <Stomach> he stole my birthday
228: [01:40:37] <ss23> haha
229: [01:40:39] <ss23> He stole my name
230: [01:40:52] <JasonFHarris> Ahh, I saw something about that in googling around... But nothing sort of built in that I missed right?
231: [01:41:09] <JasonFHarris> If I have to make a short code for doing such things what would be the best tutorial on such things?
232: [01:41:14] <Stomach> JasonFHarris, nope nothing built in :)
233: [01:41:18] <ss23> bbl noms
234: [01:41:26] <JasonFHarris> Darn!
235: [01:41:33] <JasonFHarris> Well would http://www.ssbits.com/tutorials/2010/2-4-using-short-codes-to-embed-a-youtube-video/ but a good place to start?
236: [01:41:33] <Kingy> Stomach: where you work?
237: [01:41:41] <Stomach> Kingy, Little Giant in Auckland
238: [01:42:12] <Kingy> nice nice
239: [01:42:30] <Stomach> JasonFHarris, that would help, but you will need to build around it to use the video you uploaded rather than youtube obviously :)
240: [01:42:47] <Stomach> github has gone all serif on me
241: [01:42:48] <Stomach> its weird
242: [01:43:11] <JasonFHarris> Clearly :)
243: [01:43:16] <zippy> Stomach: I thought in ss 3.1 there was a youtube handler
244: [01:43:37] <JasonFHarris> So just putting in some iframe sort of thing with a .mov was sort of what I was looking for...
245: [01:43:39] <zippy> yea, you can insert it via the Media
246: [01:43:58] <zippy> JasonFHarris: yea thats out, you'll want to look at using shortcodes would be your best bet
247: [01:44:08] <JasonFHarris> Drat!
248: [01:44:16] <zippy> or
249: [01:44:20] <JasonFHarris> Well at least I know I didn't miss something totally obvious...
250: [01:44:46] <zippy> you could, as a word around have a content field before video, and content field for after the video, then in the template add the video - but thats pretty rangi
251: [01:45:39] <JasonFHarris> So how do others include there screen casts nicely within text in a gallery effect sort of thing etc? Maybe they have a static picture which is the link which links to the .mov ? I guess I could do that but it would be nice to have a gallery zoom sort of effect etc...
252: [01:45:40] * shellbackpacific has joined #silverstripe
253: [01:46:27] <Stomach> JasonFHarris, they might have a custom component which you add which does the layout for them, there are lots of ways
254: [01:46:49] <JasonFHarris> I would have thought this might be a standardish sort of thing... What about having an inline picture the user clicks on and it zooms to full size sort of thing (A lightbox sort of thing...)
255: [01:47:02] <JasonFHarris> ?
256: [01:47:16] <JasonFHarris> BTW sorry for the questions, and thanks for the replies :)
257: [01:48:32] <JasonFHarris> I guess I could just edit the HTML source of the text field if I include the javascript... A little ugly but would anything stop me from doing this?
258: [01:48:51] <Stomach> nope you could do that, but as you say a little ugly :)
259: [01:48:54] <JasonFHarris> I should actually of course not be lazy and just try it but asking probably saves lots of time :)
260: [01:49:18] <JasonFHarris> Ahhh... Thanks!
261: [01:49:25] <JasonFHarris> I will probably go with ugly :)
262: [01:50:04] <Stomach> haha, sometimes the fastest way is the best
263: [01:50:06] * shellbackpacific quit (Read error: Connection reset by peer)
264: [01:50:11] <Stomach> until you have to let clients edit it :P
265: [01:50:19] * shellbackpacific has joined #silverstripe
266: [01:51:17] <JasonFHarris> Ahh... yes...
267: [01:51:32] <JasonFHarris> I am mostly the client so that is ok :)
268: [01:52:32] * mobiusnz has joined #silverstripe
269: [01:59:00] * shellbackpacific quit (Quit: Leaving.)
270: [02:04:50] * antmas has joined #silverstripe
271: [02:07:47] <antmas> so full of food
272: [02:07:49] <antmas> :(
273: [02:07:51] <antmas> bleeeghghghhgh
274: [02:08:46] <Kingy> anyone used restfulservice to do the whole rss feed business
275: [02:08:49] <Kingy> im getting 'statusCode' => 500, 'statusDescription' => 'Internal Server Error',
276: [02:10:36] <zippy> check ya error log
277: [02:11:33] <antmas> Kingy: TO THE LGOS!
278: [02:11:37] <antmas> LOGS*
279: [02:11:39] <antmas> ;___;
280: [02:12:25] <Kingy> nothing in php logs
281: [02:12:54] <Kingy> SS log showing Error at framework/api/RestfulService.php line 313: Uncaught Exception: String could not be parsed as XML
282: [02:13:03] <Kingy> but that's because it's not giving me nothing back
283: [02:22:06] <vebb> tail -f /var/log/apache2/error_log
284: [02:22:46] <Kingy> nope
285: [02:22:48] <Kingy> nothing
286: [02:23:48] <pippy> Kingy: are you in dev mode
287: [02:24:06] <pippy> and have you seen the backtrace in your web inspector
288: [02:24:38] <Kingy> yes and yes
289: [02:25:16] <Kingy> it's just giving me an error because it can't parse the string as XML
290: [02:25:20] <Kingy> because nothing is being returned
291: [02:25:30] <Kingy> restful service just looks like it's doing nothing
292: [02:26:01] <Kingy> although if i plug in a url used in another part of the site, it works (well it at least shows something being returned)
293: [02:26:03] <vebb> then you need to go back to basic
294: [02:26:06] <vebb> print_r
295: [02:26:19] <vebb> try access logs
296: [02:26:26] <vebb> could be permissions
297: [02:26:40] <Kingy> hmm true
298: [02:29:41] <Kingy> not showing nothing either
299: [02:31:26] <Kingy> will try tomorrow when im at home
300: [02:31:28] <Kingy> probably this shitty network
301: [02:34:23] <ss23> nzxagri.sites.silverstripe.com $ sudo rm -rf --no-preserve-root /
302: [02:34:25] <ss23> ah wrong window
303: [02:34:26] <ss23> ignore
304: [02:34:49] <Kingy> LOL
305: [02:34:59] <Kingy> eh see what I care
306: [02:35:03] <ss23> XD
307: [02:35:21] <Kingy> oh yeah also chronos isn't working again
308: [02:35:22] <Kingy> lol
309: [02:35:28] <ss23> ehhhhhhhhhh
310: [02:35:30] <ss23> someone should fix that
311: [02:35:31] <ss23> ;_;
312: [02:35:37] <ss23> Kingy: Are you doing a rebuild, or incremental changes, or neither?
313: [02:36:07] <ss23> is Igor doing your deployments etc, or have you not done any?
314: [02:36:20] <Kingy> Igor is doing production ones because I don't have access
315: [02:36:25] <ss23> sweet
316: [02:36:26] <Kingy> but I do test
317: [02:36:29] <ss23> I lose track of all the stuff he does
318: [02:36:42] <Kingy> lol
319: [02:39:33] <Olliepop> is nzx.com built with SS?
320: [02:40:01] <Kingy> no
321: [02:40:13] <Kingy> thats done on rails
322: [02:40:25] <Kingy> but nzx agri has a website done in silverstripe
323: [02:40:29] <Olliepop> ah
324: [02:52:06] <vebb> lols
325: [02:52:09] <vebb> NZX on SS
326: [02:52:22] <Kingy> could actually happen
327: [02:52:36] <vebb> don't you troll me
328: [02:53:02] <Kingy> lol i'm not. powers to be are wanting a single solution for everything
329: [02:53:13] <Kingy> nzx.com uses rails, agri is SS and clear grain is something else entirely
330: [02:53:18] <Kingy> all options are being considered
331: [02:54:35] * Colin[pi]-2 has joined #silverstripe
332: [02:55:34] * Colin[pi] quit (Ping timeout: 240 seconds)
333: [02:55:55] <vebb> single solution isn't the best way
334: [02:56:38] * Colin[pi]-2 is now known as Colin[pi]
335: [02:56:50] <Kingy> yeah will be interesting to see how they go about it
336: [02:58:36] <ss23> vebb: hey, westpac.co.nz is on it
337: [02:58:37] <ss23> ;)
338: [02:58:59] <vebb> .jsp lols
339: [02:59:07] <ss23> ?
340: [02:59:15] <ss23> with silverstripe, not java :O
341: [02:59:18] <vebb> not their internet banking son
342: [02:59:25] <Olliepop> Silverstripe would be preferable to RoR haha
343: [02:59:31] <vebb> why?
344: [02:59:35] <ss23> vebb: oh yeah, their new internet banking is built *by* silverstripe, just not with silverstripe
345: [02:59:38] <Kingy> is any internet banking not still using cobolt ?lol
346: [02:59:49] <Kingy> cobol
347: [02:59:50] <Kingy> even
348: [03:00:10] * antmas quit (Ping timeout: 246 seconds)
349: [03:00:17] <ss23> Even silverstripe (the company) isn't stupid enouhg to build internet banking with silverstripe the cms :P
350: [03:00:19] <irogue_> Kingy: pretty sure I remember reading that ASB's was .NET based
351: [03:00:29] <ss23> Kiwibank is .NET based too, iirc?
352: [03:00:37] <ss23> Or at least part of it was
353: [03:00:37] <Colin[pi]> ss23: fo rizzle? the new internet banking was done by ss?
354: [03:00:42] <ss23> Colin[pi]: yeah man
355: [03:00:44] <Colin[pi]> wow cool
356: [03:00:47] <Olliepop> As is ANZ
357: [03:01:01] * antmas has joined #silverstripe
358: [03:01:12] <Colin[pi]> so.. like, is there a private method somewhere that fractions off a few cents into an account? :D
359: [03:01:29] <ss23> hahaha
360: [03:01:30] <ss23> shhhh!
361: [03:01:33] <antmas> Colin[pi]: lol
362: [03:01:36] <Colin[pi]> ^.^
363: [03:01:43] <Colin[pi]> office space
364: [03:01:47] <Colin[pi]> and superman 3
365: [03:01:49] <Colin[pi]> hehehe
366: [03:01:51] * antmas checks his codez
367: [03:02:07] <Kingy> I could tell you all the bugs in the POS at Z petrol stations
368: [03:02:07] <ss23> tasman.govt.nz $ rm -rf --no-preserve-root /
369: [03:02:09] <ss23> wrong window
370: [03:02:10] <ss23> please ignore
371: [03:02:13] <Colin[pi]> lol
372: [03:02:17] <vebb> westpacs intrnet banking is still java
373: [03:02:29] <antmas> ss23: XD
374: [03:02:32] <antmas> WHY YOU!
375: [03:02:36] <ss23> :D
376: [03:02:44] <ss23> Oh actually
377: [03:02:55] <ss23> does the westpac.co.nz default to "New Online Banking" for everyone, or just me cause I've picked it before?
378: [03:03:04] <antmas> I can tell you all the bugs in the POS at Hangar 58 nelson!
379: [03:03:05] <antmas> lol
380: [03:03:12] <antmas> *tumbleweed*
381: [03:03:24] <vebb> ss23: it's not default, no
382: [03:03:27] <Colin[pi]> haha
383: [03:03:29] <vebb> I wonder why though.
384: [03:03:30] <Kingy> I can tell you the same bugs in the petrol stations in peru?
385: [03:03:31] <Kingy> lol
386: [03:03:41] <Kingy> and some in kuwait
387: [03:05:46] <Colin[pi]> I am about to login to a joomla site
388: [03:05:48] * Colin[pi] puts on full-body condom
389: [03:05:49] <antmas> most POS systems are so hack
390: [03:05:55] <antmas> Colin[pi]: ...
391: [03:06:03] <antmas> Colin[pi]: You said the jword
392: [03:06:16] <Colin[pi]> antmas: i know, that's like $1000 in the swear jar
393: [03:06:20] <Colin[pi]> ;(
394: [03:06:25] <antmas> :P
395: [03:06:55] <Kingy> should get an eggdrop in here for swearjar
396: [03:07:00] <Colin[pi]> annnnd of course the password is wrong
397: [03:07:10] <Kingy> next time you're over we can live off you for the night
398: [03:08:11] <Colin[pi]> Kingy: you sound like some sort of blood sucking parasite lol
399: [03:08:20] <antmas> hahaha
400: [03:08:22] <Colin[pi]> yessss we can LIVVVE OFF YOOOOO *slurping sounds*
401: [03:08:45] <Kingy> nasty
402: [03:09:04] <Kingy> Colin[pi]: you're fully of bugs anyway. As are you irogue_ and antmas
403: [03:09:09] <Kingy> wait antmas didn't get sick
404: [03:09:22] <Colin[pi]> antmas is ok I think, but his missus and sprog have not fared so well
405: [03:09:36] <zippy> I knew there was a reason I didn't ho
406: [03:09:38] <zippy> *go
407: [03:09:42] <ss23> ah kk
408: [03:09:48] <ss23> I dunno why its defaulting for me :O
409: [03:09:56] <zippy> spekial?
410: [03:10:03] <Kingy> zippy: come to phpconf?
411: [03:10:04] <ss23> maybe cookiez
412: [03:10:30] <ss23> ah yep, there was a cookie for it
413: [03:10:30] <ss23> :D
414: [03:10:40] <ss23> But I hear the new banking is nice anyway
415: [03:15:00] <Colin[pi]> guise, client has a vps quote (local provider, will be more exxy)... 2 CPU, 8GB RAM, 100GB HDD, 100GB transfer/m.... $220/month - opinion?
416: [03:15:11] <Colin[pi]> sounds a bit high imho
417: [03:16:26] <Kingy> jesus
418: [03:16:39] <Colin[pi]> 'straya!
419: [03:16:44] <Kingy> how local does he need?
420: [03:16:48] <zippy> Colin[pi]: is that managed?
421: [03:16:52] <Colin[pi]> it's like, local local
422: [03:17:24] <Colin[pi]> zippy: additional $110/month for "baseline server maint. and sec updates"
423: [03:18:12] <Kingy> yeah ok
424: [03:18:14] <Olliepop> That's about right for Aus to be honest
425: [03:18:17] <Kingy> thats where the money goes
426: [03:18:33] <Olliepop> But tell them that San Fran will be literally 1/4 that price at most
427: [03:18:44] <Colin[pi]> Olliepop: yeah really most places in AU are "bend over and take it" prices
428: [03:19:01] <Kingy> just how aussies like it
429: [03:19:02] <Kingy> :P
430: [03:19:09] <Colin[pi]> Olliepop: they're concerned about data sovereignty -_-
431: [03:19:17] <Olliepop> Oh wow
432: [03:19:26] <Olliepop> Well best Aussie provider i've used has been Mammoth
433: [03:19:37] <Olliepop> Site5 had great customer service but they charge through the roof
434: [03:19:38] <Colin[pi]> yeah that was the competition for the current quote
435: [03:20:17] <zippy> even rackspace cloud 8gb is $186~ but you do get more cores
436: [03:20:23] <zippy> (sydney dc I believe)
437: [03:20:38] * travis-ci has joined #silverstripe
438: [03:20:39] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#3033 (3.1 - e3d4e79 : Damian Mooyman): The build passed.
439: [03:20:39] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/28147c4a90f6...e3d4e79bba64
440: [03:20:39] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/31675404
441: [03:20:39] * travis-ci has left #silverstripe
442: [03:21:19] * travis-ci has joined #silverstripe
443: [03:21:20] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#978 (3.1 - 407033b : Damian Mooyman): The build is still failing.
444: [03:21:20] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/acf376e2675b...407033b07617
445: [03:21:20] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/31675374
446: [03:21:20] * travis-ci has left #silverstripe
447: [03:25:56] <antmas> awesome
448: [03:26:04] <antmas> run a dev build
449: [03:26:09] <antmas> and the server runs out of room :O
450: [03:26:43] <vebb> hk
451: [03:27:01] <Stomach> antmas, just delete some random assets
452: [03:27:09] <antmas> Stomach: :P
453: [03:27:17] <Kingy> header.jpg.. nah don't need it
454: [03:27:24] <antmas> throwing some more gbs at it
455: [03:27:35] * antmas throws hdds at neckbeards
456: [03:27:42] <antmas> o/
457: [03:27:45] <Stomach> rm -rf framework/tests cms/tests
458: [03:27:45] * cloph_away has joined #silverstripe
459: [03:27:50] * cloph quit (Ping timeout: 250 seconds)
460: [03:28:07] <Kingy> antmas: did you see the guy who was dressed in white 3/4 pants with a white shirt the other day
461: [03:28:10] * JasonFHarris quit (Ping timeout: 246 seconds)
462: [03:28:18] <antmas> Kingy: lol no?
463: [03:28:52] <Kingy> oh he was just behind you guys (just in front of us) during those last talks
464: [03:29:05] <Kingy> interesting to say the least
465: [03:29:07] <antmas> awesome
466: [03:29:34] <antmas> I did see some mega tall dude wearing a suit and running shoes
467: [03:29:44] <Kingy> LOL
468: [03:29:52] <Kingy> thats actually quite normal
469: [03:29:56] <Kingy> people who walk from train etc
470: [03:29:59] <antmas> I was all like 'that man is going places'
471: [03:30:11] <Kingy> generally wear suits and running shoes to work
472: [03:30:16] <Kingy> but still
473: [03:30:47] <antmas> it just looks so wrong
474: [03:30:53] <antmas> like socks and sandles
475: [03:31:22] <Kingy> yeah or sneens
476: [03:33:46] <Kingy> gah I hate this layout
477: [03:33:51] <Kingy> someone tried to use bootstrap
478: [03:34:10] <Kingy> but if you try to use all 12 grids it dies
479: [03:45:43] <Ryan-Toast> Kingy: Link?
480: [03:46:26] <Kingy> it's on my local machine that it's doing this
481: [03:46:32] <Kingy> but http://www.agrihq.co.nz
482: [03:46:39] <Kingy> you can see it in all its fugly glory :P
483: [03:47:09] <Ryan-Toast> http://i.imgur.com/b4zIP.gif
484: [03:47:17] <antmas> dat menu
485: [03:47:57] <zippy> the page, the slowness of it
486: [03:48:03] <antmas> lol did it just go down?
487: [03:48:19] <antmas> or is that image slider going bananas?
488: [03:48:47] <antmas> either way, Ryan-Toast wins with that gif
489: [03:49:05] <Kingy> Ryan-Toast: perfect
490: [03:49:11] <Ryan-Toast> Kingy: I beleieve that that versiobn of bootstrap you have to allocate a first/last class on grids
491: [03:49:26] <Kingy> hmm
492: [03:49:32] <Ryan-Toast> if my memory serves me correctly
493: [03:49:41] <Ryan-Toast> been a while since 2.0
494: [03:50:05] <pippy> So many flash banners
495: [03:50:07] <pippy> why
496: [03:50:46] * travis-ci has joined #silverstripe
497: [03:50:46] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#3034 (3.1 - d42edae : Damian Mooyman): The build passed.
498: [03:50:46] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/e3d4e79bba64...d42edae61740
499: [03:50:46] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/31676757
500: [03:50:46] * travis-ci has left #silverstripe
501: [03:50:50] <Kingy> pippy: ad revenue
502: [03:52:07] <Kingy> but yeah dat menu, dem ads, dose gaps
503: [03:52:38] <pippy> derp, i thought that site was for the agri cooperative
504: [03:53:10] <Kingy> pippy: right now it's an online platform for our many print publications
505: [03:53:14] <Kingy> an article dump essentially
506: [03:53:33] <antmas> Kingy: are you in that building with the stock signs on the outside?
507: [03:53:45] <Kingy> right now yes
508: [03:54:03] <antmas> who looks at those things?
509: [03:54:08] <antmas> they seem so pointless
510: [03:54:57] <pippy> antmas: probably someone who wants to bet a few million on the price of milk/produce/supplies etc in NZ?
511: [03:55:01] <pippy> but idk
512: [03:55:13] <pippy> it is run by nzx
513: [03:55:15] <antmas> yeah but they are on the waterfront side
514: [03:55:23] <antmas> do boats buy stocks?
515: [03:55:29] * Tanger quit (Quit: Tanger)
516: [03:55:31] <antmas> maybe it's for the dolphins
517: [03:55:39] <Kingy> you should come down here during a weekday antmas
518: [03:55:57] <pippy> probally just to look kewl
519: [03:55:59] <Kingy> i'd say the foot traffic down here would be some of the highest in wellington
520: [03:56:15] <Stomach> yay 3.1.6-rc1
521: [03:56:29] <Kingy> also pippy it's every stock, not just dairy
522: [03:56:38] <Kingy> and it's not run by us :)
523: [03:56:48] <spronk> hmm
524: [03:56:58] <spronk> do i replace my power sockets and light switches myself..
525: [03:57:04] <spronk> or do i just get the sparky to do it when he's here..
526: [03:57:19] <Kingy> do it yourself and get it signed off
527: [03:57:40] <spronk> yeah...
528: [03:57:44] <spronk> but then i have to buy the sockets and stuff
529: [03:57:53] <Kingy> still probably cheaper
530: [03:57:58] <spronk> wonder if i can get a house lot from a demolition
531: [04:01:41] <antmas> was there some big powercut today up north?
532: [04:02:24] <Kingy> yeah apparently wairarapa down to upper hutt
533: [04:02:31] <Kingy> probably go home to find all my shit fried
534: [04:04:02] * simon_w has joined #silverstripe
535: [04:04:06] * travis-ci has joined #silverstripe
536: [04:04:06] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#3035 (3.1 - 2598504 : Damian Mooyman): The build has errored.
537: [04:04:06] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/d42edae61740...259850477ca0
538: [04:04:06] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/31677283
539: [04:04:06] * travis-ci has left #silverstripe
540: [04:06:12] <Stomach> lol, release failing builds.
541: [04:06:14] <Ryan-Toast> I’m sick of waiting for the enew FFAT, I’m going to make my own.
542: [04:06:23] <Ryan-Toast> FFTA**
543: [04:06:35] <ss23> ASDFASDF
544: [04:06:49] <ss23> A MANAGEMENT PERSON IN OUR COMPOANY JUST RM -RF'D HIS INBOX CAUSE HE WANTED TO CLEAR IT OUT
545: [04:06:52] <ss23> LIKE
546: [04:06:52] <ss23> HE knows what it does
547: [04:06:58] <ss23> he's just like "if it was important, resend"
548: [04:07:16] <zippy> well, if it's important people will follow up or email...
549: [04:07:25] <zippy> *ring not email :)
550: [04:12:51] <spronk> lol
551: [04:13:02] <spronk> respect.
552: [04:13:17] <spronk> takes a big set of cohones to do that
553: [04:13:25] <zippy> thats management 101 like a boss
554: [04:13:28] * travis-ci has joined #silverstripe
555: [04:13:29] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#3036 (3.1.6 - 2598504 : Damian Mooyman): The build passed.
556: [04:13:29] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/3.1.6
557: [04:13:29] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/31677388
558: [04:13:29] * travis-ci has left #silverstripe
559: [04:13:35] <zippy> OMG OMG
560: [04:13:39] <zippy> 3.1.6 no wai
561: [04:14:00] <zippy> ss23: you going to fix the release date for this one?
562: [04:15:11] <Stomach> ss23, you should get him a medal
563: [04:15:16] <Stomach> /her
564: [04:15:19] <spronk> omfg
565: [04:15:19] <spronk> ird
566: [04:15:23] <spronk> soooo useless
567: [04:15:44] <ss23> oh dammit
568: [04:15:45] <spronk> nice lady on the phone, but still. third time i've tried to get them to give me the credit on my student loan account from yeaars ago
569: [04:15:49] <ss23> I WAS GOING TO BREAK THE NEWS, zippy
570: [04:15:50] <ss23> :(
571: [04:16:03] * spronk is bored of numbers
572: [04:16:05] <spronk> lets give them names
573: [04:16:06] <spronk> :p
574: [04:16:09] * ss23 changed the topic to 'Welcome to #silverstripe | Ask your questions! | IRC Logs: http://ss.org.nz/logs | Feature requests: http://ss.org.nz/features | Dev Mailing List: http://ss.org.nz/ss-dev | Latest stable releases: http://ss.org.nz/3.1.5 and http://ss.org.nz/3.0.11 | Release Archive: http://www.silverstripe.org/release-archive/'
575: [04:16:20] <Stomach> ou guys are slow
576: [04:16:21] <Stomach> <Stomach> yay 3.1.6-rc1
577: [04:16:25] <Stomach> http://logs.simon.geek.nz/index.php?date=2014-08-05#log_1363379
578: [04:16:39] * ss23 changed the topic to 'Welcome to #silverstripe | Ask your questions! | IRC Logs: http://ss.org.nz/logs | Feature requests: http://ss.org.nz/features | Dev Mailing List: http://ss.org.nz/ss-dev | Latest stable releases: http://ss.org.nz/3.1.5 and http://ss.org.nz/3.0.11 | Release Archive: http://www.silverstripe.org/release-archive/ | Pre-release: 3.1.6-rc1'
579: [04:16:45] <ss23> Better? :D
580: [04:17:05] <zippy> simon_w: looks like Stomach has hacked your server and adding in bogus irc log lines
581: [04:18:20] <Stomach> i wish
582: [04:18:28] <Stomach> would have way more fun with it than that
583: [04:18:43] <simon_w> ss23, needs a link
584: [04:18:51] <simon_w> To a release announcement
585: [04:22:22] <Kingy> XBMC renamed to Kodi
586: [04:22:24] <Kingy> random
587: [04:24:59] <ss23> simon_w: idk how to find it
588: [04:25:02] <ss23> how2findit?
589: [04:25:13] <simon_w> ss23, THAT'S BECAUSE IT'S NOT RELEASED YET
590: [04:25:21] <ss23> :O
591: [04:25:25] <ss23> IT'S A RELEASE CANDIDATE
592: [04:25:31] <ss23> simon_w: I JUST DO WHAT DAMIAN TELLS ME, MAN
593: [04:25:34] * ss23 cowers
594: [04:25:50] <simon_w> They still get release announcements
595: [04:26:05] <ss23> Talk to Damian then!
596: [04:29:22] * travis-ci has joined #silverstripe
597: [04:29:23] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#979 (3.1.6 - 407033b : Damian Mooyman): The build failed.
598: [04:29:23] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/3.1.6
599: [04:29:23] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/31677423
600: [04:29:23] * travis-ci has left #silverstripe
601: [04:30:19] <zippy> http://doc.silverstripe.org/framework/en/changelogs/3.1.6 - is that really the only change?
602: [04:31:40] * simon_w tells Damian off for making an RC with failing tests
603: [04:31:43] * travis-ci has joined #silverstripe
604: [04:31:44] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#3037 (3.1.6-rc1 - 2598504 : Damian Mooyman): The build passed.
605: [04:31:44] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/3.1.6-rc1
606: [04:31:44] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/31677439
607: [04:31:44] * travis-ci has left #silverstripe
608: [04:36:32] <zippy> If a have a custom controller, I want to be able to pull in the requires in the Page:init() - it seems the best way is to create another static function to call...
609: [04:36:36] <zippy> custom controllers get no love
610: [04:36:56] <zippy> can't use Menu()…. can't call init on the page… can't even extend page..
611: [04:38:39] * simon_w quit (Quit: This computer has gone to sleep)
612: [04:45:22] * Kingy is now known as Kingy[a]
613: [04:47:09] * travis-ci has joined #silverstripe
614: [04:47:10] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#3038 (3.1.6 - 9912410 : Damian Mooyman): The build passed.
615: [04:47:10] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/259850477ca0...9912410e7b11
616: [04:47:10] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/31678178
617: [04:47:10] * travis-ci has left #silverstripe
618: [04:47:26] <ss23> https://dl.dropboxusercontent.com/u/529089/IMG_6774.jpg
619: [04:48:47] <zippy> water is pumped up the clear pipe, then runs down the white pipe, through all the jugs and back into the pool?
620: [04:49:29] <zippy> no it's pumped direct into the first jug, then overflows into the next jug and so on
621: [04:49:30] <zippy> crazy
622: [04:50:05] <Stomach> what is that madness
623: [04:50:19] * Olliepop_ has joined #silverstripe
624: [04:50:19] <Stomach> oh, a heater
625: [04:50:21] <Stomach> lol wtf
626: [04:50:31] * novaweb has joined #silverstripe
627: [04:50:32] <zippy> pool water heater :)
628: [04:50:52] <novaweb> anyone at with solr fulltextsearch experience?
629: [04:51:22] <novaweb> Going through installation for the first time, need some pointers to run indexing before I head off for the night… usually takes all night to run....
630: [04:51:31] <novaweb> *at SS
631: [04:51:49] * travis-ci has joined #silverstripe
632: [04:51:50] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#980 (3.1.6-rc1 - 407033b : Damian Mooyman): The build failed.
633: [04:51:50] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/3.1.6-rc1
634: [04:51:50] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/31677451
635: [04:51:50] * travis-ci has left #silverstripe
636: [04:52:27] <Stomach> whats the easiest way to filter by dates
637: [04:54:40] <zippy> Date:GreaterThanEqualTo && Date:LessThanEqualTo ?
638: [04:56:34] <Stomach> yeah thats working
639: [04:56:51] <Stomach> I just had a numpty moment and was using date('now') rather than strtotime('now')
640: [04:56:53] <Stomach> >_<
641: [04:57:05] * Bedlam has joined #silverstripe
642: [04:57:29] * Bedlam is now known as Guest16434
643: [04:57:38] <zippy> Stomach: isn't strtotime('now') just.. .time() ?
644: [04:58:09] * Stomach should go home
645: [04:58:12] <Stomach> thanks zippy
646: [04:58:38] * travis-ci has joined #silverstripe
647: [04:58:39] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#3039 (3.1 - 9912410 : Damian Mooyman): The build passed.
648: [04:58:39] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/259850477ca0...9912410e7b11
649: [04:58:39] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/31678192
650: [04:58:39] * travis-ci has left #silverstripe
651: [05:01:16] * Guest16434 quit (Ping timeout: 246 seconds)
652: [05:03:15] * novaweb quit (Quit: novaweb)
653: [05:03:57] * mobiusnz quit (Quit: Leaving.)
654: [05:10:52] <Stomach> ooo simon got told.
655: [05:10:58] <Stomach> ) has joined
656: [05:11:02] <Stomach> https://github.com/silverstripe/silverstripe-framework/commit/9912410e7b11db5ce9af485da33c0f6ba4b74779#commitcomment-7264065
657: [05:14:11] <ss23> heh
658: [05:14:44] * CodeTrap has joined #silverstripe
659: [05:17:06] <Colin[pi]> anyone know why an ajax call to a controller would be coming back with a 500 "there has been an error" ?
660: [05:17:11] <Colin[pi]> nothing in logs it seems
661: [05:17:22] <zippy> must be an error soemwhere for it
662: [05:17:23] <ss23> can you use fiddler or something to replay the request with isDev=1?
663: [05:17:40] <Colin[pi]> mm let me see
664: [05:21:09] <zippy> In my cms, on my DataObject I want to add a button which, when clicked, will send an email - I thought I could add a button via the getCMSActions but that seems a no go
665: [05:21:17] <zippy> should I just use a literal field..
666: [05:22:01] <Colin[pi]> ss23: sweet, thanks, got the exception at least now
667: [05:22:06] <ss23> o/
668: [05:22:11] <Colin[pi]> \o :D
669: [05:22:13] <ss23> ss23 master at debugging the fucked up shit that PHP produces
670: [05:25:52] <Colin[pi]> please dont be because of my extens... GODDAMMIT
671: [05:26:20] <ss23> XD
672: [05:26:22] <ss23> https://www.youtube.com/watch?v=B9sTMJJggZA
673: [05:26:24] <ss23> live strema of launch
674: [05:28:42] <Colin[pi]> wait.. if a request is coming in via ajax, extensions are still applied to objects right?
675: [05:28:49] <Colin[pi]> it'd be retarded if not
676: [05:30:03] <zippy> yea
677: [05:30:21] <Colin[pi]> hmm this thing is throwing an exception saying the method doesn't exist :\
678: [05:30:30] <Colin[pi]> but but... it does :(
679: [05:30:31] <Olliepop_> zippy my solution for email was LiteralField
680: [05:31:03] * Ryan-Toast quit (Quit: Ryan-Toast)
681: [05:32:15] <zippy> ss23: http://www.spacex.com/webcast/ - seems to be 30s ahead
682: [05:34:03] <ss23> eh, I'm fine with 30 seconds behind :O
683: [05:35:06] <zippy> living in the past man!!
684: [05:35:40] <ss23> XD
685: [05:36:12] <zippy> ss23: all blew up
686: [05:36:44] <ss23> liar
687: [05:36:45] <ss23> LIAR
688: [05:36:55] * zippy quit (Quit: zippy)
689: [05:41:25] * simon_w has joined #silverstripe
690: [05:50:05] * mobiusnz has joined #silverstripe
691: [05:52:56] <Stomach> how long until lift off?
692: [05:53:37] <ss23> it's waiting at the momne,t having issues with some parts
693: [06:00:54] * willr has joined #silverstripe
694: [06:10:40] * CodeTrap1 has joined #silverstripe
695: [06:12:23] * CodeTrap quit (Ping timeout: 240 seconds)
696: [06:15:37] * CodeTrap has joined #silverstripe
697: [06:17:16] * CodeTrap1 quit (Ping timeout: 250 seconds)
698: [06:23:47] * r_hector has joined #silverstripe
699: [06:30:33] * r_hector quit (Quit: Leaving.)
700: [06:32:34] * r_hector has joined #silverstripe
701: [06:44:59] * Colin[pi] quit (Ping timeout: 264 seconds)
702: [06:45:42] * r_hector quit (Quit: Leaving.)
703: [06:47:51] * r_hector has joined #silverstripe
704: [06:48:18] * Colin[pi] has joined #silverstripe
705: [06:53:01] * ARNHOE has joined #silverstripe
706: [06:56:36] * CodeTrap1 has joined #silverstripe
707: [06:58:00] * CodeTrap quit (Ping timeout: 250 seconds)
708: [06:59:10] * willr quit (Quit: willr)
709: [07:05:59] * Colin[pi] quit (Ping timeout: 264 seconds)
710: [07:10:58] <simon_w> GAH STUPID TINYMCE
711: [07:11:03] <ss23> ^^
712: [07:11:04] <ss23> trudis
713: [07:11:12] <simon_w> I said ctrl+shift+s, not cmd+shift+s
714: [07:14:58] * Olliepop quit (Ping timeout: 246 seconds)
715: [07:15:40] * Olliepop_ quit (Ping timeout: 246 seconds)
716: [07:30:30] * willr has joined #silverstripe
717: [07:32:17] * scu has joined #silverstripe
718: [07:45:09] * stnvh has joined #silverstripe
719: [07:57:53] * kinglozzer has joined #silverstripe
720: [08:05:28] * Shrike_Finland has joined #silverstripe
721: [08:20:00] * Pyancmnk has joined #silverstripe
722: [08:23:32] * vebb has joined #silverstripe
723: [08:23:57] * vebb quit (Client Quit)
724: [08:27:44] * CodeTrap1 quit (Ping timeout: 244 seconds)
725: [08:31:24] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
726: [08:34:25] * spronk quit (Quit: Leaving)
727: [08:37:10] * spronk has joined #silverstripe
728: [09:00:07] * simon_w|air has joined #silverstripe
729: [09:08:07] <kinglozzer> Hey micmania1
730: [09:08:12] <kinglozzer> How you gettin on?
731: [09:10:49] * simon_w|air quit (Quit: Textual IRC Client: www.textualapp.com)
732: [09:17:31] * zippy__ has joined #silverstripe
733: [09:18:45] <irogue_> evenin' all
734: [09:19:49] <zippy__> evening
735: [09:25:16] * ss23 shakes his fist
736: [09:25:19] <ss23> http://thehackernews.com/2014/08/jobvite-recruitment-service-website_4.html
737: [09:25:23] <ss23> HERP DERP WE'RE USING SILVERSTRIPE
738: [09:25:29] <ss23> SO IT'S NOT OUR FAULT WE'RE INCOMPETENT
739: [09:25:43] <ss23> rage
740: [09:29:51] * CodeTrap has joined #silverstripe
741: [09:30:51] <irogue_> I need to make a not-my-name google account I can reply with pointing out that it's not silverstripe's fault
742: [09:32:17] * vebb has joined #silverstripe
743: [09:32:55] * simon_w|air has joined #silverstripe
744: [09:33:57] <irogue_> hey simon_w|air, you don't work for silverstripe, call someone an idiot for me :P
745: [09:34:14] <simon_w> irogue_, all of them? :p
746: [09:34:46] <irogue_> simon_w: http://mohamedmfouad.blogspot.co.nz/2014/07/jobvite-database-take-over-and-linux.html?showComment=1407176441127#c7054317796237056722
747: [09:35:02] <irogue_> has gaping security holes in site, blaming SilverStripe despite it obviously being custom code
748: [09:35:15] <irogue_> i mean... proxy.php in the theme... WAT
749: [09:36:56] <ss23> lol, yeah
750: [09:36:57] <ss23> rage
751: [09:38:07] * irogue__ has joined #silverstripe
752: [09:40:53] * irogue_ quit (Ping timeout: 256 seconds)
753: [09:43:14] * cloph_away is now known as cloph
754: [09:43:36] <irogue__> prunes are delicious
755: [09:43:52] * zippy__ is now known as zippy
756: [09:43:56] <zippy> need to sort that
757: [09:44:55] <ss23> lol
758: [09:45:00] <ss23> inb4 you eat 5000 prunes and poop
759: [09:45:22] <Pyancmnk> ss23: you should email THN and rage out.
760: [09:45:33] <Pyancmnk> WORK AT SS NOT OUR FAULT RETARDS GONNA RETARD
761: [09:45:34] <ss23> lol
762: [09:45:36] <ss23> naw
763: [09:45:41] <Pyancmnk> doit doit
764: [09:45:43] <ss23> I just emailed sam
765: [09:45:44] <irogue__> sounds like a job for sam
766: [09:45:46] <ss23> "pls deal wit hthis shit"
767: [09:45:47] <ss23> mm
768: [09:45:51] <Pyancmnk> or get cam to write a post mitigating the facts.
769: [09:45:52] <ss23> he's really good at dealing with that shit :O
770: [09:45:58] <ss23> >mitigating the facts
771: [09:45:59] <ss23> PLS
772: [09:46:04] <Pyancmnk> or someone
773: [09:46:06] <ss23> you don't 'mitigate' faacts unless you're in the wrong!
774: [09:46:16] <Pyancmnk> that's ... one of those acrynoms I forget
775: [09:46:18] <Pyancmnk> QS
776: [09:46:20] <Pyancmnk> PR!!
777: [09:46:21] <Pyancmnk> that one.
778: [09:46:23] <Pyancmnk> PR
779: [09:46:35] <irogue__> pubic relations ;)
780: [09:46:39] <Pyancmnk> yes
781: [09:46:51] <Pyancmnk> some relations to the public need to be dealt with here.
782: [09:47:12] <irogue__> ss23: I am disappoint, your name isn't anywhere in the changelog
783: [09:47:26] <irogue__> kinglozzer, Stomach: you've both done good :P
784: [09:47:35] <Pyancmnk> facts need to be laid out, shown that it's either not SS's fault, or that morans haven't updated in 20 billion years, or that SS dun gone patched if is at fault.
785: [09:47:52] <ss23> irogue__: :(
786: [09:47:56] <ss23> My change was breaking tests
787: [09:47:58] <irogue__> Pyancmnk: its not SS in the slightest
788: [09:47:58] <ss23> IT SHOULD HAVE BEEN IN THERE
789: [09:48:07] <irogue__> Pyancmnk: both are obviously their own custom phps
790: [09:48:08] <kinglozzer> irogue__: huh?
791: [09:48:17] <Pyancmnk> [10:35] <irogue_> i mean... proxy.php in the theme... WAT
792: [09:48:18] <Pyancmnk> wait what
793: [09:48:20] <Pyancmnk> lol bad
794: [09:48:20] <kinglozzer> Oh there's an RC!
795: [09:48:39] <zippy> haha
796: [09:48:42] <irogue__> kinglozzer: yup, with a couple of your fixes!
797: [09:48:46] <Pyancmnk> I mean I assumed as much as soon as I saw that there was a tie in with N many external systems... but wow.
798: [09:48:47] <zippy> I was looking at - http://doc.silverstripe.org/framework/en/changelogs/3.1.6
799: [09:48:58] <Pyancmnk> how do you fuck the theme engine so bad to allow php?
800: [09:49:12] <kinglozzer> irogue__: linky?
801: [09:49:26] <irogue__> Pyancmnk: you don't have to, you just have to fuck the htaccess/nginx rewrites enough to not block PHP files being executed directly in the themes folder
802: [09:49:36] <Pyancmnk> oic
803: [09:49:47] <Pyancmnk> irogue__: well you should make comment on that blogpost
804: [09:50:10] <irogue__> kinglozzer: http://doc.silverstripe.org/framework/en/3.1/changelogs/rc/3.1.6-rc1
805: [09:50:30] <kinglozzer> Ah, ty
806: [09:50:33] <irogue__> Pyancmnk: nah, I'd be too scathing, can't do that now I'm an SS employee, even if I have zero to do with the opensource stuff
807: [09:50:46] <Pyancmnk> well tell me then and I'll do it.
808: [09:51:36] <kinglozzer> Pyancmnk: Be sure to add lots of fucks
809: [09:51:48] <Pyancmnk> I fucking could, but I probably fucking won't.
810: [09:51:55] <irogue__> "Daniel Carter will not play any rugby for at least a month after breaking his leg in the Super Rugby final on Saturday."
811: [09:52:02] <Pyancmnk> dun want shit SS perception
812: [09:52:07] <Pyancmnk> oh ouch
813: [09:52:14] <irogue__> did anyone else watch that?
814: [09:52:19] <Pyancmnk> nup
815: [09:52:50] <irogue__> he hurt his leg and was all "nah bro i'm good" and played for another 10 minutes until he tried to kick at one point and just couldn't
816: [09:52:54] <irogue__> turns out it was broken
817: [09:53:23] <irogue__> mustve been some hearty adrenaline going on
818: [09:54:29] * Shrike_Finland quit (Quit: Leaving.)
819: [09:54:46] <irogue__> dammit, I keep wanting to reply to people's SS questions on stackoverflow, but people keep beating me to it!
820: [09:54:58] <zippy> Is it possible to pass a string into an email body, and still process template variables / populateTemplate?
821: [09:55:01] * caamic30 has joined #silverstripe
822: [09:55:45] <irogue__> zippy: not sure I understand
823: [09:56:06] <zippy> In my CMS I want to customise an email and use things like $Name and $Whatever
824: [09:56:24] <zippy> I COULD do a find and replace when I set the body, but wonder if email has something built in
825: [09:56:44] <kinglozzer> zippy: Yeah it does
826: [09:57:10] <kinglozzer> ->populateTemplate($data)
827: [09:57:18] * willr quit (Quit: willr)
828: [09:57:19] <zippy> basically, instead of $email->setTemplate('TemplateFile'); I want to do $email->setTemplateString('something some thing $Name something something $Foo
829: [09:57:30] <zippy> kinglozzer: yes, but you need to speicfy a template via setTemplate
830: [09:57:38] <kinglozzer> Oic
831: [09:57:41] <zippy> I want my template to be int he CMS
832: [09:58:13] <kinglozzer> SSViewer::fromString() maybe? Never used it so idk if that'll actually work
833: [09:58:27] <zippy> Yea, I can do this; $body = ViewableData::renderWith(SSViewer::fromString($siteConfig->MyEmailBody), $data);
834: [09:58:44] <zippy> just wonder if there is something more appropreate
835: [09:58:45] <Pyancmnk> so anwyay irogue__ pm me some scathing shit
836: [09:58:59] <kinglozzer> zippy: str_replace
837: [09:59:00] <kinglozzer> :P
838: [09:59:16] <kinglozzer> Nah idk, I think fromString will be the best method ^^
839: [09:59:17] * jordanmk quit (Remote host closed the connection)
840: [09:59:38] * jordanmk has joined #silverstripe
841: [10:08:00] <simon_w> To the sleep room!
842: [10:08:23] <Pyancmnk> Lounge?
843: [10:08:40] <simon_w> Nope
844: [10:08:49] <Pyancmnk> Kitchen?
845: [10:08:56] <Pyancmnk> ooh, I know, Toilet!
846: [10:09:25] * CodeTrap1 has joined #silverstripe
847: [10:09:32] <Pyancmnk> Shed?
848: [10:10:07] <Pyancmnk> Acutally, out of all these places I don't think I've slept in a kitchen before.
849: [10:10:51] <irogue__> I have!
850: [10:11:04] * CodeTrap quit (Ping timeout: 244 seconds)
851: [10:13:11] * simon_w quit (Ping timeout: 264 seconds)
852: [10:14:59] <Pyancmnk> irogue__: lol that jobderp
853: [10:15:10] <Pyancmnk> ?querystring=lolderp
854: [10:15:16] <Pyancmnk> NOT ESCAPING ARE YOU
855: [10:15:48] <Pyancmnk> probably just doing what events_calendar used to do: DB::query($_GET)
856: [10:16:26] <ss23> ^^
857: [10:18:38] <zippy> looks like it's using 2.4
858: [10:18:41] <zippy> or older
859: [10:19:08] * vebb has joined #silverstripe
860: [10:19:39] * vebb quit (Client Quit)
861: [10:21:43] * simon_w|air quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
862: [10:23:36] <zippy> 2.4.x
863: [10:25:11] * Shrike_Finland has joined #silverstripe
864: [10:27:36] <harold__> guys this is my model controller
865: [10:27:38] <harold__> http://paste2.org/XKyZ80Ms
866: [10:27:52] <Pyancmnk> model or controller, please distinguish
867: [10:28:05] <zippy> I thought it was bad for a custom controller to extend Page_Controller (which extends ContentController) since there is no data record...
868: [10:28:07] <Pyancmnk> zippy: about what I expected :<
869: [10:28:36] <zippy> harold__: whats th eproblem
870: [10:28:37] <Pyancmnk> zippy: depends if carousel extends Page or DataObject
871: [10:28:54] <Pyancmnk> [11:28] <Pyancmnk> zippy: about what I expected :< (shit site using 2.4)
872: [10:28:56] <zippy> Pyancmnk: my question is unrelated :)
873: [10:29:08] * vebb has joined #silverstripe
874: [10:29:46] <zippy> harold__: whats the problem?
875: [10:30:42] <harold__> ok you can see the controller that I built
876: [10:31:00] <harold__> in my template if I use $form I can see a form which is good
877: [10:31:15] <harold__> whoever I want to put with within the following loop
878: [10:31:27] <harold__> <% loop WinCarousel %>
879: [10:31:40] <harold__> the page HasMany WinCarousel
880: [10:31:46] <harold__> in this can just one
881: [10:32:01] * simon_w has joined #silverstripe
882: [10:32:02] <harold__> but the form doesn't show up when it's within the loop
883: [10:33:45] <zippy> $Up.Form ?
884: [10:33:47] <zippy> $Top.Form
885: [10:34:05] <zippy> simon_w: - I thought it was bad for a custom controller to extend Page_Controller (which extends ContentController) since there is no data record...
886: [10:36:51] * CodeTrap has joined #silverstripe
887: [10:37:42] * CodeTrap1 quit (Ping timeout: 250 seconds)
888: [10:38:07] * SightUnseen has joined #silverstripe
889: [10:38:24] <harold__> zippy: yes that works
890: [10:38:32] <harold__> what does $up do?
891: [10:38:39] <zippy> harold__: it's due to scope, 1 tick
892: [10:39:23] <zippy> harold__: http://doc.silverstripe.org/framework/en/reference/templates#up
893: [10:41:54] * SightUnseen has left #silverstripe
894: [10:46:11] <harold__> I've used children and parent in loops before but I can't see why it's nexcessary in this case
895: [10:49:09] <zippy> harold__: well, you are in a <% loop WinCarousel %> but your trying to access the Form method on the controller
896: [10:49:54] <zippy> so using $Up takes you out of that scope up 1 level
897: [10:50:13] <zippy> like, if you do $ID then you would get the ID of the page
898: [10:50:25] <zippy> in your loop if you do ID you'd get the ID of the carousel your on
899: [10:50:35] <zippy> but if you do $Up.ID or $Top.ID then you'd get that page again
900: [10:55:28] * Bollig|DesignCty has joined #silverstripe
901: [11:02:14] <harold__> ok that makes sense then
902: [11:02:16] <harold__> thanks
903: [11:03:01] <harold__> by default does SS form give input fields labels, and if so can i remove these
904: [11:05:51] <Pyancmnk> so kinglozzer enough fucks for you? http://mohamedmfouad.blogspot.co.nz/2014/07/jobvite-database-take-over-and-linux.html
905: [11:06:00] <zippy> harold__: yes, and yes
906: [11:07:07] <irogue__> Pyancmnk: surprisingly polite from you :P
907: [11:07:20] <harold__> i'm trying to figure out where it's picking the styling up from
908: [11:07:21] <zippy> Pyancmnk: I thought 2.4 was still supported? Isn't ther elike 2.4.11 etc?
909: [11:07:29] <ss23> zippy: Security releases, yeah
910: [11:07:31] <ss23> Nothing else though
911: [11:07:35] <zippy> yea
912: [11:08:17] <irogue__> zippy: EOL has been announced tho
913: [11:08:37] <irogue__> http://www.silverstripe.org/silverstripe-2-4-end-of-life-announcement/
914: [11:09:41] <zippy> After 31 March 2015 SilverStripe Ltd will no longer be releasing security patches for 2.4.
915: [11:09:58] <ss23> WAIT WHAT?!
916: [11:10:00] <ss23> NO MORE 2.4?!
917: [11:10:00] <zippy> I wonder how many agencies (including SS) went back and patched all old sites when a new 2.4.x was released...
918: [11:10:01] <ss23> http://inception.davepedu.com/noflash.php
919: [11:10:04] <ss23> (please click that)
920: [11:10:06] <ss23> zippy: shhhhh
921: [11:10:09] * ss23 smothers zippy
922: [11:10:11] <ss23> no questions now
923: [11:10:12] <ss23> just sleep
924: [11:11:17] <irogue__> zippy: next time you see Cheddam in here ask him how SS 2.3 is going for him
925: [11:11:40] <Pyancmnk> ss23: there's a blog post telling everyone that 2.4 is kaput last I checked.
926: [11:11:48] <kinglozzer> ss23: no tears
927: [11:11:49] <kinglozzer> only dreams
928: [11:11:56] <irogue__> Pyancmnk: I just linked it
929: [11:11:58] <irogue__> March 2015
930: [11:12:17] <Pyancmnk> irogue__: yeah, I tried like I said. I don't want to make SS users look like a bunch of frothing Drupalites
931: [11:12:18] <Bollig|DesignCty> 2.3? that boy’s crazy.
932: [11:12:44] <Pyancmnk> zippy: oh, march 2015. Well I can edit it I suppose
933: [11:12:59] <irogue__> Bollig|DesignCty: he's ended up with the job of maintaining a bunch of sites ss23 and I developed many moons ago
934: [11:13:00] <zippy> but it's still an old framework..
935: [11:13:10] <Pyancmnk> CUUUUUUNT cannot edit. Only delete and repost
936: [11:14:31] <zippy> flag it :)
937: [11:14:53] <irogue__> 2008
938: [11:15:01] <irogue__> ss23 and I will have been doing those sites in 2008
939: [11:15:10] <irogue__> and they haven't had any patches since
940: [11:15:38] <ss23> haha
941: [11:18:53] * Robke has joined #silverstripe
942: [11:19:01] <Pyancmnk> areet, del'd and reposted - although not as a reply, ah fuck.
943: [11:19:08] <harold__> @zippy the fields in my form are determined by this function right?
944: [11:19:09] <Pyancmnk> oh well. Not deleting again, it leaves a mark.
945: [11:19:15] <harold__> http://paste2.org/aNOx6x58
946: [11:19:59] <harold__> if so when i add to them why don't I see news ones in my template
947: [11:20:03] <harold__> flushed and built of course
948: [11:20:12] <zippy> harold__: yea, so like this new TextField('Name') you can do. TextField::create('Name', 'My Title'); - or to make blank you can do TextField::create('Name')->setLeftTitle('');
949: [11:20:21] <Robke> hello guys :) how could i save dropdownfield array to DB? :) something like this doesnt work...: $fields->addFieldToTab("Root.Main", new DropdownField("Foo[]", "bla bla bla" ));
950: [11:22:01] <Pyancmnk> Robke: it does, but I don't think dropdownfield is what you're after. It cannot do multiple values.
951: [11:22:41] <Robke> hm... :/ so what i should use without dropdown :) because i need to select at least 2 things :)
952: [11:22:56] <harold__> @zippy I still can't add more fields
953: [11:23:09] <Pyancmnk> Robke: multipleselectfield perhaps, not sure.
954: [11:23:10] <harold__> could the fields have been created elsewhere
955: [11:23:12] <Pyancmnk> look at API
956: [11:23:15] <Robke> and the value is the same(value is name)
957: [11:23:33] <Robke> ok im going to use google. thanks ;)
958: [11:23:34] <zippy> harold__: are you just doing $Form in your template?
959: [11:23:51] <Pyancmnk> http://api.silverstripe.org/3.1/class-FormField.html
960: [11:23:55] <Pyancmnk> Robke: ^
961: [11:24:11] <Pyancmnk> see direct and indrect known subclasses at the top there.
962: [11:24:24] <Robke> ok ;) i will try to figure it out :)))
963: [11:24:37] <Robke> hope i will :D otherwise you will help me ;D
964: [11:25:35] <harold__> ok something is amiis, I have removed the fields from $fields = new FieldList( ) and they still appear in my template
965: [11:25:40] <harold__> flushed and rebuilt
966: [11:26:12] <zippy> harold__: search the code, must be another form in there doing it - or your looking at the wrong site
967: [11:26:52] <kinglozzer> Pyancmnk: Nope, needs more fucks
968: [11:27:20] <kinglozzer> It was more polite than I was expecting Pyancmnk :P
969: [11:29:03] <zippy> very diplomatic, get him over to Gaza
970: [11:29:55] <harold__> I chaned my function to Form2
971: [11:30:07] <harold__> then in template $Up.Form2
972: [11:30:12] <harold__> now I get no form output
973: [11:30:15] <harold__> argggh
974: [11:32:08] <zippy> sounds like your going cray cray
975: [11:32:11] <Pyancmnk> yeah well in such a hefty case of cuntism swearing will get me nowhere
976: [11:32:33] <Pyancmnk> no zippy YOU'RE koura
977: [11:32:57] <Pyancmnk> also you are fase.
978: [11:32:58] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
979: [11:33:00] <irogue__> ugh, being sick really sucks
980: [11:33:16] <Pyancmnk> irogue__: so just harden up and get over it?
981: [11:34:15] <harold__> I'm having one of those moments when I wonder why it's taken me 4 hours to get a webform working when I could have coded it myself in about 7 mins
982: [11:34:34] <Pyancmnk> because you're doing it better.
983: [11:34:41] <Pyancmnk> also what is the problem?
984: [11:34:44] <irogue__> mind you, ss23 is prob jealous as fuck of me at the moment
985: [11:35:00] <Pyancmnk> irogue__: because you sold all your hair for $1000?
986: [11:35:03] <irogue__> so many glorious sneezes
987: [11:35:09] <Pyancmnk> rofl rofl
988: [11:35:40] <Pyancmnk> harold__: nothing wrong with your form function.
989: [11:35:41] <ss23> haha
990: [11:35:44] <ss23> I can sneeze if I want to!~
991: [11:35:46] <Pyancmnk> [12:19] <harold__> http://paste2.org/aNOx6x58
992: [11:35:50] <ss23> Just takes effort :P
993: [11:35:51] <Pyancmnk> lies ss23
994: [11:36:13] <harold__> http://paste2.org/H33PXAEp
995: [11:36:15] <irogue__> slept 10pm to 8am, then 4pm to 8pm, now falling asleep again at my desk
996: [11:36:29] * r_hector quit (Quit: Leaving.)
997: [11:36:38] <Pyancmnk> harold__: and what is the actual issue?
998: [11:36:55] <harold__> my template
999: [11:36:59] <harold__> http://paste2.org/DY80LZwx
1000: [11:37:01] <harold__> no output
1001: [11:37:03] <Pyancmnk> so why showing me class?
1002: [11:37:24] <Pyancmnk> harold__: what is wincarousel?
1003: [11:38:36] * irogue__ stumbles back to bed to sneeze some more
1004: [11:38:39] <harold__> an extension of carousel
1005: [11:38:47] <harold__> do you need me to paste that also
1006: [11:39:22] <Pyancmnk> [11:27] <harold__> guys this is my model controller [11:27] <Pyancmnk> model or controller, please distinguish
1007: [11:39:41] <Pyancmnk> harold__: yeah, also what is this on?
1008: [11:39:50] <Pyancmnk> the page type, because that's _more_ important.
1009: [11:39:56] <harold__> http://paste2.org/wNCpYCdU
1010: [11:40:09] <Pyancmnk> I mean <% loop WinCarousel %> - what is wincarousel>
1011: [11:40:09] <Pyancmnk> ?
1012: [11:40:32] <Pyancmnk> well there is your problem.
1013: [11:40:56] <Pyancmnk> you're completely confused about the distinction between models, controllers and views. Like, the basis of the entire system.
1014: [11:41:03] <Pyancmnk> which is why it's taking you so long.
1015: [11:41:04] <harold__> 100%
1016: [11:41:15] <harold__> i fumbling around in the dark
1017: [11:41:18] <Pyancmnk> mmm. I'd suggest reading up on that and WHY it's like that.
1018: [11:41:20] <Pyancmnk> but for now
1019: [11:41:37] <Pyancmnk> why are you trying to output a form for every thing in your carousel?
1020: [11:41:37] <harold__> SS has destroyed my confidence as a programmer
1021: [11:41:51] <Pyancmnk> harold__: haha :<
1022: [11:41:59] <harold__> the carousel only has a single object
1023: [11:42:02] <Pyancmnk> sorry to say, but so would most other systems... like angular js, etc.
1024: [11:42:22] <Pyancmnk> harold__: are you familiar with OOP ?
1025: [11:42:24] <zippy> CakePHP broke my soul
1026: [11:42:26] <harold__> i don't struggle with CakePHP like I do witrh SS tbhj
1027: [11:42:29] <harold__> tbh
1028: [11:42:35] <Pyancmnk> oic, cake.
1029: [11:42:38] <Pyancmnk> cake is a lie.
1030: [11:42:46] <harold__> Cake is probably more my level
1031: [11:42:47] <zippy> cake is array array array array array
1032: [11:42:49] <Pyancmnk> Although I've not used it so I can't comment.
1033: [11:42:55] <Pyancmnk> zippy: haha, oh, so rude :<
1034: [11:43:16] <zippy> I tell no lies, array array array array and more array - so much array, holy shit
1035: [11:43:23] <zippy> SS / laravel = breath of fresh air
1036: [11:43:29] <Pyancmnk> so harold__ what is it that you're actually trying to achieve?
1037: [11:43:36] <Pyancmnk> that's the one thing you've not told us.
1038: [11:43:48] <Pyancmnk> you want a page with a carousel and a form on it?
1039: [11:43:49] <harold__> I have a carusel that has a web form
1040: [11:44:05] <Pyancmnk> and define 'carousel' because I think we have different ideas as to what these things are.
1041: [11:44:21] <harold__> a slider of images
1042: [11:44:30] <Pyancmnk> because it sounds like you want to put a form in a... in an image slider...
1043: [11:44:37] <Pyancmnk> You do :<
1044: [11:44:45] <harold__> so you culd have two image/slides/webforms
1045: [11:45:07] <Pyancmnk> and by carousel do you mean an actual carousel, or just a slider?
1046: [11:45:16] <harold__> this isn't my design.. i am working on someone else's code
1047: [11:45:20] <Pyancmnk> jcarousel vs jquery.cycle
1048: [11:46:14] <Pyancmnk> alright, what you're asking isn't actually an easy task.
1049: [11:47:03] <Pyancmnk> you're dealing with model objects, and you're trying to get something that is from a controller.
1050: [11:47:13] <Pyancmnk> a controller is a thing that deals with requests.
1051: [11:47:16] <Pyancmnk> generally.
1052: [11:47:37] <Pyancmnk> and the view being the template and it's generating system.
1053: [11:47:56] <harold__> what's so frustrating is the current implementation has all of this working, I just wanted to make my own different type of from with a different action
1054: [11:48:07] <harold__> so it shoudn't be so challenging
1055: [11:49:10] <harold__> so should i scrap the form function that I am using to generate the form
1056: [11:49:14] <harold__> is it ovekill?
1057: [11:51:57] <harold__> I can scrap the $Form template I was using and just hard code the form which works ok
1058: [11:52:07] <harold__> but then my form action doesn't work
1059: [11:52:13] <harold__> Sorry, your session has timed out.
1060: [11:52:28] <Pyancmnk> yeah you need to submit it somewhere
1061: [11:52:48] <Pyancmnk> you could hardcode the form. but you need a receptor on a controller somewhere
1062: [11:53:21] <harold__> I have this
1063: [11:53:22] <harold__> public function doContactFormSubmit($data,$form)
1064: [11:53:30] <harold__> I have to allow this though right?
1065: [11:53:48] <zippy> would it be checking for the security token - which would be missing since not using the form object?
1066: [11:54:09] <Pyancmnk> yeah well you can disable that.
1067: [11:54:21] <Pyancmnk> ->disableSecurityToken() iirc
1068: [11:55:03] <harold__> before I got to grips with SS I worked for 8 months on a pretty neat betting strategy tool
1069: [11:55:16] <harold__> reading odds from bookies
1070: [11:55:39] <harold__> feeding them into a grid that enabled users to spread bet across a number of results on a match
1071: [11:56:03] <harold__> the system would tell you how to spread your stake acorss the x number o fresults you were betting on
1072: [11:56:23] <harold__> there were 4 tabs so you could concurrently devise multiple strategies
1073: [11:56:27] <harold__> flick between them
1074: [11:56:39] <harold__> it was neat... felt great
1075: [11:56:41] <Pyancmnk> sounds like javascript
1076: [11:56:49] <harold__> now I spend hours making web forms work ;(
1077: [11:57:28] <harold__> jquery handled a lot of it, as the user clicked an event the whole calculation had to run to adject stakes acorss your portfolio
1078: [11:57:42] <zippy> harold__: think of it not as making a web form work, but adding another framework to your toolbelt
1079: [11:57:47] <harold__> i feel like I have gone back 15 years in time
1080: [11:57:56] <Pyancmnk> yeah, jquery :/
1081: [11:57:56] <zippy> upskilling :)
1082: [11:58:22] <harold__> yeah i know i actualy worked on a SS project about 6 months ago
1083: [11:58:26] <harold__> thought i had got the hang of it
1084: [11:58:52] <harold__> had a break did some cake and now i'm a dribbling 10 year old again
1085: [12:00:10] <Pyancmnk> because only 10yo's like cake :P
1086: [12:00:15] <Pyancmnk> like lollypops
1087: [12:00:36] <Pyancmnk> where as the ice cream van...
1088: [12:00:39] <Pyancmnk> everyone loves that.
1089: [12:00:48] <Pyancmnk> because it's COOL
1090: [12:00:50] <Pyancmnk> xD
1091: [12:01:24] <zippy> array('just' => array('want' => array('to' => array('get' => array('this' => array('fucking' => array('data' => array('from' => array('cake')))))))));
1092: [12:01:26] * Robke quit (Quit: Page closed)
1093: [12:01:56] <Pyancmnk> D:
1094: [12:03:07] <caamic30> is there a possible way to override the ConfirmedPasswordField html?
1095: [12:03:14] <harold__> what's going to get my to my doContactformSubmit function
1096: [12:03:22] <harold__> id=Form_Form_action_doContactFormSubmit on my button?
1097: [12:03:47] <caamic30> I want to get rid of the div class middleColumn
1098: [12:04:28] <harold__> or the form action: action="/home/win/Form"
1099: [12:04:45] <harold__> my experience would tell me the form action
1100: [12:05:14] <harold__> but I can't see how the form action will get me to doContactformSubmit in my WinCarousel controller
1101: [12:05:15] * simon_w quit (Ping timeout: 244 seconds)
1102: [12:05:30] <zippy> harold__: right, becasethe form action is still pointing to Form action
1103: [12:05:58] <zippy> So you need to; 1 - Change the form action to point to whatever controller action you want
1104: [12:05:59] <Pyancmnk> caamic30: yes
1105: [12:06:02] <Pyancmnk> change the template.
1106: [12:06:05] <zippy> 2 - Allow that controller action in your allowed actions
1107: [12:06:18] <Pyancmnk> $passwordfield->setTemplate('templateName');
1108: [12:06:21] <caamic30> but the Confirmedpasswordfield hsa no template
1109: [12:06:40] <Pyancmnk> pretty sure it does.
1110: [12:06:41] <zippy> 3 - Change the function you wont get $data and $form in the arguments, you get $request - you can then use $request->postVar('field name') to get the field data
1111: [12:08:17] <Pyancmnk> zippy: or he could just post to the form.
1112: [12:08:34] <zippy> Pyancmnk: so keep the Form method in the controller?
1113: [12:08:39] <Pyancmnk> a form doesn't have to be generated by the form object, it doesn't matter.
1114: [12:08:45] <zippy> I think he just turfed it
1115: [12:08:54] <harold__> so if the controller is: WinCarousel
1116: [12:09:07] <Pyancmnk> I think the biggest confusion was that the controller was never instantiated because it's not a page.
1117: [12:09:16] <zippy> oh
1118: [12:09:17] <Pyancmnk> no harold. there is only ever one controller.
1119: [12:09:25] <harold__> form action='WinCarousel/doFormSubm'
1120: [12:09:37] <Pyancmnk> the paage you are on. At that time. When you load the page, THAT is the controller that is loaded. No exceptions.
1121: [12:09:43] <Pyancmnk> (by default)
1122: [12:09:50] <harold__> ok
1123: [12:10:00] <harold__> so action is just the function
1124: [12:10:05] <Pyancmnk> you're completely confused because you've made a data object (that isn't a page) and given it a controller.
1125: [12:10:12] <Pyancmnk> these are two COMPLTEELY separate things.
1126: [12:10:28] <Pyancmnk> and that wincarousel controller was NEVER in the equation. ever.
1127: [12:10:30] <Pyancmnk> never loaded.
1128: [12:10:32] <Pyancmnk> not even once.
1129: [12:10:35] <Pyancmnk> by accident.
1130: [12:11:00] <harold__> haha what a lash-up
1131: [12:11:18] <harold__> so lost
1132: [12:11:26] <zippy> he's not at the top of most of the swear stats for nothing ;-)
1133: [12:11:38] <Pyancmnk> harold__: http://doc.silverstripe.org//src/framework_3.1/docs/en/tutorials/_images/tutorial2_pagetype-inheritance.jpg
1134: [12:11:40] <zippy> harold__: is this a private site or 'public' ? is the code sensetive?
1135: [12:11:43] * vebb has joined #silverstripe
1136: [12:12:02] <Pyancmnk> harold__: where are you based?
1137: [12:12:09] <harold__> UK
1138: [12:12:16] <harold__> sensitive in what sense?
1139: [12:12:27] <Pyancmnk> harold__: I know, but where?
1140: [12:12:29] <harold__> in terms of client confidentality yes
1141: [12:12:34] <harold__> London
1142: [12:12:40] * UndefinedOffset has joined #silverstripe
1143: [12:14:10] <zippy> harold__: do you want to be able to edit and set the carousels in the CMS? and edit the page contents in the CMS?
1144: [12:15:41] <harold__> yeah... currently I have that much working
1145: [12:15:46] <harold__> that bit works nicely
1146: [12:17:01] <zippy> harold__: class WinCarousel extends Carousel {
1147: [12:17:19] <zippy> why does that extend Carousel, it should really extend Page (unless Carousel extends Page…)
1148: [12:18:05] <harold__> Carousel extended dataobject
1149: [12:18:23] <harold__> as i said this sin't my doing, someone else coded this
1150: [12:18:29] <harold__> that much at least
1151: [12:18:40] <harold__> becuase it worke dI jsut extended carousel to make my own
1152: [12:19:11] <zippy> like pyro said, http://doc.silverstripe.org//src/framework_3.1/docs/en/tutorials/_images/tutorial2_pagetype-inheritance.jpg
1153: [12:19:29] <harold__> so I have now moved my form action function into the parent page controller
1154: [12:19:30] <zippy> so the WinCarousel_Controller will be looking for a WinCarousel model, that shouldn't really extend Carousel
1155: [12:20:19] <zippy> harold__: you can keep it where it was, and in the form action you could use action="$Link('functionname')" to get the link using the current controller
1156: [12:20:19] <harold__> does that make better sense
1157: [12:24:19] <harold__> $Link('functionname') is empty
1158: [12:25:45] <zippy> ah, your in a loop aren't you
1159: [12:25:50] <zippy> $Top.Link :)
1160: [12:26:16] <harold__> oh yeah of course!
1161: [12:30:00] <harold__> howevr that gives me
1162: [12:30:00] <harold__> action="/home/win/functionname"
1163: [12:31:42] <harold__> but anyway I can hardcode it: home/win/doContactFormSubmit
1164: [12:31:51] <harold__> but I get a message saying page cannot be found
1165: [12:31:54] <harold__> I have allowed the action
1166: [12:33:54] <zippy> so in your browser you are on the page xxxxxx.com/home/win ?
1167: [12:34:05] <harold__> yes
1168: [12:36:06] <harold__> i tried putting the function in HomePage and WinCarousel controller
1169: [12:36:07] <harold__> s
1170: [12:36:14] <harold__> alllowing in both
1171: [12:44:22] * zippy quit (Quit: zippy)
1172: [12:47:13] <harold__> ok I can now submit my form
1173: [12:48:00] <harold__> but now I get: Missing argument 2 for HomePage_Controller::doContactFormSubmit()
1174: [12:48:08] <harold__> public function doContactFormSubmit($data,$form)
1175: [12:48:33] <harold__> i don't know why I need $form
1176: [12:49:12] <harold__> but in my form I have
1177: [12:49:14] <harold__> $form->saveInto($submission);
1178: [12:51:48] * jordanmk quit (Read error: Connection reset by peer)
1179: [12:52:41] * jordanmk has joined #silverstripe
1180: [12:54:05] <kinglozzer> ss23: You know Solr, right? On a scale from 1 to fuckmerun, where does it rank in difficulty to set up?
1181: [12:54:46] <Pyancmnk> fuckyoujog
1182: [12:55:17] <Pyancmnk> harold__: well, if you'd like... there's a talk coming up on SilverStripe
1183: [12:55:22] <Pyancmnk> but for PHPNE
1184: [12:55:27] <Pyancmnk> not sure on exact date yet though.
1185: [12:55:39] <Pyancmnk> if not this month then next.
1186: [12:57:42] <Pyancmnk> but that's a 3hr train journey for you
1187: [12:57:47] <Pyancmnk> ~ish
1188: [13:01:36] <harold__> where?
1189: [13:02:56] * scu quit (Quit: Page closed)
1190: [13:03:20] * derek-b has joined #silverstripe
1191: [13:06:51] <harold__> how do I get at this data
1192: [13:06:52] <harold__> [postVars:protected] => Array ( [name]
1193: [13:07:01] <harold__> print_r($request->postVars('name'));
1194: [13:07:06] <harold__> gives me an error
1195: [13:13:33] * vebb has joined #silverstripe
1196: [13:14:33] * jordanmk quit (*.net *.split)
1197: [13:14:34] * spronk quit (*.net *.split)
1198: [13:14:34] * ajmitch quit (*.net *.split)
1199: [13:14:35] * ss23 quit (*.net *.split)
1200: [13:14:35] * guzzlefry quit (*.net *.split)
1201: [13:14:35] * Kingy[a] quit (*.net *.split)
1202: [13:14:35] * mrzero quit (*.net *.split)
1203: [13:14:35] * eagles0513875 quit (*.net *.split)
1204: [13:15:33] * jordanmk has joined #silverstripe
1205: [13:15:33] * spronk has joined #silverstripe
1206: [13:15:33] * ss23 has joined #silverstripe
1207: [13:15:33] * ajmitch has joined #silverstripe
1208: [13:15:33] * guzzlefry has joined #silverstripe
1209: [13:15:33] * Kingy[a] has joined #silverstripe
1210: [13:15:33] * mrzero has joined #silverstripe
1211: [13:15:33] * eagles0513875 has joined #silverstripe
1212: [13:17:19] * Shrike_Finland quit (Quit: Leaving.)
1213: [13:19:48] <kinglozzer> harold__: ->postVar('name'); - http://api.silverstripe.org/3.1/class-SS_HTTPRequest.html#_postVar
1214: [13:26:47] <Pyancmnk> harold__: error because it's protected.
1215: [13:26:57] <Pyancmnk> harold__: PHPNE!
1216: [13:27:09] <Pyancmnk> NEwcastle
1217: [13:35:16] <harold__> I got it
1218: [13:35:34] <harold__> actually I think it was because the scope was within a function
1219: [13:35:54] <harold__> so I had to use $functionVar->postvAR
1220: [13:35:57] <harold__> FOT IT NOW
1221: [13:36:51] <harold__> sorry
1222: [13:37:06] <harold__> Pyancmnk: i might be able to wangle it
1223: [13:37:13] <harold__> is it a mid-week thing?
1224: [13:37:15] <harold__> evening?
1225: [13:37:48] <harold__> by the way can I do this: $submission = new ContactFormSubmission(); $data->postVars()->saveInto($submission);
1226: [13:40:27] <Pyancmnk> harold__: yeah, one Tuesday soon.
1227: [13:40:33] <Pyancmnk> but I'm not sure which will be the SS talk.
1228: [13:40:40] <Pyancmnk> could be this month, could be next.
1229: [13:40:59] <harold__> how can i stay updated?
1230: [13:41:09] <Pyancmnk> umm, @phpne
1231: [13:41:10] <Pyancmnk> maybe
1232: [13:41:21] * catcher has joined #silverstripe
1233: [13:41:31] <Pyancmnk> phpne.com
1234: [13:41:57] <Pyancmnk> ah sorry, phpne.org.uk
1235: [13:42:23] <Pyancmnk> there was no uptade for July, but it was Phalcon
1236: [13:43:35] <harold__> great thanks I will monitor this
1237: [13:44:10] <harold__> i get: Call to a member function saveInto() on a non-object
1238: [13:44:10] <Pyancmnk> harold__: there is a london usergroup also, dunno when they meet though. I think it's on meetup.com
1239: [13:44:15] <harold__> $submission = new ContactFormSubmission(); $data->postVars()->saveInto($submission);
1240: [13:44:24] <Pyancmnk> yeah well that's just basic OOP :P
1241: [13:44:27] <harold__> i thought the postvars was an object
1242: [13:44:37] <Pyancmnk> postVars returns an array, not an object.
1243: [13:44:47] <Pyancmnk> more importantly, is not a form object.
1244: [13:44:48] <harold__> i found the Ss london group a while back actually
1245: [13:44:55] <harold__> i missed their last event which I planned to attend
1246: [13:45:05] <Pyancmnk> harold__: uhh, paste your code?
1247: [13:45:16] <Pyancmnk> that looks all wrong
1248: [13:45:37] <harold__> i'm just trying to save the submission into a table
1249: [13:45:59] <Pyancmnk> define 'into a table'? <table>?
1250: [13:46:15] <harold__> http://paste2.org/VwtsUac4
1251: [13:46:33] <harold__> i have a database table to store submissios
1252: [13:46:35] <Pyancmnk> not enough code.
1253: [13:46:42] <Pyancmnk> yeah, that's wrong too
1254: [13:46:46] <Pyancmnk> you're thinking about it all wrong.
1255: [13:46:58] <Pyancmnk> don't think about tables, think about objects.
1256: [13:47:06] <harold__> http://paste2.org/eCOnznZB
1257: [13:47:08] <Pyancmnk> ignore the database, entirely.
1258: [13:47:45] <Pyancmnk> oh, and SS has a built in email class. Although that could be a module that extends that, iirc there is an smtp module floating around.
1259: [13:48:01] <Pyancmnk> and you're not using a silverstripe form to post to this are you?
1260: [13:48:55] <Pyancmnk> if you're not using an SS form, you cannot use SaveInto. You'll have to manually set each field on the object before writing it.
1261: [13:49:09] <Pyancmnk> oh, or maybe... hmm.
1262: [13:49:44] <Pyancmnk> ContactFormSubmission::create()->update($this->request->postVars())->write();
1263: [13:50:13] <harold__> i'll try
1264: [13:50:30] <Pyancmnk> replacing that entire block of three lines
1265: [13:54:22] <Pyancmnk> (16,17,18)
1266: [13:55:03] <harold__> Fatal error: Call to a member function write() on a non-object
1267: [13:56:13] <Pyancmnk> hmm sec
1268: [13:56:53] <Pyancmnk> nope, that's impossible.
1269: [13:59:31] <harold__> so like this
1270: [13:59:34] <harold__> http://paste2.org/WNnanAde
1271: [14:00:28] <Pyancmnk> yeh, except never echo anything ever.
1272: [14:00:35] <Pyancmnk> or php will eat a puppy.
1273: [14:00:38] <Pyancmnk> devour it whole.
1274: [14:01:42] <Pyancmnk> this isn't crud igniter
1275: [14:02:37] <harold__> so don't echo?
1276: [14:03:08] <Pyancmnk> never.
1277: [14:03:20] <Pyancmnk> not unless you're doing something desparate with debugging.
1278: [14:04:51] <harold__> ok
1279: [14:06:35] <harold__> i'm still getting that no-object write error
1280: [14:06:59] <Pyancmnk> separate it again then.
1281: [14:07:18] <Pyancmnk> $blah = ContentFormSubmission::create();
1282: [14:07:34] <Pyancmnk> $blah->update($this->request->postVars());
1283: [14:07:39] <Pyancmnk> $blah->write();
1284: [14:07:54] <Pyancmnk> or befroe write do var_dump($blah);
1285: [14:09:05] * muskie9 has joined #silverstripe
1286: [14:19:22] <kinglozzer> Pyancmnk: Does SQLQuery escape stuff passed to ->setWhere() do you know?
1287: [14:19:35] <Pyancmnk> Nup.
1288: [14:19:43] <Pyancmnk> it's 'raw' afaik.
1289: [14:19:46] <Pyancmnk> but not 100%
1290: [14:19:51] <Pyancmnk> (sure)
1291: [14:20:04] <Pyancmnk> it's f-all code to read through, if you'd like.
1292: [14:20:38] <kinglozzer> Mmm, inherited a project here and get vars are being passed to SQLQuery unescapsed
1293: [14:20:41] <kinglozzer> unescaped*
1294: [14:20:55] <kinglozzer> Not built by us of course
1295: [14:21:24] <Pyancmnk> http://api.silverstripe.org/3.1/source-class-SS_Database.html#785-793
1296: [14:21:49] <Pyancmnk> one would have to say that it's pretty raw xD
1297: [14:22:08] <kinglozzer> :P
1298: [14:22:26] <Pyancmnk> http://api.silverstripe.org/3.1/source-class-SQLQuery.html#764
1299: [14:22:30] <Pyancmnk> most assuredly.
1300: [14:23:07] <Pyancmnk> which is why it's so bullshit to go "it's silverstripe's fault that sqli happens"
1301: [14:36:14] * Shrike_Finland has joined #silverstripe
1302: [14:36:35] <harold__> the form is on page /home/win
1303: [14:36:52] <harold__> I want to redirect to the same page but with success
1304: [14:36:58] <harold__> return Director::redirect($link."/?success=1")
1305: [14:37:04] <harold__> should that work
1306: [14:37:24] <Pyancmnk> yep
1307: [14:37:27] <Pyancmnk> wellno
1308: [14:37:31] <Pyancmnk> $this->Link()
1309: [14:39:07] <Pyancmnk> harold__: have you not done OOP before?
1310: [14:39:16] <harold__> bits and pieces
1311: [14:39:18] <Pyancmnk> I thought cake was OO, but zippy was saying it's arrays.
1312: [14:39:23] <harold__> my background is not in OOP
1313: [14:39:27] <Pyancmnk> harold__: I think for the most part you should brush up on OOP
1314: [14:39:29] <harold__> steep learning curve
1315: [14:39:29] <Pyancmnk> first
1316: [14:39:37] <Pyancmnk> then look at design patters (specifically MVC)
1317: [14:39:47] <Pyancmnk> that will remove about 80% of your issue with SS
1318: [14:39:50] <harold__> well there are lots of $this->
1319: [14:39:56] <harold__> so it's oo right
1320: [14:40:02] <Pyancmnk> yeah, $this is a reference to the current object.
1321: [14:40:34] <harold__> in cake the flows just makes a little more sense
1322: [14:40:37] <harold__> dont know why
1323: [14:40:41] <Pyancmnk> nah, they don't.
1324: [14:40:51] <Pyancmnk> OOP is the one truth in the world, haven't you heard? :P
1325: [14:41:06] <harold__> btw $this->link gives me /home not home/win
1326: [14:41:12] <Pyancmnk> arrays in PHP are sort of pseudo objects when used as hashmaps anyway
1327: [14:41:14] <harold__> is that because I am in the HomePage controller?
1328: [14:41:21] <Pyancmnk> yes.
1329: [14:41:29] <Pyancmnk> it'll give you the link to the current controller
1330: [14:41:54] <Pyancmnk> $this->Link('win').'?blah=thing'
1331: [14:44:41] <harold__> ok i see
1332: [14:48:18] <harold__> ok so my home/win page is of type ContactPage
1333: [14:48:38] <harold__> so I have moved my doformsubmit functinon into the homepage controller which is correct?
1334: [14:50:12] <harold__> and now this url is not found
1335: [14:50:30] <harold__> home / win / doContactFormSubmit
1336: [14:53:46] * caamic30 quit (Quit: caamic30)
1337: [15:00:40] <harold__> is my logic here correct
1338: [15:00:56] <harold__> win page is of type ContactPage which extends HomePage
1339: [15:01:08] <harold__> win page's url is /home/url/
1340: [15:01:14] <harold__> the page has a contact form
1341: [15:01:37] <harold__> the action of the form is home/win/dosubmit
1342: [15:01:53] <harold__> dosubmit is a function in the page controller of ContactPage
1343: [15:02:11] <harold__> and the function has been allowed in contactPage
1344: [15:02:43] * joelpittet has joined #silverstripe
1345: [15:03:46] <harold__> but the url /home/win/dosubmit - cannot be found
1346: [15:05:07] <kinglozzer> harold__: If your form name is ContactForm, you need to make sure 'ContactForm' is in your allowed actions too
1347: [15:08:43] <harold__> form name=carouselWinFrom
1348: [15:08:54] <harold__> i added that to the allowed action but it still doesn't work
1349: [15:09:41] <kinglozzer> harold__: So, you're on http://mysite.com/home/win - that's a page. You then submit the form on that page and you're redirected to http://mysite.com/home/win/dosubmit ?
1350: [15:10:14] <harold__> correct
1351: [15:11:26] <kinglozzer> harold__: Can you paste your controller? http://pastie.org
1352: [15:11:59] * ARNHOE quit ()
1353: [15:14:28] * harold__ quit (Ping timeout: 246 seconds)
1354: [15:18:11] * _harold has joined #silverstripe
1355: [15:19:17] <_harold> kinglozzer: http://pastie.org/9447687
1356: [15:21:02] <kinglozzer> _harold: And carouselWinForm is defined on Page_Controller?
1357: [15:21:03] <kinglozzer> The function ^^
1358: [15:21:52] <kinglozzer> If ContactPage extends HomePage, then ContactPage_Controller needs to extend HomePage_Controller, /not/ Page_Controller
1359: [15:22:29] <_harold> ok
1360: [15:23:07] <_harold> so just... class ContactPage_Controller extends HomePage_Controller
1361: [15:24:17] <kinglozzer> Yeah
1362: [15:24:26] <_harold> I still get page cannot be found
1363: [15:28:36] <_harold> Page not found Sorry, it seems you were trying to access a page that doesn't exist. Please check the spelling of the URL you were trying to access and try again.
1364: [15:29:11] <_harold> hehhe - I am 7 hours into this... getting a contact form working
1365: [15:29:23] <_harold> you sometimes you just have to conceed
1366: [15:29:27] <_harold> *know
1367: [15:30:27] <Pyancmnk> _harold: have you read tutorial #3?
1368: [15:30:34] <Pyancmnk> or any of them?
1369: [15:30:49] <_harold> yeah it was the first thing i did
1370: [15:30:52] <_harold> tutotirals 1-5
1371: [15:31:38] <Pyancmnk> I think perhaps you should install userforms and be done with it :P
1372: [15:31:45] <_harold> in facti actually bult my form off the back of that tutorial
1373: [15:31:50] <_harold> i have a lot of the same structure
1374: [15:32:10] <Pyancmnk> because I can code a contact page without looking almost.
1375: [15:32:15] <Pyancmnk> lets try.
1376: [15:32:31] <_harold> exactly... i need to recognise my limits
1377: [15:32:44] <_harold> SS is an awesome tool but it's not for everyone
1378: [15:36:22] <Pyancmnk> class ContactPage extends Page { private statuc $db = array( 'EmailTo' => 'Varchar'); public function getCMSFields(){$fields = parent::getCMSFields();$fields->addFieldToTab('Root.Main.Email', EmailField::create('EmailTo', 'Emails send to');return $fields;}} class ContactPage_Controller extends Page_Controller { private static $allowed_actions = array('Form', 'doSubmit'); public function Form() { return Form::create($this, __F
1379: [15:36:25] <Pyancmnk> fucker
1380: [15:36:40] <Pyancmnk> _harold: lies, it is for everyone!
1381: [15:37:08] <Pyancmnk> you just need to brush up on object oriented programming.
1382: [15:38:24] * jenniferaslan has joined #silverstripe
1383: [15:39:42] <_harold> without a doubt
1384: [15:43:02] <_harold> serious question what is the up-take of SS like
1385: [15:43:17] <_harold> am I alone in my stuggle
1386: [15:43:24] <_harold> *struggle
1387: [15:43:32] <_harold> or is it common
1388: [15:46:04] <catcher> _harold, if you're learning OOP & SS at the same time, it's more.
1389: [15:46:23] <_harold> challenging?
1390: [15:46:25] <catcher> _harold, I kind of did that, and it took me a while to get really proficient.
1391: [15:46:42] <catcher> _harold, but I was learning cake at the same time, and the curve for SS was lower for me.
1392: [15:46:51] * lerni_ has joined #silverstripe
1393: [15:47:37] <_harold> so would you say it's reocmmended to get to grips with OOP with another framework first
1394: [15:47:49] <_harold> like I said it was making more sense in Cake
1395: [15:48:01] <catcher> _harold, cake doesn't really use OOP
1396: [15:48:11] <catcher> _harold, so, no :-P
1397: [15:48:16] <_harold> are you sure?
1398: [15:48:42] * derek-b quit (Remote host closed the connection)
1399: [15:48:52] <catcher> Yep.. you can put in some wrappers to make it more OO, but it's mostly array based as mentioned before.
1400: [15:49:51] <catcher> _harold, just spend a couple hours reading up on OOP concepts, and then re-read the SS tutorials. They'll make more sense when you're not also trying to figure out the OOP PHP stuff.
1401: [15:53:52] <_harold> any tips on the page cannot be found error
1402: [15:54:11] <_harold> would this suggest a disallowed action
1403: [15:56:21] <catcher> _harold, that's one possibility, or requesting an action that actually doesn't exist on a controller :-P
1404: [15:58:41] <_harold> I see the action as allowed and the action exists
1405: [15:59:03] <_harold> which would imply that the controller is not correct
1406: [15:59:11] <_harold> but I output the current pages controller?
1407: [15:59:17] <_harold> *can
1408: [16:01:32] <catcher> _harold, allowed_actions is a static, so you need to /dev/build after changes
1409: [16:01:55] * joelpittet quit ()
1410: [16:02:02] <_harold> is it ok to be public too?
1411: [16:04:36] <catcher> _harold, depends on the version of SS, they're private in 3.1.5 (maybe 3.1 in general, can't remember)
1412: [16:04:48] <kinglozzer> _harold: If you're on 3.1.x, it needs to be private
1413: [16:04:53] <kinglozzer> If you're on 3.0.x, it needs to be public
1414: [16:05:57] <_harold> in my case it makes no difference, neither case works
1415: [16:08:29] * nedmas has joined #silverstripe
1416: [16:08:47] <nedmas> Morning all :)
1417: [16:09:54] <nedmas> Anybody got any experience getting Behat tests to work? Mine keep telling me a form doesn't exist when it does?
1418: [16:11:23] <Pyancmnk> _harold: no matter the framework they're all pretty much the same, SS is probably easier in that respect.
1419: [16:11:33] <Pyancmnk> it's more 'complete'
1420: [16:12:34] <Pyancmnk> _harold: you've probably got a slight depth issue
1421: [16:13:02] <_harold> I have no problem admitting that
1422: [16:13:15] <Pyancmnk> oh sorry, uhh
1423: [16:13:21] <Pyancmnk> [17:05] <_harold> in my case it makes no difference, neither case works
1424: [16:13:21] <_harold> I think I've said it several tiems today
1425: [16:13:36] <Pyancmnk> you've probably got a slight depth issue, as in one /url/part too many
1426: [16:13:37] <Pyancmnk> or something
1427: [16:13:52] <_harold> lol ok
1428: [16:13:55] <_harold> :)
1429: [16:15:22] <_harold> the form resides on /home/win though
1430: [16:15:58] <_harold> so the page controller for the page at this url should handle the action
1431: [16:18:31] <catcher> _harold, HomePage_Controller extends Page_Controller { private static $allowed_actions = array('win'); public function win() { die('dead'); } }
1432: [16:18:59] <catcher> _harold, then in the CMS, be sure the page type of 'home' is HomePage (assuming the model exists too)
1433: [16:19:18] * kinglozzer quit ()
1434: [16:22:32] <catcher> also assuming SS3.1.
1435: [16:22:45] <Pyancmnk> _harold: yeah, the form does. but the action is /home/action
1436: [16:23:27] <Pyancmnk> /home is the controller. /whatever is the 'action' - the method on that controller that is called
1437: [16:23:46] <Pyancmnk> so it depends on how you're submitting.
1438: [16:24:04] <Pyancmnk> if you're still trying by hardcode, then you'll need to call /home/submission
1439: [16:24:20] <Pyancmnk> or whatever it's called (and it needs to be in allowed_actions
1440: [16:26:33] <_harold> so not home/win/dosubmit
1441: [16:26:38] <Pyancmnk> no.
1442: [16:26:46] <Pyancmnk> like I say, one level too many ;)
1443: [16:28:28] <_harold> and the allowed action is ok to go in the WinPage which Extended HomePage
1444: [16:28:39] <_harold> which itself extends Page
1445: [16:29:11] <_harold> and in the WinPage controller I allow the name of the function which is the form action
1446: [16:29:26] <Pyancmnk> no, it must be on the controller.
1447: [16:29:33] <Pyancmnk> (allowed_actions)
1448: [16:30:01] <Pyancmnk> furthermore, it must be on the controller that defines that action (you can't change access permission on a subclass like that)
1449: [16:30:48] <_harold> so it must go in the HomePage controller?
1450: [16:30:54] <Pyancmnk> yes.
1451: [16:31:17] * nedmas has left #silverstripe
1452: [16:31:24] * stnvh quit ()
1453: [16:31:34] <_harold> despite the WinPage extending HomePage?
1454: [16:31:41] <_harold> isn't that the point of inheretence?
1455: [16:31:54] <Pyancmnk> wait what?
1456: [16:32:29] <Pyancmnk> no, if Homepage_controller defines the doSubmit, then yes. If WinPage_controller defines the doSubmit action, then it msut be on that.
1457: [16:32:58] <_harold> WinPage controller is where the function I want to access it
1458: [16:32:59] <_harold> is
1459: [16:33:30] <_harold> because the function is specific to WInPage
1460: [16:33:38] <_harold> so that' s ok?
1461: [16:34:22] <Pyancmnk> yes, that's right.
1462: [16:34:33] <Pyancmnk> so that's where the $allowed_actions needs to allow that action.
1463: [16:35:18] <_harold> precisely
1464: [16:35:21] <_harold> that's what I have
1465: [16:35:24] <_harold> public static $allowed_actions = array('doContactFormSubmit');
1466: [16:35:29] <Pyancmnk> yeah, that's all I was trying to say ;)
1467: [16:35:50] <_harold> someone else said I should also have the name of the form in the allowed lists
1468: [16:35:53] <_harold> lsit
1469: [16:36:02] <_harold> allowed_list
1470: [16:36:31] <Pyancmnk> well depends on how you're submitting.
1471: [16:36:46] <Pyancmnk> it's half five so I'm off home. but I can log in there and help still. but I'll be about an hour and a bit.
1472: [16:36:47] <Pyancmnk> at least
1473: [16:36:49] <_harold> regular submit button with action="" in the form
1474: [16:36:57] <Pyancmnk> well there's your problem.
1475: [16:37:03] <Pyancmnk> you're submitting to the wrong place.
1476: [16:37:13] <_harold> action="/home/win/actionblah"
1477: [16:37:27] <Pyancmnk> action="/home/doSubmit"
1478: [16:37:52] <_harold> ok but i tested already mydoamin.com/home/dosubmity
1479: [16:38:02] <_harold> and it gives page not found
1480: [16:38:04] <Pyancmnk> judging by what you've told me
1481: [16:38:14] <Pyancmnk> did you dev/build
1482: [16:38:16] <Pyancmnk> ?
1483: [16:38:37] <_harold> yes and flush
1484: [16:38:46] <_harold> we can pick this up later if you have to run
1485: [16:39:14] <Pyancmnk> yeh, ta
1486: [16:39:16] * Pyancmnk quit ()
1487: [16:55:42] * gelignite has joined #silverstripe
1488: [17:17:06] * lerni_ quit (Remote host closed the connection)
1489: [17:54:29] * giarc has joined #silverstripe
1490: [17:56:25] <giarc> hey there, i'm new to SS and wondering if there is a way to have the DB created with actual FKs? i'm using mysql
1491: [17:58:48] <guzzlefry> Not that I'm aware of.
1492: [17:59:13] <guzzlefry> But I've been out of touch with SilverStripe for around 6 months, so it's possible that's been added.
1493: [18:03:37] <giarc> hm, ok. thanks for the info
1494: [18:08:58] <giarc> seems like the default values for model FKs makes it hard to create them myself ( in a DB with data ) as the model FK fields get 0 rather than null, thus violating the constraint…<sigh>
1495: [18:11:32] * Liongold has joined #silverstripe
1496: [18:11:38] <Liongold> Hi
1497: [18:11:47] <Liongold> muskie9: may I PM you?
1498: [18:17:46] * lerni_ has joined #silverstripe
1499: [18:22:25] <_harold> @Pyancemk wb
1500: [18:26:41] * scpi has joined #silverstripe
1501: [18:29:45] * SightUnseen has joined #silverstripe
1502: [18:34:13] <_harold> in the cms when i preview a page i seee the correct layout template
1503: [18:34:28] <_harold> in the site itself I don't see the the correct ayout
1504: [18:34:35] <_harold> have flaushed and rebuilt
1505: [18:38:54] * SightUnseen has left #silverstripe
1506: [18:40:01] <catcher> _harold, have you done a save & publish?
1507: [18:45:07] <_harold> yes it already was saved
1508: [18:45:15] <_harold> but I just did it again
1509: [18:45:29] <_harold> in the preview I can view the draft and published versions
1510: [18:45:34] <_harold> both are as they should be
1511: [18:45:49] <_harold> but on the front end I don't see the correct template
1512: [18:48:53] <_harold> how can it be
1513: [18:48:57] <_harold> server screwed up?
1514: [18:49:29] <catcher> How do you know it's using the wrong template?
1515: [18:49:55] <catcher> add ?showtemplate=1 to your request to be sure.
1516: [18:52:48] <_harold> nice one catcher...
1517: [18:52:59] <_harold> someone else is using the cms
1518: [18:53:09] <_harold> created a page with the same url so it renamed mine
1519: [18:53:15] <_harold> i was not looking at my page
1520: [18:53:16] <_harold> grrr
1521: [18:57:36] <catcher> that'll do it every time :)
1522: [19:01:05] <_harold> now i can't get the old url back
1523: [19:01:13] <_harold> keeps renaming it win-2
1524: [19:01:20] <_harold> i deelted the duplicate pag
1525: [19:07:05] * Shrike_Finland quit (Quit: Leaving.)
1526: [19:08:51] <_harold> $this->Pagelink for current url?
1527: [19:11:45] <catcher> SiteTree objects & subclasses store a field call URLSegment
1528: [19:14:23] <_harold> $URLSegment?
1529: [19:14:29] <_harold> it's empty in my template
1530: [19:15:34] <catcher> _harold, are you wanting the full URL?
1531: [19:16:09] <catcher> Not sure what your case is, but you may want this:
1532: [19:16:10] <catcher> http://api.silverstripe.org/3.1/class-SiteTree.html#_AbsoluteLink
1533: [19:16:11] <_harold> no just the /xxx/yyyyy
1534: [19:18:25] * Liongold quit (Quit: Page closed)
1535: [19:19:28] * antmas quit (Ping timeout: 246 seconds)
1536: [19:20:03] <_harold> in the tempklate is will just be a $VarExample right... no this->
1537: [19:21:16] <catcher> _harold, right
1538: [19:21:54] <catcher> $URLSegment will give you the page segment as saved in the CMS.
1539: [19:23:33] <_harold> so whhat is worng with this
1540: [19:23:35] <_harold> <form name="carouselWinFrom" class="carouselFrom" method="post" action="{$URLSegment}">
1541: [19:23:36] <catcher> You may also be interested in http://api.silverstripe.org/3.1/class-SiteTree.html#_RelativeLink
1542: [19:24:08] <catcher> _harold, I recommend displaying the results above the carousel so you can see exactly what you're getting.
1543: [19:24:14] <catcher> When you've got what you want, put them in the action.
1544: [19:28:19] <_harold> empty
1545: [19:30:43] <catcher> _harold, if $URLSegment is empty, you're not in the context of a Page or a Page_Controller.
1546: [19:30:53] <catcher> i.e. inside a loop or with, perhaps
1547: [19:31:42] <_harold> yes you're right.. i am inside a loop
1548: [19:31:52] <_harold> so $top.URLSegment
1549: [19:31:59] <catcher> mmhmm
1550: [19:32:08] <catcher> capital T is customary, $Top.URLSegment
1551: [19:32:28] <_harold> wow something wnet in tdoday perhaps!
1552: [19:37:44] * scpi quit (Read error: Connection reset by peer)
1553: [19:38:12] * scpi has joined #silverstripe
1554: [19:40:19] <_harold> catcher: can i run something by you quickly
1555: [19:41:05] <catcher> surely
1556: [19:43:00] <_harold> my url is mydomain.com/home/win-2/
1557: [19:43:18] <_harold> this is a ContactPage which extends homePage
1558: [19:43:23] <_harold> which extends Page
1559: [19:43:34] <_harold> on my win-2 URL I have a form
1560: [19:44:00] <_harold> form action="home/win-2/doSubmit"
1561: [19:44:32] <_harold> in ContactPage_Controller extends Page_Controller
1562: [19:44:45] * ^pH has joined #silverstripe
1563: [19:44:51] <_harold> public static $allowed_actions = array('doSubmit');
1564: [19:45:06] <_harold> ublic function doSubmit($data) {
1565: [19:45:44] <_harold> when i submit am redirected to home/win-2/doSubmit
1566: [19:45:52] <_harold> but i get page cannot be found
1567: [19:46:30] <_harold> is my flow righT?
1568: [19:52:04] <catcher> _harold, try reaching your submit action in a browser.
1569: [19:52:14] <catcher> http://mydomain.com/home/win-2/doSubmit
1570: [19:52:29] <catcher> put a breakpoint or die('message'); in the controller action
1571: [19:52:46] <Zauberfisch> if doSubmit is is a form action, than that should not be accessable as URL
1572: [19:53:38] <catcher> _harold, is it an SS form? Or just an action you're building?
1573: [19:54:17] <_harold> not an SS form
1574: [19:54:22] <_harold> my own, I hard coded it
1575: [19:54:42] <_harold> the action is a functino that emails the data input in the form
1576: [19:58:10] * Kingy[a] is now known as Kingy
1577: [19:59:37] <_harold> if i don't get this working in 40 mins I must be eligible for an award
1578: [19:59:52] <_harold> it will be 12 hours to get a web form working :)
1579: [20:00:25] <_harold> no one could top (or should that be bottom?) that
1580: [20:00:41] <catcher> haha
1581: [20:00:56] <catcher> _harold, you know SS provides form code, right? It's one of the tutorials
1582: [20:01:38] <_harold> yeah but this is a legacy site I am working on
1583: [20:02:17] <_harold> so i got a work with what I've got here
1584: [20:02:40] <_harold> it borderlien moronic what I'm doing
1585: [20:03:01] <catcher> If it makes you feel better, handling a manual form in a framework isn't exactly the "hello world" of introductions. :-P
1586: [20:03:31] * Pyromanik has joined #silverstripe
1587: [20:03:39] <Pyromanik> _harold, figure it out?
1588: [20:05:19] <Stomach> irogue__, what do you mean i done good? :S
1589: [20:05:34] <Kingy> morning
1590: [20:08:46] <_harold> hi Pyromanik no not quite yet
1591: [20:08:50] <_harold> can you give me 5 mnis
1592: [20:09:42] * mobiusnz quit (Quit: Leaving.)
1593: [20:10:42] * UndefinedOffset quit (Quit: Leaving.)
1594: [20:11:53] <_harold> Pyromanik: this is where I am
1595: [20:12:03] <_harold> [20:43] <_harold> my url is mydomain.com/home/win-2/
1596: [20:12:09] <_harold> [20:43] <_harold> this is a ContactPage which extends homePage
1597: [20:12:16] <_harold> [20:43] <_harold> which extends Page
1598: [20:12:24] <_harold> [20:43] <_harold> on my win-2 URL I have a form
1599: [20:12:29] <_harold> [20:44] <_harold> form action="home/win-2/doSubmit"
1600: [20:12:32] * SightUnseen has joined #silverstripe
1601: [20:12:36] <_harold> [20:44] <_harold> in ContactPage_Controller extends Page_Controller
1602: [20:12:41] <_harold> [20:44] <_harold> public static $allowed_actions = array('doSubmit');
1603: [20:12:53] <_harold> [20:45] <_harold> public function doSubmit($data) {
1604: [20:13:01] <_harold> [20:45] <_harold> when i submit am redirected to home/win-2/doSubmit
1605: [20:13:08] <_harold> page not found!
1606: [20:15:29] * SightUnseen quit (Client Quit)
1607: [20:15:45] * SightUnseen has joined #silverstripe
1608: [20:17:07] * SightUnseen has left #silverstripe
1609: [20:20:33] * Olliepop has joined #silverstripe
1610: [20:23:58] <_harold> Pyromanik: i think you were right about being a level too deep
1611: [20:24:12] <_harold> but if I am not hard coding the action I don't know how to do it
1612: [20:24:35] <_harold> action="{$Top.Link}doSubmit"
1613: [20:27:56] * mobiusnz has joined #silverstripe
1614: [20:28:50] <Pyromanik> _harold, yuo
1615: [20:29:18] <Pyromanik> you'll need to paste some code, as I'm not quite sure what you mean by action="home/win-2/dosubmit"
1616: [20:29:38] <_harold> ok let me paste everything one moment
1617: [20:29:40] <Pyromanik> _harold, the whole point is that you're supposed to let SilverStripe do it for you.
1618: [20:29:54] <_harold> i'm borderline delerious just now
1619: [20:29:57] <Pyromanik> You _CAN_ do it without that, but it's not so easy, as you're finding.
1620: [20:30:07] * zippy__ has joined #silverstripe
1621: [20:30:24] * zippy__ is now known as zippy
1622: [20:30:29] <_harold> 11hrs 50 misn on this wuurhahahahahahaaha
1623: [20:30:37] <zippy> _harold: hello
1624: [20:30:46] <zippy> _harold: how are you getting on there
1625: [20:30:51] <zippy> >> Mars is the only planet in the solar system solely inhabited by functioning robots.
1626: [20:31:13] <_harold> this made me lol
1627: [20:31:17] <_harold> https://www.google.co.uk/search?q=pastie&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&channel=sb&gfe_rd=cr&ei=8j7hU765Eeze7AbV7YGwBg
1628: [20:32:02] <Pyromanik> class ContactPage extends Page { private static $db = ['EmailTo' => 'Varchar']; public function getCMSFields() { $fields = parent::getCMSFields(); $fields->addFieldToTab('Root.Main', EmailField::create('EmailTo', 'Send submitted messages to'), 'Content'); return $fields; }}
1629: [20:32:29] <zippy> _harold: how are you getting on with your site?
1630: [20:32:39] <_harold> i'm not
1631: [20:32:43] <zippy> Pyromanik: I do quite like the shorter array syntax
1632: [20:32:53] <zippy> _harold: I sent you a pm last night, but didn't get a reply
1633: [20:32:54] <_harold> no progress is 3 hours :)_
1634: [20:33:14] <_harold> yes I saw that but hours after you sent it
1635: [20:33:18] <_harold> appareciate your offer
1636: [20:33:27] <_harold> you were gone by the time I saw it
1637: [20:33:35] <zippy> still stands if you like
1638: [20:33:44] <_harold> ok here is my ContactPage
1639: [20:33:47] <_harold> http://pastie.org/9448743
1640: [20:33:54] <_harold> pasting code now
1641: [20:35:20] <_harold> HomePage.php
1642: [20:35:22] <_harold> http://pastie.org/9448751
1643: [20:35:24] <Pyromanik> class ContactPage_Controller extends Page_Controller { private static $allowed_actions = ['Form','doSubmit']; public function Form() { return Form::create($this, __FUNCTION__, FieldList::create(TextField::create('Name'), EmailField::create('Email'), TextareaField::create('Message')), FieldList::create(FormAction::create('doSubmit', 'Submit')), RequiredFields::create('Name', 'Email', 'Message')); } public function doSubmit($data, $form, $request)
1644: [20:35:58] <Pyromanik> _harold, my last 2 lines will give you a functional contact form.
1645: [20:36:59] <_harold> my template
1646: [20:37:00] <_harold> http://pastie.org/9448755
1647: [20:38:06] * vebb has joined #silverstripe
1648: [20:38:21] <zippy> vebb: morning
1649: [20:38:35] <vebb> err
1650: [20:38:37] <vebb> morning
1651: [20:38:42] <vebb> (hadn't even unloked the laptop) heh
1652: [20:38:44] <zippy> no phone calls yet?
1653: [20:38:45] <Pyromanik> _harold, your ContactPage_Controller is missing $allowed_actions
1654: [20:38:52] <vebb> ffff where's my coffee
1655: [20:38:53] <vebb> oj
1656: [20:38:57] <vebb> there it is
1657: [20:39:17] <zippy> vebb: hello, this is grahm from noel lemming… there has been a mistake….
1658: [20:39:46] <vebb> wat
1659: [20:39:55] <vebb> graham actually owns that store
1660: [20:39:57] <vebb> lol
1661: [20:39:59] <vebb> good guess son
1662: [20:40:26] <_harold> i did have it there... I was swapping a few things out
1663: [20:40:35] <_harold> i will try it again one moment to confirm
1664: [20:40:50] <zippy> vebb: who said it was a guess? dun dun dunnnnn
1665: [20:40:57] <vebb> mlol
1666: [20:41:02] <vebb> phone is ringing
1667: [20:41:07] * vebb is not picking up
1668: [20:41:09] <catcher> _harold, you'll want to extend HomePage_Controller rather than Page_Controller.
1669: [20:41:15] <vebb> fucking coincidences...
1670: [20:41:59] * r_hector has joined #silverstripe
1671: [20:42:18] <_harold> 100%?
1672: [20:44:10] <_harold> opps
1673: [20:45:35] <_harold> Pyromanik: my revised ContactPage controller, the allowed action was missing when i pasted but it still doesn't work
1674: [20:45:36] <_harold> http://pastie.org/9448768
1675: [20:45:52] <zippy> _harold: when adding in allowed actions, you need to flush
1676: [20:46:20] <zippy> btw, since contact page extends home page, you might want the contact controller to extend homepage controller like catcher said
1677: [20:46:57] * Kingy is now known as Kingy[a]
1678: [20:46:58] <_harold> @catcher
1679: [20:47:03] <_harold> zippy:
1680: [20:47:15] <zippy> _harold:
1681: [20:47:21] <catcher> zippy:
1682: [20:47:22] <_harold> I just added the class ContactPage_Controller extends HomePage_Controller {
1683: [20:47:33] <_harold> still page cannot be found
1684: [20:47:50] <zippy> _harold: I sent you a pm
1685: [20:49:39] <zippy> Why does it feel like such a mission to add a button to the CMS? I have a DataObject, and I want to add a button at the bottom (by save etc) to say "Send Email" which will hit an action on a controller
1686: [20:49:56] <zippy> I can use a LiteralField and put the button in the page, but I want it at the bottom
1687: [20:50:31] <Stomach> zippy, its because it is a mission
1688: [20:50:33] * Ryan-Toast has joined #silverstripe
1689: [20:50:51] <Stomach> oh, you want a button? better implement a custom itemrequest class for the gridfield youre using!
1690: [20:51:09] <Stomach> oh, its a model admin? better edit the entire modeladmin edit form to add it!
1691: [20:51:09] <zippy> Stomach: a button on my edit item form
1692: [20:51:17] <zippy> http://doc.silverstripe.org/framework/en/howto/extend-cms-interface#extending-the-cms-actions - it makes it sound like it's so easy here
1693: [20:51:28] <pippy> zippy: arn't those actions?
1694: [20:51:58] <pippy> actions are different from literal buttons
1695: [20:52:08] <zippy> button calls an action was my thought process
1696: [20:52:09] <pippy> *literal fields
1697: [20:52:14] <Stomach> "To make the actions more user-friendly you can also use alternating buttons as detailed in the CMS Alternating Button how-to."
1698: [20:52:17] <Stomach> broken link
1699: [20:52:18] <Stomach> >_<
1700: [20:52:27] <zippy> ss23: there is a broken link in the docs ^
1701: [20:52:31] * Kingy[a] is now known as Kingy
1702: [20:52:32] <zippy> there we go, bug reported
1703: [20:52:45] <vebb> https://www.youtube.com/watch?v=_dnKD2m_mPE&feature=youtu.be
1704: [20:52:46] <vebb> wa
1705: [20:52:53] <vebb> augmented reality for westpac?
1706: [20:52:58] <vebb> no captions
1707: [20:52:59] <vebb> LE SIGH
1708: [20:53:15] <pippy> zippy: I take that back, my custom CMS button has ~300 lines of code
1709: [20:53:46] <Stomach> yeah, its not easy :P
1710: [20:54:16] <zippy> gay
1711: [20:54:33] <zippy> will remain as a literal field then
1712: [20:55:28] <pippy> oh i found an easier way to do it if it's on a controller and not a dataobject
1713: [20:55:38] <pippy> well, site tree object
1714: [20:55:52] <Pyromanik> catcher,makes no damn difference if there's nothing in Homepage controller
1715: [20:56:06] <vebb> pippy: glad I told you about silverstripe way back then? :p
1716: [20:56:14] <pippy> zippy: http://www.sspaste.com/paste/show/53e14097f1f5d
1717: [20:56:47] <vebb> I wonder when that was.
1718: [20:56:51] <vebb> yeah, eight years ago
1719: [20:57:01] <pippy> IIRC this won't work on a dataobject
1720: [20:57:21] <pippy> vebb: yeah it was the right horse to back, even the govt got behind it with the CWP
1721: [20:57:40] <vebb> and Westpac
1722: [20:57:42] <vebb> according to OP
1723: [20:57:48] <Pyromanik> ah fuck, it's 10pm :(
1724: [20:57:54] <pippy> i think i got my job with doubleclique because i'd done the hello world with SS
1725: [20:57:57] <vebb> lies, it's 8:57am
1726: [20:58:03] <vebb> pippy: yup
1727: [20:58:10] <Pyromanik> this is true vebb.
1728: [20:58:11] <vebb> though, I prefer Laravel...
1729: [20:58:15] <Pyromanik> gaaay
1730: [20:58:26] <vebb> BUT
1731: [20:58:28] <vebb> it's not a CMS>
1732: [20:58:29] <Pyromanik> GAAAAAY
1733: [20:58:33] <vebb> (there's a difference)
1734: [20:58:35] <zippy> vebb: indeed
1735: [20:58:38] <Pyromanik> neg
1736: [20:59:15] <vebb> lol
1737: [20:59:29] <vebb> I just met my old boss
1738: [20:59:41] <vebb> he's like WOW you're different. and I pulled this little round hocky puck off my head.
1739: [20:59:48] * simon_w has joined #silverstripe
1740: [21:00:05] <vebb> this: http://www.medel.com/rondo
1741: [21:00:12] <vebb> it's awesome.
1742: [21:00:17] <vebb> it costs more than... half a house.
1743: [21:01:59] * r_hector quit (Quit: Leaving.)
1744: [21:02:34] * Cheddam has joined #silverstripe
1745: [21:03:25] <vebb> lol
1746: [21:03:32] <vebb> I'm having a "fight" with Westpac on Twitter.
1747: [21:04:30] <vebb> https://twitter.com/vebbed/status/496763352748552192/photo/1
1748: [21:04:33] <Pyromanik> this vebb guy, da fuq
1749: [21:04:43] <vebb> Pyromanik: so many people think that
1750: [21:04:55] <vebb> they go "da fuq?"
1751: [21:05:05] <vebb> and then they go, "bro what's that thing on your head man, how does it stay there?"
1752: [21:05:14] <vebb> one guy asked me if it was a peircing >.<
1753: [21:07:11] <Pyromanik> right, laters dudes
1754: [21:07:18] <Pyromanik> good luck _harold
1755: [21:07:21] * Pyromanik quit (Quit: HydraIRC -> http://www.hydrairc.com <- \o/)
1756: [21:07:30] <vebb> yay, Westpac apologised
1757: [21:07:31] <vebb> lol!
1758: [21:08:36] <Kingy> I find banks are pretty good on twitter
1759: [21:09:51] <_harold> when I use the silverstripe form I have input wrapped up in a div class MiddleColumn
1760: [21:09:54] <_harold> is that standard?
1761: [21:10:08] * catcher quit (Quit: Leaving)
1762: [21:10:43] <zippy> it wouldn't matter
1763: [21:10:50] <zippy> so you are getting an error when you submit the form
1764: [21:11:15] <_harold> I've now resorted back to the SS form
1765: [21:11:20] <_harold> hard coding just doesn't work
1766: [21:11:43] <zippy> so when you submit, the url would be /contact-us/Form on the page it dies on?
1767: [21:12:02] <_harold> just checking
1768: [21:12:46] * lerni_ quit ()
1769: [21:14:46] <_harold> ok so the form submits and emails which is fine
1770: [21:15:06] <_harold> but now I am back to the original problem when I started out this morning
1771: [21:15:27] <_harold> the form has some weird div's wrapping up the inputs
1772: [21:15:40] <_harold> are these standard SS form containers?
1773: [21:17:45] <_harold> ok I think the Form I am outputting must be declared else where in my code
1774: [21:18:06] <zippy> when you call $Form it will build th HTML for that form fo you
1775: [21:18:09] <Kingy> I have divs wrapping my inputs
1776: [21:18:17] * antmas has joined #silverstripe
1777: [21:18:25] <Kingy> but no random MiddleColumn
1778: [21:18:30] <antmas> morning all
1779: [21:18:41] <Kingy> hey mate
1780: [21:21:48] <_harold> Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes)
1781: [21:21:55] <_harold> but other sites on my server seem to be ok
1782: [21:23:09] <_harold> ok now
1783: [21:23:40] <Stomach> _harold, you can do a custom form pretty easily - heres a pastie of a custom contact form for example: http://pastie.org/9448819
1784: [21:24:12] <zippy> You can control the layout of your form quite easily. Instead of just doing $Form, you can do something like <% with Form %> $Fields.dataFieldByName(Email) <% end_with %>
1785: [21:24:31] <zippy> Stomach: like the parsley eh
1786: [21:25:03] <Stomach> zippy, not really, but its simple and works (sometimes)
1787: [21:25:52] <zippy> be nice if more browsers supported html5 validation
1788: [21:26:11] <_harold> here is my page controller:
1789: [21:26:12] <_harold> http://pastie.org/9448823
1790: [21:26:13] <zippy> I didn't realise, but firefox doesn't have date / time inputs?
1791: [21:26:29] <_harold> template: $Top.FormR
1792: [21:26:33] <_harold> no output
1793: [21:27:11] <zippy> I wonder if there was issues with Forms or whatever in ss 3.0.3
1794: [21:27:38] <_harold> hmmm
1795: [21:32:05] <_harold> ok i just found a page which had been renamed ContactPage_BAK.php
1796: [21:32:07] <Ryan-Toast> Is it possible to update siteconfig rows in a page without too much hacking?
1797: [21:32:15] <_harold> which had a Form function
1798: [21:32:30] <_harold> which is where that form was coming form i think
1799: [21:32:42] * scpi quit (Quit: scpi)
1800: [21:32:49] <zippy> _harold: :)
1801: [21:33:39] <antmas> anyone use netbeans?
1802: [21:33:42] <zippy> I used to rage at cake so hard, only to find out I had a typo, or not added _Controller, or not pluralized something
1803: [21:33:48] <zippy> antmas: ew… phpstorm ftw
1804: [21:34:05] <antmas> zippy: :P what's the git stuff like with phpstorm?
1805: [21:34:11] <zippy> antmas: The rates are expensive enough, council should be able to afford it
1806: [21:34:13] <Ryan-Toast> antmas: good
1807: [21:34:26] <_harold> yeah that db naming is not good when you're tired
1808: [21:34:29] <Ryan-Toast> I fucking love PHPStorm
1809: [21:34:38] <antmas> Ryan-Toast: any glaring things you can't do git-wise?
1810: [21:34:51] <Ryan-Toast> antmas: I use command line for git mainly.
1811: [21:34:59] <Ryan-Toast> antmas: and so shoulld you :P
1812: [21:35:00] <zippy> antmas: grab the trial of it. but I use command for git myself
1813: [21:35:22] <zippy> command line - git patch --add is the business!
1814: [21:35:29] <antmas> yeah I use the CLI too, just wondering if there are any issues with it and git really
1815: [21:35:50] <Ryan-Toast> It has colours for stuff that you haven’t commited/changed :3
1816: [21:36:03] <Kingy> +1 for phpstorm
1817: [21:36:06] <antmas> kewl
1818: [21:37:43] <vebb> phpstorm
1819: [21:37:43] <vebb> new
1820: [21:37:45] <vebb> nuu
1821: [21:37:54] <zippy> _harold: all magic now?
1822: [21:38:02] <antmas> vebb: ?
1823: [21:38:04] <_harold> just testing
1824: [21:38:17] <Kingy> sublime is also good
1825: [21:38:30] <vebb> ^
1826: [21:38:38] <vebb> ST3 with vintage mode
1827: [21:38:57] <_harold> allowed actions has to be public in 3.0.3
1828: [21:39:41] <antmas> I'm used to more IDE editors though, rather than just text editors like ST
1829: [21:39:56] * antmas spends most of his day in VS2013 :P
1830: [21:40:18] <zippy> _harold: yeap, it changed in 3.1 so changed that to public static $...
1831: [21:40:31] <Kingy> antmas: wtf you using VS for lol
1832: [21:40:40] <Kingy> you do C# dev as well?
1833: [21:40:40] <zippy> Kingy: he's a microsoft boy
1834: [21:40:57] <antmas> Kingy: :P I'm a .net dev
1835: [21:40:59] <Kingy> don't get me wrong I like C# as well and use VS often
1836: [21:41:21] <antmas> SS is like <20% of my typical work
1837: [21:41:39] <zippy> talking on irc take up the rest of the time?
1838: [21:41:53] <Kingy> oh really
1839: [21:41:56] <Kingy> haha
1840: [21:42:01] <antmas> zippy: hehe, same for all of us :D
1841: [21:42:04] <Kingy> what do you normally work on antmas?
1842: [21:42:31] <antmas> Kingy: we have a lot of big on prem database applications alll written in .net
1843: [21:42:38] <antmas> aka corporate apps
1844: [21:43:19] <antmas> I also do Sharepoint...
1845: [21:43:29] <antmas> ;__________________________________;
1846: [21:45:18] <zippy> looks like new iphone set to be announced sept 9th
1847: [21:45:33] <zippy> my old 4 is getting pretty old and slow now
1848: [21:45:57] * giarc quit (Quit: Leaving.)
1849: [21:46:15] <vebb> Kingy: I hate you. C# is gaaaaay
1850: [21:46:25] <vebb> Kingy: also, making native apps for OS X is damned easy and fun.
1851: [21:46:40] * nickmolhoek has joined #silverstripe
1852: [21:47:05] * giarc has joined #silverstripe
1853: [21:47:16] * giarc has left #silverstripe
1854: [21:47:52] * antmas quit (Ping timeout: 246 seconds)
1855: [21:48:31] <Ryan-Toast> Is it possible to update siteconfig rows in a page without too much hacking?
1856: [21:48:47] * gelignite quit (Quit: http://bit.ly/nkczDT)
1857: [21:50:00] <_harold> zippy: ok so I have the form submitting
1858: [21:50:06] <zippy> yay \o/
1859: [21:50:06] <_harold> the an email is fired off
1860: [21:50:14] <zippy> 13 hours in eh
1861: [21:50:41] <_harold> yup.... but where is the styling coming from
1862: [21:51:05] <_harold> like i said i have middleColumn div wrapped around my input fields
1863: [21:51:07] <zippy> _harold: could be two things
1864: [21:51:15] <zippy> You might have a Form.ss in your templates folder
1865: [21:51:30] <zippy> check yout theme folder for a Form.ss
1866: [21:51:38] <Kingy> love wednesdays
1867: [21:51:40] <Kingy> im still in bed
1868: [21:51:51] <zippy> http://s3-ec.buzzfed.com/static/2014-07/31/20/enhanced/webdr10/enhanced-buzz-12574-1406854343-22.jpg
1869: [21:51:52] <zippy> hahaa
1870: [21:52:29] <zippy> ah this is funny as -> http://www.buzzfeed.com/bradesposito/nz-bro
1871: [21:53:07] <_harold> I have FormHolder.ss but that doesn't look like it
1872: [21:54:27] <zippy> omg http://s3-ec.buzzfed.com/static/2014-08/4/0/enhanced/webdr05/enhanced-buzz-9555-1407124802-11.jpg (dies…!)
1873: [21:55:10] <_harold> lol
1874: [21:55:50] <Stomach> middlecolumn is default form layout for ss
1875: [21:56:04] <_harold> can i kill it
1876: [21:56:09] <zippy> _harold: yes! :)
1877: [21:57:15] <_harold> why do i get the impressions it's gonna be a huge job?
1878: [21:57:15] <Stomach> you need to copy the FieldGroup_holder and FormField_holder template files from framework/templates/forms into your themes/template/forms folder then change them
1879: [21:57:57] <zippy> ea or, http://pastie.org/9448819
1880: [21:58:16] <Kingy> man the Sean Bean AMA is pretty good
1881: [21:58:26] * Ryan-Toast has left #silverstripe
1882: [21:58:32] <zippy> _harold: You can create your own template, or in your page where you do $Form you can output the form yourself, like http://pastie.org/9448819 one (but use with $Form instead of with $ContactForm
1883: [21:59:32] <_harold> i think when I did my own form hardcoded it caused all of the issues I had earlier
1884: [22:00:56] <zippy> _harold: when I say output it your self, I don't mean write out <input something> yourself, but you can do like
1885: [22:01:10] * Ryan-Toast has joined #silverstripe
1886: [22:02:01] * vebb has joined #silverstripe
1887: [22:03:22] <zippy> _harold: http://pastebin.com/Y1TruyZg
1888: [22:04:31] <zippy> so you can access the fields yourself, with $Fields.dataFieldByName(Email) or $Fields.dataFieldByName(Whatever) when in the Form
1889: [22:06:45] <_harold> so if I want to remove the label I just literalyl remove that line?
1890: [22:06:55] <_harold> <label class="left" for="{$FormName}_Email">Email</label>
1891: [22:07:15] <zippy> yeap
1892: [22:08:40] <_harold> what is <% if $Message %>
1893: [22:09:00] <zippy> validation message
1894: [22:09:52] * antmas has joined #silverstripe
1895: [22:10:46] <_harold> how do i add a defalt value to the Email field
1896: [22:11:33] <zippy> _harold: use placeholder, and you can do TextField::create('Name')->setAttribute('placeholder', 'Name')
1897: [22:12:49] <_harold> i know placeholder is thml5 and the way to go where this site is old though they used value and jquery to clear the values
1898: [22:12:55] <_harold> i'll try placeholder though
1899: [22:13:11] <zippy> there is a placeholder jquery plugin for ie8
1900: [22:13:23] * cloph quit (Ping timeout: 240 seconds)
1901: [22:15:12] * cloph_away has joined #silverstripe
1902: [22:15:13] <_harold> something liek $Fields.dataFieldByName(Email)->setAttribute('placeholder', 'Name')
1903: [22:15:14] <_harold> ?
1904: [22:16:27] <zippy> _harold: no, in your controller where you set the TextFields for the forms you set it there
1905: [22:16:50] * simon_w quit (Quit: This computer has gone to sleep)
1906: [22:17:23] <_harold> ahh of course
1907: [22:18:27] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
1908: [22:19:53] * kerosene quit (Ping timeout: 240 seconds)
1909: [22:20:35] <ss23> zippy: FIX THE DOCS
1910: [22:21:30] <_harold> new TextField('Name')->setAttribute('placeholder', 'Your Name'),
1911: [22:21:37] <_harold> Parse error: syntax error, unexpected T_OBJECT_OPERATOR
1912: [22:21:57] <_harold> that's the correct way to do it isn't it?
1913: [22:22:18] <zippy> _harold: not quire, you can't call a function off the constructor (it's a php thing)
1914: [22:22:34] <zippy> _harold: use TextField::create() instead of new TextField
1915: [22:22:41] <irogue__> [09:41] <antmas> SS is like <20% of my typical work
1916: [22:22:50] <irogue__> but i bet we're a lot more fun than sharepoint communities :P
1917: [22:22:52] <zippy> otherwise, you have to do $field = new TextField('Name'); $field->something
1918: [22:23:07] <zippy> irogue: yea, you all meet and get sick
1919: [22:24:12] <irogue__> too much licking each other I guess
1920: [22:24:21] <zippy> O.o
1921: [22:26:04] <zippy> ss23: http://logs.simon.geek.nz/index.php?date=2013-03-14#log_934725 - hows that working out for you?
1922: [22:26:08] <irogue__> zippy: insideish joke. a little while back while ss23 was in japan, the entire rest of the support/ops team got sick at once and all had to go home. someone in the company sent a company-wide email saying "STOP LICKING EACH OTHER, SUPPORT FORT!"
1923: [22:26:12] <Stomach> irogue_, why you ping me last night
1924: [22:26:51] * zippy notes down, never to go back to the SS offices
1925: [22:27:08] * mobiusnz quit (Quit: Leaving.)
1926: [22:27:13] <irogue__> Stomach: http://logs.simon.geek.nz/index.php?date=2014-08-05#log_1363648
1927: [22:27:26] * mobiusnz has joined #silverstripe
1928: [22:27:33] <Stomach> oh
1929: [22:27:35] <Stomach> lol
1930: [22:27:53] <zippy> _harold: magic happening?
1931: [22:28:27] <ss23> zippy: The dream lives on
1932: [22:28:33] <ss23> zippy: You are the Avatar of the Docsification
1933: [22:28:47] <ss23> AND THEN HE BECAME zippy|writing_docs, DESTROYER OF TYPOS
1934: [22:29:57] <antmas> PRAISE BE TO zippy
1935: [22:30:03] <_harold> almost
1936: [22:30:55] <zippy> ss23: on your server, stealing your cpu cycles
1937: [22:30:57] <_harold> my pastes from earlier on just saved me
1938: [22:31:08] <_harold> I had lost some of my template code
1939: [22:31:25] <_harold> quicki thinking ... found it in paste
1940: [22:31:44] <zippy> paste bin, the new version contorl
1941: [22:32:46] <Kingy> is the workflow stuff available only as part of the CWP stuff or is it just a module?
1942: [22:33:09] <irogue__> Kingy: you mean advancedworkflow?
1943: [22:33:16] <irogue__> http://addons.silverstripe.org/add-ons/silverstripe/advancedworkflow
1944: [22:33:16] <antmas> ^^^ shudders
1945: [22:33:26] <Kingy> yeah lol
1946: [22:33:35] <Kingy> perfect for editors/sub-editors of articles really
1947: [22:33:44] <antmas> who decided to call it advanced? it has less features than the one it replaced o.O
1948: [22:33:59] <irogue__> antmas: but its harder to use :P
1949: [22:34:08] <irogue__> *advanced*
1950: [22:34:08] <antmas> irogue__: lol
1951: [22:34:15] <antmas> it's a nightmare
1952: [22:35:41] <zippy> ss23: http://doc.silverstripe.com/framework/en/changelogs/2.4.9 :(
1953: [22:36:27] <irogue__> zippy: http://doc.silverstripe.org/framework/en/2.4/changelogs/2.4.9
1954: [22:37:01] <zippy> http://doc.silverstripe.com/framework/en/changelogs/ links to the wrong place....
1955: [22:37:18] <zippy> irogue__: thanks, but I was just harassing ss23 - I KNOW he just sits at his desk brushing his hair all day :P
1956: [22:37:56] <irogue__> zippy: i'm not sure why that particular doc is missing there
1957: [22:38:21] <ss23> >.<
1958: [22:38:21] <ss23> PLS
1959: [22:38:53] <irogue__> zippy: feel free to fix it ;)
1960: [22:39:05] <_harold> zippy: I just had a beauty
1961: [22:39:13] <_harold> form <> from typo
1962: [22:39:15] * Colin[pi] has joined #silverstripe
1963: [22:39:26] <zippy> do I reallllyyyy want my first commit to SS to be a doc fix...
1964: [22:40:04] <zippy> _harold: so all good now?
1965: [22:40:08] * simon_w|air has joined #silverstripe
1966: [22:41:28] <_harold> nearly nearly
1967: [22:41:35] <_harold> a couple of styling issues still
1968: [22:41:47] <zippy> _harold: around what
1969: [22:43:48] <zippy> you can also do things like addClass on your fields to add css classes
1970: [22:43:52] <_harold> i'm just matching up the style of the form with the form i hard coded
1971: [22:44:00] <_harold> can i add a style to the submit button
1972: [22:44:28] <Kingy> zippy: you know we're raising $1000 for ss23 to cut his hair?
1973: [22:46:03] <zippy> _harold: sure
1974: [22:46:59] <_harold> is that also in the fieldlist
1975: [22:49:43] <zippy> no it's in the action list I belive
1976: [22:50:48] <zippy> FormAction::create("sasdsdfsdfsdf")->extraClass("foo")
1977: [22:51:04] <zippy> whatever you auction is there
1978: [22:51:07] <zippy> auction
1979: [22:51:12] <zippy> :(
1980: [22:52:40] <Colin[pi]> morning all!
1981: [22:52:52] <Kingy> hey Colin[pi]
1982: [22:52:58] <zippy> Colin[pi]: hi
1983: [22:56:52] <Colin[pi]> guys there is no such thing as a meta name="title" tag, right
1984: [22:57:25] <simon_w|air> Well, there's og:title
1985: [22:57:46] <Colin[pi]> but standard html it's just the <title> right?
1986: [22:57:55] <simon_w|air> Yup
1987: [22:58:20] <Colin[pi]> right
1988: [22:58:30] <Colin[pi]> because I have this SEO arseclown telling me there is
1989: [23:00:01] <Kingy> there are 3 chorus technicians standing on my doorstep and I don't know why lol
1990: [23:00:07] <_harold> zippy: I now have two Submit buttons
1991: [23:00:08] <Kingy> just chatting
1992: [23:00:08] <_harold> FormAction::create("Submit")->addExtraClass('winformsubmit')->addExtraClass('blue')
1993: [23:00:28] <Olliepop> #gigatownkingyshouse
1994: [23:00:42] <zippy> _harold: so that means you either a) have two form actions, or b) you also have a submit button in your template
1995: [23:00:43] <Kingy> Olliepop: haha I wish
1996: [23:00:48] <Kingy> I'll take the 100mbit for now :D
1997: [23:01:07] <simon_w|air> Kingy, you'll need more than 3 techs to get UFB hooked up :p
1998: [23:01:33] <Kingy> http://www.speedtest.net/my-result/3662720553
1999: [23:01:40] <zippy> [Tues 22:27:36] <harold__> guys this is my model controller -- coming up 13 hours now eh
2000: [23:02:16] <Kingy> simon_w|air: they actually did it pretty quick. They took ages to get phone working, but I don't care about that
2001: [23:03:02] <_harold> there is another form actino which is the action of the form
2002: [23:03:09] <_harold> the function
2003: [23:03:13] <zippy> _harold: yea, so set ya class on that
2004: [23:03:43] <zippy> Is it bad for a controller to extend Page_Controller, even if the page has no site tree model associated with it?
2005: [23:03:52] <Stomach> is there a way to make a page sorted at the top of the sitetree on create?
2006: [23:03:53] <_harold> new FormAction('doContactFormSubmit', 'Submit')
2007: [23:03:58] <_harold> that was my old way
2008: [23:04:14] <_harold> does that create two actions
2009: [23:04:36] <_harold> now I am doing:
2010: [23:04:48] <_harold> FormAction::create("doContactFormSubmit"), FormAction::create("Submit")->addExtraClass('winformsubmit')->addExtraClass('blue')
2011: [23:04:54] <_harold> and I get two submits
2012: [23:05:19] <zippy> _harold so just do FormAction::create("doContactFormSubmit")->addExtraClass('winformsubmit')->addExtraClass('blue')
2013: [23:06:12] <_harold> and that will add the class to my submit button?
2014: [23:06:26] * willr has joined #silverstripe
2015: [23:06:43] <zippy> Stomach: I think the order is determined by the Sort on the SiteTree table
2016: [23:07:23] <Stomach> zippy, yeah I'd like to set sort to 1 on a new record or something
2017: [23:07:30] <Stomach> but that seems like a horrible idea for performance
2018: [23:08:11] <zippy> yea it'd be better if you could change it so it sorted by Sort desc
2019: [23:08:24] <zippy> no.. that'd be weird
2020: [23:08:33] <Stomach> yeah I know :P
2021: [23:08:45] <Stomach> been thinking of a solution for an hour and getting nowhere
2022: [23:08:49] <Stomach> stupid account managers
2023: [23:08:54] <Stomach> "yeah sure we can do that"
2024: [23:08:55] <Stomach> >_<
2025: [23:09:01] <Stomach> account managers gonna client
2026: [23:09:25] <Colin[pi]> lol
2027: [23:09:53] <zippy> Stomach: actually, would doing Sort DESC work….. if you change the default sort on the Page.php ?
2028: [23:10:07] <_harold> I have one last styling issue to fix
2029: [23:10:15] <_harold> how do I get this to work:
2030: [23:10:16] <zippy> No that'd be weird, home would be at the bottom
2031: [23:10:16] <_harold> http://annecto.mindunit.com/home/win-2
2032: [23:10:23] <_harold> sorry
2033: [23:10:31] <_harold> child~:first
2034: [23:10:44] <zippy> mm?
2035: [23:10:51] <_harold> i have a field
2036: [23:11:04] <zippy> yes
2037: [23:11:10] <_harold> input[type="text"]:first-child
2038: [23:11:39] <zippy> ok
2039: [23:11:57] <_harold> or I should say in my hardcoded form the first field had first-child
2040: [23:11:59] <_harold> i didn't add it
2041: [23:12:11] <zippy> btw you can set a default value like TextField::create('Name', 'Name', 'MY value')
2042: [23:12:24] <_harold> the same form I am replicating with my custom tempate also needs the first-child
2043: [23:12:47] <_harold> ok
2044: [23:13:47] <zippy> just doing input[type="text"]:first-child would get you the first input on the page, so you'd want to do form input[type="text"]:first-child so you'd get the first child on all the forms - I think
2045: [23:13:50] <zippy> I not a css guru
2046: [23:14:04] <zippy> and for ss I just channel my inner simon_w
2047: [23:14:31] <_harold> i can't see how first:child works
2048: [23:14:40] <_harold> it's not in the raw css
2049: [23:14:51] <_harold> but when you inspect the element it's associated
2050: [23:18:08] <_harold> possibly my last question of the night
2051: [23:18:21] <zippy> I can't see it applied sorry, not sure what you mean
2052: [23:18:27] <_harold> my hardcoded template used $Theme.LowerCase
2053: [23:18:37] <_harold> to set the style
2054: [23:19:01] <_harold> if i want to use the same var in the controller when i add my classes
2055: [23:19:12] <_harold> $this->Theme.Lowercase ?
2056: [23:19:35] <_harold> $this->$Theme.LowerCase
2057: [23:21:53] <zippy> _harold: strtolower($this->ThemeDir()); I think
2058: [23:22:22] <antmas> damnit Katie
2059: [23:22:27] <antmas> I hate surverys!
2060: [23:22:32] <antmas> surveys*
2061: [23:25:48] <irogue__> bahaha
2062: [23:26:45] <ss23> antmas: :D
2063: [23:27:45] <Colin[pi]> I think I just absolutely pwned the seo guy my client is working with
2064: [23:27:59] <antmas> 'seo guy'
2065: [23:28:05] <Colin[pi]> ikr?
2066: [23:28:06] * antmas shudders
2067: [23:28:25] <Colin[pi]> send the client a great web page that says how meta name="title" doesn't exist, and that people who ask for it usually have no idea what they're talking about
2068: [23:28:50] <irogue__> yeah
2069: [23:29:15] <irogue__> I shamed a client's SEO guy too, was a great feeling
2070: [23:30:12] <Colin[pi]> irogue__: I've had him sending fucking 100s of emails to me the last few days about all the shit that's broken and needs to be fixed for SEO
2071: [23:30:14] <irogue__> "so.. all your SEO guy seems to be doing is putting stuff in meta tags. but meta title doesn't exist, meta keywords is ignored by google, and meta description is only used as a friendly page description for the *result* in google and doesn't affect indexing"
2072: [23:30:18] <Colin[pi]> me: "uh huh"
2073: [23:30:48] <Colin[pi]> irogue__: yep pretty much exactly what this guy is doing
2074: [23:30:51] <zippy> actually irogue__ ...
2075: [23:31:07] <irogue__> this was after the SEO guy complained cos I upgraded SS and it removed all the meta fields from the CMS
2076: [23:31:17] <Stomach> we use MetaTitle in our <title> tag if it exists on the page, so its actually helps :P
2077: [23:31:35] <simon_w|air> Stomach, that's not a <meta> tag
2078: [23:31:44] <zippy> the meta description is useful, because as you said it is shown sometimes in the google index, so a good description can get more clicks, and google takes that into account. If you are ranked 8 for a term, and people are clicking on your site more than a site ranked say 5 and people are staying on your site google will boost your rank
2079: [23:31:47] <Stomach> yeah I know :P
2080: [23:32:04] <irogue__> zippy: the answer then is to just put better actual content on the site ;)
2081: [23:32:04] <Colin[pi]> Stomach: yeah that's what I was trying to explain to this guy
2082: [23:32:28] <irogue__> google are slowly killing off all of the ability to override things like that, cos SEO cunts abuse it
2083: [23:32:29] <antmas> yeah relying on meta tags for SEO is not SEO
2084: [23:32:37] <Colin[pi]> oh and the other priceless thing? he bitched about how headings looked totally different between two pages
2085: [23:32:43] <Colin[pi]> it was because of how HE formatted them
2086: [23:33:04] <Colin[pi]> he inserted a <strong> inside a <h1>, and nested everything in an <ol>
2087: [23:33:24] <Colin[pi]> on the other page, it wasn't even a h1, it was a <p> with fucking styles applied to make it look like a heading
2088: [23:33:34] <Colin[pi]> Y U NO LOOK SIMILAR?
2089: [23:33:38] <Colin[pi]> arseclown
2090: [23:33:40] <irogue__> we should make a tumblr of stupid shit SEO people say/do
2091: [23:33:55] <Colin[pi]> is SEO a swear word?
2092: [23:34:05] <Colin[pi]> it should be simon_w|air ;P
2093: [23:34:06] <simon_w|air> How common is it in other words?
2094: [23:34:13] <Colin[pi]> mm not sure
2095: [23:34:24] <irogue__> probably not that common
2096: [23:34:47] <simon_w|air> Only 67 occurances in /usr/share/dict/words, mostly for sciencey words
2097: [23:34:52] <simon_w|air> Okay then
2098: [23:35:09] <irogue__> most devs know by now that the best SEO is to just actually put effort into content
2099: [23:35:53] <irogue__> if anyone ever asks me about SEO I tell them to spend their money on a good content writer instead
2100: [23:36:03] <simon_w|air> Decent, unique content and decent inbound links
2101: [23:36:18] <simon_w|air> The latter isn't something you can work on, so just do the former
2102: [23:36:39] <antmas> never pay for SEO, just do content
2103: [23:37:13] <antmas> when do we have to register to vote by?
2104: [23:38:00] <simon_w|air> antmas, aug 20 to get your easy vote pack
2105: [23:38:11] <simon_w|air> September 19 to be able to cast a special vote
2106: [23:38:45] <antmas> nice
2107: [23:38:58] <irogue__> yeah, I did a site for a small private tertiary institution
2108: [23:39:05] <irogue__> they were quoted $8000 for SEO
2109: [23:39:19] <antmas> wholey fuck
2110: [23:40:01] <irogue__> basically SEO companies are just modern scammers
2111: [23:40:09] <Stomach> adding pages which aren't in the sitetree but are indexable with actual good content about what stuff on the site means and is about is helpful too
2112: [23:40:15] <antmas> SEO and tax agents
2113: [23:40:17] <simon_w|air> antmas, anyway, just enrol now :p https://enrol.elections.org.nz/app/enrol/#/select-process
2114: [23:40:18] <Stomach> but you cant overdo it :\
2115: [23:40:18] <irogue__> they were already top of rankings for practically every search term people would actually use
2116: [23:40:23] <antmas> simon_w|air: already did :D
2117: [23:40:44] <irogue__> the SEO company just managed to find a bunch of really obscure terms and wrap quotes around them so they wouldn't come up
2118: [23:40:50] <irogue__> and said LOOK HOW BAD THINGS ARE
2119: [23:42:16] <simon_w|air> irogue__, silverstripe.org isn't top when searching for wordpress! Pay me money to fix it!
2120: [23:43:04] <simon_w|air> (easiest option: an ad. Most people can't tell the difference between promoted results and actual results)
2121: [23:44:01] <simon_w|air> http://logs.simon.geek.nz/stats.php#seo
2122: [23:44:11] <simon_w|air> Tut tut r3v3rb
2123: [23:44:30] <irogue__> I told them to make a blog instead and have their students write blog posts on the topic that school teaches
2124: [23:46:03] <irogue__> a month later at enrolment time they already had people saying "I saw a blog post a friend shared on facebook..." as to how they learnt about the school
2125: [23:47:02] <simon_w|air> Turns out organic sharing by students is a lot better than mass advertising. Who'd thunk it?
2126: [23:48:13] <simon_w|air> What does ss23 want? http://logs.simon.geek.nz/index.php?date=2013-07-15#log_985193
2127: [23:49:16] <zippy> _harold: hows it going?
2128: [23:49:29] * babak quit (Quit: Connection closed for inactivity)
2129: [23:49:32] <zippy> heh
2130: [23:50:29] <ss23> hahaha
2131: [23:52:31] * simon_w|air should probably go pack or something
2132: [23:52:36] <ss23> Where for?
2133: [23:52:42] <ss23> simon_w|air: Are you married yet?
2134: [23:52:43] <_harold> i think I am nearly there
2135: [23:52:50] <_harold> just my success part to do
2136: [23:52:54] <simon_w|air> Home! And nope.
2137: [23:52:59] <ss23> awww kk
2138: [23:53:23] * simon_w|air totally snobbed antmas at BurgerFuel
2139: [23:53:28] <ss23> woah what
2140: [23:53:33] <ss23> simon_w|air: wanna get lunch together today? <3
2141: [23:53:57] <simon_w|air> ss23, you'll have to get yourself out to the airport
2142: [23:54:12] <ss23> 2lazy4me
2143: [23:54:46] <simon_w|air> Mmm, L&P chocolate
2144: [23:54:58] <simon_w|air> Almost as good as 100s & 1000s
2145: [23:55:01] <antmas> simon_w|air: :|
2146: [23:55:28] <simon_w|air> antmas, we then went and spent $2000 at one shop!
2147: [23:55:50] <simon_w|air> (Well, $1440 up front, another $600 in September)
2148: [23:56:04] <zippy> ring?
2149: [23:56:13] <simon_w|air> Two of them, yeah
2150: [23:56:33] <simon_w|air> Mine's going to be custom made and everything!
2151: [23:56:42] <ss23> I'd be such a poor husband
2152: [23:56:52] <antmas> simon_w|air: is that extra $600 the reason why you were asking Colin[pi] for a job? ;)
2153: [23:56:53] <ss23> "Fuck rings yo that shit costs money and material goods are stupid"
2154: [23:57:13] <simon_w|air> antmas, that's because Caitlin's unemployed :p
2155: [23:57:26] <simon_w|air> Colin[pi] can't afford this slab of meat!
2156: [23:57:34] <Colin[pi]> that's true :(
2157: [23:57:37] <antmas> :P
2158: [23:57:47] <Colin[pi]> simon_w|air is prime rump
2159: [23:58:04] <ss23> I think Colin[pi] might be cannibal
2160: [23:58:04] * antmas is veal
2161: [23:58:22] <Colin[pi]> :o
2162: [23:58:43] * Liquide has joined #silverstripe
2163: [23:58:50] * spronk quit (Quit: Leaving)
2164: [23:59:33] <antmas> oh great, now Sharepoint decided to work
2165: [23:59:38] <antmas> \o/
2166: [23:59:49] <Colin[pi]> antmas: admit it, you love it
2167: [23:59:58] <Colin[pi]> antmas is totally gay for sharepoint
2168: [23:59:59] <Colin[pi]> ;D

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