#silverstripe IRC Log

IRC log for 14 August 2013

All timestamps are in UTC.

1: [00:03:36] <Pyromanik> guzzlefry: fingers on keyboard.
2: [00:03:50] <Pyromanik> but yeh, manual mangement basically.
3: [00:03:55] <Pyromanik> seems easier.
4: [00:04:08] <guzzlefry> yeah...Composer is giving me headaches.
5: [00:04:22] <guzzlefry> and my IDE freaks out from the 8 trillion .git directories it pulls in. :P
6: [00:04:25] <spronk> Manual Management (TM): The complete guide to economic gear shifting.
7: [00:09:38] <Pyromanik> guzzlefry: http://iforce.co.nz/i/oqttjyza.ovg.png
8: [00:09:40] <Pyromanik> xD
9: [00:10:14] <guzzlefry> That's actually a good idea... :P
10: [00:11:00] <spronk> laaawl
11: [00:11:07] * spronk does not do this.
12: [00:11:32] <ss23> lol Pyromanik...
13: [00:11:34] <ss23> that's...
14: [00:11:35] <ss23> depressing
15: [00:11:38] <spronk> and dangerous
16: [00:11:57] <spronk> i mean, what happens if you're working with a nublet who modifies core fileS?
17: [00:12:02] * spronk looks at ss23
18: [00:12:05] * zippy__ quit (Ping timeout: 245 seconds)
19: [00:12:13] <ss23> XD
20: [00:12:15] <ss23> Hey hey
21: [00:12:18] <ss23> I make sure to fork the CMS!
22: [00:12:21] <spronk> :P
23: [00:12:38] <ss23> nmit-hacks-super-hacks-2-cms
24: [00:12:42] <ss23> best public gitlab repo!
25: [00:20:51] <Pyromanik> spronk: I modify the core files.
26: [00:21:23] <Pyromanik> mostly because I wrote most of them
27: [00:21:28] <Pyromanik> or sometimes it's a patch
28: [00:21:36] <Pyromanik> so basically, carefactor 0
29: [00:32:18] * nickmolhoek quit (Ping timeout: 256 seconds)
30: [00:32:23] * nickmolhoek1 has joined #silverstripe
31: [00:32:24] * nickmolhoek1 quit (Remote host closed the connection)
32: [00:33:07] * nickmolhoek has joined #silverstripe
33: [00:39:19] <b00mtastik_> Hey guys, having some trouble with forms and calling each field manually. Submit button becomes disabled, or just seemingly empty and doesn't fire. When the entire form itself is called IE: $MyCustomForm in templates it works just fine. I checked html output and the form tags were missing so added those along with $FormAttributes and now it just gives error message in plain text:
34: [00:39:33] <b00mtastik_> "There seems to have been a technical problem. Please click the back button, refresh your browser, and try again."
35: [00:40:02] * UncleCheese quit (Quit: UncleCheese)
36: [00:52:40] <atmos> mmm dat colour palette http://www.lifehacker.com.au/2013/08/ubuntu-lockscreen-adds-notifications-and-ubuntus-looks-to-android/
37: [00:55:40] * jamie_ has joined #silverstripe
38: [01:01:49] <jamie_> hie guys
39: [01:01:49] <jamie_> how do I set a label for a single checkbox in the cms admin section ?
40: [01:01:55] <simon_w> b00mtastik_, sounds like your custom template is broken
41: [01:01:55] <simon_w> new CheckboxField('name', 'label')
42: [01:01:55] * howardgrigg has joined #silverstripe
43: [01:01:55] <jamie_> thanks Simon
44: [01:01:55] <jamie_> i had that before
45: [01:01:56] <jamie_> and it puts a label directly next to the checkbox
46: [01:01:56] <guzzlefry> Shouldn't the Files CMS area be showing image thumbnails?
47: [01:02:11] <jamie_> ild like to have the label on the left directly underneath all my other field labels.
48: [01:02:32] <jamie_> (as if I would have a checkbox group)
49: [01:03:36] <b00mtastik_> I've followed the Form area on the documentation in building a custom template, but would I also have to create a form and then tell it to use a certain template before it can be used?
50: [01:03:50] * howardgrigg quit (Ping timeout: 246 seconds)
51: [01:03:56] <b00mtastik_> By create a form, I mean a seperate controller subclassing form?
52: [01:05:06] <simon_w> jamie_, ChckboxField::create('name', 'label')->setFieldHolder('FormField_holder')
53: [01:05:36] <simon_w> b00mtastik_, if it's the CSRF token check that's always failing (which it sounds like it is), it means you're not including the hidden fields in your template
54: [01:06:01] * Bollig|DesignCty has joined #silverstripe
55: [01:06:53] <simon_w> ss23, feed me
56: [01:08:11] <b00mtastik_> simon_w: I was thinking that, forgot to mention that, is there anywhere on the documentation that talks about what to include and not to include and how to know which attributes to have on all fields that maybe end up going into a custom template, including the hidden fields?
57: [01:08:33] <simon_w> Doubt it
58: [01:09:03] <simon_w> Loop over the hidden fields, stick in $Field for each one
59: [01:09:29] <b00mtastik_> Aha, didn't think of that. I'll try that now.
60: [01:09:33] <b00mtastik_> I was just thinking if it isn't noted anywhere, how would we know what to include.
61: [01:10:31] * wmk quit (Ping timeout: 246 seconds)
62: [01:13:09] <simon_w> Most people that build custom forms have been using SS for long enough to be able to figure out these things
63: [01:13:58] * Jayden90 has joined #silverstripe
64: [01:14:14] <b00mtastik_> That also makes sense.
65: [01:14:47] <simon_w> ss23, come on stephen
66: [01:14:50] <b00mtastik_> The reason I'm doing it even though I'm nowhere near clued up is because I need it styled a certain way. Calling them seperately is the only way I see that happening with what I know I guess.
67: [01:15:21] * Stomach quit (Quit: Leaving.)
68: [01:15:31] <simon_w> ss23, notification noises!
69: [01:15:35] <Jayden90> Is a new tab in siteconfig the best place to allow CMS editing of content for a section that gets including in many templates across the site?
70: [01:15:51] <simon_w> Jayden90, usually
71: [01:16:07] <Jayden90> simon_w: Thanks
72: [01:16:38] <Jayden90> It would be neat to have a more intuitivly labeled area to admininister sitewide content chunks
73: [01:17:53] <Jayden90> I doubt users would know to look in the settings tab
74: [01:18:00] <simon_w> So build one?
75: [01:18:38] * Stomach has joined #silverstripe
76: [01:19:04] <Jayden90> Is it hard to add a new tab sibling to Pages, Files, etc?
77: [01:19:04] <Pyromanik> b00mtastik_: $field->addExtraClass?
78: [01:19:19] <Pyromanik> $field->setFieldHolderTemplate ?
79: [01:19:26] <Pyromanik> may be easier for you
80: [01:19:39] <simon_w> Jayden90, nope
81: [01:19:57] <simon_w> Have a look at CMSSettingsController (or whatever it's called)
82: [01:20:01] <simon_w> Nice and easy
83: [01:20:56] <Jayden90> I have extended SiteConfig with all sorts of fields, thats no problem. I am thinking of a more permanent and logical solution
84: [01:21:24] <simon_w> ss23, too late!
85: [01:21:40] <Jayden90> Magento for example has a place for users to edit snippets that are included around the site
86: [01:23:20] * wmk has joined #silverstripe
87: [01:24:06] <b00mtastik_> Pyromanik: Thanks, I'll look into that and give it a shot as well.
88: [01:25:20] <Jayden90> simon_w: Is there a tutorial for dealing with these CMS modifications? The api page for CMSSettingsController is pretty dry and google is not imediatly helpfull
89: [01:26:54] <Colin[pi]> I think he's gone to lunch
90: [01:27:46] * zippy__ has joined #silverstripe
91: [01:28:03] * zippy__ quit (Client Quit)
92: [01:28:27] * zippy__ has joined #silverstripe
93: [01:32:48] * UncleCheese has joined #silverstripe
94: [01:34:25] <ss23> simon_w: TOO LATE!
95: [01:38:52] <Zauberfisch> yay, simon_w is back
96: [01:39:01] <ss23> :D
97: [01:41:34] <Pyromanik> why are you awake Zauberfisch ? :<
98: [01:42:24] <Pyromanik> b00mtastik_: api.silverstripe.org/3.1/class-FormField.html
99: [01:42:52] <Pyromanik> so if I make a RestfulService request
100: [01:43:01] <Pyromanik> and $req->getBody() no it
101: [01:43:04] <Pyromanik> but there is no body
102: [01:43:08] <Pyromanik> will it null, or ""
103: [01:44:41] <Zauberfisch> Pyromanik: Pyromanik because I have work to do
104: [01:44:49] <Pyromanik> Zauberfisch: :(
105: [01:45:16] <Zauberfisch> sad face?
106: [01:45:23] <Zauberfisch> are you not happy to see me? :P
107: [01:46:02] <Zauberfisch> I always like to think it is a pleasure for others to have me around :D
108: [01:46:10] <Pyromanik> yeah, but I'm empathetic to your situation.
109: [01:46:21] <Zauberfisch> meh, in fact, I feel awesome
110: [01:46:31] <Pyromanik> up extremely late, tired as hell, doing works.
111: [01:46:46] <Pyromanik> then again, if you're keeping strange hours... probably all good.
112: [01:46:47] <Zauberfisch> no, I just came into the office
113: [01:46:58] <Zauberfisch> just woke up 30min ago
114: [01:47:20] <Pyromanik> quarter to four in the morning, early start!
115: [01:47:29] <Zauberfisch> :O
116: [01:47:33] <Zauberfisch> already that late
117: [01:47:39] <Pyromanik> dunno
118: [01:47:41] <Zauberfisch> I better get to work
119: [01:47:43] <Pyromanik> just googled vienna time :P
120: [01:47:49] <Zauberfisch> yeah, it is
121: [01:47:52] <Pyromanik> You are still in Austria right?
122: [01:47:55] <Pyromanik> xD
123: [01:47:58] <Zauberfisch> yes
124: [01:48:08] <ss23> Wow, I lived in Australia for a while!
125: [01:48:10] <ss23> We should've met up
126: [01:48:11] <ss23> :3
127: [01:48:14] <Zauberfisch> haha
128: [01:48:16] <ss23> :P
129: [01:48:19] <Zauberfisch> ss23: <3
130: [01:48:31] <ss23> :D <3
131: [01:48:31] <b00mtastik_> Thanks for that link Pyromanik and Simon that hiddenfield loop worked nicely, thanks.
132: [01:48:50] <ss23> Okay, I need simon_w's help when he gets back
133: [01:48:58] <Pyromanik> sif, ask question noob.
134: [01:49:39] <ss23> I've already asked and no one answered, yesterday!
135: [01:49:44] <ss23> RAther, no one offered a solution that would work :<
136: [01:50:46] <Zauberfisch> ss23: log link plx
137: [01:51:01] <ss23> eh
138: [01:51:02] <ss23> idk
139: [01:51:11] <ss23> It was over a long period
140: [01:51:28] <ss23> http://logs.simon.geek.nz/index.php?date=2013-08-13#log_1019822
141: [01:51:31] <ss23> It starts here...
142: [01:51:47] <Pyromanik> oh the getcmsfields thing
143: [01:52:01] <Pyromanik> class Blah extends ThatClass {
144: [01:52:02] <Pyromanik> }
145: [01:52:29] <Pyromanik> useCustomClass('ThatClass', 'Blah')
146: [01:52:31] <Pyromanik> etc
147: [01:52:43] <ss23> That's not my prefered solution, I would rather use an extension
148: [01:52:51] <Pyromanik> I know, but you can't.
149: [01:53:00] <Zauberfisch> ss23: running the risk of replying something that has already been said, my first glue would be you don't take $fields as param :P
150: [01:53:20] <guzzlefry> You can extend getCMSFields in a ModelAdmin subclass right? >_>
151: [01:53:35] <Pyromanik> guzzlefry: modeladmin doesn't have getcmsfields
152: [01:53:37] <ss23> Zauberfisch: Naw, not relevant. That particulary thing (as I said, it went on for a long time, over the entire day), is that updateCMSFields gets called before getCMSFields
153: [01:53:41] <Pyromanik> modeladmin is a controller
154: [01:53:44] <guzzlefry> oh
155: [01:53:49] <Pyromanik> it just manages models.
156: [01:53:55] <Pyromanik> models use getcmsfields, yes.
157: [01:54:01] <guzzlefry> Any easy way to use this SortableGridField on it?
158: [01:54:11] <Pyromanik> guzzlefry: umm
159: [01:54:18] <Zauberfisch> ss23: a hack fix would be to let FooClass call $this->extend('updateCMSFields') again
160: [01:54:19] <ss23> Zauberfisch: class the_lowest_subclass { getCMSFields() { parent::getcmsfields(); do stuff here; } -> extend('updateCMSFields') insite SiteTree's getCMSFields, means that its' called before getCMSFields on the lowest subclass
161: [01:54:20] <Pyromanik> EditForm IIRC
162: [01:54:26] <guzzlefry> thanks
163: [01:54:35] <ss23> Zauberfisch: Yes, but if I was willing to modify the module's code, I wouldn't need to use an extension in the first placE :P
164: [01:54:37] <Zauberfisch> but I take it you don't have access to FooClass
165: [01:55:07] <ss23> indeed
166: [01:55:55] <Zauberfisch> well, to bad for you I guess
167: [01:56:10] <ss23> :P
168: [01:56:13] <Zauberfisch> sorry, thats where I got stuck when I ran into that issue
169: [01:56:23] <ss23> Zauberfisch: So my intended solution was to hook *later* in the process and modify $fields
170: [01:56:25] <Zauberfisch> but that was 2.4 though
171: [01:56:26] <ss23> But I don't know where it's stored
172: [01:56:51] <Zauberfisch> well, I did it by hooking into getEditForm of the CMS controller
173: [01:57:05] <ss23> I tried that, but getEditForm was never called for me
174: [01:57:06] <Zauberfisch> $form->getFields()->doSoemthing
175: [01:57:17] <Zauberfisch> to long ago, can't remember details
176: [01:57:23] <ss23> Yeah, I tried doing that
177: [01:57:25] <Zauberfisch> maybe it was a custom ModelAdmin controller
178: [01:57:30] <ss23> IT looked like that method doesn't get called anymore in 3.1
179: [01:57:45] <Zauberfisch> well it has to build the form somewhere
180: [01:59:26] <Zauberfisch> anyway, I really have to get some work done
181: [01:59:29] <Pyromanik> ss23: throw error from inside getcmsfields, it'll give you trace
182: [02:00:04] <guzzlefry> ModelAdmin won't use the getCMSFields of the model?
183: [02:01:52] <ss23> aw, there's two geteditforms
184: [02:01:53] <ss23> :O
185: [02:03:19] <zippy__> Is there a "catch all" route you can do? I want any "action" going to a controller to go to a single function
186: [02:03:49] <ss23> yay
187: [02:03:51] <ss23> I think this works
188: [02:03:51] <ss23> :D
189: [02:04:20] <Pyromanik> guzzlefry: yes.
190: [02:04:22] <Pyromanik> it will.
191: [02:04:28] <Pyromanik> when you load a model.
192: [02:09:07] <ss23> rageeeee
193: [02:09:10] <ss23> music keeps cutting out
194: [02:09:13] <ss23> SOMEONE USING ALL THE INTERNET
195: [02:09:16] <ss23> SO MADDDDDDD
196: [02:09:58] <ss23> [User Error] Uncaught Exception: Object->__call(): the method 'getfields' does not exist on 'CMSForm'
197: [02:10:04] <ss23> thats cool, so I go into the api docs to find out wtf cmsform is
198: [02:10:08] <ss23> CMSFORM DOESN't EXIST
199: [02:10:09] * ss23 dies
200: [02:13:04] <Pyromanik> haha
201: [02:13:10] <Pyromanik> you opened CMS code
202: [02:13:11] <Pyromanik> hahaha
203: [02:13:14] <Pyromanik> bl2u
204: [02:13:41] <Pyromanik> if I ArrayData($arrayWithArraysInIt) does it arraydata the arrays?
205: [02:14:45] <ss23> I think maybe I injected too much insulin at lunch, cause I'm getting insane pissed off with little things atm
206: [02:14:48] <ss23> ;_;
207: [02:14:56] <Pyromanik> bl2u :<
208: [02:15:00] <simon_w> That's just your period
209: [02:15:06] <ss23> lol
210: [02:15:07] <Pyromanik> drugs, how do they even work
211: [02:15:15] <ss23> mmm
212: [02:15:21] <ss23> better take some more magic mushrooms just in case
213: [02:18:31] <zippy__> simon_w: lolz
214: [02:19:31] <Pyromanik> did someone tidy up restfulservice?
215: [02:19:55] <Pyromanik> it looks like someone took a stab at it, but I'm not entirely sure it's clean/complete
216: [02:23:45] <atmos> heh - my first push of the day and no 500s - off to the pub
217: [02:23:52] <ss23> XD
218: [02:24:20] <atmos> ss23: tell Jean his fix for page duplication seems to have worked :) will update soon
219: [02:24:29] <ss23> Sweet :D
220: [02:24:34] * peter_ss has joined #silverstripe
221: [02:27:28] <Pyromanik> FFFFFFFFFFF
222: [02:27:40] <Pyromanik> entire log in form business is set up to be extensible
223: [02:27:41] <ss23> DEADBEEF
224: [02:27:42] <Pyromanik> EXCEPT LOGGING OUT
225: [02:27:51] <ss23> lol
226: [02:28:05] <Pyromanik> which is 100% coupled to Member
227: [02:29:00] <Pyromanik> fffff
228: [02:29:04] <simon_w> Well, yeah
229: [02:29:10] <simon_w> But you can still hook into it
230: [02:29:14] <Pyromanik> how?
231: [02:29:30] <simon_w> memberLoggedOut
232: [02:29:33] <Pyromanik> wrong!
233: [02:29:37] <Pyromanik> No member logged ni!
234: [02:29:38] <Pyromanik> in*
235: [02:30:05] <Pyromanik> http://api.silverstripe.org/3.1/source-class-Security.html#326
236: [02:30:17] <simon_w> So don't link to Security/logout?
237: [02:30:37] <Pyromanik> now I have to make my own controller
238: [02:30:50] <Pyromanik> it's almost 100% pointless doing what I've done thus far.
239: [02:31:43] <Pyromanik> I know, I'll hack core!
240: [02:31:50] <ss23> :D
241: [02:31:51] <Pyromanik> $this->extend('logout');
242: [02:31:52] <ss23> A+
243: [02:31:52] <zippy__> (y)
244: [02:31:54] <ss23> Learning from the best
245: [02:31:55] <ss23> o/
246: [02:32:08] <Pyromanik> pull request against 3.1rc tonight xD
247: [02:32:37] <Jayden90> Is there a simple way to output a png asset as jpg at a certain quality level in a template?
248: [02:32:45] <Pyromanik> no
249: [02:35:50] <atmos> Jayden90: Why?
250: [02:37:11] <Jayden90> We have a BUNCH on images that have been added to a site via the cms that are simply too high quality. We would like to make sure if a user uploads a massive .png it will be outputted as a reasonable .jpg
251: [02:37:42] <Jayden90> obveously only in places in the templates we are happy to lose transparency
252: [02:38:10] <atmos> Jayden90: why not just limit the size of the uploaded image or resize it?
253: [02:38:29] <Zauberfisch> oh noez
254: [02:38:31] <Zauberfisch> this is bad
255: [02:38:42] <Zauberfisch> Page many_many Image
256: [02:38:51] <Zauberfisch> SiteConfig many_many Image
257: [02:39:18] <Zauberfisch> SiteConfig->byID(1)->Images() === Page->byID(1)->Images()
258: [02:39:34] <ss23> Is this bad? :O
259: [02:40:05] <Jayden90> atmos: the png's are being resized correctly, its just that there are so many and png is naturally heavier than jpg
260: [02:40:05] <Zauberfisch> yes
261: [02:40:12] <Zauberfisch> but in fact, that is not the issue
262: [02:40:15] <Zauberfisch> oh god
263: [02:40:17] <Zauberfisch> its worse
264: [02:40:26] <Zauberfisch> someone broke UploadField
265: [02:40:33] <ss23> :O
266: [02:40:38] <Zauberfisch> or at least I think
267: [02:40:39] <ss23> Zauberfisch: WHICH BRANCH, WHICH BRANCH?!
268: [02:40:39] <Pyromanik> lawl
269: [02:40:40] <Jayden90> atmos: also, hindsight. I have to deal with hundreds of images now
270: [02:40:59] <ss23> git-revert git-revert!
271: [02:41:04] <atmos> Jayden90: hmmmm, tricky
272: [02:41:13] <Pyromanik> Jayden90: png sometimes not naturally heavier. Sometimes even lighter.
273: [02:41:15] <Zauberfisch> oh god, yes
274: [02:41:17] <Zauberfisch> ss23: 3.1
275: [02:41:22] <ss23> FUUUCCCCCKKK
276: [02:41:24] <Pyromanik> wait, I'm thinking of gif
277: [02:41:25] <ss23> THAT'S A BRANCH I USE!
278: [02:41:31] <Pyromanik> but PNG isn't necessarilly heavy.
279: [02:41:37] <Pyromanik> but if it's a photograph, then yeah.
280: [02:41:39] <ss23> Pyromanik: No, it's right, PNG can be a lot smaller for better quality than jpg
281: [02:41:41] <Pyromanik> might be out of luck
282: [02:41:46] <Zauberfisch> UploadField detects ParentID of File as a Relation between Page and File
283: [02:41:57] <Zauberfisch> (I think)
284: [02:42:01] <Pyromanik> ss23: yeah, can be. If it's like solid colours throughout
285: [02:42:14] <Jayden90> I prefer png along with minimalist design. But i have do deal with the situation i am in unfortunatly :(
286: [02:42:22] <Jayden90> * to deal
287: [02:42:36] <ss23> https://www.youtube.com/watch?v=QEzhxP-pdos
288: [02:42:48] <atmos> Jayden90: heh - being a dick - but you cold pull all .pngs out of /assets and run them through a batch converter - reupload, then limit image uploads to .jpg
289: [02:43:04] <atmos> Jayden90: if you were desperate lol
290: [02:44:10] <atmos> Jayden90: but I'm guessing the .pngs are in the mb range, not kb?
291: [02:44:15] <Zauberfisch> yeah, seems like UploadField does use the ParentID field
292: [02:44:21] <Zauberfisch> :S
293: [02:44:22] <Jayden90> atmos: haha crossed my mind. It would be a good capability to convert images from png to jpg. I can not expect a CMS user to manualy convert all his product images to jpg if he has a mishmash.
294: [02:44:51] <atmos> Jayden90: make a module for them XD
295: [02:44:54] <Jayden90> atmos: It's really not that bad, its just the volume of images
296: [02:45:22] <Jayden90> yea
297: [02:46:17] <Jayden90> I like the idea of uploading lossless high quality images, then being able to configure to output via the templates when it comes to perfomance tweaking.
298: [02:48:14] <atmos> Jayden90: That's a heavy reliance on the template though - I would have thought processing images in code, then having the template read the output of that. Upload ->in, Processed->out etc
299: [02:48:48] <Pyromanik> fuck, there's no purpose to trying to add an authenticator for logging in to SS
300: [02:49:08] <Pyromanik> if your member info is stored elsewhere
301: [02:49:25] <Pyromanik> just going to re-define Security
302: [02:49:27] <Pyromanik> FFFFFFFFFFFFFF
303: [02:49:33] * priithansen quit (Quit: priithansen)
304: [02:50:13] <Jayden90> atmos: Problem with that is if you want to dial the quality up later you can't
305: [02:50:58] <Jayden90> atmos: Besides, one image could be repurposed in many places throughout the site
306: [02:51:05] <atmos> Jayden90: True
307: [02:51:54] <Pyromanik> jpeg makes shit quality images anyway
308: [02:52:14] <Pyromanik> use the right enc for the right purpose
309: [02:52:45] <Jayden90> what would be ultimate is if pngoptim would run when gd is used by silverstripe
310: [02:55:38] <Jayden90> what powers this: http://imageoptim.com/
311: [02:55:46] <Jayden90> it is lossless optimisation wizardry
312: [02:55:49] <ss23> Magic and unicorns~
313: [02:57:50] * howardgrigg has joined #silverstripe
314: [02:58:26] <atmos> Jayden90: I...I kinda want to modularise that
315: [02:59:32] * mobiusnz has joined #silverstripe
316: [03:01:35] <Pyromanik> gawd, I find myself wanting to completely refactor Security
317: [03:01:42] <Pyromanik> this is bad news.
318: [03:01:50] <simon_w> Pyromanik, you and FrozenFire should make a club!
319: [03:02:11] <FrozenFire> I decided instead to move on to a better framework. :)
320: [03:02:21] <Pyromanik> yeah, but then you chose ZF2
321: [03:02:28] <simon_w> Lolburn
322: [03:02:32] <FrozenFire> Indeed. I'm almost as bad as a Java developer
323: [03:02:36] <Zauberfisch> hold on a second
324: [03:02:43] <Pyromanik> you are a Java developer?
325: [03:02:47] <Zauberfisch> did I just hear someone call zend framework a better framework?
326: [03:02:55] <FrozenFire> Zauberfisch, By far
327: [03:03:02] <Pyromanik> Zauberfisch: not ZF, ZF2.
328: [03:04:57] <mobiusnz> ugh
329: [03:05:08] <mobiusnz> any ideas why my uploadfield is linking images incorrectly?
330: [03:05:12] <Zauberfisch> FrozenFire: you are dead to me!
331: [03:05:16] <mobiusnz> it's putting in the wrong path
332: [03:05:28] <FrozenFire> Zauberfisch, Hey, I still use SS on occasion. Just not for important stuff.
333: [03:05:41] <Zauberfisch> mobiusnz: was just just complaining about UploadField not setting IDs right
334: [03:05:45] <simon_w> mobiusnz, because FrozenFire uses a Zend product
335: [03:05:53] <Colin[pi]> SS is a toy for FrozenFire now
336: [03:05:54] <Colin[pi]> :DF
337: [03:06:11] <mobiusnz> herp derp
338: [03:06:18] <FrozenFire> If I could take SS' CMS with me to ZF2, I'd never look back
339: [03:06:29] <Zauberfisch> FrozenFire: don't worry, all your sins will be forgive once we burn you on the stake
340: [03:06:58] <Pyromanik> rofl
341: [03:07:13] <Zauberfisch> :P
342: [03:08:21] <Zauberfisch> meh, its just that I don't like zf, had to work with it once, did not enjoy it. but maybe thats just me
343: [03:08:29] <ss23> It's okay, I'm sure everyone here would be happer if ZF users could go back to pure ZF too
344: [03:08:32] <ss23> It's like that joke
345: [03:08:41] <ss23> When a NZer moves to Australia, they increase the IQ of both countries
346: [03:09:01] <Zauberfisch> haha
347: [03:09:06] <Colin[pi]> lol
348: [03:09:25] * Jayden90 quit (Quit: Jayden90)
349: [03:10:13] <FrozenFire> Zauberfisch, ZF1 is to ZF2 as PHP4 is to PHP5
350: [03:10:35] <FrozenFire> ZF2 is effectively a new framework
351: [03:10:40] <simon_w> So, pretty much the same if you don't care about <certain new feature>?
352: [03:10:51] <FrozenFire> Yeah, who cares about OOP?
353: [03:10:51] <Zauberfisch> FrozenFire: it was zf2 that I used
354: [03:10:53] <FrozenFire> :P
355: [03:10:53] <ss23> lol
356: [03:11:58] <simon_w> So, what's the ZF equivalent to OOP that got rebuilt?
357: [03:12:13] <ss23> The entire thing, man!
358: [03:12:16] <FrozenFire> But really, I'm not actually trying to argue supremacy of ZF2 :P. It's good for a certain type of thing.
359: [03:12:21] <FrozenFire> SS is good for another type of thing.
360: [03:12:33] <simon_w> And your analogy sucks :p
361: [03:12:36] <FrozenFire> If I tried to accomplish in ZF2, what I've done in SS, it'd take me 100x the time.
362: [03:12:45] <ss23> Yeah, like IE6 is good for certain things, like getting viruses
363: [03:12:50] <Colin[pi]> and sucking
364: [03:13:01] <FrozenFire> And if I tried to accomplish in SS what I've done in ZF2, it'd probably crash and burn
365: [03:13:09] <Zauberfisch> ss23: hahaha
366: [03:13:16] <Colin[pi]> and what have you accomplished in ZF2?
367: [03:13:40] <FrozenFire> Well, this thing that <redacted because it's under a strict NDA>.
368: [03:13:55] <Colin[pi]> uh huh
369: [03:14:01] <simon_w> Ooh, I had this debate with someone else already!
370: [03:14:02] <FrozenFire> :P
371: [03:14:07] <Zauberfisch> FrozenFire: sorry, I am usualy not a hater, but sometimes its just to good to stop
372: [03:14:22] <FrozenFire> No worries. I've got thick skin. :P
373: [03:14:26] <simon_w> "I'm right, but my NDA says you can never know"
374: [03:14:37] <simon_w> "I'm right, because I said so"
375: [03:14:55] <FrozenFire> simon_w, Haha. I'd actually love to discuss it, because it's pretty cool, but yeah.
376: [03:15:06] <FrozenFire> A good, vague thing about it is that it can never, ever, ever break.
377: [03:15:08] <FrozenFire> Like, ever.
378: [03:15:18] <FrozenFire> Which ZF2 is good at doing
379: [03:15:28] <mobiusnz> simon_w: it looks like something is setting the parentID to the ID of the related object when UploadField is being used, rather than the id of the folder
380: [03:15:31] <FrozenFire> It takes you much longer to do, but it never stops working.
381: [03:15:32] <simon_w> Which is why they need bug fixes
382: [03:15:35] * Jayden90 has joined #silverstripe
383: [03:16:22] <spronk> ah, zf2..
384: [03:16:35] <spronk> <insert obligatory disdain here>
385: [03:16:43] <FrozenFire> :P
386: [03:16:59] <simon_w> FrozenFire, so, have you accounted for cosmic rays?
387: [03:17:10] <Zauberfisch> mobiusnz: I can confirm that, I was whining about that exact bug 10min ago
388: [03:17:17] <Zauberfisch> this sucks
389: [03:17:22] <FrozenFire> simon_w, No, but I've accounted for homeless people
390: [03:17:32] <simon_w> FrozenFire, so it could stop
391: [03:17:53] * FrozenFire is too busy laughing at his own joke that nobody else could possibly get
392: [03:19:00] <spronk> zf2. just like zf1 only bigger, even more overengineered, and even less usable! :P
393: [03:19:33] <FrozenFire> But... but... butt... hydrators!
394: [03:20:08] <spronk> but but but not invented here syndrome!
395: [03:20:42] <spronk> there are like...
396: [03:21:11] <FrozenFire> Hahahaha, NIH criticisms in #silverstripe
397: [03:21:13] <FrozenFire> :P
398: [03:21:15] <spronk> 3 DBALs that are as good as, or better, than ZFs. THere are maybe 4 ORMs that do the same shit as that in ZF2, but, yknow, have existed for years already
399: [03:21:24] <spronk> dw, i'm just as critical of ss the framework :)
400: [03:21:40] <Zauberfisch> FrozenFire: fair point
401: [03:22:38] <ss23> No matter what framework you use, work gets more interesting if you play some Two Steps From Hell to it o/
402: [03:22:41] <spronk> someone needs to add symbols to php
403: [03:22:42] <FrozenFire> Really, the thing I love most about ZF2 tends to be its stdlib
404: [03:24:47] <FrozenFire> ZF24lyfe
405: [03:24:56] <spronk> yeah, but then you look at ZF2 and think "hmm.. if i'm going to learn this, i might as well just go the whole hog and move to a better language in the first place"
406: [03:25:05] <ss23> lol spronk
407: [03:25:07] <ss23> Go!
408: [03:25:10] <FrozenFire> Haskell
409: [03:25:11] <spronk> PYPWN
410: [03:25:23] <ss23> Ruby? :3
411: [03:25:24] <spronk> RUBBY!
412: [03:25:32] <spronk> SCALAZ!
413: [03:25:42] <ss23> :D
414: [03:25:45] <ss23> COFFEESCRIPT!
415: [03:25:52] <mobiusnz> ahah
416: [03:25:54] <spronk> scala is pretty fucking cool, though
417: [03:26:00] <mobiusnz> Zauberfisch: I've found how to fix
418: [03:26:01] <spronk> it's a pity JVM deployments are such a fucking PITA
419: [03:27:51] <Pyromanik> < FrozenFire> Which ZF2 is good at doing
420: [03:28:02] <Pyromanik> you're saying ZF2 is good at breaking?
421: [03:28:10] <FrozenFire> Herpa derp
422: [03:28:21] <Pyromanik> heh. But in all honesty, I'm pretty sure I've heard this thing about never ever breaking before...
423: [03:28:24] <FrozenFire> Bbiab, shutting down my NAS which has my IRC bouncer
424: [03:28:25] <spronk> heh
425: [03:28:39] <spronk> anyone who says 'never breaks' is suspicious to me.
426: [03:28:39] <spronk> :P
427: [03:28:43] <Pyromanik> I think the project was called something starting with a T
428: [03:28:43] <ss23> ^
429: [03:28:44] * spronk looks suspiciously at FrozenFire
430: [03:28:45] * FrozenFire quit (Quit: There's no place like ~)
431: [03:28:47] <Pyromanik> oh yeah, THE TITANIC
432: [03:28:50] <ss23> hahaha
433: [03:28:54] <spronk> :D
434: [03:29:00] <ss23> NovoPay amirite?
435: [03:29:01] <ss23> ^.^
436: [03:29:08] <ss23> NovaPay?
437: [03:29:08] <ss23> idk
438: [03:29:17] <spronk> i believe the phrase is
439: [03:29:20] <spronk> "Failure of imagination"
440: [03:29:25] <ss23> Watergategate
441: [03:29:29] <ss23> the scandal about the watergate hotel
442: [03:29:36] <Pyromanik> http://www.youtube.com/watch?v=OuSdU8tbcHY
443: [03:29:36] * FrozenFire has joined #silverstripe
444: [03:29:39] <FrozenFire> Eh, connected directly.
445: [03:29:40] <FrozenFire> :P
446: [03:29:52] <Pyromanik> 15:29 <+ss23> the scandal about the watergate hotel
447: [03:29:53] <Pyromanik> wtf
448: [03:29:56] <Pyromanik> I stayed there...
449: [03:30:06] <Pyromanik> what's this scandal?
450: [03:30:17] <ss23> :O
451: [03:30:22] <ss23> WATERGATEGATE bro!
452: [03:30:28] <ss23> The scandal that started the gate suffix!
453: [03:30:31] <Pyromanik> dem gates
454: [03:30:35] <ss23> Also, Pyromanik, that video was over 50% filler
455: [03:30:39] <ss23> and it was meant to be a 5 second video
456: [03:30:40] <ss23> how the fuck
457: [03:30:43] <ss23> rage
458: [03:30:46] <Pyromanik> hahaha
459: [03:30:48] <Pyromanik> but it's good
460: [03:31:06] <ss23> I can't enjoy a video that is meant to be 5 seconds but streches to 12
461: [03:31:11] <ss23> That's just idiocy on the part of the person who made it
462: [03:31:15] <Pyromanik> the content was 5 seconds
463: [03:31:26] <Pyromanik> (probably not, but just deal with it)
464: [03:31:54] <ss23> Exactly!
465: [03:32:10] <ss23> It's like watching an hour long film, and having over 35 mins of it b e credits and opening!
466: [03:33:06] * FrozenFire quit (Remote host closed the connection)
467: [03:33:15] <ss23> "dev/build?flush=1 fixes everything. Except the fact that SilverStripe is a godawful CMS."
468: [03:33:18] <ss23> Oh
469: [03:33:20] <ss23> no
470: [03:33:23] <ss23> you
471: [03:33:25] <ss23> didn't
472: [03:34:32] <spronk> waaiiitt
473: [03:34:33] <spronk> who said that
474: [03:34:41] <ss23> Some guy on twitter
475: [03:34:41] <ss23> :O
476: [03:34:49] <ss23> tbh, I hate the CMS side of Silverstripe too
477: [03:34:55] <Pyromanik> but they're wrong, because /dev/build doesn't use ssviewer
478: [03:35:01] <ss23> lol
479: [03:35:03] <Pyromanik> where the flushing happens
480: [03:35:08] <Pyromanik> tweet them back
481: [03:35:16] <Pyromanik> TELL THEM THEY'RE WRONG
482: [03:35:27] <ss23> hahahah
483: [03:35:28] <ss23> no!
484: [03:35:35] <Jayden90> I have often wondered if you could build and flush at the same time
485: [03:35:47] <ss23> Jayden90: dev/build?flush=all
486: [03:35:48] <ss23> boom
487: [03:36:05] <Jayden90> is flush=all now flush=1 in 3.1?
488: [03:36:15] <ss23> Nope?
489: [03:36:19] <Jayden90> cool
490: [03:36:32] * cloph_away has joined #silverstripe
491: [03:36:48] <Pyromanik> Jayden90: flush=all flushes the entire cache. Flush=1 flushes that one page.
492: [03:37:04] * cloph quit (Ping timeout: 264 seconds)
493: [03:37:05] <Pyromanik> it's always been like that
494: [03:37:16] <atmos> goddamn white space
495: [03:37:26] <Pyromanik> also, ss23 is joking. You can't flush and build
496: [03:38:12] <ss23> Can too
497: [03:38:13] <ss23> I do it all the time
498: [03:38:21] * nickmolhoek quit (Quit: nickmolhoek)
499: [03:38:27] <Jayden90> http://doc.silverstripe.org/framework/en/3.1/reference/urlvariabletools
500: [03:38:34] <Jayden90> flush = all is not in there
501: [03:38:41] <ss23> :O
502: [03:39:37] <Jayden90> "flush=1" -> "Clears out all caches"
503: [03:39:41] <ss23> Hmm
504: [03:39:46] <ss23> It was removed in hamishes commit from the docs
505: [03:39:54] <Pyromanik> might have been updated in the ?flush patch
506: [03:39:58] <ss23> simon_w: Is that a mistake? The flush=1 fix wasn't meant to prevent flush=all working, was it?
507: [03:40:13] <ss23> https://github.com/silverstripe/silverstripe-framework/commit/1298d4a5bd927117f9893f32fd02a75ed10d623b#L3R20
508: [03:40:14] <Jayden90> flush=all does not seem to work, =1 does
509: [03:40:23] <ss23> I swear
510: [03:40:25] <ss23> if flush=all has been removed
511: [03:40:26] <ss23> wtf
512: [03:40:30] <ss23> how the heck are you meant to clear all caches...?
513: [03:40:33] <ss23> oh
514: [03:40:33] <ss23> I see
515: [03:40:37] <ss23> 1 now clears *all* caches
516: [03:40:53] <guzzlefry> So I have a $has_one on a datamodel. Not sure how to add it to CMSFields. It's a slideshow with many_many slides?
517: [03:40:55] <Jayden90> also, doing is at the same time as building does not seem to work for me
518: [03:40:57] <Jayden90> i may be wrong
519: [03:41:11] <ss23> Jayden90: It should, but uh, yeah, looks like flush=1 in 3.1 does what flush=all did in other versions
520: [03:41:42] <Pyromanik> guzzlefry: you don't.
521: [03:41:43] <Pyromanik> lol
522: [03:41:56] <simon_w> ss23, ?flush has always cleared all manifest caches
523: [03:41:57] <Pyromanik> unless it's a file, then uploadfield.
524: [03:41:57] <guzzlefry> I'm confused. :P
525: [03:42:06] <ss23> simon_w: I didn't say manifest caches, I meant template caches
526: [03:42:08] * fen_ has joined #silverstripe
527: [03:42:08] <simon_w> ?flush=all just also clears all compiled templates
528: [03:42:13] <Pyromanik> yeh
529: [03:42:16] <fen_> Hi
530: [03:42:21] <ss23> simon_w: I may have misread
531: [03:42:23] <Pyromanik> where flush=1 only clears the one page's template cache
532: [03:42:25] <Pyromanik> hi fen_
533: [03:42:27] <ss23> simon_w: The docs cahnge makes it look like flush=all is removed
534: [03:42:30] <Jayden90> old behavior
535: [03:42:30] <ss23> simon_w: Is that the case?
536: [03:42:38] <simon_w> ss23, you may also have tried to ?flush=all in /dev
537: [03:42:39] <simon_w> no
538: [03:42:40] <fen_> need a ahelp to find whehter it is add or edit in a cms page
539: [03:42:45] <guzzlefry> Pyromanik, How do I link the Slideshow to the page? >_> The page has the $has_one by the way.
540: [03:42:45] <ss23> The the docs are just wrong
541: [03:42:57] <ss23> dammit hamish!
542: [03:42:57] <fen_> so that I can check unique id for a cms field
543: [03:43:43] <atmos> wait, so all these ?flush=alls I've been doing are useless?
544: [03:43:46] <atmos> LIES
545: [03:43:49] <ss23> XD
546: [03:43:53] * nickmolhoek has joined #silverstripe
547: [03:43:53] <guzzlefry> They've been working for me.
548: [03:43:58] * nickmolhoek quit (Remote host closed the connection)
549: [03:43:59] <ss23> It's okay, the docs are wrong, ?flush=all is still fine
550: [03:44:00] <ss23> RELAX
551: [03:44:00] <simon_w> fen_, so, the way the CMS works, is that add immediately writes, then switches you over to edit
552: [03:44:03] <simon_w> atmos, yes
553: [03:44:05] <guzzlefry> I'm on 3.1-dev though.
554: [03:44:13] * nickmolhoek has joined #silverstripe
555: [03:44:14] <guzzlefry> err, 3.1.x-dev?
556: [03:44:14] <atmos> 3.0 here
557: [03:44:26] <ss23> simon_w: YOU JUST SAID ?FLUSH=ALL STILL CLEARS ALL TEMPLATE CACHES!
558: [03:44:40] <simon_w> <simon_w> ss23, you may also have tried to ?flush=all in /dev
559: [03:44:51] <ss23> I don't know how that is relevant? Elaborate?
560: [03:44:51] <simon_w> It doesn't there
561: [03:45:01] <simon_w> dev/build?flush=all
562: [03:45:03] <Pyromanik> guzzlefry: dropdown!
563: [03:45:06] <simon_w> The ?flush=all does nothing
564: [03:45:10] <Jayden90> yes
565: [03:45:18] <atmos> simon_w: ah, I see
566: [03:45:20] <fen_> how to implement a function to check
567: [03:45:24] <atmos> I do that all the time :P
568: [03:45:25] <Pyromanik> atmos: only if you're doing them when you dev/build
569: [03:45:32] <ss23> oic
570: [03:45:34] <fen_> whether a id is unique while enterign through cms page
571: [03:45:39] <guzzlefry> thank you
572: [03:45:49] <guzzlefry> I should have guessed that. :/
573: [03:45:49] <Jayden90> =all does not seem to work for me anytime, anywhere
574: [03:45:52] <Jayden90> =1 does
575: [03:45:58] <Jayden90> except when building
576: [03:46:03] <Pyromanik> fen_: id is always unique.
577: [03:46:21] <fen_> I need it validated to say id shioukd be unsique
578: [03:46:33] <Pyromanik> and you can't tell if a page is new or not, although I guess you could test for URLSegment.
579: [03:46:42] <Pyromanik> fen_: it's always unique.
580: [03:46:52] <simon_w> fen_, are you talking about the ID field or are you adding a new field?
581: [03:46:54] <fen_> if some one enters id that is unique
582: [03:46:59] <Pyromanik> I think he's adding a new one
583: [03:47:00] <mobiusnz> how can I get around this error when trying to fix up image links? Cannot move assets/13535442620.jpg to assets/323/13535442620.jpg - assets/13535442620.jpg doesn't exist
584: [03:47:07] <atmos> hey which company did Matt end up going to?
585: [03:47:08] <Pyromanik> must be
586: [03:47:13] <mobiusnz> the image is already at assets/323/...
587: [03:47:18] <fen_> I am adding for example employee id through cms
588: [03:47:38] <simon_w> fen_, if(Page::get()->filter('UniqID', $this->UniqID)->exclude('ID', $this->ID)->count() > 0) { // not unique }
589: [03:47:40] <fen_> if the user enters smae employeed id
590: [03:47:44] <fen_> i should warn him
591: [03:47:49] <Jayden90> mobiusnz: did you use the files tab to move the images?
592: [03:48:00] * DigNZ quit (Quit: DigNZ)
593: [03:48:05] <mobiusnz> Jayden90: no, it was linked incorrectly by the upload field
594: [03:48:14] <mobiusnz> I've written a task to set the parentID properly
595: [03:48:47] <mobiusnz> oo, how do I set if(!$this->config()->update_filesystem) return false;
596: [03:49:04] <fen_> if(Page::get()->filter('UniqID', $this->UniqID)->exclude('ID', $this->ID)->count() > 0) { // not unique }
597: [03:49:15] <fen_> wil it work for eidt also
598: [03:49:18] <fen_> edit
599: [03:49:37] <simon_w> Yes
600: [03:50:02] <fen_> wil you how can i wtite fro employee id
601: [03:50:08] <fen_> write
602: [03:50:19] <Pyromanik> can I usecustomclass on Security?
603: [03:50:31] * FrozenFire has joined #silverstripe
604: [03:50:36] <fen_> if(Page::get()->filter('UniqID', $this->UniqID)->exclude('employee_id', $this->employee_id)->count() > 0) { // not unique }
605: [03:51:17] <Pyromanik> fen_: use it in onBeforeWrite
606: [03:51:31] <simon_w> fen_, if(Page::get()->filter('employee_id', $this->employee_id)->exclude('ID', $this->ID)->count()
607: [03:51:54] <fen_> where tio give this
608: [03:52:01] <Pyromanik> or in Page::validate()
609: [03:52:08] * swordsmanz quit (Quit: swordsmanz)
610: [03:52:17] <mobiusnz> how can I set File::$update_filesystem to false within a task run?
611: [03:52:19] <Pyromanik> nwell, YourPageType::validate()
612: [03:52:21] <fen_> is it in class employees extends Page
613: [03:52:51] <fen_> public function validate() { $valid = parent::validate();
614: [03:52:58] <fen_> if(Page::get()->filter('employee_id', $this->employee_id)->exclude('ID', $this->ID)->count()
615: [03:52:59] <fen_> }
616: [03:53:06] <fen_> can i give like this
617: [03:53:17] <ss23> fen_: Thats a little wrong
618: [03:53:19] <ss23> I think
619: [03:53:27] <fen_> then how cna I give
620: [03:53:29] <ss23> Isn't it filter('filter_name' => $filter_value);
621: [03:53:39] <ss23> Not filtername, $filter_value as arguemnts?
622: [03:53:42] <ss23> Or can it support both?
623: [03:54:54] * DigNZ has joined #silverstripe
624: [03:54:54] * DigNZ quit (Remote host closed the connection)
625: [03:55:09] * DigNZ has joined #silverstripe
626: [03:56:17] <guzzlefry> "NetworkError: 404 Not Found - http://localhost/assets/Uploads/_resampled/SetRatioSize8060-slider-8.jpg"
627: [03:56:22] <guzzlefry> I just uploaded the image? 0.o
628: [03:56:30] <FrozenFire> Permissions
629: [03:56:33] <FrozenFire> For creating the resized
630: [03:58:10] <guzzlefry> They look fine...
631: [03:58:14] <guzzlefry> Think I'm missing GD though. :P
632: [04:00:08] * FrozenFire quit (Remote host closed the connection)
633: [04:01:06] <Pyromanik> ss23: both
634: [04:01:15] <ss23> mmk
635: [04:01:17] <ss23> Wasn't sure
636: [04:02:31] * nickmolhoek quit (Quit: nickmolhoek)
637: [04:03:27] <zippy__> Man, dev/build runs super fast in SS2.4 as aposed to 3.0!
638: [04:03:33] <ss23> lol
639: [04:03:36] <zippy__> damn near instant, it's like it doesn't even do anything
640: [04:03:47] <ss23> Bloat bloat bloat!
641: [04:03:52] <zippy__> 3.0 bloat?
642: [04:04:14] <ss23> Every project ever bloat
643: [04:06:21] <simon_w> All those extra manifests and file system scans
644: [04:06:29] <fen_> thanks for the help @simon_w
645: [04:06:36] <fen_> need one mroe help
646: [04:06:58] <fen_> like i need a csv upload data to be published automatically
647: [04:07:23] <fen_> i am adding some employee details and it is added to site tree, but it comes in draft mode
648: [04:07:39] <fen_> i need to cahnge ot to live mode at the time the data is imported
649: [04:07:44] <fen_> pls help
650: [04:07:58] <Zauberfisch> mobiusnz: sorry, was afk
651: [04:08:07] <Zauberfisch> you found a fix?
652: [04:08:14] <mobiusnz> yeah
653: [04:08:27] <mobiusnz> to having things with many photos and having uploadfield work
654: [04:09:23] * b00mtastik_ quit (Ping timeout: 250 seconds)
655: [04:10:13] <fen_> need one more help like i need a csv upload data to be published automatically i am adding some employee details and it is added to site tree, but it comes in draft mode i need to cahnge ot to live mode at the time the data is imported pls help
656: [04:10:34] <simon_w> fen_, are you using a custom importer?
657: [04:11:14] <Zauberfisch> mobiusnz: how did you fix it?
658: [04:11:18] <ss23> Hahaha, "@hipsterhacker: I've got Postgres on vinyl"
659: [04:12:10] <fen_> i am using a cutom imprt fucntionality
660: [04:12:14] <fen_> custom
661: [04:12:14] <simon_w> Well, I've got Postgres on hiphop!
662: [04:12:29] <simon_w> fen_, then, $page->publish('Stage', 'Live'); after $page->write();
663: [04:12:55] <fen_> where is to be given this
664: [04:13:11] <fen_> class EmployeeCsvBulkLoader extends CsvBulkLoader
665: [04:13:16] <fen_> in this page
666: [04:13:21] <ss23> simon_w: Those pull requests sent yet?! :P
667: [04:13:26] * pippy_ has joined #silverstripe
668: [04:13:34] <simon_w> ss23, I don't think so
669: [04:13:49] <Zauberfisch> is it just me, or is this RC the most buggy SS release in like ever?
670: [04:14:25] <Zauberfisch> for some reason checkboxes don't work in the CMS (don't show as checked)
671: [04:14:28] <Zauberfisch> and I have no idea why
672: [04:14:35] <zippy__> simon_w: more postgres!
673: [04:14:36] <mobiusnz> Zauberfisch: something like this: http://pastie.org/8234894
674: [04:14:42] <simon_w> fen_, protected function processRecord($record, $columnMap, &$results, $preview = false) { $id = parent::processRecord($record, $columnMap, &$results, $preview); Page::get()->byID($id)->publish('Stage', 'Live'); }
675: [04:15:13] * pippy quit (Read error: Operation timed out)
676: [04:15:26] <simon_w> Zauberfisch, obviously you didn't use 3.0a1/2 :p You were lucky if you could load an edit form in the CMS
677: [04:15:41] <Jayden90> Guys what is the function of the "&flushtoken=e0770ae572e0c2e850d1d5fa07cd772e" when using flush=1
678: [04:15:50] <Jayden90> do i have to delete that bit every time?
679: [04:16:05] <Zauberfisch> simon_w: haha, well, if you ask me 3.0 release was more like a alpha test thingy
680: [04:16:11] <fen_> @simon in which page this is to be written
681: [04:16:34] <simon_w> fen_, EmployeeCsvBulkLoader
682: [04:16:55] <Zauberfisch> thats it, I am downgrading
683: [04:17:04] <fen_> ok
684: [04:17:16] <simon_w> Jayden90, that's so that the flush actually knows to happen (it gets appended if you're an admin). You can leave it there and just refresh
685: [04:17:28] <guzzlefry> $fields->addFieldToTab("Root.Main", new DropdownField("Slideshow", "Slideshow", SlideShow::get())); // Not sure what's I'm doing wrong. I get I only want a list of the Slideshow IDs?
686: [04:18:07] <simon_w> guzzlefry, SlideShow::get()->map('ID', 'WhateverTheNameOfTheFieldYouWantToDisplayIs')
687: [04:18:34] <guzzlefry> simon_w: I'm trying to establish a $has_one relationship with the slideshow, if that makes sense.
688: [04:18:43] <simon_w> Yes, I get that
689: [04:18:52] <simon_w> You'll also want the name to be SlideshowID
690: [04:18:58] * zippy__ quit (Ping timeout: 256 seconds)
691: [04:20:55] <simon_w> And it's home time!
692: [04:21:06] <ss23> Cyao!
693: [04:21:36] <Zauberfisch> omg
694: [04:21:45] <ss23> Zauberfisch: GO TO BED
695: [04:21:45] <Zauberfisch> turns out, its a flushy thing
696: [04:21:46] <ss23> :O
697: [04:22:07] <Zauberfisch> sort of makes sense, since 3.1 DB is cached
698: [04:22:14] <Zauberfisch> and I did dev/build via sake
699: [04:22:22] <Zauberfisch> so the cache for http requests was not flushed
700: [04:22:26] <Zauberfisch> ...
701: [04:24:02] <Zauberfisch> ss23: I already did today
702: [04:24:05] <fen_> thank @ simo_w
703: [04:24:06] <ss23> SLEEP MOAR
704: [04:24:12] <Zauberfisch> no time
705: [04:24:33] <fen_> when i add these employee details through cms i need it to come under a page employee holder how can i do that
706: [04:28:34] <fen_> anybody help
707: [04:28:47] <fen_> when i add the employee details through cms i need it to come under a page employee holder how can i do that
708: [04:29:05] * pippy has joined #silverstripe
709: [04:29:06] <atmos> http://www.jamonline.co.nz/latest/rss this usually suggests white space before/after php openining and closing tags, yes?
710: [04:29:40] <guzzlefry> atmos: I never use closing tags.
711: [04:29:55] <ss23> atmos: Yeah, soemtimes
712: [04:30:05] <ss23> Like guzzlefry said, if you avoid using any closing tags, it might be better
713: [04:30:14] <ss23> atmos: Could also be newline at the start of something
714: [04:30:20] <guzzlefry> atmos: There's a new line at the top. Right click -> view source.
715: [04:30:49] <atmos> guzzlefry: oh snap - thanks
716: [04:31:24] <fen_> when i add the employee details through cms i need it to come under a page employee holder how can i do that
717: [04:32:05] * pippy_ quit (Ping timeout: 245 seconds)
718: [04:35:51] <fen_> when i add the employee details through cms i need it to come under a page employee holder how can i do that
719: [04:36:33] <atmos> omg I can't find this whitespace anywhere - BlogHolder.php?
720: [04:40:00] * Stomach quit (Quit: Leaving.)
721: [04:40:27] <fen_> when i add the employee details through cms i need it to come under a page employee holder how can i do that
722: [04:42:54] <Jayden90> fen_: No need to spam. I recently handled a list of employees using a gridfield residing on an about page.
723: [04:42:56] <Jayden90> http://doc.silverstripe.org/framework/en/3.1/tutorials/5-dataobject-relationship-management
724: [04:43:15] <Jayden90> An example there on how to use gridfields
725: [04:43:27] <guzzlefry> $fields->addFieldToTab("Root.Main", SlideShow::get()->map('ID', 'SlideshowID'));
726: [04:43:28] <guzzlefry> PHP Fatal error: Call to undefined method SS_Map::getName()
727: [04:43:50] * UncleCheese quit (Quit: UncleCheese)
728: [04:50:00] <fen_> @jayden will you tell me the funstion to be used
729: [04:53:23] <fen_> @jayden will you tell me the function to be used
730: [04:53:48] <fen_> so that I have given all these still it is not coming corecly
731: [04:57:26] * nickspiel86 quit (Quit: Leaving)
732: [04:59:26] * DigNZ quit (Quit: DigNZ)
733: [04:59:34] * mobiusnz quit (Quit: Leaving.)
734: [05:03:32] * digitaldesign has joined #silverstripe
735: [05:04:17] * pippy_ has joined #silverstripe
736: [05:05:39] * Pyromanik quit (Quit: leaving)
737: [05:07:21] * pippy quit (Ping timeout: 264 seconds)
738: [05:19:24] <Peavers> boys
739: [05:19:27] <Peavers> off topic
740: [05:19:43] <ss23> o.O
741: [05:19:43] <ss23> What?
742: [05:19:48] <Peavers> does anyone know how to accept adding a repo in mint 15 or similar? -y, --y doesn't work...
743: [05:19:57] <Peavers> nore does export FORCE_ADD_APT_REPOSITORY=force
744: [05:20:03] <ss23> Doesn't work as in gives an error? It should be explicit
745: [05:20:05] <ss23> It uses apt, right?
746: [05:20:11] <Peavers> yeah using apt
747: [05:20:20] <Peavers> just blows up with some random reg exp error
748: [05:20:29] <Jayden90> http://doc.silverstripe.org/framework/en/3.1/reference/sitetree#allowed-children-default-child-and-root-level
749: [05:20:34] <ss23> Peavers: Paste it?
750: [05:20:38] <ss23> Peavers: Sounds like it could be a bug
751: [05:20:41] <Jayden90> Has an example: private static $allowed_children = array("*Page,", "BlogHolder");
752: [05:20:43] <Peavers> the error?
753: [05:21:07] <Jayden90> the sytax of "*Page," is not explained. what is the asterix and comma?
754: [05:21:16] <ss23> Yeah, Peavers
755: [05:21:25] <ss23> Jayden90: Never seen it before sorry :<
756: [05:21:40] <Peavers> hang on
757: [05:21:44] <Jayden90> *syntax
758: [05:22:13] <Peavers> http://pastebin.com/nxvxvnwB
759: [05:23:12] <ss23> Peavers: Manually edit /etc/apt/sources.list, or/and report the issue to Linux Mint
760: [05:23:22] <ss23> Peavers: It's one of their scripts that has the issue it looks like, not an apt one
761: [05:23:30] <Peavers> I don't want to. Building a super duper setup script.
762: [05:23:51] <ss23> Peavers: echo "therepo" >> /etc/apt/sources.list
763: [05:23:53] <ss23> boom, setup
764: [05:23:53] <ss23> :P
765: [05:24:47] <Zauberfisch> ss23: btw, so you are a ss guy now right?
766: [05:24:51] <Zauberfisch> as in working for ss.com
767: [05:25:55] <ss23> Yeah, Zauberfisch :D
768: [05:25:55] * ss23 spins
769: [05:26:26] <Zauberfisch> so we can abuse you as interface to the rest of the ss team?
770: [05:26:30] <ss23> hahha
771: [05:26:32] <ss23> No chance
772: [05:26:47] <Zauberfisch> :/
773: [05:27:11] <ss23> Zauberfisch: Depends on the kind of issue. I'm happy to raise security issues etc, but like, I don't talk to Hamish or Ingo often
774: [05:28:04] <Zauberfisch> ss23: hmmm, yeah, my things would be more like "ingo, ingo, ingo, wake up! I can haz merge plx?"
775: [05:28:09] <ss23> XD
776: [05:28:14] <ss23> Yeah, ingo and simon_w are best for that!
777: [05:28:35] * UncleCheese has joined #silverstripe
778: [05:28:37] <Zauberfisch> may I ask, what do you do at ss23?
779: [05:28:44] * Stomach has joined #silverstripe
780: [05:28:47] <Zauberfisch> like what are you tasked with
781: [05:29:01] <Zauberfisch> ohai heyday people o/
782: [05:29:20] <ss23> Zauberfisch: I take the specifications from the customers, and I bring 'em down to the software engineers
783: [05:29:31] <ss23> Zauberfisch: Engineers are not good at dealing with customers
784: [05:30:08] <Zauberfisch> ss23: well, at least thats what engineers want others to believe :D
785: [05:30:18] <ss23> Zauberfisch: I DEAL WITH THE GODDAM CUSTOMERS SO THE ENGINEERS DOn'T HAVE TO. I HAVE PEOPLE SKILLS. I AM GOOD AT DEALING WITH PEOPLE. CAN'T YOU UNDERSTAND THAT?
786: [05:30:20] <Zauberfisch> I do that all the time "no, I am afraid of the client, you go and talk with him"
787: [05:30:33] <ss23> Zauberfisch: Um, but yeah, I'm "support developer" :P
788: [05:30:47] <ss23> aka client is like "halp, my site is down" or "help, I want a feature" or "help I found a bug!"
789: [05:30:52] <ss23> and I fix/impoment feature/whatever
790: [05:30:54] <guzzlefry> guys help! :P My page has one slideshow which has many slides, which have many images. $Slideshow seems to work in the template. Not sure how to get the image filename in the template.
791: [05:31:11] <Zauberfisch> ss23: ok, cool
792: [05:31:19] <Zauberfisch> I wish we had a guy like you
793: [05:31:21] <guzzlefry> Is <% with %> the correct route?
794: [05:31:38] <Zauberfisch> would take away a lot of preasure on my end
795: [05:31:56] <ss23> lol Zauberfisch, yeah, that's why we got me
796: [05:32:04] <ss23> So that teams can work on big stuff, and I deal with all the customer stuff
797: [05:32:09] <Zauberfisch> ss23: but you do write code, right?
798: [05:32:17] <ss23> Zauberfisch: Yeah
799: [05:32:27] <ss23> Zauberfisch: Generally it's small thouhg. More time is spent investigating issues etc
800: [05:32:47] <ss23> Zauberfisch: Generic bug fix stuff, you know. Spend ages finding the issue, replicating, and the fix only takes like an hour of work
801: [05:32:48] * jabba_ has joined #silverstripe
802: [05:32:59] <ss23> Zauberfisch: Even teh features I implment, since they're normally smaller, aren't a *lot* of code
803: [05:34:31] <Zauberfisch> ss23: I am working on a vagrant VM for silverstripe
804: [05:34:32] * pippy has joined #silverstripe
805: [05:34:54] <Zauberfisch> like do "vagrant up" and you have a fresh server with fresh ss installed to start working
806: [05:35:03] <ss23> Zauberfisch: Hmm, would many people ver use that?
807: [05:35:16] <Zauberfisch> its in early alpha or so. or actually more a prototype
808: [05:35:21] <ss23> Like, it's overhead if you only ever use SS once, and if you use it more than once, you just set up your system outside of vagrant?
809: [05:35:22] <jabba_> i think that i am an idiot because everything i try with just the framework only shows blank pages... no templates loading
810: [05:35:29] <Zauberfisch> but I need some alpha/beta testers
811: [05:35:43] <Zauberfisch> jabba_: make sure you flush a lot (:
812: [05:35:53] <ss23> Zauberfisch: Eh.... I'm not sure I am a good tester personally, since it would still take overhead to get each clients website configured in a VM etc
813: [05:35:58] <jabba_> :) flush=all but its not rendering anything
814: [05:36:06] <ss23> jabba_: Are you in dev mode?
815: [05:36:15] <ss23> Also, templating in SS sucks. I'm lucky to get *any* error out of it
816: [05:36:18] <jabba_> is there somewhere i need to tell it renderwith for a default? this is just in the framework
817: [05:36:18] <Zauberfisch> use =1, =all is not used anywhere
818: [05:36:36] <jabba_> checking my dev mode thanks
819: [05:36:50] <guzzlefry> Since when did =all not work?
820: [05:36:53] <Zauberfisch> jabba_: also note, that setting display_errors in _config.php does not work
821: [05:37:00] <Zauberfisch> guzzlefry: it works, its just useless
822: [05:37:11] <guzzlefry> ah
823: [05:37:18] * pippy_ quit (Ping timeout: 264 seconds)
824: [05:37:19] <guzzlefry> So it's basically an alias to =1 now?
825: [05:37:58] <jabba_> Director::set_environment_type("dev"); well class director doesn't exist (truth)
826: [05:38:14] <ss23> jabba_: Did you do that in mysite/_config.php?
827: [05:38:38] * mobiusnz has joined #silverstripe
828: [05:38:47] <Zauberfisch> ss23: do your projects have a custom setup?
829: [05:39:16] <ss23> Zauberfisch: Not particularly custom, but some have oddities. Generally, it's a git clone, ./addSite (a script to add their vhost etc), composer install, then view the site
830: [05:39:20] <ss23> That's the "best case" anyway :P
831: [05:39:41] <jabba_> thanks ss23 nope it was just in _ss_environment... it worked in the mysite/_config
832: [05:39:50] <ss23> jabba_: you can use uh...
833: [05:40:03] <ss23> jabba_: There's a DEFINE('SS_somethinghere', 'dev'); if you want to define it in your _ss_environ
834: [05:40:08] <ss23> I can't recall, but it's on the docs
835: [05:40:09] <jabba_> still a blank page though lovely enough
836: [05:40:14] <jabba_> its okay in _config
837: [05:40:20] <Zauberfisch> ss23: sounds like the VM would still work for you, it will replace your addSite script, the git clone and composer update
838: [05:40:38] <ss23> How will it replace them though?
839: [05:40:46] <ss23> like
840: [05:40:49] <Zauberfisch> at least in the next commit (tomorrow or so), then it will support suplying the repo url
841: [05:40:51] <ss23> I'll still need to do that when I open the vm, right?
842: [05:40:57] <ss23> ah k
843: [05:41:00] <Zauberfisch> ss23: no, the VM does all that for you
844: [05:41:04] <ss23> Well
845: [05:41:09] <ss23> you need to specify the repo url, yes?
846: [05:41:10] <ss23> Also
847: [05:41:11] * UncleCheese quit (Quit: UncleCheese)
848: [05:41:13] <ss23> it would need to support phing too
849: [05:41:19] <ss23> as well as manual dependency management in some cases
850: [05:41:22] <Zauberfisch> it clones the repo, runs composer, installs sake, creates DB, runs dev/build
851: [05:41:23] <ss23> like
852: [05:41:39] <ss23> dev/build creates the DB if it's required, right?
853: [05:41:44] <ss23> like, if you have an _ss_enviornment
854: [05:41:56] <ss23> Zauberfisch: I guess like, I struggle to see the advantage over my current setup with _ss_environment file
855: [05:42:06] <ss23> It seems like *more* work, not less
856: [05:42:10] <jabba_> i'm trying to get the routing working i guess that is my problem i'm looking at http://doc.silverstripe.org/framework/en/topics/controller but it doesn't mention how to hook up the template
857: [05:42:32] <Zauberfisch> ss23: thats why I want beta testers, to tell me what I can make better and faster
858: [05:42:44] <Zauberfisch> ss23: anyway, lets talk tomorrow, I have to get some work done today
859: [05:42:45] <ss23> Zauberfisch: I can't think of a way though! :P
860: [05:42:46] <ss23> mmk
861: [05:42:49] <ss23> Sure thing :D
862: [05:43:05] <jabba_> i've got a mysite\code\Controllers\DecisionMakingController.php and also \themes\silverstripe-squandered-theme\templates\Layout\DecisionMaking.ss
863: [05:43:34] <jabba_> wait maybe its my naming....
864: [05:44:30] * Stomach quit (Quit: Leaving.)
865: [05:44:48] <jabba_> well its now called DecisionMaking.php and declared class DecisionMaking_Controller extends Controller {
866: [05:45:19] <jabba_> any other tutorials or resources on the framework by itself?
867: [05:46:16] <Zauberfisch> ss23: added you anyway
868: [05:46:21] <Zauberfisch> will force you to use it tomorrow
869: [05:50:02] <jabba_> i started with the 3.0 framework... does anyone know if 3.1 has better integration with the templates?
870: [05:50:58] * Liquide quit ()
871: [05:51:02] <Jayden90> 3.1 is generally better, and you can do a bit more with templates
872: [05:51:15] <Jayden90> for example, you can do > and < in templates
873: [05:52:54] * MichaelDesignerX is now known as DesignerX
874: [05:54:01] <jabba_> i'm wondering if the 3.1 framework only version might have better template integration... i'll give that a shot
875: [05:54:11] <jabba_> thanks Jayden90
876: [05:55:12] <ss23> Zauberfisch: :D
877: [05:56:50] <ss23> Zauberfisch: Mind if I add other SS people? Like, do you mind if other SS people, maybe even someone like simon_w, see's it?
878: [05:57:35] <Jayden90> ->setDescription() on UploadField in 3.1 adds a description twice for some reason
879: [05:57:45] <Jayden90> bug?
880: [05:57:50] * pippy_ has joined #silverstripe
881: [06:00:24] * pippy quit (Ping timeout: 256 seconds)
882: [06:01:18] <Jayden90> ->setRightTitle() behaves as setDescription() should, setLeftTitle() does nothing and is not explained in the API: http://api.silverstripe.org/3.1/class-FormField.html
883: [06:05:19] * SightUnseen has joined #silverstripe
884: [06:05:43] * howardgrigg quit (Remote host closed the connection)
885: [06:06:41] <Zauberfisch> ss23: I want to be careful with giving away access for now
886: [06:07:13] <Zauberfisch> but simon_w yes, I was about to ask him as well, I'd love to hear him tell me how much it sucks :D
887: [06:08:17] <Zauberfisch> ss23: the reason for restricted access is that it is a prototype and many things are not implemented yet or will change in a major way in near future
888: [06:08:31] <Zauberfisch> I don't want people to see it now and say "it sucks" and then never try it again after I refactored it
889: [06:08:50] <Zauberfisch> but before I refactor it, I need some feature requets, feedback and ideas
890: [06:09:22] <Zauberfisch> anyway, simon_w I guess you have been reading this as well, so I'll add you as well
891: [06:09:43] * Shrike_Finland has joined #silverstripe
892: [06:11:48] * simon_w|air has joined #silverstripe
893: [06:12:01] <simon_w|air> Zauberfisch, what did I just get access to? :p
894: [06:12:12] <Zauberfisch> simon_w|air: scrollback!
895: [06:12:19] <Zauberfisch> :P
896: [06:12:20] <Zauberfisch> wait
897: [06:12:24] <simon_w|air> Wrong laptop!
898: [06:12:29] <Zauberfisch> yeah
899: [06:12:30] <Zauberfisch> I know
900: [06:12:42] <Zauberfisch> http://logs.simon.geek.nz/index.php?date=2013-08-14#log_1021682
901: [06:12:52] <Zauberfisch> from that line everything I wrote to ss23
902: [06:13:57] <guzzlefry> Anyone here know how to pull in a composer dependency? composer install doesn't see it, probably due to the lock.
903: [06:14:33] <jabba_> okay i did go ahead and overwrite my 3.0 framework with the 3.1rc and now i have an error message so that is very much better =)
904: [06:15:00] <simon_w|air> guzzlefry, composer update?
905: [06:15:16] <guzzlefry> simon_w|air, Won't that pull in new version of Silverstripe and friends as well?
906: [06:15:24] <simon_w|air> Yes
907: [06:15:25] <jabba_> rm -rf ~/.composer
908: [06:15:50] <simon_w|air> guzzlefry, composer update package/name
909: [06:15:59] <jabba_> before composer install sometimes does the trick
910: [06:16:36] <guzzlefry> ah, thanks
911: [06:19:10] * Peavers quit (Ping timeout: 276 seconds)
912: [06:22:28] * SightUnseen has left #silverstripe
913: [06:23:19] <jabba_> Yay totally see the template rendering in 3.1! I had tried the 3.0 framework solo version previously and ran into the same roadblock with the template, so it seems much better in 3.1
914: [06:23:27] * travis-ci has joined #silverstripe
915: [06:23:27] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#791 (3.1 - e046846 : Will Rossiter): The build passed.
916: [06:23:27] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/fd2a0cd1f9a5...e046846fa17c
917: [06:23:27] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10184476
918: [06:23:27] * travis-ci has left #silverstripe
919: [06:23:28] <jabba_> thanks for such a great framework/cms!!
920: [06:24:34] <Zauberfisch> is jabba_ using sarcasm here? I am not sure.
921: [06:24:50] <simon_w|air> Zauberfisch, I'd suggest using php5-mysqlnd over php5-mysql, make libapache2-mod-php5 explicit and, if you can, use dotdeb to pull in 5.5 instead of the normal wheezy repos
922: [06:25:25] <Zauberfisch> simon_w|air: awesome, thanks
923: [06:25:34] <Zauberfisch> but could you put that in a github issue?
924: [06:25:45] <simon_w|air> I suppose so
925: [06:25:49] <Zauberfisch> thanks
926: [06:27:00] <Shrike_Finland> Zauberfisch: Uncle cheese mentioned you on some blog answer, if I rememeber right… about Display Logic module. Do you know, is it possible to hide tabs with it in some special manner, as I didn't manage to do it with kitchen sink examples as guideline?
927: [06:27:38] <Zauberfisch> Shrike_Finland: nope, sorry
928: [06:27:42] <Zauberfisch> so, I want a has_one or has_many picker in gridfield
929: [06:27:53] <Zauberfisch> actually supprised that this is the first time I need it in 3.x
930: [06:28:03] * jabba_ quit (Ping timeout: 250 seconds)
931: [06:28:10] <Zauberfisch> and I am on the clock, please advise
932: [06:28:24] <Zauberfisch> there is no built in gridfield feature for that?
933: [06:28:57] * Bollig|DesignCty has joined #silverstripe
934: [06:29:53] <Colin[pi]> guys I need some pointers on things that SS does better than Wordpress (to tell to a client)
935: [06:29:55] <Zauberfisch> ah, nvm, I think it does
936: [06:30:19] <Zauberfisch> Colin[pi]: wordpress is a blog, if the client wants a blog wordpress is a good choice
937: [06:30:42] <Zauberfisch> but raping wordpress until it looks like a CMS is not a cool thing to do
938: [06:33:49] <Shrike_Finland> Colin: I think as a enduser pov, SS is a bit easier to produce and maintain content if the pagetypes are done right.
939: [06:34:17] <Shrike_Finland> In case of normal corporate site, I mean
940: [06:34:50] <Colin[pi]> basically situation is I have a client who may be pulling out of a contract because they've decided (by themselves) that they want to do a more extensive site and that WordPress (they decided) is a better choice for that
941: [06:35:05] <Shrike_Finland> But as a blog, Wordpress is strong in there.
942: [06:35:28] <simon_w|air> You can do things nicely in SilverStripe. Any non-blog thing in WP turns into a massive bunch of hacks
943: [06:35:29] <Shrike_Finland> Colin: what kind of a site it is?
944: [06:36:35] <Colin[pi]> standard content, a blog etc. but they want to have a customer support system integrated, hook into some sort of VPS API to create server instances etc.
945: [06:37:02] <Shrike_Finland> Colin: Sounds like a SS thing
946: [06:37:26] <Colin[pi]> ya but WordPress because everyones doing it so it must be cool, amirite?
947: [06:39:20] <Zauberfisch> Colin[pi]: tell them: "wordpress is a motobike, silverstripe is a car. both are good at their own thing and have down and upsides"
948: [06:39:36] <Shrike_Finland> I think it is more about counting hours, how much time they prefer to use for their site in next year or two
949: [06:39:44] <Zauberfisch> but taking wordpress for a CMS is like taking a moterbike, sticking 2 extra weels on it and pretending its a car
950: [06:40:33] <Zauberfisch> yeah, it might look a bit like a car then, and a noob might not be able to tell the differene between the motorbike with 4 weels and the car, but that does not make it a good idea
951: [06:41:10] <Colin[pi]> these guys are such a pain though that honestly I couldn't care less if they went and built their noob site in WO
952: [06:41:12] <Colin[pi]> *WP
953: [06:42:33] <Shrike_Finland> First they have to count hours for making WP to as a good CMS and AFTER that they actually can begin implementing their wanted stuff on site. Why not start with good CMS at the first level?
954: [06:43:19] <Colin[pi]> BECAUSE WORDPRESS
955: [06:43:41] <Colin[pi]> OMG 20% of sites in TEH WORLD use it, must be SUPER AWESOME
956: [06:45:26] * ARNHOE has joined #silverstripe
957: [06:46:05] <Shrike_Finland> Does that mean at least 80% of those have same goals as they do? I thnk not...
958: [07:00:39] <digitaldesign> Colin[pi] … when I'm in that kind of situation with a client I will usually try to respond with some examples of similar sites produced in Silverstripe. Either in terms of functionality, load performance, similar admin configuration etc. Use the biggest names you can.
959: [07:01:42] <Colin[pi]> these clients are the worst kind, the ones that are noobs but think they know everything and won't listen to advice
960: [07:01:58] <Colin[pi]> what would I know, just been working with the web since it's inception ;)
961: [07:02:28] <Colin[pi]> actually thats not true, more like since it became popular :)
962: [07:03:28] <digitaldesign> also they may feel that the large developer base of wordpress is an advantage to ongoing support (possibly after your involvement / or if they want to switch developers) I usually combat this with the official silverstripe head office developers which gives them some security in the platform.
963: [07:03:58] <Colin[pi]> yeah that's one of the reasons they expressed
964: [07:04:16] <digitaldesign> also point out that although there are a million wordpress developers, there are lot of different levels to using that platform, and a lot of them will struggle with harder implementations (i.e. systems integrations)
965: [07:05:41] <digitaldesign> those are the main points. because technically both platforms can handle it - its more about : whats going to be cost effective, what will be a low risk platform in the future, and performance i.e. load, admin usability etc
966: [07:05:46] <wmk> good morning
967: [07:06:01] <wmk> simon_w, are you around?
968: [07:06:04] <Colin[pi]> thanks for your advice digitaldesign :)
969: [07:07:14] <digitaldesign> also if they are interested in wordpress as a CMS (as it sounds like they are ) that negates the advantages of the wordpress CMS community features - so if they are hoping for the advantages of both then point that out. That has been a common problem with some of our clients in the past
970: [07:10:13] * digitaldesign quit (Quit: digitaldesign)
971: [07:10:57] <simon_w|air> wmk, why me?
972: [07:12:44] <wmk> simon_w|air, i tried your hasoneedit module yesterday
973: [07:12:54] <wmk> thanks ;)
974: [07:13:26] <wmk> but it breaks jquery in forms using a colon as separator
975: [07:13:52] <simon_w|air> I would've liked to use a ., but that breaks in the CMS (gets converted to an _)
976: [07:14:32] <simon_w|air> Hmm, and I can't use something like \ cause, apparently, no one escapes their user input
977: [07:14:41] <ss23> I'm going to have to get you to be more cute for your purrrrrrformance review, meow.
978: [07:15:21] * zfmf1 has joined #silverstripe
979: [07:16:10] * howardgrigg has joined #silverstripe
980: [07:17:03] <wmk> simon_w|air, how about more than one character?
981: [07:17:30] <wmk> then you can do something like -_1_- or whatever you like
982: [07:18:50] <simon_w|air> Makes it more annoying to use
983: [07:18:56] <simon_w|air> Hmm, + might work...
984: [07:20:25] * howardgrigg quit (Ping timeout: 246 seconds)
985: [07:20:34] <wmk> annoying, yes, but makint the separator accessable via a variable or constant then it should be ok.
986: [07:20:50] <wmk> isn't + used in jquery?
987: [07:21:03] <simon_w|air> In selectors?
988: [07:21:18] <simon_w|air> Oh right, adjacent child
989: [07:21:47] <simon_w|air> Need something that's not a special CSS character and isn't likely to appear in a db name
990: [07:22:52] <wmk> yup
991: [07:25:26] <ss23> ^
992: [07:25:57] <ss23> Or the bell character simon_w|air
993: [07:26:06] <ss23> I choose the bell :D
994: [07:27:25] <simon_w|air> Why not ??
995: [07:29:22] <simon_w|air> Hang on, /
996: [07:29:29] <simon_w|air> wmk, can you think of any reason that'll break?
997: [07:33:50] <wmk> ^ or bell?
998: [07:34:10] <wmk> ^ can be used in jquery selectors.
999: [07:34:21] <simon_w|air> No, not those
1000: [07:34:24] <simon_w|air> /
1001: [07:35:51] <ss23> lol
1002: [07:37:16] <wmk> i thought inside html id only azAZ_-.: are allowed
1003: [07:37:31] * zfmf1 has left #silverstripe
1004: [07:37:36] <wmk> so maybe html doesn't validate anymore?
1005: [07:39:08] * Jayden90 quit (Quit: Jayden90)
1006: [07:39:52] <simon_w|air> "The value must be unique amongst all the IDs in the element's home subtree and must contain at least one character. The value must not contain any space characters."
1007: [07:40:09] <simon_w|air> It can whatever it wants, so long as it's something and isn't a space
1008: [07:41:37] <wmk> ok
1009: [07:41:54] <wmk> i'll try a /
1010: [07:42:54] <simon_w|air> haha, you can't have a DB field called Field
1011: [07:44:30] <simon_w|air> And it looks like the id gets the / switched to a - anyway
1012: [07:47:05] * howardgrigg has joined #silverstripe
1013: [07:47:21] <simon_w|air> wmk, okay, just committed the change that switches to /. You can still use : and it'll get changed to a / before outputting
1014: [07:47:22] * violetina has joined #silverstripe
1015: [07:48:33] <wmk> simon_w, a problem was that display_logic broke, too. so when anything changes it makes stuff more complicate
1016: [07:49:04] <wmk> than having more chars would be easier for compatibility.
1017: [07:49:10] <wmk> s/than/then
1018: [07:50:02] <wmk> id tags aren't changed over here
1019: [07:51:18] <simon_w|air> How did you update?
1020: [07:53:46] <wmk> hm, changed in code manually.
1021: [07:54:06] <ARNHOE> With a contactform, is it possible to sent the label instead of the value?
1022: [07:55:31] <ARNHOE> Instead of sending AUDI002 I want A3 Sportback
1023: [07:56:55] <wmk> why oh why doesn't svn update or svn co work in a shared folder between virtualbox and win
1024: [07:59:08] <simon_w|air> Works for me over a nfs share
1025: [07:59:32] * chillu has joined #silverstripe
1026: [07:59:54] <ss23> heya, chillu ^.^
1027: [08:00:05] <chillu> hey
1028: [08:00:08] <simon_w|air> ss23, go home! :p
1029: [08:00:12] <ss23> YOU CAN'T MAKE ME :O
1030: [08:04:58] <ARNHOE> Anyone can help me with a dropdownfield in contactform? It is currently sending the value, but I want the label. Because the value = AUDI001 and the label is A3 Sportback
1031: [08:05:02] <wmk> simon_w, virtualbox shared folder is something different.
1032: [08:06:13] * SightUnseen has joined #silverstripe
1033: [08:06:13] <ss23> ARNHOE: Eh, I did that recently
1034: [08:06:27] <ss23> ARNHOE: I had to make an entirely new PHP function to get the proper "label" value of it
1035: [08:06:38] <ss23> ARNHOE: That is, you can't do it in the teomplate
1036: [08:06:43] <ss23> screw SS's templating laaameness
1037: [08:07:26] <ARNHOE> do you have that function still available?
1038: [08:07:30] * kinglozzer has joined #silverstripe
1039: [08:07:51] * SightUnseen has left #silverstripe
1040: [08:09:11] <ss23> ARNHOE: Eh, I did it like
1041: [08:09:15] <ss23> $brand = Brand::get()->byId((int) $data["BrandID"]);
1042: [08:09:15] <ss23> $data["BrandName"] = $brand->Title;
1043: [08:09:24] <ss23> then fed that into the template
1044: [08:10:05] <wmk> simon_w|air, jquery: / has also to be escaped for getting jquery selectors working...
1045: [08:10:46] <wmk> any meta character.
1046: [08:10:49] <ARNHOE> ss23: hmpf, but I got static info through json.
1047: [08:18:47] <simon_w|air> wmk, for me, the / is being changed to a - for the ID. Is this not happening for you?
1048: [08:19:11] <ss23> Uncaught Exception: SQLQuery::aggregate() doesn't work with groupby or limit, yet
1049: [08:19:14] <ss23> Was that an old SQL error?
1050: [08:19:41] <wmk> simon_w, no, didn't
1051: [08:19:51] <wmk> i'm not at the very last 3.1.
1052: [08:20:24] <wmk> i changed the constant to _-1-_ and it works for me.
1053: [08:21:02] <wmk> telling display_logig another fieldname than hasoneedit isn't that good
1054: [08:23:34] * zfmf1 has joined #silverstripe
1055: [08:26:09] * RickDev has joined #silverstripe
1056: [08:31:12] <RickDev> Does anyone here run SilverStripe on Apache 2.4? We've had some weird issues with the .htaccess rule "RewriteCond %{REQUEST_FILENAME} !-f" which wouldn't work for some reason and thus it's routing through index.php instead of framework/main.php
1057: [08:31:21] <RickDev> Resulting in URLS with index.php/ in it
1058: [08:31:51] <RickDev> I don't have a test situation right now because we decided to revert apache to 2.2 but it was very strange and I'm wondering what was going on.
1059: [08:32:12] <ss23> I have seen it before, didn't bother debugging though sorry. Someone else might know
1060: [08:39:00] <RickDev> ss23: thx for the confirmation :)
1061: [08:41:35] * lobarvaz has joined #silverstripe
1062: [08:48:04] <ss23> simon_w|air: BOOM, home time NOW
1063: [08:48:04] <ss23> :D
1064: [08:48:06] * ss23 skips off
1065: [08:55:49] * qlex has joined #silverstripe
1066: [08:55:57] * qlex says hi
1067: [08:59:50] * micmania1 has joined #silverstripe
1068: [09:10:02] * violet- has joined #silverstripe
1069: [09:10:49] * violet- quit (Remote host closed the connection)
1070: [09:11:02] * violetina quit (Ping timeout: 264 seconds)
1071: [09:11:10] * violetina has joined #silverstripe
1072: [09:13:17] * violetina quit (Remote host closed the connection)
1073: [09:13:40] * violetina has joined #silverstripe
1074: [09:15:15] <fen_> hi anybody please help
1075: [09:16:04] <fen_> ragrding the keyword search in admin side
1076: [09:17:32] * violetina quit (Remote host closed the connection)
1077: [09:17:56] * violetina has joined #silverstripe
1078: [09:18:34] <fen_> ragrding the keyword search in admin side
1079: [09:20:54] * violetina quit (Read error: Connection reset by peer)
1080: [09:23:49] * travis-ci has joined #silverstripe
1081: [09:23:49] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#792 (3.1 - 5032c97 : Will Rossiter): The build passed.
1082: [09:23:49] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/e046846fa17c...5032c976726d
1083: [09:23:49] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10188965
1084: [09:23:49] * travis-ci has left #silverstripe
1085: [09:24:25] <qlex> to all that are/were struggling with updating from old ss (i.e. 2.4.9 like me) to 3.0.5
1086: [09:24:49] <qlex> the last step is to create silverstripe-cache in root and also _ss_environment.php file in root
1087: [09:25:17] <qlex> that has "<?php
1088: [09:25:17] <qlex> define('TEMP_FOLDER', '/full server path to silverstripe-cache');
1089: [09:25:17] <qlex> ?>
1090: [09:25:25] <qlex> took me ages yesterday to figure that out
1091: [09:25:35] <qlex> could that be added to UPDATING file perhaps or to docs ?
1092: [09:29:43] <fen_> kindly tell me about the keyword search in admin side
1093: [09:32:36] <simon_w|air> qlex, that sounds more like you needed to flush than anything else
1094: [09:32:41] <simon_w|air> fen_, what keyword search?
1095: [09:34:10] <micmania1> Is there a way in PHP to add css classes to the HTMLEditor field dropdown?
1096: [09:34:18] <micmania1> I'm sure i've seen it somewhere before
1097: [09:38:12] <fen_> HtmlEditorConfig::get('cms')->setOption('theme_advanced_styles','stylename');
1098: [09:38:22] <micmania1> cheers!
1099: [09:38:26] <fen_> put it in the _config.php
1100: [09:38:40] <fen_> thnk s
1101: [09:39:12] <fen_> @ simon key word searc hmeans
1102: [09:39:58] <fen_> there are list in the admin which has employee name, empoyeed country etc , i nedd to have a text box and the keyword search should list all the fields
1103: [09:40:42] <simon_w|air> For what purpose?
1104: [09:41:45] <qlex> simon_w|air: i was flushing
1105: [09:42:06] <fen_> there is a contact us page and the details are stored i nthe admin side
1106: [09:42:22] <fen_> i need to have a keyword search in the admin side
1107: [09:42:48] <simon_w|air> But to do what? Edit the employees? Add them to a relationship?
1108: [09:43:18] <simon_w|air> qlex, you're the first person I've seen that's actually had to create a local silverstripe-cache and then point TEMP_FOLDER at it
1109: [09:43:38] <fen_> there is alist of employees , if i type a particular name or country in the search box i need to list them
1110: [09:43:46] <fen_> by implmenting keyword search
1111: [09:44:35] <fen_> static $summary_fields = array( 'ID', 'FirstName', 'SurName', 'Email', 'Phone', );
1112: [09:44:37] <simon_w|air> Have a look at GridField and GridFieldFilterHeader
1113: [09:45:24] <kinglozzer> Can't seem to use 3.1.0-rc1 with googlesitemaps dev-master :( "silverstripe/googlesitemaps dev-master requires silverstripe/framework >=3.1.x-dev,<4.0 -> no matching package found"
1114: [09:46:04] <simon_w|air> And this is why they shouldn't use 3.1.x-dev in their version requirements
1115: [09:47:23] <simon_w|air> kinglozzer, make a pull request for it that's basically https://github.com/silverstripe/silverstripe-userforms/commit/e03271eed40f0c9369d87e9b60c700e249a39cb5
1116: [09:47:52] <kinglozzer> Will do :)
1117: [09:48:16] <simon_w|air> Ha, chillu "fixed" the restraints three months ago doing the opposite
1118: [09:49:01] <chillu> simon_w|air: Composer behaves different now with ~3.1
1119: [09:49:12] * violetina has joined #silverstripe
1120: [09:49:20] <simon_w|air> chillu, I figured as much
1121: [09:49:36] <simon_w|air> It still amuses me that the fix is basically a revert
1122: [09:50:17] <fen_> @simon public function getEditForm($id = null, $fields = null) { $form = parent::getEditForm($id, $fields); $gridField = $form->Fields()->fieldByName($this->sanitiseClassName($this->modelClass)); $gridField->getConfig()->addComponent(new GridFieldFilterHeader()); return $form; }
1123: [09:50:33] <fen_> didnt get any thing
1124: [09:50:40] <chillu> yeah, composer version constraints can get quite weird … so we'll need to fix this for pretty much every module out there *sigh*
1125: [09:50:42] <fen_> a search text box did not vome
1126: [09:50:46] <fen_> come
1127: [09:50:56] <simon_w|air> fen_, oh, so you're in ModelAdmin? I don't think you can have the search form on the left just have one field
1128: [09:51:29] <kinglozzer> chillu: Can you start with https://github.com/silverstripe-labs/silverstripe-googleanalytics/pull/22 and https://github.com/silverstripe-labs/silverstripe-googlesitemaps/pull/48 ? :P
1129: [09:51:39] <fen_> can do with some getDefaultSearchContext()
1130: [09:51:53] <chillu> kinglozzer: Done
1131: [09:51:57] <kinglozzer> <3
1132: [09:52:10] <simon_w|air> fen_, SearchContext is explicitly different form fields to search different DB fields
1133: [09:52:37] <fen_> could you tell me how to implemnt it
1134: [09:52:40] <kinglozzer> - silverstripe/googlesitemaps dev-master requires silverstripe/framework ~3.1 -> no matching package found.
1135: [09:52:42] <kinglozzer> FUUUU
1136: [09:52:42] <fen_> any help tutorial
1137: [09:53:02] <kinglozzer> "silverstripe/framework": "3.1.0-rc1"
1138: [09:53:05] <simon_w|air> fen_, http://doc.silverstripe.org/framework/en/reference/modeladmin#search-fields
1139: [09:53:15] <fen_> ok
1140: [09:53:40] * simon_w|air sleeps
1141: [09:55:23] <chillu> kinglozzer: Can you paste your composer.json?
1142: [09:55:31] <kinglozzer> composer self-update of course
1143: [09:55:37] <chillu> ah there ya go
1144: [09:55:49] * kinglozzer ignores the big yellow warning box
1145: [09:55:53] <kinglozzer> :P
1146: [09:57:14] <fen_> is there any implemntation example
1147: [09:57:18] <fen_> @ simon
1148: [09:57:43] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
1149: [09:58:25] * Bollig|DesignCty has joined #silverstripe
1150: [10:01:44] * kinglozzer quit (Remote host closed the connection)
1151: [10:04:00] * kinglozzer has joined #silverstripe
1152: [10:04:49] <chillu> kinglozzer: OK went through all github.com/silverstripe and github.com/silverstripe-labs … prepping an email for the dev list, but will need to get it peer reviewed by Sam or Hamish before sending out, too much risk of providing wrong advice
1153: [10:05:36] <kinglozzer> Okay cool. Yeah I still don't understand the constraints :P
1154: [10:09:12] <fen_> hi kindly help in search a list in admins side
1155: [10:17:50] * priithansen has joined #silverstripe
1156: [10:19:41] * qlex has left #silverstripe
1157: [10:21:40] <fen_> hi kindly help in search a list in admins side
1158: [10:33:28] <fen_> anybody for a help
1159: [10:36:32] * chillu quit (Remote host closed the connection)
1160: [10:39:26] <ss23> 21:50:40 <@chillu> yeah, composer version constraints can get quite weird … so we'll need to fix this for pretty much every module out there *sigh*
1161: [10:39:41] <ss23> Which brings me to my, why do people enforce 3.1 specifically? Why not just >30?
1162: [10:39:47] <ss23> as in, better than 3.0 branch
1163: [10:39:48] <ss23> idk
1164: [10:45:23] * howardgrigg quit (Remote host closed the connection)
1165: [10:46:41] <MattSS> ss23: well if the differences between 3.1 and 3.2 are as far-reaching as the differences between 3.0 and 3.1, then enforcing that may not be so useful
1166: [10:46:53] <MattSS> I guess it depends on the size/scope of the module
1167: [10:47:46] <ss23> MattSS: The point is that we don't so, right?
1168: [10:47:53] <ss23> If they aren't BC breaks, it's no extra work
1169: [10:47:58] <ss23> If it is BC breaks, it's no extra work
1170: [10:47:59] <ss23> :P
1171: [10:48:19] <ss23> However, if we enfoce 3.1 only, there is extra work if there aren't BC breaks
1172: [10:50:12] <MattSS> That's true
1173: [10:50:20] <MattSS> Perhaps it's more of an education thing
1174: [10:50:48] <MattSS> I'd prefer to see a tag/branch for each major release of SS for a module
1175: [10:50:58] <MattSS> but I can appreciate the effort you'd have to go to, to do that
1176: [10:51:25] <MattSS> (hell, I only have one module that I really look after now and I haven't even done it for that:p)
1177: [10:51:56] <ss23> Yeah, there are still a large number of modules that don't have 3.1 support, or don't have 3.0 support, etc
1178: [10:53:14] <MattSS> That's one of the annoyances for me right now - I have to investigate which modules actually work. I think for a while the advancedworkflow module's README said it supported 3.0 only, but it actually only worked with 3.1, and subtly broke under 3.0
1179: [10:53:23] <MattSS> then again, I'm lazy and like to just read documentation ;)
1180: [11:05:40] <micmania1> The whole private/public thing screws things up a bit
1181: [11:06:21] <micmania1> Something that will work with 3.0 won't work with 3.2 because of the all the deprecation messages.
1182: [11:06:28] <Colin[pi]> LOL: http://i.imgur.com/Q3cUg29.gif
1183: [11:06:39] <micmania1> So you either have to think about supporting backwards compatibility or forwards.
1184: [11:15:39] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
1185: [11:16:15] * Bollig|DesignCty has joined #silverstripe
1186: [11:36:28] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
1187: [11:44:23] * spronk quit (Ping timeout: 256 seconds)
1188: [11:45:09] * CodeTrap has joined #silverstripe
1189: [11:45:20] * spronk has joined #silverstripe
1190: [11:49:30] * priithansen quit (Quit: priithansen)
1191: [11:55:50] * howardgrigg has joined #silverstripe
1192: [11:58:17] * Colin[pi] quit (Quit: pants)
1193: [12:00:15] * howardgrigg quit (Ping timeout: 256 seconds)
1194: [12:02:26] * spronk quit (Ping timeout: 268 seconds)
1195: [12:03:30] * UndefinedOffset has joined #silverstripe
1196: [12:32:03] * RojoD is now known as Rojod^work
1197: [12:46:07] * ben___ has joined #silverstripe
1198: [12:46:18] <ben___> help needed in keyword search in admin side
1199: [12:46:31] * ben___ is now known as Guest23701
1200: [12:55:24] <fen_> pls help
1201: [12:55:42] <fen_> i need to implemt a keyword search in admin side
1202: [12:55:48] <fen_> for a request list
1203: [12:59:10] * kerosene has joined #silverstripe
1204: [13:03:42] * Guest23701 quit (Ping timeout: 250 seconds)
1205: [13:04:33] * fen_ quit (Ping timeout: 250 seconds)
1206: [13:14:10] * drazafsky has joined #silverstripe
1207: [13:23:34] * Shrike_Finland quit (Quit: Leaving.)
1208: [13:23:45] <drazafsky> Is it possible to set a field type to render using a custom template? I can't seem to find any documentation on doing anything like that
1209: [13:30:01] <drazafsky> And after two days of searching I found the answer 5minutes after asking by paying more attention to the docs. Love when that happens
1210: [13:32:25] * zfmf1 has left #silverstripe
1211: [13:46:06] * osterlaus has joined #silverstripe
1212: [14:09:14] * Shrike_Finland has joined #silverstripe
1213: [14:14:46] * zfmf1 has joined #silverstripe
1214: [14:47:15] * howardgrigg has joined #silverstripe
1215: [14:51:38] * howardgrigg quit (Ping timeout: 241 seconds)
1216: [14:58:45] * CodeTrap quit (Ping timeout: 256 seconds)
1217: [15:00:41] * ARNHOE quit (Remote host closed the connection)
1218: [15:03:33] * priithansen has joined #silverstripe
1219: [15:06:36] * FrozenFire has joined #silverstripe
1220: [15:24:30] * Error404NotFound has joined #silverstripe
1221: [15:36:50] * catcher has joined #silverstripe
1222: [15:45:00] * simon_w quit (Ping timeout: 245 seconds)
1223: [16:00:16] * kinglozzer quit (Quit: pce)
1224: [16:12:10] * simon_w has joined #silverstripe
1225: [16:18:00] * drazafsky quit (Quit: Page closed)
1226: [16:39:14] * micmania1 quit (Quit: Leaving)
1227: [16:59:59] * AlphaCactus has joined #silverstripe
1228: [17:10:55] * ARNHOE has joined #silverstripe
1229: [17:12:15] * ARNHOE quit (Remote host closed the connection)
1230: [17:23:35] * osterlaus quit (Quit: Leaving.)
1231: [17:24:03] * lobarvaz quit (Remote host closed the connection)
1232: [17:33:59] * kerosene quit (Ping timeout: 256 seconds)
1233: [17:37:57] * ARNHOE has joined #silverstripe
1234: [17:39:22] * kerosene has joined #silverstripe
1235: [17:52:02] * Bollig|DesignCty has joined #silverstripe
1236: [18:18:57] * micmania1 has joined #silverstripe
1237: [18:36:34] <guzzlefry> So in the CMS, is there a way to add a label to a checkbox?
1238: [18:36:45] <guzzlefry> Well..let me get a screenshot so I can actually explain this. :P
1239: [18:36:56] <AlphaCactus> there is
1240: [18:37:25] * Nivery has joined #silverstripe
1241: [18:39:36] <guzzlefry> http://gusking.com/~gus/images/checkbox.jpg I'd like a label similar to the Email label but for that checkbox.
1242: [18:43:05] <guzzlefry> AlphaCactus: Is that possible?
1243: [18:43:50] <AlphaCactus> sorry distracted by coworker
1244: [18:44:17] <AlphaCactus> so yes, I do a proper 3 stage attack. gimme a moment to pull in the bits
1245: [18:47:09] * zfmf1 has left #silverstripe
1246: [18:50:46] <AlphaCactus> I hope I got it all in here... http://sspaste.com/paste/show/520bd09412268
1247: [18:59:00] <guzzlefry> How would I add that to the Members edit form? Extension?
1248: [19:10:26] <AlphaCactus> yeah probly
1249: [19:10:48] <AlphaCactus> and then use updateCMSFields
1250: [19:11:22] <AlphaCactus> if you are using the Security tab then I'm pretty sure you'll have to also xtend LeftandMain to get the css in there
1251: [19:12:33] <AlphaCactus> http://sspaste.com/paste/show/520bd5c41727e
1252: [19:13:28] <guzzlefry> looks easy enough
1253: [19:13:30] <guzzlefry> thank you sir
1254: [19:15:04] * Rojod^work is now known as RojoD
1255: [19:20:32] <AlphaCactus> you are welcome sir
1256: [19:21:06] <AlphaCactus> the one downside of my method is that with the label being on the left it kinda has to remain short, but it hasn't been a problem yet
1257: [19:22:20] * swordsmanz has joined #silverstripe
1258: [19:22:26] <AlphaCactus> i also have my own little system of adding descriptions to fields with a "more" link if the description gets long so you can have verbose help text that doesn't take up much room.
1259: [19:37:48] * SightUnseen has joined #silverstripe
1260: [19:37:51] * SightUnseen has left #silverstripe
1261: [19:42:47] * gunblast has joined #silverstripe
1262: [19:44:00] * Peavers has joined #silverstripe
1263: [19:44:37] <gunblast> hi ppl. for reasons unkown to me, the admin panel of some modules don't load (i.e. the URL in the adress bar changes but the content remains the same). However, reloading the page with the new URL seems to do the trick. Is there any way to disable ajax navigation on the admin panel?
1264: [19:44:50] <FrozenFire> nginx?
1265: [19:45:14] <gunblast> yeah.
1266: [19:45:17] <FrozenFire> And no, no way to disable AJAX.
1267: [19:45:23] <FrozenFire> For nginx, you need to increase your request buffer size
1268: [19:45:31] <FrozenFire> It's set at 8k, which is insufficient
1269: [19:45:34] <gunblast> oh, that's it?
1270: [19:45:36] <gunblast> alright
1271: [19:45:50] <FrozenFire> The CMS sends a *lot* of state information back to the server when getting new pages
1272: [19:45:55] <FrozenFire> Which causes a very large request header
1273: [19:46:06] <FrozenFire> Something nginx is not configured for, out of the box.
1274: [19:52:00] <gunblast> yeah im really considering going apache + varnish
1275: [19:53:06] <FrozenFire> Wouldn't blame you. SS is a bitch and a half to get working on nginx
1276: [19:53:15] <FrozenFire> It's very Apache-oriented
1277: [19:55:02] * lewellyn shrugs
1278: [19:55:06] <FrozenFire> That being said, if you're looking for performance, the first thing I'd suggest doing is setting AllowOverride none on your vhost
1279: [19:55:07] <lewellyn> i have it working well enough on nginx :)
1280: [19:55:09] <FrozenFire> (For apache)
1281: [19:55:19] <FrozenFire> And then copy the .htaccess stuff into your vhost configuration
1282: [19:55:44] <FrozenFire> lewellyn, It's not impossible to get working, but I've had bad experiences
1283: [19:55:51] <FrozenFire> It's got a very... odd configuration
1284: [19:56:03] <lewellyn> FrozenFire: it'd help if someone bothered writing up how to get it working, i suppose :)
1285: [19:56:12] <FrozenFire> Like deferring the tiny_mce_gzip.php thing to its own script accessed directly
1286: [19:56:22] <FrozenFire> Instead of routing that through main.php
1287: [20:01:09] * atmos quit (Quit: Page closed)
1288: [20:06:53] * mobiusnz quit (Quit: Leaving.)
1289: [20:07:00] * simon_w quit (Ping timeout: 256 seconds)
1290: [20:10:11] * simon_w has joined #silverstripe
1291: [20:14:09] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
1292: [20:14:53] * simon_w has left #silverstripe
1293: [20:15:24] * simon_w has joined #silverstripe
1294: [20:15:47] * Error404NotFound quit (Read error: Connection reset by peer)
1295: [20:16:08] * Error404NotFound has joined #silverstripe
1296: [20:16:21] * Error404NotFound quit (Read error: Connection reset by peer)
1297: [20:26:33] * gunblast quit (Ping timeout: 250 seconds)
1298: [20:26:55] * mobiusnz has joined #silverstripe
1299: [20:27:42] * AlphaCactus_ has joined #silverstripe
1300: [20:28:59] * AlphaCactus quit (Ping timeout: 246 seconds)
1301: [20:29:06] * AlphaCactus_ is now known as AlphaCactus
1302: [20:30:00] <catcher> how can it matter which class has $many_many and which has $belongs_many_many? I didn't think it did, but one order caused my join table to be created, the other didn't.
1303: [20:31:20] <simon_w> many_many creates a join table, belongs_many_many doesn't
1304: [20:31:48] <mobiusnz> the join table will have the name of the many_many side first
1305: [20:32:56] <catcher> But when they were flipped, no join table was created at all.. Still had one of each.
1306: [20:33:52] <catcher> Class1 mm Class2 & Class2 bmm Class1: no table. Class2 mm Class1 & Class1 bmm Class2: table.
1307: [20:34:19] <simon_w> Does the table already exist? Are you running 3.1 and didn't flush?
1308: [20:34:43] <catcher> 3.1 indeed, didn't realize the flush was necessary. That's probably it.
1309: [20:35:01] <simon_w> It's not supposed to be necessary, but it currently is
1310: [20:37:12] <catcher> Flipped them back, deleted the join table, and still not creating after flush=all. Perhaps I'm losing my mind.
1311: [20:38:43] <catcher> I'm looking at the DB too, the tables don't already exist.
1312: [20:39:11] * nickmolhoek has joined #silverstripe
1313: [20:39:12] * nickmolhoek quit (Remote host closed the connection)
1314: [20:39:26] * nickmolhoek has joined #silverstripe
1315: [20:40:09] * UndefinedOffset quit (Quit: Leaving.)
1316: [20:44:22] <catcher> There are actually 3 classes - foo1 and foo2 extend foo, each $many_many bar. Bar belongs_many_many with each foo1 and foo2. Is it because foo1 and foo2 share the ancestor?
1317: [20:45:51] <catcher> that can't be the issue, just about everything extends DO otherwise.
1318: [20:48:12] * Pyromanik has joined #silverstripe
1319: [20:52:29] * Stomach has joined #silverstripe
1320: [20:54:11] * Stomach quit (Client Quit)
1321: [20:54:29] * Nivery quit (Quit: Nivery)
1322: [20:56:34] * ARNHOE quit (Remote host closed the connection)
1323: [21:02:42] * spronk has joined #silverstripe
1324: [21:03:03] <catcher> pretty sure I was doing something extremely stupid.
1325: [21:06:28] * UncleCheese has joined #silverstripe
1326: [21:08:22] <catcher> yup.
1327: [21:14:20] * zippy__ has joined #silverstripe
1328: [21:15:26] * Stomach has joined #silverstripe
1329: [21:17:59] <zippy__> Morning
1330: [21:24:31] <Pyromanik> gidday
1331: [21:27:06] <AlphaCactus> anyone ever experience the Session class not being willing to remove values from an array? We set an array and if we try to remove any items from the session var they just remain unless we clear that var completely which isn't what we want to do.
1332: [21:27:49] * howardgrigg has joined #silverstripe
1333: [21:28:12] * ccburns has joined #silverstripe
1334: [21:29:11] <AlphaCactus> in fact when we set a new var on the Session it appears to be set if we immediately do a Debug::show(Session::get()); but after a page refresh the session holds what it held before it was set.
1335: [21:34:05] <AlphaCactus> ok another clue, even though we have set the var using Session::set(), a debug show of $_Session shows that it hasn't been removed.
1336: [21:37:29] <simon_w> AlphaCactus, $_SESSION isn't updated until the end
1337: [21:37:39] <simon_w> And it's to do with the way the Session class handles arrays
1338: [21:37:50] <simon_w> It's a merge or some such
1339: [21:38:28] <ccburns> Hey guys - I am trying to extend the File Edit screen in the CMS so I can add in a "Content/Description" textarea. The system already creates a "Content" field on the File model but it's just not displayed in the screen. So all I'm trying to do is add that field into the edit form without modifying the core code - here is what I have - http://www.sspaste.com/paste/show/520bf782df614
1340: [21:38:36] * atmos has joined #silverstripe
1341: [21:38:39] <AlphaCactus> I see there is a Session::add_to_array, how do I remove?
1342: [21:38:44] <ccburns> but it's not showing me that field - any suggestions?
1343: [21:38:56] <atmos> can someone point me in the direction of where one would define custom validation rules in userforms?
1344: [21:43:17] <atmos> gah, nevermind - got it. *reaches for coffee*
1345: [21:44:01] * Stomach quit (Quit: Leaving.)
1346: [21:46:19] * Stomach has joined #silverstripe
1347: [21:47:51] <spronk> blerf
1348: [21:47:53] <AlphaCactus> got it as well, *reaches for punching bag*
1349: [21:51:12] * guci0 has joined #silverstripe
1350: [21:51:55] <guci0> ss23: smt for u http://www.youtube.com/watch?v=ClfbqUKHsJI&list=PLjKP9DUCzZooMmiSJ_nmsLIReOZp0Uomz Secure Coding Subject.
1351: [21:58:58] * DigNZ has joined #silverstripe
1352: [21:59:54] * UncleCheese quit (Quit: UncleCheese)
1353: [22:03:31] <ss23> guci0: Eh, pretty YUI specific!
1354: [22:03:47] * swordsmanz_ has joined #silverstripe
1355: [22:03:58] * swordsmanz quit (Read error: Connection reset by peer)
1356: [22:03:58] * swordsmanz_ is now known as swordsmanz
1357: [22:04:52] * ccburns quit (Ping timeout: 256 seconds)
1358: [22:08:57] * simon__w has joined #silverstripe
1359: [22:11:04] * UncleCheese has joined #silverstripe
1360: [22:11:56] * RojoD is now known as SleepyBoy
1361: [22:12:03] * simon_w quit (Ping timeout: 276 seconds)
1362: [22:12:42] * PigeonFriend quit (Ping timeout: 276 seconds)
1363: [22:13:21] * PigeonFriend has joined #silverstripe
1364: [22:16:31] * Stomach quit (Quit: Leaving.)
1365: [22:18:59] * Stomach has joined #silverstripe
1366: [22:20:37] * priithansen quit (Quit: priithansen)
1367: [22:22:21] * simon_w|air quit (Ping timeout: 264 seconds)
1368: [22:26:56] * ss23 yawns
1369: [22:27:07] <ss23> Was trying to think of why I couldn't do any work for some reason
1370: [22:27:14] <ss23> Morning hot chocolate :D
1371: [22:28:11] * willr has joined #silverstripe
1372: [22:33:28] <ss23> morning, willr
1373: [22:34:33] <willr> howdey
1374: [22:43:30] <atmos> I know I've asked before - but has anyone every made a userform with confirm email validation? (ie. checking values of 2 fields match)
1375: [22:45:05] * UncleCheese quit (Quit: UncleCheese)
1376: [22:48:49] <atmos> willr: I've found this - but I'm kinda stumped on what to do next http://www.silverstripe.org/all-other-modules/show/14302
1377: [22:49:06] * Peavers quit (Read error: Connection reset by peer)
1378: [22:49:16] * Peavers has joined #silverstripe
1379: [22:49:19] * DigNZ quit (Ping timeout: 268 seconds)
1380: [22:51:38] <willr> atmos, as it says, Userforms doesn't have support for it. If you need it you could build your own UserDefinedForm field by subclassing EditableFormField
1381: [22:52:47] * ccburns has joined #silverstripe
1382: [22:53:18] <atmos> willr: OK thanks - I just wasn't sure if that was still valid
1383: [22:53:33] * UncleCheese has joined #silverstripe
1384: [22:53:51] <willr> Todo for me is to write a tutorial on custom EditableFormField's
1385: [22:54:15] <ss23> Hmm
1386: [22:54:27] <ss23> Wouldn't be amazingly hard to add a field type or something into UserDefinedForms right?
1387: [22:54:32] <willr> Nope.
1388: [22:54:33] * Colin[pi] has joined #silverstripe
1389: [22:54:36] <ss23> It would end up hacky though, probably
1390: [22:54:47] <Colin[pi]> moin!
1391: [22:54:53] <ss23> morning, Colin[pi] :D
1392: [22:54:56] <willr> No, 1 class and a couple methods and you have it ss23
1393: [22:55:09] <ss23> Yay, you're still here, you haven't left yet! (see, I remember!)
1394: [22:55:19] <atmos> ss23: Which I have done - I'm mostly having a hard time creating a validation method that I can apply to it
1395: [22:55:24] <Colin[pi]> nope! I go tomorrow!
1396: [22:55:53] <willr> ss23 - an example of a custom editable form field wrapper for the Googlemap selector field - https://github.com/wilr/silverstripe-googlemapselectionfield/blob/master/code/EditableGoogleMapSelectableField.php
1397: [22:58:05] <Pyromanik> "Method to authenticate an user"
1398: [22:58:15] <Pyromanik> oh you ss docs, trolling is a art.
1399: [22:58:30] <AlphaCactus> bah, still can't figure out how to unset array items in Session.
1400: [22:59:21] <ss23> lol Pyromanik XD
1401: [23:03:39] * SleepyBoy is now known as Sleepingboy
1402: [23:03:55] * simon_w|air has joined #silverstripe
1403: [23:08:22] * howardgrigg quit (Remote host closed the connection)
1404: [23:08:27] * guy_w has joined #silverstripe
1405: [23:09:02] <guy_w> Hi simon__w ...I am having trouble with the gridfieldrelationhandler module when using the GridFieldManyRelationHandler on a many_many relationship that has a many_many_extraFields() to add a sort column. If the object has a different sort order on different pages, then the GridFieldManyRelationHandler will return two different objects. Do you know how I can ensure that when I click "Change relation status" that only a checkbox
1406: [23:10:16] <guy_w> irrespective of their sort order on different pages.
1407: [23:11:03] * Jayden90 has joined #silverstripe
1408: [23:13:50] * Stomach quit (Quit: Leaving.)
1409: [23:14:15] * guci0 quit (Ping timeout: 250 seconds)
1410: [23:15:47] <Pyromanik> guy_w: I think your message was truncated.
1411: [23:16:16] <Pyromanik> it reads: Do you know how I can ensure that when I click "Change relation status" that only a checkbox irrespective of their sort order on different pages.
1412: [23:16:22] <Jayden90> Which is more correct, $Thumbnail.Link or $Thumbnail.URL
1413: [23:16:27] <Jayden90> in templates
1414: [23:16:27] <Pyromanik> which doesn't make much sense :<
1415: [23:16:36] <Pyromanik> Jayden90: for what?
1416: [23:16:46] <Pyromanik> Images?
1417: [23:16:58] <Pyromanik> File and Image don't have a link method I don't think.
1418: [23:17:33] * ccburns quit (Ping timeout: 264 seconds)
1419: [23:18:08] <Jayden90> Both work identically in 3.1 on an image
1420: [23:18:22] <Pyromanik> eh
1421: [23:18:24] * Stomach has joined #silverstripe
1422: [23:18:26] <Pyromanik> so it doesn't matter
1423: [23:18:41] <Colin[pi]> just called one of the biggest courier companies in Australia... "oh no sorry we don't yet have an API for e-commerce"... um wtf? it's 2013 ffs
1424: [23:19:06] <ss23> oh god, I dealt with shipping companies at my last job :/
1425: [23:19:13] <Pyromanik> also, not according to the docs Jayden90
1426: [23:19:19] <ss23> Had to have an XP box to run a bunch of software for them, and damn the tech support was incompetent
1427: [23:19:27] <Colin[pi]> ygh
1428: [23:19:35] <Jayden90> I am sure one method is "more correct". like how <% control %> still worked but should be avoided
1429: [23:19:40] <Pyromanik> Colin[pi]: yeah, just about every app based company in NZ doesn't have an API.
1430: [23:19:44] <Pyromanik> it's retarded.
1431: [23:19:48] <Colin[pi]> jesus
1432: [23:19:51] <Colin[pi]> I had no idea
1433: [23:19:52] <ss23> "Hi yes, we recently changed some IPs in our network, and now this software has stopped working. I know the software works in a server/client arch, and the box that runs the server has had it's IP changed. How do I fix it?"
1434: [23:19:56] <ss23> "WELL TRY RESTARTING"
1435: [23:20:01] <Pyromanik> same deal with many aus based services, like thebookingbutton.com.au
1436: [23:20:05] <Pyromanik> iirc
1437: [23:20:13] <zippy__> ss23: have you tried turning it off and on again?
1438: [23:20:13] <ss23> "Try running it with debug options!" "It says it can't connect, it's trying to connect to the old IP" "I'M SORRY I'LL HAVE TO ESCALATE THIS."
1439: [23:20:17] <ss23> like, raaaaagggeeeeeee
1440: [23:20:36] <Pyromanik> ss23: lol
1441: [23:20:41] <Pyromanik> front level support nfi.
1442: [23:20:46] <Pyromanik> dem tier1s
1443: [23:20:50] <ss23> Escalating is fine, I understand that's how it works, but giving your first tier of support *some* skills would be so handy :/
1444: [23:20:55] <guy_w> thank Pyromanik ...i will try again
1445: [23:21:01] * ccburns has joined #silverstripe
1446: [23:21:12] <Pyromanik> ss23: haha
1447: [23:21:26] <guy_w> Hi I am having trouble with the gridfieldrelationhandler module when using the GridFieldManyRelationHandler on a many_many relationship that has a many_many_extraFields() to add a sort column.
1448: [23:21:29] <guy_w> If the object has a different sort order on different pages, then the GridFieldManyRelationHandler will return two different objects. Do you know how I can ensure that when I click "Change relation status" that only a checkbox list of unique objects come up irrespective of their sort order on different pages.
1449: [23:21:38] <Pyromanik> most big companys have tier1 PURELY to either placate the customer or just get rid of them.
1450: [23:21:59] <Pyromanik> like you ring Slingshot "YOUR SERVICE IS SHIT AND KEEPS DROPPING" - "that's your fault, bye"
1451: [23:22:12] <Pyromanik> *change ISP*
1452: [23:22:12] <ss23> lol
1453: [23:22:17] <Pyromanik> suddenly perfect service
1454: [23:22:25] <Pyromanik> OBVIOUSLY NOT A FAULT AT OUR END
1455: [23:22:30] <ss23> lol
1456: [23:22:37] <Pyromanik> even better
1457: [23:22:48] <Pyromanik> must have rung them about 12 times to bitch about the same issue
1458: [23:22:52] <Pyromanik> right up to cancel service
1459: [23:23:01] <Pyromanik> "OK EARLY DISCONNECTION FEE"
1460: [23:23:12] <Pyromanik> lol no, your service is inoperable, we don't have to pay that.
1461: [23:23:16] <ss23> lol
1462: [23:23:17] <Pyromanik> "YOU NEVER REPORTED A FAULT"
1463: [23:23:28] <Pyromanik> at that moment I went fullmadx2
1464: [23:23:37] <Pyromanik> I jsut about flew to auckland to puch someone in the face.
1465: [23:24:19] <Pyromanik> I know for certain that a fault was logged, because a mate who worked there saw it in the system, and even gave us a credit on our account for them not dealing with it quick enough.
1466: [23:24:24] <Pyromanik> scammers.
1467: [23:24:27] <Pyromanik> scammers everywhere.
1468: [23:24:43] <Pyromanik> Slingshot: "Shit service and Nigerian level support"
1469: [23:24:56] <Pyromanik> *Nigerian price*
1470: [23:25:04] <ss23> Pyromanik: sounds mad
1471: [23:25:04] <ss23> :D
1472: [23:25:11] <ss23> I mean, you sound mad, that is
1473: [23:25:11] <ss23> :P
1474: [23:25:20] <Pyromanik> Slingshot, NOT EVEN ONCE.
1475: [23:25:41] <Pyromanik> ss23: I know what you meant. And yeah, I am. Even just the memory of that ISP makes me mad.
1476: [23:25:46] <Pyromanik> I'm mad that they even exist
1477: [23:25:54] <Pyromanik> *still
1478: [23:26:50] <Pyromanik> I'm also mad because it's an hour until lunch and I'm already hungry.
1479: [23:27:18] * catcher quit (Quit: Leaving)
1480: [23:32:48] * DigNZ has joined #silverstripe
1481: [23:32:51] * DigNZ quit (Remote host closed the connection)
1482: [23:33:08] * DigNZ has joined #silverstripe
1483: [23:35:34] <guy_w> I have also posted the question on the forum. If somebody is able to help me out that would be awesome http://www.silverstripe.org/all-other-modules/show/20818?start=8#post323850
1484: [23:36:04] * obbo has joined #silverstripe
1485: [23:36:55] <zippy__> Trying to delete a member via a custom function - I've tried both calling ->delete and ->destroy and both it seems items are not cleaned up, like the Group_Members table, MemberPassword etc. Is there a "proper" way to delete a member?
1486: [23:38:22] <obbo> hello
1487: [23:38:40] <obbo> i am using CroppedImage in my template on an image and it is rotating the image
1488: [23:38:45] <obbo> is there any way to prevent that?
1489: [23:38:51] <obbo> in SS3.1 beta3
1490: [23:39:24] <Pyromanik> obbo: that's not possible.
1491: [23:39:32] <Pyromanik> are you sure your OS isn't storing the image rotated?
1492: [23:39:37] <Pyromanik> and it's actually sideways?
1493: [23:40:24] <obbo> nope, if i view the url of the image, it is correct
1494: [23:40:25] <Pyromanik> Windows does that, MacOS may also.
1495: [23:40:30] <Pyromanik> obbo: that's odd.
1496: [23:40:48] <obbo> the image is very large, at least 3000px width/height
1497: [23:40:52] <Pyromanik> obbo: and there is no css or other template call?
1498: [23:40:58] <Pyromanik> obbo: that shouldn't matter
1499: [23:41:03] <Pyromanik> obbo: which version of SS are you running?
1500: [23:41:09] <zippy__> it appears that even the security admin doesn't clean up all the tables when deleting a member, thats interesting
1501: [23:41:14] <obbo> nope, all other images are using CroppedImage and are correct
1502: [23:41:25] <obbo> Pyromanik: SS 3.1-beta3
1503: [23:41:38] <simon__w> obbo, the image is stored sideways
1504: [23:41:38] <Pyromanik> obbo: yes, but they're not that call.
1505: [23:41:40] * simon__w is now known as simon_w
1506: [23:41:49] <Pyromanik> simon_w: eh?
1507: [23:41:58] <simon_w> EXIF data
1508: [23:42:08] <Pyromanik> yeah, that's what I thought right...
1509: [23:42:14] <simon_w> Tells the browser to rotate the image normally, GD drops it
1510: [23:42:18] <Pyromanik> OIC
1511: [23:42:31] <Pyromanik> so even the uploaded version will be sideways, but it's actually not.
1512: [23:42:36] <Pyromanik> gotcha, didn't think that persisted.
1513: [23:42:36] <obbo> simon_w: wow, didin't know that
1514: [23:42:48] <Pyromanik> (ie, I thought it was OS level, not EXIF)
1515: [23:42:59] <simon_w> Your browser's supposed to upload a properly rotated image
1516: [23:43:15] <zippy__> Interesting!
1517: [23:43:34] <Pyromanik> by os level I mean the likes of thumbs.db & .ds_store
1518: [23:43:45] <obbo> simon_w: it's not uploaded through the browser the traditional way, so that is probably the reason
1519: [23:43:46] <Pyromanik> exif eh.
1520: [23:43:51] <simon_w> Pyromanik, nah, EXIF data from the camera
1521: [23:43:55] <obbo> simon_w: thanks, learn something new everyday!
1522: [23:43:58] <Pyromanik> simon_w: oh yeh
1523: [23:44:08] <Pyromanik> yeh, handy to know
1524: [23:44:13] <simon_w> obbo, something that usually works is to open the image then Save As
1525: [23:44:30] <zippy__> Is it better to use ->delete() or ->destroy() on a member to delete them, or something else
1526: [23:44:51] <simon_w> zippy__, destroy() doesn't do any deleting
1527: [23:44:59] <simon_w> You want delete()
1528: [23:45:15] <zippy__> delete() doesn't seem to clean up other tables that member has a relationship with
1529: [23:45:25] <simon_w> So do that first
1530: [23:46:21] <zippy__> mm I thought "core" tables such as LoginAttempts would be cleaned up for you
1531: [23:46:35] <simon_w> Nope
1532: [23:46:44] <simon_w> There's no default cascades
1533: [23:47:03] <Pyromanik> no 'deep cleansing'
1534: [23:47:09] <guzzlefry> Is Email::getAdminEmail deprecated? PHPStorm is marking it as such, but I don't see it in the API docs.
1535: [23:47:38] <simon_w> Deprecation::notice('3.2', 'Use the "Email.admin_email" config setting instead');
1536: [23:47:59] <zippy__> ok, thanks guys
1537: [23:48:25] * atmos quit (Quit: Page closed)
1538: [23:50:43] * obbo quit (Quit: Page closed)
1539: [23:57:04] * maknz quit (Ping timeout: 256 seconds)
1540: [23:58:54] * zippy__ quit (Ping timeout: 240 seconds)

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