#silverstripe IRC Log

IRC log for 12 November 2013

All timestamps are in UTC.

1: [00:03:23] <coldblooded01> no ajax validation for it
2: [00:03:27] <coldblooded01> polished, no longer glitchy now
3: [00:04:12] * ooystein quit (Remote host closed the connection)
4: [00:05:02] * nickmolhoek quit (Quit: nickmolhoek)
5: [00:05:36] <Ryan-Toast> The validation still screws up the page
6: [00:07:06] <Ryan-Toast> Add label.required{width:100%;} to your css
7: [00:07:36] <Ryan-Toast> coldblooded01: ^
8: [00:08:07] <coldblooded01> I see
9: [00:08:08] <coldblooded01> ok
10: [00:09:39] <Ryan-Toast> Also add a file to your theme under /yourthemename/templates/forms/FormAction.ss and use this code: http://pastebin.com/ZA9wShdm
11: [00:10:07] <Ryan-Toast> coldblooded01: That will change your submit button to have the btw and btw-primary classes.
12: [00:10:12] <Ryan-Toast> btn**
13: [00:11:26] <Colin[pi]> yay assessment finished
14: [00:11:31] <Colin[pi]> man that was an ordeal
15: [00:12:14] <Ryan-Toast> Colin[pi]: Nice.
16: [00:12:15] <Pyromanik> 12:29 < spronk> Pyromanik: you been to the new wendehs
17: [00:12:42] <Pyromanik> spronk: neg, wendehs uz shut.
18: [00:12:43] <Colin[pi]> I felt like it was very harsh, but someone should know if their site has gaping security holes
19: [00:12:50] * zfmf has left #silverstripe
20: [00:13:01] <Pyromanik> tutalluie? Shut.
21: [00:13:04] <mirrors> can only tell me how the silverstripe search results are paginated....i cant see where the results are wrapped in a PaginatedList?
22: [00:13:34] <Pyromanik> coldblooded01: what did you change, if it was module core?
23: [00:13:34] <coldblooded01> Ryan-Toast: :) cheers for that
24: [00:13:42] <coldblooded01> looks much better
25: [00:13:47] <coldblooded01> just some css tweaks Pyromanik
26: [00:14:04] <Pyromanik> coldblooded01: for back end?
27: [00:14:13] <Pyromanik> there is no css in front end.
28: [00:14:24] <Pyromanik> well, besides the popup selector thing
29: [00:14:28] <coldblooded01> front end http://littlemonkey.co.nz/products/custom-loyalty-app/order-loyalty-application (the actual popup for the colourpicker
30: [00:14:31] <Ryan-Toast> coldblooded01:I recommend using the styling from alert alert-danger for your label.required
31: [00:14:36] <coldblooded01> it was a bitch gitchu with the R: L: text boxes
32: [00:15:23] <Pyromanik> L?
33: [00:15:30] <Ryan-Toast> coldblooded01: I also recommend having a quick read of this site: http://goodui.org/ It may help you change a bit of your wording, and call to actions.
34: [00:15:56] <coldblooded01> Sorry no L, H: Pyromanik
35: [00:16:03] <Pyromanik> ah, hsv, etc.
36: [00:16:05] <coldblooded01> ya
37: [00:16:09] <Pyromanik> caused by bootstrap?
38: [00:16:29] <coldblooded01> I'm not sure, i didn't test it with a clean SS template
39: [00:16:35] <Pyromanik> ah
40: [00:16:36] <coldblooded01> most likely bootstrap
41: [00:16:40] <Pyromanik> cool
42: [00:16:44] * coldblooded01 has left #silverstripe
43: [00:16:46] <Pyromanik> I didn't notice anything out of place in the back end
44: [00:16:51] * coldblooded01 has joined #silverstripe
45: [00:16:54] <Pyromanik> I didn't notice anything out of place in the back end
46: [00:17:03] <coldblooded01> that's all fine
47: [00:17:05] * wilr quit (Quit: wilr)
48: [00:17:40] <Pyromanik> cool :)
49: [00:18:00] <coldblooded01> Ryan-Toast: thanks for that link
50: [00:18:28] <Ryan-Toast> coldblooded01: you should use .croppedImage(160, 160) on your portfolio page for your thumbnails. Scaling them like you do now messes up some of the images.
51: [00:19:10] <coldblooded01> hahah sweet. I think i tried cropped image there or could've been setsize
52: [00:19:19] <coldblooded01> looked bad
53: [00:19:22] <coldblooded01> lets try croppedImage
54: [00:19:53] <Pyromanik> CroppedImage resizes so the smallest dimension fits, then crops. resize just resizes to fit within.
55: [00:20:12] <coldblooded01> ok
56: [00:20:50] <Ryan-Toast> Redesigning my website, man it gives me a headache.
57: [00:21:01] <Ryan-Toast> Hate designing stuff.
58: [00:21:12] <Colin[pi]> Ryan-Toast: from scratch?
59: [00:21:17] <Ryan-Toast> Yeah.
60: [00:21:35] <Pyromanik> rofl Ryan-Toast: #13 "field added with design by committee"
61: [00:21:36] <Colin[pi]> Considered adapting a template? Might give a good head start?
62: [00:21:44] <Ryan-Toast> This is what I've got so far: http://i.imgur.com/9dinrkt.jpg
63: [00:21:58] <Colin[pi]> oh that looks sweet
64: [00:22:09] <Colin[pi]> love the colours
65: [00:22:25] <Ryan-Toast> Cheers. The layout needs a bit of tweaking though, lots of trapped white space.
66: [00:22:39] <Colin[pi]> yeah make that Latest Work bit a little wider
67: [00:22:55] <zippy__> Looks good, the white text (and / ) in the footer clashes a little with the lightblue
68: [00:23:18] <Colin[pi]> throw something in the bottom right too, for balance
69: [00:23:32] <coldblooded01> worse headache i got when developing and designing this site http://nzpfu.org.nz just about a month ago
70: [00:23:44] <coldblooded01> don't even start digging into its flaws =p or else ill rage quit
71: [00:24:06] <Ryan-Toast> Good points. This is my current site: http://ryanpotter.co.nz/ and just got sick of the brand. That and I made it a couple of years ago.
72: [00:24:10] <coldblooded01> PSD cut
73: [00:24:11] <Pyromanik> I would reverse the colours, personally.
74: [00:24:23] <Pyromanik> Create more contrast with the header, and a subtle glow from the bottom.
75: [00:24:31] <Pyromanik> smoke at top, fire at base.
76: [00:24:32] <Pyromanik> etc.
77: [00:24:43] <Pyromanik> but I don't design! xD
78: [00:24:59] <coldblooded01> xD
79: [00:25:36] <zippy__> coldblooded01: http://piwik.org/ any good?
80: [00:25:49] <Colin[pi]> I use it for some clients
81: [00:26:01] <coldblooded01> it's ok, does the job for $0
82: [00:26:09] <coldblooded01> i prefer gosquared.com costs though
83: [00:27:55] * origincube has joined #silverstripe
84: [00:28:28] <origincube> hi guys
85: [00:28:45] <zippy__> hi
86: [00:28:47] <origincube> having an issue with the validation on the user forms plugin, and a bit stumped as to why its not working :(
87: [00:28:49] <Colin[pi]> y hello thar
88: [00:29:43] <origincube> at this stage only using required field validation, but for some reason the error messages aren't displaying the field labels, instead they just say {name} is required, regardless of the field that is missing :/
89: [00:29:51] <origincube> any idea why or how to fix this?
90: [00:30:36] <origincube> sorry to bug, but its been driving me nuts
91: [00:33:06] <origincube> anyone have an idea, or should i check back later?
92: [00:35:38] <Ryan-Toast> origincube: do you have an online version?
93: [00:35:54] <origincube> you mean is the site its running on live?
94: [00:36:04] <Ryan-Toast> Yeah
95: [00:36:09] <origincube> http://windowart.retrolex.za.net/info/contact/gauteng/
96: [00:36:32] <origincube> just try submit an empty form and you'll see the issue
97: [00:37:06] <Ryan-Toast> can you paste bin your file that you're adding your fields?
98: [00:37:21] * chillu quit (Quit: chillu)
99: [00:37:23] <origincube> did it completely through the built in cms interface
100: [00:37:38] <origincube> with the drag and drop controls
101: [00:37:39] <Ryan-Toast> Userforms?
102: [00:37:42] <Pyromanik> origincube: your lang file is missing
103: [00:37:42] <origincube> yip
104: [00:38:02] <Pyromanik> copy userforms/lang/en_GB.yml to mysite/lang/en_NZ.yml (assuming it's NZ?)
105: [00:38:06] <Ryan-Toast> What pyro said.
106: [00:38:26] <origincube> ok
107: [00:38:27] <Pyromanik> oh, za
108: [00:38:37] <Pyromanik> you probably want the afrikaans file then?
109: [00:38:41] <origincube> never needed a language file before
110: [00:38:42] * wilr has joined #silverstripe
111: [00:38:47] <origincube> english is fine
112: [00:38:56] <origincube> so the en_GB stuff will be perfect
113: [00:39:05] <Pyromanik> origincube: what language have you got your site set to?
114: [00:39:35] <origincube> the default installation
115: [00:39:38] <Pyromanik> that's what you'll need to name your file.
116: [00:39:41] <origincube> so its still set to en_US
117: [00:39:43] <Pyromanik> really? should work fine.
118: [00:39:46] <Pyromanik> :<
119: [00:40:12] <Pyromanik> userforms/lang/en_US.yml exists
120: [00:40:15] <origincube> yeah, thats why i'm confused, i haven't configured anything around the site language, just left that as per the default installation
121: [00:40:20] <Pyromanik> yeah
122: [00:40:42] <origincube> no en_US.yml in /lang
123: [00:40:43] <Pyromanik> I think soemthing changed recently and userforms either broke or fell behind the api
124: [00:40:47] <origincube> there is an en.yml
125: [00:40:59] <origincube> perhaps if i just change the language to en_GB
126: [00:40:59] <Pyromanik> if there's no en_US.yml that'll be the issue.
127: [00:41:06] <Pyromanik> I have one, but my copy is probably a bit outdatede
128: [00:41:15] <origincube> its fine, easier to change the locale to en_GB
129: [00:41:16] <Pyromanik> yeah nah, probably don't do that
130: [00:41:25] <Pyromanik> of you'll get pounds and shit everywhere :<
131: [00:41:30] <Pyromanik> or*
132: [00:41:36] <origincube> ok
133: [00:41:47] <origincube> and if i copy the en_GB file and rename it en_US
134: [00:41:48] <origincube> ;)
135: [00:42:10] <origincube> will just copy the content of en_GB as suggested above
136: [00:42:20] <Pyromanik> haha, well, you should put it in mysite/lang
137: [00:42:20] <origincube> into mysite/lang/en_US.yml
138: [00:42:24] <Pyromanik> yeh
139: [00:42:35] <Pyromanik> do a flush afterwards
140: [00:43:02] <origincube> all these things that don't get mentioned when installing or working with the new versions :O
141: [00:44:36] <Pyromanik> well, normally it's because module development is second seat to core.
142: [00:44:40] <Pyromanik> for obvious reasons.
143: [00:44:55] <origincube> yeah, just wish the modules sometimes had a bit more documentation
144: [00:45:00] <origincube> :)
145: [00:45:14] <origincube> but then i know how awful writing documentation is, so I can understtand why it isn't there
146: [00:45:15] <origincube> hehe
147: [00:45:18] <Pyromanik> but it's very odd that US has been removed from the translation. I think it's supposed to fall back to en.yml, but obviously isn't.
148: [00:45:21] <Pyromanik> which is a bit shit.
149: [00:45:30] <origincube> yeah
150: [00:45:42] <Pyromanik> origincube: well I meant more that you can't update a module until core is changed.
151: [00:45:47] <origincube> copied the en_GB stuff into a en_US file in my mysite/lang
152: [00:45:51] <origincube> and its working perfectly now
153: [00:45:54] <origincube> thanks so much! ;)
154: [00:46:00] <Pyromanik> and as such people only tend to update them when they find out they're not working anymore :<<
155: [00:46:06] <Pyromanik> origincube: you're welcome.
156: [00:46:38] <origincube> very much appreciated. one day i will get the time to sit down and go in depth with SS and get a better grip with the innerds
157: [00:50:29] <Pyromanik> origincube: I had to solve the same issue just yesterday.
158: [00:50:35] <Pyromanik> hence I know what to do :P
159: [00:51:07] <origincube> hehe ;)
160: [00:51:51] <origincube> wish we could tweak the cms nav structures to be more bootstrap friendly, have had to create a SS version of bootstrap so that the menu highlighting works properly
161: [00:51:56] <origincube> bit ofa mission
162: [00:52:01] <origincube> but at least its working
163: [00:56:24] <Ryan-Toast> You can use my Navigation.ss in my boilerplate if you want: https://github.com/Rhym/ss_boilerplate
164: [00:57:12] <origincube> sweet thanks ;)
165: [00:57:13] <Ryan-Toast> origincube: https://github.com/Rhym/ss_boilerplate/blob/master/themes/boilerplate/templates/Includes/Navigation.ss you'll just have to remove the SiteConfig stuff.
166: [00:58:03] <Ryan-Toast> And grab the css under the "Navigation" heading: https://github.com/Rhym/ss_boilerplate/blob/master/themes/boilerplate/sass/_layout.scss
167: [00:58:09] <origincube> how do you get around $LinkingMode using current when bootstrap expects to style active ?
168: [00:58:35] <origincube> ah ok, updated the styles, yeah thats what i ended up doing.
169: [00:58:44] <origincube> pity you can't configure it to use active from the get go
170: [00:58:45] <Ryan-Toast> LinkingMode adds active
171: [00:58:49] <origincube> but not a biggie ;)
172: [00:59:32] <origincube> all the installs i've run linkingmode adds current
173: [00:59:37] <Ryan-Toast> I'll be updating that boilerplate with heaps of shit if you want to use it in the future.
174: [00:59:45] <Pyromanik> origincube: umm, you have 100% freedom when it comes to templates.
175: [00:59:50] <origincube> will definitely check it out :)
176: [01:00:06] <origincube> thanks! :)
177: [01:00:07] <Ryan-Toast> Built my work's site with it: http://www.toast.co.nz/
178: [01:00:21] <Pyromanik> you're probably using a pre-defiend variable like $LinkingMode which returns /current/section/link
179: [01:00:46] <Pyromanik> but you can do <% if Current %>whatever classes you want<% end_if %> for example.
180: [01:00:47] <origincube> yip. see i need to read more about the options ;)
181: [01:00:58] <Pyromanik> 2.4 docs were good for that
182: [01:01:10] <origincube> do they still apply for 3.1 nav stuff?
183: [01:01:16] <origincube> if so i'll definitely go dig through them
184: [01:01:26] <Pyromanik> most of the tempalte stuff is the same, except don't use control, we have loop and with instead.
185: [01:01:35] <Pyromanik> oh, and we have the glorious $Up
186: [01:01:47] <origincube> oh? what does $Up do? :)
187: [01:01:56] <origincube> or should i say refer to
188: [01:01:59] <Pyromanik> Syntax is a little different, but the things you can DO with it are the same.
189: [01:02:18] <Pyromanik> origincube: eg, $Title <% loop Children %> $Up.Title <% end_loop %>
190: [01:02:25] <Pyromanik> you'll get a big list of the same title.
191: [01:02:33] <Pyromanik> http://doc.silverstripe.org/framework/en/2.4/reference/built-in-page-controls
192: [01:02:43] <origincube> yeah i had to upgrade my nav code since this site is using 3.1, and my previous sites used 3.0
193: [01:02:52] <Pyromanik> http://doc.silverstripe.org/framework/en/2.4/reference/built-in-page-controls#links-and-classes
194: [01:03:07] <origincube> reading for the morning then! ;)
195: [01:03:34] <Pyromanik> also see http://doc.silverstripe.org/framework/en/2.4/reference/advanced-templates
196: [01:03:47] <Pyromanik> most of the accessable items are still the same.
197: [01:03:50] <origincube> cool. definitely will have a thorough read
198: [01:04:05] <Pyromanik> just remember to never <% control Something %>
199: [01:04:26] <origincube> thanks for all the help, super appreciated. now time to head to bed, otherwise tomorrow is going to be not so much fun. hehe
200: [01:04:38] <origincube> yeah, replaced all the control stuff with Loop or With
201: [01:04:53] <Pyromanik> you could do <% if $LinkingMode == current %>active<% else %>$LinkingMode<% end_if %> for example
202: [01:05:01] <origincube> yeah definitely
203: [01:05:06] <Pyromanik> that'll give you active instead of the default current, but section and link still for other options.
204: [01:05:09] <origincube> next bootstrap site, i may very well do that
205: [01:05:36] <origincube> this site i want to put to bed already, its been dragging
206: [01:06:47] <origincube> anyways, thanks guys! :) catch you all again soon
207: [01:06:57] <origincube> have a great day ;)
208: [01:07:11] * origincube has left #silverstripe
209: [01:18:28] <ss23> I seriously despise the amount of unnessecary Javascript in the CMS.
210: [01:19:54] <Pyromanik> entwine seems really cool
211: [01:20:01] <Pyromanik> but at the same time... I'm not entirely convinced.
212: [01:20:32] <Pyromanik> I think it fits great as more of an MV type of C, rather than a C for the M & V
213: [01:23:55] * antmas has joined #silverstripe
214: [01:24:26] * antmas quit (Client Quit)
215: [01:27:00] <Pyromanik> someone halp
216: [01:27:04] <Pyromanik> why does translation suck?
217: [01:27:14] <Pyromanik> eg
218: [01:27:15] <Pyromanik> https://github.com/silverstripe/silverstripe-userforms/tree/master/lang
219: [01:27:51] <Pyromanik> and then if you use, it doesn't fall back to en.yml if you have say en_NZ or en_US - it just failes.
220: [01:31:36] <zippy__> didn't smoeone say the yml isn't supported yet?
221: [01:36:28] <Ryan-Toast> MY has_one relationship generates a sitetree drop down instead of having the ID automatically. Am I missing something?
222: [01:36:30] * antmas has joined #silverstripe
223: [01:38:45] <Pyromanik> zippy__: it's supported.
224: [01:39:00] <Pyromanik> if you rename the lang file then suddenly fine.
225: [01:39:19] <Pyromanik> Ryan-Toast: probably.
226: [01:39:24] <antmas> helllooooo
227: [01:39:36] <ss23> blargh
228: [01:39:38] <guzzlefry> evening sir
229: [01:39:38] <Pyromanik> Are you using GridFieldConfig_RelationEditor?
230: [01:39:49] <ss23> trakcing down "WHY IS THIS ALWAYS DOING NON SSL LINKS EVEN WHEN It'S VIEWED OVER SSL!?"
231: [01:39:55] <ss23> someone literally just overrriden it
232: [01:39:56] <ss23> idk why
233: [01:39:56] <ss23> ;_
234: [01:39:58] <ss23> ;_;
235: [01:40:00] <Pyromanik> Ryan-Toast: and did you specify the list as $this->RelationName()
236: [01:40:15] <Pyromanik> ss23: ask them.
237: [01:40:23] <ss23> "then"?
238: [01:40:23] <ss23> :P
239: [01:40:24] <Ryan-Toast> Pyromanik: No, do I do that in the gridField config?
240: [01:40:25] <Pyromanik> y'know, social interactions 'n shit.
241: [01:40:26] <antmas> just got out of a 5 hour meeting
242: [01:40:32] <antmas> got free lemon cakes and a USB stick
243: [01:40:35] <ss23> Pyromanik: Implying that the people who wrote it are still around or remmeber!
244: [01:40:36] <antmas> -_-
245: [01:40:53] <ss23> OH LOOK
246: [01:40:55] <ss23> IT WAS INGO.
247: [01:41:00] <ss23> He's asleep :(
248: [01:41:10] * wilr quit (Quit: wilr)
249: [01:42:12] * wilr has joined #silverstripe
250: [01:42:13] * wilr quit (Client Quit)
251: [01:42:32] <Ryan-Toast> Pyromanik: In the GridField Config?
252: [01:42:41] <Pyromanik> antmas: nom, lemon cakes
253: [01:42:46] <Pyromanik> Ryan-Toast: no, config is just config.
254: [01:42:59] <Ryan-Toast> Where do I set the RelationName?
255: [01:43:01] <EasyCo> What's GUI tool that watches your project and precompiles your sass and coffee script (amonst others) for you? I do it all using guard but a mate wants a gui. I remember seeing kicking around but can't recall the name.
256: [01:43:02] <Pyromanik> list is 3rd param to gridfield.
257: [01:43:16] <Pyromanik> oh
258: [01:43:17] <antmas> Pyromanik: :D
259: [01:43:18] <Pyromanik> umm
260: [01:43:39] <Pyromanik> actually, maybe I just subconciously always override the getCMSFields
261: [01:43:48] <EasyCo> Woah, I missed a few words there.
262: [01:43:55] <Pyromanik> Ryan-Toast: you set getCMSFields on your dataobject.
263: [01:44:01] <Pyromanik> and remove the field in question.
264: [01:44:07] <Pyromanik> I think
265: [01:44:09] <Pyromanik> or something
266: [01:44:09] <Pyromanik> shit
267: [01:44:11] <Pyromanik> fuck
268: [01:44:12] <Pyromanik> I dunno!
269: [01:44:23] <Pyromanik> Gridfield so confusing :<
270: [01:44:39] <Pyromanik> EasyCo: compass
271: [01:44:40] <Pyromanik> ?
272: [01:44:54] <Pyromanik> oh, gui
273: [01:44:56] <Pyromanik> nfi.
274: [01:45:02] <EasyCo> Nah, it's like LiveReload but doesn't do the browser reload bit :)
275: [01:45:06] <Ryan-Toast> Pyromanik: Yes indeed :P
276: [01:45:11] <Pyromanik> I'm a hipster remember.
277: [01:45:14] * wilr has joined #silverstripe
278: [01:45:16] * wilr quit (Client Quit)
279: [01:45:18] <Pyromanik> err, hippie.
280: [01:45:20] <Pyromanik> unhipster
281: [01:45:25] <Pyromanik> opposite of hipster.
282: [01:45:29] <Pyromanik> BECAUSE I DON'T SASS
283: [01:45:41] <Pyromanik> Ryan-Toast: pretty sure it happens automatically
284: [01:45:42] <Pyromanik> if you
285: [01:45:45] <EasyCo> Codekit!!
286: [01:45:48] <EasyCo> That's the one
287: [01:45:53] <guzzlefry> question!
288: [01:46:11] <Ryan-Toast> Pyromanik: It doesn't :(
289: [01:46:16] <Pyromanik> GridField::create('Name', 'Label', $this->RelationName(), GridFieldConfig_RelationEditor::create())
290: [01:46:23] <EasyCo> That's ok Pyromanik, it takes all sorts
291: [01:46:38] <Pyromanik> EasyCo: it takes hipsters to sass.
292: [01:47:06] <guzzlefry> I have this product listing page that needs to be filtered on two different properties. Each property can have multiple values. So as an example, finding all DVDs or VHS tapes that are either in the action genre or comedy genre. Should I even attempt this with routing?
293: [01:48:19] <Pyromanik> guzzlefry: no, use tags.
294: [01:48:35] <Pyromanik> see tagfield on github
295: [01:48:40] <Pyromanik> or addons.ss.org.nz
296: [01:48:49] <guzzlefry> ah, thanks
297: [01:49:04] <Pyromanik> oh, simon_w hasn't made that connect through :<
298: [01:49:13] <Pyromanik> or mirror, or whatever he does.
299: [01:49:14] <simon_w> should now
300: [01:49:17] <Pyromanik> :D
301: [01:50:48] <guzzlefry> Why can't I find this tagcloud?
302: [01:51:00] * terryapodaca has left #silverstripe
303: [01:51:05] <guzzlefry> oh wait
304: [01:51:09] <guzzlefry> because I'm dumb.
305: [01:51:13] <Pyromanik> guzzlefry: because you're not clued on how search works?
306: [01:51:22] <Pyromanik> addons.ss.org.nz, search 'tag'.
307: [01:51:24] <Pyromanik> first result.
308: [01:51:46] <guzzlefry> I did that.
309: [01:51:47] <guzzlefry> so
310: [01:51:49] <guzzlefry> " Provides a Formfield for saving a string of tags into either a many_many relationship or a text property. By default, tags are separated by whitespace. "
311: [01:51:55] <guzzlefry> That doesn't really sound like what I need?
312: [01:51:58] <Ryan-Toast> Pyromanik: <3 Cheers. I was calling RelationName::get() instead of $this->RelationName
313: [01:52:00] <Pyromanik> why not?
314: [01:52:19] <guzzlefry> Because I'm filtering by already existing cagetories/mediums.
315: [01:52:37] <Pyromanik> just because every fucking retard ever on the internets world wide is too fucking dumb to be able to have the brainpower to fart out tags in how they SHOULD work, doesn't mean you have to too.
316: [01:52:51] <Pyromanik> oh, everyone except who did freshmeat.net
317: [01:53:07] <Pyromanik> guzzlefry: and?
318: [01:53:44] <Pyromanik> wordderp worlds worst implmentation of tags ever.
319: [01:55:28] <guzzlefry> err
320: [01:55:34] <guzzlefry> seems like more work to reimplement it?
321: [01:55:43] <Pyromanik> reimplemnt what?
322: [01:55:53] <Pyromanik> why would you re-implement?
323: [01:56:27] <guzzlefry> Categories and Mediums are already implemented.
324: [01:57:14] <guzzlefry> maybe I didn't describe the situation fully. :/
325: [01:58:20] * zippy__ throws it on the ground!
326: [01:58:46] <guzzlefry> zippy__: staph!
327: [01:58:47] <antmas> zippy__: are you twerking?
328: [01:58:56] <guzzlefry> He must be.
329: [01:59:04] <Azure> Might as well paste what I said earlier on. (2 lines)
330: [01:59:05] <Azure> 1080: [18:23:13] <Azure> Error at framework/core/Object.php line 750: Uncaught Exception: Object->__call(): the method 'get_backend' does not exist on 'GDBackend'
331: [01:59:05] <Azure> 1081: [18:24:19] <Azure> In config.yml, I have 'Image' as a key, and 'backend' as a child key set to 'ImagickBackend'.
332: [01:59:33] <Azure> Not really sure why it's not working.
333: [02:01:45] <zippy__> guzzlefry: http://www.youtube.com/watch?v=gAYL5H46QnQ
334: [02:02:08] <guzzlefry> k, so product many_many (category and medium). I need to filter the ProductHolder's listing of those products by multiple values per each.
335: [02:02:28] <guzzlefry> I'm more concerned about how to handle that via the frontend.
336: [02:03:39] <zippy__> like a search form, with tick boxes for the different categories / mediums?
337: [02:04:20] <guzzlefry> yep
338: [02:05:06] <zippy__> The primary thing would be the categories, so that is how I would do my routes, then allow filtering by mediums - which might be a droplist which you could use to filter the onpage items with js
339: [02:05:33] <zippy__> but then a main search page with those checkboxes
340: [02:06:36] <guzzlefry> client also has silly requirements.
341: [02:06:54] <guzzlefry> in the comp it's a sidebar with two sets of checkboxes.
342: [02:07:00] <guzzlefry> no submit form :P
343: [02:07:22] <zippy__> comp?
344: [02:07:27] <guzzlefry> err
345: [02:07:30] <guzzlefry> mockup?
346: [02:07:37] <zippy__> rgr
347: [02:07:50] <zippy__> ajax search on click then?
348: [02:08:11] <guzzlefry> hm
349: [02:08:23] <guzzlefry> How well would that work with pagination though?
350: [02:08:32] <guzzlefry> maybe I'm overthinking again
351: [02:08:56] <guzzlefry> also
352: [02:09:03] <zippy__> heh i'd prbbaly cheat. show the first 50~ then say, More than 50 results show, narrow the search with the form above etc
353: [02:09:14] <guzzlefry> zippy__: http://www.youtube.com/watch?v=CEVdca9U9LM This is still my favorite video from them :P
354: [02:21:12] <spronk> ss23: wtf bitcoin?
355: [02:21:56] <ss23> lol
356: [02:22:00] <ss23> just a glitch
357: [02:22:02] <ss23> but still lulz
358: [02:23:22] * micmania1 has joined #silverstripe
359: [02:23:34] <antmas> hmmm
360: [02:25:30] <Ryan-Toast> My favourite of that kind of that genre: http://www.youtube.com/watch?v=f488uJAQgmw
361: [02:27:49] * micmania1 quit (Ping timeout: 248 seconds)
362: [02:28:08] <guzzlefry> Can you pass arrays through the URL params?
363: [02:29:15] <Colin[pi]> Ryan-Toast: rofl that was great
364: [02:30:05] <Ryan-Toast> Colin[pi]: "ÆØÅ all over your face" is such an excellent line.
365: [02:32:26] <Colin[pi]> what in the actual I don't even http://www.youtube.com/watch?v=tYTbfByIgE8
366: [02:32:54] <Pyromanik> guzzlefry: not urlparam. But getvars, yes.
367: [02:33:24] <Pyromanik> ÆØÅ u wut
368: [02:33:25] <Ryan-Toast> Colin[pi]: That weird part of youtube gain.
369: [02:34:33] <Pyromanik> Azure: you're not supposed to get backend?
370: [02:34:40] <Pyromanik> is probably why.
371: [02:34:58] <guzzlefry> Do getvars automagically get appened to links?
372: [02:35:02] <Azure> Then how am I supposed to switch from GD to Imagick?
373: [02:35:05] <Pyromanik> or is this purely caused by yml?
374: [02:35:18] * guzzlefry guesses not.
375: [02:35:27] <Azure> I tried in config.php and that didn't work either, so
376: [02:35:30] <Pyromanik> guzzlefry: not magically.
377: [02:35:45] <Pyromanik> you need to build them. Lucky for you Controller has some helper methods for that.
378: [02:36:01] <Pyromanik> Azure: you're not supposed to use config.php, in fact you cant'.
379: [02:36:24] <Pyromanik> Azure: pastie time I think!
380: [02:36:35] <Azure> _config.php(
381: [02:36:36] <Azure> *
382: [02:36:47] <Pyromanik> Azure: yeh, I know what you ment :)
383: [02:38:13] * liam_ has joined #silverstripe
384: [02:38:30] <liam_> hey what is the best way to convert a datalist to an array of ids?
385: [02:38:37] * liam_ is now known as Guest64860
386: [02:38:38] <Azure> http://pastie.org/8473533 YAML
387: [02:41:23] * trent001 has joined #silverstripe
388: [02:41:26] <Ryan-Toast> I swear adding classes to typography.css never adds them to the styles dropdown.
389: [02:43:30] <Pyromanik> Guest64860: liam_: array_keys($list->map()->toArray())
390: [02:43:52] <Pyromanik> Ryan-Toast: because tinymce is shitface.
391: [02:43:57] <Ryan-Toast> Pyromanik: Yup
392: [02:44:22] <Pyromanik> Ryan-Toast: it works, but your browser simply REFUSES to relenquish the old caches version, or some such nonsense.
393: [02:44:54] <Pyromanik> if you refresh furiously for about 40 mins you might get lucky.
394: [02:45:14] * trent001 quit (Remote host closed the connection)
395: [02:45:16] <Ryan-Toast> Ah, it works if I use incognito window ><
396: [02:45:35] <Ryan-Toast> CACHE, Y U NO LEAVE?
397: [02:46:25] <Pyromanik> Azure: can you paste the full stack trace of the error?
398: [02:46:35] <Pyromanik> Ryan-Toast: yeh, exactly :P
399: [02:47:21] <Azure> All that I seem to get is a sever error that uses the Simple theme's (supposedly) server error page (or is it the one that ships by default in /assets?)
400: [02:47:42] <Azure> I can check my logs in case since I have that set up in _config.php
401: [02:48:48] <spronk> YESYSYEYSYYES
402: [02:48:52] <spronk> my dead vm LIVES
403: [02:48:54] <spronk> thanks to manual grub boot
404: [02:49:53] <Pyromanik> Azure: there are no defaults. if you see a themed page (eg, simple) then it's an issue with your page. If you see a blue header and a stack trace, then you have an issue with your configuration.
405: [02:50:09] <Pyromanik> but it sounds like it's not an SS error, and you're calling get_backend somewhere where you shouldn't be.
406: [02:50:20] <Pyromanik> like perhaps in your decorator
407: [02:50:59] <Azure> It's just an unstyled page with what looks like static links to / and "My Site" instead of the site's name.
408: [02:51:03] <Azure> more or less
409: [02:51:07] <Azure> also the error that I get:
410: [02:51:10] <Azure> [11-Nov-2013 22:49:24] Error at framework/core/Object.php line 750: Uncaught Exception: Object->__call(): the method 'get_backend' does not exist on 'GDBackend' (http://localhost/~mark/eatonwebbp/photography/cross-border-challenge-2011/?flush=all&flushtoken=7193c09a726619db66964e025e340a4f)
411: [02:51:37] <Pyromanik> Azure: make sure your site is in dev mode.
412: [02:51:41] <Pyromanik> sounds like it's probably not.
413: [02:51:45] <Azure> It is.
414: [02:51:46] <ss23> https://pbs.twimg.com/media/BY1pPUICQAABsJo.jpg - NZ rules!
415: [02:52:12] <Azure> Also I am calling "get_backend" in my extension for a print that probably wouldn't have worked anyway.
416: [02:52:15] <Azure> Let's see
417: [02:52:16] <Pyromanik> ss23: complete rofl.
418: [02:52:36] <Pyromanik> Azure: you should never ever be calling get_backend at all.
419: [02:52:50] <Pyromanik> especially since all it does is return a string anyway.
420: [02:52:55] <Azure> ah, there we go.
421: [02:52:57] <Azure> Uncaught Exception: Object->__call(): the method 'blurimage' does not exist on 'GDBackend'
422: [02:53:11] <Pyromanik> did you dev/build yet?
423: [02:54:03] <Azure> Yeah, with ?flush=all
424: [02:54:20] <Azure> Then I went back to the page that was giving the server error with ?flush=all as well, and still am getting the error.
425: [02:54:21] <Pyromanik> also, you'll need to apply your decorator to your ImagickBackend to actually give it a blurimage function.
426: [02:54:46] <Pyromanik> your yaml extract doesn't have it.
427: [02:55:00] <Pyromanik> although it's also trying to load a gd backend.
428: [02:55:03] <Pyromanik> so ... hmm
429: [02:57:10] <Ryan-Toast> You can't reorder a gridField without SortableGridFields, right?
430: [02:57:12] <Pyromanik> arghf uck
431: [02:57:16] <Pyromanik> Azure: sorry
432: [02:57:34] <Pyromanik> the damn image derpy hasn't been updated to use config.
433: [02:57:45] <Pyromanik> https://github.com/silverstripe/silverstripe-framework/blob/3.1/model/Image.php#L461
434: [02:57:48] <Azure> Oh boy
435: [02:57:54] <Pyromanik> explicitly loads the static, rather than the config defined option.
436: [02:58:17] <Pyromanik> so yeah, use config.php and use Image::set_backend('ImagickBackend')
437: [02:58:25] <Colin[pi]> this is how I feel whenever a client settles their account: http://www.youtube.com/watch?v=s7mT4JR3Qr4
438: [02:58:37] <Pyromanik> then try again (no need to flush, config.php is read every time)
439: [03:00:07] <antmas> this is how I feel when a client asks me for a breakdown of hours worked http://www.youtube.com/watch?v=zfbK_dbsCu0
440: [03:00:35] <Pyromanik> Azure: or, if you feel like you're the man to fix it, then change the self::$backend to $this->config()->backend
441: [03:00:41] <Pyromanik> on that line I linked before
442: [03:00:45] <Pyromanik> and make a pull request
443: [03:00:52] <Ryan-Toast> antmas: http://i.imgur.com/siA7C.gif
444: [03:01:06] <antmas> Ryan-Toast: ROFL
445: [03:01:24] <Colin[pi]> lolk
446: [03:01:36] <spronk> :D
447: [03:01:41] <Ryan-Toast> antmas: ALT http://i.imgur.com/IvlVl.gif
448: [03:01:57] <Azure> Hm, it seemed to have worked... ish. I called croppedResize on the backend object and it didn't work. I would guess that it's not available in code?
449: [03:02:15] <Azure> or rather, the imagick backend
450: [03:02:23] <Pyromanik> Azure: well you're not supposed to call croppedresize on the backend object.
451: [03:02:31] <Pyromanik> call it on image.
452: [03:02:37] <Pyromanik> it'll return you an image.
453: [03:02:41] <Pyromanik> (object)
454: [03:02:51] <Pyromanik> when you can then call another image function on.
455: [03:03:34] <Pyromanik> although there's not really much reason why you couldn't - but it's repeating functionality.
456: [03:03:56] <Pyromanik> it's a design concern to not, rather than a functionality one.
457: [03:04:54] * Liquide has joined #silverstripe
458: [03:06:52] <Azure> So I should chain getFormattedImage methods in order to get what I want?
459: [03:06:58] <ss23> 4pm? TIME TO DEPLOY TO PRODUCTION :D
460: [03:07:31] * antmas is also deploying at 4pm
461: [03:07:43] <antmas> ... new header image to a static site :P
462: [03:08:31] <Pyromanik> Azure: seems easier, yep
463: [03:08:40] <Pyromanik> FFFFFFUUUUUUUUUUUUUUU
464: [03:08:46] <Pyromanik> that moment when you use a CMS
465: [03:08:48] <Pyromanik> err
466: [03:09:10] <Pyromanik> that moment when you use a CSS 'framework' because everyone says you need to and that it's awesome for speeding up development
467: [03:09:19] <Pyromanik> so then it takes twice as long as quoted
468: [03:09:44] <Pyromanik> and then find out that said framework defeats it's own purpose by NOT BEING CROSS BROWSER COMPATIBLE.
469: [03:10:01] <Pyromanik> goddamn hipsters.
470: [03:10:27] <antmas> lol at css frameworks
471: [03:10:29] <irogue23> ss23: lies, it's not 4pm on a *friday*
472: [03:10:49] <Pyromanik> Hi Zurb? yeah gidday, the internet calling, just wanted to let you know some people still use IE8.
473: [03:10:59] <Pyromanik> in fact
474: [03:11:08] <Pyromanik> a LOT of people still use IE8.
475: [03:11:17] <antmas> Pyromanik: yup
476: [03:11:35] <Pyromanik> because business machines are seen as a cost, not an investment, so no one ever upgrades them while they're still working.
477: [03:11:46] <ss23> lol irogue23
478: [03:12:12] <Pyromanik> irogue23: friday is a holiday!
479: [03:13:21] <irogue23> Pyromanik: only for you :P
480: [03:15:12] <Pyromanik> irogue23: lies! everyone!
481: [03:15:24] <Pyromanik> like, a whole city of everyone at least!
482: [03:15:39] <Pyromanik> probably even most of a proverence!
483: [03:15:41] <Azure> http://pastie.org/8473565 I am probably doing something quite wrong, again.
484: [03:16:22] <Pyromanik> Azure: you can just call $this->owner->CroppedImage($w, $h)
485: [03:16:31] <Pyromanik> but, what you have should probably still work
486: [03:16:46] * Stomach quit ()
487: [03:17:11] <Pyromanik> Azure: you need to give us an error!
488: [03:17:24] <Azure> I don't see an error.
489: [03:17:28] <Azure> It just doesn't output anything.
490: [03:17:49] <Azure> Then again, it probably popped up in my logs.
491: [03:17:52] <Pyromanik> There's an error.
492: [03:18:13] <Pyromanik> sounds like you have display_errors off
493: [03:18:19] <Azure> ah.
494: [03:18:19] <Azure> Image::generateFormattedImage - Image croppedResize public function not found.
495: [03:18:28] <Pyromanik> handy to have it on if you're in a dev environment!
496: [03:18:33] <ss23> guis
497: [03:18:41] <ss23> whats the code for "make sure you use SSL pages when logged in and on log in pages"?
498: [03:19:05] <Pyromanik> ss23: Director::forceSSL()
499: [03:20:59] <ss23> Pyromanik: Yes, I know about that, but where?
500: [03:21:12] <ss23> Needs to be for all log in pages and pages while logged in
501: [03:21:57] <Pyromanik> config.php!
502: [03:22:37] <ss23> Pyromanik: And what, parse the URL there to find out of we need to redirect? :P
503: [03:22:42] <ss23> Seems shitty solution, that's why I'm asking
504: [03:23:14] <Pyromanik> nah, just do it.
505: [03:23:24] <Pyromanik> what is harm of having entire site in ssl?
506: [03:23:44] <Pyromanik> removes confusion issues with protocols
507: [03:23:48] <irogue23> ss23: fwiw i'm using Director::forceSSL(array('/^admin/', '/^Security/', '/^chip/'));
508: [03:24:10] <Pyromanik> and risk of derpy derp insecure content or whatever
509: [03:24:20] <irogue23> chip is my logged-in section
510: [03:24:34] <Pyromanik> zomg, it takes params!?
511: [03:24:44] <irogue23> yup, array of url patters
512: [03:24:48] <irogue23> *patterns
513: [03:24:49] <ss23> Yeah, saw that, irogue23, works okay, will just add another thing for when you're logged in
514: [03:25:04] * mirrors quit (Quit: Page closed)
515: [03:25:33] <Pyromanik> Azure: fixed?
516: [03:26:07] <Pyromanik> Azure: also, use generateFormattedImage, rather than getFormattedImage, that way you make use of cache instead of generating every time.
517: [03:26:19] <antmas> anyone here have Sennheiser hd 555s?
518: [03:26:20] <Azure> Apparently I had display_errors off. I blame the default ini file that was used.
519: [03:26:45] <antmas> or even 558s?
520: [03:28:39] <antmas> I guess not :P
521: [03:29:33] * irogue23 has logitech g930s cos wanted wireless with mic and not rich enough for the $900 or so that sennheiser wants for that
522: [03:30:00] <ss23> >wireless
523: [03:30:02] <ss23> lol.
524: [03:30:05] * spronk has HD600s
525: [03:30:26] <spronk> yeah irogue23
526: [03:30:33] <spronk> just run over your cable with chair wheel like the rest of us!
527: [03:30:37] <antmas> http://www.lifehacker.com.au/2013/11/upgrade-a-pair-of-mid-range-headphones-to-an-audiophile-worthy-pair/
528: [03:30:37] * Colin[pi] has HD212s
529: [03:30:38] <ss23> lol
530: [03:30:47] <antmas> should work with any decent Sennheiser swet
531: [03:30:49] <antmas> set*
532: [03:30:52] <irogue23> ss23: gotta be able to go to the beer fridge or piss :P
533: [03:31:26] <spronk> oh
534: [03:31:27] <spronk> the 595 mod
535: [03:31:28] <spronk> mm
536: [03:31:35] <irogue23> and don't wanna miss out on any of the convo in teamspeak :P
537: [03:31:43] <spronk> lawl
538: [03:31:50] <antmas> heh
539: [03:32:06] <antmas> it had a huge difference to my Senn's
540: [03:32:18] <Azure> Also, since I'm doing multiple operations on the image (and wish for them to be applied in order), generateFormattedImage might not be the way to go come to think of it.
541: [03:38:02] * antmas quit (Quit: Page closed)
542: [03:43:53] <Colin[pi]> another new itunes applke
543: [03:43:57] <Colin[pi]> seriously?
544: [03:44:04] <Colin[pi]> that's like 5 in a week
545: [03:44:34] <ss23> 100mb or some shittoo
546: [03:48:31] * DigNZ quit (Quit: DigNZ)
547: [03:50:23] <Pyromanik> hmm, hfriedlander's entwine presentation was much briefer than I'd thought.
548: [03:50:47] <ss23> hamish fried land eggser
549: [03:50:58] <Pyromanik> andylockran: I have 555s
550: [03:51:16] <Pyromanik> good sound, but open back.
551: [03:51:24] <Pyromanik> and build quiality... could be better.
552: [03:52:24] <Pyromanik> oh, there's a mod?
553: [03:52:25] <Pyromanik> hmm
554: [03:53:07] * Guest64860 quit (Quit: Guest64860)
555: [03:53:13] * coldblooded01 quit (Quit: coldblooded01)
556: [03:55:06] <Pyromanik> hmm, seems like I probably already have 595s
557: [03:55:35] * DigNZ has joined #silverstripe
558: [03:55:55] <Pyromanik> is there a mod to stop the fucking struts from splitting apart?
559: [03:56:15] <Pyromanik> pulled mine apart so many times to shove superglue in there :<
560: [03:56:30] * DigNZ quit (Client Quit)
561: [03:56:37] <Pyromanik> urgh how the fuck is it STILL not 5pm?
562: [03:59:59] <Pyromanik> ...
563: [04:00:03] <Pyromanik> Finally!
564: [04:00:05] * Pyromanik quit (Quit: leaving)
565: [04:00:30] <ss23> lol
566: [04:00:37] <Colin[pi]> I have two hours yet :(
567: [04:00:43] <guzzlefry> Is anyone here familiar with authorize.net?
568: [04:00:50] <ss23> I'll stay here for a while I guess :P
569: [04:01:09] <Colin[pi]> to make up for yesty?
570: [04:01:37] * guzzlefry giggles and runs away.
571: [04:01:47] <EasyCo> Haha, now that a punctual exit.
572: [04:01:51] <ss23> lol
573: [04:02:03] <ss23> Well I don't start till 10am anyway :P
574: [04:02:10] <Colin[pi]> wat
575: [04:02:13] <Colin[pi]> lazy prick
576: [04:02:30] <ss23> :D
577: [04:02:39] <ss23> I actually started 7:30am this morning, since I had to do a release
578: [04:02:42] <ss23> WHAT TIME DID YOU START?
579: [04:02:50] <Colin[pi]> 6am
580: [04:02:53] <ss23> Liar.
581: [04:02:54] <ss23> :P
582: [04:03:00] <ss23> I said start, not wake up
583: [04:03:02] <Colin[pi]> well I was awake at 6am ;P
584: [04:03:14] <Colin[pi]> actually I started at 7:30am I think
585: [04:05:35] <Colin[pi]> ugh you think when I want to replicate an error, I can? nooo
586: [04:05:44] <ss23> lol
587: [04:06:01] <Colin[pi]> comes up like every time until I go to fix it, now it's like troll facing me
588: [04:07:32] <Colin[pi]> there we go FINALLY
589: [04:13:04] * Ryan-Toast quit (Quit: Ryan-Toast)
590: [04:14:43] <Azure> I still cannot figure out how to actually manipulate the image multiple times before actually saving/caching it.
591: [04:16:43] <EasyCo> I'm assuming you're doing it in onBeforeWrite()?
592: [04:17:49] <Azure> Nope, all that I have right now is an extension that's applied to Image
593: [04:18:50] <Azure> Pretty much what I want to be able to do is call a method in my template on an image that would run a bunch of ImageMagick commands on it before returning it.
594: [04:20:48] <Azure> Maybe I should try revisiting creating custom generateX methods in my extension.
595: [04:27:12] <EasyCo> How would the method get the reference to the image?
596: [04:27:46] * Jakx has joined #silverstripe
597: [04:28:07] <Jakx> yo
598: [04:29:03] <Jakx> I have a method at $Top.MyMethod, and I run it from the template inside a loop. The method returns a random value, but the template renders the same value for every item in the loop
599: [04:29:26] <Jakx> Is there a cache involved or something?
600: [04:29:50] <Jakx> (The returned value changes on each page load)
601: [04:36:45] <Azure> EasyCo: I would guess calling getFormattedImage('MyMethod', arg1, arg2) would then call generateMyMethod(backend, arg1, arg2)
602: [04:37:42] * Jakx has left #silverstripe
603: [04:38:26] <Azure> What I currently have gives off "Fatal error: Call to a member function writeTo() on a non-object": http://pastie.org/8473680
604: [04:41:07] * travis-ci has joined #silverstripe
605: [04:41:07] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1531 (3.1 - ad52cc2 : Sean Harvey): The build passed.
606: [04:41:07] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/7ace63149924...ad52cc20c1e0
607: [04:41:08] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13840675
608: [04:41:08] * travis-ci has left #silverstripe
609: [04:41:20] <EasyCo> Azure: What method is your template calling?
610: [04:41:41] <Azure> $PhotoGalleryImages.First.Image.ArtDirectionBanner(1920,600)
611: [04:41:52] * UncleCheese_ has joined #silverstripe
612: [04:42:36] * UncleCheese quit (Ping timeout: 260 seconds)
613: [04:42:36] * UncleCheese_ is now known as UncleCheese
614: [04:43:28] <EasyCo> And that's extending Image?
615: [04:43:39] * cloph_away has joined #silverstripe
616: [04:43:42] * cloph quit (Ping timeout: 244 seconds)
617: [04:43:51] <Azure> Yes.
618: [04:44:12] <Azure> Image: | extensions: | - 'BannerImageExtension'
619: [04:44:30] <EasyCo> And the ArtDirectionBanner() is actually getting called?
620: [04:44:57] <Azure> Yeah, I even tested with just plain cropresize before.
621: [04:45:29] <EasyCo> and it worked?
622: [04:45:34] <Azure> Yeah
623: [04:45:42] <Azure> I think. Let me check again.
624: [04:45:52] <ss23> gargshadgh
625: [04:45:57] <ss23> Member::currentUserID() returning 0 even when logged in.
626: [04:46:06] <EasyCo> Why are you sending the string 'ArtDirectionBanner' as the format?
627: [04:47:36] <EasyCo> Sorry I was thinking getFormattedImage
628: [04:49:57] <spronk> ugfh
629: [04:50:03] <spronk> i am getting really sick of xdebug ignoring breakpoints
630: [04:50:59] <Azure> Ah, yeah.
631: [04:51:05] <Azure> $this->owner->CroppedImage(300,300) was it
632: [04:52:11] * UncleCheese quit (Quit: UncleCheese)
633: [04:54:21] * EasyCo quit (Ping timeout: 246 seconds)
634: [04:55:26] <ss23> blargh
635: [04:56:02] <Azure> Ah, there we go.
636: [04:56:42] * EasyCo has joined #silverstripe
637: [05:03:37] <ss23> Can you not hook init() in a DataExtension?
638: [05:05:26] <ss23> eh, __construct it is
639: [05:11:49] * openbees has joined #silverstripe
640: [05:18:40] <guzzlefry> ss23: Aren't there some hooks for before and after?
641: [05:18:43] <guzzlefry> stuff...
642: [05:19:09] <ss23> lol
643: [05:19:17] <ss23> __construct is fine :P
644: [05:19:28] <ss23> I couldn't do it in _config since sessions weren't finished yet
645: [05:21:35] * liam_ has joined #silverstripe
646: [05:21:58] * liam_ is now known as Guest90414
647: [05:26:16] <Colin[pi]> wow a client that has a nice logo, that's refreshing
648: [05:28:35] * openbees quit (Quit: Leaving)
649: [05:30:27] <ss23> lol
650: [05:30:28] <ss23> lucky
651: [05:30:34] <ss23> This site I'm working on, favicon is default SS one
652: [05:30:34] <ss23> :(
653: [05:31:37] <Colin[pi]> haha
654: [05:33:46] * willr has joined #silverstripe
655: [05:34:51] <Azure> https://dl.dropboxusercontent.com/u/9143628/screenshots/Screen%20Shot%202013-11-12%20at%201.32.40%20AM.png Success!
656: [05:36:51] * ajshort has joined #silverstripe
657: [05:38:12] * Guest90414 has left #silverstripe
658: [05:56:02] * willr quit (Quit: willr)
659: [05:59:48] * Nimle has joined #silverstripe
660: [06:00:43] <Nimle> Hi guys, does anyone know how to set "like" condition in filter for get in dataobject?
661: [06:05:02] <ajshort> ->filter('Field:PartialMatch', 'value')
662: [06:06:36] <Nimle> Thanks. this also worked. get()->where("\"Type\" like 'Product Feature'")
663: [06:06:53] <ajshort> yeah
664: [06:06:56] <ajshort> don't do that if you can avoid it
665: [06:07:06] <Nimle> ok
666: [06:07:09] <Nimle> thank you
667: [06:12:41] * Shrike_Finland quit (Quit: Leaving.)
668: [06:19:33] * violet- quit (Remote host closed the connection)
669: [06:38:49] * Shrike_Finland has joined #silverstripe
670: [06:52:47] * Nimle quit (Ping timeout: 250 seconds)
671: [06:57:08] * willr has joined #silverstripe
672: [07:01:43] * Liquide quit ()
673: [07:13:43] * SightUnseen has joined #silverstripe
674: [07:14:16] * SightUnseen has left #silverstripe
675: [07:21:37] <guzzlefry> hrm
676: [07:21:39] <guzzlefry> <% require themedCSS("jquery-ui.css") %>
677: [07:21:43] <guzzlefry> Anything wrong with this?
678: [07:23:27] <guzzlefry> oh
679: [07:23:37] <guzzlefry> no suffix
680: [07:43:09] * hubertusanton has joined #silverstripe
681: [08:03:06] * C10ne has joined #silverstripe
682: [08:36:06] * openbees has joined #silverstripe
683: [08:38:07] * zfmf has joined #silverstripe
684: [08:50:22] * EasyCo quit (Quit: EasyCo)
685: [08:56:01] * openbees quit (Quit: Leaving)
686: [09:05:54] * Sjohn has joined #silverstripe
687: [09:06:38] <Sjohn> Hey,
688: [09:08:57] <Sjohn> I want to add a line of code in the template when the userdefined form is "Finished". I tried a couple of things like: <% If URLSegment = finished %> and <% if finished %> but they dont seem to work. *(using 2.4 silverstripe)
689: [09:09:10] <Sjohn> Any1 got ideas on this?
690: [09:15:59] * kinglozzer has joined #silverstripe
691: [09:19:53] <Sjohn> nvm that, just put the code in the recievedfromsubmission.ss
692: [09:28:44] * ARNHOE has joined #silverstripe
693: [09:43:47] * zippy__ quit (Quit: Leaving)
694: [09:54:22] * willr quit (Quit: willr)
695: [09:59:39] * willmorgan has joined #silverstripe
696: [10:05:52] * ajshort has joined #silverstripe
697: [10:09:05] * Sjohn quit ()
698: [10:09:12] * Colin[pi] quit (Ping timeout: 244 seconds)
699: [10:10:51] * ajshort quit (Ping timeout: 272 seconds)
700: [10:19:55] * Shrike_Finland quit (Quit: Leaving.)
701: [10:36:40] * micmania1 has joined #silverstripe
702: [10:57:43] <kinglozzer> Uhhh, >130 images to resample per request...
703: [10:57:45] * kinglozzer cries
704: [11:53:00] <willmorgan> kinglozzer what are you doing?
705: [11:53:01] <willmorgan> imgur 2.0?
706: [11:55:49] <kinglozzer> Haha no, 360 panoramic images
707: [11:56:14] <kinglozzer> Loaded from an S3 bucket too, just for extra slooooow
708: [11:56:33] * chillu has joined #silverstripe
709: [12:02:04] <willmorgan> are you using some sort of remoteupload class?
710: [12:07:34] <kinglozzer> willmorgan: Nah, thankfully we don't need to upload, just download - cURLing them
711: [12:07:52] <willmorgan> yeah
712: [12:08:15] <willmorgan> i've got a 3.1 class that grabs remote images for resizing and then stores them locally
713: [12:08:20] <willmorgan> i think i'm extending Image_Cached or something
714: [12:09:48] <kinglozzer> Ah awesome, I just extended Image and overloaded generateFormattedImage() (and one or two other methods)
715: [12:09:55] <willmorgan> to go and cURL them?
716: [12:10:18] <kinglozzer> And added the '_lock' thing that was discussed on the mailing list
717: [12:10:30] <willmorgan> ah, this all makes sense now
718: [12:14:12] * Colin[pi] has joined #silverstripe
719: [12:14:15] <marvanni> any experience with codeigniter? If yes can you say something how it compares with SS framework (without cms)
720: [12:24:35] * Colin[pi] quit (Ping timeout: 252 seconds)
721: [13:11:08] * UndefinedOffset has joined #silverstripe
722: [13:25:40] * r3v3rb has joined #silverstripe
723: [13:25:54] <r3v3rb> afternoon
724: [13:26:42] <r3v3rb> using the ->filter ( array ( ) ) format how can I filter not NULL fields?
725: [13:27:46] <r3v3rb> lets say my field is 'Started' and its in date format - I want to find all entries that have a record - the rest of them are structured in the DB as NULL entries
726: [13:28:18] <r3v3rb> 'Started:negation:not' seems to me to be the likely candidate?
727: [13:28:48] <r3v3rb> As Started:negation would get me the nulls so :not that to get the non null?
728: [13:46:54] <r3v3rb> actually I fixed it its just Started:Negation => 'NULL' :D
729: [13:54:45] * C10ne quit (Quit: Page closed)
730: [13:58:38] <UndefinedOffset> afternoon? man I still haven't finished my morning coffee :P. Must make note of that, I've been using ->where() for stuff like that :P
731: [14:18:38] * svandragt has joined #silverstripe
732: [14:25:07] * chillu quit (Quit: chillu)
733: [14:28:02] * chillu has joined #silverstripe
734: [14:39:07] * jrthomer quit (Remote host closed the connection)
735: [14:52:03] * r3v3rb quit (Quit: r3v3rb)
736: [15:05:30] * spronk2 quit (Quit: spronk2)
737: [15:37:01] * zlincoln has joined #silverstripe
738: [15:38:42] <zlincoln> with Form::saveInto() is there already security baked in? Or should I add precautions in onBeforeWrite?
739: [15:42:10] <zlincoln> actually, i can see there is: http://doc.silverstripe.com/framework/en/3.0/topics/security
740: [15:48:49] * zlincoln quit (Ping timeout: 250 seconds)
741: [16:00:08] * Colin[pi] has joined #silverstripe
742: [16:11:24] * zfmf has left #silverstripe
743: [16:13:21] * Bollig|DesignCty quit (Ping timeout: 246 seconds)
744: [16:18:11] * ARNHOE quit ()
745: [16:18:52] * Shrike_Finland has joined #silverstripe
746: [16:22:27] * hubertusanton quit (Ping timeout: 252 seconds)
747: [16:53:15] * violetina has joined #silverstripe
748: [17:01:24] * svandragt quit (Read error: Connection reset by peer)
749: [17:07:42] * kinglozzer quit ()
750: [17:29:18] * nh_ has joined #silverstripe
751: [17:30:22] * gelignite has joined #silverstripe
752: [17:46:20] * SightUnseen has joined #silverstripe
753: [17:49:34] * SightUnseen has left #silverstripe
754: [17:52:45] * willmorgan quit (Ping timeout: 252 seconds)
755: [17:57:24] * Alexwijn has joined #silverstripe
756: [17:57:45] <Azure> So, I have a number of javascript files that I wish to require in a couple of page types. The files in each would be the same. The page types that I want to require in are in modules.
757: [17:57:45] <Azure> I also have a script tag that I need to insert at the bottom of each page, and the required javascript files need to be in <head>.
758: [17:58:35] <Azure> From what I understand, Silverstripe places javascript requires above the last <script></script> tag in <body> if it exists, which would be quite a problem since the scripts themselves cannot be loaded after the rest of the page.
759: [17:59:52] <nh_> Azure: you can use Requirements::insertHeadTags()
760: [18:02:10] <Azure> Aah.
761: [18:03:24] <Azure> Alright. So I could just call that in my individual templates?
762: [18:03:44] <Alexwijn> Hi, my customer bought the following theme (I know it is for Wordpress) but I would like to get advice what the best way is make a page so customizable that you can set the amount of columns
763: [18:03:48] <Alexwijn> So you have blocks
764: [18:03:52] <Alexwijn> Is there a module for this?
765: [18:04:00] <Alexwijn> (http://www.kriesi.at/themes/enfold/pages/services/)
766: [18:04:27] * nh_ quit (Ping timeout: 250 seconds)
767: [18:06:59] * nh_ has joined #silverstripe
768: [18:09:59] <nh_> Azure: not sure if that's a valid template call, I've done it in the controller init(). I've used onAfterInit() in extensions as well, not sure that would load your resourced in the right order though.
769: [18:12:01] <Azure> Well, I did call in my overridden page template at the top <% control insertHeadTags %>(my HTML)<% control %> and then in my main Page.ss template $CustomHeadTags
770: [18:12:05] <Azure> It appeared to have worked.
771: [18:14:40] <Azure> hm, or not
772: [18:15:49] <Azure> It inserts the tags as is at the top of the page template where $layout is called.
773: [18:32:57] <Alexwijn> Does nobody got any suggestion?
774: [18:59:55] <Azure> hm... Trying extensions. For extending a pagetype controller, I would have to set the pagetype's extension to the extension's name, and have a class in the extension called <pagetype>extension_controller?
775: [19:00:25] * travis-ci has joined #silverstripe
776: [19:00:25] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#652 (tmp-3.1.2 - e2fa3b7 : Ingo Schommer): The build passed.
777: [19:00:25] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/tmp-3.1.2
778: [19:00:26] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/13872066
779: [19:00:26] * travis-ci has left #silverstripe
780: [19:02:47] <Azure> http://pastie.org/8475505
781: [19:02:58] <Azure> (the extension)
782: [19:05:33] * travis-ci has joined #silverstripe
783: [19:05:33] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1535 (tmp-3.1.2 - 054b35d : Ingo Schommer): The build has errored.
784: [19:05:33] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/008bd978288c...054b35ded767
785: [19:05:34] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13872113
786: [19:05:34] * travis-ci has left #silverstripe
787: [19:07:05] * simon_w changed the topic to 'Welcome to #silverstripe | Congratulations sminnee and escapeartist! | IRC Logs: http://ss.org.nz/logs | Dev Mailing List: http://ss.org.nz/ss-dev | Latest stable release: http://ss.org.nz/3.1.2 | Release Archive: http://www.silverstripe.org/release-archive/'
788: [19:07:54] * zfmf has joined #silverstripe
789: [19:13:00] * travis-ci has joined #silverstripe
790: [19:13:00] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1534 (tmp-3.1.2 - 008bd97 : Ingo Schommer): The build has errored.
791: [19:13:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/tmp-3.1.2
792: [19:13:01] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13872073
793: [19:13:01] * travis-ci has left #silverstripe
794: [19:21:27] * chillu quit (Quit: chillu)
795: [19:30:57] * travis-ci has joined #silverstripe
796: [19:30:57] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#653 (3.1.2 - e2fa3b7 : Ingo Schommer): The build passed.
797: [19:30:57] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/3.1.2
798: [19:30:57] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/13872138
799: [19:30:57] * travis-ci has left #silverstripe
800: [19:31:47] * Ryan-Toast has joined #silverstripe
801: [19:32:52] * chillu has joined #silverstripe
802: [19:33:25] * travis-ci has joined #silverstripe
803: [19:33:25] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1536 (3.1.2 - 054b35d : Ingo Schommer): The build passed.
804: [19:33:25] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/3.1.2
805: [19:33:26] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13872120
806: [19:33:26] * travis-ci has left #silverstripe
807: [19:41:46] * DigNZ has joined #silverstripe
808: [19:50:33] * EasyCo has joined #silverstripe
809: [19:51:33] * Pyromanik has joined #silverstripe
810: [19:52:50] * travis-ci has joined #silverstripe
811: [19:52:50] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1538 (3.1 - dbf0514 : Ingo Schommer): The build passed.
812: [19:52:50] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/204dc9e7e2c4...dbf051483772
813: [19:52:50] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13873318
814: [19:52:50] * travis-ci has left #silverstripe
815: [20:04:43] * UncleCheese has joined #silverstripe
816: [20:05:23] <Pyromanik> Fuck.
817: [20:05:45] <Pyromanik> Spent all morning rushing around getting shit together for a pot luck team lunch barbeque
818: [20:05:48] <Pyromanik> get to work late
819: [20:05:53] <Pyromanik> find out it's tomorrow.
820: [20:06:07] <Shrike_Finland> Does anyone know, is there some problems between 3.1.1 and fluent-addon?
821: [20:06:09] <Pyromanik> Capital F Fuck.
822: [20:06:25] <Pyromanik> Shrike_Finland: probably shouldn't be, since fluent is made for 3.1
823: [20:06:49] <Pyromanik> Shrike_Finland: a better question would be to ask if anyone has had <this> problem (describe your issue)
824: [20:06:53] <Shrike_Finland> JS isn't changing language on admin side. Very weird.
825: [20:07:21] <Pyromanik> admin isn't supposed to change languages?
826: [20:07:34] <Shrike_Finland> Pyromanik: I was a bit late with my description :P
827: [20:07:38] <Pyromanik> :P
828: [20:07:51] <Pyromanik> but yeh, even with translatable the admin ui doesn't change language.
829: [20:08:00] <Pyromanik> that's set per member anyway
830: [20:08:18] <Shrike_Finland> Pyromanik: There is this green button, where to select language, but it does not do anything.
831: [20:09:03] * wracu has joined #silverstripe
832: [20:09:26] <Shrike_Finland> Pyromanik: Every available languages are displyed there, but selecting language does not trigger anything
833: [20:10:33] <Shrike_Finland> With two other installations (both in localhost, btw) and 3.1, it works like it should…
834: [20:10:40] <Pyromanik> Shrike_Finland: can you supply a screenshot?
835: [20:11:03] <Shrike_Finland> Tomorrow, yes
836: [20:11:41] <Pyromanik> Shrike_Finland: try changing page or something after selecting a language?
837: [20:15:45] * EasyCo quit (Ping timeout: 252 seconds)
838: [20:16:25] * EasyCo has joined #silverstripe
839: [20:17:12] * SightUnseen has joined #silverstripe
840: [20:17:15] * SightUnseen has left #silverstripe
841: [20:24:21] * willmorgan has joined #silverstripe
842: [20:28:35] * UncleCheese quit (Quit: UncleCheese)
843: [20:35:17] * UncleCheese has joined #silverstripe
844: [20:37:05] * Alexwijn quit ()
845: [20:40:07] <EasyCo> Can you not just create a $many_many to Image? I thought ModelAdmin would create the grid field (which it does) and the UploadField when you click on Add a new image
846: [20:41:31] * wilr_ has joined #silverstripe
847: [20:41:37] * marvanni quit ()
848: [20:45:26] * harnisch has joined #silverstripe
849: [20:46:31] <Pyromanik> EasyCo: yep, you can.
850: [20:46:42] <EasyCo> I thought so
851: [20:46:50] <Pyromanik> but no, it won't make a new UploadField when you click add.
852: [20:46:57] <EasyCo> Oh
853: [20:46:58] * waynisch has joined #silverstripe
854: [20:47:08] <EasyCo> What's the approach then?
855: [20:47:17] <Pyromanik> You'll need to make a custom widget.
856: [20:47:22] <Pyromanik> or
857: [20:47:30] * harnisch quit (Client Quit)
858: [20:47:32] <EasyCo> extend image?
859: [20:47:39] <Pyromanik> just use uploadfield, it supports many_many
860: [20:47:47] <Pyromanik> why is it in modeladmin?
861: [20:47:48] * harnisch has joined #silverstripe
862: [20:47:53] * harnisch quit (Client Quit)
863: [20:48:06] <EasyCo> Because it's unrelated to any one page in particular
864: [20:48:18] <waynisch> http://www.varikosis.org
865: [20:48:18] <Pyromanik> EasyCo: the 'standard' way to do what I think you're trying to do is have an intermediary object.
866: [20:48:34] <Pyromanik> oh sweet, spam bots :<
867: [20:48:39] <waynisch> :D
868: [20:48:46] <waynisch> very sweet
869: [20:48:46] <EasyCo> Pyromanik: Ok, yah so like 'Interm' => 'Image'
870: [20:49:00] <Pyromanik> EasyCo: no
871: [20:49:02] <Pyromanik> like
872: [20:49:03] <EasyCo> and have my uploadfield on Iterm?
873: [20:49:13] * waynisch quit (Client Quit)
874: [20:49:19] <Pyromanik> "AllDemImages" => "ImageHolderyThingy"
875: [20:49:44] <Pyromanik> ImageHolderyThingy extends DataObject has_many(Page) has_one(Image)
876: [20:49:52] <Pyromanik> or many_many Page, I guess.
877: [20:50:18] <Pyromanik> EasyCo: no, because iterm would still be an image.
878: [20:50:34] <Pyromanik> also
879: [20:50:43] <EasyCo> Yah but then at least I'd be able to modify its $fields
880: [20:50:47] <Pyromanik> you could just NOT have a model admin
881: [20:50:50] <Pyromanik> since they're images
882: [20:51:06] <Pyromanik> and that's pretty much the exact reason for the very reason of the "Files and Images" tab.
883: [20:51:39] <Pyromanik> and just use an UploadField, and make people "select existing" rather than "from my computer"
884: [20:51:44] <EasyCo> Yah I suppose I could just put it on the homepage really
885: [20:51:51] <Pyromanik> or not
886: [20:51:57] <Pyromanik> I don't think you're understanding here
887: [20:52:25] <Pyromanik> Image isn't related to anything, nor should it be (well, excepting a Folder)
888: [20:52:42] <Pyromanik> you can many_many to image. That's fine.
889: [20:52:58] <Pyromanik> and just use an UploadField on your various many pages.
890: [20:53:06] <Pyromanik> UploadField will let people attach many images.
891: [20:53:16] <Pyromanik> and it will let them choose from existing ones.
892: [20:53:36] <Pyromanik> as opposed to reinventing the wheel trying to have a modeladmin for all your images.
893: [20:53:48] <Pyromanik> that's what AssetAdmin is for! :D
894: [20:54:14] <Pyromanik> If you need extra details on your images, then you could either use many_many_extraFields
895: [20:54:26] <Pyromanik> Or you'll have to go creating an intermediary object.
896: [20:55:17] <Pyromanik> like this: https://github.com/purplespider/silverstripe-basic-galleries/tree/master/code
897: [20:55:41] <Pyromanik> well, bad example.
898: [20:55:56] <Pyromanik> that guy has no idea about modules :<
899: [20:56:23] <Pyromanik> kinda more like this: https://github.com/andrewhoule/silverstripe-photogallery/blob/master/code/PhotoItem.php
900: [20:56:29] <EasyCo> So correct me if I'm wrong. Say I add "Background" to my $managed_models in ModelAdmin. Background has a $many_many = array('Backgrounds' => 'Image'); What happens automatically is a gridfield is created to represent the many many. When you click on `Add Backgrounds` it's essentially loading the Image class and whatever getCMSFields() returns?
901: [20:56:49] <EasyCo> I'm not going the modeladmin route btw, just trying to understand
902: [20:57:31] <Pyromanik> it'll try to load the Image class, which isn't supposed to be user facing. It's more... 'pure' than say a Page.
903: [20:57:44] <EasyCo> Yah, gotcha
904: [20:57:48] <Pyromanik> it doesn't have getCMSFields
905: [20:58:01] <Pyromanik> so gridfield probably just falls over.
906: [20:58:32] <EasyCo> Sure it does
907: [20:59:00] <Pyromanik> so what you do instead is have class BackgroundImage extends DataObject
908: [20:59:10] <EasyCo> http://api.silverstripe.org/3.1/class-Image.html#_getCMSFields
909: [20:59:34] <EasyCo> Pyromanik: Yah ok, cool. That confirmed what I thought
910: [20:59:39] <Pyromanik> private static has_one = array( 'Page' => 'Page', 'Image' => 'Image' );
911: [20:59:56] <Pyromanik> so your page has_many BackgroundImage instead of Image
912: [21:00:26] <EasyCo> Then I can add the UploadField there
913: [21:00:28] <Pyromanik> and it'll display the fields from that rather than whatever an image tries to do
914: [21:00:31] <Pyromanik> and yeh
915: [21:00:48] <EasyCo> You also just reminded me that I need to use private now
916: [21:00:50] <Pyromanik> now, the tricky part comes with the fact that it's a real pain in the ringpiece to do bulk uploads.
917: [21:01:00] <EasyCo> Used to 3.0 where public is the norm
918: [21:01:21] <Pyromanik> but that's cool, because this chap solved it for us
919: [21:01:24] <Pyromanik> http://addons.silverstripe.org/add-ons/colymba/gridfield-bulk-editing-tools
920: [21:01:49] <Pyromanik> so yeh
921: [21:01:55] <Pyromanik> that's the "normal" way of doing things
922: [21:02:07] <Pyromanik> there are other wee tricks and hacks you can do
923: [21:02:28] <Pyromanik> eg, see http://addons.silverstripe.org/add-ons/frankmullenger/gallery
924: [21:02:44] <EasyCo> Thanks for the help & chat, bbl
925: [21:02:55] <Pyromanik> but I don't think them so ... 'clean'.
926: [21:02:59] <Pyromanik> :()
927: [21:03:02] <Pyromanik> err :)
928: [21:04:55] * EasyCo quit (Quit: EasyCo)
929: [21:07:39] * zippy__ has joined #silverstripe
930: [21:07:56] <zippy__> damn slow ass macbook air…..
931: [21:12:44] <Pyromanik> Hmm, seems easyco might have been right.
932: [21:13:17] <Pyromanik> File is awefully tightly coupled to image, which is just... blergh, but it does generate an uploadfield.
933: [21:13:30] <Pyromanik> splinteresting!
934: [21:20:27] * UndefinedOffset quit (Quit: Leaving.)
935: [21:21:25] <pippy> why do hidden fields inside getCMSfields() not get written to the page object?
936: [21:22:21] <pippy> I tried writing setting them on the onBeforeWrite(), but if the user saves as draft they seem to write random values
937: [21:26:03] <unsigned_> hey does anyone know how to get a populated object from a $many_many relation outside of one of the data objects. eg I have many Vehicle objects that have many Accessory objects (the same accessory can be on many vehicles and a vehicle can have many accessories). I store some extraFields on the many_many relation table since different combinations have different prices and part numbers. From a piece of code outside both of the
938: [21:26:04] <unsigned_> objects (I know both the vehicle ID and accessory ID), how can I get an Accessory object that is populated with the correct price and part number?
939: [21:26:11] * unsigned_ is now known as unsignedint
940: [21:36:01] <unsignedint> actually I figured it out. Vehicle::get()->byId($vehicle_id)->getManyManyComponents("AccessoryItems")->byId($accessory_id)
941: [21:38:02] * EasyCo has joined #silverstripe
942: [21:43:25] <Pyromanik> pippy: because you named it wrong, probably.
943: [21:43:27] <Ryan-Toast> Just came across this ssbit, and it has the greatest banner: http://www.ssbits.com/tutorials/2010/rotating-and-greyscaling-images-using-gd-and-decorators/
944: [21:43:48] <Ryan-Toast> Thomas is metal as fuck.
945: [21:44:22] <Pyromanik> Metal?
946: [21:45:09] <Pyromanik> www.youtube.com/watch?v=ZihGiCpgnq8 ?
947: [21:47:38] <Ryan-Toast> Pyromanik: http://gifsound.com/?gif=http%3A%2F%2Fi.imgur.com%2Ff9K9a6d.gif&sound=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZihGiCpgnq8&start=0
948: [21:49:37] * SightUnseen has joined #silverstripe
949: [21:50:26] <ss23> Pyromanik: >240p
950: [21:50:26] <ss23> god
951: [21:50:27] <ss23> my ears
952: [21:50:28] <ss23> pls stop
953: [21:51:49] * SightUnseen has left #silverstripe
954: [21:52:27] <Pyromanik> haha fuck that's pretty classy Ryan-Toast
955: [21:52:38] <Pyromanik> ss23: deal with it
956: [21:56:01] <Azure> You mean Thömas?
957: [21:57:08] <Pyromanik> haha
958: [21:57:09] <Pyromanik> also
959: [21:57:10] <Pyromanik> fuck clients
960: [21:57:29] <Pyromanik> "this site MUST MUST MUST be live on *date 2 weeks ago*"
961: [21:57:35] <Pyromanik> date 2 weeks ago rolls around
962: [21:57:37] <Pyromanik> site is ready
963: [21:58:14] <Pyromanik> "Looks good, but we just want to have this big list of completely superficial things that don't impact the site's functionality at all completed before we go live"
964: [21:58:31] <Pyromanik> like, on launch day.
965: [21:58:38] <Pyromanik> big list of chagnes.
966: [21:58:47] <Pyromanik> none of which should have prevented a live make.
967: [22:01:31] <zippy__> lawl
968: [22:02:07] <Pyromanik> so after weeks of SUPER DUPER URGENT YOURE FIRED IF YOU CANT MAKE DEADLINE
969: [22:02:21] <Pyromanik> they block their own site going live and then don't give a fuck.
970: [22:02:31] <Pyromanik> 2 weeks later, haven't heard a thing.
971: [22:03:37] <zippy__> typical eh
972: [22:03:57] <Pyromanik> yeh, exactly. I was just about to say
973: [22:04:22] <Pyromanik> better yet, this happens every single time some dickface client puts pressure on to go live by a certain (often close) date.
974: [22:04:53] <Pyromanik> I can't fucking wait to not have to make shit for people anymore.
975: [22:05:48] <zippy__> must be time for a peanut butter and honey sandwidch then....
976: [22:06:06] <zippy__> stuck on a problem? time for a sammy. just had a good idea? time for a sammy…. just ate brekfest, time for a sammy...
977: [22:06:20] <zippy__> working from home sure hasn't helped the waist
978: [22:07:35] <EasyCo> Pyromanik: You can always work for yourself and manage your clients expectations yourself
979: [22:07:49] <EasyCo> Or you can just create a bazillion dollar idea
980: [22:08:31] <Pyromanik> zippy__: hahhaa, know dem feels :<
981: [22:08:55] <Pyromanik> EasyCo: I could, but then I'd have to meet with people.
982: [22:09:09] <Pyromanik> I like the later idea... but it's harder than it seems :<
983: [22:10:09] * Nimle has joined #silverstripe
984: [22:10:25] <EasyCo> Or you can do this: http://events.developerforce.com/dreamforce/hackathon
985: [22:10:40] <ss23> CREATING NEW DISORDER
986: [22:10:43] * ss23 headbangs on Pyromanik
987: [22:11:24] <Nimle> Hi guys, when I add many_many relationship, it correctly adds the tab there but the bad thing is it shows the fields of the main object under this tab as well. how can I remove them?
988: [22:12:36] * gelignite quit (Quit: http://bit.ly/nkczDT)
989: [22:13:51] <zippy__> Nimle: Remove them via the getCMSFields method
990: [22:14:18] <Pyromanik> there. Made the change to the 'find a person' list that makes them able to order it so it goes "boss, 2ic, minions, office lady"
991: [22:14:30] <Pyromanik> I bet the site still wont' go live.
992: [22:14:55] <zippy__> maybe it should be BK for lunch today...
993: [22:14:58] <Ryan-Toast> How can I get the path to a resized image in a controller?
994: [22:15:09] <Pyromanik> EasyCo: heh, I used to work in the same office as the fella who started Trineo, they work in force.com
995: [22:15:10] <Ryan-Toast> can I do something like: $this->Image()->SetWidth(80)->Path() ?
996: [22:15:19] <Pyromanik> Ryan-Toast: $baldsfhadgkjalgj.URL
997: [22:15:27] <Ryan-Toast> Chur
998: [22:15:59] <Pyromanik> Nimle: that doesnt' seem right.
999: [22:16:19] <Pyromanik> Nimle: manually manipulate them using getCMSFields
1000: [22:16:32] <Pyromanik> 10:58 < Pyromanik> none of which should have prevented a live make.
1001: [22:16:50] <Pyromanik> zippy__: so yeah. the latest change is that the boss didn't want to be in the middle of the people list.
1002: [22:16:54] <Pyromanik> needed to be on top.
1003: [22:17:05] <Pyromanik> Critical change!
1004: [22:18:45] <Nimle> @Pyromanik, but clicking tab doesnt call anything in php. It just uses css and javascript. But it is weird why they show up there.
1005: [22:19:49] <zippy__> Pyromanik: lolz!
1006: [22:20:04] <zippy__> Pyromanik: That reminds me why the Queens husband isn't called the King
1007: [22:21:14] <Pyromanik> well, to be fair he's not the ruler.
1008: [22:21:36] <Pyromanik> King would imply he is. Because y'know, patriarchial society and all.
1009: [22:21:54] <zippy__> yea, thats it basically it
1010: [22:22:23] <zippy__> even thou when the princess marries a king she becomes queen - as queen is always seen as lesser to the king, even if the queen is meant to be in charge
1011: [22:25:42] <Pyromanik> hence no king.
1012: [22:25:51] <Pyromanik> we all know who wears the pants.
1013: [22:26:45] <Pyromanik> Fuck first tier support too lazy to do their fucking job.
1014: [22:27:54] <Pyromanik> "We had an issue with our mail servers yesterday and to fix it we shifted service to a backup system. Mail recieved between this migration and the backup becoming primary may be lost"
1015: [22:27:58] <Pyromanik> ok
1016: [22:28:01] <Pyromanik> cool
1017: [22:28:01] <Pyromanik> so have a few clients in that bucket.
1018: [22:28:05] <Pyromanik> Email support
1019: [22:28:33] <Pyromanik> "If you log in to webmail your email will be there"
1020: [22:28:35] <Pyromanik> umm...
1021: [22:28:38] <Pyromanik> DERP DERP
1022: [22:33:17] <Azure> I must be doing something wrong somewhere. I would guess that a page controller extension (on a custom pagetype in a module) would be able to add/remove requirements and such, but it doesn't seem to be able. Unless there's a way somehow add them onto init().
1023: [22:42:23] * spronk2 has joined #silverstripe
1024: [22:43:00] <Pyromanik> you're probably just doing it wrong Azure. Post your code up :>
1025: [22:44:16] <Ryan-Toast> Ugh, doing a file_exists(), which fails but when I return the url it's there ><
1026: [22:44:48] * liam_ has joined #silverstripe
1027: [22:45:11] * liam_ is now known as Guest10891
1028: [22:45:58] <Guest10891> I am trying to return a checkboxsetfield using ajax. I am returning it like this "return $field->renderWith ("CheckboxSetField");" but it always renders empty even though I have added the items. Any ideas how to do this?
1029: [22:46:13] <Azure> Pyromanik: http://pastie.org/8475505 more or less
1030: [22:46:38] <Azure> (replace onAfterInit with init)
1031: [22:47:23] * chrisrio has joined #silverstripe
1032: [22:54:14] * wilr_ quit (Quit: wilr_)
1033: [22:57:09] <Zauberfisch23> blubb
1034: [23:00:37] * catcher quit (Quit: Leaving)
1035: [23:04:14] * violetina quit (Remote host closed the connection)
1036: [23:04:39] * nickmolhoek has joined #silverstripe
1037: [23:09:11] * Colin[pi]_Mac has joined #silverstripe
1038: [23:09:46] * Colin[pi]_Mac quit (Client Quit)
1039: [23:14:39] * wilr_ has joined #silverstripe
1040: [23:18:53] <Pyromanik> Azure: only functions that have hooks for them will get run.
1041: [23:19:22] <Pyromanik> you should check Controller (and/or ContentController) to ensure that init() calls $this->extend('onAfterInit')
1042: [23:19:39] <Pyromanik> if it doesn't, stick it in your PhotoGalleryHolder
1043: [23:19:56] <Pyromanik> also, I take it PhotoGalleryHolder is a controller?
1044: [23:20:16] * Shrike_Finland quit (Ping timeout: 264 seconds)
1045: [23:20:22] <Pyromanik> you need to apply it to the controller if it's not.
1046: [23:20:31] * chrisrio quit (Quit: Page closed)
1047: [23:20:39] <Azure> PhotoGalleryHolder is a pagetype in a module
1048: [23:20:45] <Pyromanik> eg, if PhotoGalleryHolder extends Page, then you should apply the extension to PhotoGalleryHolder_Controller.
1049: [23:21:34] <Pyromanik> for 2 reasons; 1) the controller is what you're extnding, 2) it'll throw an error because it's not a DataExtension if you apply it to a DataObject.
1050: [23:21:58] <Pyromanik> sorry for delay I got busy :<
1051: [23:25:19] <Pyromanik> wow, wholey fuck, that's a first. Site displays fine in IE9 (expected).
1052: [23:25:36] <Pyromanik> expected that it'd be pretty much the same except a couple of JS issues in IE8.
1053: [23:25:39] <Pyromanik> WRONG>
1054: [23:25:47] <Pyromanik> apparently IE8 forgot how to background-color
1055: [23:25:52] <Pyromanik> and color
1056: [23:25:55] <Pyromanik> and float
1057: [23:26:03] <Pyromanik> I just, idek.
1058: [23:26:10] <Pyromanik> fuck you windows XP users.
1059: [23:26:17] <ss23> Reformat.
1060: [23:27:23] * travis-ci has joined #silverstripe
1061: [23:27:23] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#654 (3.1 - c3b7afb : Ingo Schommer): The build passed.
1062: [23:27:23] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/e2fa3b7f2c20...c3b7afbdb19d
1063: [23:27:23] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/13885030
1064: [23:27:23] * travis-ci has left #silverstripe
1065: [23:32:57] <Azure> Pyromanik: alright
1066: [23:43:47] * Zauberfisch__ has joined #silverstripe
1067: [23:46:49] * Guest10891 quit (Quit: Guest10891)
1068: [23:47:38] * Zauberfisch_ quit (Ping timeout: 264 seconds)
1069: [23:51:00] * wilr_ quit (Quit: wilr_)
1070: [23:52:36] * Ryan-Toast quit (Quit: Ryan-Toast)
1071: [23:56:23] * chillu quit (Quit: chillu)

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