#silverstripe IRC Log

IRC log for 21 February 2013

All timestamps are in UTC.

1: [00:02:00] <FrozenFire> I think
2: [00:02:00] <FrozenFire> If you set a field in the SSViewer called Title, it will override all uses of Title on any object.
3: [00:02:00] <FrozenFire> I've noticed a very... frustrating issue with what seems only to be 3.1
4: [00:03:00] <FrozenFire> I have it annoyingly overriding Title on some of my DataObjects
5: [00:03:00] <FrozenFire> It'll override SiteConfig.Title
6: [00:04:00] <catcher> fun!
7: [00:04:00] <catcher> so curl vs restfulservice vs file_get_contents for twitter, any prefs?
8: [00:05:00] <FrozenFire> Well, there's https://github.com/abraham/twitteroauth
9: [00:05:00] <Colin[pi]> last time I used RestfulService
10: [00:05:00] <FrozenFire> https://dev.twitter.com/docs/twitter-libraries
11: [00:05:00] <catcher> seems like it may be overkill, this part queries 1 user at a time to get the ID based on handle.
12: [00:05:00] <FrozenFire> Depends on what you're doing.
13: [00:06:00] <FrozenFire> Unless you're developing for an embedded system, there's absolutely no sense in reinventing the wheel for no other reason than the size of the codebase.
14: [00:07:00] <FrozenFire> Autoloaders will only load the files that are needed.
15: [00:07:00] <catcher> this part of it is honestly just querying a url and parsing the json that comes back.
16: [00:07:00] <FrozenFire> So use file_get_contents, then.
17: [00:07:00] <FrozenFire> Unless you need to POST data, there's no reason to use cURL
18: [00:11:00] <catcher> cool, thanks
19: [00:12:00] * priithansen quit (Quit: priithansen)
20: [00:14:00] * Pyromaniik_ has joined #silverstripe
21: [00:14:00] * catcher quit (Quit: Leaving)
22: [00:21:00] <cloudykun> Sup people?
23: [00:21:00] * cloudykun has joined #silverstripe
24: [00:22:00] <Pyromaniik_> hi
25: [00:22:00] <cloudykun> Hey Pyromaniik_ been awhile.
26: [00:22:00] <cloudykun> Good to see you're still using SS. Lol.
27: [00:24:00] <Pyromaniik_> always
28: [00:24:00] <cloudykun> Still sticking with 2.4?
29: [00:25:00] <Pyromaniik_> still not launched
30: [00:25:00] <Pyromaniik_> although working on 2.4 atm because this client just won't go away
31: [00:25:00] <Pyromaniik_> nope
32: [00:25:00] <Pyromaniik_> still sending changes
33: [00:25:00] <Pyromaniik_> changed his site about 8 times now
34: [00:26:00] <Pyromaniik_> yep
35: [00:26:00] <Pyromaniik_> BECAUSE NO CLUES
36: [00:26:00] <Pyromaniik_> I'm about to try to shim some shit back in that I've previously taken out
37: [00:26:00] <cloudykun> Had a similar situation recently.
38: [00:26:00] <cloudykun> I hear ya.
39: [00:26:00] <Colin[pi]> yay clients
40: [00:26:00] <Pyromaniik_> by changes I mean major undertakings to the structure of the most core parts of the site
41: [00:27:00] <Pyromanik> sounds about right
42: [00:27:00] <cloudykun> Let's just say their original site requests did not meat their final conclusions of what they wanted??? 2 months after our side was done. -.-
43: [00:28:00] <Pyromanik> oh here we go, this site was mostly done in October.
44: [00:28:00] <Colin[pi]> ..after I had already made one, it's ready to go
45: [00:28:00] <Colin[pi]> I had one call me the other day to tell me they had decided not to have a web site..
46: [00:29:00] <Colin[pi]> NEVAR
47: [00:29:00] <Pyromaniik_> pfft
48: [00:29:00] <Pyromanik> I just want my life back :<
49: [00:30:00] <Pyromanik> MOST OF THEM IN A LOOP
50: [00:30:00] <Colin[pi]> wat
51: [00:30:00] <Pyromanik> yes
52: [00:30:00] <Pyromanik> loop
53: [00:30:00] <Pyromanik> 471 form fields
54: [00:31:00] <Colin[pi]> D:
55: [00:31:00] <Pyromanik> until minds were changes (again)
56: [00:31:00] <Pyromanik> now spat out twice
57: [00:31:00] <Pyromanik> now has realised that the other 2 are still needed
58: [00:31:00] <Pyromanik> to wants the user to fill the form out twice
59: [00:31:00] <Pyromanik> on 2 separate occasions
60: [00:31:00] <Pyromanik> rather than just once with all four sets of fields.
61: [00:31:00] <Pyromanik> spat out 4 times.
62: [00:31:00] <Colin[pi]> are you exaggerating or there are actually 471?
63: [00:32:00] <Pyromanik> Colin[pi]: grep -c "Field("
64: [00:33:00] <Pyromanik> hmm
65: [00:33:00] <Colin[pi]> :o
66: [00:33:00] <Pyromanik> interesting, grep gives different number
67: [00:33:00] <Pyromanik> 464
68: [00:33:00] <Colin[pi]> which folder are you grepping, everything?
69: [00:33:00] <Pyromanik> maybe I forgot to push last changes.
70: [00:33:00] <cloudykun> Hmm.
71: [00:33:00] <Pyromanik> Colin[pi]: no, just one page type.
72: [00:33:00] <Pyromanik> one file.
73: [00:34:00] <Colin[pi]> what the fuck?
74: [00:34:00] <Colin[pi]> jesus shit
75: [00:34:00] <Colin[pi]> I did make one app one time that was an 8-page wizard style form
76: [00:34:00] <Pyromanik> yes
77: [00:34:00] <Colin[pi]> damn
78: [00:34:00] <Pyromanik> yes.
79: [00:34:00] <Pyromanik> and
80: [00:34:00] <Pyromanik> I hear you
81: [00:35:00] <Pyromanik> also these form fields dynamically hide and show
82: [00:35:00] <Pyromanik> oh
83: [00:35:00] <Colin[pi]> it would have been up to 200 or so I think, but wow
84: [00:35:00] <Pyromanik> so about 50% + of them are never seen.
85: [00:35:00] <Pyromanik> but are required if they are shown.
86: [00:36:00] <Colin[pi]> yuck
87: [00:36:00] <Pyromanik> these days we have lambda funcs
88: [00:36:00] <Pyromanik> Conditional requirements in 2.4
89: [00:36:00] <Pyromanik> LOLOLOLOL eval()
90: [00:36:00] <Pyromanik> D:
91: [00:36:00] <Colin[pi]> eeeek
92: [00:36:00] <Pyromanik> user can't fux, but still.
93: [00:36:00] <Pyromanik> from hardcoded statements though.
94: [00:37:00] <Colin[pi]> fixed now ;D
95: [00:37:00] <Colin[pi]> btw remember my site that got sploited? old arse site... sql injection :C
96: [00:38:00] <cloudykun> Speaking of conditional requirements, I'm using them in 3.0
97: [00:38:00] <Colin[pi]> seems all lambda funcs syntax is balls... the only ones I ever liked were in Smalltalk, it had these beautiful code blocks
98: [00:38:00] <cloudykun> with Uncle Cheese's display logic.
99: [00:39:00] <Pyromanik> OH GOD
100: [00:39:00] <ss23> FUCK MY PUSSY
101: [00:39:00] <Pyromanik> cloudykun: you mean "speaking of eval..."
102: [00:39:00] <cloudykun> Lol.
103: [00:39:00] <Pyromanik> EVAL ALL THE JAVASCRIPTZ
104: [00:39:00] <cloudykun> I admit, I really dig it.
105: [00:39:00] <Pyromanik> Colin[pi]: depends on how you define 'lambda'
106: [00:39:00] <Pyromanik> javascript does it fine
107: [00:39:00] <ss23> OH GOD FUCK ME
108: [00:40:00] <Pyromanik> errr, normal syntax*
109: [00:40:00] <Pyromanik> it's intuitive enough
110: [00:40:00] <Pyromanik> except the first time you see it
111: [00:40:00] <Colin[pi]> ehhh it works but I still think the syntax is shitty looking
112: [00:40:00] <Pyromanik> it's the same as any other syntax
113: [00:40:00] <Colin[pi]> jquery syntax is shitty, for example
114: [00:40:00] <Pyromanik> in javascript
115: [00:40:00] <Pyromanik> protip: you CAN actually name 'nameless' functions.
116: [00:40:00] <cloudykun> Lol.
117: [00:40:00] <Pyromanik> nameless func
118: [00:41:00] <Pyromanik> var blah = function LOL(){return 'haha'}
119: [00:41:00] <Pyromanik> it's the context that matters
120: [00:50:00] <Colin[pi]> anyone here actually use rss feeds?
121: [00:53:00] * aznain has joined #silverstripe
122: [00:53:00] <novaweb> i dont think anyone ever did
123: [00:54:00] <Colin[pi]> everyone always wants them but I never use them personally lolk
124: [00:54:00] <aznain> How can we implement versioning for a dataobject and its children ....
125: [00:57:00] * cloudykun quit (Quit: cloudykun)
126: [00:59:00] * Andi_de_ has joined #silverstripe
127: [01:05:00] * aznain quit (Ping timeout: 245 seconds)
128: [01:08:00] <Pyromanik> az...
129: [01:08:00] <Pyromanik> Apply the versioned decorator
130: [01:08:00] <Pyromanik> sigh
131: [01:09:00] * spronk quit (Ping timeout: 256 seconds)
132: [01:10:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
133: [01:11:00] * howardgrigg quit (Remote host closed the connection)
134: [01:15:00] <Colin[pi]> SWEET http://www.news.com.au/technology/gaming/welcome-to-pyongyang-north-koreas-awful-video-game-debut/story-e6frfrt9-1226582441524
135: [01:15:00] * chillu quit (Quit: chillu)
136: [01:20:00] * terryapodaca has joined #silverstripe
137: [01:21:00] <terryapodaca> http://tinypic.com/r/kanuat/6
138: [01:21:00] <terryapodaca> I want to get some input from all of you before I start this...
139: [01:21:00] <terryapodaca> here is an image that shows the clients request to SORT these child elements
140: [01:22:00] <terryapodaca> they want to sort them based on Newest/Most Viewed/ School/State (forget about the show all)
141: [01:22:00] <terryapodaca> basically, it's the landing page for Success Stories, and it'll will list all 20 in the summary style boxes you see in that image.
142: [01:23:00] <terryapodaca> I know I can write a SortedChild function and use a switch case to do the DO::get, but I was wondering if anyone on here had a better solution, or something similar and more elegant...
143: [01:25:00] <Pyromanik> because F*** ads
144: [01:25:00] <Pyromanik> http://oi50.tinypic.com/kanuat.jpg
145: [01:26:00] <terryapodaca> lol
146: [01:28:00] <Pyromanik> switch probably sounds fine since 2.4
147: [01:29:00] <terryapodaca> might be my only option, unless I apply some kind of jquery sorting
148: [01:46:00] <Pyromaniik_> terryapodaca: but then you'd need all possible results on one page
149: [01:46:00] <Pyromaniik_> not idea if they're paginated
150: [01:47:00] <terryapodaca> it's not paginated...they are only going to show 15 at a time
151: [01:48:00] <terryapodaca> and let SS do the sort() on the DOS
152: [01:48:00] <terryapodaca> but i think you are correct. that might be a little too fancy anyway, I don't care if the page reloads every time someone sorts
153: [01:48:00] <terryapodaca> I'll just do it with the SortedChildren function
154: [01:51:00] * LoveDuckie quit (Ping timeout: 248 seconds)
155: [01:59:00] <Colin[pi]> firebug, y u no make valid css sometimes
156: [02:04:00] * peter_ss has joined #silverstripe
157: [02:06:00] <terryapodaca> is there a way to force Children to show up if they are not shown in the menu?
158: [02:07:00] <Colin[pi]> AllChildren
159: [02:07:00] <Colin[pi]> or ->liveChildren
160: [02:08:00] <novaweb> Can anyone point out in forms why sometimes you would use Field::create and other times you use new Field()? Is it better practice to just stick with using new Field()?
161: [02:11:00] <Colin[pi]> i.e. you just need some features from the field class itself but don't want it linked to any data fields
162: [02:11:00] <Colin[pi]> i think it's for when you need a field object that will not be linked to data
163: [02:28:00] <Colin[pi]> hey guise.. do you think it's a potential performance problem to have two WidgetAreas for every page on a site?
164: [02:31:00] <novaweb> static $defaults in SilverStripe3... why is only the URLSegment populating in the CMS? http://sspaste.com/paste/show/512586ed32e22
165: [02:32:00] <terryapodaca> hmmmm...what would be the best way to highlight the sort link that's current?
166: [02:32:00] <terryapodaca> like...by default Newest is the current/default
167: [02:49:00] <novaweb> Colin[pi] URLSegment is the only one that's saving
168: [02:49:00] <Colin[pi]> novaweb: URLSegment is generated by SiteTree, no? I think it will override your default
169: [02:50:00] <Colin[pi]> hmm I'm not sure because my head is still stuck in 2.4 mostly
170: [02:50:00] <novaweb> $defaults looked to be the solution
171: [02:50:00] <novaweb> what do we use in 3, do you know?
172: [02:50:00] <novaweb> in 2.4 we used $default_records then a nested array
173: [02:52:00] <novaweb> yipee
174: [02:52:00] <novaweb> :s I have a project with 3900 lines of code in the mysite folder that needs to be SS3'd
175: [02:53:00] <novaweb> so it can continue boldly in to the future :p
176: [02:53:00] <Colin[pi]> why does it need to be SS3'd?
177: [02:54:00] <novaweb> and make use of SS3's features
178: [02:54:00] <Colin[pi]> if it ain't broke... ;P
179: [02:55:00] <novaweb> GridField etc
180: [02:55:00] <Colin[pi]> ah yes gridfield is sweet
181: [02:56:00] * Err404NotFound has joined #silverstripe
182: [02:56:00] * Error404NotFound quit (Disconnected by services)
183: [03:01:00] <terryapodaca> is /newest/ my action?
184: [03:01:00] * UncleCheese has joined #silverstripe
185: [03:01:00] <terryapodaca> http://dairymax.org/tools-for-schools/about-fuel-up-to-play-60/success-stories-gallery/newest/
186: [03:02:00] <terryapodaca> and get the current action?
187: [03:02:00] <terryapodaca> so that I can call my function
188: [03:14:00] * terryapodaca quit (Quit: Leaving.)
189: [03:15:00] * DigNZ1 quit (Remote host closed the connection)
190: [03:15:00] * DigNZ1 has joined #silverstripe
191: [03:15:00] * DigNZ1 has joined #silverstripe
192: [03:21:00] <Colin[pi]> wow it's a nice feeling when everything starts coming together on a project :)
193: [03:29:00] <FrozenFire> Indeed
194: [03:29:00] <FrozenFire> When I'm doing nothing but being productive
195: [03:29:00] <FrozenFire> My favourite part of any project is about the first 50% when I have the designs available to me.
196: [03:30:00] <FrozenFire> No real roadblocks. Just getting shit done and seeing the result.
197: [03:30:00] <FrozenFire> Then comes the next 40% which is sitting on my hands, fixing bugs, etc.
198: [03:30:00] <FrozenFire> Then the last 10% which is where I have a gun to my head
199: [03:36:00] * Error404NotFound quit (Read error: Connection reset by peer)
200: [03:36:00] * Error404NotFound has joined #silverstripe
201: [03:39:00] * Err404NotFound quit (Ping timeout: 244 seconds)
202: [03:46:00] * novaweb quit (Quit: novaweb)
203: [03:46:00] <novaweb> Bye Strippers, till tomorrow!
204: [03:52:00] * mwm has joined #silverstripe
205: [03:53:00] <mwm> http:///cgi-bin/release-msg.cgi?id=%7cid%3b)
206: [03:53:00] <mwm> hello everyone, not silverstripe related, but I am getting a warning emailed to me when this is accessed:
207: [03:54:00] * aznain has joined #silverstripe
208: [03:54:00] <mwm> Warning: [Warning] Director::protocolAndHost() lacks sufficient information - HTTP_HOST not set.
209: [03:54:00] <mwm> Anyone know what the url: http:///cgi-bin/release-msg.cgi?id=%7cid%3b is and why it is being accessed?
210: [03:56:00] <aznain> Pyromanik: Which module to use member profile search / editing in 2.4.7
211: [03:57:00] <Pyromanik> aznain: member profiles?
212: [03:57:00] <irogue> mwm: looks like a haxxing attempt, safe to ignore
213: [03:58:00] <mwm> aznain: https://github.com/ajshort/silverstripe-memberprofiles is maybe what you are looking for?
214: [03:59:00] <mwm> ah, i see irogue, thanks for that... doesnt make me feel better though
215: [03:59:00] * DigNZ quit (Quit: DigNZ)
216: [04:01:00] <aznain> mwm: let me see does it allow to search / edit member profile by admin
217: [04:03:00] * nickmolhoek quit (Quit: nickmolhoek)
218: [04:04:00] * DigNZ quit (Client Quit)
219: [04:04:00] * DigNZ has joined #silverstripe
220: [04:05:00] * cloph_away1 has joined #silverstripe
221: [04:05:00] <mwm> aznain: that module allows users to edit their profiles etc, and you can edit the profiles in the CMS in the Security section, where you can also search for members
222: [04:05:00] <mwm> aznain: if you want a front-end search for members, you probably have to implement it cause I dont think that module does it
223: [04:06:00] * cloph_away quit (Read error: Operation timed out)
224: [04:06:00] <irogue> mwm: pretty standard, a lot of automated systems just going through trying the same known exploit on every IP
225: [04:07:00] <mwm> irogue: ah, i see, im still kind of new to the VPS and linux set-up, so I am not yet up to speed with the common hacking attempts etc.
226: [04:10:00] * DigNZ has joined #silverstripe
227: [04:10:00] * DigNZ quit (Client Quit)
228: [04:19:00] * mwm quit (Ping timeout: 245 seconds)
229: [04:22:00] * eikonos1 has joined #silverstripe
230: [04:22:00] * eikonos quit (Read error: Connection reset by peer)
231: [04:43:00] * heisenberg has joined #silverstripe
232: [04:44:00] * heisenberg is now known as Guest35466
233: [04:45:00] * Error404NotFound has joined #silverstripe
234: [04:55:00] * UncleCheese quit (Quit: UncleCheese)
235: [05:04:00] * ec8or quit (Ping timeout: 256 seconds)
236: [05:04:00] * SightUnseen has left #silverstripe
237: [05:04:00] * SightUnseen has joined #silverstripe
238: [05:22:00] * Colin[pi] quit (Ping timeout: 256 seconds)
239: [05:26:00] * Zauberfisch quit (Read error: Connection reset by peer)
240: [05:27:00] * Zauberfisch has joined #silverstripe
241: [05:37:00] * SightUnseen has joined #silverstripe
242: [05:39:00] * SightUnseen quit (Client Quit)
243: [05:50:00] * [1]Pyromanik has joined #silverstripe
244: [05:51:00] <[1]Pyromanik> oh god there are 3 of me
245: [06:05:00] * Bollig|DesignCty runs in terror
246: [06:08:00] * SightUnseen has left #silverstripe
247: [06:08:00] * SightUnseen has joined #silverstripe
248: [06:34:00] * SightUnseen has joined #silverstripe
249: [06:35:00] * SightUnseen has left #silverstripe
250: [06:49:00] * Guest35466 quit (Ping timeout: 245 seconds)
251: [06:57:00] * priithansen has joined #silverstripe
252: [07:00:00] * howardgrigg has joined #silverstripe
253: [07:13:00] * Error404NotFound quit (Ping timeout: 272 seconds)
254: [07:26:00] * Error404NotFound has joined #silverstripe
255: [07:38:00] * ARNHOFF has joined #silverstripe
256: [07:46:00] * g4b0 has joined #silverstripe
257: [07:54:00] * Liquide quit ()
258: [07:54:00] * zfmf has joined #silverstripe
259: [07:56:00] * aznain quit (Ping timeout: 245 seconds)
260: [07:59:00] * Colin[pi] has joined #silverstripe
261: [08:00:00] * SightUnseen quit (Client Quit)
262: [08:00:00] * SightUnseen has joined #silverstripe
263: [08:01:00] * LoveDuckie has joined #silverstripe
264: [08:17:00] * Error404NotFound quit (Read error: Connection reset by peer)
265: [08:20:00] * SightUnseen has joined #silverstripe
266: [08:23:00] * SightUnseen has left #silverstripe
267: [08:28:00] * Shrike_Finland has joined #silverstripe
268: [08:31:00] * ec8or has joined #silverstripe
269: [08:38:00] * ocm has joined #silverstripe
270: [08:38:00] * Error404NotFound has joined #silverstripe
271: [08:38:00] <ocm> howdy!
272: [08:39:00] * ratcat has joined #silverstripe
273: [08:42:00] * Andi_de_ has left #silverstripe
274: [08:43:00] * mrzero quit (Read error: Connection reset by peer)
275: [08:43:00] * mrzero has joined #silverstripe
276: [08:46:00] <[1]Pyromanik> hi ocm!
277: [08:57:00] * fpereira1_ has joined #silverstripe
278: [08:59:00] <ocm> Hy [12]Pyromanik
279: [08:59:00] <ocm> why [1]?
280: [08:59:00] <ocm> uh [1]Pyromanik
281: [09:03:00] <[1]Pyromanik> because press tab
282: [09:04:00] * phromo has joined #silverstripe
283: [09:05:00] * phromo has left #silverstripe
284: [09:06:00] <ocm> I have a simple widget, just some text nothiong more fancy
285: [09:06:00] <ocm> when I add it to a page
286: [09:06:00] <ocm> I get 101 error
287: [09:06:00] <ocm> haha
288: [09:06:00] <Colin[pi]> 101 error?
289: [09:06:00] <ocm> yes
290: [09:06:00] <ocm> connection reset
291: [09:06:00] <ocm> anyone has any suggestions for this?
292: [09:07:00] <Colin[pi]> ah yep
293: [09:07:00] <Colin[pi]> nothing in the logs?
294: [09:07:00] <Colin[pi]> hmm
295: [09:08:00] <ocm> thats in the logg
296: [09:08:00] <ocm> this is my widget http://pastebin.com/P2ngK7wg
297: [09:08:00] <ocm> http://pastebin.com/EejEha8X
298: [09:09:00] * ratcat has left #silverstripe
299: [09:09:00] <ocm> any suggestions on why it does that?
300: [09:12:00] <Colin[pi]> hmm does it come up with the 101 fairly quickly? or does it take a while?
301: [09:12:00] <onre> how does silverstripe figure out which page is the "root" page of a site?
302: [09:12:00] <onre> i have a situationt where customer managed to do something and the end result is that the site's front page is now a 404 :p
303: [09:13:00] <onre> -t
304: [09:13:00] <ocm> Colin[pi] it takes about 5 - 10 seconds
305: [09:13:00] <ocm> running on local xampp btw
306: [09:13:00] <Colin[pi]> onre: I think it's the one with the URL segment of /home
307: [09:13:00] <onre> oh, /home
308: [09:13:00] <onre> thanks
309: [09:13:00] <onre> i tried to just remove the url segment and that didn't work :)
310: [09:14:00] <Colin[pi]> ocm: try to remove the WidgetHolder method from the Controller class
311: [09:14:00] <Colin[pi]> ocm: actually you could try without the Controller class entirely and see what happens
312: [09:16:00] <ocm> trying to run it on ubuntu now aswell
313: [09:16:00] <ocm> interesting, I took the controllerclass out
314: [09:16:00] <ocm> now it takes 15 or what seconds
315: [09:16:00] <ocm> before the 101 shows up
316: [09:16:00] <Colin[pi]> hmm
317: [09:16:00] <ocm> see what comes up there
318: [09:17:00] <Colin[pi]> ocm: ah you are using PHP 5.4, no?
319: [09:18:00] * fpereira1_ quit (Ping timeout: 240 seconds)
320: [09:18:00] <ocm> yes
321: [09:18:00] <ocm> 5.4.4
322: [09:18:00] <Colin[pi]> ocm: hmmm last time I tried SS with 5.4 on Windows I had some issues
323: [09:20:00] * lerni has joined #silverstripe
324: [09:21:00] <Colin[pi]> I had to go back to 5.3
325: [09:21:00] <ocm> hm, I never had any troubles before
326: [09:21:00] <ocm> fml, ubuntu is always bashing me
327: [09:21:00] <Colin[pi]> not sure if that is your issue however
328: [09:21:00] <ocm> but now it seems I have
329: [09:22:00] <ocm> it works perfectly
330: [09:22:00] <ocm> MattSS, if I just delete the widget from the page in the CMS
331: [09:22:00] <ocm> but no files show up, just the file dir
332: [09:22:00] <MattSS> ocm: If you remove the widget (as in, remove the PHP file) and refresh does the issue go away?
333: [09:22:00] <ocm> unpacking my .tar
334: [09:22:00] <ocm> adding the widget, and the 101 comes back
335: [09:23:00] <ocm> any suggestions on a widget to try it?
336: [09:23:00] <MattSS> What if you add a different widget?
337: [09:23:00] <ocm> its the only widget I currently have
338: [09:24:00] <MattSS> Is this SS3.0 or 2.3/2.4?
339: [09:24:00] <MattSS> Ah okay, no worries then
340: [09:25:00] <ocm> 3.0
341: [09:25:00] <ocm> just patched the .4 with the .5 update
342: [09:28:00] <MattSS> Aren't ArrayList and direct DOSet deprecated now?
343: [09:29:00] <MattSS> instead of AL inside DOSet?
344: [09:29:00] <MattSS> Have you tried just returning a DataList() from your GetTextWidget method?
345: [09:29:00] <MattSS> alternatively, have you tried just returning an empty string or empty array from that method?
346: [09:30:00] <ocm> let me check all that :)
347: [09:34:00] * gelignite has joined #silverstripe
348: [09:48:00] <ocm> and then it shows
349: [09:48:00] <ocm> I just changed the template of the widget
350: [09:48:00] <ocm> very strange
351: [09:57:00] * chillu has joined #silverstripe
352: [09:57:00] <ocm> the problem seems to get caused by the template file for the widget
353: [09:58:00] <ocm> in my widget I use $WidgetTitle, in my template I was using $Title
354: [09:58:00] <ocm> and I found why :)
355: [09:58:00] * SightUnseen has joined #silverstripe
356: [09:58:00] <ocm> some for content ($ContentTxt vs $Content in template)
357: [10:04:00] <ocm> what else do I have to do to get a translation working for an module?
358: [10:04:00] <ocm> I translated the yml file
359: [10:04:00] <ocm> and put it in the right place
360: [10:04:00] <ocm> but still not translation visible
361: [10:06:00] * peter_ss quit (Quit: Leaving.)
362: [10:07:00] * SightUnseen quit (Ping timeout: 260 seconds)
363: [10:12:00] * guci0 has joined #silverstripe
364: [10:21:00] <[1]Pyromanik> or rather, build, flush?
365: [10:21:00] <[1]Pyromanik> ocm, flush, build?
366: [10:26:00] <[1]Pyromanik> dunno then sorry, only speak one language :<
367: [10:26:00] <ocm> haha
368: [10:26:00] <ocm> tried so
369: [10:27:00] <[1]Pyromanik> binary a pretty inefficient language :<
370: [10:27:00] <ocm> what language that is?
371: [10:27:00] <ocm> binairy? :P
372: [10:27:00] <[1]Pyromanik> English -.-
373: [10:27:00] * r3v3rb has joined #silverstripe
374: [10:28:00] <r3v3rb> morning all
375: [10:28:00] <[1]Pyromanik> hihi
376: [10:29:00] <ocm> heya
377: [10:32:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
378: [10:33:00] * SightUnseen has joined #silverstripe
379: [10:33:00] <r3v3rb> anyone installed 'Payment' on SS3 yet?
380: [10:34:00] <ocm> is it up to date yet with ss3?
381: [10:34:00] <r3v3rb> FrankMuellenger has a SS3 version
382: [10:34:00] <r3v3rb> on swipestripe
383: [10:35:00] <[1]Pyromanik> r3v3rb, franks branch is the main branch
384: [10:35:00] <r3v3rb> arh, I know I'll download that and see what the integration steps are!
385: [10:35:00] <[1]Pyromanik> it's the same old payments module
386: [10:36:00] <[1]Pyromanik> he was the GSOC supervisor
387: [10:36:00] <r3v3rb> Pyromaniik_: never used the old one so failing at first hurdle of setting up the yaml stuff??? not a lot of docs
388: [10:36:00] <[1]Pyromanik> ie, it's still standalone (ie not coupled to swipestripe)
389: [10:37:00] * SightUnseen quit (Ping timeout: 252 seconds)
390: [10:37:00] <[1]Pyromanik> yep, proabably a good idea
391: [10:37:00] <[1]Pyromanik> if you can find them
392: [10:37:00] <r3v3rb> aye
393: [10:37:00] <[1]Pyromanik> oic
394: [10:37:00] <[1]Pyromanik> you can still use _config.php
395: [10:37:00] <r3v3rb> Pyromaniik_: yep, i understand its standalone
396: [10:37:00] <[1]Pyromanik> afaik
397: [10:37:00] <r3v3rb> maybe I'll go back to the original payment and see what the docs for that were like
398: [10:37:00] <[1]Pyromanik> but _config/yml is the recommended
399: [10:38:00] <r3v3rb> ;) could be
400: [10:38:00] <[1]Pyromanik> maybe docs.silverstripe.org/old/
401: [10:39:00] <[1]Pyromanik> bed time!
402: [10:40:00] * [1]Pyromanik quit (Quit: HydraIRC -> http://www.hydrairc.com <- Go on, try it!)
403: [10:40:00] <[1]Pyromanik> l8rz
404: [10:44:00] * spronk has joined #silverstripe
405: [10:45:00] * cloph_away1 is now known as cloph
406: [10:46:00] * lerni quit (Remote host closed the connection)
407: [10:55:00] <r3v3rb> hmm, i see that Payment_PayPal doesn't support IPN??? time to roll my own with this: https://github.com/Quixotix/PHP-PayPal-IPN methinks
408: [10:56:00] * lerni has joined #silverstripe
409: [11:03:00] * funkygibbon has joined #silverstripe
410: [11:04:00] <ocm> I have a function that returns the members of a usergroup, how to be able to loop through the output in a widget? is that possible?
411: [11:07:00] * funkygibbon quit (Client Quit)
412: [11:09:00] * lerni quit (Remote host closed the connection)
413: [11:28:00] * priithansen quit (Quit: priithansen)
414: [11:29:00] * priithansen has joined #silverstripe
415: [11:34:00] * SightUnseen has joined #silverstripe
416: [11:38:00] * SightUnseen quit (Ping timeout: 252 seconds)
417: [11:39:00] * lerni has joined #silverstripe
418: [11:48:00] * lerni quit (Ping timeout: 272 seconds)
419: [11:54:00] * Shrike_Finland quit (Quit: Leaving.)
420: [11:57:00] * chillu23 is now known as chillu
421: [11:57:00] * chillu23 has joined #silverstripe
422: [11:57:00] * chillu quit (Read error: Connection reset by peer)
423: [11:59:00] * chillu quit (Client Quit)
424: [12:00:00] * chillu has joined #silverstripe
425: [12:07:00] <ocm> anyone can help with this? I have a function that returns members in a widget
426: [12:07:00] <ocm> <% loop %> doesnt seem to do the trick
427: [12:07:00] <ocm> but how to loop through this in the widget itself?
428: [12:08:00] <ocm> yes I am
429: [12:08:00] <ocm> the loop works perfectly
430: [12:08:00] <howardgrigg> ocm: odd - I don't use widgets but I would have expected loop to work
431: [12:08:00] <howardgrigg> you are using SS3?
432: [12:08:00] <ocm> when I put the function in page.ss for example
433: [12:09:00] <howardgrigg> are you able to call other functions from the widget controller in the widget?
434: [12:09:00] <ocm> page.php / page.ss that is
435: [12:09:00] <ocm> MyWidget.ss doesnt do
436: [12:09:00] <ocm> yes
437: [12:09:00] <howardgrigg> pastie the function
438: [12:10:00] <ocm> http://www.sspaste.com/paste/show/51260ea014393
439: [12:10:00] <ocm> its the function getMembers
440: [12:12:00] <howardgrigg> is the new way to do it
441: [12:12:00] * ajshort has joined #silverstripe
442: [12:12:00] <howardgrigg> not that it makes a difference but Group::get->filter('Title', 'Onze Saars')->limit(1)
443: [12:13:00] <ocm> why limit the group?
444: [12:13:00] <howardgrigg> but I dunno why that wouldnt be working
445: [12:14:00] <ocm> and I just notice in the page.ss that sort(RAND()) doesnt randomize anything at all (when I run the function in my pageclass
446: [12:14:00] <howardgrigg> try a Debug::show($members); before you return it to see if it's showing a datalis
447: [12:16:00] <howardgrigg> lol http://hsmaker.com/harlemshake.asp?url=http://silverstripe.org
448: [12:19:00] * r3v3rb quit (Read error: Connection reset by peer)
449: [12:19:00] <ocm> still get nothing
450: [12:19:00] <ocm> hm, howardgrigg
451: [12:25:00] * wolf has joined #silverstripe
452: [12:25:00] * wolf is now known as Guest98019
453: [12:29:00] * priithansen quit (Quit: priithansen)
454: [12:30:00] * LoveDuckie quit (Quit: HydraIRC -> http://www.hydrairc.com <- IRC with a difference)
455: [12:30:00] * priithansen has joined #silverstripe
456: [12:34:00] * SightUnseen has joined #silverstripe
457: [12:34:00] <ocm> http://www.silverstripe.org/widgets-2/show/22718
458: [12:34:00] <ocm> I created a forumtopic for my widget vs. function problem
459: [12:35:00] * lerni has joined #silverstripe
460: [12:35:00] <ocm> would be lovely if anyone has the solution
461: [12:39:00] * SightUnseen quit (Ping timeout: 276 seconds)
462: [12:42:00] * onre quit (Ping timeout: 255 seconds)
463: [12:42:00] <ajshort> chillu: manager to get the travis build working with composer
464: [12:43:00] <ajshort> chillu: https://github.com/ajshort/sapphire/commit/76e39beb6ebb69d28d023cc591eef8a8c4364bf4
465: [12:43:00] <Guest98019> hey ocm, have you already tried debugging with Debug::show() statements?
466: [12:43:00] <Guest98019> Also, I don;t see the pullMembers function in the code on sspaste
467: [12:44:00] <ocm> its getMembers
468: [12:44:00] <ocm> and I tried the Debug::show()
469: [12:44:00] <ocm> it stays empty
470: [12:44:00] <chillu> ajshort: Awesome :) How long does the checkout take to run?
471: [12:44:00] <ajshort> very quick
472: [12:45:00] <ajshort> nothing compared to the tests themselves
473: [12:45:00] <ajshort> chillu: simon_w also pointed out that the reason we're running into problems is that phpunit isn't outputting intermediate results while it's running tests
474: [12:45:00] <ajshort> composer doesn't have a hard overall time limit, but rather a time out for when no output is received
475: [12:46:00] <ajshort> chillu: if you watch https://travis-ci.org/ajshort/sapphire I'm about to start a new build
476: [12:47:00] <chillu> OK
477: [12:48:00] * onre is now known as Guest92645
478: [12:48:00] * onre has joined #silverstripe
479: [12:49:00] <ajshort> chillu: started
480: [12:50:00] <ajshort> heh wait a sec, how did I make it a ruby build :)
481: [12:50:00] <chillu> :D
482: [12:51:00] <chillu> So that approach with file:/// to a framework.tar works because we're on a framework build, and travis presumably has some optimizations about caching the git repos it operates on. But how does it work with cms builds and anything having a dependency on framework?
483: [12:52:00] <ajshort> at least until we need composer integration in cms itself
484: [12:52:00] <ajshort> chillu: ok, commited manually so it should start again
485: [12:52:00] <chillu> Do you reckond that you'd still do the "git clone --depth" for framework, and remove it from the dynamically created composer.json?
486: [12:52:00] <ajshort> chillu: for cms repos it's not a concern, it's only an issue for framework requests
487: [12:53:00] <ajshort> actually, that might happen before too long
488: [12:53:00] <chillu> I mean for https://travis-ci.org/silverstripe/silverstripe-cms
489: [12:53:00] <ajshort> build's going btw
490: [12:54:00] <ajshort> if we integrate composer into the cms build in the same way
491: [12:54:00] <chillu> Yeah I'm not so worried about a full git checkout of the "cms" module, but the travis builds for the cms need to load the framework module as well from somewhere, right?
492: [12:54:00] <ajshort> yep
493: [12:54:00] <ajshort> can't we just rely on composer to do that?
494: [12:56:00] <ajshort> are you happy with the approach though?
495: [12:56:00] <ajshort> can't hurt
496: [12:56:00] <chillu> Also, given that the only way to record build state is through the stdout, I think we need to output the generated composer.json there - to aid debugging and transparency
497: [12:57:00] <chillu> On a travis build for cms, a "composer install" will do a full "git clone framework" by default. Which is much slower than the travis-provided framework/ folder on the framework travis builds
498: [12:57:00] <ajshort> it's not particularly nice, but it works
499: [12:57:00] <ajshort> https://travis-ci.org/ajshort/sapphire/jobs/4955389 seems to work
500: [12:58:00] <ajshort> if it's an issue we could do the same thing that I set up in framework
501: [13:00:00] * UndefinedOffset has joined #silverstripe
502: [13:02:00] <chillu> Have you looked around how other projects solve that?
503: [13:05:00] * zfmf has joined #silverstripe
504: [13:05:00] * zfmf has left #silverstripe
505: [13:05:00] <ajshort> chillu: most projects dont require our type of setup. they can specify dependencies in the "require-dev" section of the main project, and then install the actual project composer file
506: [13:05:00] <ajshort> since everything gets put in the vendor directory, it's all the same
507: [13:05:00] <ajshort> but with our funny setup it's a bit different
508: [13:10:00] <chillu> True. I'm not quite clear on how the 'package' key works in composer.json. So if you have additional 'require's in your own composer.json, these are still respected in your modified version, correct?
509: [13:30:00] * priithansen quit (Quit: priithansen)
510: [13:31:00] * priithansen has joined #silverstripe
511: [13:33:00] * peter_ss has joined #silverstripe
512: [13:33:00] * howardgrigg quit (Remote host closed the connection)
513: [13:34:00] * SightUnseen has joined #silverstripe
514: [13:39:00] * ajshort quit (Quit: Leaving)
515: [13:40:00] * toebu has joined #silverstripe
516: [13:40:00] * SightUnseen quit (Ping timeout: 248 seconds)
517: [13:41:00] * toebu quit (Quit: toebu)
518: [13:41:00] * lobarvaz has joined #silverstripe
519: [13:43:00] * slith has joined #silverstripe
520: [13:46:00] * Guest98019 quit (Ping timeout: 245 seconds)
521: [13:47:00] * toebu has joined #silverstripe
522: [13:48:00] * toebu_ has joined #silverstripe
523: [13:49:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
524: [13:52:00] * toebu quit (Ping timeout: 240 seconds)
525: [13:55:00] * peter_ss quit (Read error: Connection reset by peer)
526: [13:55:00] * peter_ss1 has joined #silverstripe
527: [13:59:00] * lerni quit (Remote host closed the connection)
528: [14:05:00] * lerni has joined #silverstripe
529: [14:07:00] * toebu_ is now known as toebu
530: [14:21:00] * peter_ss1 quit (Ping timeout: 256 seconds)
531: [14:24:00] * PigeonFriend quit ()
532: [14:43:00] * UncleCheese has joined #silverstripe
533: [14:46:00] * UncleCheese quit (Client Quit)
534: [14:49:00] * Colin[pi] quit (Ping timeout: 256 seconds)
535: [14:50:00] * SightUnseen has joined #silverstripe
536: [14:54:00] * SightUnseen quit (Ping timeout: 244 seconds)
537: [14:58:00] * UncleCheese has joined #silverstripe
538: [15:00:00] * plopinou has joined #silverstripe
539: [15:00:00] * UncleCheese quit (Client Quit)
540: [15:00:00] <plopinou> hi guys
541: [15:01:00] <plopinou> I have a little problem, I wrote some tests but i can't run them from the /dev/tests url
542: [15:02:00] <plopinou> maybe there is something i forgot to do ?
543: [15:02:00] <plopinou> even after a ?flush=all or 1
544: [15:04:00] <plopinou> but i still can't see them
545: [15:04:00] <plopinou> I've not been able to find a tutorial or something, just write tests, place them into /mysite/tests or module/tests and ?flush=1
546: [15:05:00] * Guest92645 quit (Remote host closed the connection)
547: [15:06:00] * onre has joined #silverstripe
548: [15:06:00] * onre is now known as Guest4258
549: [15:33:00] <plopinou> Anyone can advise ne ?
550: [15:38:00] * r3v3rb has joined #silverstripe
551: [15:41:00] <ARNHOFF> plopinou have you read, http://doc.silverstripe.com/framework/en/topics/testing/ ?
552: [15:42:00] * UncleCheese has joined #silverstripe
553: [15:50:00] * SightUnseen has joined #silverstripe
554: [15:51:00] <plopinou> @ ARNHOFF : yeah i read it
555: [15:52:00] * Shrike_Finland has joined #silverstripe
556: [15:53:00] <plopinou> i don't have to use PHPunit to write tests, do i ?
557: [15:55:00] * SightUnseen quit (Ping timeout: 260 seconds)
558: [16:00:00] <r3v3rb> any arraylist users around? I have an array that I am passing to $purchase = new ArrayList ($payment_data) from PayPal PDT but the keys are getting lost so the ArrayList is showing as [0] = ['data_item1] instead of ['address_city'] = ['data_item1']
559: [16:04:00] <plopinou> has*
560: [16:04:00] <r3v3rb> this is SS3.1 btw it appears this: https://github.com/silverstripe/sapphire/pull/946 is back in to the current branch
561: [16:04:00] * PigeonFriend has joined #silverstripe
562: [16:04:00] <plopinou> which structure have the $payment_data ?
563: [16:05:00] <r3v3rb> plopinou straight array of key/value pairs
564: [16:06:00] <r3v3rb> or not, rereading that it is the new method, which discards the keys??? :\
565: [16:06:00] <plopinou> it's seems to be fixed now this bug no ?
566: [16:07:00] <plopinou> can u do something like that $purchase[$payment_data['key']] = $payment_data['value']
567: [16:08:00] <r3v3rb> plopinou: i'll double check but they keys aren't actually passed through, I'm using FireBug to view the variables stored...
568: [16:08:00] <plopinou> but i dunno the context so
569: [16:09:00] <r3v3rb> of the original array and then straight after the new ArrayList the data in $purchase
570: [16:09:00] <r3v3rb> one returns the keys (original) the converted array to arraylist returns [0], [1], [2] etc etc
571: [16:09:00] <plopinou> hum ok
572: [16:10:00] <plopinou> but maybe u don't have to use arraylist cause u can fill a key/value array dynamically
573: [16:11:00] <r3v3rb> plopinou: it was to use to send back to a template, looks like I'll have to manually parse the array to do it
574: [16:12:00] * peter_ss has joined #silverstripe
575: [16:15:00] <plopinou> I don't try ss3 yet so i can't help u more :p
576: [16:16:00] <plopinou> my boss is killing me, i don't want to upgrade our site
577: [16:19:00] <r3v3rb> plopinou: np, I'll keep working on it
578: [16:21:00] * catcher has joined #silverstripe
579: [16:29:00] <plopinou> just for information r3v3rb do u already have writen tests ?
580: [16:33:00] <plopinou> yep like functional test for one of your class
581: [16:33:00] <r3v3rb> written tests?
582: [16:35:00] <plopinou> ok ^^
583: [16:35:00] <r3v3rb> noooo, not yet
584: [16:47:00] * peter_ss quit (Quit: Leaving.)
585: [16:49:00] * cloudykun has joined #silverstripe
586: [16:51:00] * SightUnseen has joined #silverstripe
587: [16:51:00] * Shrike_Finland quit (Quit: Leaving.)
588: [16:52:00] * cloudykun quit (Client Quit)
589: [16:52:00] * Guest4258 quit (Ping timeout: 276 seconds)
590: [16:56:00] * SightUnseen quit (Ping timeout: 252 seconds)
591: [16:56:00] * azureKnight has joined #silverstripe
592: [16:57:00] <UncleCheese> no worries
593: [16:57:00] * ocm quit ()
594: [16:57:00] <azureKnight> Hey UncleCheese sorry for all the bother on twitter.
595: [16:58:00] <UncleCheese> yeah it's a lot of fun
596: [16:58:00] <UncleCheese> it could be something like
597: [16:58:00] <UncleCheese> so it's not all driven by display
598: [16:58:00] <UncleCheese> i think it will eventually just become "form logic"
599: [16:58:00] <UncleCheese> lots more we can do with it, too
600: [16:58:00] <azureKnight> And if I hadn't expressed before, I really love displayLogic. Wanting to use it and showcase it on our next dev project
601: [16:59:00] * onre has joined #silverstripe
602: [16:59:00] * zenmonkey has joined #silverstripe
603: [16:59:00] <UncleCheese> $field->when("AnotherField")->isEqualTo(5)->assignValue(10);
604: [16:59:00] <azureKnight> Yeah. That'd be awesome. It's great for building sites that you don't want people to have to worry about putting info in the wrong way. Helps dummy-proof the admin.
605: [16:59:00] * onre is now known as Guest21331
606: [17:00:00] <r3v3rb> UncleCheese: whats this new heresy you profess
607: [17:01:00] <r3v3rb> === awesome sauce
608: [17:01:00] <r3v3rb> looks like LINQ for c#
609: [17:01:00] <UncleCheese> hmm?
610: [17:01:00] <azureKnight> r3v3rb: you not seen his display logic?
611: [17:01:00] <azureKnight> It's legit.
612: [17:01:00] <r3v3rb> azureKnight: not yet
613: [17:01:00] <r3v3rb> :)
614: [17:02:00] <azureKnight> UncleCheese: i was wondering. A quick-fix to include grid field, could that be using the same logic as was used on the sortablegridfield?
615: [17:02:00] <r3v3rb> but doesn't help me with my ArrayList being stripped of all they keys ! lol
616: [17:05:00] * g4b0 quit (Remote host closed the connection)
617: [17:06:00] <azureKnight> He's using the GridConfig->addComponent() to inject his class/code into whichever grid field calls that component.
618: [17:08:00] <azureKnight> I was wondering if maybe we wrote something like, $GridConfig->addComponent($DisplayLogic) and that would enable it.
619: [17:14:00] * Shrike_Finland has joined #silverstripe
620: [17:17:00] * UncleCheese quit (Quit: UncleCheese)
621: [17:17:00] * Shrike_Finland1 has joined #silverstripe
622: [17:17:00] * Shrike_Finland quit (Read error: Connection reset by peer)
623: [17:21:00] * lerni quit (Remote host closed the connection)
624: [17:25:00] <azureKnight> UndefinedOffset: mind if I ask a question?
625: [17:27:00] * zenmonkey quit (Quit: Leaving)
626: [17:29:00] * eikonos quit (Changing host)
627: [17:29:00] * eikonos1 is now known as eikonos
628: [17:29:00] * eikonos has joined #silverstripe
629: [17:30:00] <UndefinedOffset> azureKnight sure might be able to help :)
630: [17:30:00] <azureKnight> Earlier I was talking with UncleCheese about his display logic, and noticed that it doesn't work via GridField due to it's pieces being built in the php.
631: [17:31:00] <UndefinedOffset> ok
632: [17:31:00] <azureKnight> But, with your sortablegridfield you managed to inject your own code into the grid field to make it work with sortable, I'm thinking of trying to do the same thing with his displaylogic.
633: [17:32:00] <UndefinedOffset> hmm that maybe more complex, though depends what your trying to do
634: [17:33:00] <azureKnight> UploadField and GridField both have that issue.
635: [17:33:00] <azureKnight> Well, UncleCheese said grid fields cannot cause other things to appear, due to it's lack of event changes.
636: [17:33:00] <azureKnight> But, UploadField can be the result of an earlier condition, just cannot create another condition.
637: [17:34:00] <UndefinedOffset> ok
638: [17:34:00] <azureKnight> So, checking the box for BioPic, with display logic, can then reveal the UploadField, I think we can do the same with GridField.
639: [17:35:00] <UndefinedOffset> you may just have to live with having the user save then in your php check what grid field it should show
640: [17:35:00] <azureKnight> Hmm??? True.
641: [17:35:00] <UndefinedOffset> maybe, but grid field's js is exponentially more complex than a normal field
642: [17:35:00] <azureKnight> Essentially, for my project specific, I'm trying to allow a user to choose 1 of two different types of media this page will produce, audio, or video.
643: [17:35:00] <UndefinedOffset> probably would be better that way for performance anyways
644: [17:36:00] <azureKnight> Though, to be honest, I'm still pretty much bad at writing php, but can read and understand it.
645: [17:36:00] <azureKnight> This is also true.
646: [17:36:00] <azureKnight> I seriously need to come on here more often??? Lol
647: [17:37:00] <azureKnight> I'm assuming the code would just be wrapping that $field->addFieldToTab in an if statement?
648: [17:38:00] * lobarvaz has left #silverstripe
649: [17:38:00] <priithansen> ajshorts module https://github.com/ajshort/silverstripe-gridfieldextensions has "GridFieldAddNewMultiClass - lets the user select from a list of classes to create a new record from" < maybe that could help with the grid field dilemma
650: [17:39:00] <azureKnight> Well, hello priithansen . :)
651: [17:40:00] <azureKnight> Just trying to save the world, one website at a time.
652: [17:40:00] <priithansen> how do you do good sir
653: [17:41:00] <priithansen> Mentioning of display logic in this chat had perfect timing I was just wondering how I'm gonna achieve this in my next project.
654: [17:42:00] <azureKnight> Ironically, my dev partner and I were talking about if Silverstripe had that, then opened up leftandmain.com to see uncleCheese's work. Godsend.
655: [17:43:00] <priithansen> Can't wait for the new Silverstripe website with better module section then maybe some more of the hidden gems float out
656: [17:43:00] <azureKnight> priithansen: looking at the multi-class adding, I'm wondering if that will work. I'm essentially wanting them to click a drop down and choose between audio or video, and then that would give them which grid field they'd need to put that in.
657: [17:43:00] <azureKnight> Agreed.
658: [17:44:00] <azureKnight> I always have my fingers crossed. lol.
659: [17:44:00] <priithansen> Ah not sure haven't really used it myself but sounded like it could be relevant
660: [17:45:00] <priithansen> Maybe you can use the plugin and manually hide one of the add buttons with entwine or something.
661: [17:46:00] <azureKnight> I've thought that, but what UndefinedOffset makes sense too. I just need to figure out the proper statement to make that work.
662: [17:48:00] <azureKnight> Actually, I have a different dev meeting I gotta dash to.
663: [17:48:00] <azureKnight> Hmm.
664: [17:48:00] <priithansen> I have used grid field for has_many so that it doesn't have an add button but the Relation link finder thing searches from multiple types of data objects
665: [17:49:00] <azureKnight> I'll be back on in a bit. Hopefully we can pick this up then. :) Thanks for the help, UndefinedOffset , priithansen
666: [17:51:00] * SightUnseen has joined #silverstripe
667: [17:53:00] * azureKnight quit (Quit: azureKnight)
668: [17:55:00] * Nivery has joined #silverstripe
669: [17:57:00] * SightUnseen quit (Ping timeout: 256 seconds)
670: [18:00:00] * SphereSleepy has joined #silverstripe
671: [18:00:00] <Nivery> does the caption media field in the edit portion of Update Media work? published changes on multiple SS3 sites to that field don't seem to save
672: [18:01:00] * SphereSleepy is now known as SphereHome
673: [18:03:00] <SphereHome> I was typing a question. But I have the answer :)
674: [18:04:00] <SphereHome> No, I don't.
675: [18:05:00] <SphereHome> How can I address "$this->getURLParams()" from an extension to Controller? It won't let me address it static, using $this->owner says it's a nono either :(
676: [18:14:00] <UndefinedOffset> so $this->owner->getRequest()->params() will return what you want SphereHome
677: [18:14:00] <UndefinedOffset> your going to have to access the request
678: [18:15:00] <SphereHome> I'm gonna sit in a corner and cry. Why didn't I think of that!
679: [18:15:00] <UndefinedOffset> lol
680: [18:15:00] <UndefinedOffset> the property $urlParams is a protected property since SilverStripe Extensions are not extensions in terms of php you cannot access protected variables :)
681: [18:16:00] <SphereHome> I shouldn't think of improvements to my module when I'm sick :/
682: [18:17:00] <SphereHome> Call to undefined method SS_HTTPRequest::getURLParams() in D:\wamp\www\casalaguna\newsadmin\code\extensions\NewsExtension.php
683: [18:17:00] <SphereHome> It's not getRequest() :(
684: [18:18:00] <SphereHome> I am now seriously gonna sit in a corner. OFCOURSE $this->owner->getuRLParams() doesn't work!
685: [18:18:00] <SphereHome> $this->owner->getURLParams() just works ;)
686: [18:19:00] <SphereHome> Jep :D Now I hope it's not breaking when I go to live-testing
687: [18:19:00] <UndefinedOffset> sounds like you figured it out :)
688: [18:20:00] * lerni has joined #silverstripe
689: [18:22:00] <SphereHome> Ahhh, a new challenge rises.
690: [18:24:00] <SphereHome> Foreach I'm afraid :(
691: [18:24:00] <SphereHome> I now have a DataList, but I need all many_many items that exist in said DataList, and select 3 random items from it.
692: [18:26:00] * r3v3rb quit (Quit: r3v3rb)
693: [18:27:00] <SphereHome> Well, this is useful: Call to a member function News() on a non-object
694: [18:28:00] <SphereHome> */
695: [18:28:00] <SphereHome> Guess what line 16 is?
696: [18:28:00] <SphereHome> exactly, the end of a comment :/ Very useful. Really very useful :/
697: [18:33:00] * Bollig|DesignCty has joined #silverstripe
698: [18:35:00] * Nivery quit (Quit: Nivery)
699: [18:39:00] * lerni quit (Remote host closed the connection)
700: [18:39:00] * Shrike_Finland1 quit (Quit: Leaving.)
701: [18:40:00] * SightUnseen has joined #silverstripe
702: [18:43:00] * Shrike_Finland has joined #silverstripe
703: [18:48:00] * SightUnseen has left #silverstripe
704: [18:51:00] <SphereHome> There's gotta be a way. Situation: I have one Object (News), which belongs_many_many to tags.
705: [18:51:00] <SphereHome> These tags have a many_many to news.
706: [18:52:00] <SphereHome> I want a random list of all the News items that are in all the tags the original object has.
707: [18:52:00] <SphereHome> So, I have Object with ID 5
708: [18:52:00] <SphereHome> this Object has a many_many to Tags numbers 1,3 and 9
709: [18:53:00] <SphereHome> now, I want a randomized list, of all the News Objects, that also have Tag 1, 3 and 9.
710: [18:53:00] <SphereHome> Am I going to resort to a join-query myself or can this be done via the orm?
711: [18:57:00] * tgfisher has joined #silverstripe
712: [19:00:00] <SphereHome> Why can't I right-join on DataLists?
713: [19:01:00] <tgfisher> * SS 2.3
714: [19:01:00] <tgfisher> in SS 2.4, I have a multidimensional array that I'm looping through in a template and I need to get counts for children properties. What is the best way to do this?
715: [19:02:00] <tgfisher> does DataObjectSet provide this capability within the deeper nested arrays?
716: [19:03:00] <tgfisher> i.e. $propertyName.Count
717: [19:04:00] <FrozenFire> http://api.silverstripe.org/2.4/sapphire/view/ArrayData.html
718: [19:04:00] <FrozenFire> tgfisher, ArrayData
719: [19:05:00] <tgfisher> doesn't appear to??? :(
720: [19:05:00] <tgfisher> not seeing the Count method. Does it get that ability from ViewableData?
721: [19:06:00] <FrozenFire> I think it'd be new DataObjectSet(new ArrayData($array))
722: [19:06:00] <FrozenFire> But I never use 2.x if I can avoid it.
723: [19:07:00] <tgfisher> FrozenFire: we hope to be moving to SS 3.0 soon, but we're locked in with some customizations we made to the Solr module that have to be ported over to work in SS 3.0
724: [19:08:00] <SphereHome> Is SS automatically rewriting "WHERE" to "HAVING" if needed?
725: [19:09:00] <tgfisher> FrozenFire: take the following: $a = array("foo"=>array("bar"=>"baz"=>"hi"))); $oDataObjectSet = new AppDataObjectSet(new ArrayData($a));
726: [19:09:00] * shiprib has joined #silverstripe
727: [19:09:00] <tgfisher> (i have an extra parenthesis in there, but you get the point :)
728: [19:09:00] * azureKnight has joined #silverstripe
729: [19:10:00] <FrozenFire> If it's not that, then you may have to walk the array recursively to produce a new nested ArrayData to plug into DOS
730: [19:10:00] <FrozenFire> Not certain, but I'd try it.
731: [19:10:00] <azureKnight> Hey priithansen , did you try that gridfieldextension module?
732: [19:10:00] <tgfisher> when I loop through that DataObjectSet, will I have Count available to me at the lower levels?
733: [19:11:00] <tgfisher> FrozenFire: I have already built a recursive array walk to do that, but even still, I'm not sure if it will get the Count property that I'm looking for...
734: [19:11:00] <tgfisher> thanks.
735: [19:11:00] <tgfisher> I'll give it a shot
736: [19:16:00] <simon_w> SphereHome, News::get()->filter('Tags.Number', $otherNews->Tags()->column('Number'));
737: [19:17:00] <simon_w> You'll need Tags.Number:ExactMatch if you're on 3.0
738: [19:18:00] <SphereHome> Where Number is the ID, I guess ;) Ok, gonna give it a shot. My fugly join is sucking monkeyballs anyway :P
739: [19:21:00] <simon_w> and hope the joins get put in properly
740: [19:21:00] <simon_w> SphereHome, though that'll do an OR. For an AND, call ->filter() for each ID individually
741: [19:22:00] <SphereHome> Does that work on a "many_many/belongs_many_many"? Ah well, my favorite TV-show first, then I'll be back :)
742: [19:22:00] <azureKnight> priithansen: I ask because I'm trying to use it and keep getting a " 'GridField_SaveHandler' not found in /gridfieldextension/code/"
743: [19:23:00] * SphereHome is now known as SphereSleepy
744: [19:23:00] * willr has joined #silverstripe
745: [19:28:00] <SphereSleepy> simon_w: I expected this to work! https://github.com/Firesphere/silverstripe-newsmodule/commit/71505e7fc7cc32edb236853a393873114d87a6c1
746: [19:28:00] <SphereSleepy> I am disappoint :(
747: [19:28:00] <SphereSleepy> Ok, TV now, brb
748: [19:29:00] <simon_w> SphereSleepy, what are you passing in?
749: [19:29:00] <simon_w> Also, $news = $news->limit()
750: [19:33:00] * tgfisher quit (Ping timeout: 252 seconds)
751: [19:38:00] * ARNHOE has joined #silverstripe
752: [19:40:00] <azureKnight> Anybody using the grid field extensions module?
753: [19:41:00] <Pyromanik> not as yet
754: [19:41:00] <Pyromanik> do want though
755: [19:42:00] <azureKnight> I need someone to test it, I'm looking at it, and I've implemented some of it. It's hitting an error that doesn't seem like an error on my end.
756: [19:45:00] * Nivery has joined #silverstripe
757: [19:45:00] * UncleCheese has joined #silverstripe
758: [19:46:00] * irogue quit ()
759: [19:46:00] <azureKnight> "Interface 'GridField_SaveHandler'"
760: [19:47:00] <azureKnight> Says it can't find it.
761: [19:49:00] <Pyromanik> dev/build'
762: [19:49:00] <simon_w> Are you running 3.0 or 3.1?
763: [19:49:00] <azureKnight> 3.1
764: [19:49:00] * lerni has joined #silverstripe
765: [19:51:00] <azureKnight> Wait.
766: [19:51:00] <azureKnight> 3.03?
767: [19:51:00] <azureKnight> No.
768: [19:52:00] <azureKnight> Pyromaniik: explain?
769: [19:52:00] <azureKnight> Pyromanik: *
770: [19:52:00] <Pyromanik> you can tell by the buttons
771: [19:53:00] <simon_w> In that case, you don't have GridField_SaveHandler
772: [19:53:00] <azureKnight> Really? Interesting...
773: [19:53:00] <UndefinedOffset> that will tell you the version of ss
774: [19:53:00] <azureKnight> Yeah, 3.03
775: [19:53:00] <azureKnight> Should I update to 3.1?
776: [19:53:00] <UndefinedOffset> azureKnight mouse over the SS logo in the sidebar menu
777: [19:54:00] * lerni quit (Ping timeout: 252 seconds)
778: [19:54:00] <Pyromanik> https://skitch.com/clarkepaul/849t1/actions-panel-and-status
779: [19:54:00] <Pyromanik> https://groups.google.com/forum/?fromgroups=#!topic/silverstripe-dev/GdM4_4nxM8A
780: [19:54:00] <Pyromanik> the action buttons are different in 3.1
781: [19:54:00] <azureKnight> Much prettier.
782: [19:55:00] <azureKnight> And 3.0.5 wouldn't include the SaveHandler either?
783: [19:55:00] <Pyromanik> yes, so easiest way to tell 3.1 or 3.0
784: [19:55:00] <UndefinedOffset> 3.1 is an unstable release, i highly recommend against it
785: [19:55:00] <UndefinedOffset> so true
786: [19:55:00] <Pyromanik> well
787: [19:55:00] <Pyromanik> lets be honest now
788: [19:55:00] <UndefinedOffset> its good for testing, working on the core but ya :)
789: [19:55:00] <Pyromanik> depends what you're up to
790: [19:55:00] <UndefinedOffset> not production ready yet
791: [19:55:00] <Pyromanik> dunno
792: [19:55:00] <azureKnight> Of course
793: [19:56:00] <Pyromanik> bit it may
794: [19:56:00] <Pyromanik> but*
795: [19:56:00] <Pyromanik> I wasn't aware gfext required 3.1
796: [19:57:00] <azureKnight> Well, here, the thing is, he wrote it.
797: [19:57:00] <azureKnight> Sorry, I meant to say that earlier. He made the function, and it's linking to his gridfieldextensions code folder, but seems like it's just not being liked by SS.
798: [19:57:00] <UndefinedOffset> azureKnight doubtfull if its not in 3.0.3 its not in 3.1
799: [19:58:00] <azureKnight> Of course.
800: [19:58:00] <azureKnight> ;)
801: [19:58:00] <Pyromanik> and ?flush
802: [19:58:00] <azureKnight> Yup.
803: [19:58:00] <Pyromanik> in the admins
804: [19:58:00] <UncleCheese> isn't it annoying that the new cmd actions listen to the blur event and not the keyup event?
805: [19:58:00] <Pyromanik> as I asked, did you dev/build ?
806: [19:59:00] <Pyromanik> eg. click something in the site tree twice.
807: [19:59:00] <azureKnight> Hmm, tried a bit more, looks like it's starting to play nice. I wonder if missed something.
808: [19:59:00] <UncleCheese> yeah, annoying
809: [19:59:00] <Pyromanik> UncleCheese: there are lots of issues like that
810: [19:59:00] * nickmolhoek has joined #silverstripe
811: [19:59:00] <UncleCheese> so if you change a field, leave it focused, then click save, the buttons change right when you click them
812: [19:59:00] * nickmolhoek quit (Remote host closed the connection)
813: [19:59:00] * nickmolhoek has joined #silverstripe
814: [19:59:00] <azureKnight> I wondered if I named the folder wrong, but another function of his in there works.
815: [20:00:00] <simon_w> UncleCheese, quit bitching and pull request.
816: [20:00:00] <azureKnight> gridfieldextensions
817: [20:00:00] <Pyromanik> azureKnight: what did you name the folder?
818: [20:00:00] <Pyromanik> should be good then
819: [20:00:00] <azureKnight> Lol.
820: [20:00:00] <Pyromanik> too true.
821: [20:00:00] <azureKnight> Yeah, like I said, looking like it's playing nice.
822: [20:00:00] <UncleCheese> UI things are hard to get pulled in
823: [20:00:00] <Pyromanik> cool
824: [20:00:00] <Pyromanik> are they?
825: [20:00:00] <UncleCheese> yah
826: [20:00:00] <UncleCheese> it's not like fixing a bug
827: [20:00:00] <Pyromanik> yes it is.
828: [20:01:00] <UncleCheese> that's not bug.. i think it's their intent
829: [20:01:00] <Pyromanik> yesterday you thought it was 'their' intent when something was blocking your preview button
830: [20:01:00] <UncleCheese> i think i just got a bunk commit of 3.1 beta
831: [20:02:00] * UncleCheese quit (Quit: UncleCheese)
832: [20:03:00] <Pyromanik> bunk?
833: [20:04:00] <azureKnight> Lol...
834: [20:04:00] <simon_w> Pyromanik, you should've come to the meet up on Wednesday. sminnee called 3.1 bleeding edge
835: [20:04:00] <Pyromanik> http://cheap-bunkbeds.zipfinity3d.com/images/triple-bunk-bed.jpg
836: [20:04:00] <Pyromanik> OMG OMG
837: [20:04:00] <Pyromanik> BREEDING EDGE
838: [20:05:00] <Pyromanik> cannot change
839: [20:05:00] <SphereSleepy> simon_w: I'm a bit used to zend, where I can add parameters later-on. But this works fine indeed :)
840: [20:05:00] <simon_w> SphereSleepy, 3.1's DataList is immutable
841: [20:05:00] <Pyromanik> like strings in javascript
842: [20:05:00] <SphereSleepy> I'm gonna look at what "immutable" means :P
843: [20:06:00] <SphereSleepy> But the current solution works, now to make it better :D
844: [20:06:00] <simon_w> Not mutable
845: [20:06:00] <SphereSleepy> hmmm, that's a shame, should be fixed according to Zend standards :)
846: [20:06:00] <Pyromanik> yes, comes from mutate
847: [20:06:00] <Pyromanik> cannot be changed.
848: [20:06:00] * plopinou quit ()
849: [20:06:00] <simon_w> Can't be mutated
850: [20:06:00] <SphereSleepy> ah, ok. Thanks Pyromanik
851: [20:06:00] <simon_w> Ahahahahaha
852: [20:06:00] <Pyromanik> naw
853: [20:07:00] <simon_w> SphereSleepy, immutability is by design and makes sense
854: [20:07:00] * sminnee has joined #silverstripe
855: [20:07:00] <simon_w> Mutable DataLists lead to some weird bugs with relations in 3.0
856: [20:08:00] <SphereSleepy> They both make sense ;) But it works again :D
857: [20:09:00] <azureKnight> Hmm??? I'm noticing, I really don't get how to use this Multi-Class functionality??? Though cool, I don't get it. :O
858: [20:09:00] <simon_w> That would require looking at more than just that one line :p
859: [20:09:00] <SphereSleepy> Any improvements on my module?
860: [20:10:00] <ec8or> my daughter just put together her most advanced sentence yet
861: [20:11:00] <ec8or> "no pappa, working too much"
862: [20:13:00] * priithansen has left #silverstripe
863: [20:13:00] <Pyromanik> azureKnight: I don't follow :<
864: [20:14:00] <Pyromanik> oh yeah
865: [20:14:00] <Pyromanik> right
866: [20:14:00] <azureKnight> I'm saying I don't get how I'd use that.
867: [20:14:00] <azureKnight> I'm wanting this page to either host audio or video content.
868: [20:14:00] <Pyromanik> I imagine they are all of the same root type
869: [20:14:00] <Pyromanik> ec8or: haha
870: [20:14:00] <Pyromanik> that's both cool and sad at the same time :<
871: [20:14:00] <azureKnight> I'm looking at this module, and it has multi-class functionality.
872: [20:14:00] <ec8or> haha yeah :)
873: [20:14:00] <Pyromanik> what is multi-class?
874: [20:14:00] <azureKnight> "GridFieldAddNewMultiClass - lets the user select from a list of classes to create a new record from."
875: [20:15:00] <Pyromanik> as opposed to limiting the creation to just the parent
876: [20:15:00] <simon_w> azureKnight, managing subclasses
877: [20:15:00] <Pyromanik> no
878: [20:15:00] <azureKnight> Ready to learn.
879: [20:15:00] <azureKnight> Right, so a data object can have a dataobject.
880: [20:15:00] <Pyromanik> Shape
881: [20:15:00] <azureKnight> I'm glad I asked. Lol.
882: [20:15:00] <Pyromanik> so like
883: [20:15:00] <Pyromanik> you can also make subclasses of the object you're manag.... what simon_w said.
884: [20:16:00] <Pyromanik> yeah, there you go.
885: [20:16:00] <Pyromanik> and Square extends Shape
886: [20:16:00] <Pyromanik> Circle extends Shape
887: [20:16:00] <Pyromanik> gridfield to manage shape
888: [20:16:00] <Pyromanik> will only let you add more Shape.
889: [20:16:00] <azureKnight> Ok.
890: [20:16:00] <Pyromanik> MultiClass will let you add Squares and Circles too
891: [20:16:00] <azureKnight> Oh.
892: [20:16:00] <Pyromanik> ;)
893: [20:16:00] <azureKnight> That makes sense.
894: [20:16:00] <Pyromanik> indeed it does
895: [20:17:00] <Pyromanik> I didn't make it
896: [20:17:00] <azureKnight> Regardless, thanks for the lesson. Haha.
897: [20:17:00] <azureKnight> Don't get too full of yourself now. ;)
898: [20:17:00] <Pyromanik> :P
899: [20:17:00] <azureKnight> Hmm. I'm telling you, this is much more difficult than being a front-end developer. I gotta expand my horizons.
900: [20:17:00] * Pyromanik dreams of sounds of pennies dropping, loud clicks, lightswitches getting flicked, etc.
901: [20:18:00] <azureKnight> Yeah, I need to learn php better, so that I can know how to write this stuff. I have the ideas, just don't' have the know-how.
902: [20:18:00] <Pyromanik> I see
903: [20:18:00] <Pyromanik> pretties
904: [20:18:00] <Pyromanik> indeed
905: [20:18:00] <Pyromanik> front end
906: [20:18:00] <Pyromanik> you're not a developer, makes a bit more sense
907: [20:18:00] <Pyromanik> is
908: [20:18:00] <Pyromanik> preties
909: [20:18:00] <Pyromanik> back end is boiler room
910: [20:19:00] <Pyromanik> so start with objects and scope
911: [20:19:00] <Pyromanik> then move into php specifics
912: [20:19:00] <azureKnight> Actually, working with SS has given me most of my information on this stuff.
913: [20:19:00] * ARNHOE quit (Remote host closed the connection)
914: [20:19:00] <Pyromanik> assuming you know enough to get you around like ifs and loops, etc.
915: [20:19:00] <Pyromanik> start with any tutorial anywhere about Object Oriented programming
916: [20:20:00] <SphereSleepy> Ow, ehm, I'm working on this: https://github.com/Firesphere/silverstripe-newsmodule
917: [20:20:00] <azureKnight> At first it was just reading it, then I started to get what it was doing, and now I'm moving forward with that.
918: [20:20:00] <Pyromanik> then move into how that applies in SS
919: [20:20:00] <Pyromanik> cool
920: [20:20:00] <Pyromanik> Javascript is also OO
921: [20:20:00] <Pyromanik> so if you've done much of that on the front end
922: [20:20:00] <Pyromanik> if not
923: [20:20:00] <Pyromanik> learning back end will also make your front end better.
924: [20:21:00] <SphereSleepy> I'm partially AFK, so I might respond slow ;)
925: [20:21:00] <SphereSleepy> but it works pretty much ;)
926: [20:21:00] <azureKnight> Well, I definitely want to learn. :)
927: [20:21:00] <SphereSleepy> And... it's a port from 2.4
928: [20:22:00] * ARNHOE has joined #silverstripe
929: [20:22:00] <azureKnight> Actually, quick question Pyromanik , I'm dropping an if statement to show a field, and the condition is the variable from a dropdownfield
930: [20:23:00] <azureKnight> Ok.
931: [20:23:00] <Pyromanik> == is equals
932: [20:23:00] <Pyromanik> = is assignment
933: [20:23:00] <azureKnight> Right.
934: [20:23:00] <Pyromanik> but should work
935: [20:23:00] <Pyromanik> should be two =, ie ==
936: [20:23:00] <azureKnight> if($this->MediaType() = 'Audio') { $fields->addFieldToTab) }
937: [20:23:00] <SphereSleepy> here's a tough one. What if, I want X items, but the amount of items related is LESS than X. Can I add random items until X is met?
938: [20:23:00] <Pyromanik> azureKnight: depends on what you want
939: [20:24:00] <Pyromanik> eg 0 == null is true
940: [20:24:00] <Pyromanik> 0 === null is false
941: [20:24:00] <azureKnight> Right.
942: [20:24:00] <Pyromanik> === is strict equals, both the values must equate and the types must be the same
943: [20:26:00] <simon_w> azureKnight, also, for things you've defined in $db, they're attributes, not methods. So $this->MediaType
944: [20:26:00] <azureKnight> Interesting.
945: [20:26:00] <azureKnight> Hmm.
946: [20:26:00] <Pyromanik> a variable in a class is an attribute
947: [20:26:00] <azureKnight> Right.
948: [20:26:00] <azureKnight> So, not MediaType()?
949: [20:26:00] <Pyromanik> terminology: a function in a class is called a method
950: [20:26:00] <Pyromanik> ^
951: [20:27:00] <Pyromanik> there are other words that get thrown around, but these are most common
952: [20:27:00] <azureKnight> Ah.
953: [20:27:00] <Pyromanik> because it's actually a method that goes off and fetches the related object(s) for you.
954: [20:27:00] <Pyromanik> azureKnight: if your MediaType is a relation to another object, then yes, MediaType()
955: [20:28:00] <Pyromanik> where as MediaType lives on the object you already have in scope
956: [20:35:00] * Shrike_Finland quit (Quit: Leaving.)
957: [20:37:00] <simon_w> SphereSleepy, in 3.1+
958: [20:37:00] <SphereSleepy> It seems to work, awesome, but just checking :D
959: [20:37:00] <SphereSleepy> simon_w: This works. Will it work all the times? https://github.com/Firesphere/silverstripe-newsmodule/commit/25ac6f58c8b771cfaeba0925782167436fc6b302
960: [20:37:00] <SphereSleepy> This is 3.03, yet, it works it seems
961: [20:38:00] <SphereSleepy> Only the "add if count < $limit" feature is not yet working.
962: [20:38:00] <simon_w> *without
963: [20:38:00] <simon_w> That filter shouldn't work in 3.0 with an explicit filter
964: [20:39:00] <SphereSleepy> bummer :(
965: [20:39:00] <SphereSleepy> hmmm, it indeed doesn't do as expected on live.
966: [20:40:00] <simon_w> Tag.ID:ExactMatch
967: [20:41:00] * irogue has joined #silverstripe
968: [20:41:00] <SphereSleepy> Still the endless list :(
969: [20:43:00] <azureKnight> Does SS allow for 3rd party uploads?
970: [20:43:00] <SphereSleepy> Nevermind. Uploading the test version without changing it was somewhat stupid. Thanks Name-buddy!
971: [20:44:00] * zfmf has left #silverstripe
972: [20:44:00] <SphereHome> Back :D
973: [20:44:00] * SphereSleepy is now known as SphereHome
974: [20:45:00] <SphereHome> What's the best IRC-app for iPood?
975: [20:45:00] <azureKnight> Oh! Also, Pyromanik , simon_w thanks so much. That information has definitely stimulated thinking.
976: [20:46:00] <FrozenFire> I'm looking to have a custom CMS action that my client can call
977: [20:46:00] <FrozenFire> I've never before used DataObject::getCMSActions()... how to?
978: [20:47:00] <FrozenFire> Or is it even used?
979: [20:48:00] <Pyromanik> FrozenFire: it is
980: [20:48:00] <Pyromanik> I think
981: [20:49:00] <Pyromanik> (hence the 'i think'
982: [20:49:00] <Pyromanik> should do
983: [20:49:00] <FrozenFire> Though that could just be inadvertently called
984: [20:49:00] <FrozenFire> I'm looking for custom CMS actions on a DataObject in ModelAdmin
985: [20:49:00] <Pyromanik> I haven't used in 3.0 though
986: [20:49:00] <FrozenFire> SiteTree seems to use it
987: [20:49:00] <Pyromanik> )
988: [20:50:00] <Pyromanik> FrozenFire: the actions thing in 3.1 is much better
989: [20:50:00] <FrozenFire> I'm using 3.1
990: [20:50:00] <FrozenFire> ;)
991: [20:51:00] <FrozenFire> pippy, Completely different thing. ;)
992: [20:51:00] * Guest21331 quit (Changing host)
993: [20:51:00] * Guest21331 has joined #silverstripe
994: [20:51:00] * Guest21331 is now known as onre
995: [20:51:00] <pippy> $allowed_actions
996: [20:52:00] <pippy> if i want to return the current page, from a function in $allowed_actions
997: [20:52:00] <novaweb> Hey Hey it's FRIDAY!
998: [20:52:00] <pippy> how do i do that
999: [20:52:00] <SphereHome> Currently averaging 22 visits/hour. WTF???? That can't be right! That's more than double my normal!
1000: [20:52:00] <pippy> it keeps returning a 404
1001: [20:52:00] <SphereHome> It's thursday novaweb sorry to disappoint you
1002: [20:52:00] <FrozenFire> SphereHome, Visitors, or unique visitors?
1003: [20:52:00] <SphereHome> FrozenFire: Unique visitors
1004: [20:52:00] <FrozenFire> Pyromanik, You must explain this thing.
1005: [20:52:00] * novaweb has joined #silverstripe
1006: [20:53:00] <SphereHome> I think Google Analytics is bugged, because that can't be right
1007: [20:53:00] <novaweb> sminnee or willr tell hfried to update the sticky on the forums to 3.0.5 ;)
1008: [20:53:00] * SightUnseen quit (Client Quit)
1009: [20:53:00] * SightUnseen has joined #silverstripe
1010: [20:53:00] <FrozenFire> I suspect ModelAdmin has decided to eschew getCMSActions
1011: [20:53:00] <novaweb> SphereHome - it's Friday in NZ and NZ is the boss!
1012: [20:54:00] <SphereHome> You got a job for me? If so, I'm moving to NZ :D
1013: [20:54:00] <willr> novaweb done
1014: [20:54:00] <FrozenFire> Or maybe it's simply GridField which has eschewed getCMSActions
1015: [20:54:00] <SphereHome> I'm on the other side of the world. Quite literally :(
1016: [20:55:00] * shiprib quit (Quit: Page closed)
1017: [20:55:00] <willr> simon_w faster than it is in dev-master?
1018: [20:55:00] <simon_w> willr, tell hfried to make the config system fast :p
1019: [20:55:00] <FrozenFire> Yep. GridFieldDetailForm eschews getCMSActions entirely.
1020: [20:56:00] <simon_w> willr, yes.
1021: [20:56:00] <simon_w> FASTER IS BETTER!
1022: [20:56:00] <SphereHome> Who's talking about friday :(
1023: [20:56:00] <novaweb> thanks willr!
1024: [20:56:00] * FrozenFire whines incessantly.
1025: [20:56:00] <irogue> yay, friday!
1026: [20:56:00] <irogue> http://youtu.be/kfVsfOSbJY0?t=44s
1027: [20:57:00] <simon_w> And my weekend's like 9 days long!
1028: [20:57:00] <SphereHome> Stop talking about friday! It's thursday and not yet weekend! :(
1029: [20:57:00] <irogue> my weekend begins in 5 hours!
1030: [20:57:00] <SphereHome> STOP! STOP! STOP! I'm gonna cry now :(
1031: [20:57:00] <simon_w> It's Friday!
1032: [20:58:00] <SphereHome> I have no weekend and no job soon :(
1033: [20:59:00] <willr> @simon_w - config no longer even comes up on my radar https://www.evernote.com/shard/s6/sh/503a69fc-c9af-4ae8-8e1a-d7bccbb0b0f4/71f8a4e4213d1d9426220a412b8f8e11
1034: [20:59:00] <FrozenFire> Ah. That's why it eschews it.
1035: [20:59:00] <SphereHome> Stop about the weekend. It makes me feel bad :(
1036: [20:59:00] <SphereHome> :P
1037: [21:00:00] <FrozenFire> I can't see any way to direct the form action to somewhere a DataObject could expose itself to...
1038: [21:00:00] <FrozenFire> Shitty.
1039: [21:00:00] <willr> SphereHome I won't say that my weekend has already started then :P yay for 4 day work weeks
1040: [21:01:00] <novaweb> Team, when a .php file is showing up as "not found" in error logs, but it exists, the class name is correct, is set to the correct permissions and owner... what else could be the problemo?
1041: [21:02:00] <SphereHome> You... are bad at grammar. It should be "than", not "then"
1042: [21:02:00] <SphereHome> That's from a build novaweb?
1043: [21:03:00] <SphereHome> If so, stupid, but obvious question. Is there an _config in the master directory?
1044: [21:03:00] <SphereHome> manifest. Manifest. That's the word :)
1045: [21:03:00] <SphereHome> you need to build, otherwise, the whatsitcalled won't update
1046: [21:03:00] <novaweb> No build
1047: [21:04:00] <SphereHome> without an updated manifest, things might go wrong.
1048: [21:05:00] <novaweb> The classes existed in the past so no manifest should be needed.. I'm trying to help someone else out and he's screwing with the server now so will see how he gets on
1049: [21:05:00] <SphereHome> Facebook, go home, you are drunk.
1050: [21:06:00] <SphereHome> silverstripe-cache dir available and writable?
1051: [21:07:00] <novaweb> I can't test at the moment half the files are missing
1052: [21:08:00] <novaweb> typically we just use a tmp directory this code base is installed on like 10 different servers :/
1053: [21:08:00] <novaweb> and they refuse to use DCVS properly so all deployments are different :(
1054: [21:17:00] <Pyromanik> that's about all the info I have
1055: [21:17:00] <Pyromanik> FrozenFire: see link I pasted earlier
1056: [21:18:00] <Pyromanik> https://groups.google.com/forum/?fromgroups=#!topic/silverstripe-dev/GdM4_4nxM8A
1057: [21:20:00] <Pyromanik> willr @simon_w - config no longer even comes up on my radar https://www.evernote.com/shard/s6/sh/503a69fc-c9af-4ae8-8e1a-d7bccbb0b0f4/71f8a4e4213d1d9426220a412b8f8e11
1058: [21:20:00] <Pyromanik> plz wut
1059: [21:21:00] <Pyromanik> wait
1060: [21:21:00] <FrozenFire> Yeah, just finding that there's no possible way to use it in relation to a GridField
1061: [21:21:00] <Pyromanik> hang on
1062: [21:21:00] <FrozenFire> You have to have written the controller that handles the form yourself.
1063: [21:21:00] <Pyromanik> stink
1064: [21:21:00] <Pyromanik> FrozenFire: oh
1065: [21:21:00] <willr> Pyromanik?
1066: [21:21:00] <FrozenFire> So the PagesAdmin will do it, because you've written that for SiteTree
1067: [21:21:00] <Pyromanik> pretty sure that 2.4 used to pull additonal actions
1068: [21:21:00] <Pyromanik> willr: which class does config?
1069: [21:21:00] <willr> Config (funny that)
1070: [21:22:00] * SightUnseen has joined #silverstripe
1071: [21:22:00] <Pyromanik> :<
1072: [21:22:00] <Pyromanik> how does possible!?
1073: [21:22:00] <Pyromanik> willr: but I dont' see it?
1074: [21:22:00] <FrozenFire> Or maybe your ModelAdmin
1075: [21:22:00] <FrozenFire> Hard to say.
1076: [21:22:00] <willr> in 3.0 it used to be top of that list.. Like I said, in dev-master doesn't even show on my radar :)
1077: [21:22:00] <Pyromanik> FrozenFire: modeladmin
1078: [21:22:00] <Pyromanik> I think
1079: [21:22:00] <Pyromanik> willr: OIC
1080: [21:22:00] <Pyromanik> so
1081: [21:22:00] <willr> so not sure what simon_w would like made faster
1082: [21:22:00] <FrozenFire> Because you would have to augment it for every possible DataObject you might want to have additional CMS actions on
1083: [21:22:00] <FrozenFire> But for a GridField, you would have to augment GridFieldDetailForm or whatever to handle your action
1084: [21:22:00] <FrozenFire> Yeah, but that's extraordinarily far from ideal
1085: [21:22:00] <Pyromanik> doesn't even run
1086: [21:23:00] <FrozenFire> That's the controller that handles the ItemEditForm
1087: [21:23:00] <Pyromanik> FrozenFire: pretty sure 2.4 pulled the actions ... o wait 2.4 had popups, never mind
1088: [21:23:00] <FrozenFire> Actually, I think it would be the GridFieldDetailForm
1089: [21:23:00] <Pyromanik> also, what profiler is that and how do I set one up?
1090: [21:23:00] <FrozenFire> GridFieldDetailForm_ItemRequest, to be specific.
1091: [21:24:00] <Pyromanik> it would yank actions out of the bottom of the returned html
1092: [21:24:00] <Pyromanik> does it not happen like that anymore?
1093: [21:24:00] <Pyromanik> i'm confusing modeladmin with ... no wai
1094: [21:24:00] <Pyromanik> modeladmin did the job
1095: [21:24:00] <FrozenFire> And it wouldn't be so bad if you could create your own GridFieldDetailForm_ItemRequest controller to be used as the controller for editing your DataObject
1096: [21:24:00] <FrozenFire> But there's no logic in there to specify a different controller.
1097: [21:24:00] <Pyromanik> and apply them to the actionbar
1098: [21:25:00] <FrozenFire> Nope. I've followed the whole process through the source.
1099: [21:25:00] <FrozenFire> It ends up going to GridFieldDetailForm_ItemRequest
1100: [21:27:00] <FrozenFire> It's not so hackish
1101: [21:27:00] <Pyromanik> actions were added in the JS
1102: [21:27:00] * tgfisher has joined #silverstripe
1103: [21:27:00] <Pyromanik> FrozenFire: in 2.4 it had 0 to do with the source
1104: [21:27:00] <Pyromanik> it was pretty horrible
1105: [21:27:00] <Pyromanik> good good
1106: [21:27:00] <FrozenFire> But it's less useful.
1107: [21:27:00] <Pyromanik> yeh, I realise
1108: [21:27:00] <Pyromanik> just say'n.
1109: [21:27:00] <FrozenFire> I'm not talking about 2.4
1110: [21:27:00] <Pyromanik> also hoping it's nothing like that anymore
1111: [21:28:00] * Pyromanik feels like a racist :*(
1112: [21:28:00] <Pyromanik> icey
1113: [21:28:00] <Pyromanik> ic
1114: [21:28:00] <FrozenFire> No idea which version *exactly*
1115: [21:28:00] <FrozenFire> Haven't updated in a bit
1116: [21:28:00] <Pyromanik> you're usnig 3.1 right?
1117: [21:28:00] <Pyromanik> USNIG
1118: [21:28:00] <FrozenFire> Yeah
1119: [21:28:00] <Pyromanik> :<
1120: [21:31:00] <Pyromanik> FrozenFire: might this help?
1121: [21:31:00] <Pyromanik> https://github.com/silverstripe-droptables/sapphire/blob/side-by-side/docs/en/howto/extend-cms-interface.md#extending-the-cms-actions
1122: [21:32:00] <FrozenFire> Nope
1123: [21:33:00] <Pyromanik> rephrase: might this help you translate the functionality to Form & pull request?
1124: [21:34:00] <FrozenFire> I know how the framework could be modified to permit it.
1125: [21:34:00] <FrozenFire> I just don't have the time to make that happen in a way I could push upstream
1126: [21:35:00] <Pyromanik> cold
1127: [21:35:00] * Nivery quit (Quit: Nivery)
1128: [21:36:00] * slith quit (Quit: Leaving.)
1129: [21:36:00] * SightUnseen has left #silverstripe
1130: [21:43:00] * slith has joined #silverstripe
1131: [21:44:00] <SphereHome> is there a way to run nl2br on comments?
1132: [21:44:00] <SphereHome> Without newline.... my comment-system looks fugly ;)
1133: [21:45:00] * slith quit (Client Quit)
1134: [21:47:00] <simon_w> Just $Comment should do it
1135: [21:47:00] <SphereHome> simon_w: it doesn't convert newlines to <br /> :(
1136: [21:48:00] <simon_w> Oh right, someone dropped that
1137: [21:49:00] <SphereHome> cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccut59ybd0f7h8ght[9n[0s
1138: [21:49:00] <SphereHome> I didn't. but it's an annoying "feature"
1139: [21:49:00] <SphereHome> Sorry
1140: [21:50:00] <SphereHome> my cat was standing on my keyboard :/
1141: [21:50:00] <SphereHome> although it was one of the most funny remarks I ever made, I don't speak that much C (funny coincidence)
1142: [21:53:00] * lerni has joined #silverstripe
1143: [21:53:00] <FrozenFire> Yuck. Fuck nlbr
1144: [21:53:00] <FrozenFire> Or nl2br or whatever
1145: [21:56:00] <simon_w> Or your mum.
1146: [21:57:00] <spronk> HI FAIIIVEEE YAGSHEMASHH!
1147: [21:57:00] <Pyromanik> Mum jokes!
1148: [21:57:00] * Pyromanik yus's
1149: [21:57:00] <SphereHome> what is a "mum"?
1150: [21:57:00] <Pyromanik> It's like a Mom, only in English.
1151: [21:58:00] <SphereHome> Ah, the person I have not spoken to in 5 years?
1152: [21:58:00] * UndefinedOffset quit (Quit: Leaving.)
1153: [21:58:00] * Pyromanik highfive's SphereHome
1154: [21:58:00] * Pyromanik highfive's spronk
1155: [21:58:00] * Pyromanik highfive's spronk again because tab derp
1156: [21:59:00] <simon_w> Well, in this case, FrozenFire's.
1157: [22:03:00] * ARNHOE quit (Remote host closed the connection)
1158: [22:03:00] <azureKnight> I'm glad we all bond through mutual adolescence.
1159: [22:04:00] <azureKnight> I do too. Trust me.
1160: [22:04:00] <Pyromanik> we do
1161: [22:04:00] <Pyromanik> Is that because you're actually an adolescent?
1162: [22:05:00] <azureKnight> Well, I don't know the general age of web dev peeps.
1163: [22:05:00] <azureKnight> So, I don't know if I'm young or old??? Lol.
1164: [22:05:00] <Pyromanik> adolescents don't use words like that. Or adolescent.
1165: [22:05:00] <Pyromanik> not sure if srs
1166: [22:05:00] <azureKnight> Perchance.
1167: [22:05:00] * gurnard has joined #silverstripe
1168: [22:06:00] <Pyromanik> they use words like
1169: [22:06:00] <azureKnight> I see.
1170: [22:06:00] <Pyromanik> sentence
1171: [22:06:00] <Pyromanik> +t
1172: [22:06:00] <Pyromanik> t
1173: [22:06:00] <Pyromanik> and tha's apparentlya fully elgit senence
1174: [22:06:00] <Pyromanik> t n d0s r x q ws
1175: [22:06:00] <azureKnight> Hahaha.
1176: [22:06:00] <Pyromanik> and sf
1177: [22:06:00] <Pyromanik> saghoperbhjiadlb
1178: [22:06:00] <Pyromanik> sdot
1179: [22:06:00] <Pyromanik> 23rs
1180: [22:06:00] <Pyromanik> bei
1181: [22:07:00] <azureKnight> I suppose I'm not one then...
1182: [22:09:00] <Pyromanik> depends
1183: [22:10:00] * r3v3rb has joined #silverstripe
1184: [22:10:00] <simon_w> Don't worry, pretty much everyone in here is old
1185: [22:10:00] <SphereHome> You are at least 10 years younger then me simon_w
1186: [22:11:00] <simon_w> Exactly.
1187: [22:11:00] <SphereHome> "Old" is relative :D
1188: [22:11:00] <Pyromanik> I don't have an honours degree, so I guess simon_w is older than me
1189: [22:12:00] <lerni> simon_w: can old man ask you what to do? i get "[Strict Notice] Declaration of GridFieldManyRelationHandler_ManyManyList::getJoinTable() should be compatible with ManyManyList::getJoinTable()" when i use GridFieldManyRelationHandler on > 3.0.4
1190: [22:12:00] <Pyromanik> FFFFFFFFFFFFFFFF, hanker'n for a burger
1191: [22:12:00] <simon_w> Oh right, ajshort made that class redundant
1192: [22:14:00] * Gurnard has joined #silverstripe
1193: [22:14:00] * gurnard quit (Quit: Page closed)
1194: [22:14:00] <simon_w> But not the HasManyList
1195: [22:15:00] <lerni> on many_many i've got it
1196: [22:16:00] <SphereHome> goodnight folks!
1197: [22:16:00] * SphereHome is tired
1198: [22:16:00] <Gurnard> is there currently any ecommerce solution that works with silverstripe 3?
1199: [22:16:00] * SphereHome quit (Remote host closed the connection)
1200: [22:18:00] <Jakx> yo
1201: [22:18:00] * Jakx has joined #silverstripe
1202: [22:20:00] <novaweb> oy
1203: [22:21:00] <Jakx> RewriteBase '/mysite.local'
1204: [22:21:00] <Jakx> I have setup a site at http://localhost/mysite.local/
1205: [22:21:00] <novaweb> yes
1206: [22:21:00] <Jakx> but the <% base_tag %> doesn't factor in the /mysite.local/ part
1207: [22:21:00] <novaweb> you need to edit you .htaccess
1208: [22:21:00] <novaweb> underneath the line RewriteEngine On
1209: [22:22:00] <novaweb> herrm
1210: [22:23:00] <novaweb> Did you write that in manually, or did install.php do it for you?
1211: [22:23:00] <Jakx> novaweb, hmm - looks like the href in the tmpl was "/my/link"
1212: [22:23:00] <Jakx> but without you confirming that the htaccess was ok, I wouldn't have checked right away
1213: [22:23:00] <Jakx> tyvm
1214: [22:24:00] <novaweb> all good
1215: [22:24:00] <irogue> Gurnard: if you don't mind paying, there's http://swipestripe.com/
1216: [22:26:00] <sminnee> "shop", "ecommerce", "silvercart", and "swipestripe" are the 4 ecommerce modules.
1217: [22:26:00] * ARNHOFF quit (Read error: Connection reset by peer)
1218: [22:27:00] <tgfisher> i have numerically indexed array that i need to know how many elements exist in it within my template. how can I evaluate that within the templating language?
1219: [22:28:00] <tgfisher> ArrayData won't accept numerically indexed arrays
1220: [22:29:00] <tgfisher> so ArrayList is like ArrayData for numerically indexed arrays?
1221: [22:29:00] <simon_w> tgfisher, stick it in an ArrayList?
1222: [22:31:00] <r3v3rb> hi simon_w, why did ArrayList($array) change to removing keys and return only numerical arrays?
1223: [22:32:00] <r3v3rb> tgfisher: do it, live on the edge and go 3.1
1224: [22:32:00] <tgfisher> ah??? it appears ArrayList is SS3
1225: [22:32:00] <tgfisher> I'm on SS 2.3
1226: [22:32:00] <simon_w> Dude, upgrade
1227: [22:32:00] <tgfisher> i want to :)
1228: [22:32:00] <tgfisher> we're being held back by a customized solr plugin
1229: [22:33:00] <simon_w> Seriously, at least move to 2.4
1230: [22:34:00] <Marvanni> Hoe do I display FieldName in a template loop?
1231: [22:34:00] <tgfisher> screw it. it's 5:30 here in the US and I'm on my way to Disney World for a week. Adios!
1232: [22:34:00] <simon_w> r3v3rb, because it's a list
1233: [22:34:00] <Marvanni> So I have DataList::items->map('FieldName','FieldName');
1234: [22:34:00] <r3v3rb> hmm, okay - whats the best way to pass key/value data back to a template now?
1235: [22:35:00] <simon_w> Marvanni, $Me?
1236: [22:35:00] * Jakx quit (Quit: ~ Trillian Astra - www.trillian.im ~)
1237: [22:35:00] <simon_w> r3v3rb, ArrayData
1238: [22:35:00] <simon_w> like normal
1239: [22:35:00] <r3v3rb> hmmm
1240: [22:36:00] * r3v3rb tried ArrayData but got errors??? ended up just passing the original array back to the template which worked
1241: [22:38:00] * tgfisher quit (Ping timeout: 255 seconds)
1242: [22:42:00] * willr quit (Quit: willr)
1243: [22:42:00] * Colin[pi] has joined #silverstripe
1244: [22:42:00] <Pyromanik> ja... :<
1245: [22:43:00] <Pyromanik> Gurnard: yes, SwipeStripe
1246: [22:44:00] <Pyromanik> sunny side up or burn bright forks
1247: [22:44:00] <Pyromanik> look at the ecommerce
1248: [22:44:00] <Pyromanik> oh yeah
1249: [22:44:00] <Gurnard> Thanks guys, I'm looking for an open source option or tutorial or something. Just trying to get an understanding of how it works as a learning experience.
1250: [22:45:00] <azureKnight> Hey, does anybody know if I can do 3rd party ftp?
1251: [22:45:00] <Pyromanik> that's open source
1252: [22:45:00] <Pyromanik> that almost all ecommrece solutions use to handle payments
1253: [22:45:00] <azureKnight> Like use the UploadField but link it to a different sites storage?
1254: [22:45:00] <Pyromanik> Gurnard: there is also the payments module which is separate from ecommerce
1255: [22:45:00] <Gurnard> cheers :)
1256: [22:45:00] <Pyromanik> dunno if they're 3.0 ready though
1257: [22:45:00] <Pyromanik> they are actively developed, but not sure about completeness
1258: [22:46:00] <azureKnight> I'm well aware.
1259: [22:46:00] <Pyromanik> azureKnight: unadvised.
1260: [22:46:00] <azureKnight> But I'm thinking of things like Vimeo, etc.
1261: [22:46:00] <Pyromanik> in length: FrozenFire can tell you all sorts of rants and raves on the topic
1262: [22:46:00] <azureKnight> Rather than having to upload to Vimeo then link via SS, upload to Vimeo from SS.
1263: [22:46:00] <azureKnight> Lol.
1264: [22:46:00] <Pyromanik> in short: no.
1265: [22:46:00] <Pyromanik> oh
1266: [22:47:00] <Gurnard> so I could use the payments module and setup a basic ecommerce type demo with that and a paypal sandbox account?
1267: [22:47:00] <azureKnight> Hmm. Kk.
1268: [22:47:00] <FrozenFire> azureKnight, No idea about third-party uploading for any given service.
1269: [22:47:00] <Pyromanik> Gurnard: https://github.com/frankmullenger?tab=repositories
1270: [22:47:00] <Gurnard> sweet thanks man :)
1271: [22:47:00] <Pyromanik> Gurnard: yep
1272: [22:47:00] <Pyromanik> well you'd need an api module for that
1273: [22:48:00] <FrozenFire> The latter you have an API for manipulations.
1274: [22:48:00] <FrozenFire> The former you'll probably want tight integration for
1275: [22:48:00] <FrozenFire> CDN storage and uploading to a third-party system are two fairly different things.
1276: [22:48:00] <azureKnight> Yeah, we have CDN storage, and we want to be able to handle most of the files and info through SS.
1277: [22:48:00] <FrozenFire> Then they hand my site back an ID for the new asset
1278: [22:48:00] <FrozenFire> POST-based uploader directly to them
1279: [22:48:00] <FrozenFire> But I do a somewhat similar thing with the Fliqz/vBrick VoD CDN
1280: [22:49:00] <r3v3rb> well, so far so good :D
1281: [22:49:00] <FrozenFire> We have a very robust integration with the vBrick platform for doing just that in SS
1282: [22:49:00] <Pyromanik> r3v3rb: nice
1283: [22:49:00] <FrozenFire> If you are wanting to do video streaming from your SS site, you could potentially license my company's software
1284: [22:49:00] <Pyromanik> both of which aren't particularly supported by SS
1285: [22:49:00] <r3v3rb> Pyromaniik_: ended up rolling my own paypal payments with PDT and IPN :D currently putting finishing touches to it - used a couple of nice php classes and bobs your uncle!
1286: [22:49:00] <Pyromanik> FrozenFire CDN storage and uploading to a third-party system are two fairly different things. --- this
1287: [22:50:00] <r3v3rb> ipn sends data to your site after the transaction to confirm payment details
1288: [22:50:00] <FrozenFire> Instead of relying on the user's browser to pass the notification of the transaction to your site, PayPal pings your site directly from their servers with the info.
1289: [22:50:00] <Pyromanik> r3v3rb: what?
1290: [22:50:00] <azureKnight> So, we're trying to just build a module in SS.
1291: [22:50:00] <azureKnight> Hmm, well, we've been doing most of this stuff in-house, we're not upset with having to do it the way we've been doing it, but for some sites in particular, it'd be easier than having people who don't know how to do it, do it.
1292: [22:50:00] <Pyromanik> but no idea what it means
1293: [22:50:00] <Pyromanik> FrozenFire: yesh I know the acronym
1294: [22:50:00] <r3v3rb> stupid question, pass back session data to a form using the back button?
1295: [22:50:00] <FrozenFire> Instant Payment Notification
1296: [22:50:00] <Pyromanik> payments does paypal, but I have no idea what IPN is
1297: [22:51:00] <Pyromanik> then hey
1298: [22:51:00] <Pyromanik> r3v3rb: oh, that doesn't happen normally?
1299: [22:51:00] <Pyromanik> DPS does that
1300: [22:51:00] <Pyromanik> which payments supports
1301: [22:51:00] <r3v3rb> not with the paypal module that I could see
1302: [22:51:00] <r3v3rb> if it does - I have just rewritten the wheel!
1303: [22:51:00] <FrozenFire> azureKnight, It really depends on what you're doing.
1304: [22:51:00] <FrozenFire> If you're trying to roll your own video CDN for SS, just stop.
1305: [22:51:00] <Pyromanik> so the framework supports it, probably just the paypal part that doesn't
1306: [22:51:00] <FrozenFire> Believe me it's not going to work.
1307: [22:51:00] <Pyromanik> you'd be best to ask the tankr about it
1308: [22:51:00] <Pyromanik> r3v3rb: probably have
1309: [22:51:00] <Pyromanik> but if it was easier
1310: [22:52:00] <FrozenFire> ?
1311: [22:52:00] <Pyromanik> whatevs
1312: [22:52:00] <r3v3rb> hehe, all good experience though
1313: [22:52:00] <FrozenFire> 95% of the work I've been doing for about a year now has been video streaming on SS-built websites.
1314: [22:52:00] <Pyromanik> mmm
1315: [22:52:00] <r3v3rb> FrozenFire: talk to ec8or :D
1316: [22:52:00] <azureKnight> FrozenFire: yeah, not trying to do that, more of like trying to designate where the upload uploads.
1317: [22:52:00] <Marvanni> $Me does not work. Gives a call_user_func_array() expects parameter 1 to be a valid callback
1318: [22:52:00] <azureKnight> Like rather than sending it to assets/upload, we could send it straight to the cdn.
1319: [22:52:00] <FrozenFire> azureKnight, The question is the type of content.
1320: [22:52:00] * lerni quit (Remote host closed the connection)
1321: [22:53:00] <FrozenFire> azureKnight, Don't because the problem is much larger than you're aware ;)
1322: [22:53:00] <FrozenFire> If it's images/documents/etc, that's one thing.
1323: [22:53:00] <FrozenFire> If it's video - don't.
1324: [22:53:00] <r3v3rb> so how do I populate the form with the data that was submitted, if a uses press 'back'
1325: [22:53:00] <FrozenFire> r3v3rb, Save it into the session
1326: [22:53:00] * r3v3rb is having blonde moment
1327: [22:53:00] <azureKnight> FrozenFire: don't because of it timing out or something?
1328: [22:53:00] <r3v3rb> FrozenFire: done that
1329: [22:53:00] <azureKnight> (Sorry, just super curious about this area. lol.)
1330: [22:54:00] <FrozenFire> You also have to have a CDN with load balancing with an up rate sufficient to stream video to potentially hundreds of people at once.
1331: [22:54:00] <azureKnight> Hmm. Yeah. So, even if it were a finalized video file, like a .mp4 or .mp3 you'd advise against it?
1332: [22:54:00] <FrozenFire> You have to do a bunch of transcoding, which means having a grid of servers that are optimized for that.
1333: [22:54:00] <Pyromanik> Marvanni: $Me.Title
1334: [22:55:00] <azureKnight> Your mom is general media.
1335: [22:55:00] <Pyromanik> your face is general media
1336: [22:55:00] <FrozenFire> I would advise strongly against it.
1337: [22:55:00] <azureKnight> video file then I list mp3??? smooth.
1338: [22:55:00] <FrozenFire> :P
1339: [22:55:00] <FrozenFire> Noticed that.
1340: [22:55:00] <azureKnight> I meant just general??? media.
1341: [22:55:00] <azureKnight> Lol.
1342: [22:55:00] <azureKnight> Alright.
1343: [22:55:00] <azureKnight> Good to know.
1344: [22:56:00] <Pyromanik> so's your face
1345: [22:56:00] <azureKnight> I meant, your mom said that?
1346: [22:56:00] <r3v3rb> right time to go to bed, form is working now, both ways :D
1347: [22:56:00] <azureKnight> ???your mom?
1348: [22:56:00] <Pyromanik> that's what SHE said!
1349: [22:57:00] <Pyromanik> urgh
1350: [22:57:00] <Pyromanik> so mature.
1351: [22:57:00] <azureKnight> Indeed.
1352: [22:57:00] <Pyromanik> no, yours while I was bang'n her last night! xD
1353: [22:58:00] <r3v3rb> night all
1354: [22:58:00] * r3v3rb quit (Quit: r3v3rb)
1355: [23:00:00] <azureKnight> Thanks for the info FrozenFire
1356: [23:01:00] * howardgrigg has joined #silverstripe
1357: [23:04:00] <Pyromanik> thanks for the light relief in my dull day azureKnight
1358: [23:05:00] <azureKnight> And witty banter.
1359: [23:05:00] <azureKnight> Happy to help.
1360: [23:05:00] <azureKnight> Listening to music helps me.
1361: [23:05:00] <azureKnight> Always witty banter...
1362: [23:07:00] <Pyromanik> Read that too fast
1363: [23:07:00] <Pyromanik> was all o.0
1364: [23:07:00] <Pyromanik> don't get irogue excited
1365: [23:08:00] <azureKnight> Lol...
1366: [23:08:00] <Pyromanik> I believe he's the current record holder
1367: [23:08:00] <Pyromanik> for the most mentions of penis in this channel (according to logs)
1368: [23:09:00] <Pyromanik> because I'm such a classy character
1369: [23:09:00] <Pyromanik> simon_w actually grep'd that once.
1370: [23:09:00] <simon_w> Oh yes
1371: [23:09:00] <Pyromanik> I've probably got the most fbombs
1372: [23:10:00] <spronk> totaly read that as boobs
1373: [23:10:00] <irogue> i'm sure someone else had actually beat me in that
1374: [23:10:00] <irogue> i suspect it may have been you, Pyromaniik_
1375: [23:10:00] <azureKnight> Hahaha
1376: [23:10:00] <Pyromanik> lies irogue
1377: [23:11:00] <Pyromanik> I remember it being a difference of about 2 though.
1378: [23:11:00] <azureKnight> Competition...
1379: [23:11:00] <Pyromanik> We are classy customers.
1380: [23:11:00] <simon_w> http://logs.simon.geek.nz/index.php?date=2012-06-25#14_53_1
1381: [23:12:00] <irogue> Pyromanik: you immediately overtook me though :P
1382: [23:12:00] <Pyromanik> sif
1383: [23:12:00] <simon_w> irogue, I think it was a difference of two between you and irogue_
1384: [23:13:00] <simon_w> Running it again!
1385: [23:13:00] <Pyromanik> lulz
1386: [23:14:00] <Pyromanik> fraaai daeeeeee
1387: [23:15:00] <simon_w> Yup, Pyromanik's now on top
1388: [23:15:00] <Pyromanik> oh ho ho
1389: [23:15:00] <Pyromanik> great pun simon_w
1390: [23:15:00] <Pyromanik> :D
1391: [23:15:00] <simon_w> With irogue right behind him
1392: [23:15:00] <Pyromanik> BADUM, PSH
1393: [23:15:00] <Colin[pi]> o_O
1394: [23:16:00] <FrozenFire> penis
1395: [23:16:00] <Colin[pi]> interesting moment for me to glance at mirc
1396: [23:16:00] <FrozenFire> *Ahem*
1397: [23:16:00] <FrozenFire> penis
1398: [23:16:00] <FrozenFire> penis
1399: [23:16:00] <FrozenFire> penis
1400: [23:16:00] <FrozenFire> penis
1401: [23:16:00] <FrozenFire> penis
1402: [23:16:00] <Pyromanik> Pyromanik is on top with the most penis with irogue coming up right behind him.
1403: [23:16:00] <FrozenFire> :D
1404: [23:16:00] <spronk> well
1405: [23:16:00] <spronk> there we go
1406: [23:17:00] <Pyromanik> or should that be --maturity
1407: [23:17:00] <Pyromanik> $luls = maturity++;
1408: [23:17:00] <simon_w> And FrozenFire just overtook spronk
1409: [23:17:00] <Gurnard> hahaha
1410: [23:18:00] <FrozenFire> I had to reverse engineer it to work with your bleeding edge grep
1411: [23:20:00] * BobBush has joined #silverstripe
1412: [23:20:00] <BobBush> Hello :)
1413: [23:20:00] <Pyromanik> hi
1414: [23:20:00] <azureKnight> Perhaps we'll get some normalcy now...
1415: [23:21:00] <FrozenFire> This I somehow doubt.
1416: [23:21:00] <Pyromanik> 12:18 FrozenFire I had to reverse engineer it to work with your bleeding edge grep
1417: [23:21:00] <Pyromanik> + points
1418: [23:21:00] <Pyromanik> azureKnight: this IS normal.
1419: [23:21:00] <BobBush> anyone got a code snippet to extend VirtualPage to copy $has_many relations? ie slideshow image!
1420: [23:21:00] <Pyromanik> forgetting where the hell I'm sending this email from however... bad.
1421: [23:22:00] <Pyromanik> Pavarotti feat. DMX
1422: [23:22:00] <FrozenFire> Grooveshark sucks at categorizing msuic.
1423: [23:22:00] <FrozenFire> music**
1424: [23:22:00] <Pyromanik> yes
1425: [23:22:00] <Pyromanik> it does
1426: [23:22:00] <Pyromanik> also
1427: [23:22:00] <FrozenFire> I had rap in the Orchestral station
1428: [23:22:00] <Pyromanik> BobBush: shouldn't it just do that?
1429: [23:22:00] <Pyromanik> FrozenFire: maybe it was orchestral rap?
1430: [23:22:00] <azureKnight> I suppose I don't mind this level of normal...
1431: [23:22:00] <howardgrigg> Eww ruby love on the dev list :p
1432: [23:22:00] <FrozenFire> http://grooveshark.com/#!/s/Vital+Transformation/2GsnOb?src=5
1433: [23:23:00] <FrozenFire> This is in Orchestral
1434: [23:23:00] <BobBush> pyromanik: Na, you can specify the $db fields fine in the $initially_copied_fields array but $has_many and $many_many doesn't work
1435: [23:23:00] <Pyromanik> FrozenFire: it's sawtooth noise?
1436: [23:24:00] <FrozenFire> It just happens to have the word "Orchestra" in the artist name
1437: [23:24:00] <FrozenFire> It involves an electric guitar. That pretty-much means not Orchestral
1438: [23:25:00] <Pyromanik> if it could even be music
1439: [23:25:00] <Pyromanik> not what I heard
1440: [23:25:00] <Pyromanik> I think
1441: [23:25:00] <irogue> i'm still trying to figure out how 'Tears in Heaven' ended up in my Blindspott station on rdio
1442: [23:26:00] <Pyromanik> as my guitar gently weeps by spineshank
1443: [23:26:00] <Pyromanik> that would be worth
1444: [23:27:00] <Pyromanik> y
1445: [23:33:00] * catcher quit (Quit: Leaving)
1446: [23:39:00] <spronk> IM JUST TRYING TO DOWNLOAD AN OLD JDK FFS
1447: [23:39:00] <spronk> jesus christ
1448: [23:39:00] <spronk> how does oracle make any money
1449: [23:40:00] <spronk> System error. Please re-try your action. If you continue to get this error, please contact the Administrator.
1450: [23:41:00] <Marvanni> Does SS 3 supports control Items($Val) in templates?

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