#silverstripe IRC Log

IRC log for 5 November 2013

All timestamps are in UTC.

1: [00:02:13] * DaShiVaDan has joined #silverstripe
2: [00:03:02] <DaShiVaDan> Anyone familiar with basic silverstripe twitter integrations?
3: [00:07:35] * pippy_ has joined #silverstripe
4: [00:09:41] * pippy quit (Ping timeout: 272 seconds)
5: [00:14:19] * mobiusnz`home quit (Quit: Leaving.)
6: [00:14:28] * SightUnseen has joined #silverstripe
7: [00:14:42] * SightUnseen has left #silverstripe
8: [00:16:57] * pippy_ quit (Ping timeout: 240 seconds)
9: [00:17:31] <Pyromanik> DaShiVaDan: define basic?
10: [00:18:55] * pippy has joined #silverstripe
11: [00:21:09] <Colin[pi]> heyyyy firefox crashed! must be 20 past the hour
12: [00:21:33] <AlphaCactus> lol. its not that unstable for me anymore
13: [00:21:45] <Colin[pi]> been crashing more often lately for me :\
14: [00:22:54] <AlphaCactus> any unruly plugins?
15: [00:23:12] <Colin[pi]> dont think so
16: [00:23:26] * DigNZ has joined #silverstripe
17: [00:25:49] <DaShiVaDan> ahh sorry, was afk, nevermind the twitter thing, i decided to leave it to the next developer
18: [00:26:25] <DaShiVaDan> current site i am working on has an old basic twitter integration, but it works on twitter 1.0 and the only 1.1 supporting plugin i can easily find is for 3.0+ but i have 3 more days here, so i'll leave it to teh next guy.
19: [00:26:46] <DaShiVaDan> Pyromanik: thanks anyhows :)
20: [00:27:03] * antmas has joined #silverstripe
21: [00:28:49] <Pyromanik> DaShiVaDan: just use JS these days. All you need is a twitter account. Use the companies one.
22: [00:29:08] <Pyromanik> 13:22 < AlphaCactus> any unruly plugins?
23: [00:29:08] <Pyromanik> 13:23 < Colin[pi]> dont think so
24: [00:29:11] <Pyromanik> definitely.
25: [00:29:41] <Pyromanik> (a plugin's fault)
26: [00:30:33] * guzzlefry has left #silverstripe
27: [00:32:17] <ss23> I don't know how I haven't listened to Amon Amarth before
28: [00:32:23] * ss23 headbangs antmas
29: [00:32:30] <marvanni> SS_HTTPRequest::getIP(); should be globally accesible..... coping the method too often...
30: [00:32:40] <antmas> ss23: ;__;
31: [00:32:55] <ss23> :D
32: [00:32:57] <antmas> Viking metal!
33: [00:33:11] <DaShiVaDan> Pyromanik: exactly. I don't feel like contacting the client, getting them to create an appropriate account that they want used (which they want to do after the code is finished...), and waiting days for that to progress. And using our own twitter account then having them transfer it later, etc, just a hassle, i'll leave it to teh next guy cause it's pretty simple, but easier to work with if you do it yourself
34: [00:33:50] * antmas is currently listnening to Inquisition's latest album
35: [00:34:17] * UncleCheese has joined #silverstripe
36: [00:34:25] <ss23> antmas: Is good?
37: [00:35:34] <antmas> ss23: tis good, http://www.youtube.com/watch?v=W5LZNHEHwg4 awesome riffs and loads of black metal cliches
38: [00:36:52] <ss23> ohhh
39: [00:36:53] <ss23> the 240p
40: [00:36:54] <ss23> hurts
41: [00:37:12] * mobiusnz`home has joined #silverstripe
42: [00:37:35] <ss23> "Play song next"
43: [00:37:35] <ss23> yay
44: [00:37:39] <ss23> they're on Google Music
45: [00:37:40] <ss23> :D
46: [00:37:57] <antmas> ah, linked the wrong upload :(
47: [00:38:08] <antmas> but yeh, G music has em
48: [00:44:43] <ss23> Might take a while to get used to the vocals, antmas
49: [00:45:25] <antmas> ss23: yeah, not for everyone
50: [00:45:35] <antmas> I call it the 'frog corak'
51: [00:45:37] <antmas> croak*
52: [00:53:19] <DaShiVaDan> can anyone recommend me a good music manager for my android samsung galaxy s4 (android 4.2) - I just want to basically manage a folder of music on my phone i can play (preferably with playlists), but the Samsung Kies for Windows 7 just put a random ~10gb allocation of my 120gb of music (I used to have an iPhone and do it thru iTunes) and it's being a nasty mess to just put music i wanna listen to on my phone quickly and e
53: [00:53:44] <antmas> hmmmmm
54: [00:54:10] <antmas> for anything music I use PowerAmp
55: [00:54:31] <antmas> and if the effn thing ever succesfuly connects to my PC, I just drag and drop :D
56: [00:54:46] <DaShiVaDan> lol sounds good, i'll give it a shot when i get home, thanks :)
57: [00:54:57] * mobiusnz`home quit (Quit: Leaving.)
58: [00:55:00] <antmas> GS3 here though, on 4.2
59: [00:55:08] <antmas> and PowerAmp is paid
60: [00:55:26] <DaShiVaDan> unless it's a ton, i don't mind paying for quality apps :)
61: [00:55:47] <antmas> I think it actually also scours the net for the album art if you don't already have it
62: [00:56:12] * toebu has joined #silverstripe
63: [00:56:15] <antmas> but the playlist stuff is very easy to use. I just drag album folders onto my phone and it sorts it out itself
64: [00:56:50] <antmas> Samsung Kies is the spawn of the devil
65: [00:58:11] * DesignerX quit (*.net *.split)
66: [00:58:11] * nickmolhoek quit (*.net *.split)
67: [00:58:11] * Colin[pi] quit (*.net *.split)
68: [00:58:16] <DaShiVaDan> yeah i only got teh android recently, it's my first, i keep forgetting that i can use it like a real device, was too used to the iphone I had previously (4s, but it had 64gig of storage, this has half that) and before that I hung onto a non-smartphone for teh longest time :P but yeah I can just plug it in and access it as an external storage and it'll sort it out from there, playlists aside.
69: [00:58:27] * Colin[pi] has joined #silverstripe
70: [00:58:51] <Pyromanik> DaShiVaDan: nah, I mean use the company you work for (not the client).
71: [00:58:57] <Pyromanik> you only need an account, it can be any account.
72: [00:59:06] * DesignerX has joined #silverstripe
73: [00:59:41] <DaShiVaDan> Pyromanik: oh, really? I can use a generic account to run twitter implementation for multiple client sites? (I'll admit, I kinda stopped looking into it when I decided to hand it off :P)
74: [00:59:42] * nickmolhoek has joined #silverstripe
75: [01:00:20] * guzzlefry has joined #silverstripe
76: [01:02:02] <antmas> ffffffffffffffffff
77: [01:03:11] <guzzlefry> 0.o
78: [01:03:32] * mobiusnz`home has joined #silverstripe
79: [01:10:13] <marvanni> \"admin/reports/SideReport_RecentlyEdited/\"
80: [01:10:23] <marvanni> that are weird links in report admin?
81: [01:26:39] * VOverdose has joined #silverstripe
82: [01:33:13] * VOverdose quit (Ping timeout: 250 seconds)
83: [01:47:39] <Ryan-Toast> If I have a belongs_to do I have to have a has_one of the parent?
84: [01:51:17] <marvanni> many_many
85: [01:51:59] <DaShiVaDan> from what I know (not a whole lot) all has_one and has_many should have recropical has_one and has_many entries - velongs_to also needs a has_one recropical
86: [01:52:21] <DaShiVaDan> search this page for belongs_to: http://doc.silverstripe.com/framework/en/topics/datamodel
87: [01:52:30] <marvanni> sry im wrong
88: [01:52:37] <marvanni> many_many <> belongs_many_many
89: [01:53:36] <marvanni> your right
90: [01:53:45] <marvanni> One-to-zero relationship defintion. This is a map of component name to data type. In order to turn this into a
91: [01:53:51] <marvanni> true one-to-one relationship you can add a {@link DataObject::$belongs_to} relationship on the child class.
92: [01:54:04] <marvanni> Note that you cannot have a has_one and belongs_to relationship with the same name.
93: [01:54:08] <marvanni> check dataobject.php
94: [01:56:34] <antmas> w00t Thor 2 tonight
95: [01:57:31] <guzzlefry> question!
96: [01:57:44] <guzzlefry> Can you pass an entire dataobject to a template function call?
97: [01:58:10] <marvanni> what do you mean?
98: [01:58:40] <marvanni> function SomeDB() {return DataObject::get_one();}
99: [01:58:50] <marvanni> or in template $me
100: [02:00:00] <guzzlefry> $me
101: [02:00:14] * SightUnseen has joined #silverstripe
102: [02:01:40] <Ryan-Toast> I tried that, but then I get a drop down for the parent. I want this to eve populated automatically.
103: [02:03:40] * SightUnseen has left #silverstripe
104: [02:07:16] <guzzlefry> [User Error] Uncaught Exception: Object->__call(): the method 'fortemplate' does not exist on 'OrderLine'
105: [02:08:44] <guzzlefry> Trying to load up a form.
106: [02:12:04] <marvanni> $me will indeed render fortemplate(), but you will need to add it to your dataobject
107: [02:12:32] <guzzlefry> oh
108: [02:12:37] <guzzlefry> that's why it's messing up.
109: [02:12:47] <marvanni> return $this->renderWith($templates);
110: [02:13:17] <guzzlefry> marvanni: I don't want to actually render it. I just need to pass it to my method so I can set some fields on my form.
111: [02:13:34] <guzzlefry> $CartController.LoadedSetQuantityForm($Me)
112: [02:13:37] <guzzlefry> Doing that in template
113: [02:14:04] <marvanni> hm, i don't think thats gonna work..
114: [02:14:30] <marvanni> you can try passing $ID, but I would try to put the logic in your controller
115: [02:17:36] <guzzlefry> that was my preferred method
116: [02:17:40] <guzzlefry> but I couldn't figure that out
117: [02:17:44] * travis-ci has joined #silverstripe
118: [02:17:44] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1500 (3.1 - e161439 : Hamish Friedlander): The build passed.
119: [02:17:44] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/70c23f37de3a...e16143934077
120: [02:17:44] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13503435
121: [02:17:44] * travis-ci has left #silverstripe
122: [02:20:17] * bob__ quit (Quit: Page closed)
123: [02:20:17] * UncleCheese quit (Quit: UncleCheese)
124: [02:26:12] * UncleCheese has joined #silverstripe
125: [02:29:49] <guzzlefry> weee
126: [02:29:53] <guzzlefry> cart page is finished
127: [02:30:52] <Colin[pi]> yay
128: [02:31:44] <antmas> nice guzzlefry
129: [02:32:07] <antmas> guzzlefry: so you haven't (yet) gone insane from attempting to build your own ecomm module?
130: [02:32:30] <guzzlefry> I think you mean "haven't yet gone (more) insane)
131: [02:32:32] <guzzlefry> "
132: [02:32:51] <guzzlefry> It wouldn't be so bad if I wasn't supposed to have this finished by tonight.
133: [02:32:53] <antmas> the last guy I knew who attempted it, quit IT.
134: [02:33:00] <guzzlefry> Which probably isn't going to happen. :P
135: [02:33:13] <guzzlefry> antmas: ecomm module specific to SS?
136: [02:33:26] <antmas> guzzlefry: kidding, but he did lose a part of his soul
137: [02:33:29] <antmas> yeah SS
138: [02:34:24] <guzzlefry> Wish I had more time to test this as well.
139: [02:35:03] <antmas> guzzlefry: how did you manage to get such an extension? :P I thought it was due 3 weeks ago
140: [02:37:38] * pippy_ has joined #silverstripe
141: [02:41:08] * pippy quit (Ping timeout: 268 seconds)
142: [02:43:25] * iamss has joined #silverstripe
143: [02:47:07] <guzzlefry> antmas: lots of overdue projects
144: [02:47:19] <guzzlefry> and I was given near impossible deadlines :P
145: [02:47:30] * guzzlefry checks the original quote.
146: [02:48:06] <Pyromanik> guzzlefry: why no swipestripe?
147: [02:49:36] <antmas> yeah that sucks
148: [02:49:37] <guzzlefry> Pyromanik: Doubt it would have worked. Required a specific payment processor, already existing Silverstripe install, needed to integrate with already existing data objects, also need pay-per-view stuff.
149: [02:49:46] <Pyromanik> ah
150: [02:49:48] <Pyromanik> sucks.
151: [02:49:50] <Pyromanik> also
152: [02:50:01] <iamss> hi guys! is there an easy way to get members where privilege is administrator?
153: [02:50:05] <Pyromanik> specific payment processor: use payments module and implement an interface for it.
154: [02:50:17] <guzzlefry> ah
155: [02:50:20] <Pyromanik> iamss: see members section of api.
156: [02:50:35] <irogue23> Pyromanik!
157: [02:51:16] <Pyromanik> irogue23!
158: [02:51:30] <Pyromanik> iamss: http://api.silverstripe.org/2.4/class-Group.html
159: [02:51:57] <irogue23> Pyromanik: i think you would've enjoyed my last 4 days - http://iforce.co.nz/i/ixo321hs.wlf.jpg
160: [02:52:05] <Pyromanik> DataObject::get('Group', "Name = $name")
161: [02:52:28] <Pyromanik> if($group && $group->exists()) $memebers = $group->Members()
162: [02:52:41] <Pyromanik> or if you have a member, $member->inGroup('groupname')
163: [02:52:45] * pippy has joined #silverstripe
164: [02:52:58] <antmas> irogue23: there is almost nothing on that table I could even let get close to my mouth :P
165: [02:53:09] <Pyromanik> not even the jagers?
166: [02:53:23] <antmas> Pyromanik: I'm not 17
167: [02:53:26] <antmas> XD
168: [02:53:33] <EasyCo> andylockran: Liar
169: [02:53:35] <Pyromanik> 17yo's drink jagers?
170: [02:53:37] <EasyCo> antmas: Liar
171: [02:53:49] <Pyromanik> yeah, gosh, SUCH A LIAR
172: [02:53:56] <antmas> haha
173: [02:54:01] <irogue23> there's one bottle missing from the table there cos it was leaking
174: [02:54:11] <EasyCo> Every single one of those drinks would have been in, on and around you mouth.
175: [02:54:12] <Pyromanik> What's in the gun irogue23 ?
176: [02:54:13] <antmas> replace it all with whiskey!
177: [02:54:16] <irogue23> noone else wanted it so i ended up pretty much having it myself
178: [02:54:18] <Pyromanik> EasyCo: hahahahahaa
179: [02:54:20] <Pyromanik> my man!
180: [02:54:23] <irogue23> so yeah, shots of sambuca...
181: [02:54:35] <irogue23> Pyromanik: 10 year old rum
182: [02:54:37] <Pyromanik> oh, not such a fan of sambuca
183: [02:54:41] <Pyromanik> sambucca*?
184: [02:54:44] <Pyromanik> irogue23: nice.
185: [02:54:46] <Pyromanik> pirate rum.
186: [02:54:53] <irogue23> yup
187: [02:54:55] <antmas> +1 for sambucca
188: [02:54:57] <irogue23> aged in whiskey barrels or someshit
189: [02:54:58] <antmas> actually not bad
190: [02:55:05] <irogue23> antmas: yeah, was good
191: [02:55:10] <irogue23> dunno what everyone else was on about
192: [02:55:12] * pippy_ quit (Ping timeout: 252 seconds)
193: [02:55:15] <irogue23> they're all OMG SO DISGUSTING
194: [02:55:48] <antmas> my last leaving party involved way too much chartruse (spelling)?
195: [02:55:57] <antmas> instavomit
196: [02:56:09] <Pyromanik> antmas: yeah but that's always like that
197: [02:56:09] <irogue23> i made some punch at the start of saturday night that was about 40% OJ, 40% Apple Juice and 20% vodka
198: [02:56:17] <Pyromanik> it's more like SHARTruse.
199: [02:56:19] <irogue23> as the night went on and i got drunker, the mix started changing
200: [02:56:54] <Pyromanik> so irogue23, I handed in notice :D
201: [02:57:04] <Pyromanik> shit's gett'n real.
202: [02:57:15] <irogue23> by the end of the night apparently (according to a semi-sober person) it was 20% OJ, 20% sprite, and the rest a mix of vodka, rum & tequila
203: [02:57:32] <antmas> Pyromanik: were you on good coin at the last/current place?
204: [02:57:38] <irogue23> i... don't remember a fair chunk of that night
205: [02:57:54] <irogue23> Pyromanik: nice
206: [02:58:02] <irogue23> Pyromanik: gonna write my c++ now? :P
207: [02:58:28] * EasyCo quit (Ping timeout: 245 seconds)
208: [02:58:28] <Pyromanik> antmas: yeh, but so many debts it's sadface.
209: [02:58:33] <Pyromanik> I don't see much of it :<
210: [02:59:00] <Pyromanik> irogue23: sif.
211: [02:59:04] <Pyromanik> you keep your threading.
212: [03:00:07] <Colin[pi]> MOFOING CLIENTS
213: [03:00:15] <guzzlefry> oh snap
214: [03:00:27] <Colin[pi]> been waiting for two weeks for something... sent email today to check progress
215: [03:00:34] <Colin[pi]> "I don't recall promising that"
216: [03:00:41] <Colin[pi]> GOT THE EMAIL RIGHT HERE FOO
217: [03:00:49] <ss23> lol
218: [03:00:58] <Colin[pi]> gah
219: [03:01:38] <ss23> Finally replaced the audio bell in terminal with visual one
220: [03:01:43] <ss23> My life isn't full of terror anymore
221: [03:01:44] <ss23> :D
222: [03:02:01] <irogue23> ss23: woohoo https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash3/993444_543391479076742_852358866_n.jpg
223: [03:02:13] <ss23> haha
224: [03:02:15] <ss23> what even
225: [03:02:36] <guzzlefry> Colin[pi]: That's why you reply from the email where it is promised. :P
226: [03:02:54] <Colin[pi]> YES!
227: [03:03:22] <ss23> I once got a reply being like "hi can you answer these questions"
228: [03:03:32] <ss23> I was so fucking tempted to just reply "Hi, please refer to the previous email"
229: [03:03:39] <Pyromanik> guzzlefry: some clients are such a special breed of stupid that they don't even check below to see what the fuck was actually said prior.
230: [03:03:40] <ss23> THE ONE YOU REPLIED TO
231: [03:05:25] * mobiusnz`home quit (Quit: Leaving.)
232: [03:07:01] * Oishi has joined #silverstripe
233: [03:08:41] <antmas> I wish there was a script to tell everyone's email client to switch the inbox view to conversation mode
234: [03:08:49] <antmas> = solving all the problems
235: [03:09:01] <antmas> YOU CAN'T HIDE!
236: [03:09:14] <Colin[pi]> LOL fwd'ed email where client promised... just got reply "My apologies"
237: [03:09:16] <Colin[pi]> HA HA
238: [03:09:35] <Colin[pi]> dat feel
239: [03:10:04] <antmas> Colin[pi]: win
240: [03:10:28] <Oishi> Conversation mode is healla buggy in outlook 2010 :(
241: [03:10:33] <Colin[pi]> because they were angry at me, thinking it was my delay... NOPE
242: [03:10:35] <Colin[pi]> ;D
243: [03:10:54] <antmas> Oishi: yeah it is, seems fine so far in 2013
244: [03:11:31] <Oishi> did they fix that weird thing where it thinks all 'RE: ' emails are from a single person?
245: [03:11:42] <Oishi> Should see if I can nag IS to upgrade me :P
246: [03:12:03] <antmas> Oishi: as far as I can tell, yes
247: [03:12:09] <Oishi> nice :)
248: [03:12:50] * mobiusnz`home has joined #silverstripe
249: [03:12:53] <antmas> Oishi: I remember replying to a bunch of people I shouldn't have simply because of that :P
250: [03:13:38] <antmas> O2010 - "oh you want to reply?" - SEND TO ALL STAFF MEMBERS IN MULTIPLE CONTINENTS
251: [03:13:54] <Oishi> lolol, 'and your friends that you emailed once arranging lunch, and your mootheer'
252: [03:14:09] <antmas> ALL THE PEOPLE!
253: [03:14:33] <Oishi> Lol :P
254: [03:14:50] * EasyCo has joined #silverstripe
255: [03:15:33] <Oishi> In changing page types, custom admin fields are tied to the previous version right? So if you change from Foo to Bar, even though Bar has the same fields, they will be blank unless the page has previously been a Bar
256: [03:15:40] <antmas> ss23: does anyone refer to Jean-Fabian as 'John Faybian'?
257: [03:15:50] <antmas> I can't help read it in a super french accent
258: [03:15:51] <antmas> :p
259: [03:17:15] <ss23> hahaha
260: [03:17:21] <ss23> idk man
261: [03:17:26] <ss23> We all pronounce it with an account
262: [03:17:27] <ss23> accent
263: [03:17:28] <ss23> :P
264: [03:17:34] <antmas> rofl
265: [03:17:50] <Pyromanik> Wholey fuck I just WON THE PRIZE BATMAN
266: [03:17:58] <Pyromanik> turns out
267: [03:18:02] <irogue23> o_O
268: [03:18:08] <Pyromanik> border-spacing: HORIZONTAL VERTICAL
269: [03:18:11] <Pyromanik> w00t
270: [03:18:25] <antmas> lolwut?
271: [03:18:38] <irogue23> Pyromanik is jizzing over some CSS
272: [03:18:49] <Pyromanik> well when you width: 100% and then border: 1em, it tends to be a bit more than 100%
273: [03:18:53] <Pyromanik> so I fixed it.
274: [03:18:57] <Pyromanik> WITHOUT css3
275: [03:19:23] <Pyromanik> Columnification bitches, while keeping semantics.
276: [03:19:34] <ajmitch> sounds like box-sizing
277: [03:19:47] <Pyromanik> fuck your box-sizing, this is how a bawss does it.
278: [03:19:55] <Pyromanik> xD
279: [03:20:23] <irogue23> http://www.nzherald.co.nz/business/news/article.cfm?c_id=3&objectid=11151833
280: [03:20:26] <irogue23> damn son
281: [03:20:56] <antmas> was just about to say box-sizing
282: [03:21:33] <antmas> irogue23: jesus
283: [03:21:49] <Oishi> Xero's designs are awesome
284: [03:21:50] * EasyCo quit (Ping timeout: 264 seconds)
285: [03:21:56] <antmas> I remember getting otp with Rod during a conference in Nelson
286: [03:21:59] <Pyromanik> rofl, shitface fucking clueless reporters.
287: [03:22:05] <antmas> was only 8 people in the conference :P
288: [03:22:05] <Pyromanik> "Facebook billionaire"
289: [03:22:27] <Pyromanik> he angel invested, but was already rich as fuck because he made paypal.
290: [03:22:43] <antmas> Pyromanik: who Rod?
291: [03:22:52] <Pyromanik> no, Peter Thiel.
292: [03:22:57] <antmas> ah
293: [03:22:58] <antmas> yeh
294: [03:23:10] <Pyromanik> article makes him sound like he invented the facebooks.
295: [03:23:31] <Pyromanik> He's associated with, but not really responsible for.
296: [03:25:16] <Pyromanik> but still, xero from 3b to 4b in 3 weeks...
297: [03:25:24] <Pyromanik> :< wish I had monies to invest.
298: [03:25:51] <irogue23> http://goo.gl/OAo92b
299: [03:25:57] <irogue23> that's quite some chart
300: [03:26:02] <Oishi> is there a way to use the overwrite the $has_many from a child page?
301: [03:26:17] <Oishi> looks bubbleish
302: [03:27:35] * EasyCo has joined #silverstripe
303: [03:32:22] <antmas> $33 is a lot
304: [03:32:25] <antmas> a LOT
305: [03:36:39] * antmas has never used Google Finance
306: [03:36:44] <antmas> actually kinda neat
307: [03:36:49] <Pyromanik> Tasty?
308: [03:37:35] <Pyromanik> irogue23: why it only charts today?
309: [03:38:38] <Pyromanik> Oishi: no idea what you mean.
310: [03:38:41] * Bollig|DesignCty has joined #silverstripe
311: [03:38:50] <Pyromanik> if you mean to re-define a has_many, it might work.
312: [03:38:58] <Pyromanik> but... seems dodgy
313: [03:38:58] <Oishi> It doesn't appear to be
314: [03:39:02] <Pyromanik> good
315: [03:39:07] <Pyromanik> you're fucking your heirarchy.
316: [03:39:21] <Pyromanik> best to re-evaluate it.
317: [03:39:29] <Pyromanik> LSP
318: [03:39:55] <Pyromanik> http://en.wikipedia.org/wiki/Liskov_substitution_principle
319: [03:40:05] * DigNZ quit (Quit: DigNZ)
320: [03:40:56] <antmas> LSP?
321: [03:40:57] <antmas> http://adventuretime.wikia.com/wiki/Lumpy_Space_Princess
322: [03:41:32] * antmas quit (Quit: Page closed)
323: [03:41:53] <Pyromanik> yeah nah.
324: [03:42:36] <Oishi> Yeah I thought I was being insulted until the wiki link :P
325: [03:44:10] <Pyromanik> nope, just being told to design your application better :P
326: [03:44:21] <Oishi> fair enough
327: [03:45:07] <Oishi> But as far as I understand it, each page type that is inherited, creates a DB table with the same name, and adds the fields there
328: [03:45:36] <Oishi> So usually it's like Site_tree > Page > Homepage
329: [03:47:51] <Oishi> If both page and homepage have $has_one(Photo), when $Photo is called, shouldn't it return the homepages field?
330: [03:52:47] <Pyromanik> yes, if it's defined on homepage.
331: [03:53:26] <Pyromanik> if it's defined on page the field will be on the page table.
332: [03:54:03] <Pyromanik> homepage will also have a photo, because it's also a page.
333: [03:54:31] * Oishi quit (Quit: Page closed)
334: [03:54:33] <Pyromanik> if you're defining photo on both page and homepage, you're doing it wrong.
335: [03:55:15] <Pyromanik> and it's also redundant, as the relation is to the instance, not the class type.
336: [03:55:35] <Pyromanik> ie, 2 homepages can have 2 images assigned without conflict.
337: [03:58:07] <Ryan-Toast> Is having more than 10 loops on a page bad practise?
338: [03:58:17] <Ryan-Toast> In a view**
339: [04:02:17] * nickmolhoek quit (Quit: nickmolhoek)
340: [04:02:34] * mobiusnz`home quit (Quit: Leaving.)
341: [04:04:23] <Pyromanik> nah, not really
342: [04:04:30] <Pyromanik> depends what you're doing.
343: [04:04:42] <Pyromanik> I'd probably look to see if there's an easier to achieve what you're doing.
344: [04:04:56] <Pyromanik> but if you're happy with it then let it fly.'
345: [04:04:59] * Pyromanik quit (Quit: leaving)
346: [04:05:17] <EasyCo> If Dunaden comes in first… i swear!!!
347: [04:07:11] <DaShiVaDan> heyas
348: [04:08:04] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
349: [04:08:10] <DaShiVaDan> please don't shoot me for this - not my doing - one of the guys here has added a wordpress news blog to a SS site, putting it in site.com/news/ - I just need to modify to allow that url to work (I know the news should be done within SS - not an option unfortunately)
350: [04:08:23] <DaShiVaDan> (SS 2.4)
351: [04:10:47] * Bollig|DesignCty has joined #silverstripe
352: [04:12:15] * Ryan-Toast quit (Quit: Ryan-Toast)
353: [04:17:35] <Colin[pi]> DaShiVaDan: .htaccess rule?
354: [04:17:55] <iamss> question guys! what is the correct way of using the DataObjectSet->sort('FieldName', 'ASC') ??
355: [04:18:29] <iamss> I tried using $members = DataObjectL::get('Member'); $members->sort('Email');
356: [04:18:38] <iamss> but with the code above returns nothing
357: [04:21:12] <DaShiVaDan> can you dump $Members after you get it for debugging?
358: [04:21:47] <DaShiVaDan> to ensure it's returning the data structure you need to run $Members->sory( 'Email') on? and you do have something to display them after sorting them, right?
359: [04:22:19] <iamss> alright got it!
360: [04:22:21] <DaShiVaDan> also, if you are logged in as admin, you can run ?showqueries=1 to see what it is actually running (may need to add &isDev=1 also if site is not in dev mode)
361: [04:22:23] <DaShiVaDan> oh, sweet :)
362: [04:23:13] <DaShiVaDan> can you then perhaps tell me how to modify my .htaccess (and which one and where) so that instead of being redirected to http://www.domain.com/news/?url=/news it actually serves the index in http://www.domain.com/news when I go there?
363: [04:23:51] <DaShiVaDan> I've got: RewriteCond %{REQUEST_URI} ^/news(.*)$ and then RewriteRule ^/news.* - [L] in the root .htaccess, but no dice
364: [04:29:18] <DaShiVaDan> Colin[pi]: http://codepad.viper-7.com/BpdF60 is my current root .htaccess with some notes
365: [04:31:52] <ss23> DaShiVaDan: Instead of adding the news URL as its own thing, instead, make it a not on the last rule
366: [04:32:01] <ss23> DaShiVaDan: .e.g. "only do the default ss handing if the url doesn't contain news"
367: [04:32:11] <DaShiVaDan> ss23: oh yeah of course, thanks :)
368: [04:32:18] * DaShiVaDan is low on caffiene
369: [04:36:15] * UncleCheese quit (Quit: UncleCheese)
370: [04:50:25] <DaShiVaDan> ss23: actually ended up just remembering how to write .htaccess files, all sorted now :) thanks tho, reminded me of the thing i'd forgotten heh
371: [04:50:47] <ss23> sweet :D
372: [04:51:49] * cameron_ has joined #silverstripe
373: [04:52:01] * cloph_away has joined #silverstripe
374: [04:52:13] * cloph quit (Ping timeout: 245 seconds)
375: [04:52:32] <cameron_> How would I go about extending the Security controller?
376: [04:52:40] <cameron_> I want to add a few actions
377: [04:52:44] <cameron_> SS3.0
378: [04:53:33] <cameron_> I basically want to send new users a token to set their password, and one or two other options for their first login
379: [04:54:01] <cameron_> I was thinking I could just extend the Security class, create and create a new action similar to the forgottenpassword functionality
380: [04:54:08] <cameron_> but so far no dice
381: [04:55:05] <cameron_> For this site all users are created manually in the back end with no password, and then they will need to be sent this token to activate thier accounts and set passwords + other options
382: [04:57:35] <EasyCo> composer update --dev in an existing SS install. Will tha trust check what's in your composer.json and check to see what the dev dependencies are?
383: [05:04:04] <EasyCo> Hmm, so shouldn't composer update --dev install behat and phpunit?
384: [05:09:16] <cameron_> Meh - dont worry I am figuring it out
385: [05:22:08] * toebu quit (Ping timeout: 240 seconds)
386: [05:28:57] * cameron_ quit (Ping timeout: 250 seconds)
387: [05:29:23] * iamss quit (Ping timeout: 250 seconds)
388: [05:50:04] * violetina has joined #silverstripe
389: [06:11:44] * violetina quit (Remote host closed the connection)
390: [06:28:22] * EasyCo quit (Quit: We can't stop here, this is bat country)
391: [06:35:08] * Zauberfisch_ quit (Ping timeout: 240 seconds)
392: [06:37:21] * Zauberfisch_ has joined #silverstripe
393: [06:48:27] * Shrike_Finland quit (Quit: Leaving.)
394: [07:00:33] <ss23> I don't even understand the intention - http://i.imgur.com/LOb8lA4.jpg
395: [07:01:10] * Shrike_Finland has joined #silverstripe
396: [07:01:24] <Colin[pi]> ss23: o_O
397: [07:01:41] <Colin[pi]> depends if she's naughty or nice?
398: [07:02:18] <ss23> DUDE
399: [07:02:19] <ss23> rofl
400: [07:02:25] <Colin[pi]> lol
401: [07:02:26] <Colin[pi]> btw
402: [07:02:27] <Colin[pi]> so wrong
403: [07:02:28] <Colin[pi]> lol
404: [07:02:35] <ss23> haha
405: [07:03:36] <spronk> lol
406: [07:03:51] <spronk> wow :S
407: [07:04:30] <Colin[pi]> at what point did someone go "hey that's a great idea for kids clothes"
408: [07:04:42] <ss23> yeah, idk if shopped
409: [07:06:16] <Colin[pi]> not shooped: http://www.chapters.indigo.ca/kids/toys/hatley-dont-open-til-christmas/775165145056-item.html?ikwsec=Home :(
410: [07:07:03] <guzzlefry> Even more worrying is that it's out of stock.
411: [07:07:09] <Colin[pi]> lol
412: [07:07:18] <Colin[pi]> we can only hope they removed it from sale!
413: [07:07:55] <spronk> my goodness
414: [07:09:00] * guci0 has joined #silverstripe
415: [07:09:07] <guci0> Hello World£
416: [07:09:17] <guzzlefry> well
417: [07:09:37] <guzzlefry> Colin[pi]: There are adult sizes as well http://www.amazon.com/Hatley-Holiday-Stripe-Union-Suit/dp/B00ET05GFG/
418: [07:14:01] <guzzlefry> and, time to pass out
419: [07:14:02] <guzzlefry> night
420: [07:16:19] <Colin[pi]> nn
421: [07:18:51] <Colin[pi]> downloading and syncing sitetree objects via a remote API and refreshing teh page tree on the fly, I'm a freakin WHIZ KID
422: [07:21:04] <ss23> lol Colin[pi]
423: [07:21:12] <Colin[pi]> of course it doesn't handle exceptions at all yet... but what could possibly go wrong?
424: [07:21:36] * willr has joined #silverstripe
425: [07:30:31] <Zauberfisch23> Colin[pi]: :D
426: [07:30:47] <Colin[pi]> aww hell naw there is no way I just saved something complicated and it worked the first time
427: [07:30:52] * Colin[pi] is scared
428: [07:31:29] <ss23> haha
429: [07:31:31] <ss23> story of my life
430: [07:33:29] <Colin[pi]> yep it's working O_O
431: [07:33:53] <Colin[pi]> now if I can figure out how to reload the page tree BUT get it to expand a certain node...
432: [07:42:58] <Colin[pi]> HOLY SHIT IT'S WORKING
433: [07:43:27] <spronk> http://www.quickmeme.com/img/d3/d3464688974a526a692ec44ac217bd78f3f5afe398b7a7b8ac677c6b62d2e92c.jpg
434: [07:45:14] <Colin[pi]> lol spronk
435: [07:57:43] * Guits quit (Ping timeout: 260 seconds)
436: [08:02:00] * zfmf has joined #silverstripe
437: [08:14:06] * Guits has joined #silverstripe
438: [08:15:40] * iamss has joined #silverstripe
439: [08:16:40] * spronk2 has joined #silverstripe
440: [08:17:01] <iamss> hi guys, do we have a comment addon that is compatible for 2.4
441: [08:18:02] * MrGuits has joined #silverstripe
442: [08:18:55] <iamss> @willr do we have a version of comments module that is compatible with SS 2.4.x ??
443: [08:21:48] * Guits quit (Ping timeout: 240 seconds)
444: [08:22:04] <willr> iamss comments was built in for 2.4
445: [08:22:10] <willr> no need for a module
446: [08:22:37] <willr> The module was created by stripping out the core 2.4 version and a few more tweaks
447: [08:23:55] <iamss> @willr I see, so that's why I am getting double file CommentAdmin class
448: [08:24:04] <iamss> alright thanks @willr
449: [08:27:48] * Stomach quit (Ping timeout: 240 seconds)
450: [08:33:38] * Nightjar has joined #silverstripe
451: [08:37:01] * iamss quit (Ping timeout: 250 seconds)
452: [08:37:28] <Nightjar> spronk: this deprecating observers business sounds a LOT like signals and slots, which isn't too new.
453: [08:37:51] * ARNHOE has joined #silverstripe
454: [08:37:52] <Nightjar> Until they start getting into merging event types and compositing signals :S
455: [08:40:52] <Nightjar> It would probably help if I understood more than the general gist of wtf scala is on about :<
456: [08:42:47] <Nightjar> But really it looks like the article is misnamed.
457: [08:43:02] <Nightjar> It should be called 'abstracting observers' rather than 'deprecating observers'
458: [08:54:40] * travis-ci has joined #silverstripe
459: [08:54:41] <travis-ci> [travis-ci] chillu/silverstripe-framework#115 (pulls/tinymce-change-detection-ie8 - bc880b5 : Ingo Schommer): The build passed.
460: [08:54:41] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/dbb2efcbb313^...bc880b517111
461: [08:54:41] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/13514043
462: [08:54:41] * travis-ci has left #silverstripe
463: [08:54:55] <jon-shape> Nightjar: if your interested in scala one of the authors of that papers runs scala courses on coursera
464: [08:56:07] <jon-shape> *you're
465: [08:59:18] <Nightjar> jon-shape: not really.
466: [08:59:32] <Nightjar> but thanks
467: [09:02:59] * chillu has joined #silverstripe
468: [09:06:00] * kinglozzer has joined #silverstripe
469: [09:10:21] * willr quit (Quit: willr)
470: [09:11:17] * svandragt has joined #silverstripe
471: [09:33:09] * ocm has joined #silverstripe
472: [09:33:41] <ocm> howdy!
473: [09:34:32] <ocm> I am using dataobject::get()->map to populate a dropdownfield in the cms, how can I add an empty option to that?
474: [09:34:54] <Nightjar> ->setEmptyString()
475: [09:35:02] <ocm> thnx
476: [09:35:09] <Nightjar> (on the dropdownfield)
477: [09:37:12] <ocm> hm, like how?
478: [09:38:39] * Motoservo has joined #silverstripe
479: [09:39:05] <Nightjar> DropdownField::create($relation, $title, $optionsMap)->setEmptyString('label')
480: [09:45:21] <elgrodo> Nightjar: My secure files woes are over. Turns out the version of SS installed by composer was hosed
481: [09:45:30] <elgrodo> same module on a clean checkout, working as expected
482: [09:45:49] <ocm> thanks nightjar :)
483: [09:45:51] <ocm> works like a charm
484: [09:49:44] * SightUnseen has joined #silverstripe
485: [09:50:01] * SightUnseen has left #silverstripe
486: [09:51:35] * Colin[pi] quit (Ping timeout: 240 seconds)
487: [09:55:20] <Nightjar> elgrodo: heh, interesting.
488: [09:56:06] <elgrodo> also very annoying :(
489: [09:56:15] <Nightjar> yeh it happens from time to time :(
490: [09:56:20] <Nightjar> like the bug I found the other day
491: [09:57:06] <Nightjar> $db blah => boolean, function blah return this.blah, summary_fields blah.nice
492: [09:57:14] <Nightjar> used to work a treat in 3.0
493: [09:57:18] <Nightjar> errors out in 3.1
494: [10:04:19] * Jakx has joined #silverstripe
495: [10:04:56] <Jakx> yo
496: [10:05:06] <Nightjar> hi
497: [10:06:30] <Jakx> I just updated a silverstripe site from 2.4 to 3.1
498: [10:06:43] <Jakx> I replaced all the web root folders & files
499: [10:06:56] <Jakx> updated the config and the .htaccess and ran a dev/build/?flush
500: [10:07:05] <Jakx> Is there anything else I need to do?
501: [10:07:16] <ss23> Jakx: You can't do a flush from dev/build, so yeah
502: [10:07:22] <ss23> Jakx: When you load the home page, flush there
503: [10:07:29] <ss23> (Might need to delete the caches manually if it won't even get that far)
504: [10:07:57] <Jakx> ss23, nice. Ok - I dev build, it gives me lots of good dialog - but it's not styled
505: [10:08:07] * Noob_NL has joined #silverstripe
506: [10:08:09] <Jakx> I then go to the homepage and flush
507: [10:08:16] <Jakx> and you see this: http://www.flatfm.co.nz
508: [10:09:20] <ss23> hmm, interesting
509: [10:10:01] <Jakx> environment type is dev
510: [10:10:16] <ss23> Jakx: What does your .htaccess look like? I've seen lots of issues like this, but never had one myself to fix/track down
511: [10:12:04] <Jakx> http://sspaste.com/paste/show/5278c288bcc78
512: [10:12:31] <Jakx> I notice that when I try to go to /admin, it rewrites the URL in that matches my local server
513: [10:13:27] <Jakx> ... had a Director::setBaseURL() method set in my config
514: [10:14:00] <Jakx> hasn't solved the issue, but the dev/build dialog is now styled
515: [10:14:01] <ss23> oh uh
516: [10:14:17] <ss23> Looks fixed to me
517: [10:14:17] <ss23> :D
518: [10:14:22] <ss23> Jakx: Well, select / pick your theme
519: [10:14:25] <ss23> then it'll be fixed?
520: [10:14:26] <Nightjar> Jakx: update modules too of course
521: [10:14:58] <Jakx> BOOOM
522: [10:15:17] <Jakx> weird, template was set in the config
523: [10:15:23] <Jakx> but setting it in the siteconfig did the trick
524: [10:15:27] <Jakx> thanks for the pointer ss23
525: [10:15:35] <Jakx> Nightjar, all new files :)
526: [10:15:40] <ss23> :D
527: [10:15:55] <Nightjar> Jakx: you need to flush after changing config files.
528: [10:16:16] <Jakx> Nightjar, will do ^^
529: [10:17:26] <Jakx> ss23, ever encountered a bug with ss 3.1 where the cms links toggle the loading state, but don't redirect the left and main to the new location?
530: [10:17:54] <Jakx> So I click on a link, and the load bar fades in and fades out, the url updates etc... but the content that's visible doesn't change
531: [10:18:07] <Jakx> At the moment I'm working around it by reloading the page with the updated url
532: [10:19:38] <Nightjar> Jakx: javascript error probably
533: [10:19:54] <zippy__> When doing the dev build, scroll down to make sure no errors
534: [10:20:12] <Jakx> zippy__, Database build completed!
535: [10:21:01] <Jakx> Nightjar, yeah - that's what's odd. No errors in the console
536: [10:21:06] <zippy__> sweet :) pull in the .htaccess and index.php files?
537: [10:21:13] * chillu quit (Quit: chillu)
538: [10:22:45] <Jakx> zippy__, yep and all other aspects of the site seem to be working.
539: [10:27:56] * lerni has joined #silverstripe
540: [10:28:46] <Jakx> I have to say, that update was fuckin easy.
541: [10:29:09] <ss23> 23:18:25 < Jakx> ss23, ever encountered a bug with ss 3.1 where the cms links toggle the loading state, but don't redirect the left and main to the new location?
542: [10:29:17] <ss23> Jakx: yes, lots
543: [10:29:31] <zippy__> All the control methods changed to with or loop in templates? All the database calls upgraded to use new methods?
544: [10:29:51] <Jakx> ss23, any solution?
545: [10:29:52] <ss23> I haven't found a definitive cause, Jakx. I think it's just hte price you pay for having stupid Javascript finatics raping your CMS backend with JS
546: [10:30:03] <ss23> That being said, normally checking the raw requests turns up something interesting
547: [10:30:18] <ss23> Had issues recently with SSL/non-SSL breaking things in Firefox/Chrome
548: [10:30:48] <Jakx> ss23, cool - you've given me some ideas to investigate. cheers.
549: [10:32:09] <ss23> Yeah sorry, I think it's just not really resiliant Javascript, so tiny things completely break it :(
550: [10:32:19] <ss23> :D
551: [10:33:14] <Jakx> ss23, yeah, the scope of the javascript in my code is a bit meh tbh, I'm wondering if the page preview might be lettting it leak into the cms
552: [10:33:31] * toebu has joined #silverstripe
553: [10:55:38] * Jakx has left #silverstripe
554: [10:58:26] * Nightjar has left #silverstripe
555: [11:32:42] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
556: [11:34:05] * Motoservo has joined #silverstripe
557: [11:34:33] * Motoservo quit (Client Quit)
558: [11:59:12] * chillu has joined #silverstripe
559: [12:14:40] * HONEY_ quit (Ping timeout: 240 seconds)
560: [12:20:58] * MrGuits quit (Ping timeout: 245 seconds)
561: [12:22:52] * HONEY_ has joined #silverstripe
562: [12:23:28] <spronk2> nokia 301!?
563: [12:24:03] <ss23> SO MUCH
564: [12:24:04] <ss23> FUCKING
565: [12:24:05] <ss23> RAGE
566: [12:24:46] <kinglozzer> ss23 ?
567: [12:24:55] <ss23> just
568: [12:25:04] <ss23> third time trying to download a ~4gb file from mega.co.nz
569: [12:25:07] <ss23> failed twice so far
570: [12:25:10] <ss23> also
571: [12:25:17] <ss23> my phone bricked itself during a software update
572: [12:25:50] <spronk2> o_O
573: [12:26:01] <spronk2> maybe this is mega's secret
574: [12:26:06] <kinglozzer> Ah, the joys of HTTP file sharing
575: [12:26:09] <spronk2> actually doesnt store anything
576: [12:26:17] <spronk2> also, nokia 301
577: [12:26:19] <spronk2> seriously
578: [12:26:20] <spronk2> why!?
579: [12:27:17] <ss23> Because I would rather have a phone that does what I want and works with decent battery life than waste my money on stupid shit I don't want, I don't need, and detract from any possibly enjoyment in my life
580: [12:28:29] <spronk2> huawei y201 for $89 ftw
581: [12:33:09] <kinglozzer> ... /admin/pages - Waiting: 20.51s
582: [12:33:45] <kinglozzer> /admin/pages/edit won't load anything... AWS hates me today
583: [12:33:54] * kinglozzer bugs sysadmin
584: [12:34:49] <spronk2> eesh
585: [12:35:35] * Handyface has joined #silverstripe
586: [12:37:49] <kinglozzer> Hahaha, /Security/ping - Waiting: 29.97s
587: [12:38:59] * cloph_away is now known as cloph
588: [12:48:21] * Handyface quit (Ping timeout: 250 seconds)
589: [13:00:50] * toebu quit (Ping timeout: 264 seconds)
590: [13:03:13] * toebu has joined #silverstripe
591: [13:10:47] * toebu quit (Ping timeout: 260 seconds)
592: [13:12:29] * UndefinedOffset has joined #silverstripe
593: [13:26:31] * chillu quit (Quit: chillu)
594: [13:31:13] * spronk2 quit (Quit: spronk2)
595: [13:32:26] * chillu has joined #silverstripe
596: [13:37:08] * svandragt has joined #silverstripe
597: [13:42:33] <svandragt> Am looking for an example or pointer. I've got a form with 3 dropdownfields. When selecting a value from 3 dropdown, it should restrict the items of the other 2 dropdowns. I can do this but haven't done this with SilverStripe, and I'm sure there are many options. How woudl you do it?
598: [13:43:02] <svandragt> perhaps save the contents of the dropdown into a session and then on submit filter out via the session?
599: [13:43:45] <marvanni> that's a possiblity, or handle it with javascript
600: [13:44:33] * chillu quit (Quit: chillu)
601: [13:50:17] * toebu has joined #silverstripe
602: [13:59:42] <svandragt> thanks marvanni
603: [14:03:46] * chillu has joined #silverstripe
604: [14:04:54] * violetina has joined #silverstripe
605: [14:05:11] * zippy__ quit (Ping timeout: 245 seconds)
606: [14:16:11] * micmania1 has joined #silverstripe
607: [14:18:09] * zippy__ has joined #silverstripe
608: [14:39:23] * Shrike_Finland quit (Quit: Leaving.)
609: [14:40:06] * Alexwijn has joined #silverstripe
610: [14:41:24] * DesignerX quit (Ping timeout: 268 seconds)
611: [15:03:06] * zippy__ quit (Ping timeout: 245 seconds)
612: [15:06:17] * chillu quit (Quit: chillu)
613: [15:14:17] * chillu has joined #silverstripe
614: [15:14:18] * chillu quit (Changing host)
615: [15:14:18] * chillu has joined #silverstripe
616: [15:16:14] * zippy__ has joined #silverstripe
617: [15:22:21] <elgrodo> 29.97 ping time kinglozzer! Get those pigeons to fly your bits faster!
618: [15:23:16] <kinglozzer> Haha, or simply poke sysadmin until it's fixed :D
619: [15:23:31] <elgrodo> jab him with the pigeon's beak!
620: [15:25:45] <svandragt> Does anyone have a restfulserver url request using add_fields please? I think I need it to run a method on a dataobject and return the result
621: [15:29:24] <Alexwijn> Is it just me, or is the TinyMCE bugged...The CSS
622: [15:29:31] <Alexwijn> I insert a image and want it float to the right
623: [15:29:37] <Alexwijn> The class right has been added to the img
624: [15:29:42] <Alexwijn> but he can't find the class in the CMS
625: [15:32:36] <marvanni> you need an editor.css in your template
626: [15:33:04] <Alexwijn> And this is not added why?
627: [15:33:17] <marvanni> that will loaded with tinymce, and all css classes found in that file will be available in the style dropdown
628: [15:34:35] <Alexwijn> I guess it's not loaded
629: [15:36:23] <Alexwijn> I'm also unable to click on the Styles dropdown
630: [15:38:32] <Alexwijn> Any sollution for this?
631: [15:42:04] <Alexwijn> Why is this not working?
632: [15:44:05] * micmania1 quit (Ping timeout: 248 seconds)
633: [15:44:40] <Alexwijn> Is there also a standard css for the frontend
634: [15:44:52] <Alexwijn> for the SS styles?
635: [15:45:02] <Alexwijn> Or am I misunderstanding this?
636: [15:45:48] * catcher has joined #silverstripe
637: [15:45:57] <Alexwijn> Hi catcher?
638: [15:46:02] <marvanni> see how it is done in theme/simple/css
639: [15:46:07] <catcher> Hello Alexwijn
640: [15:46:40] <marvanni> the editor.css loads typography styles, those sould be visible in the html editor
641: [15:46:59] <Alexwijn> it loads typography.css?
642: [15:47:10] <Alexwijn> Ah
643: [15:47:52] <marvanni> @import "typography.css?2";
644: [15:54:06] <svandragt> Anyone know how I can call a dataobject's method in a restfulserver request please?
645: [15:54:38] <kinglozzer> svandragt: How do you mean?
646: [15:55:30] <kinglozzer> Can you give an example of what you're trying to do?
647: [15:55:46] <svandragt> I have a list of hierarchical locations (every location can have a parent location)
648: [15:56:07] <svandragt> now I need to return a list of locations that match a particular location in their hierarchical 'chain'
649: [15:57:02] <svandragt> so I can code a method that returns an array of ID's, and a method called by the webservice that would check if the id is in that array
650: [15:57:34] <svandragt> but I have been unable to get the information out as the restfulservice api only lists properties and relations
651: [15:57:57] <svandragt> does that make sense?
652: [15:58:51] <svandragt> a person belongs to location a, a person belongs to location b, location b is part of a, so when I ask for all people by location a i should get 2 people
653: [15:59:29] <kinglozzer> svangragt: But the API you're talking to doesn't handle that?
654: [15:59:51] * Motoservo has joined #silverstripe
655: [16:00:05] * Colin[pi] has joined #silverstripe
656: [16:01:02] <Alexwijn> How to make a page default?
657: [16:01:12] <Alexwijn> Because I change the name Home to Welcome
658: [16:01:18] <Alexwijn> And now the first page does not exist
659: [16:03:17] <svandragt> kinglozzer: https://github.com/silverstripe/silverstripe-restfulserver doesn't seem to?
660: [16:03:51] * micmania1 has joined #silverstripe
661: [16:04:34] * Shrike_Finland has joined #silverstripe
662: [16:05:29] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
663: [16:05:56] <kinglozzer> Oh damnit, sorry, I thought you said RestfulService, not RestfulServer :P
664: [16:06:20] <kinglozzer> svandragt: So, you've tried 'add_fields'?
665: [16:07:44] <kinglozzer> If you add 'PeopleByLocation' to add_fields, you should then be able to create a method called getPeopleByLocation()
666: [16:08:15] * zfmf has left #silverstripe
667: [16:09:28] <svandragt> kinglozzer: ok will check thanks
668: [16:09:50] * toebu quit (Ping timeout: 264 seconds)
669: [16:10:24] <svandragt> kinglozzer: great that works I couldn't find an example anywhere. saved my bacon
670: [16:11:58] <kinglozzer> svandragt: No problem. It all ties in with the DataFormatter classes: https://github.com/silverstripe/silverstripe-framework/blob/3.1/api/DataFormatter.php#L259-L266
671: [16:14:48] <catcher> Alexwijn, that should be fine as long as you leave the URLSegment 'home'
672: [16:15:05] <Alexwijn> ok
673: [16:15:51] <Alexwijn> Are there plugins for TinyMce that works with SS?
674: [16:15:58] <Alexwijn> for example I want to integrate FlowPlayer
675: [16:16:07] <Alexwijn> So that the user can upload a vide
676: [16:16:22] <Alexwijn> And that tinymce insert his code around the url
677: [16:16:47] * Noob_NL quit (Ping timeout: 250 seconds)
678: [16:23:01] <catcher> Alexwijn, shortcodes are going to be your best bet.
679: [16:23:02] <catcher> http://doc.silverstripe.org/framework/en/3.0/topics/shortcodes
680: [16:23:19] <catcher> and http://www.balbuss.com/mini-introduction-to-shortcodes/
681: [16:23:20] <Alexwijn> Ah nice...I wondering about that
682: [16:23:37] <Alexwijn> Uhm, the docs does not exsits in 3.1
683: [16:23:54] <catcher> Alexwijn, No changes from 3.0 -> 3.1
684: [16:24:02] <Alexwijn> So safe to use those docs?
685: [16:24:22] <catcher> Alexwijn, yes. And I'd say the 2nd link is easier to follow, it'll suit your current needs.
686: [16:24:43] <Alexwijn> Ok thanks
687: [16:25:06] <catcher> np
688: [16:26:39] <Alexwijn> How is the integration for TinyMCE
689: [16:26:47] <Alexwijn> Is it possible to select it from a dropdown list or something
690: [16:26:49] <Alexwijn> when I have add it?
691: [16:26:53] <catcher> Alexwijn, you include your shortcode w/ params in the text or html
692: [16:27:07] <Alexwijn> How does the user know it exsits?
693: [16:27:18] <catcher> i.e. [FlowPlayerEmbed code=whatever]
694: [16:27:27] * jrthomer_ has joined #silverstripe
695: [16:27:36] <catcher> Alexwijn, setRightTitle on the CMS field is nice for that sort of thing
696: [16:27:57] <catcher> Alexwijn, or literalfield, if you want to style it more easily
697: [16:28:01] * toebu has joined #silverstripe
698: [16:29:12] * kinglozzer wants to use an interface with __call() :(
699: [16:29:59] <Alexwijn> $contentField = $fields->getField('Content');
700: [16:30:00] <Alexwijn> $contentField->setRightTitle('test');
701: [16:30:01] <Alexwijn> Does not work
702: [16:30:05] * jrthomer quit (Ping timeout: 272 seconds)
703: [16:30:21] <Alexwijn> Maybe I need to add the LiteralField below it
704: [16:30:58] * ARNHOE quit (Remote host closed the connection)
705: [16:31:28] <catcher> Alexwijn, $fields->dataFieldByName('Content')->setRightTitle('test'); should do it
706: [16:32:11] <Alexwijn> Still nothing
707: [16:32:49] <Alexwijn> oeps
708: [16:33:12] * Alexwijn should use the right url when editing his code
709: [16:33:39] <Alexwijn> How to add a field after content?
710: [16:35:44] <Alexwijn> $contentField = new LiteralField('ShortCodes', '<h2>hi</h2>');
711: [16:35:44] <Alexwijn> $fields->addFieldToTab("Root.Main", $contentField);
712: [16:35:51] <Alexwijn> Now I want to insert after Content
713: [16:35:54] <Alexwijn> But before the Meta
714: [16:35:57] <Alexwijn> brb
715: [16:39:37] * Liquide has joined #silverstripe
716: [16:39:38] <catcher> Alexwijn, http://api.silverstripe.org/3.1/source-class-FieldList.html#379-402
717: [16:39:52] <lerni> to deploy with capistrano i need silversripe to tell:
718: [16:39:52] <lerni> Director::setBaseURL('http://www.mytld.com/');
719: [16:40:12] <lerni> otherwise it'll error while dev/build per sake:
720: [16:40:12] <lerni> ERROR [User Warning]: Director::protocolAndHost() lacks sufficient information - HTTP_HOST not set. You probably want to define $_FILE_TO_URL_MAPPING in your _ss_environment.php as instructed on the "sake" page of the doc.silverstripe.com wiki
721: [16:40:12] <lerni> IN GET /home/user/public_html/project/releases/20131105153955/dev/build
722: [16:40:12] <lerni> Line 414 in /home/user/public_html/project/releases/20131105153955/framework/control/Director.php
723: [16:40:30] <lerni> but as soon as I set BaseURL I cannot login. It allways tells me I'm loged in allready.
724: [16:42:03] <lerni> obviously I would like to be able to deploy and to login but atm don't know how ?
725: [16:43:38] <micmania1> That error refers to mapping your domain in _ss_environment.php
726: [16:44:07] <micmania1> $_FILE_TO_URL_MAPPING['/path/to/website'] = 'http://www.mydomain.com'
727: [16:45:11] <lerni> it suggests to solve it per _ss_enviroment
728: [16:52:43] <micmania1> check out http://doc.silverstripe.org/framework/en/topics/commandline#configuration
729: [16:56:37] * chillu quit (Quit: chillu)
730: [17:03:35] * chillu has joined #silverstripe
731: [17:10:09] <lerni> I wanted to avoid the global in the first place and now I set it but it complains _ss_enviroment needs DB login but does not accept it... I'll make a break
732: [17:16:13] * kinglozzer quit ()
733: [17:17:11] * lerni quit (Quit: lerni)
734: [17:40:09] * svandragt quit (Ping timeout: 246 seconds)
735: [18:10:03] <Alexwijn> Is it possible to add js to the frontend through php?
736: [18:10:46] <AlphaCactus> Alexwijn: yes
737: [18:10:51] <Alexwijn> How?
738: [18:10:54] <guzzlefry> requirement::javascript() or something
739: [18:11:03] <Alexwijn> And he locates automaticly the head section?
740: [18:12:23] <AlphaCactus> http://sspaste.com/paste/show/5279332062518
741: [18:12:51] <AlphaCactus> SS places it in the head or at the end of the body, depending on various factors. you can also set a setting that tells it to go in to the head I believe.
742: [18:13:25] <Alexwijn> Ok thanks
743: [18:14:26] <Alexwijn> Do you if I load a script twice, is it possible that it messes things up
744: [18:14:35] <Alexwijn> I want to create a shorttag for flowplayer
745: [18:14:41] <Alexwijn> But I need to load the js aswell
746: [18:14:59] <Alexwijn> Is it save to use the <script /> more then once for the shortcode
747: [18:15:14] <AlphaCactus> if you use requirements, it will ensure it only loads once. but if you do a custom script it might load it twice as separate scripts so it will do the same thing twice.
748: [18:16:34] <Alexwijn> The requirements are relative of the root?
749: [18:16:41] <Alexwijn> I have a folder named static in the root of ss
750: [18:16:47] <Alexwijn> I can use that for the requirement?
751: [18:17:21] <AlphaCactus> sure, although that isn't really a standard. usually you would put js in site/javascript or theme/mytheme/javascript
752: [18:17:33] <AlphaCactus> sorry, themes/mytheme/javscript
753: [18:17:43] <Alexwijn> It's something global
754: [18:18:16] <AlphaCactus> then we would put that in site/javascript (mysite by default I think, but we rename to site cause mysite is gay)
755: [18:18:34] <Alexwijn> I renamed it to Site aswell :)
756: [18:19:11] <AlphaCactus> good man
757: [18:21:51] <Alexwijn> Requirements::javascript('/site/javascript/flowplayer-3.2.12.min.js');
758: [18:21:54] <Alexwijn> Does not seems to work
759: [18:22:23] <AlphaCactus> try without leading slash
760: [18:22:25] * SightUnseen has joined #silverstripe
761: [18:22:32] * SightUnseen has left #silverstripe
762: [18:22:42] <Alexwijn> No change
763: [18:22:55] <AlphaCactus> where are you calling that
764: [18:23:08] <Alexwijn> in my shortcode handler
765: [18:23:35] <AlphaCactus> can you try calling it from the init() of you controller instead to see if it works?
766: [18:24:11] <Alexwijn> same
767: [18:26:48] <AlphaCactus> you can load it by going directly to it in your browser? with your domain and stuff prepended?
768: [18:27:46] <Alexwijn> Works fine
769: [18:28:33] <Alexwijn> oh, wait, it think it works now
770: [18:28:56] <Alexwijn> I had it in the wrong folder
771: [18:29:03] <Alexwijn> After I changed url it still did not work
772: [18:29:11] <Alexwijn> But after a few flushing and refresh
773: [18:29:12] <Alexwijn> it works
774: [18:29:13] <AlphaCactus> :P
775: [18:29:27] <AlphaCactus> i have trouble with that stuff way too often too
776: [18:34:40] <Alexwijn> does every shortcode block has a id
777: [18:34:45] <Alexwijn> and if so, is it possible to retrieve
778: [18:36:05] <AlphaCactus> i've never worked with shortcodes
779: [18:37:37] <Alexwijn> Because the flowplayer uses a id to fill a block
780: [18:37:47] <Alexwijn> But if you want to have two the same videos on the page
781: [18:37:50] <Alexwijn> we have a problem
782: [18:38:02] <Alexwijn> Any advice?
783: [18:39:07] <AlphaCactus> ask again later when teh kiwis are awake?
784: [18:39:17] <Alexwijn> ok
785: [18:39:27] <Alexwijn> I just hash it in the meanwhile
786: [18:39:34] <Alexwijn> Hash the arguments
787: [18:40:06] * Colin[pi] quit (Ping timeout: 252 seconds)
788: [18:40:21] * Colin[pi] has joined #silverstripe
789: [18:44:17] <catcher> Alexwijn, you can pass as many params as you like, they hit the function as an array
790: [18:49:48] <Alexwijn> Yeah I know
791: [18:50:04] <Alexwijn> I misstakly used the old version of FlowPlayer
792: [18:50:09] <Alexwijn> But now I installed the new version
793: [18:50:13] <Alexwijn> And adjusted the url
794: [18:50:19] <Alexwijn> It does not pick them up
795: [18:51:52] <catcher> Alexwijn, Best to start with it hard-coded in a template, make sure it's working, and then get it working with the shortcode.
796: [18:54:46] * zippy__ quit (Ping timeout: 245 seconds)
797: [19:00:59] <Alexwijn> Got it working again
798: [19:01:05] <Alexwijn> I switched back to the old version
799: [19:01:10] <Alexwijn> Since it support f4v files
800: [19:07:04] * zippy__ has joined #silverstripe
801: [19:10:57] * mobiusnz`home has joined #silverstripe
802: [19:10:58] <guzzlefry> hm
803: [19:11:11] <guzzlefry> How do I filter using comparison operators?
804: [19:12:01] <guzzlefry> Or maybe I have to use where() for that?
805: [19:15:11] <Alexwijn> How to add an allowed extension to upload?
806: [19:15:33] <Alexwijn> I want to add the file f4v
807: [19:15:50] <Alexwijn> Not sure why that is not standard allowed
808: [19:15:58] <AlphaCactus> look at he FILE class. i think there is a way to add extensions in your config
809: [19:21:20] <Alexwijn> FileExtention does not exist
810: [19:31:20] * DigNZ has joined #silverstripe
811: [19:36:11] * antmas has joined #silverstripe
812: [19:36:25] * Ryan-Toast has joined #silverstripe
813: [19:37:28] <antmas> mornin all
814: [19:38:27] <guzzlefry> morning sir
815: [19:38:42] * lerni has joined #silverstripe
816: [19:44:28] * Pyromanik has joined #silverstripe
817: [19:45:26] <Pyromanik> whoop whoop
818: [19:45:29] <Pyromanik> sssssss
819: [19:45:38] * nickmolhoek has joined #silverstripe
820: [19:45:54] <Pyromanik> It's a Snake Party!
821: [19:46:04] <Pyromanik> (not to be confused with a sausage festival)
822: [19:48:48] * zfmf has joined #silverstripe
823: [19:49:48] * Stomach has joined #silverstripe
824: [19:53:42] <catcher> Pyromanik, it's the same from you every time I look at the channel.
825: [19:54:18] <zippy__> mmmhmm
826: [19:58:08] <guzzlefry> sssssssss
827: [19:58:10] <guzzlefry> am i doing it right?
828: [19:58:16] <Stomach> constantly
829: [19:58:38] <guzzlefry> oh, good
830: [20:01:11] <Pyromanik> catcher: I don't understand.
831: [20:01:55] <Pyromanik> Do you have a silverstripe question that you're now aprehensive to ask because you're confused and think you might accidentally be in the python channel?
832: [20:02:09] <catcher> hahaha
833: [20:03:29] <catcher> [08:56:59] <Pyromanik> guys guys guys
834: [20:03:30] <catcher> 149: [08:57:06] <Pyromanik> I had a bit of an epiphany in the weekend right
835: [20:03:30] <catcher> 150: [08:57:14] <catcher> did it involve guys guys guys?
836: [20:03:41] <Alexwijn> After a form submition and you processed it, how can I redirect the user back?
837: [20:03:54] <Pyromanik> :'( catcher, don't be a hater!
838: [20:03:58] <catcher> Alexwijn, return $this->redirectBack(); iirc
839: [20:04:03] <Pyromanik> this looks cool http://new-bamboo.co.uk/blog/2008/09/11/panda-open-source-video-encoding-powered-by-merb-ec2-s3-and-simpledb
840: [20:04:10] <Alexwijn> Ok thanks
841: [20:04:14] <Pyromanik> so I was thinking SS needs a mascot right
842: [20:04:33] <Pyromanik> A panda would be good.
843: [20:05:55] <catcher> Is there any reliable way to retrieve all the subclasses of a particular class?
844: [20:06:13] <catcher> with dynamic loading, the "loop all classes and check" thing doesn't work.
845: [20:11:41] * UncleCheese has joined #silverstripe
846: [20:12:00] <Pyromanik> catcher: eh?
847: [20:12:11] <Pyromanik> Blah::get() should get them all for you.
848: [20:12:18] <Pyromanik> SuperClass::get()
849: [20:12:43] <guzzlefry> Does anyone else have clients that can't handle the blog module?
850: [20:12:50] <catcher> Pyromanik, I need the subclass names, not the objects. Thinking I may be able to dump out the enum that SS generates in the parent class now.
851: [20:12:57] <Pyromanik> guzzlefry: everyone has clients who can't handle computers.
852: [20:13:05] * mobiusnz`home quit (Quit: Leaving.)
853: [20:13:11] <guzzlefry> well, the blog module in particular. :P
854: [20:13:16] <Pyromanik> catcher: SuperClass::get()->Column('ClassName')
855: [20:13:33] <Alexwijn> Is it possible to add a message above the form telling it that it has been send?
856: [20:13:34] <Pyromanik> catcher: I think there's a DISTINCT selector too, but I'm just looking
857: [20:13:41] <Pyromanik> Alexwijn: yes.
858: [20:13:53] <Pyromanik> $form->setMessage('Congratulations', 'good')
859: [20:14:43] <Pyromanik> catcher: hmm, can't find. array_unique() ?
860: [20:15:02] <Alexwijn> Pyromanik, that means that you have the form
861: [20:15:11] <Pyromanik> Alexwijn: then override it with customise()
862: [20:15:13] <catcher> Pyromanik, shouldn't I be able to dbObject -> enumValues or something?
863: [20:15:23] <Alexwijn> customise()?
864: [20:15:27] <Pyromanik> catcher: dunno, perhaps
865: [20:15:55] <Pyromanik> Alexwijn: return array('Form' => $whateverYouWantToShowUpInsteadOfTheForm)
866: [20:16:14] <Alexwijn> I'm redirecting the user back after submition
867: [20:16:21] <Pyromanik> don't redirect back then.
868: [20:16:34] <Pyromanik> unless you set a session variable, there's no way to know that they've just submitted the form.
869: [20:16:46] <Pyromanik> web is stateless.
870: [20:16:54] <Alexwijn> Ok, I will stay at the same page then
871: [20:17:03] <Alexwijn> How to check if it is submitted?
872: [20:17:09] <Alexwijn> nvm
873: [20:17:23] <Colin[pi]> hey everybody :D
874: [20:17:25] <Pyromanik> Alexwijn: well I ususally do $this->redirect('thanks')
875: [20:17:37] <Pyromanik> allowed_actions 'thanks'
876: [20:18:02] <Pyromanik> public function thanks() { return array('Form' => 'Thank you for submitting the form!'); }
877: [20:18:24] <catcher> Hmm, it keeps doing something fancy when I try to get the ClassName enum as values.
878: [20:18:41] <Pyromanik> if the redirect doesn't work then $this->redirect($this->Link('thanks')) or Link().'thanks'
879: [20:19:05] <Pyromanik> catcher: *shrug* sorry dude.
880: [20:19:11] <Pyromanik> I'd probably just use SQLQuery
881: [20:19:36] <Alexwijn> After submition it goes to: /home/widget/1/ContactForm
882: [20:19:42] <Alexwijn> But then all I get is: "Form"
883: [20:19:44] <Alexwijn> Nothing else
884: [20:19:46] <catcher> Maybe I'll just use a static list, since it'll change about once per year, by me.
885: [20:19:46] <Alexwijn> Plain text
886: [20:19:57] <Pyromanik> Alexwijn: ... have you read the tutorial on forms?
887: [20:20:16] <Alexwijn> Most of them are out of date
888: [20:20:20] <Alexwijn> for 2.4
889: [20:20:26] <Pyromanik> same deal.
890: [20:20:42] <Alexwijn> Also, it is a widget
891: [20:20:44] <Pyromanik> 2.4 is out of date.
892: [20:20:56] <Pyromanik> widgets are controllers iirc.
893: [20:20:59] <Pyromanik> so should be fine.
894: [20:21:09] <Pyromanik> request handlers at least
895: [20:21:22] <Alexwijn> I guess not the response
896: [20:21:37] <Pyromanik> redirect $this->controller->Link('thanks') ?
897: [20:21:48] <Alexwijn> I can't redirect them to a random page
898: [20:21:52] <Alexwijn> It's a global widget
899: [20:22:09] <Alexwijn> I want the message above the form
900: [20:22:41] <Pyromanik> http://api.silverstripe.org/2.4/class-Widget_Controller.html
901: [20:22:54] <Pyromanik> these are your options.
902: [20:25:00] <Colin[pi]> widgets are model and controller like DOs
903: [20:25:13] <Colin[pi]> so you have a widget class and a widget_controller class
904: [20:25:23] <Pyromanik> yes
905: [20:26:30] <Colin[pi]> <Pyromanik> so I was thinking SS needs a mascot right <Pyromanik> A panda would be good.
906: [20:26:35] <Colin[pi]> not a kiwi? ;P
907: [20:27:16] <Alexwijn> None of these templates can be found in theme 'simple': ClassInfo.ss
908: [20:27:18] <Pyromanik> omfg, THE FINAL COUNTDOWWWWWWN
909: [20:27:21] <Alexwijn> Where did came from?
910: [20:27:36] <Pyromanik> are you using 2.4 or 3.0?
911: [20:27:47] <Alexwijn> 3.1
912: [20:28:01] <Pyromanik> Colin[pi]: well silverstripe is a type of bamboo and just about every single nz company ever uses a kiwi when they're represented overseas.
913: [20:28:10] <Pyromanik> Alexwijn: then why did you say you were using 2.4
914: [20:28:17] <Alexwijn> I did not
915: [20:28:22] <Pyromanik> 09:20 < Alexwijn> for 2.4
916: [20:28:22] <Alexwijn> I said I found docs for 2.4
917: [20:28:23] <Colin[pi]> Pyromanik: yeah I figured that I was half joking ;P
918: [20:28:27] <Alexwijn> Not that I'm using that
919: [20:28:27] <Pyromanik> oh
920: [20:28:37] <Pyromanik> well not much has changed.
921: [20:28:50] <Pyromanik> just the usual 3.x changes.
922: [20:29:02] <Colin[pi]> <Pyromanik> well silverstripe is a type of bamboo
923: [20:29:03] <Colin[pi]> TIL
924: [20:29:05] <Alexwijn> Now my site suddenly does not work
925: [20:29:21] <Pyromanik> Colin[pi]: ikr.
926: [20:29:39] <Colin[pi]> thanks man I had no idea
927: [20:29:40] <Alexwijn> What is ClassInfo.ss?
928: [20:30:20] <Pyromanik> a template file that doesn't exist
929: [20:30:41] <Alexwijn> What template file?
930: [20:31:03] <Alexwijn> I do not know ClassInfo.ss
931: [20:31:43] <Alexwijn> It seems it's the ?isDev
932: [20:31:57] <Alexwijn> If I use that then I got that message
933: [20:32:06] <Alexwijn> And i'm stuck with it untill I clear my cookies
934: [20:32:17] <Pyromanik> do a flush
935: [20:32:24] <Alexwijn> Did that many times
936: [20:32:49] * gelignite has joined #silverstripe
937: [20:33:28] <Pyromanik> dunno, sorry
938: [20:34:25] <Alexwijn> My contact form also stopped working
939: [20:34:50] * mobiusnz`home has joined #silverstripe
940: [20:34:59] <Pyromanik> o.0
941: [20:35:05] <Pyromanik> have you been editing core files?
942: [20:35:09] <Alexwijn> Nope
943: [20:35:14] <Alexwijn> Just my form
944: [20:35:16] <Alexwijn> I was reverting it back
945: [20:40:07] <catcher> Pyromanik, even a raw query "show columns from`Foo` like 'Bar'" is a no-go.
946: [20:40:18] <catcher> Gives me back the first in the list only
947: [20:40:59] <Colin[pi]> haha a web site that puts an overlay div to prevent me from getting to what's underneath, that's so cute
948: [20:41:37] <Pyromanik> catcher: what?
949: [20:42:13] <catcher> Pyromanik, that's the mysql statement to show the enum values, SS seems to dislike it.
950: [20:42:14] <Pyromanik> you want SELECT DISTINCT ClassName FROM Table
951: [20:42:43] <catcher> Pyromanik, I want the possible values, not what's currently written.
952: [20:42:55] <Pyromanik> true
953: [20:43:09] <Pyromanik> DB::Query
954: [20:43:15] <Pyromanik> don't ever ever ever ``
955: [20:43:38] <catcher> I've tried all the stuff with it by now, I think
956: [20:44:01] <Pyromanik> why "show columns from`Foo` like 'Bar'" no work?
957: [20:44:04] <Pyromanik> what error?
958: [20:44:05] <catcher> All the quotes, none of the quotes, backtics, front ticks..
959: [20:44:22] <catcher> Pyromanik, gives me the very first item in the enum only
960: [20:44:26] <Pyromanik> "
961: [20:44:28] <Pyromanik> never `
962: [20:44:46] <Pyromanik> it's just SHOW COLUMNS FROM "Table" LIKE 'Blah'
963: [20:44:52] <catcher> indeed
964: [20:44:58] <Pyromanik> at a guess, I'm not an SQL Ninja
965: [20:45:18] <Pyromanik> if that doesn't work, I'd look at developmentadmin and see how it queries it.
966: [20:45:33] <Pyromanik> or
967: [20:45:35] <catcher> Still just the first result.. maybe ->value() chops it?
968: [20:45:40] <Pyromanik> just fetch it from the manifest if you can.
969: [20:45:55] <Pyromanik> catcher: well I think you want to foreach probably
970: [20:46:01] <catcher> ooh, that sounds fun..
971: [20:46:12] * mobiusnz`home quit (Quit: Leaving.)
972: [20:46:15] <Pyromanik> value will give you first item, you want to iterate results
973: [20:46:26] <Pyromanik> maybe toarray if there is one
974: [20:46:27] <catcher> I lied, the query above is giving me the word "ClassName"
975: [20:46:29] <Pyromanik> dunno
976: [20:46:35] <Pyromanik> le api.ss.org.nz
977: [20:47:08] <catcher> Looping the results may be a winner
978: [20:48:12] * ARNHOE has joined #silverstripe
979: [20:49:02] <catcher> yeah, $result->first()['Type'] does the trick (when written legally)
980: [20:49:42] <catcher> It's a string with the word 'enum', but at least I can work with it
981: [20:50:28] * keksters has joined #silverstripe
982: [20:51:17] <Pyromanik> array_keys() ?
983: [20:52:34] * Sj0hn has joined #silverstripe
984: [21:01:40] * mobiusnz`home has joined #silverstripe
985: [21:06:30] <keksters> I'm having some relational problems with a custom DataObject that I'm not sure I have the full grip of.
986: [21:07:00] <keksters> I want to do a multiple slide feature for a page and found this: http://stackoverflow.com/questions/14432739/silverstripe-uploadify-add-fields and this: http://doc.silverstripe.com/framework/en/tutorials/5-dataobject-relationship-management
987: [21:07:32] <keksters> I have implemented them in my own code and the system builds without an issue http://pastebin.com/7PzDQ1ws
988: [21:08:07] <keksters> I can, in my CMS, go to add a Slide. I can upload my slide and title it and the CMS reports that it is successfully saved
989: [21:08:16] * Stomach quit (Ping timeout: 264 seconds)
990: [21:08:28] <Avroceptyr> heh, relationship problems
991: [21:08:45] <keksters> However whenever I try to navigate back to the page I'm working on I get an error from /templates/model/DataObject.php on line 2729
992: [21:08:57] <keksters> Which just states a relational error
993: [21:08:59] * jrthomer_ quit (Remote host closed the connection)
994: [21:09:34] <keksters> If I refresh my admin page of the CMS I get a warning above the CMSy bit that says HomePageSlide is not a relation of HomePageSlide
995: [21:10:08] <keksters> We've been into the phpadmin to see what is happening and everything is correctly filling out in the HomePageSlide table
996: [21:10:38] <keksters> But once a ProductPage is listed in the HomePageSlide table it is no longer accessible via the CMS
997: [21:11:37] <catcher> Well, that was a lot of work, but pretty slick. I'm glad to have that for the future.
998: [21:11:53] <keksters> [User Error] HomePageSlide is not a relation/field on HomePageSlide <- copy paste from error on CMS
999: [21:12:17] * Stevie has joined #silverstripe
1000: [21:12:59] <catcher> Any better way to make a class's $singular_name available to another class than creating a more visible static getter method?
1001: [21:13:08] * lerni1 has joined #silverstripe
1002: [21:13:42] <keksters> Oh man. Just ignore me. I solved it myself.
1003: [21:13:45] <catcher> keksters, did you define the reverse relationship?
1004: [21:13:53] * lerni quit (Ping timeout: 265 seconds)
1005: [21:14:04] <catcher> keksters, nm then :)
1006: [21:14:21] <keksters> It was my Title setup in the config that was causing the error
1007: [21:14:43] * UndefinedOffset quit (Quit: Leaving.)
1008: [21:14:45] <keksters> I was unsure between the stackoverflow solution and the silverstripe doc which was correct
1009: [21:15:22] <keksters> I spent half a day on this yesterday >_<
1010: [21:15:41] * micmania1 has joined #silverstripe
1011: [21:17:22] <catcher> keksters, ah, the bitter-sweet mix of relief and frustration..
1012: [21:20:42] <Colin[pi]> I hate it when that happens >_>
1013: [21:23:35] * ARNHOE quit ()
1014: [21:28:08] * SightUnseen has joined #silverstripe
1015: [21:28:12] * SightUnseen has left #silverstripe
1016: [21:33:40] <DaShiVaDan> http://signup.bribe.io/
1017: [21:37:54] <Alexwijn> How to verify the securityID of the form
1018: [21:38:12] <Alexwijn> I tried this at the FormAction function
1019: [21:38:12] <Alexwijn> if (isset($request['SecurityID']) && $request['SecurityID'] == $form->getSecurityToken())
1020: [21:38:16] <Alexwijn> But this does not seems to work
1021: [21:41:53] <Pyromanik> keksters: never ever uploadify
1022: [21:41:58] <Pyromanik> unless you 2.4
1023: [21:42:02] <Pyromanik> in which case probably still don't.
1024: [21:43:27] <Pyromanik> Alexwijn: you don't, the form does it automatically.
1025: [21:43:46] <Alexwijn> Ah ok
1026: [21:44:19] <Avroceptyr> I wonder how much of a bribe Silverstripe needs to write documentation
1027: [21:44:56] <Pyromanik> Avroceptyr: this is not a new concept.
1028: [21:45:07] <Pyromanik> it's been floated around the community for a while.
1029: [21:45:47] <Pyromanik> (the 'bribe' part, also docs, though not always in relation to each other)
1030: [21:46:23] <Pyromanik> also
1031: [21:46:26] <Pyromanik> fuck modern websites.
1032: [21:46:29] <Pyromanik> http://iforce.co.nz/i/ny5rzruz.xvy.png
1033: [21:46:39] <Pyromanik> ALLLL the third parties!
1034: [21:55:32] <Alexwijn> Sake is not working very well
1035: [21:55:54] <Alexwijn> sake dev/build "flush=all"
1036: [21:55:57] <Pyromanik> have you mapped your files to url?
1037: [21:56:00] <Alexwijn> He does not pickup all my new code
1038: [21:56:04] <Alexwijn> yes
1039: [21:56:31] <Pyromanik> oh
1040: [21:56:33] <Pyromanik> because flush probably
1041: [21:56:39] <Pyromanik> makes a redirect.
1042: [21:56:42] <Pyromanik> oh
1043: [21:56:45] <Alexwijn> Fatal error: Object::add_extension() - Can't find extension class for "CustomSiteConfig"
1044: [21:56:47] <Pyromanik> no, should detect CLI
1045: [21:57:01] <Pyromanik> because don't use object::add_extension
1046: [21:57:08] <Pyromanik> deprecated.
1047: [21:57:16] <Pyromanik> yaml!
1048: [21:57:29] <Pyromanik> try just sake dev/build
1049: [21:57:47] <Pyromanik> without flush
1050: [21:57:50] <Alexwijn> Same
1051: [22:00:49] <Alexwijn> So what else can I try?
1052: [22:02:58] <zippy__> check your class is named right :)
1053: [22:03:15] <Alexwijn> It is working just fine locally
1054: [22:03:22] <Alexwijn> I'm just deploying it
1055: [22:03:43] <Alexwijn> I'm sure if I use the url version it works just fine
1056: [22:05:49] <Alexwijn> So...
1057: [22:05:52] <Alexwijn> Anything
1058: [22:05:53] <Alexwijn> ?
1059: [22:06:53] * gelignite quit (Quit: http://bit.ly/nkczDT)
1060: [22:09:50] <catcher> If I'm adding a new bit of code for a proposed pull request, should I put it in 3.1 or master?
1061: [22:11:01] <catcher> Or a separate branch?
1062: [22:11:26] <Alexwijn> New branch I think
1063: [22:11:36] <Alexwijn> Master is for all the merges
1064: [22:11:50] <Alexwijn> Branches for tests and development
1065: [22:12:13] <Alexwijn> You never work on master if you don't work alone
1066: [22:12:32] * Jakx has joined #silverstripe
1067: [22:15:33] * mobiusnz`home quit (Quit: Leaving.)
1068: [22:17:26] * Alexwijn quit ()
1069: [22:18:53] <catcher> Looks like they like it back in 3.1 before pull request though.
1070: [22:26:01] * DesignerX has joined #silverstripe
1071: [22:28:14] <Jakx> is $this->isAjax() the method to use in 3.1?
1072: [22:28:49] <ss23> yay, get to do opensource today
1073: [22:28:49] <ss23> :D
1074: [22:30:36] * blueman has joined #silverstripe
1075: [22:34:56] <Colin[pi]> ss23: feels good man
1076: [22:36:01] <ss23> Hard to pick up where I left off though
1077: [22:36:37] <Colin[pi]> why's that, because once per week?
1078: [22:37:01] * mobiusnz has joined #silverstripe
1079: [22:37:08] * simon_w has joined #silverstripe
1080: [22:37:28] <Colin[pi]> hai simon_w
1081: [22:37:54] <ss23> Colin[pi]: Haven't worked on this particular pull request in months
1082: [22:38:06] <Colin[pi]> OIC :C
1083: [22:38:29] * catcher quit (Quit: Leaving)
1084: [22:40:34] <Colin[pi]> holy crap I asked siri to reschedule a meeting and she understood
1085: [22:40:43] <Colin[pi]> that impresses me still :D
1086: [22:41:38] <ss23> lol
1087: [22:44:10] * lerni1 quit (Quit: lerni1)
1088: [22:47:33] <simon_w> Morning Colin[pi]
1089: [22:47:40] <Colin[pi]> ^_^
1090: [22:51:20] * SightUnseen has joined #silverstripe
1091: [22:51:20] * SightUnseen has left #silverstripe
1092: [22:51:38] <UncleCheese> it's Siri's only worthwhile feature
1093: [22:51:41] <UncleCheese> that and reminders
1094: [22:51:52] * Jakx has left #silverstripe
1095: [22:52:22] <ss23> simon_w: R U BACK?
1096: [22:52:24] <ss23> R U LUNCH?
1097: [22:52:58] <simon_w> What does my host mask say?
1098: [22:53:13] <ss23> Hmm
1099: [22:53:22] <ss23> "i.am.simon.w.a.big.meanie"
1100: [22:53:27] <ss23> doens't mention whether you want lunch thoguh
1101: [22:53:52] <simon_w> It kinda does
1102: [22:54:15] <ss23> :O
1103: [22:54:20] <ss23> NO IT DOESN'T
1104: [22:54:44] <simon_w> Yes it does
1105: [22:55:03] <ss23> Nu uh
1106: [22:55:04] <ss23> .
1107: [22:56:50] <Pyromanik> telstra have cable in NZ too.
1108: [22:56:57] <Pyromanik> just say'n.
1109: [22:57:14] <ss23> wut
1110: [22:57:22] <ss23> I thought simon_w was on telstraclear cable in NZ
1111: [22:57:42] <Pyromanik> either way he's not in the office.
1112: [22:57:58] <ss23> oic
1113: [22:58:00] <ss23> good point
1114: [22:58:07] <ss23> I thought simon_w was office nick and otherone was home
1115: [22:59:22] <Pyromanik> [~simon_w@121-73-68-50.cable.telstraclear.net]
1116: [22:59:52] <Pyromanik> simon_w is simon_w's nick. But you can't have it on 2 comptuers at once on the same network, can you.
1117: [23:00:17] <lewellyn> i have lewellyn on 3 clients connected to freenode right now ;)
1118: [23:00:20] <ss23> well, I can
1119: [23:00:20] <ss23> :D
1120: [23:00:31] <ss23> I doubt simon_w does though
1121: [23:00:36] <Pyromanik> o.0
1122: [23:00:53] <ss23> (bouncer, screen, etc)
1123: [23:02:04] <antmas> ffff
1124: [23:02:08] <antmas> composer :|
1125: [23:02:16] <ss23> lol
1126: [23:02:18] <ss23> story of my like
1127: [23:02:18] <ss23> life
1128: [23:02:23] * fpereira1 has joined #silverstripe
1129: [23:02:47] <ss23> So, like 30 mins "why isn't my fork showing up"
1130: [23:02:48] * violetina quit (Remote host closed the connection)
1131: [23:02:54] * antmas does install, fails and asks for update, runs update 'please run install' as everything is up to date
1132: [23:02:57] <ss23> Before realising I was looking in framework/ instead of cms/
1133: [23:02:57] <antmas> FUCK YOU
1134: [23:04:06] <spronk> hahaha
1135: [23:05:27] <Colin[pi]> LOL
1136: [23:10:33] * zfmf has left #silverstripe
1137: [23:11:29] * toebu quit (Ping timeout: 240 seconds)
1138: [23:13:42] * Liquide quit ()
1139: [23:16:15] * blueman quit (Ping timeout: 250 seconds)
1140: [23:16:47] * Ryan-Toast quit (Quit: Ryan-Toast)
1141: [23:17:53] <Pyromanik> 12:02 < antmas> ffff
1142: [23:17:53] <Pyromanik> 12:02 < antmas> composer :|
1143: [23:18:01] <Pyromanik> this comes up at least once a week
1144: [23:18:14] <Pyromanik> and then people go "oh, you should totally use it"
1145: [23:20:39] * Ryan-Toast has joined #silverstripe
1146: [23:25:44] <simon_w> Uhoh, Mongo and Memcached are red
1147: [23:25:47] <simon_w> Someone should fix that
1148: [23:27:13] <antmas> Pyromanik: nope nope nope nope
1149: [23:27:14] <spronk> ..?
1150: [23:27:15] <antmas> can
1151: [23:27:19] <antmas> can't* stand it
1152: [23:29:25] <Colin[pi]> question about SS's orm
1153: [23:29:33] <Colin[pi]> if I go and update a DO
1154: [23:29:37] <Colin[pi]> it's attribs
1155: [23:29:42] <Colin[pi]> and they are all exactly the same as before
1156: [23:29:46] <Colin[pi]> and I ask it to write
1157: [23:29:50] <Colin[pi]> does it actually write?
1158: [23:29:59] <simon_w> Nope
1159: [23:30:10] <Colin[pi]> k so it checks to see if anything has changed first?
1160: [23:30:14] * mobiusnz`home has joined #silverstripe
1161: [23:30:26] <simon_w> Yup
1162: [23:31:10] <Colin[pi]> excellent, thanks
1163: [23:31:29] <Colin[pi]> that would explain why my first build from a remote API was slow, and the second was super fast
1164: [23:34:58] * mobiusnz`home quit (Client Quit)
1165: [23:36:43] <simon_w> Yay, all green again
1166: [23:38:47] <Colin[pi]> fuck you php and your inconsistent parameter ordering
1167: [23:39:08] <ss23> blargh
1168: [23:39:13] <ss23> all my pages are being created as removed from draft
1169: [23:39:24] <ss23> I thought I could just update to latest cms and framework and it'd be fixed
1170: [23:39:27] <ss23> y dis
1171: [23:39:30] <ss23> :(
1172: [23:40:18] <ss23> oh, composer dind't update my repo
1173: [23:40:21] <ss23> fuck composer
1174: [23:40:35] <Colin[pi]> haha
1175: [23:40:52] <antmas> yeah I can't even clone right now
1176: [23:41:01] <antmas> ;__; i has sad
1177: [23:41:13] <ss23> must better now
1178: [23:41:13] <ss23> :D
1179: [23:44:35] * mobiusnz quit (Quit: Leaving.)
1180: [23:49:17] <simon_w> Colin[pi], strings: haystack, needle. arrays: needle, haystack
1181: [23:49:29] <Colin[pi]> >_<
1182: [23:49:36] <Colin[pi]> drives me nuts to this day
1183: [23:54:29] * UncleCheese quit (Quit: UncleCheese)
1184: [23:56:07] * antmas quit (Ping timeout: 250 seconds)
1185: [23:56:29] * antmas has joined #silverstripe
1186: [23:56:36] <antmas> bs bad file number
1187: [23:56:39] <antmas> :<
1188: [23:56:43] <antmas> let me in damnit!
1189: [23:58:35] * pippy_ has joined #silverstripe

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