#silverstripe IRC Log

IRC log for 30 May 2013

All timestamps are in UTC.

1: [00:00:33] * Bollig|DesignCty has joined #silverstripe
2: [00:02:05] <JohnnyJimJams> No problems Leo____. My English is good, but my Silverstripe sucks.
3: [00:02:30] <Leo____> y have a relationships like this: 1 Partido to many Equipos, many Equipo to many Jugador, 1 Jugador to many Puntuaciones and 1 Partido to many Puntuaciones
4: [00:02:39] <Leo____> jaja mine too
5: [00:03:09] <Leo____> the thing is that y have to nest gridfields to get a new Puntuacion
6: [00:04:28] * SightUnseen has joined #silverstripe
7: [00:04:56] * SightUnseen has left #silverstripe
8: [00:05:43] <Leo____> because y have to first create a new "Partido", then create a new "Equipo", then create a new "Jugador" and then when I create a new "Puntuacion" for that "Jugador" in that especify "Partido", I lost the reference to the "partido"
9: [00:08:19] <Leo____> i dont know if i'm explaining right
10: [00:08:26] <JohnnyJimJams> I think I get it
11: [00:08:33] <JohnnyJimJams> but I think your design is not right
12: [00:08:43] <JohnnyJimJams> Do both players and games have ratings?
13: [00:09:10] <Leo____> yes, in a future.
14: [00:09:15] <JohnnyJimJams> Player Rating is different to a Game Rating
15: [00:09:31] <Leo____> thats because y do not want to create a duplicate players
16: [00:10:26] <Leo____> what kind of designe do you think that i have to use?
17: [00:10:38] <JohnnyJimJams> I mean, you have your "game ratings" and your "player ratings" in the same table
18: [00:11:08] <JohnnyJimJams> Have 2 different ratings tables called, "player ratings" and "game ratings"
19: [00:12:07] <JohnnyJimJams> ok one sec
20: [00:12:49] <Leo____> sorry i dont understand what you mind, yes y have two tables uno for game an one for players
21: [00:13:03] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
22: [00:13:21] <JohnnyJimJams> My mistake
23: [00:13:26] <JohnnyJimJams> your design looks fine
24: [00:14:12] * Bollig|DesignCty has joined #silverstripe
25: [00:14:22] <Leo____> for better in here i have a picture of the table designe
26: [00:14:30] <JohnnyJimJams> I just drew one
27: [00:14:32] <JohnnyJimJams> :)
28: [00:14:48] <Leo____> http://www.silverstripe.org/general-questions/show/23876
29: [00:16:07] <JohnnyJimJams> you only mentioned 4 tables
30: [00:16:13] <JohnnyJimJams> what about juegan
31: [00:16:47] <Leo____> its created for the many many
32: [00:16:52] <JohnnyJimJams> oops
33: [00:16:53] <JohnnyJimJams> :D
34: [00:16:56] <JohnnyJimJams> So it is
35: [00:16:58] <Leo____> :)
36: [00:17:28] <Leo____> its posible to pass som kind of variable trough the gridfield?
37: [00:18:09] * Bollig|DesignCty quit (Client Quit)
38: [00:18:17] <Leo____> so i can get it in the Puntuacion class?
39: [00:19:58] <JohnnyJimJams> ok I understand the problem, but I don't know the answer
40: [00:20:12] <JohnnyJimJams> Your relationships are circular (round)
41: [00:20:29] <Leo____> yes
42: [00:20:35] <JohnnyJimJams> And you want the "circle" to close automatically
43: [00:20:35] <Leo____> :S
44: [00:20:40] * Colin[pi] quit ()
45: [00:21:25] * Bollig|DesignCty has joined #silverstripe
46: [00:21:39] <Leo____> its ok, rigth know works, but i have to put the "PartidoID" manually
47: [00:21:54] <JohnnyJimJams> yeah I read your forum post
48: [00:22:31] <Leo____> thanks for your time
49: [00:23:01] <JohnnyJimJams> hmmm
50: [00:23:06] * joelpittet quit (Remote host closed the connection)
51: [00:24:31] * guci0 has joined #silverstripe
52: [00:26:44] <JohnnyJimJams> Leo____ This may help: http://www.silverstripe.org/general-questions/show/20477
53: [00:28:05] <Leo____> ok, let me see!!
54: [00:32:16] <Leo____> I see it,
55: [00:32:35] <Leo____> its not what happen to me i think
56: [00:32:44] <JohnnyJimJams> yeah, it's a bit different
57: [00:33:21] <Leo____> I have used exactly what that page have in Jugador class
58: [00:34:06] <Leo____> to link the existings jugadores by search for "nombre" y Apellido
59: [00:34:15] <Leo____> :)
60: [00:35:51] * DigNZ quit (Quit: DigNZ)
61: [00:36:15] <Leo____> me bad, in class Equipo
62: [00:37:49] <Leo____> well, Johnny thanks for your help and time!
63: [00:39:04] <Leo____> i dont bother you anymore
64: [00:41:10] <JohnnyJimJams> Good luck Leo____
65: [00:59:55] * joelpittet has joined #silverstripe
66: [01:00:56] * priithansen quit (Quit: priithansen)
67: [01:03:06] * Colin[pi] has joined #silverstripe
68: [01:03:19] <Colin[pi]> HI MOFOS
69: [01:03:24] <Colin[pi]> I mean good morning
70: [01:03:57] <EasyCo> Typical Freudian slip
71: [01:04:02] <Colin[pi]> so easy to make
72: [01:09:28] * Chilly has joined #silverstripe
73: [01:09:49] <JohnnyJimJams> I have a vagina in front of me
74: [01:09:52] * Chilly is now known as Guest4116
75: [01:09:55] <JohnnyJimJams> ...
76: [01:10:04] <JohnnyJimJams> list of tasks, I mean
77: [01:12:01] <spronk> wait
78: [01:12:02] <spronk> what
79: [01:12:23] <JohnnyJimJams> "<EasyCo> Typical Freudian slip"
80: [01:12:39] <Colin[pi]> gahhhh on the phone to a client who can't figure out where to type the site address :(
81: [01:13:35] * ugly_duck has joined #silverstripe
82: [01:15:55] <Colin[pi]> 10 minutes and she couldn't get the site open
83: [01:15:58] <Colin[pi]> ..............
84: [01:16:07] <Bollig|DesignCty> oh. wow.
85: [01:16:14] <Colin[pi]> new record I think
86: [01:16:22] <JohnnyJimJams> that sucks
87: [01:16:28] <JohnnyJimJams> She couldn't use a browser?
88: [01:16:30] <EasyCo> I just pretend there's something wrong with the phone line and hang up.
89: [01:16:44] <Colin[pi]> no she was typing into the search box first
90: [01:16:48] <Colin[pi]> and I said use the other one
91: [01:16:48] <Bollig|DesignCty> Colin[pi]: grab a copy of team viewer and do it for her—saves so much time...
92: [01:16:49] <Colin[pi]> which other one
93: [01:16:52] <Bollig|DesignCty> lol EasyCo
94: [01:16:57] <Guest4116> hello. I really hope someone can help me. I'm completely new at silverstripe. I have a site that I'm putting up onto a server - WHM. I have deployed all the files, permissions are fine as far as I can see. but I'm getting an error "File does not exist: /usr/local/apache/htdocs/sapphire" in the apache log which I'm assuming means the htaccess isn't working, I have checked mod_rewrite is enabled. just to be thoro I am accessi
95: [01:17:27] <EasyCo> You still have to get her to download and run team viewer which can be a challenge for some
96: [01:17:32] <Colin[pi]> yes
97: [01:17:51] <Colin[pi]> she's nice and they just paid me so I'm being nice too lol
98: [01:17:54] <Bollig|DesignCty> EasyCo: you bet it can, especially if they don't know where the address bar is...
99: [01:18:08] <Colin[pi]> but my eyebrow was twitching a little hehe
100: [01:18:13] <Bollig|DesignCty> Colin[pi]: glad to see there are nice people left :)
101: [01:18:15] <Bollig|DesignCty> lol
102: [01:19:00] <Guest4116> am I missing anything from silverstripe deployment process of an existing site?
103: [01:19:29] <Colin[pi]> Guest4116: does the vhost have AllowOverride All enabled?
104: [01:20:45] <Guest4116> I'm not using the vhost directly - it's WHM so I just started up a new account that covers all that. no different from other accounts on the same box
105: [01:20:56] <Guest4116> so, yes, is the answer ;)
106: [01:20:59] <Guest4116> sorry
107: [01:21:40] <Guest4116> can I check, in the document root, all that is needed is the .htaccess file?
108: [01:21:54] <Guest4116> I assume the index.php doesn't come in to play?
109: [01:22:04] <Colin[pi]> on my installs I delete index.php
110: [01:22:10] <Colin[pi]> .htaccess handles all the routing
111: [01:22:46] <Colin[pi]> actually if I leave index.php there, the URLs have index.php in them... as it seems to take precedence over the friendly routing
112: [01:22:47] <Guest4116> right, so you just have the htaccess in the root?
113: [01:22:48] <Colin[pi]> on my box anyway
114: [01:22:50] <Colin[pi]> yes
115: [01:24:23] <Guest4116> OK, well is there anything else special that I need in apache other than mod_rewrite and the AllowOverride flag?
116: [01:24:35] <Guest4116> thanks for yr help btw - :)
117: [01:26:28] <Guest4116> It must be something to do with accessing it through http://[ipaddress]/~theuser
118: [01:29:46] <Guest4116> OK, this is a site migration. So, I need to test the install on the new server before the DNS switch. So, I changed my host file adding a line with the ip address of the new server and the domain. Same thing. It looks like the .htaccess file isn't working. Sigh.
119: [01:30:19] <simon_w> Guest4116, sounds like a RewriteBase that needs updating
120: [01:30:50] * chillu has joined #silverstripe
121: [01:31:08] * joelpittet quit (Remote host closed the connection)
122: [01:31:11] <ss23> chillu: Weird seeing you on at this hour
123: [01:31:20] <simon_w> ss23, no it isn't :p
124: [01:31:29] <ss23> Yeah it is!
125: [01:31:41] * zippy__ has joined #silverstripe
126: [01:32:01] <simon_w> Just because you're usually asleep at this time
127: [01:32:05] <ss23> lol
128: [01:32:08] <ss23> Not always!
129: [01:32:28] <simon_w> Hence usually
130: [01:32:33] * DigNZ has joined #silverstripe
131: [01:32:34] * DigNZ quit (Remote host closed the connection)
132: [01:32:48] * DigNZ has joined #silverstripe
133: [01:32:53] * nickmolhoek has joined #silverstripe
134: [01:32:54] * nickmolhoek quit (Read error: Connection reset by peer)
135: [01:33:08] * nickmolhoek has joined #silverstripe
136: [01:35:37] <Pyromanik> w00t, customScript works from tempaltes
137: [01:35:41] <ss23> yay!
138: [01:35:46] * chillu quit (Ping timeout: 264 seconds)
139: [01:35:56] <Pyromanik> sounds like terribad hack, because it pretty much is, but meh.
140: [01:44:38] <simon_w> Lunch. What to have?
141: [01:47:03] <ss23> BURGER FUEL
142: [01:47:04] <Guest4116> thanks simon_w - ok, this will sound stupid, but let me 100%. I've added a test.php in the document root. and I'm getting File does not exist: /usr/local/apache/htdocs/test.php
143: [01:47:09] <ss23> simon_w: Whatever you have, come bring me some o/
144: [01:47:24] <Guest4116> Changed the RewriteBase and get the same thing
145: [01:47:34] <simon_w> Guest4116, what did you change it from/to?
146: [01:47:46] <Guest4116> so I guess that means the htaccess isn't working at all?
147: [01:47:54] <Guest4116> it was at /
148: [01:48:10] <Guest4116> now is /home/[user]/public_html/
149: [01:48:21] <simon_w> And how are you accessing the site?
150: [01:48:54] <simon_w> ss23, eh, other end of the street
151: [01:49:38] <Guest4116> added in host file [ipaddress] [domain]
152: [01:49:59] <simon_w> What URL?
153: [01:50:51] <Guest4116> the same domain that's in the host file
154: [01:51:22] <Guest4116> so the host file is working fine
155: [01:51:40] <Guest4116> with and without www
156: [01:51:47] <simon_w> No path?
157: [01:55:16] <Guest4116> no, no path. so I put a file in the doc root - test.php. without the htaccess it works fine. with the htaccess "File does not exist: /usr/local/apache/htdocs/test.php" - this is the same htaccess I have on other sites on the same VPS
158: [01:56:09] <spronk> what's the status of subsites and SS3?
159: [01:56:13] <simon_w> so the RewriteBase should be /
160: [01:56:19] <spronk> avoid like the plague?
161: [01:56:59] <simon_w> spronk, https://github.com/silverstripe/silverstripe-subsites master for 3.1, 0.4 for 3.0
162: [01:58:10] <elgrodo> simon_w: Thanks for the tip using onmatch yesterday with entwine, got it all working as desired :)
163: [01:58:35] <spronk> oh yep
164: [01:58:47] <spronk> simon_w: any idea on how buggy it is?
165: [01:58:57] <spronk> last time i used subsites was a couple of years ago with 2.4 and the experience wasn't pretty
166: [02:00:35] <simon_w> spronk, no idea
167: [02:09:05] <Pyromanik> are you back in welly ss23 ?
168: [02:09:13] <ss23> Pyromanik: Nope
169: [02:09:19] <ss23> Not yet :O
170: [02:11:32] <Guest4116> wow oh my god. well I'm not sure if this will help anyone. but I tried this on a different mac and it works fine.
171: [02:11:37] <Guest4116> as my understanding goes, when you change the host file, the browser then makes requests to the ip address entry in the host file.
172: [02:11:58] <Guest4116> but clearly, on this old mac
173: [02:12:10] <Guest4116> the requests is formatted differently
174: [02:12:39] <Guest4116> so the vhost on the box isn't kicking in
175: [02:12:56] * ^pH- has joined #silverstripe
176: [02:13:13] <Guest4116> the request is routed directly to the ip address but the host must be stripped off
177: [02:13:20] <Guest4116> or something
178: [02:13:30] <Guest4116> need to check into it more
179: [02:13:59] <Guest4116> thanks for your help though simon_w
180: [02:14:47] <spronk> Guest4116: might help to paste the apache conf
181: [02:15:11] <spronk> also, if whatever you're requesting with is http1.0, host-based won't work
182: [02:15:14] <spronk> need 1.1
183: [02:15:29] * ^pH quit (Ping timeout: 252 seconds)
184: [02:15:30] <ss23> http://f.cl.ly/items/3L2A0h2L2s2Q3M2z1e2Q/1365070553000.gif
185: [02:15:50] <Hippiee> http://9gag.com/gag/axdpAgL
186: [02:16:30] <Guest4116> spronk the conf is standard fresh whm created
187: [02:16:46] <Guest4116> didn't realise about 1.1 though
188: [02:18:50] <spronk> almost all browsers are 1.1
189: [02:19:01] <spronk> but if its a programmatic request your libs might be old or something
190: [02:27:06] <simon_w> So 9gag's another one of those sites that just takes things from the net, watermarks them and then doesn't give credit?
191: [02:27:26] <ss23> yep!
192: [02:27:52] <Guest4116> it's a browser request (chrome 27 on both machines) so both have host key. interestingly, on my machine it works on FF, Safari but not Chrome!! This is one of those weird little things that has taken me all morning and I now may have to make it my life mission to get to the bottom of it.
193: [02:28:26] <Guest4116> given that I've wasted all morning - sigh :)
194: [02:28:55] <simon_w> Guest4116, Chrome does DNS-preloading and stuff. Probably means it ignores the local hosts file
195: [02:30:01] <spronk> restart chrome
196: [02:30:06] <spronk> and clear the dns cache
197: [02:30:25] <Guest4116> it's not ignoring the host file because the requests are getting to the IPAddress in the host file. but something odd must be happening to the value of the host value because apache isn't getting it.
198: [02:30:31] <spronk> sudo dscacheutil -flushcache pre-lion
199: [02:30:55] <spronk> stick some logging in your virtualhost
200: [02:31:36] <Guest4116> alright, will be back in a mo :)
201: [02:34:37] * Chippy has joined #silverstripe
202: [02:35:15] <Chippy> ping
203: [02:35:28] * dospuntocero has joined #silverstripe
204: [02:35:31] <Chippy> ok, I'm now called Chipp not Guest
205: [02:35:46] <Chippy> flushed DNS, restarted Chrome. Same thing.
206: [02:35:59] * Guest4116 quit (Ping timeout: 250 seconds)
207: [02:36:13] <Chippy> spronk I think you're right, I need to do some logging
208: [02:36:41] <Chippy> I will and I will report back
209: [02:36:42] <spronk> yeh
210: [02:38:09] * Leo____ quit (Ping timeout: 250 seconds)
211: [02:38:41] <Chippy> thanks for your ehlp again btw :)
212: [02:45:05] * Chippy quit (Ping timeout: 250 seconds)
213: [02:47:46] * MrJeremy has joined #silverstripe
214: [02:51:37] <guci0> O co chodzi :)
215: [02:52:23] <guci0> wikbalkony.pl – newest!
216: [02:54:40] * SightUnseen has joined #silverstripe
217: [02:58:10] * SightUnseen has left #silverstripe
218: [03:02:27] * SightUnseen1 has joined #silverstripe
219: [03:02:49] * DigNZ quit (Quit: DigNZ)
220: [03:03:03] * SightUnseen1 has left #silverstripe
221: [03:06:16] * dospuntocero quit (Remote host closed the connection)
222: [03:09:20] * dospuntocero has joined #silverstripe
223: [03:10:24] * dospunto_ has joined #silverstripe
224: [03:10:25] * dospuntocero quit (Read error: Connection reset by peer)
225: [03:12:09] * cloph_away1 has joined #silverstripe
226: [03:12:36] * cloph_away quit (Ping timeout: 260 seconds)
227: [03:19:30] * DigNZ has joined #silverstripe
228: [03:19:34] * DigNZ quit (Remote host closed the connection)
229: [03:19:51] * DigNZ has joined #silverstripe
230: [03:23:42] * DigNZ quit (Client Quit)
231: [03:47:44] <Colin[pi]> meanwhile in Australia http://bit.ly/16qIcUH
232: [03:47:56] <ss23> lol
233: [03:48:00] <ss23> What a waste of a sandwhich!
234: [03:48:13] <Colin[pi]> it's like a running gag now
235: [03:48:16] <Colin[pi]> every time she goes to a school
236: [03:48:21] <Colin[pi]> someone lobs a sandwich at her
237: [03:48:24] <ss23> XD
238: [03:48:28] <Colin[pi]> eventually one will connect :D
239: [04:03:09] <simon_w> Probably underarmed
240: [04:04:16] <Bollig|DesignCty> anyone remember why in 2.4 I might get an 'array to string conversion'? once a server has been updated?
241: [04:04:37] <Bollig|DesignCty> I'm thinking maybe a php 5.4 issue perhaps??
242: [04:05:04] <simon_w> Which file?
243: [04:05:22] <Bollig|DesignCty> SSViewer.php: if(substr((string) $templateList,-3) == '.ss') {
244: [04:05:37] <simon_w> Well, can't just give you ours then
245: [04:05:39] * dospunto_ quit (Remote host closed the connection)
246: [04:05:49] <simon_w> stick an !is_array($templateList) at the front of that if
247: [04:05:49] <Bollig|DesignCty> yours?
248: [04:05:55] <simon_w> pocketrent's
249: [04:05:58] <ss23> simon_w hacks on 2.4 for a living
250: [04:06:31] <Bollig|DesignCty> ah. lol yeah, I've noticed. Also means he gets to go around saying "ours is better than yours" a lot ;)
251: [04:07:03] <Bollig|DesignCty> simon_w: do you think it's an issue of older SS vs later PHP?
252: [04:07:15] <simon_w> yes
253: [04:07:29] <simon_w> 5.4 throws warnings when converting arrays to strings
254: [04:07:44] <ss23> display_errors(0);
255: [04:07:45] <ss23> fixed
256: [04:07:46] <ss23> :D
257: [04:07:55] <Bollig|DesignCty> ah, cool. Are they the only 5.4 errors I'll encounter, or will it break a bunch of stuff?
258: [04:08:04] <Bollig|DesignCty> ss23: yeah, I'm fine with that.
259: [04:08:05] <Bollig|DesignCty> :)
260: [04:08:12] <ss23> chmod 777 / -R
261: [04:08:13] <ss23> o/ o/ o/
262: [04:08:16] <simon_w> That should be all of them
263: [04:08:22] * joelpittet has joined #silverstripe
264: [04:08:31] <Bollig|DesignCty> ah cool, thanks simon :)
265: [04:10:44] <simon_w> Home time!
266: [04:11:13] * zippy__ quit (Quit: zippy__)
267: [04:11:17] * Bollig|DesignCty hugs simon_w before he leaves!
268: [04:12:36] <ss23> :D
269: [04:12:50] <ss23> Some API's are really not well thought through
270: [04:12:56] <ss23> FYI try avoid using SwipeHQ ever
271: [04:14:41] <Colin[pi]> some of the ecommerce ones are terrible
272: [04:15:03] <ss23> Worst part is I'm using concrete5 for it, so it's like... double the fail
273: [04:15:04] <ss23> :<
274: [04:15:08] <Colin[pi]> lol
275: [04:25:26] * travis-ci has joined #silverstripe
276: [04:25:26] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#177 (3.1 - a29c51d : Sean Harvey): The build passed.
277: [04:25:26] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/1ffbbb53775a...a29c51d2db2f
278: [04:25:26] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7620666
279: [04:25:26] * travis-ci has left #silverstripe
280: [04:25:43] <Colin[pi]> what's so special about C5 anyway? I've heard it mentioned here many times but never used it
281: [04:25:55] <pippy> using entwine, is there a way to tell the silverstripe CMS that a custom form field has been changed?
282: [04:33:08] <Pyromanik> pippy: watch it for onchange
283: [04:54:34] <simon_w|air> Bollig|DesignCty, too late!
284: [05:01:48] * Liquide quit ()
285: [05:03:19] * nickmolhoek quit (Quit: nickmolhoek)
286: [05:03:29] * travis-ci has joined #silverstripe
287: [05:03:29] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#179 (3.1 - 1c7b4a0 : Sean Harvey): The build passed.
288: [05:03:29] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/a29c51d2db2f...1c7b4a0cab5e
289: [05:03:29] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7621384
290: [05:03:29] * travis-ci has left #silverstripe
291: [05:07:51] <MrJeremy> is there anyway to replicate the silverstripe file upload ajax on the public side using jQuery.ajax() function to handle forms?
292: [05:08:16] <MrJeremy> * html forms
293: [05:09:06] <MrJeremy> I have the html form all going into a api action but needs ie7 support so html5 is out
294: [05:11:15] <FrozenFire> http://malsup.com/jquery/form/
295: [05:11:24] <FrozenFire> Ajax forms
296: [05:19:32] <EasyCo> IE8 support. I feel sorry for you.
297: [05:19:53] <EasyCo> I mean ie7
298: [05:20:20] <MrJeremy> lol yeah dosnt make anything easy
299: [05:20:41] <EasyCo> You supporting an gov org?
300: [05:22:16] <MrJeremy> ok its ie8+ support. Not a govt org
301: [05:22:21] <Colin[pi]> who's got two middle fingers and doesn't support IE7? THIS GUY
302: [05:22:50] <MrJeremy> still ie8+9+10 and files in axaj are fun
303: [05:22:56] <MrJeremy> *ajax
304: [05:23:10] <EasyCo> I rarely build sites that support IE8 now
305: [05:23:36] <MrJeremy> EasyCo: Jealous
306: [05:23:41] <Colin[pi]> I like how each time it's released, it's like "IE Version X - we're better this time" "IE Version X+1 - no seriously, this time it's better"
307: [05:23:50] <EasyCo> It all depends on target market
308: [05:24:40] <EasyCo> It's all about "somewhat" graceful degradation :)
309: [05:25:00] <EasyCo> Yah like IE9 not support the matchMedia API.
310: [05:25:06] <EasyCo> That shit is just crazy.
311: [05:26:44] <EasyCo> This site annoys the fuck outta me: http://www.browseryoulovedtohate.com/
312: [05:27:17] <MrJeremy> http://malsup.com/jquery/form/ looks good. Going to try that
313: [05:31:27] * Pyromanik quit (Quit: leaving)
314: [05:31:48] <Colin[pi]> malsup makes good plugins
315: [05:38:55] * Shrike_Finland has joined #silverstripe
316: [06:20:36] * willr_ quit (Quit: willr_)
317: [06:23:39] * travis-ci has joined #silverstripe
318: [06:23:40] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#180 (master - f2460e0 : Sean Harvey): The build has errored.
319: [06:23:40] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/5d7604827527...f2460e018cae
320: [06:23:40] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7622484
321: [06:23:40] * travis-ci has left #silverstripe
322: [06:45:50] * SightUnseen has joined #silverstripe
323: [06:47:14] * SightUnseen has left #silverstripe
324: [06:50:38] * joelpittet quit (Remote host closed the connection)
325: [07:01:11] * Shrike_Finland quit (Ping timeout: 277 seconds)
326: [07:06:04] * SightUnseen has joined #silverstripe
327: [07:07:37] * SightUnseen has left #silverstripe
328: [07:15:05] * PigeonFriend has joined #silverstripe
329: [07:22:50] * chillu has joined #silverstripe
330: [07:54:11] * priithansen has joined #silverstripe
331: [07:54:29] * EasyCo quit (Quit: EasyCo)
332: [08:02:09] * kinglozzer has joined #silverstripe
333: [08:06:45] * Motoservo_ has joined #silverstripe
334: [08:07:35] * Motoservo quit (Ping timeout: 264 seconds)
335: [08:07:35] * Motoservo_ is now known as Motoservo
336: [08:09:51] * deschebbes has joined #silverstripe
337: [08:19:56] * maknz has joined #silverstripe
338: [08:19:56] * maknz quit (Changing host)
339: [08:19:56] * maknz has joined #silverstripe
340: [08:21:18] * howardgrigg has joined #silverstripe
341: [08:23:20] * zippy__ has joined #silverstripe
342: [08:23:26] * willr_ has joined #silverstripe
343: [08:25:53] <guci0> I'm going on vacation now, see you in 14 days. Tunisia welcomes me!
344: [08:25:59] <guci0> Bye!
345: [08:28:12] * willmorgan has joined #silverstripe
346: [08:30:14] <kinglozzer> simon_w|air: https://github.com/silverstripe/silverstripe-framework/pull/2034/files happy with that?
347: [08:30:28] * guci0 quit (Ping timeout: 250 seconds)
348: [08:36:23] * g4b0 has joined #silverstripe
349: [08:36:31] <g4b0> hi all
350: [08:37:25] <g4b0> I've got a problem accessing a DO through GridField via direct link
351: [08:38:20] <g4b0> in SS 3.0-beta3 I solved adding the ID of the container page via GET
352: [08:38:35] <g4b0> the URL was something likg /admin/pages/edit/EditForm/field/Regulations/item/66/edit?ID=213
353: [08:39:00] <g4b0> now I can access the DO
354: [08:39:20] <g4b0> but when I click the "Publsh" button the AJAX fails
355: [08:40:39] <willr_> g4b0 3.1 beta 3?
356: [08:41:17] <g4b0> no, now I'm on the last development version on github
357: [08:41:58] <g4b0> the problem is that I need to send an email with the direct link to DO edit page
358: [08:42:20] <g4b0> and I think I miss something into the session
359: [08:42:38] <g4b0> In beta3 the missing was the ID of the container page
360: [08:42:57] <g4b0> and I solved passing it through GET
361: [08:43:12] <g4b0> but now it's not sufficient
362: [08:43:52] <g4b0> AJAX returns: I can't handle sub-URLs of a Form object
363: [08:44:59] * Shrike_Finland has joined #silverstripe
364: [08:45:56] * howardgrigg quit (Remote host closed the connection)
365: [08:51:20] * travis-ci has joined #silverstripe
366: [08:51:20] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#182 (3.1 - 87694b7 : Simon Welsh): The build passed.
367: [08:51:20] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/1c7b4a0cab5e...87694b7f7245
368: [08:51:20] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7624935
369: [08:51:20] * travis-ci has left #silverstripe
370: [08:53:04] * openbees has joined #silverstripe
371: [08:57:15] * Colin[pi] quit ()
372: [08:58:30] <openbees> Hello folks ! I am trying to work with a custom script to add some JS on cms. It loads on first Page load and disappears once i navigate through CMS tabs. Do I need take some extra precautions for CMS JS ? code is here http://www.sspaste.com/paste/show/51a7149b2379f
373: [08:59:14] <simon_w|air> openbees, CMS JS and CSS should be loaded with LeftAndMain::require_javascript() in your _config.php
374: [09:00:18] <openbees> its there .. I can see JS and CSS
375: [09:00:44] <simon_w|air> You're only binding once
376: [09:00:49] <simon_w|air> First, use entwine
377: [09:01:03] <simon_w|air> Second, add the thing in an onmatch function
378: [09:04:24] <kinglozzer> openbees: There http://pastie.org/7982959
379: [09:05:56] <openbees> simon_w|air Kinglozzer thank you guys :)
380: [09:11:35] <g4b0> Any ideas about my previous question on accessing DO directly?
381: [09:16:00] * SightUnseen has joined #silverstripe
382: [09:16:02] * SightUnseen has left #silverstripe
383: [09:20:17] <openbees> g4b0 : can you please repeat it !
384: [09:21:07] <g4b0> openbees
385: [09:21:08] <g4b0> http://pastebin.com/epLaV0Zw
386: [09:22:47] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
387: [09:23:53] <willr_> g4b0 just tested it here and I can access directly with the custom parameter
388: [09:24:02] <willr_> what browser are you using?
389: [09:24:27] <g4b0> firefox 21
390: [09:24:45] <g4b0> I can access, but I can't save it
391: [09:26:22] <g4b0> willr_: before paste the URL
392: [09:26:30] <g4b0> enter in another page
393: [09:26:52] <g4b0> in order to reset the session variable
394: [09:27:09] <g4b0> or try with another browser
395: [09:27:19] <willr_> oh pages, figured it was a modeladmin instance
396: [09:28:04] <g4b0> nope, with modeladmin it works :)
397: [09:31:00] <g4b0> I think the problem is during AJAX's POST
398: [09:31:14] <g4b0> that's not sending the ID via GET
399: [09:31:30] <g4b0> and che currentPage still isn't in Session
400: [09:32:06] <g4b0> so /admin/pages/edit/EditForm/field/Restaurants/item/10/ItemEditForm
401: [09:32:19] <g4b0> returns "I can't handle sub-URLs of a Form object."
402: [09:33:22] <g4b0> Maybe the solution is putting currentPage in Session when visiting /admin/pages/edit/EditForm/field/Regulations/item/66/edit?ID=213
403: [09:43:05] <g4b0> I solved through my GridFieldDetailForm_ItemRequest extension
404: [09:43:13] <g4b0> http://pastebin.com/KwfMrHcN
405: [09:43:24] <g4b0> but I think that this is a SS issue
406: [09:44:01] <g4b0> it must be possible to send direct link to a edit page
407: [09:44:16] * MrJeremy quit (Quit: MrJeremy)
408: [10:01:08] <willr_> g4b0 probably good to raise this as a bug on github
409: [10:03:25] * samthejarvis has joined #silverstripe
410: [10:04:05] <g4b0> yep, but I don't know to which class relate it
411: [10:04:45] <samthejarvis> hi all, with the ORM, trying to find a way to add multiple filters to a query not using "AND" but using "OR"
412: [10:05:27] <samthejarvis> calling $datalist->filter();$datalist->filter(); joins them with "AND"
413: [10:08:21] <simon_w|air> samthejarvis, 3.1 and ->filterAny()
414: [10:08:33] <samthejarvis> hah, you're the best, thanks
415: [10:08:44] <samthejarvis> though I'm using 3.0, hrm
416: [10:10:22] <kinglozzer> samthejarvis: You could use ->where() and express it as a string, or ->filterByCallback()
417: [10:10:45] <kinglozzer> Unless simon_w|air has a better solution of course ;)
418: [10:10:45] <simon_w|air> filterByCallback() is nowhere near as efficient
419: [10:10:51] <simon_w|air> Upgrade :p
420: [10:11:08] <samthejarvis> hmm, i probably could
421: [10:11:19] <samthejarvis> thanks guys!
422: [10:11:26] <samthejarvis> saving the bacon once again
423: [10:13:27] <g4b0> willr_: https://github.com/silverstripe/silverstripe-framework/issues/2035
424: [10:17:00] * simon_w|air quit (Ping timeout: 264 seconds)
425: [10:20:54] <willmorgan> willr_ chillu - does this need any attention from anyone other than Sam? might be up my street for my work today, about to open another issue regarding password encryptors: https://github.com/silverstripe/silverstripe-framework/issues/2026
426: [10:21:33] <ss23> willmorgan: Going to make it use password_hash?
427: [10:21:42] <willmorgan> um, no
428: [10:21:47] <ss23> :<
429: [10:21:49] <chillu> willmorgan: I'll DM you
430: [10:21:52] <willmorgan> ta
431: [10:22:12] <willmorgan> it's to do with creating/changing passwords for members that don't have password encryptors
432: [10:22:35] <willmorgan> if you use the opauth module, your "password" is essentially an oauth provider vouching for your identity
433: [10:40:07] <zippy__> Evening :)
434: [10:40:50] * kerosene quit (Ping timeout: 256 seconds)
435: [10:41:02] <zippy__> So I got this list of objects which I want to split into two columns. I split them into an array but I am trying to figure out how to loop over them in my template
436: [10:41:07] <willmorgan> https://github.com/silverstripe/silverstripe-framework/issues/2036
437: [10:41:08] <willmorgan> passwordless member question/issue ^
438: [10:42:21] * kerosene has joined #silverstripe
439: [10:42:44] <zippy__> my array looks like $Columns[0] => { objects } and $Columns[1] => { objects }
440: [10:43:16] <zippy__> which is made in a functionn called getColumns() - which I access <% loop getColumns() %>
441: [10:44:13] <willr_> zippy__ so each column should be an ArrayList
442: [10:44:46] <zippy__> so $Columns[0] = new ArrayList();
443: [10:45:00] <zippy__> then $Columns[0]->add(object);
444: [10:47:10] <willr_> Your getColumns will also be an array list, so new ArrayList->push(new ArrayList()->push($obj)) sort of thing
445: [10:49:24] <zippy__> push or add?
446: [10:49:37] <willr_> same difference.
447: [10:51:29] <zippy__> ok, that part seems fine, and I can do the <% loop to iterate over the column array list, but then do I loop over that nested arrayList?
448: [10:52:39] <samthejarvis> yep zippy, you're looping through your columns and looping through the items in each column
449: [10:53:12] <zippy__> the 'and' doesn't appear to be happen
450: [10:53:19] <zippy__> I think I need a control block / another loop
451: [10:56:17] <samthejarvis> yep, a nested loop
452: [10:56:43] <zippy__> <% loop %> ?
453: [10:57:40] <samthejarvis> <% loop Columns %><div class="column-one-third"><% loop Items %><div class="item">$Title</div><% end_loop %></div><% end_loop %>
454: [10:57:46] <samthejarvis> got it?
455: [10:58:32] <samthejarvis> just got to make sure your Columns function is making correctly structured arraylists
456: [10:59:09] * priithansen quit (Quit: priithansen)
457: [10:59:43] <zippy__> imm I wonder if that is my problem, as loop Items - gives me nothing, but <% control Shift %> does
458: [10:59:51] <zippy__> <% loop Items %>
459: [11:06:04] <samthejarvis> right, i'll get an example that does just this for you
460: [11:07:30] <samthejarvis> righto, so, sorry, you want your Columns to return something like::
461: [11:10:49] <samthejarvis> something like http://puu.sh/34msg.txt
462: [11:11:07] <samthejarvis> if you don't want "Title" just remove that line
463: [11:12:18] <samthejarvis> you can of course rename "Items" to anything, "Products", "Bananas"
464: [11:14:22] <samthejarvis> that's the kind of structure you want
465: [11:15:12] <zippy__> I see now
466: [11:15:29] <zippy__> I was struggling to get the name of the nested loop! which was driving me bannas
467: [11:16:00] <willr_> @willmorgan, validation was one thing that got culled from 3.0. Was started, but never got anywhere. Some planning on http://open.silverstripe.org/wiki/development/validation-new
468: [11:16:32] <willr_> and http://open.silverstripe.org/wiki/development/validation
469: [11:17:26] <zippy__> willr_: Was that the javascript validation?
470: [11:17:38] <willr_> js + php
471: [11:18:17] <zippy__> there did seem to be some basic php stuff (at leas the requires) when I was doing stuff with 3.0
472: [11:19:28] <willr_> PHP Validation is still there yes in 3.0, but the same as it was in 2.4. Even some of the old behaviour JS validation is still around. 3.0 was going to see a refactor of all the validation framework
473: [11:20:30] <zippy__> samthejarvis: Fatal error: Call to a member function obj() on a non-object in /framework/view/SSViewer.php on line 68 - v nearly
474: [11:21:21] * willr_ quit (Quit: willr_)
475: [11:21:29] * gelignite has joined #silverstripe
476: [11:21:51] * openbees quit (Quit: Leaving)
477: [11:37:31] <zippy__> samthejarvis: Seems I have to create the main ArrayList first - then ->add() the New ArrayData(array('Items' => ….
478: [11:37:35] <zippy__> so that works now
479: [11:37:47] <zippy__> thanks
480: [11:41:09] * zfmf1 has joined #silverstripe
481: [11:44:07] * ^pH has joined #silverstripe
482: [11:46:57] * ^pH- quit (Ping timeout: 252 seconds)
483: [11:54:28] <samthejarvis> heh, good job zipp__
484: [12:03:14] * samthejarvis quit (Ping timeout: 250 seconds)
485: [12:05:46] * UndefinedOffset has joined #silverstripe
486: [12:06:19] * pex has joined #silverstripe
487: [12:30:17] * RVXD has joined #silverstripe
488: [12:40:52] * kinglozz_ has joined #silverstripe
489: [12:43:35] * kinglozzer quit (Ping timeout: 264 seconds)
490: [12:54:15] <RVXD> Does anyone know if it is by default possible to embed vimeo videos in the CMS of SS 3? Seems it is only working for youtube?
491: [12:55:01] * kinglozz_ is now known as kinglozzer
492: [13:03:30] * zippy__ quit (Quit: zippy__)
493: [13:05:59] * priithansen has joined #silverstripe
494: [13:11:57] <willmorgan> RVXD: you could look up embedlyfield
495: [13:12:13] * pageagent has joined #silverstripe
496: [13:12:21] <willmorgan> chillu: any chance I can be cheeky and ask that you put this commit in to 3.1 please? https://github.com/silverstripe/silverstripe-framework/commit/372890703ca96abfa8695277c1851c0b8ca52428#forms/ConfirmedPasswordField.php
497: [13:18:09] <RVXD> willmorgan: thanx, i'll try that, so no default vimeo embedding in SS3...
498: [13:18:16] <willmorgan> not to my knowledge matey
499: [13:23:25] * pageagent quit (Read error: Connection reset by peer)
500: [13:26:36] <willmorgan> RVXD: here's the repo, it's 2.4 but with very few changes you can get it working for 3: https://github.com/BetterBrief/silverstripe-embedlyfield
501: [13:27:12] <willmorgan> if you do convert it, i'd appreciate it a lot if you could submit a pull request
502: [13:28:05] <g4b0> chillu: what do you think about that? https://github.com/silverstripe/silverstripe-cms/commit/9281ebc64764a58f86f685f9765e1d8b60995e5a#commitcomment-3319705
503: [13:48:57] * folibis has joined #silverstripe
504: [13:49:00] <folibis> hello all!
505: [13:49:26] <folibis> is anybody know how to add avatar to user prifile?
506: [13:52:53] * ugly_duck quit (Ping timeout: 260 seconds)
507: [13:57:34] * Shrike_Finland quit (Quit: Leaving.)
508: [13:59:07] <g4b0> I just did a pull request splitted in 2
509: [13:59:14] <g4b0> one part in silverstripe-cms
510: [13:59:28] <g4b0> the other one in silverstripe-framework
511: [13:59:51] <g4b0> I think that this tight coupling is not a good thing...
512: [14:00:00] <g4b0> what do you think about that?
513: [14:00:16] <g4b0> first pull request: https://github.com/silverstripe/silverstripe-cms/pull/759
514: [14:00:32] <g4b0> second pull request: https://github.com/silverstripe/silverstripe-framework/pull/2039
515: [14:10:16] <RVXD> willmorgan: okay, thanks for the info.
516: [14:10:30] <willmorgan> folibis: what have you tried/
517: [14:14:29] <folibis> willmorgan: nothing/ i just have no idea
518: [14:14:46] <willmorgan> oh, okay
519: [14:14:57] <willmorgan> www.whathaveyoutried.com is a good resource to start
520: [14:15:45] <folibis> ok )
521: [14:27:16] * Nivery has joined #silverstripe
522: [14:27:50] * Marvanni quit (Write error: Broken pipe)
523: [14:28:38] * Marvanni has joined #silverstripe
524: [14:36:21] <kinglozzer> g4b0: You didn't update the SCSS files
525: [14:39:31] * Marvanni quit ()
526: [14:43:11] * catcher has joined #silverstripe
527: [14:43:54] <g4b0> mmm.. I have to study the scss :) any hint?
528: [14:44:45] <kinglozzer> g4b0: You'll need to update this file: https://github.com/silverstripe/silverstripe-framework/blob/3.1/admin/scss/_tree.scss
529: [14:45:15] <kinglozzer> The CSS for the CMS is built from that (and some other files)
530: [14:45:59] * ugly_duck has joined #silverstripe
531: [14:45:59] * ugly_duck quit (Changing host)
532: [14:45:59] * ugly_duck has joined #silverstripe
533: [14:46:26] <g4b0> intresting...
534: [14:46:46] <kinglozzer> g4b0: http://doc.silverstripe.org/framework/en/reference/cms-architecture#markup-and-style-conventions read that section
535: [14:47:03] <g4b0> so I don't have to modify screen.css, but just _tree.scss?
536: [14:47:30] <kinglozzer> g4b0: Modify both
537: [14:47:46] <g4b0> o
538: [14:47:48] <g4b0> k
539: [14:49:59] * folibis quit (Quit: Page closed)
540: [14:51:14] * Shrike_Finland has joined #silverstripe
541: [14:54:04] <g4b0> kinglozzer: I'm not sure how to modify the scss...
542: [14:55:18] <g4b0> http://pastebin.com/tUXjZMzm
543: [14:55:36] <g4b0> I added my edit-disabled class
544: [14:55:43] <g4b0> do you think it's correct?
545: [15:03:25] <kinglozzer> g4b0: Yep, looks correct to me
546: [15:06:01] <g4b0> do I have to compile the scss, or I just have to manually modify css and scss?
547: [15:06:09] * pageagent has joined #silverstripe
548: [15:07:03] <jrthomer> Anyone know of a clean way in SS 3.X to make SiteTree fields longer?
549: [15:07:09] <jrthomer> i.e. in 2.4.x I did this hack in my _config.php: SiteTree::$db['MenuTitle'] = 'VARCHAR(255)';
550: [15:07:17] <jrthomer> but that doesn't work now because $db is private
551: [15:12:23] <jrthomer> Never mind ... for those who are searching and find this, it seems you can do this:
552: [15:12:28] <jrthomer> $fields = Config::inst()->get($class, 'db', Config::UNINHERITED);
553: [15:12:37] <jrthomer> $fields['MenuTitle'] = 'VARCHAR(255)';
554: [15:12:37] <jrthomer> Config::inst()->update('SiteTree', 'db', $fields);
555: [15:12:54] <jrthomer> ^^^^ that is still a bit hacky. Someone please highlight/ping me if you know a better way
556: [15:15:27] <kinglozzer> g4b0: Normally you'd compile it (that's the point of using scss) but for such a simple change you may as well not bother
557: [15:16:23] * pageagent quit (Remote host closed the connection)
558: [15:18:53] <kinglozzer> jrthomer: Can't you just override it in Page.php? Just set - static $db = array('MenuTitle' => 'Varchar(255)');
559: [15:19:15] <kinglozzer> Haven't tried it, it's just what I'd try first of all :P
560: [15:19:33] <jrthomer> kinglozzer: I don't think that worked in 2.4.x ... I honestly haven't tried in 3.x
561: [15:19:44] <kinglozzer> Ah sorry, assumed you were on 3.x
562: [15:19:54] <jrthomer> well, I am ... migrating
563: [15:20:02] <kinglozzer> I see
564: [15:20:02] <jrthomer> thus the "how do I do this now" :)
565: [15:20:21] <jrthomer> the first line of code above is from DataObject - how it gets the config for DB fields
566: [15:20:40] <jrthomer> since it says "UNINHERITED" I'm assuming that you can't override in subclass
567: [15:20:40] <jrthomer> but haven't tried
568: [15:28:11] * WillM has joined #silverstripe
569: [15:28:23] * WillM quit (Client Quit)
570: [15:28:39] * WillM has joined #silverstripe
571: [15:29:23] * willmorgan quit (Write error: Broken pipe)
572: [15:30:08] * WillM is now known as willmorgan
573: [15:30:15] <g4b0> ok, thanks kinglozzer
574: [15:30:32] <g4b0> I will study compass...
575: [15:58:51] <g4b0> bye
576: [15:58:53] * g4b0 quit (Quit: Sto andando via)
577: [16:12:53] * pex quit (Ping timeout: 251 seconds)
578: [16:24:10] * scpi has joined #silverstripe
579: [16:25:41] * PigeonFriend quit ()
580: [16:27:30] * kinglozzer quit (Quit: ciao)
581: [17:02:57] * scpi quit (Read error: Connection reset by peer)
582: [17:03:35] * scpi has joined #silverstripe
583: [17:11:05] <catcher> anyone here using SS as a soap client?
584: [17:13:19] * willmorgan quit (Ping timeout: 256 seconds)
585: [17:26:47] * deschebbes quit (Ping timeout: 264 seconds)
586: [17:27:14] * scpi_ has joined #silverstripe
587: [17:27:14] * scpi quit (Read error: Connection reset by peer)
588: [17:27:14] * scpi_ is now known as scpi
589: [17:28:03] * chillu quit (Quit: chillu)
590: [17:28:29] * chillu has joined #silverstripe
591: [17:31:50] * Nivery quit (Quit: Nivery)
592: [17:37:06] * Nivery has joined #silverstripe
593: [17:37:46] * chillu quit (Quit: chillu)
594: [17:41:58] <priithansen> is it just me or is github down?
595: [17:43:47] * RVXD quit (Remote host closed the connection)
596: [17:54:22] <catcher> priithansen, looks okay to me
597: [17:55:58] <priithansen> working again indeed but status dash now has some problems https://status.github.com/
598: [18:06:27] * pex has joined #silverstripe
599: [18:06:39] * pex quit (Client Quit)
600: [18:20:39] <FrozenFire> I could've sworn there was a MemberLookupField or something
601: [18:35:45] * zfmf1 has left #silverstripe
602: [18:58:44] <catcher> has anyone connected to a soap server in SS?
603: [18:59:17] <catcher> I see a wrapper module around rest, but I know even rest has a ways to go.
604: [19:03:09] * joelpittet has joined #silverstripe
605: [19:04:27] * scpi_ has joined #silverstripe
606: [19:04:50] * scpi quit (Read error: Connection reset by peer)
607: [19:04:51] * scpi_ is now known as scpi
608: [19:05:18] <FrozenFire> catcher, Trying to use a generic "REST client" or "SOAP client" is an exercise in futility.
609: [19:05:32] <FrozenFire> Most of my projects involve connecting to SOAP and REST servers.
610: [19:05:41] <FrozenFire> Whether it be Stamps.com, Mindbody, vBrick, or whomever
611: [19:05:57] <FrozenFire> Just use SoapClient
612: [19:06:26] <catcher> FrozenFire, good to know
613: [19:06:57] <FrozenFire> Obviously for REST it's a bit different
614: [19:07:04] <FrozenFire> But most services maintain a simple SDK in those cases.
615: [19:07:25] <FrozenFire> Been poking at the Rackspace Cloud Servers API, and their SDK is quite handy.
616: [19:08:44] <catcher> this will connect to an internal resource that's stuck with soap until we can port the entire thing over to something else.
617: [19:13:48] * SightUnseen has joined #silverstripe
618: [19:13:51] * SightUnseen has left #silverstripe
619: [19:13:53] * FrozenFire wonders if sminnee responds like Beetlejuice
620: [19:14:02] <FrozenFire> sminnee
621: [19:14:02] <FrozenFire> sminnee
622: [19:14:03] <FrozenFire> sminnee
623: [19:14:14] * simon_w wonders if FrozenFire knows what time it is
624: [19:14:27] <FrozenFire> A little after 7?
625: [19:14:37] <simon_w> Yes
626: [19:14:52] <simon_w> So why would sminnee respond?
627: [19:15:07] * pex has joined #silverstripe
628: [19:15:09] <FrozenFire> Because repeating his name three times signals him across the ether
629: [19:17:35] * FrozenFire tries to remember the site he solved this problem on
630: [19:17:51] <FrozenFire> Need SearchContext field defaults to be effective
631: [19:24:22] <FrozenFire> http://thefrozenfire.com/gtkgrab/caps/4632da.png
632: [19:24:23] <FrozenFire> Aha
633: [19:24:25] <FrozenFire> I'm clever.
634: [19:24:36] * chillu has joined #silverstripe
635: [19:35:18] <FrozenFire> Anyone have an example of implementing a Haversine filter on a DataList, instead of loading it directly into an ArrayList?
636: [19:35:32] <FrozenFire> I have the Haversine SQL... just can't figure out how to get it into a DataList query
637: [19:35:52] <FrozenFire> http://thefrozenfire.com/gtkgrab/caps/817a7e.png
638: [19:41:42] * Motoservo quit (Ping timeout: 276 seconds)
639: [19:42:03] * Motoservo has joined #silverstripe
640: [19:44:10] * chillu quit (Quit: chillu)
641: [19:45:02] * chillu has joined #silverstripe
642: [19:46:01] * SightUnseen has joined #silverstripe
643: [19:46:09] * SightUnseen has left #silverstripe
644: [20:00:12] <FrozenFire> Aha, figured that out in a bit of a derpy way
645: [20:00:26] <FrozenFire> Still uses an ArrayList, but got GridField in ModelAdmin to retain the query
646: [20:03:51] <catcher> how do I enable spamprotection (mollom) on the comments module?
647: [20:07:12] <catcher> Object::add_extension('CommentingController', 'CommentSpamProtection'); doesn't seem to be doing the trick
648: [20:08:56] <FrozenFire> Don't use Object::add_extension
649: [20:09:17] <FrozenFire> CommentingController::config()->extensions = array( "CommentSpamProtection" );
650: [20:09:45] <FrozenFire> Or, if you're on 3.0, use Config::inst()->forClass("CommentingController")->extensions = array( "CommentSpamProtection" );
651: [20:10:15] <FrozenFire> chillu, Happen to know why a DropdownField would be causing scrollbars on the ModelAdmin SearchForm?
652: [20:10:27] <FrozenFire> I know you're typically the go-to front-end guy for the CMS
653: [20:10:55] <FrozenFire> http://thefrozenfire.com/gtkgrab/caps/9365ca.png
654: [20:11:12] <FrozenFire> There's perhaps a reason for it to overflow-y, but none but the DropdownField for it to overflow-x
655: [20:12:36] <FrozenFire> Seems that the chzn-container chzn-container-single chzn-container-single-nosearch gets set with a width that's too wide
656: [20:12:48] <FrozenFire> Which is the replacement select
657: [20:13:21] <catcher> The add_extension is provided by spamprotection in _config.php.
658: [20:13:49] <catcher> Looks like it's a bug though, one of the field names has changed
659: [20:26:42] <FrozenFire> Oh I see... the issue ends up being the combination of the select and me having a long-ass tools area
660: [20:37:09] * nickmolhoek has joined #silverstripe
661: [20:37:13] * nickmolhoek quit (Remote host closed the connection)
662: [20:37:24] * nickmolhoek has joined #silverstripe
663: [20:41:19] * DigNZ has joined #silverstripe
664: [20:41:20] * DigNZ quit (Remote host closed the connection)
665: [20:41:34] * DigNZ has joined #silverstripe
666: [20:42:47] * UndefinedOffset quit (Quit: Leaving.)
667: [20:45:00] * joelpittet quit (Remote host closed the connection)
668: [20:53:16] * zippy__ has joined #silverstripe
669: [20:57:26] * Nivery quit (Quit: Nivery)
670: [21:00:17] * MrJeremy has joined #silverstripe
671: [21:06:30] <zippy__> Morning
672: [21:06:31] * Motoservo quit (Ping timeout: 248 seconds)
673: [21:10:06] * discorpi1 is now known as discorpia
674: [21:12:42] <catcher> is there a slick way to get a list of classes that have a given extension?
675: [21:13:14] <simon_w> Nope
676: [21:15:33] * ^pH- has joined #silverstripe
677: [21:16:02] <catcher> simon_w, enabling comment moderation for non-members only - what's better than updating Commenting::set_config_value('require_moderation') for each class in Page_Controller init()?
678: [21:16:36] <simon_w> catcher, it's an open source module. Add that feature :p
679: [21:16:54] <catcher> knew that was coming :) Are those the best 2 options?
680: [21:17:16] <catcher> route 2 involves learning git
681: [21:18:57] * ^pH quit (Ping timeout: 252 seconds)
682: [21:19:41] <zippy__> good reason to learn then
683: [21:27:56] * qlex has joined #silverstripe
684: [21:28:01] * qlex says hi
685: [21:29:46] <qlex> is, at that strange time anyone here to help ?
686: [21:30:15] <qlex> i got a strange problem with files uploaded via the SS powered website to assets/uploads and their permissions.
687: [21:32:55] <zippy__> I swear to god trying to deal with Mollom or their parent company is worse then a govt department!
688: [21:32:57] <zippy__> holy cow
689: [21:33:51] <zippy__> qlex: whats up?
690: [21:33:51] * willr_ has joined #silverstripe
691: [21:33:51] * willr_ quit (Changing host)
692: [21:33:51] * willr_ has joined #silverstripe
693: [21:34:09] <qlex> we got a strange problem.
694: [21:34:37] <qlex> extended page to add a tab called "attachments" which gives the user in CMS ability to upload files to a given page...
695: [21:34:46] <zippy__> right
696: [21:34:48] <qlex> then the theme displays those attachments below $Content
697: [21:34:55] <zippy__> ok
698: [21:35:09] <qlex> everything's great except that this works for admin, but not for regular user
699: [21:35:26] <qlex> so when im admin and upload an attachemnt, it is then visible on published website...
700: [21:35:34] * xini has joined #silverstripe
701: [21:35:36] <qlex> i can see it in the grid when i go to "attachment" tab in cms
702: [21:35:50] <qlex> but when i login as normal user (content author), and browse to that tab, its empty
703: [21:35:55] * scpi quit (Quit: be excellent to each other)
704: [21:36:17] <qlex> the file in "files" section is obviously owned by default admin and dropdown allows me to change to another admin
705: [21:36:28] <qlex> fiddling around with permissions of that group doesnt help
706: [21:36:39] <qlex> unless i give them full admin rights, which i dont want, obviously
707: [21:36:45] <qlex> first time had such problem
708: [21:37:51] <irogue> mornin' all
709: [21:39:46] * Pyromanik has joined #silverstripe
710: [21:42:31] <Pyromanik> how the f-balls do submodules work?
711: [21:43:32] <simon_w> externals FTW!
712: [21:43:36] <Pyromanik> yeh, right
713: [21:44:18] <willr_> Pyromanik just make sure you don't commit to the parent git repo without pushing changes to submodules
714: [21:44:19] * MrJeremy quit (Quit: MrJeremy)
715: [21:44:24] <willr_> that gets you into a funk
716: [21:45:11] <simon_w> qlex, do you have any sort of DataExtension on File?
717: [21:45:11] * scar has joined #silverstripe
718: [21:45:16] <scar> where the f does the _config.php go? lol
719: [21:45:20] <scar> in /cms/ ?
720: [21:45:28] <qlex> simon_w: can you point me to where to look ?
721: [21:45:38] <qlex> didnt do it myself, but my programmer is not available now
722: [21:45:41] <simon_w> qlex, your modules, your custom code
723: [21:45:50] <qlex> let me check
724: [21:45:59] <willr_> scar there should be a _config.php in each module. The one you edit is mysite/_config.php
725: [21:46:27] <scar> welll ill be!
726: [21:46:34] <scar> no wonder my DB config wasnt ion /cms/_config.php
727: [21:46:41] <scar> i was bout to shoot someone alll these docs telli nme _config.php has it lolol
728: [21:47:27] <qlex> simon_w: not that i can see..here's my page
729: [21:47:28] <qlex> http://pastie.org/7985626
730: [21:47:31] * MrJeremy has joined #silverstripe
731: [21:47:45] <scar> willr_, pm me your paypal im buyin you a drink lol
732: [21:48:04] <willr_> that one's on the house.
733: [21:48:14] <simon_w> qlex, let me guess, CustomFile is a wrapper object?
734: [21:48:28] <scar> k well i nevr use silverstripe and i thank you
735: [21:49:37] <qlex> im better in themes then php :( im afraid i cant answer that question..
736: [21:50:10] <simon_w> qlex, does CustomField extend DataObject or File?
737: [21:50:14] <Pyromanik> willr_: I'm ... yeah I think that's happened
738: [21:50:27] <simon_w> My guess is DataObject and you need to override canView/canEdit/canCreate/canDelete
739: [21:51:21] <Pyromanik> scar: it's confusing to look at at first, but it makes much more sense than any other CMS i've used.
740: [21:51:55] <Pyromanik> all modules have a _config, a module is basically any folder (including mysite) in the ss folder (excepting framework).
741: [21:52:13] <Pyromanik> excepting framework and themes
742: [21:52:25] * irogue quit (Ping timeout: 256 seconds)
743: [21:52:40] * irogue has joined #silverstripe
744: [21:52:59] <Pyromanik> willr_: what do with "git submodule" gives me "No submodule mapping found in .gitmodules for path 'payment'"
745: [21:53:02] <Pyromanik> ?
746: [21:53:10] <Pyromanik> s/with/when
747: [21:53:12] <scar> Pyromanik, yeah i was trying to figure out how db creds were being passed when there was no db info in config
748: [21:53:52] <Pyromanik> yeah, all your site info goes in 'mysite' (or whatever you name your project dir as - default & commonly used is mysite)
749: [21:53:52] <willr_> Pyromanik git submodule add github/payment.git payment; git submodule sync
750: [21:54:06] <Pyromanik> willr_: already exists
751: [21:54:10] <Pyromanik> matters?
752: [21:54:27] <willr_> so just do the sync, that sets up your .gitmodules
753: [21:54:37] <Pyromanik> hmm
754: [21:54:45] <catcher> Wouldn't enabling commenting for custom DO classes also require extending CommentingController for the Controllers that handle them?
755: [21:55:08] <simon_w> catcher, no
756: [21:55:12] <willr_> catcher, nope. Designed to work for DO's without needing extra controllers
757: [21:55:22] <Pyromanik> willr_: just complains about no mapping for all submodules
758: [21:55:25] <qlex> simon_w: let me pass on that info to my programmer tomororw
759: [21:55:33] <qlex> if we're still stuck, i will come back with this one
760: [21:55:39] <qlex> thanks though
761: [21:55:46] <catcher> strange, works fine for Page objects, but can't get them to appear for my custom DOs.
762: [21:55:53] <willr_> Pyromanik google.
763: [21:56:07] <catcher> I've included $CommentsForm and/or $PageComments in the template
764: [21:56:22] <Pyromanik> scar: db creds go in mysite/_config.php or _ss_environment.php
765: [21:56:43] <Pyromanik> willr_: but but buty
766: [21:56:46] <Pyromanik> :<
767: [21:56:56] <Pyromanik> I did, it's all very confusing :S
768: [21:58:47] <catcher> simon_w / willr_, are there any requirements that aren't in the docs to make that happen? My controller displays a DO via Customise on a view() action.
769: [21:58:56] <Pyromanik> god, half an hour later, might have an answer
770: [21:58:57] <Pyromanik> http://stackoverflow.com/questions/4161022/git-how-to-track-untracked-content/4162672#4162672
771: [21:58:58] <catcher> renders*, rather than displays
772: [21:59:06] * scar quit (Quit: Leaving)
773: [22:00:12] <Pyromanik> catcher: forTemplate ?
774: [22:01:53] * qlex says goodnight (midnite here!)
775: [22:02:07] <catcher> Pyromanik, I have to forTemplate-ify the comments?
776: [22:07:59] * ugly_duck quit (Ping timeout: 256 seconds)
777: [22:10:09] <willr_> catcher so you've enabled commenting on the object. Do you get a comments form?
778: [22:10:35] <catcher> willr_, no form on the DO display page, just the SiteTree page.
779: [22:11:13] <willr_> Sounds like commenting hasn't been enabled or it's a scope issue in your template
780: [22:11:47] * ugly_duck has joined #silverstripe
781: [22:11:47] * ugly_duck quit (Changing host)
782: [22:11:47] * ugly_duck has joined #silverstripe
783: [22:11:50] <catcher> template's dead simple (and it did show when I extended the controller for kicks)..
784: [22:12:12] <catcher> how does one enable commenting for a custom DO class?
785: [22:12:25] * qlex has left #silverstripe
786: [22:12:31] <catcher> beyond Commenting::add('MyDO'); in _config.php?
787: [22:13:16] <willr_> That should be it.
788: [22:13:36] <willr_> Should add $CommentsForm to your DO
789: [22:14:36] <catcher> I've got that, along with $PageComments - both showed the form when I tested extending the controller
790: [22:32:31] * ajmitch quit (Read error: Operation timed out)
791: [22:40:00] * ajmitch has joined #silverstripe
792: [22:41:36] <Pyromanik> catcher: no idea.
793: [22:41:44] <Pyromanik> willr_: so like silverstripe-installer right
794: [22:41:48] <Pyromanik> plonks in a gitignore
795: [22:41:52] <Pyromanik> instead of submodules
796: [22:41:55] <Pyromanik> seems... backwards
797: [22:42:06] <Pyromanik> what is the reasoning here?
798: [22:42:52] <willr_> catcher want to put a die() in CommentsExtension comments form and see why it wouldn't be returning. Could be that your DO doesn't have an ID
799: [22:45:59] <catcher> willr_, my controller would 404 it without an ID, but I'll start there to see what's up. ty
800: [22:47:08] <willr_> yeah figured as much. My debugging strategy would just see if the DataObject has the extension, whether it's getting into the method and work from there
801: [22:47:34] <catcher> willr_, my DO is a subclass, might that cause the issue?
802: [22:47:57] <willr_> Is the comments added to the parent class?
803: [22:48:09] <catcher> willr_, no, subclass
804: [22:59:59] <ss23> https://bitcointalk.org/index.php?topic=50617.0
805: [22:59:59] <ss23> $700,000 USD for writing some forum software
806: [23:00:50] * xini quit (Quit: Page closed)
807: [23:01:41] <Pyromanik> ss23: well that is a shit load of work.
808: [23:01:44] <ss23> Yeah
809: [23:01:56] <ss23> No way in hell I'm going to consider it
810: [23:03:01] <Pyromanik> rofl
811: [23:03:05] <Pyromanik> vBulletin mentioned
812: [23:03:18] <Pyromanik> probably the most complete solution around
813: [23:03:27] <Pyromanik> also the most completely poorly engineerd
814: [23:03:53] <Pyromanik> shit
815: [23:03:57] <Pyromanik> submodules wrong move.
816: [23:04:01] <Pyromanik> FFFFFFFFFFFFFFFFFFFFFFFFFFFFF
817: [23:04:10] <Pyromanik> same repo pulled in 2 places
818: [23:04:23] <Pyromanik> then files renamed & edited
819: [23:04:32] <Pyromanik> can't push obviously
820: [23:04:33] <Pyromanik> shit
821: [23:05:33] <ss23> Given his requirements were "not shit code", pretty sure anyone mentioning vb is going to be banned on sight!
822: [23:06:04] <Pyromanik> given his requirements were "not shit code", good luck to him.
823: [23:06:11] <Pyromanik> public announcement probably not best idea.
824: [23:06:34] <Pyromanik> forums are hard because huge scale.
825: [23:06:42] <Pyromanik> although writing a forum is easy.
826: [23:06:51] <Pyromanik> gotta be web scale :P
827: [23:08:53] <ss23> Projects that big need too much planning for me
828: [23:15:04] <zippy__> web scale? that means you need some nosql
829: [23:15:24] <ss23> :D
830: [23:15:38] <zippy__> Mongo DB is web scale
831: [23:16:13] <ss23> Shards are the secret ingredient in the webscale sauce
832: [23:18:02] <zippy__> :)
833: [23:22:25] <MrJeremy> does Mongo DB work for silverstripe?
834: [23:29:21] * catcher quit (Quit: Leaving)
835: [23:33:31] <willr_> MrJeremy no
836: [23:34:26] <willr_> Though we did do a CouchDB adapter
837: [23:36:12] * nimeso has joined #silverstripe
838: [23:36:40] <nimeso> Yellow ha! It's Friday! yippie!
839: [23:36:52] <zippy__> Yello
840: [23:38:31] <nimeso> $LoginForm used to work in a template if you put public static $allowed_actions = array ('LoginForm'); but in ss3 it does not... hmmm... I understand how I can 'extend' the loginForm or memberLoginForm... but how do I use it in a template?
841: [23:39:24] <nimeso> Or should I say a template that is NOT Security.ss
842: [23:42:56] <nimeso> Sigh... lol... I'll keep hunting. Have a great day all!
843: [23:45:50] * Luke1988 has joined #silverstripe
844: [23:46:56] * chillu quit (Quit: chillu)
845: [23:47:28] * chillu has joined #silverstripe
846: [23:47:28] * chillu quit (Client Quit)
847: [23:48:49] * joelpittet has joined #silverstripe
848: [23:50:41] * Motoservo has joined #silverstripe
849: [23:52:51] * Luke88 has joined #silverstripe
850: [23:54:04] * Luke1988 quit (Ping timeout: 240 seconds)

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