#silverstripe IRC Log

IRC log for 5 February 2013

All timestamps are in UTC.

1: [00:04:00] * catcher quit (Quit: Leaving)
2: [00:06:00] * MrGuits quit (Ping timeout: 276 seconds)
3: [00:07:00] <Pyromanik> Bollig|DesignCty: 3.0?
4: [00:08:00] <Bollig|DesignCty> thanks pyro
5: [00:08:00] <Bollig|DesignCty> 2.4
6: [00:08:00] <Pyromanik> ?
7: [00:09:00] <Bollig|DesignCty> for even thinking about it ;)
8: [00:10:00] <Bollig|DesignCty> :p
9: [00:10:00] <Pyromanik> :P
10: [00:10:00] <Bollig|DesignCty> thenI take my thanks back.
11: [00:10:00] <Bollig|DesignCty> ;)
12: [00:10:00] <Pyromanik> kekekeke
13: [00:10:00] <Bollig|DesignCty> ...
14: [00:10:00] <Pyromanik> no you asked what are you missing, my answer is 3.0 ;)
15: [00:22:00] <FrozenFire> This shit is getting ridiculous, trying to manage that through arrays.
16: [00:22:00] * FrozenFire is going to produce a module for simple geolocation and city resolution...
17: [00:22:00] <FrozenFire> And XML files...
18: [00:23:00] <Pyromanik> galore!
19: [00:24:00] * priithansen quit (Quit: priithansen)
20: [00:29:00] * C10ne quit (Ping timeout: 245 seconds)
21: [00:30:00] <Keksters> I'm getting questionmarks in a diamonds for typed content. No images, not copied from word.
22: [00:30:00] <Keksters> I accidentally an a
23: [00:31:00] <Keksters> Bwah.
24: [00:31:00] <Keksters> It's only happening on one page.
25: [00:31:00] <Pyromanik> you accidentally an encoding type
26: [00:31:00] <Pyromanik> wut
27: [00:32:00] <Pyromanik> I can always tell people who make websites with macs, because they have questiondiamonds all through them.
28: [00:32:00] <Keksters> Ah mkay.
29: [00:32:00] <Pyromanik> yeah, that was a side comment.
30: [00:32:00] <Keksters> .. But I'm not using a mac.
31: [00:33:00] <Pyromanik> instead of html entities.
32: [00:33:00] <Pyromanik> s/mac/dreamweaver/
33: [00:33:00] <Pyromanik> people who make websites with macs are generally also the kind taht leave copyright symbols in the source.
34: [00:33:00] <Pyromanik> it's like, most of the internet.
35: [00:33:00] <FrozenFire> Keksters, Check your doctype
36: [00:33:00] <Pyromanik> not really
37: [00:33:00] <Keksters> Rather large generalisation =P
38: [00:34:00] <Pyromanik> ^
39: [00:34:00] <simon_w> Given that SilverStripe uses UTF8, there's nothing wrong with sticking a (c) in there :p
40: [00:34:00] <Pyromanik> herhaps
41: [00:34:00] <Pyromanik> perhaps*
42: [00:34:00] <Pyromanik> only like*
43: [00:34:00] <Pyromanik> content-type
44: [00:34:00] <Pyromanik> applied as a werdpress theme
45: [00:34:00] <Pyromanik> simon_w: yeh, but I don't like it.
46: [00:34:00] <Pyromanik> so I won't allow it.
47: [00:34:00] <Keksters> lol.
48: [00:34:00] <FrozenFire> And/or Content-Type
49: [00:34:00] <simon_w> Pyromanik, doing it wrong!
50: [00:35:00] <Keksters> Umm. No.
51: [00:35:00] <FrozenFire> Mayhaps**
52: [00:35:00] <Pyromanik> simon_w: NOU
53: [00:35:00] <Pyromanik> I actually wrote herpaps
54: [00:35:00] <Keksters> I feel like I should know specifically what you're asking for.
55: [00:35:00] <Pyromanik> but edited the p
56: [00:35:00] <Pyromanik> without editing the h
57: [00:35:00] <Pyromanik> Keksters: you should
58: [00:35:00] <FrozenFire> Keksters, Which page is having this issue?
59: [00:35:00] <Pyromanik> is it publically viewable?
60: [00:36:00] <Pyromanik> http://pbmo.files.wordpress.com/2010/07/do-it-live.png
61: [00:36:00] <FrozenFire> Aha.
62: [00:36:00] <Keksters> That pulls information from the Holder that pulls information from the Page
63: [00:36:00] <FrozenFire> If you are specifying a meta content-type, you have to specify the charset
64: [00:36:00] <Keksters> Well I've got a Meta page
65: [00:36:00] <Pyromanik> <!DOCTYPE html>
66: [00:36:00] <Pyromanik> <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
67: [00:36:00] <FrozenFire> I'm just wondering what the context is.
68: [00:36:00] * Emil_Blume quit (Quit: Leaving.)
69: [00:36:00] <FrozenFire> Nah, I wouldn't ask you to link it.
70: [00:37:00] <FrozenFire> Well, you need to debug your content-type
71: [00:37:00] <irogue> https://twitter.com/dotarray/status/295839335725539328/photo/1
72: [00:37:00] <FrozenFire> There are a few issues that could cause it.
73: [00:37:00] <Pyromanik> does the font have the glyph?
74: [00:37:00] <Keksters> Sorry, it's Meta as in MetaHolder
75: [00:37:00] <Keksters> So it's a Holder page for Holder pages
76: [00:37:00] <Pyromanik> that sounds awefully abstract
77: [00:37:00] <FrozenFire> Ah
78: [00:37:00] <Keksters> Yeah.
79: [00:38:00] <Pyromanik> hahaha irogue
80: [00:38:00] <FrozenFire> Third being you've broken the internet
81: [00:38:00] <Pyromanik> multibyte chars!
82: [00:38:00] <Keksters> I want to laugh, irogue, but I know it's a bus replacing a train ;-;
83: [00:38:00] <irogue> oh, me too, but it's still humerous
84: [00:38:00] <Keksters> I'm particularly good at breaking things.
85: [00:38:00] <FrozenFire> First being that you're using UTF-8 but somehow screwing up your content-type to non-UTF
86: [00:38:00] <FrozenFire> Second being that your content contains UTF-16
87: [00:39:00] <irogue> ours say "Rail" when it's a rail replacement bus. "Train" seems more humerous for some reason
88: [00:39:00] <FrozenFire> With certainty?
89: [00:39:00] <Keksters> well my content-type is UTF-8
90: [00:40:00] <FrozenFire> How are you determining it?
91: [00:40:00] <Keksters> Unless Chrome's lying to me.
92: [00:41:00] <Keksters> I'm looking at what the head tag of the page is through the inspect element tool
93: [00:41:00] <FrozenFire> Are you able to copy and paste the broken symbols from your page?
94: [00:41:00] <Keksters> Firebug also agrees.
95: [00:41:00] <FrozenFire> Yeah. That can lie.
96: [00:42:00] <Keksters> can provide your organisation with GIS health checks� that delivers a clear picture of your system's present functionality� �
97: [00:42:00] <FrozenFire> Whatever is rendering as invalid characters
98: [00:42:00] <Keksters> From the content or from the presented page?
99: [00:42:00] <FrozenFire> That'll do
100: [00:42:00] <Keksters> ?
101: [00:42:00] <Pyromanik> MDASH!
102: [00:43:00] <Keksters> .. Pardon.
103: [00:43:00] <Pyromanik> Keksters: they're long hyphens aren't they
104: [00:43:00] <simon_w> That looks like someone stuck in control characters they shouldn't have
105: [00:43:00] <Pyromanik> \r!
106: [00:43:00] <Keksters> There's no characters there.
107: [00:43:00] <Pyromanik> mm, what simon_w said.
108: [00:43:00] <Pyromanik> &mdash;
109: [00:43:00] <Pyromanik> or &ndash;
110: [00:44:00] <FrozenFire> But we do
111: [00:44:00] <Keksters> It is sentences.
112: [00:44:00] <FrozenFire> I'm not sure what that is
113: [00:44:00] <FrozenFire> It's BF BD 20
114: [00:44:00] <Pyromanik> well I don't
115: [00:44:00] <FrozenFire> Or maybe you do and you mean otherwise
116: [00:44:00] <Pyromanik> I see squares
117: [00:44:00] <FrozenFire> Yeah, invalid characters
118: [00:44:00] <Pyromanik> Keksters: what do they look like in source text?
119: [00:44:00] <Pyromanik> ?
120: [00:44:00] <Keksters> ?
121: [00:44:00] <FrozenFire> Keksters, You don't see it in your client
122: [00:44:00] <Pyromanik> nothing?
123: [00:44:00] <Keksters> No but I'm saying that there's no special characters in the content
124: [00:45:00] <FrozenFire> Keksters, There apparently is.
125: [00:45:00] <simon_w> Keksters, are these diamonds showing up in the CMS?
126: [00:45:00] <FrozenFire> You'd pasted some sort of rich content
127: [00:45:00] <Pyromanik> use "Paste as plain text"
128: [00:45:00] <Keksters> No
129: [00:45:00] <Pyromanik> Keksters: are you saying
130: [00:45:00] <Pyromanik> then
131: [00:45:00] <Pyromanik> that
132: [00:45:00] <Pyromanik> there are NO characters in the source text
133: [00:45:00] <Pyromanik> fileinfo.com!
134: [00:45:00] <Pyromanik> iirc
135: [00:46:00] <simon_w> Okay, if you put the cursor just before the "that" after "checks", it should take one left arrow press more than it should to get to the start of "checks"
136: [00:46:00] <Pyromanik> but when you paste you get derp font?
137: [00:46:00] <Pyromanik> profit
138: [00:46:00] <Pyromanik> ???
139: [00:46:00] <Pyromanik> push space
140: [00:46:00] <Pyromanik> hit delete
141: [00:46:00] <simon_w> After the space, it'll look like the cursor doesn't move
142: [00:46:00] <Pyromanik> invistible char
143: [00:46:00] <Pyromanik> ^
144: [00:46:00] <Pyromanik> derp glyph*
145: [00:46:00] <Keksters> Only in one page.
146: [00:47:00] <Keksters> Well.
147: [00:47:00] <FrozenFire> There's the hexdump of the string
148: [00:47:00] <simon_w> Well, hit it twice
149: [00:47:00] <FrozenFire> http://www.sspaste.com/paste/show/51105680aede0
150: [00:48:00] <Pyromanik> control char'n ALL the internets!
151: [00:48:00] <Keksters> There was no double space between "that" after "checks" it only took one arrow press. Deleted it nonetheless and respaced. Fixed. I don't understand why.
152: [00:48:00] <Keksters> I typed it from the piece of paper my line manager handed me.
153: [00:48:00] <Pyromanik> oic
154: [00:48:00] <Keksters> Because that text wasn't copy pasted from a source.
155: [00:49:00] <Keksters> The weirdest error I've ever gotten.
156: [00:49:00] <Pyromanik> TinyMCE used INJECTOR, it's super effective!
157: [00:49:00] <Pyromanik> +1
158: [00:49:00] <irogue> my coworker just yelled out "who wants my nuts? i've had enough of them"
159: [00:51:00] <Keksters> ... without pagination.
160: [00:51:00] <Pyromanik> irogue: I would like some nuts
161: [00:51:00] <Keksters> At least Puneeth nagged you for the solution to the pagination problem I was having.
162: [00:51:00] <Pyromanik> preferable to be plain roasted, not so keen on the salty ones.
163: [00:51:00] <Keksters> Depends on the nut. Cashews need salt imo. They're just meh plain roasted.
164: [00:52:00] <FrozenFire> No, it makes no sense in any context.
165: [00:52:00] <FrozenFire> So umm... I've thoroughly confused myself.
166: [00:52:00] <FrozenFire> I'm getting a CSS include that makes no sense in the least.
167: [00:52:00] <Keksters> I know that problem.
168: [00:52:00] <Pyromanik> twiddle the moustache then
169: [00:52:00] <Pyromanik> FrozenFire: module
170: [00:53:00] <FrozenFire> I really have no clue how
171: [00:53:00] <FrozenFire> I'm doing an explicit renderWith
172: [00:53:00] <FrozenFire> It's somehow doing <% require themedCSS(pages/Cart) %> as well
173: [00:53:00] <FrozenFire> In the template being rendered, I do <% require themedCSS(pages/Cart_billing) %>
174: [00:54:00] <FrozenFire> Does underscore have magic I'm unaware of?
175: [00:54:00] <Pyromanik> because underscore
176: [00:54:00] <simon_w> Nope
177: [00:54:00] <Pyromanik> mmm
178: [00:54:00] <Pyromanik> nope
179: [00:54:00] <Pyromanik> confused require / include
180: [00:54:00] <Pyromanik> although no specials there either
181: [00:55:00] <FrozenFire> Will it do anything with Cart if Cart_billing is found?
182: [00:55:00] <FrozenFire> If I'm doing $this->renderWith(array("Cart_billing", "Cart", "Page"))
183: [00:56:00] <FrozenFire> If it was processing the requirements of Cart.ss, it would explain that include
184: [00:56:00] <simon_w> Or the other way around, I think
185: [00:56:00] <simon_w> It shouldn't
186: [00:56:00] <simon_w> Unless Cart_billing is just layout and Cart has a main one
187: [00:56:00] <FrozenFire> Nope
188: [00:57:00] <FrozenFire> Page.ss
189: [00:57:00] <FrozenFire> Nope. There's only one top-level template
190: [00:58:00] <FrozenFire> Tres confusing.
191: [00:58:00] <Pyromanik> m
192: [00:58:00] <Pyromanik> :<
193: [00:58:00] <Pyromanik> make craftier css
194: [00:58:00] <FrozenFire> Not a huge deal. Just means I'll have to reset some CSS on certain elements
195: [00:59:00] <Pyromanik> assuming not
196: [00:59:00] <Pyromanik> if I just $Level, will it return current level depth
197: [01:00:00] <simon_w> Isn't that hard to write your own Depth method though
198: [01:00:00] <Pyromanik> only true/false for comparing with a level right?
199: [01:00:00] <simon_w> Nope. It'll return error
200: [01:00:00] <Pyromanik> mk
201: [01:01:00] <FrozenFire> Keksters, It's a best practise.
202: [01:01:00] <simon_w> Keksters, performance
203: [01:01:00] <Pyromanik> Requirements::write_js_to_body(false) otherwise
204: [01:01:00] <FrozenFire> The browser runs all Javascript in a blocking fashion
205: [01:01:00] <Pyromanik> but listen to the previous two comments
206: [01:01:00] <FrozenFire> So if there's Javascript earlier in the page, it will block the page load until it's done
207: [01:01:00] <Keksters> Oh yeah. Why does javascript automatically sit in the bottom of the page?
208: [01:01:00] <Pyromanik> simon_w: yeh, was just kinda hoping it was built in
209: [01:01:00] <Pyromanik> Keksters: yes
210: [01:02:00] <Pyromanik> ^
211: [01:02:00] <FrozenFire> Meaning that loading things like jQuery can cause stuttering in the page load
212: [01:02:00] <Pyromanik> and people get mad and quit
213: [01:02:00] <Pyromanik> before load
214: [01:02:00] <Pyromanik> ignore all werd-derp fools who say head is the place to put it
215: [01:02:00] <FrozenFire> I don't think anyone would say that.
216: [01:03:00] <simon_w> Keksters, you were taught wrong!
217: [01:03:00] <Pyromanik> and not even old posts either irogue, FrozenFire
218: [01:03:00] <Pyromanik> always body
219: [01:03:00] <Pyromanik> FrozenFire: I've seen it
220: [01:03:00] <irogue> yeah
221: [01:03:00] <simon_w> Especially don't put it before CSS links
222: [01:03:00] <irogue> many many people say it
223: [01:03:00] <Pyromanik> in a fair number of tutorials around
224: [01:03:00] <irogue> in fairness, it was intended that scripts would be in the head. but in practicality that's a bad idea
225: [01:03:00] <Pyromanik> don't head
226: [01:03:00] <Pyromanik> Keksters: because tutorials
227: [01:03:00] <Keksters> The head was where I was taught to put it.
228: [01:03:00] <Keksters> In my brief, copy paste, learning of javascript
229: [01:04:00] <Pyromanik> SS will dump them before a <script> tag incase you have inline stuff that relies on a requirement, but generally it goes before </body>
230: [01:04:00] <Pyromanik> I once read a tutorial that said "head is best practice. It used to be before the end of the footer but people have gone back to the way it was intended" and I was all "DO YOU EVEN LIFT!?"
231: [01:04:00] <Keksters> Yeah using the page controls for Silverstripe has been a push for my PHP knowledge.
232: [01:04:00] <simon_w> Keksters, it's like how most of the PHP+MySQL tutorials still using the (now hard deprecated) mysql_* functions
233: [01:05:00] <Keksters> The site I got my plugin from showed using head.
234: [01:05:00] <Pyromanik> but page controls aren't php, they're template stuffs
235: [01:05:00] <Pyromanik> most tuts around are still popping up with head scritps
236: [01:05:00] <Pyromanik> simon_w: but that's different, they're OLD
237: [01:05:00] <irogue> yes, i do this
238: [01:05:00] <irogue> [14:05] <FrozenFire> This is why Google's Personal Blocklist extension with W3Schools added is a must for everyone.
239: [01:05:00] <irogue> still plenty of tuts telling you to use batch scripts for your windows AD login scripts
240: [01:05:00] <FrozenFire> This is why Google's Personal Blocklist extension with W3Schools added is a must for everyone.
241: [01:06:00] <FrozenFire> It's such a nuisance
242: [01:06:00] <Pyromanik> Keksters: tutorials generally do
243: [01:06:00] <irogue> every single thing i've seen there has been wrong
244: [01:06:00] <irogue> w3schools is the most horrible resource ever
245: [01:06:00] <Pyromanik> mdn generally
246: [01:06:00] <Keksters> Man. Everything I've been taught is being torn apart in front of my eyes.
247: [01:06:00] <Pyromanik> I dont' block it, I just don't go there.
248: [01:06:00] <FrozenFire> W3Schools is the only site in my personal blocklist
249: [01:07:00] <Pyromanik> most people don't. :(
250: [01:07:00] <Pyromanik> oh you'll be surprised
251: [01:07:00] <Keksters> I'm trying. I'm still new.
252: [01:07:00] <Pyromanik> :P
253: [01:07:00] <Pyromanik> learn about specificity
254: [01:07:00] <FrozenFire> And then unlearn everything Pyromanik tries to teach you.
255: [01:07:00] <Pyromanik> and if you find yourself !important, you're doing it wrong :P
256: [01:07:00] <FrozenFire> So it gets on my nerves.
257: [01:07:00] <Pyromanik> there's another tip for you
258: [01:07:00] <FrozenFire> And I tend to click the first one
259: [01:07:00] <Pyromanik> Keksters: write good CSS
260: [01:07:00] <FrozenFire> It finds its way into the top few results for any programming-related search
261: [01:07:00] <Keksters> lol. I got that one.
262: [01:08:00] <Keksters> lol
263: [01:08:00] * FrozenFire uses !important on everything
264: [01:08:00] <Pyromanik> EVERYTHING
265: [01:08:00] <FrozenFire> And then relies on the order of !important statements to work it out
266: [01:08:00] <FrozenFire> If I need something to be more important, I just write it again.
267: [01:08:00] <Pyromanik> good work FrozenFire
268: [01:08:00] <Pyromanik> taht's job security right there
269: [01:08:00] <Keksters> Well I'm proud to say that I don't use !important
270: [01:09:00] <irogue> i.e. i have no control over the actual template or CSS files, just can inject some CSS into the head
271: [01:09:00] <Pyromanik> :D
272: [01:09:00] <irogue> MDN and sitepoint are the ones i trust
273: [01:09:00] <Keksters> I didn't know it existed until last year.
274: [01:09:00] <Pyromanik> good good
275: [01:09:00] <Pyromanik> also learn to +
276: [01:09:00] <Pyromanik> and >
277: [01:09:00] <irogue> i used !important the other day
278: [01:09:00] * Pyromanik gasps
279: [01:09:00] <Keksters> And what.
280: [01:09:00] <irogue> doing some custom CSS for a squarespace site
281: [01:09:00] <Pyromanik> Keksters: and what wat?
282: [01:10:00] <Pyromanik> :first-child works in IE7, :last-child does not because it was not 2.1 standard.
283: [01:10:00] <Keksters> Ah. Good.
284: [01:10:00] <Keksters> I think the only instance I've seen of > is in html>body to trick IE
285: [01:10:00] <Pyromanik> Keksters: yes
286: [01:10:00] <Keksters> + and >, are we still talking about CSS?
287: [01:11:00] <Pyromanik> define 'second rule trick' ?
288: [01:11:00] <Pyromanik> and no, ie7 understands the > selector
289: [01:11:00] <Keksters> I prefer using the second rule trick, seems to get the majority of IE>
290: [01:11:00] <simon_w> Not even 10?
291: [01:11:00] <Pyromanik> if you're supporting ie6 you're doing it wrong
292: [01:11:00] <Keksters> Nope, 7 - 9
293: [01:12:00] <Keksters> Not even 10
294: [01:12:00] <simon_w> Gutted
295: [01:12:00] <Pyromanik> hah, bl
296: [01:12:00] <Keksters> First rule is the one you want to apply to ie. Second is the one you want to apply to the rest of the browsers
297: [01:12:00] <Keksters> IE doesn't understand the second rule so doesn't overwrite it.
298: [01:13:00] <Pyromanik> ie7 still does that?
299: [01:13:00] <Keksters> Not comma separated.
300: [01:13:00] <Pyromanik> unless your'e not talking about comma separated selectors here
301: [01:13:00] <Pyromanik> it's a bug
302: [01:13:00] <Pyromanik> it should disregard the entire rule
303: [01:14:00] * mrzero has joined #silverstripe
304: [01:14:00] * mrzero has joined #silverstripe
305: [01:14:00] <Pyromanik> I just overwrite the specific properties with a separate sheet
306: [01:14:00] <Pyromanik> or usually, inline with conditional comments.
307: [01:14:00] * mrzero quit (Changing host)
308: [01:14:00] <Keksters> Same rule, ended correctly. Twice but slightly different.
309: [01:14:00] <Pyromanik> urgh
310: [01:14:00] <Pyromanik> nah
311: [01:14:00] <Pyromanik> bugger that
312: [01:15:00] <Pyromanik> inline-block is about the only thing ie7 loaths enough to bugger up all my styles
313: [01:15:00] <Pyromanik> ah
314: [01:15:00] <Pyromanik> shouldn't be.
315: [01:15:00] <Pyromanik> ;)
316: [01:15:00] <Keksters> Mm. I'd do that if it was for more than 3 lines of my code.
317: [01:15:00] <Pyromanik> oh you said more than
318: [01:15:00] <Keksters> That all need rectifying to plain backgrounds in lower IEs
319: [01:15:00] <Keksters> Well I've got three instances of an RGBA background.
320: [01:16:00] <Keksters> All of the IEs were handling it differently.
321: [01:16:00] <Keksters> Had to abort my vertical menu and everything.
322: [01:16:00] <Pyromanik> my bad
323: [01:16:00] <Keksters> lol
324: [01:16:00] <Pyromanik> I've seen some sites that pretty much replicate their entire style sheet just to support ie7
325: [01:16:00] <Keksters> I was trying not to.
326: [01:16:00] <Pyromanik> and I smash my head on the desk and go WHYYYYYYY
327: [01:18:00] * liam has joined #silverstripe
328: [01:19:00] <simon_w> We've got one ie specific CSS rule for our supported versions, and I don't think it's being used any more
329: [01:19:00] <Pyromanik> I was stoked.
330: [01:19:00] <Pyromanik> last site I made required 0 adjustment
331: [01:24:00] <Keksters> I could have it with 0 adjustments atm.
332: [01:25:00] <Keksters> Which seems more roundabout that using CSS3.
333: [01:25:00] <Keksters> If I used a repeated transparent png for all the instances of transparency I have
334: [01:26:00] <Pyromanik> which is more important. Clients don't give a shit about css3
335: [01:26:00] <Pyromanik> yeah, but easier to maintain.
336: [01:28:00] <Keksters> I've had mixed comments about who we're targeting.
337: [01:28:00] <Pyromanik> if you're targeting mobiles I'd give less shits about IE and more about less images
338: [01:28:00] <Pyromanik> depends on your target though I guess.
339: [01:29:00] <Keksters> Though majority seem to want mobile compatability.
340: [01:29:00] <Pyromanik> ah, you app building?
341: [01:29:00] <Pyromanik> mm
342: [01:29:00] <Keksters> Yeah, a lot of their clients seem to be government. Which is even more target IE.
343: [01:29:00] <Pyromanik> yeah, target IE
344: [01:29:00] <Keksters> No. Just a brochure site.
345: [01:30:00] * Keksters shakes her head
346: [01:30:00] <Pyromanik> ie6 :<
347: [01:31:00] <Pyromanik> Govts love the shit out of their old IE
348: [01:31:00] <Keksters> Just. IE.
349: [01:31:00] <Keksters> It confuses me to no end when sites tell you that their site is designed specifically for IE and wont work properly unless you're using it.
350: [01:31:00] <Pyromanik> :<
351: [01:32:00] <Pyromanik> Keksters: it's remnants from old days when sites were specifically on IE6 as a platform.
352: [01:32:00] <Pyromanik> because places like vodafone have built their entire infrastructure around it, and actually can't upgrade without breaking their entire system.
353: [01:32:00] <Keksters> Yeah I understand that much.
354: [01:32:00] <Pyromanik> which is why IE6 still hangs around
355: [01:32:00] <Keksters> Yeah. "Oh you want to see your NCEA results? Use IE"
356: [01:33:00] * mrzero_ has joined #silverstripe
357: [01:33:00] <Pyromanik> activeX is the other answer
358: [01:33:00] <Pyromanik> and yeah
359: [01:33:00] * mrzero quit (Ping timeout: 276 seconds)
360: [01:33:00] * mrzero_ is now known as mrzero
361: [01:33:00] <Pyromanik> at least, used to be.
362: [01:33:00] <Keksters> If you want to make a bank deposit to pay for your bus trip they wont just give you an account and reference number
363: [01:33:00] <Pyromanik> not so sure anymore, but definately used to be.
364: [01:33:00] <Pyromanik> NZQA stuff is stored in a series of very complex access databases.
365: [01:33:00] <Keksters> Intercity is the one that gets me the most. On hindsight makes sense for their target audience
366: [01:33:00] * mrzero_ has joined #silverstripe
367: [01:33:00] * mrzero_ quit (Changing host)
368: [01:34:00] <Pyromanik> AirNZ have that too
369: [01:34:00] <Pyromanik> it's supposed to be new and revolutionary
370: [01:34:00] <Pyromanik> Luckily AirNZ also have credit card as an option
371: [01:34:00] <Keksters> AirNZ has Koru and that's all I'm happy about.
372: [01:34:00] <Keksters> Buh.
373: [01:34:00] <Pyromanik> ?
374: [01:34:00] <Pyromanik> too hard
375: [01:34:00] <Pyromanik> no $ behind it to build system.
376: [01:34:00] <Pyromanik> POLi
377: [01:34:00] <Pyromanik> oh
378: [01:34:00] <Keksters> As well as the money amount.
379: [01:34:00] <Keksters> They make you use this thing that makes you log into your internet banking and then it fills out the account and reference for you.
380: [01:34:00] <Keksters> Yes.
381: [01:34:00] <Pyromanik> yeah
382: [01:35:00] <Pyromanik> hahahah
383: [01:35:00] <Pyromanik> living the high life
384: [01:35:00] <Keksters> Well. I'm not a member myself.
385: [01:35:00] <Keksters> My dad is so I can generally get in cheap.
386: [01:35:00] <Keksters> / free
387: [01:36:00] <spronk> ha
388: [01:36:00] <spronk> poli
389: [01:36:00] <Pyromanik> LOL, NOPE
390: [01:36:00] <spronk> to be fair, the company behind it seems pretty decent
391: [01:36:00] <Pyromanik> ikr spronk
392: [01:36:00] <Pyromanik> "Install our software"
393: [01:37:00] <Pyromanik> It's not hard, it's convincing security experts
394: [01:37:00] <spronk> aaand banks are cocks about APIs and shit
395: [01:37:00] <Pyromanik> yeh
396: [01:37:00] <Pyromanik> but
397: [01:37:00] <Keksters> Maybe they should do Novopay
398: [01:37:00] <Pyromanik> still
399: [01:37:00] <spronk> how fucking hard would it be for banks to have a basic payment URL
400: [01:37:00] <spronk> like
401: [01:37:00] <spronk> banking.bank.co.nz/pay/?account=...&amount=...&reference=...
402: [01:37:00] <Pyromanik> and reluctant top level payoffs
403: [01:37:00] <Pyromanik> err signoffs
404: [01:37:00] <Pyromanik> also
405: [01:38:00] <spronk> only issue is phishing
406: [01:38:00] <Pyromanik> how would they nkow who the request came from
407: [01:38:00] <Pyromanik> and phishing
408: [01:38:00] <spronk> but its the same issue that has always existed
409: [01:38:00] <Pyromanik> and THE ENTIRE INTERNETS
410: [01:38:00] <spronk> doesn't matter who it came from
411: [01:38:00] <Pyromanik> why not?
412: [01:38:00] <spronk> if you want extra layer of security, just register the account number
413: [01:38:00] <Pyromanik> no
414: [01:38:00] <Pyromanik> I mean
415: [01:38:00] <Pyromanik> you put money in
416: [01:39:00] <Pyromanik> but where come from
417: [01:40:00] <irogue> [14:33] <Keksters> Intercity is the one that gets me the most. On hindsight makes sense for their target audience
418: [01:41:00] <irogue> on the upside, Intercity use silverstripe ;)
419: [01:41:00] <Pyromanik> I'll target YOUR audience irogue!
420: [01:47:00] * liam quit (Quit: liam)
421: [01:48:00] <simon_w> Aww, the rain stopped
422: [01:51:00] * liam has joined #silverstripe
423: [01:54:00] <Pyromanik> Stopped raining about 10am here
424: [01:54:00] <Keksters> It stopped raining at about lunchtime here.
425: [01:55:00] <Pyromanik> bl2u
426: [01:55:00] <Pyromanik> lol
427: [01:55:00] <Keksters> It didn't start raining until then. I got to work just in time to be caught in a downpour.
428: [01:55:00] <Keksters> I'll probably get to the gym in time for another downpour. And then home, etc. Happened yesterday.
429: [01:55:00] <Pyromanik> maybe 9
430: [01:56:00] <Keksters> Haha, my bf tried scheming a ride off of me so he didn't have to walk to the train station
431: [01:56:00] <Pyromanik> lucky I've apparently got gills, because it looked like I should have drowned
432: [01:56:00] <Pyromanik> I swam home yesterday
433: [01:57:00] <Pyromanik> Did you punch him in the stomach and say "Suck it up princess" before leaving?
434: [01:58:00] <Keksters> Haha no. I said I would and then he called me while I was halfway up the Haywards (in the middle of a massive downpour) to tell me it had stopped raining and not to bother.
435: [02:01:00] <spronk> ah, add a few thousand unset() calls and save lots of memories!
436: [02:01:00] <Keksters> Perhaps easier to download more?
437: [02:02:00] <Pyromanik> spronk: wut
438: [02:02:00] <Pyromanik> unmalloc all the things!
439: [02:02:00] <spronk> doing some stuff that loads bulk shit
440: [02:03:00] <spronk> mmlol
441: [02:03:00] <spronk> tbh
442: [02:03:00] <spronk> i wish i could just be like
443: [02:03:00] <spronk> $*varname
444: [02:03:00] <spronk> to indicate that it's transient
445: [02:03:00] <Pyromanik> "GARBAGE COLLECTION!"
446: [02:03:00] <Pyromanik> "NOT FAST ENOUGH!"
447: [02:03:00] <spronk> and have it unset it automatically once the method call resolves
448: [02:03:00] <simon_w> Oh yeah, turn garbage collection on
449: [02:03:00] <spronk> runnig out of rams
450: [02:03:00] <spronk> unset() in loops, RAMS BACK!
451: [02:03:00] <Pyromanik> yeah well
452: [02:03:00] <Pyromanik> goddamn bullshit high level languages make you lazy when it comes to clearing crap
453: [02:04:00] <spronk> actually
454: [02:04:00] <Pyromanik> garbage collection just seems like a waste of resources to me.
455: [02:04:00] <spronk> that would be fucking awesome
456: [02:04:00] <spronk> transient vars
457: [02:04:00] <Pyromanik> heh
458: [02:04:00] <spronk> I R GENISU!
459: [02:04:00] <Pyromanik> make a class
460: [02:04:00] <Pyromanik> new transient var
461: [02:04:00] <simon_w> Local vars are freed at the end of a method call already
462: [02:04:00] <spronk> mm, but scope as well
463: [02:05:00] <simon_w> Blocks aren't different scopes
464: [02:05:00] <Pyromanik> derp derp
465: [02:05:00] <Pyromanik> no wait, other way around
466: [02:05:00] <Pyromanik> GLOBAL ALL THE THINGS
467: [02:05:00] <spronk> like if you have a variable in a for loop
468: [02:05:00] <spronk> constantly creating new data or w/e
469: [02:05:00] <Pyromanik> heap it, don't stack it!
470: [02:07:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
471: [02:12:00] <irogue> goddamn it
472: [02:12:00] <irogue> now i hate my ipad
473: [02:14:00] <Keksters> Only now?
474: [02:14:00] <irogue> only cos i'm using an ipad mini
475: [02:18:00] * congii has joined #silverstripe
476: [02:22:00] <congii> hi, i followed the custom member signup form here http://ss2doc-v2.ernie.silverstripe.com/old/recipes:forms
477: [02:23:00] <Pyromanik> ?
478: [02:23:00] <congii> its working ok and member is added into the users and groups.. problem is the when they try to login, the password seems in-correct. i have to manually edit and set their password in the CMS
479: [02:23:00] <Pyromanik> lol
480: [02:23:00] <congii> same thing happen when you use member-profile module.. password seems not working
481: [02:24:00] <congii> anyone encounter the same thing?
482: [02:24:00] <Pyromanik> what version of silverstripe?
483: [02:25:00] <congii> 3.0.3
484: [02:25:00] <congii> SS3
485: [02:25:00] <Pyromanik> lol
486: [02:25:00] <Pyromanik> none of the things you've tried are for ss3
487: [02:26:00] <simon_w> congii, first thing, that form doesn't set the password at all
488: [02:26:00] <Pyromanik> ^
489: [02:27:00] <Pyromanik> login form has a register link iirc
490: [02:27:00] <Pyromanik> second, it has /old/ in the URL
491: [02:27:00] <congii> ic, i can't seem to find any SS3 related docs regarding this
492: [02:28:00] <congii> this is the actual code, actually i just follow the principle there...
493: [02:28:00] <Pyromanik> oh, not anymore
494: [02:28:00] <congii> if($member = DataObject::get_one("Member", "`Email` = '". Convert::raw2sql($data['Email']) . "'")) { $form->AddErrorMessage('Email', "Sorry, that email address already exists. Please choose another.", 'bad'); Session::set("FormInfo.StaffManagementPage_StaffManagementPage.data", $data); return $this->redirectBack();; }
495: [02:29:00] <Pyromanik> get_one is deprecated
496: [02:29:00] <congii> that is the doAddStaff form action
497: [02:29:00] <congii> on the form side: ,new TextField('Email', 'Email *') ,new TextField('JobTitle', 'Job Title *') , new ConfirmedPasswordField('Password', 'New Password')
498: [02:30:00] <Pyromanik> try passwordfield rather than confirmed passwordfield
499: [02:30:00] <Pyromanik> confirmedpasswordfield is probably also deprecated
500: [02:30:00] <Pyromanik> hmm, maybe not
501: [02:31:00] <congii> hmm. let me check.
502: [02:40:00] <irogue> @hdpaNEWS: Boy have I got a treat for you on #sevensharp tonight. You know Karen who wants her $20 back? I found her.
503: [02:40:00] <congii> nope PasswordField is not working either..
504: [02:42:00] <congii> in the AddStaffForm, i tried ConfirmedPasswordField as well as PasswordField but the saved password seems to be different
505: [02:52:00] <spronk> GUYS GUYS GUYS
506: [02:53:00] <spronk> where can you see lions???
507: [02:55:00] <congii> follow-up: any ideas what seems to be wrong with the password with members added manually on front-end?
508: [02:55:00] <Pyromanik> spronk: orana
509: [02:56:00] <spronk> oh.. wait..
510: [02:56:00] <spronk> ORANA YOU BELIEVE IT?!
511: [02:57:00] <Pyromanik> fuck
512: [02:57:00] <spronk> srs. you no get reference?
513: [02:57:00] <Pyromanik> no
514: [02:57:00] <Pyromanik> srs
515: [02:57:00] <spronk> irogue: do you?
516: [02:57:00] <Pyromanik> ?
517: [02:58:00] <Pyromanik> I just wrote some css that I can't even understand.
518: [03:01:00] * liam quit (Read error: Connection reset by peer)
519: [03:02:00] * congii quit (Quit: Page closed)
520: [03:03:00] * congii has joined #silverstripe
521: [03:13:00] <spronk> lol?
522: [03:24:00] <Pyromanik> right, got it
523: [03:46:00] <irogue> the old ones
524: [03:46:00] <Pyromanik> than?
525: [03:46:00] <irogue> man, the new 2degrees plans are much better
526: [03:47:00] <Pyromanik> which were bad?
527: [03:47:00] <irogue> and the data is now automatically shared data, don't have to pay extra for that
528: [03:47:00] <irogue> $29 plan gone from 60 to 160 minutes, and from 50 to 500MB data
529: [03:48:00] <irogue> when prepay is cheaper than postpay, ur doin' it wrong
530: [03:48:00] <irogue> Pyromanik: they were good when they came out, but it had got to the point where they'd upgraded the prepay plans a few times and they were now better
531: [03:49:00] <Keksters> The issue is that my phone is often reluctant to get 3g nevermind roaming 3g.
532: [03:49:00] <Keksters> Their lack of cell towers is slightly annoying.
533: [03:49:00] <Pyromanik> yeah, I heard you get charged a heap if you're on roam
534: [03:49:00] <Keksters> Well their data packages include roaming
535: [03:50:00] <Keksters> Well I travel between areas a fair bit
536: [03:50:00] <irogue> ah yes
537: [03:50:00] <Keksters> I'm mostly between Wellington, Taranaki and Manawatu
538: [03:50:00] <irogue> Keksters: what area are you?
539: [03:50:00] <Keksters> I go home for a week and lose reception from my phone being in my pocket =/
540: [03:51:00] <Pyromanik> the
541: [03:51:00] <Pyromanik> fuck
542: [03:51:00] <Pyromanik> 2 elements
543: [03:51:00] <Pyromanik> both as unstyled as each other
544: [03:51:00] <irogue> in auckland and hamilton, at least, i've never found anywhere without 2degrees towers. but in between the two of course it roams to VF
545: [03:51:00] <Pyromanik> same grandparent
546: [03:51:00] <Pyromanik> same tree depth
547: [03:51:00] <Pyromanik> style inspectors show no difference at all in applied styles
548: [03:51:00] <Pyromanik> BUT
549: [03:51:00] <Pyromanik> one is 20 px high, the other is 25px.
550: [03:51:00] <Pyromanik> what
551: [03:52:00] <Keksters> More content?
552: [03:52:00] <Pyromanik> differing heights in "no image"
553: [03:52:00] <Pyromanik> MAD
554: [03:52:00] <Keksters> But Taranaki is on roaming despite the ads definitely having a tower marker in Taranaki region.
555: [03:52:00] <Pyromanik> floated left
556: [03:52:00] <Pyromanik> shouldn't matter
557: [03:52:00] <Keksters> lol weird.
558: [03:52:00] <Pyromanik> browsers are dicks
559: [03:52:00] <Pyromanik> Oh
560: [03:52:00] <Pyromanik> oh
561: [03:52:00] <Pyromanik> oh
562: [03:52:00] <Pyromanik> neg
563: [03:52:00] <Pyromanik> WHAT
564: [03:52:00] <Keksters> Anyway. Yeah Wellington's fairly stable
565: [03:53:00] <Keksters> North Taranaki
566: [03:53:00] <Pyromanik> yeah, but where in the Naki
567: [03:53:00] <Keksters> New Plymouth
568: [03:53:00] <Pyromanik> if you're in Hawera and the tower is in NP then you're fucked
569: [03:53:00] <Keksters> I think the tower is in Hawera, tbh
570: [03:53:00] <Pyromanik> there's a bloody great mountain in the way
571: [03:54:00] <Pyromanik> I think a better question is why do you travel to NZ's appendix so often?
572: [03:54:00] <Pyromanik> mind you, that could also describe the Hawke's bay.
573: [03:55:00] <Keksters> Because I'm from NP, bf studies in Palmy and I was studying in Wellington.
574: [03:55:00] <Pyromanik> thought so.
575: [03:55:00] <Pyromanik> only people from the Naki talk about the Naki, lol
576: [03:55:00] <Keksters> lol so true.
577: [03:55:00] <Keksters> Only people from the Naki appear to be able to pronounce Taranaki
578: [03:56:00] <Keksters> Pretty much any Maori placename with more sllyables than what you expect.
579: [03:56:00] * DigNZ quit (Quit: DigNZ)
580: [03:56:00] <Pyromanik> Nah, the true test is Whangamomona
581: [03:56:00] <Keksters> And Paraparaumu
582: [03:56:00] * shameer has joined #silverstripe
583: [03:56:00] <Pyromanik> "PARA'PRAM?"
584: [03:56:00] <Pyromanik> amirite?
585: [03:56:00] <Pyromanik> xD
586: [03:57:00] <Pyromanik> depends on whether or not one is Maori mostly.
587: [03:57:00] <Keksters> Yeah I never understood how they got that.
588: [03:57:00] <Keksters> Pauatahanui is another one I've noticed.
589: [03:57:00] <Keksters> Bf's dad says "Pauatanui"
590: [03:57:00] <Keksters> I'm like "you've missed a whole sound there."
591: [03:57:00] <Keksters> 1/64th
592: [03:58:00] <Pyromanik> being Maori isn't only a blood thing.
593: [03:58:00] <Keksters> But it's okay, I know someone who is a quarter and is whiter than me.
594: [03:58:00] <Pyromanik> exactly.
595: [03:58:00] <Keksters> Yeah that too.
596: [03:59:00] <Pyromanik> Ngati Ruanui?
597: [03:59:00] <Keksters> Would've thought it could have come in handy for scholarships
598: [03:59:00] <Pyromanik> Did for me, rofl.
599: [03:59:00] <Keksters> But nope, one of the biggest iwi - need to be at least an 1/8
600: [04:00:00] <Pyromanik> Depends on the scholarship
601: [04:00:00] <Keksters> Majority of the Ngapuhi scholarships I found required you to be able to locate your maori ancestor within your grandparents.
602: [04:00:00] <Pyromanik> The one I got you had to apply to your iwi's locale.
603: [04:00:00] * shameer quit (Ping timeout: 245 seconds)
604: [04:01:00] <Pyromanik> I was one.
605: [04:01:00] <Keksters> Hmh.
606: [04:01:00] <Pyromanik> each area had 4 to give
607: [04:01:00] <Pyromanik> most of the larger ones had speech tests and spend a night on a marae etc.
608: [04:01:00] <Pyromanik> only 4 people applied to Taranaki / Whanganui
609: [04:02:00] <Keksters> Didn't get any scholarships.
610: [04:02:00] <Pyromanik> 1k, coming my way.
611: [04:02:00] <Pyromanik> I felt pretty stink, but my mother was proud.
612: [04:02:00] <Keksters> Yeah I also had the laze during yr 13
613: [04:02:00] <Pyromanik> lol
614: [04:03:00] <Pyromanik> If I were asked I could have been able to locate my Maori ancestor and all that. I just haven't been raised around the culture pretty much at all and can't put a sentence together to save myself.
615: [04:03:00] <irogue> Keksters: fyi, http://dl.dropbox.com/u/22487235/fusion.html
616: [04:03:00] <irogue> 1 tower in Hawera, heaps in NP
617: [04:04:00] <Pyromanik> hahaha
618: [04:04:00] <Pyromanik> 1 vodaphone tower
619: [04:04:00] <Keksters> Buut I'm still the first in my extended family to be graduating
620: [04:04:00] <Keksters> Well despite all those towers I'm still on roaming
621: [04:04:00] <Keksters> Well. In my generation
622: [04:04:00] <Pyromanik> that counts as roaming, no/
623: [04:04:00] <irogue> nono i'm just looking at 2d
624: [04:05:00] * nickmolhoek quit (Quit: nickmolhoek)
625: [04:05:00] <Pyromanik> is that a good thing or a bad thing?
626: [04:05:00] <Pyromanik> haah
627: [04:05:00] <Keksters> She's getting married in just under two weeks and is the first one to do so
628: [04:05:00] <Pyromanik> no towers in Hawera irogue
629: [04:05:00] <Keksters> Honestly. My sister and I are some of the youngest in our cousins.
630: [04:05:00] <Pyromanik> my uncle commented after my grandfather came to my graduation "but he never came to anyone elses"... then he paused for a bit and said "I suppose when I think about it, none of us graduated"
631: [04:06:00] <Keksters> Depends on your values, I guess.
632: [04:06:00] <irogue> lol auckland cbd
633: [04:06:00] <Keksters> Pretty much all of my cousins older than me have kids.
634: [04:07:00] <Keksters> Anyway. I better be off.
635: [04:07:00] <irogue> https://dl.dropbox.com/u/4618071/cbd-towers.png
636: [04:08:00] <Keksters> Anyway, bye!
637: [04:08:00] <Pyromanik> lol irogue, high traffic volume area
638: [04:08:00] <Pyromanik> ciao
639: [04:08:00] <Pyromanik> have good holiday
640: [04:08:00] <Keksters> Gotta go hate myself at the gym.
641: [04:08:00] <Pyromanik> don't shoot any flags.
642: [04:08:00] <Pyromanik> xD
643: [04:08:00] <Keksters> I'll try.
644: [04:08:00] <Pyromanik> it's inevitable
645: [04:08:00] <Keksters> Indeed.
646: [04:09:00] * willr_ quit (Quit: willr_)
647: [04:09:00] * Keksters quit (Quit: Page closed)
648: [04:09:00] * Pyromanik has left #silverstripe
649: [04:09:00] <Pyromanik> time to go!
650: [04:09:00] <Pyromanik> yes, three halves
651: [04:09:00] <Pyromanik> one half the country gets together and goes "bullshit holiday", the other half go "bullshit holiday" and the other half go "meh"
652: [04:38:00] * Stomach quit (Quit: Leaving.)
653: [04:40:00] * cloph_away1 has joined #silverstripe
654: [04:42:00] * cloph_away quit (Ping timeout: 264 seconds)
655: [05:03:00] * irogue quit ()
656: [05:06:00] * congii quit (Ping timeout: 245 seconds)
657: [05:35:00] * mrzero_ has joined #silverstripe
658: [05:35:00] * mrzero_ has joined #silverstripe
659: [05:35:00] * mrzero_ quit (Changing host)
660: [05:39:00] * mrzero quit (Ping timeout: 264 seconds)
661: [05:39:00] * mrzero_ is now known as mrzero
662: [05:46:00] * mrzero has joined #silverstripe
663: [05:46:00] * mrzero quit (Read error: Connection reset by peer)
664: [05:59:00] * congii has joined #silverstripe
665: [06:03:00] * Shrike_Finland quit (Quit: Leaving.)
666: [06:04:00] * Shrike_Finland has joined #silverstripe
667: [06:05:00] * Shrike_Finland quit (Client Quit)
668: [06:07:00] * dendeffe has joined #silverstripe
669: [06:27:00] <congii> gee.. i'm stuck with this problem... http://www.silverstripe.org/all-other-modules/show/22368
670: [06:46:00] <congii> any silverstripe 3 users? how do you implement front-end user registration?
671: [07:01:00] * simon_w|air has joined #silverstripe
672: [07:09:00] * samichlaus quit (Remote host closed the connection)
673: [07:39:00] * dendeffe quit (Quit: dendeffe)
674: [07:39:00] <FrozenFire> congii, PHP version?
675: [07:39:00] <FrozenFire> congii, Also, in SS 3, don't use DataObject::get
676: [07:40:00] <FrozenFire> Use ClassName::get()->filter(...)
677: [07:40:00] <FrozenFire> E.g. Member::get()->filter("Email", $data["Email"])->exists()
678: [07:41:00] <FrozenFire> The code that you provide in your forum post has no obvious deficits that would cause the password issue
679: [07:42:00] <FrozenFire> Might be a PHP version thing to do with the < 5.3.7 Blowfish bug
680: [07:43:00] * g4b0 has joined #silverstripe
681: [07:44:00] <simon_w|air> congii, seen this before, but couldn't be bothered tracking it down. Call the field SetPassword rather than Password
682: [07:46:00] <simon_w|air> Using SetPassword for Member-related forms is also a good idea in general
683: [07:48:00] * willr_ has joined #silverstripe
684: [07:48:00] <simon_w|air> willr_, March 9
685: [07:48:00] * willr_ has joined #silverstripe
686: [07:48:00] * willr_ quit (Changing host)
687: [07:49:00] <willr_> Need a hand with that?
688: [07:49:00] <willr_> Can be organized.
689: [07:49:00] <simon_w|air> I'll be sending out the mass email once I actually move
690: [07:50:00] <simon_w|air> Well, a car with a towbar/trailer would be rather useful
691: [07:50:00] <simon_w|air> Or a car with a tow bar at least, now that I have whitewear
692: [07:51:00] <simon_w|air> If you're free this Saturday, a hand would be great
693: [07:52:00] <willr_> Sadly I don't have a tow bar, would be rather handy but I can fit a lot of crap into that corolla
694: [07:53:00] <willr_> So big stuff would probably not work.
695: [07:53:00] <willr_> Where are you moving too?
696: [07:54:00] <simon_w|air> Reading street
697: [07:54:00] <simon_w|air> Which is just up from the mall
698: [08:00:00] <willr_> handy.
699: [08:00:00] <simon_w|air> Yeah, student leases
700: [08:00:00] <willr_> Was helping Millers neighbours move out last weekend. Seems to be the season for it
701: [08:01:00] * chillu has joined #silverstripe
702: [08:03:00] <willr_> Still a single lease or sharing with flatmates now?
703: [08:05:00] <simon_w|air> single lease
704: [08:05:00] <simon_w|air> but two room, so I get a study
705: [08:06:00] <simon_w|air> And should hopefully upgrade to warp speed cable
706: [08:11:00] <simon_w|air> Not a student any more :)
707: [08:11:00] <willr_> high roller.
708: [08:15:00] <simon_w|air> Main problem is TC didn't know my place existed until I tried moving there, so could be interesting
709: [08:17:00] <ss23> TC, the epitome of good internet
710: [08:18:00] <ss23> jk lol, they're not working on that.
711: [08:18:00] <congii> sorry.. PHP version 5.3 i already change to Member::get() instead of get_one
712: [08:18:00] <ss23> I hear they're working on having DNS servers that work!
713: [08:19:00] <congii> PHP Version 5.3.13 to be exact..
714: [08:20:00] <congii> <@simon_w|air> congii, seen this before, but couldn't be bothered tracking it down. Call the field SetPassword rather than Password - what do you mean? got code sample?
715: [08:20:00] <simon_w|air> new ConfirmedPasswordField('SetPassword', 'New Password')
716: [08:21:00] <simon_w|air> ss23, you're just jealous that I'm on cable
717: [08:21:00] <ss23> simon_w|air: Yeah well, I'm almost on fibre!
718: [08:21:00] <congii> FrozenFire, i got PHP version 5.3.13?
719: [08:21:00] <ss23> :<
720: [08:21:00] <ss23> And that puts me on the very last group of people to get fibre
721: [08:21:00] <ss23> In reality, I'm ~5 houses away from being the first peopel to get fibre.
722: [08:21:00] <simon_w|air> I have fibre for breakfast!
723: [08:22:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4588775
724: [08:22:00] <simon_w|air> My parents were about that far away from being able to get CityLink
725: [08:22:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/ba825cec286c...3931945e6284
726: [08:22:00] * travis-ci has joined #silverstripe
727: [08:22:00] * travis-ci has left #silverstripe
728: [08:22:00] <travis-ci> [travis-ci] silverstripe/sapphire#1321 (3.1 - 3931945 : Ingo Schommer): The build has errored.
729: [08:24:00] * dendeffe has joined #silverstripe
730: [08:26:00] <congii> maybe this should also fix the memberprofiles module... it is having the same issue on registration
731: [08:26:00] <congii> @simon_w|air, darn! it worked :) geeee thanks! your the man! :)
732: [08:27:00] <simon_w|air> Yeah, I suspect there's a bug in encrypting passwords properly, which SetPassword bypasses
733: [08:28:00] * FinBoWa has joined #silverstripe
734: [08:28:00] <willr_> More hats!
735: [08:28:00] <simon_w|air> willr_, I've still got some hats from the flat warming for this place we can wear on Saturday!
736: [08:29:00] <congii> hm.. i can't find any topic fixing the solution
737: [08:30:00] * FinBoWa quit (Client Quit)
738: [08:30:00] * FinBoWa has joined #silverstripe
739: [08:31:00] * zfmf has joined #silverstripe
740: [08:50:00] * congii quit (Ping timeout: 245 seconds)
741: [09:08:00] * kinglozzer has joined #silverstripe
742: [09:08:00] * iamss has joined #silverstripe
743: [09:09:00] <iamss> Hi Guys, how do I hide the uploadfield upon creating a new record in the gridfield?
744: [09:09:00] <iamss> the first time a create a record and attach an image and when I click create the image is gone
745: [09:10:00] <kinglozzer> iamss: When you first create the new record, it should say 'Files can be attached after you've saved the record for the first time' or something similar
746: [09:10:00] <iamss> any idea how to fix ?
747: [09:10:00] <kinglozzer> What version are you using?
748: [09:11:00] <iamss> I am using ss3 version latest
749: [09:12:00] <iamss> the word it says is "Attach files"
750: [09:14:00] * Bollig|DesignCty quit (Ping timeout: 276 seconds)
751: [09:17:00] * Bollig|DesignCty has joined #silverstripe
752: [09:20:00] <kinglozzer> iamss: Which version of SS3? 3.0.x ?
753: [09:23:00] <simon_w|air> iamss, if($this->ID) { // add uplaodfield }
754: [09:24:00] <simon_w|air> or, if it's automatic, if(!$this->ID) { // remove uplaodfield }
755: [09:24:00] <simon_w|air> that's in getCMSFields()
756: [09:24:00] <simon_w|air> kinglozzer, <iamss> I am using ss3 version latest :)
757: [09:26:00] <iamss> Im using 3.0.2, but I believe should be automatic if no records yet should not allow to upload
758: [09:27:00] <simon_w|air> Yeah, but there was some regression with UploadField that stopped that
759: [09:27:00] <simon_w|air> and that's not latest
760: [09:27:00] <iamss> so the fix is made in what version ?
761: [09:28:00] <simon_w|air> It should be in 3.0.3
762: [09:28:00] <simon_w|air> Can't remember when the regression showed up
763: [09:29:00] <iamss> Oh I see, alright thanks simon & kinglozzer
764: [09:30:00] * popeshoe has joined #silverstripe
765: [09:33:00] <iamss> Question again guys how do I change the fields in gridfield when updating or creating a record?
766: [09:35:00] * travis-ci has joined #silverstripe
767: [09:35:00] <travis-ci> [travis-ci] silverstripe/sapphire#1322 (3.1 - 1acb416 : Ingo Schommer): The build passed.
768: [09:35:00] <iamss> what is the equivalent of getCMSFields_forPopup in GridField?
769: [09:35:00] <simon_w|air> iamss, getCMSFields()
770: [09:35:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/3931945e6284...1acb416a7f4a
771: [09:35:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4589962
772: [09:35:00] * travis-ci has left #silverstripe
773: [09:50:00] * iamss quit (Ping timeout: 245 seconds)
774: [10:06:00] * howardgrigg quit (Remote host closed the connection)
775: [10:07:00] * howardgr_ has joined #silverstripe
776: [10:07:00] * howardgrigg quit (Read error: Connection reset by peer)
777: [10:07:00] * howardgrigg has joined #silverstripe
778: [10:18:00] * howardgrigg has joined #silverstripe
779: [10:18:00] * howardgr_ quit (Remote host closed the connection)
780: [10:27:00] * priithansen has joined #silverstripe
781: [10:40:00] * instabil has joined #silverstripe
782: [10:43:00] <Bollig|DesignCty> anyone about to give me a quick tip with content-type headers in silverstripe?
783: [10:44:00] <Bollig|DesignCty> I find when I do something like die($this->Content) within, say, init() I get broken UTF-8 characters.
784: [10:44:00] <Bollig|DesignCty> is the fix as simple as using header('Content-Type: text/html; charset=utf-8'); above the output or even just in _config.php?
785: [10:46:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/commit/59bdc5d7db8f
786: [10:46:00] * travis-ci has left #silverstripe
787: [10:46:00] <Bollig|DesignCty> kinglozzer: ss doesn't handle the request with die()...
788: [10:46:00] <travis-ci> [travis-ci] silverstripe/sapphire#1324 (pulls/datetimefield-field-setters - 59bdc5d : Ingo Schommer): The build passed.
789: [10:46:00] * travis-ci has joined #silverstripe
790: [10:46:00] <kinglozzer> Bollig|DesignCty: http://api.silverstripe.org/3.0/framework/control/SS_HTTPRequest.html#methodaddHeader
791: [10:46:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4591197
792: [10:47:00] <Bollig|DesignCty> unless I'm missing something?
793: [10:47:00] <kinglozzer> Why are you using die?
794: [10:48:00] <kinglozzer> Bollig|DesignCty: I wouldn't use die(). I assume you're doing AJAX or something along those lines, if you're in a controller set the header and then use $this->renderWith() and render it with a blank template
795: [10:49:00] <kinglozzer> IIRC it's $this->request->addHeader();
796: [10:50:00] <simon_w|air> I'm going with mostly
797: [10:50:00] <Zauberfisch> cc simon_w
798: [10:50:00] <Zauberfisch> I just took over a project, and have a deadline to fix a lot of things until thursday, its frontend only, no CMS, and I need to use a gridfield, styling does not need to be perfect because its "admin only" frontend. is gridfield frontend ready?
799: [10:50:00] <Bollig|DesignCty> kinglozzer: yeah, sorry, I'm just testing with die()
800: [10:51:00] * dendeffe quit (Quit: dendeffe)
801: [10:51:00] <kinglozzer> Bollig|DesignCty: I think sometimes jQuery (if you're using that) can fix the broken characters when it parses the response
802: [10:51:00] <simon_w|air> Definitely use 3.1 over 3.0, and there may just be a few request handler or JS niggles
803: [10:51:00] <FinBoWa> Bollig|DesignCty: there is also the Debug::dump that you could use to output stuff out :)
804: [10:51:00] <Bollig|DesignCty> kinglozzer: we're having issues with emails that ss is sending killing utf-8 characters, and I'm noticing even getting the Content field of a page and die()'ing it is producing the same error, so I'm wondering if there's a reason *not* to just set the content-type in _config and be done with it :)
805: [10:51:00] <Zauberfisch> simon_w|air mostly? :S
806: [10:52:00] <Bollig|DesignCty> kinglozzer: but I'm wondering if we just need to set the header before renderwith() now...
807: [10:53:00] <Zauberfisch> simon_w|air any chance you could elaborate on those "niggles"?
808: [10:53:00] <kinglozzer> Bollig|DesignCty: Are you using the built-in mail functions?
809: [10:56:00] <Zauberfisch> well, going out for a meal now, I'll try my luck later
810: [10:56:00] <Zauberfisch> fml
811: [10:56:00] <Bollig|DesignCty> kinglozzer: sorry, it's part of ecommerce, so I'm just checking :) Yeah, I believe we're using the built-in mail... will that change things?
812: [10:56:00] <simon_w|air> Nope, never tried
813: [10:56:00] <Zauberfisch> ok
814: [10:56:00] <Zauberfisch> hmmm
815: [10:58:00] <kinglozzer> Bollig|DesignCty: No, I was just wondering if using PHP's mail was causing it. If you're using the Email class you could try addCustomHeader(): http://api.silverstripe.org/3.0/framework/email/Email.html#methodaddCustomHeader
816: [11:19:00] * simon_w|air quit (Quit: This computer has gone to sleep)
817: [11:20:00] <Bollig|DesignCty> thanks kinglozzer for the assist, all working now :)
818: [11:20:00] * willr_ quit (Quit: willr_)
819: [11:23:00] * dendeffe has joined #silverstripe
820: [11:35:00] * lx-berlin has joined #silverstripe
821: [11:39:00] * gelignite has joined #silverstripe
822: [11:46:00] * ARNHOFF has joined #silverstripe
823: [11:52:00] * Error404NotFound quit (Disconnected by services)
824: [11:52:00] * Err404NotFound has joined #silverstripe
825: [11:53:00] * Err404NotFound quit (Client Quit)
826: [12:05:00] * Error404NotFound has joined #silverstripe
827: [12:11:00] <kinglozzer> Late reply but no problem :)
828: [12:12:00] * howardgrigg quit (Remote host closed the connection)
829: [12:13:00] * howardgrigg has joined #silverstripe
830: [12:17:00] * howardgrigg quit (Ping timeout: 248 seconds)
831: [12:29:00] * dove has joined #silverstripe
832: [12:32:00] * zfmf has left #silverstripe
833: [12:34:00] <travis-ci> [travis-ci] silverstripe/sapphire#1325 (3.1 - b350ded : Ingo Schommer): The build passed.
834: [12:34:00] * travis-ci has joined #silverstripe
835: [12:34:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/1acb416a7f4a...b350ded87ce6
836: [12:34:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4593091
837: [12:34:00] * travis-ci has left #silverstripe
838: [12:34:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
839: [12:40:00] <dove> anyone got any thoughts about: http://www.silverstripe.org/data-model-questions/show/22375?
840: [13:00:00] * patjnr has joined #silverstripe
841: [13:02:00] * chito has joined #silverstripe
842: [13:02:00] * chito quit (Client Quit)
843: [13:04:00] * patjnr has left #silverstripe
844: [13:10:00] * patJnr has joined #silverstripe
845: [13:11:00] * UndefinedOffset has joined #silverstripe
846: [13:14:00] <g4b0> does the $belongs_many_many can be inherited?
847: [13:19:00] * Shrike_Finland has joined #silverstripe
848: [13:22:00] <lx-berlin> can anyone help me with this: http://www.silverstripe.org/general-questions/show/22376
849: [13:26:00] <lx-berlin> simon_w: could you take a quick look at it and tell me if this is somehow possible in the cms ?
850: [13:29:00] <patJnr> @lx-berlin; how are you managing the "categories" eg Designers, Testing etc
851: [13:30:00] <lx-berlin> this is not managed in any way. Currently i only have a list of employees (with FirstName, Surname, Phone, Picture, ...)
852: [13:31:00] <FinBoWa> well you could do that by creating a category data object and its relation is has one for the employee
853: [13:31:00] <lx-berlin> my first idea was to create a modeladmin for "teams". so that you can create a new "Team" and add employees to this team
854: [13:33:00] <lx-berlin> these categories (or subgroup headings) will be different in every TeamPage
855: [13:33:00] <lx-berlin> nah, maybe i need another TeamPage, that is for "management team" and its subgroups are "management Europe" (Fritz, Bob, Hans), "management USA" (George) ....
856: [13:35:00] <FinBoWa> this outlines basically what you want
857: [13:35:00] <FinBoWa> http://doc.silverstripe.com/framework/en/2.4/tutorials/5-dataobject-relationship-management
858: [13:35:00] <ARNHOFF> I have two forms on the same page (Userforms and subscribe form of silverstripe-newsletter), both have a validation and have the id Form_Form. How can I change the ID of one of these forms without having to hard code anything in any of these two modules?
859: [13:35:00] <FinBoWa> thought its for 2.3 but the has one, has many etc relations are still valid
860: [13:36:00] <FinBoWa> you just need to figure out what relates to what and then start mocking out the datastucture :)
861: [13:37:00] <dove> it gets in the way in most projects
862: [13:37:00] <dove> ugh, is there any way to turn form scaffolding off?
863: [13:38:00] <dove> sure, you can remove them manually afterwards, but it's not semantic
864: [13:38:00] <lx-berlin> FinBoWa: Taking a look at this: http://doc.silverstripe.com//src/framework_2.4/docs/en/tutorials/_images/gsoc-mentor-student-selection.jpg
865: [13:38:00] <dove> namely [User Error] collateDataFields() I noticed that a field called 'Email' appears twice in your form: 'Form_ItemEditForm'. One is a 'EmailField' and the other is a 'TextareaField'
866: [13:38:00] <lx-berlin> i see that this pages has a many_many relation. So i can pick many of these students. But this will not allow me to group the selected in subgroups with custom group headlines
867: [13:39:00] <lx-berlin> its just one list of n students for this page
868: [13:40:00] <patJnr> lx-berlin: in you case many_many allows you to add employees into many Groups, ie A Designer can also be a Tester
869: [13:40:00] * UndefinedOffset1 quit (Client Quit)
870: [13:40:00] * UndefinedOffset quit (Disconnected by services)
871: [13:40:00] <FinBoWa> yea .. thus a group
872: [13:40:00] * UndefinedOffset1 has joined #silverstripe
873: [13:41:00] <lx-berlin> but the groups are not existing anyway. How can i add n groups to such a page before i add n students to each of the groups
874: [13:42:00] <lx-berlin> how could i select: very good students: - Ofir, - Marcus grade B students: - Lakshan, - Quin ugly students: - Quin, - Marcus
875: [13:42:00] <patJnr> create a new DataObject called Category which has_many Employees. Employee has_one Category
876: [13:43:00] <lx-berlin> patJnr: if so that would rather be a many_many
877: [13:43:00] <FinBoWa> or data objects also
878: [13:43:00] <FinBoWa> lx-berlin -> either those are enum values
879: [13:44:00] <lx-berlin> but then this is what i planned first: managing "Teams" in modeladmin
880: [13:44:00] <lx-berlin> i know basic relations
881: [13:44:00] <patJnr> Employee $belongs_many_many
882: [13:44:00] <lx-berlin> ok, i think i cannot explain why this isnt as simple as you think
883: [13:44:00] <patJnr> Category many_many Employees
884: [13:45:00] <FinBoWa> lx-berlin: i don't think i can explain you how simple this is :D
885: [13:46:00] <FinBoWa> that will catte you the view to add products and categories
886: [13:46:00] <lx-berlin> thanks, i know the basics of templating language :)
887: [13:46:00] <FinBoWa> by statig this public static $managed_models = array('Product', 'Category'); // Can manage multiple models
888: [13:46:00] <patJnr> <% loop Categories %>
889: [13:46:00] <patJnr> you just have to manage the Categories in model admin
890: [13:46:00] <FinBoWa> for example if you follow the ss3 model admin guide
891: [13:47:00] <FinBoWa> if they have the relation set right
892: [13:47:00] <FinBoWa> catte = create
893: [13:47:00] <patJnr> lx-berlin, can you ask you question again
894: [13:47:00] <lx-berlin> i also know how to manage multiple dos in modeladmin
895: [13:49:00] <lx-berlin> lets say you have a new page type "TeamPage.php". The client asks you "we need to be able to define groups of people (by selecting from the existing employee list in the cms) to create a TeamPage. But its not just a list of 10 people but they are seperated in categories (headlines). But we will need to have many of these teampages. Next Month there will be a project for mercedes. And we have a team for them.
896: [13:50:00] <lx-berlin> and their subtitle is always different
897: [13:50:00] <lx-berlin> so a teampage can have n of these subgoups
898: [13:51:00] <lx-berlin> for mercedes project might be: - car financing: fritz, hans
899: [13:51:00] <lx-berlin> - testdriving: geroge, hans
900: [13:51:00] <FinBoWa> team -> has many groups -> group has many people
901: [13:52:00] <lx-berlin> or many_many :)
902: [13:52:00] <FinBoWa> yea or many many
903: [13:52:00] <patJnr> these categories, can they be used on other TeamPages ie shared across the Teams?
904: [13:52:00] <FinBoWa> still not seeing the problem here
905: [13:52:00] <FinBoWa> you just outlined the data structure there
906: [13:53:00] * Emil_Blume has joined #silverstripe
907: [13:53:00] <patJnr> how many objects do you want to use, the solutions can be very simple or it can be very complex
908: [13:53:00] <lx-berlin> lets say you create a team of: hans, fritz and mike. In the teams management you give this team a title , e.g. "Designers", because you know you will list these 3 on the webteam page with subheadline "Designers"
909: [13:53:00] <lx-berlin> just a momennt
910: [13:54:00] <patJnr> lx-berlin where are you creating this title
911: [13:54:00] * UndefinedOffset has joined #silverstripe
912: [13:55:00] <patJnr> can a Team member belong to more than one Team?
913: [13:55:00] <ec8or> lx-berlin: will you need to attach functionality to or re-use these groups for anything? or is it just for listing a bunch of names on the page?
914: [13:55:00] <patJnr> its not a title but an object called Team which has a $db field called "Title"
915: [13:56:00] <patJnr> ec8or: he is saying the group are user defined
916: [13:57:00] <ec8or> i'd probably just add a data model for "subheadline" and manage those from the team page, and the subheadline has_many members... create them new for each page
917: [13:57:00] <lx-berlin> sorry, got a phonecall. brb
918: [13:58:00] <patJnr> i am not seeing the problem here.
919: [13:58:00] <FinBoWa> i think he wants custom team names and per project a singe user can be in any team
920: [13:59:00] <FinBoWa> either
921: [13:59:00] <FinBoWa> me ither
922: [13:59:00] * dove quit (Quit: Page closed)
923: [14:00:00] <patJnr> TeamPage has_many Teams, Team many_many Employees, Employee $belong_many_many Teams
924: [14:00:00] <patJnr> as simple as this
925: [14:06:00] <lx-berlin> re
926: [14:07:00] <lx-berlin> yes, thats basically the relations. I just wanted a nicer way to setup such a TeamPage, without going to "Teams" modeladmin first and building all teams, then returning to your sitetree, add a new teampage and selecting all teams for this page
927: [14:08:00] <lx-berlin> i thought of a way to do all this in the teampage management
928: [14:09:00] <patJnr> pleasure
929: [14:09:00] <lx-berlin> thanks guys!
930: [14:35:00] * EPIK quit (Ping timeout: 256 seconds)
931: [14:50:00] * FinBoWa quit (Quit: FinBoWa)
932: [14:50:00] * Shrike_Finland quit (Quit: Leaving.)
933: [15:01:00] * lx-berlin has left #silverstripe
934: [15:33:00] * funkygibbon_ quit (Quit: Leaving)
935: [15:51:00] <Webdoc> is ther posibility to add costum form to dataobject
936: [15:51:00] <Webdoc> hi
937: [15:51:00] <Webdoc> for feedback
938: [15:51:00] * Webdoc has joined #silverstripe
939: [15:53:00] <Webdoc> like its made in ssbits tutorial
940: [15:55:00] <patJnr> you want to add a form which saves to a DataObject?
941: [15:56:00] <Webdoc> no
942: [15:57:00] <Webdoc> each product sends its name for feedback
943: [15:57:00] <Webdoc> subject
944: [15:57:00] <Webdoc> i need to add form for feedback to frontend showing dataobject products
945: [15:58:00] <Webdoc> http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/
946: [15:58:00] <Webdoc> or is there a way to include it
947: [15:58:00] <Webdoc> like this
948: [15:58:00] <Webdoc> but for dataobject
949: [15:59:00] <Webdoc> so it takes the dataobject product name and put it as subject
950: [15:59:00] <Webdoc> yes
951: [15:59:00] * r3v3rb has joined #silverstripe
952: [15:59:00] <patJnr> so if a user is on product x you want the name of that product to be send as well?
953: [15:59:00] <r3v3rb> ec8or: got the files ;)
954: [16:00:00] * zfmf has joined #silverstripe
955: [16:02:00] <ec8or> i just want to get the latest wall post from a page using /feed but i keep getting comments as well
956: [16:02:00] <ec8or> has anyone used the facebook api here?
957: [16:02:00] <patJnr> or let me say in which controller are you defining you form
958: [16:02:00] <patJnr> on the template, is the Feedback form on the same page as the Product?
959: [16:03:00] <patJnr> webdoc tha should work fo you
960: [16:03:00] <patJnr> new HiddenField('ProductName','Name',$this->Title'),
961: [16:04:00] * Error404NotFound has joined #silverstripe
962: [16:04:00] * Error404NotFound quit (Read error: Connection reset by peer)
963: [16:04:00] <Webdoc> i use 2.4 the problem is when i include form page to dataojects template i cant use up
964: [16:05:00] * Error404NotFound quit (Max SendQ exceeded)
965: [16:05:00] <Webdoc> if i control product and after end control i put the include code it dont gonna get the name for form
966: [16:06:00] <Webdoc> after i include the form it isnt inside the product control
967: [16:06:00] <r3v3rb> ec8or: no stayed away from it like the plague
968: [16:06:00] * Error404NotFound has joined #silverstripe
969: [16:06:00] <ec8or> r3v3rb: driving me insane, i just want to display the latest post on a wall but it is super messy
970: [16:07:00] <r3v3rb> ec8or: yes its a mucky api imho
971: [16:07:00] * Error404NotFound quit (Max SendQ exceeded)
972: [16:07:00] <Webdoc> so i need to push somehow the productname to subject title
973: [16:10:00] * Error404NotFound has joined #silverstripe
974: [16:16:00] * Error404NotFound quit (Ping timeout: 248 seconds)
975: [16:18:00] <patJnr> I am not sure why you are putting your form inside the DataObject have you tried moving that form into Page_Controller
976: [16:19:00] * instabil quit (Read error: Connection reset by peer)
977: [16:21:00] * instabil has joined #silverstripe
978: [16:22:00] <patJnr> @webdoc, do you have Product_Controller?
979: [16:26:00] <Webdoc> no
980: [16:27:00] <Webdoc> product is dataobject
981: [16:27:00] <patJnr> what is the PageType that the product is sitting on ?
982: [16:28:00] <Webdoc> class Product extends DataObject
983: [16:29:00] <Webdoc> and the dataobject is in Productlist wich is page
984: [16:29:00] <Webdoc> wich has many Products
985: [16:31:00] <Webdoc> but how i get them to show in page where is dataobejct information
986: [16:31:00] <patJnr> we are gettign there
987: [16:31:00] <patJnr> right define your form inside the Productlist_Controller just like ContactPage_Controller
988: [16:31:00] <Webdoc> the form needs to be in controller that means in Page not in dataobject
989: [16:31:00] <patJnr> yes
990: [16:31:00] <patJnr> next question, how are you accessing the product page in the browser
991: [16:32:00] <patJnr> thats the template
992: [16:32:00] <patJnr> www.yousite.com/product/show/21/ like this
993: [16:32:00] <patJnr> paste the full url please
994: [16:32:00] <Webdoc> so the productpage is Productlist_show.ss
995: [16:32:00] <Webdoc> i use /show/id
996: [16:33:00] <Webdoc> http://topseadmed.e-sstonia.eu/seadmed/kohv-ja-seadmed/taeisautomaatsed-kohvimasinad/show/3
997: [16:34:00] <patJnr> ok ok ok, which one is the url segment for the Productlist page
998: [16:35:00] <Webdoc> this is productlist http://topseadmed.e-sstonia.eu/seadmed/kohv-ja-seadmed/taeisautomaatsed-kohvimasinad/
999: [16:36:00] <Webdoc> function Product(){ if(isset($this->request) && $this->request->param('ID')){ return DataObject::get_by_id('Product', (int)$this->request->param('ID')); } }
1000: [16:36:00] * r3v3rb quit (Quit: r3v3rb)
1001: [16:36:00] <patJnr> so you have method called show
1002: [16:36:00] <Webdoc> this is how to control
1003: [16:37:00] <Webdoc> and this controls it
1004: [16:37:00] <Webdoc> now
1005: [16:37:00] <Webdoc> both in controller
1006: [16:37:00] <Webdoc> and also thats all i have in controller right no
1007: [16:37:00] <Webdoc> function show(){ return array(); }
1008: [16:38:00] <Webdoc> not in products page
1009: [16:38:00] <Webdoc> if i insert the form code in there it only will show the form in llist
1010: [16:39:00] <Webdoc> even if i have set it in the productlistpage
1011: [16:39:00] <Webdoc> if i use the $Costumform in the productpage nothing is visible
1012: [16:39:00] <patJnr> you might want to change how you are doing it as you need to pass the form only when you are at show
1013: [16:40:00] <Webdoc> even if i have set it in the productlist page i mean
1014: [16:41:00] <Webdoc> this is form part
1015: [16:41:00] <Webdoc> any idea what i need to change in colntroller to get it to show
1016: [16:41:00] <patJnr> 1 sec
1017: [16:41:00] <Webdoc> static $allowed_actions = array( 'ContactForm' ); function ContactForm() { // Create fields $fields = new FieldSet( new TextField('Name', 'Name*'), new EmailField('Email', 'Email*'), new TextareaField('Comments','Comments*') ); // Create action $actions = new FieldSet( new FormAction('SendContactForm
1018: [16:42:00] <Webdoc> i need to get hidden field in there also
1019: [16:42:00] <Webdoc> or something like that
1020: [16:45:00] <patJnr> change you show method to this function show(){
1021: [16:45:00] <patJnr> $data = array(
1022: [16:45:00] <patJnr> "Form" => $this->ContactForm(),
1023: [16:45:00] <patJnr> );
1024: [16:45:00] <patJnr> return $this->customise($data)->renderWith(array('Productlist_show', 'Productlist', 'Page'));
1025: [16:45:00] <patJnr>
1026: [16:45:00] <patJnr> }
1027: [16:45:00] <patJnr> "Product" => $this->Product(),
1028: [16:45:00] <patJnr> in what DataObject are you saving the contactform submisions or you are just sending they via email
1029: [16:47:00] <Webdoc> just sending
1030: [16:47:00] <patJnr> also add this to the form $product = $this->Product();
1031: [16:47:00] <patJnr> new HiddenField('ProductName','Name', $product->Title),
1032: [16:48:00] <Webdoc> i try and let u know
1033: [16:48:00] <Webdoc> ok the tnk
1034: [16:48:00] <patJnr> cool, let me know how it goes
1035: [16:48:00] <patJnr> you can now get the Product name by doing this $data['ProductName']
1036: [16:50:00] <Webdoc> new HiddenField('ProductName','Name', $product->Title),
1037: [16:50:00] <Webdoc> if the ProductName is the title part i use as u tell?
1038: [16:50:00] <Webdoc> or
1039: [16:51:00] * catcher has joined #silverstripe
1040: [16:51:00] <Webdoc> new HiddenField('ProductName','Name', $product->ProductName),
1041: [16:52:00] <patJnr> in your Product class what do you as the Name or Title of that product?
1042: [16:54:00] <Webdoc> in db ProductName is the name of product in dataobject called product
1043: [16:55:00] <Webdoc> where i add this $product = $this->Product();
1044: [16:57:00] <patJnr> then instead of Title use $product->ProductName
1045: [16:57:00] <patJnr> add it one line above $fields = new FieldSet(
1046: [17:01:00] * g4b0 quit (Remote host closed the connection)
1047: [17:08:00] * kinglozzer quit (Remote host closed the connection)
1048: [17:17:00] * gelignite has joined #silverstripe
1049: [17:18:00] * r3v3rb has joined #silverstripe
1050: [17:20:00] <r3v3rb> is there a way to have a report get generated at each months end?
1051: [17:20:00] <r3v3rb> and email the report somewhere?
1052: [17:21:00] <ec8or> cron
1053: [17:22:00] <r3v3rb> ec8or: got an example?
1054: [17:22:00] <r3v3rb> i know how to setup the cron in the server but the script is what I haven't done before
1055: [17:27:00] <ec8or> haven't done anything with SS_Reports
1056: [17:27:00] * dendeffe quit (Quit: dendeffe)
1057: [17:27:00] <ec8or> just grabbing things from the db
1058: [17:28:00] <lx-berlin> what ?
1059: [17:28:00] * lx-berlin has joined #silverstripe
1060: [17:28:00] <r3v3rb> ok, no worries - I have the report built, just need to create a script to run within cron
1061: [17:28:00] <r3v3rb> lx-berlin: will be able to help no doubt ;) ec8or
1062: [17:28:00] <ec8or> ah, you could just use wget and call the url
1063: [17:29:00] <lx-berlin> question about cron in SS ?
1064: [17:29:00] <lx-berlin> hi r3v3rb btw. :)
1065: [17:29:00] <ec8or> or there is this http://doc.silverstripe.org/framework/en/topics/commandline
1066: [17:29:00] <r3v3rb> hi lx-berlin :D
1067: [17:29:00] <lx-berlin> use queues jobs module . its the best module at all
1068: [17:30:00] <lx-berlin> but i guess that was not your question :)
1069: [17:30:00] <r3v3rb> lx-berlin: I need the site to auto run a report (which is built) and then email the resultant xls file
1070: [17:31:00] <lx-berlin> so, if you need to auto run a report i would suggest this module: https://github.com/nyeholt/silverstripe-queuedjobs
1071: [17:31:00] <lx-berlin> i have used it for some projects
1072: [17:32:00] <lx-berlin> as i said its the best ss module at all :)
1073: [17:32:00] <r3v3rb> thanks I'll take a look
1074: [17:35:00] * Webdoc quit (Ping timeout: 245 seconds)
1075: [17:38:00] <r3v3rb> :) we'll see lx-berlin
1076: [17:38:00] <r3v3rb> heh
1077: [17:44:00] <lx-berlin> for example we are using this module to send "newsletters". So when the admin wants to send a newsletter, he clicks on a button and this is added as a job to the queue
1078: [17:45:00] * lx-berlin afk
1079: [18:04:00] * r3v3rb quit (Quit: r3v3rb)
1080: [18:09:00] * Webdoc has joined #silverstripe
1081: [18:11:00] <FrozenFire> Well that's annoying
1082: [18:11:00] <FrozenFire> GridFieldExportButton is trimming leading zeroes
1083: [18:18:00] <FrozenFire> Just my spreadsheet application
1084: [18:18:00] <FrozenFire> Wait
1085: [18:18:00] <FrozenFire> Nope.
1086: [18:32:00] * Webdoc quit (Ping timeout: 245 seconds)
1087: [18:41:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/4600019
1088: [18:41:00] * travis-ci has joined #silverstripe
1089: [18:41:00] <travis-ci> [travis-ci] chillu/sapphire#52 (pulls/uploadfield-replacefile - 083b6b2 : Ingo Schommer): The build passed.
1090: [18:41:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/b350ded87ce6^...083b6b216405
1091: [18:41:00] * travis-ci has left #silverstripe
1092: [18:43:00] * simon2012 has joined #silverstripe
1093: [18:43:00] <simon2012> hello
1094: [18:43:00] <simon2012> anybody on?
1095: [18:44:00] <FrozenFire> Nobody at all
1096: [18:44:00] <FrozenFire> You're stuck in the past
1097: [18:44:00] <simon2012> oh no
1098: [18:45:00] <simon2012> I should order a pizza instead
1099: [18:45:00] <simon2012> anyways...maybe someone from the past can help me: I've got a problem changing base URL
1100: [18:46:00] <simon2012> I put in mysite/config.php
1101: [18:46:00] <simon2012> Director::setBaseURL('http://my.domain.com/');
1102: [18:46:00] <simon2012> but when I do that theme is broken
1103: [18:46:00] <simon2012> i.e. no CSS files etc. are loaded
1104: [18:49:00] <FrozenFire> The base URL is not the absolute base URL
1105: [18:49:00] <simon2012> So should I put there just a /
1106: [18:49:00] <FrozenFire> It's intended to be used for things like Director::setBaseURL("/my-website/");
1107: [18:50:00] <FrozenFire> But if you're not doing something weird, you shouldn't even set it.
1108: [18:51:00] <simon2012> well...but how do I move base URL anyways? I have installed SS in a subdir. Now I want it to be accessible on root folder, not a subdir. This works for mainpage (by changing .htaccess file) but all Sub-Page-URLs have the subdir in them as well
1109: [18:51:00] <simon2012> (does that make sense? ;))
1110: [18:53:00] <simon2012> :D
1111: [18:53:00] <FrozenFire> Not really
1112: [18:54:00] <FrozenFire> Move the files to the document root, if that's what you want.
1113: [18:56:00] <simon2012> which files? themes and uploads?
1114: [18:56:00] * dendeffe has joined #silverstripe
1115: [18:57:00] <FrozenFire> Yes?
1116: [18:57:00] * r3v3rb has joined #silverstripe
1117: [18:57:00] <FrozenFire> Currently you have all of your files in <your-document-root>/somesubdir/
1118: [18:57:00] <FrozenFire> No...
1119: [18:58:00] <simon2012> yes
1120: [18:58:00] <FrozenFire> Not sure why you would think otherwise
1121: [18:58:00] <simon2012> the whole SS installation?
1122: [18:58:00] <FrozenFire> So move them into your document root.
1123: [18:59:00] <FrozenFire> It's just an application
1124: [18:59:00] <FrozenFire> Not really a CMS thing.
1125: [18:59:00] <simon2012> yeah...well...sometimes I have a twisted mind. I new to this CMS stuff.
1126: [18:59:00] * C10ne has joined #silverstripe
1127: [19:00:00] <C10ne> Ah, nice, will try that
1128: [19:00:00] <FrozenFire> <% loop MyObject.SomeHasMany.sort(Created, DESC) %>
1129: [19:00:00] <C10ne> In template?
1130: [19:00:00] <FrozenFire> C10ne, RelationList extends DataList
1131: [19:00:00] <C10ne> Is there a way to sort/group has_many objects in template?
1132: [19:01:00] <FrozenFire> As that's more of a model/controller area, rather than view
1133: [19:01:00] <simon2012> oh wait...now I know why my thoughts don't make sense: I originally ran install.php when it was running in /somesubdir/. Then I changed apache's hosts.conf to have to subdir as DocumentRoot
1134: [19:01:00] <FrozenFire> simon2012, That'd do it. ;)
1135: [19:01:00] <FrozenFire> Grouping a list requires something on your DataObject that returns it that way
1136: [19:03:00] <FrozenFire> The simple things always get you.
1137: [19:03:00] <C10ne> Seams to work. Thanks FrozenFire!
1138: [19:03:00] <simon2012> and all of a sudden it works
1139: [19:03:00] <simon2012> *doh*
1140: [19:03:00] <simon2012> must have made something in a different way yesterday evening
1141: [19:03:00] <simon2012> thanks a lot for listening to me :)
1142: [19:04:00] <C10ne> I'll find the way to do the grouping (or something that will look like it)
1143: [19:07:00] * Webdoc has joined #silverstripe
1144: [19:08:00] <FrozenFire> C10ne, I recommend making a getter on your DataObject for that
1145: [19:09:00] <FrozenFire> E.g. MyObject::GroupedSomeHasMany()
1146: [19:09:00] <FrozenFire> And then you can do <% loop MyObject.GroupedSomeHasMany.GroupedBy(SomeField) %>
1147: [19:10:00] * dendeffe quit (Quit: dendeffe)
1148: [19:10:00] <C10ne> I'll figure it out, it's not classic grouping, I just need to display objects in a manner of CategoryTitle (once), and then all the objects in category.
1149: [19:10:00] <C10ne> It can be done in multiple ways
1150: [19:11:00] <FrozenFire> Ah. Yeah.
1151: [19:11:00] <C10ne> But I'll have to make a getter, an then, probably, filter the items by category
1152: [19:11:00] <C10ne> Or, I might get a better idea.
1153: [19:26:00] <FrozenFire> Well, GroupedList will get you half-way at least.
1154: [19:28:00] <FrozenFire> You might do something like public function ItemsByCategory() { $gl = new GroupedList($this->Items()); $gl = $gl->GroupBy("CategoryID"); foreach($gl as $group) $group->setField("Category", Category::get()->byID($group->getField("CategoryID"))); return $gl; }
1155: [19:28:00] <FrozenFire> That'll give you an iterable list that has CategoryID, Category and Children
1156: [19:34:00] * UndefinedOffset quit (Quit: Leaving.)
1157: [19:43:00] <r3v3rb> FrozenFire care to explain how you setup that getter in that format? of ::GroupedSomeHasMany()
1158: [19:44:00] <r3v3rb> answered :D
1159: [19:44:00] <r3v3rb> is it just a function still in the controller function GroupSomeHasMany(){ … }
1160: [19:44:00] * liam has joined #silverstripe
1161: [19:44:00] <FrozenFire> public function GroupedSomeHasMany() { return new GroupedList($this->SomeHasMany()); }
1162: [19:44:00] <r3v3rb> and SS3 knows to call it when used in that manner? ie MyObject::GroupedHasM
1163: [19:44:00] <FrozenFire> ;)
1164: [19:45:00] <r3v3rb> sure
1165: [19:45:00] <r3v3rb> so any function can be called as :: functionName ?
1166: [19:45:00] <FrozenFire> Nope
1167: [19:45:00] <r3v3rb> ok
1168: [19:45:00] <FrozenFire> That's just communicative syntax
1169: [19:45:00] <FrozenFire> Indicating what object the method exists on
1170: [19:45:00] <FrozenFire> If $obj is a MyObject, then $obj->GroupedSomeHasMany()
1171: [19:46:00] <r3v3rb> but I also use ::create for example
1172: [19:46:00] <FrozenFire> That's a static call
1173: [19:46:00] <FrozenFire> I know it can be a bit confusing ;)
1174: [19:46:00] <r3v3rb> indeed
1175: [19:46:00] <FrozenFire> It's just less words than doing $obj = new MyObject(); $obj->GroupedSomeHasMany();
1176: [19:46:00] <r3v3rb> gotcha
1177: [19:47:00] <r3v3rb> thought I was about to learn a new sweeter way of calling functions in SS3 thats all
1178: [19:48:00] <FrozenFire> Don't know how that'd be sweeter ;)
1179: [19:48:00] <FrozenFire> Heh
1180: [19:49:00] <r3v3rb> well I suppose it would just mean code would be structured more.
1181: [19:49:00] * UndefinedOffset has joined #silverstripe
1182: [19:50:00] <r3v3rb> heh, but maybe thats just my bad linguistics
1183: [19:50:00] <r3v3rb> ;)
1184: [19:50:00] <FrozenFire> Object::create is a static method
1185: [19:50:00] <r3v3rb> at the moment I use ::create etc for some stuff and $obj = new MyObject for other stuff
1186: [19:51:00] <r3v3rb> so usable across the board
1187: [19:52:00] <FrozenFire> Yeah. You might want to brush up on how OOP works. ;)
1188: [19:52:00] <FrozenFire> In theory, but rather unlikely. ;)
1189: [19:52:00] <r3v3rb> hahahahaa
1190: [19:52:00] <r3v3rb> so in theory I could do: return MyObject::create()->GroupSomeHasMany();
1191: [19:53:00] <FrozenFire> So far as I'm aware, the only advantage it gives you is chaining directly off of the constructor
1192: [19:53:00] <r3v3rb> arghhhhh, I've littered my latest project with it due to various docs i saw it in
1193: [19:53:00] <FrozenFire> And if you're using PHP 5.4, that's utterly moot
1194: [19:53:00] <FrozenFire> Since PHP 5.4 includes new object dereferencing
1195: [19:53:00] <FrozenFire> And despite what some *cough* simon_w *cough* would have you believe, Object::create is bad.
1196: [19:54:00] <FrozenFire> E.g. (new MyObject())->SomeMethod();
1197: [19:54:00] <r3v3rb> so no difference then whatsoever really
1198: [19:54:00] <r3v3rb> no gains from it I mean
1199: [19:54:00] <FrozenFire> No gains from Object::create that I'm aware of, no.
1200: [19:54:00] <FrozenFire> And if there are, that's a language flaw.
1201: [19:54:00] <FrozenFire> Err, a framework flaw, rather
1202: [19:54:00] <r3v3rb> it did make my forms look tidy though in the scripts ;)
1203: [19:55:00] <FrozenFire> Perhaps
1204: [19:55:00] <r3v3rb> http://www.sspaste.com/paste/show/511163c1add7e
1205: [19:55:00] <r3v3rb> for example
1206: [19:56:00] <r3v3rb> i hear you
1207: [19:56:00] <FrozenFire> So to speak
1208: [19:56:00] <r3v3rb> heh
1209: [19:56:00] <FrozenFire> That's a matter of opinion, really.
1210: [19:56:00] <FrozenFire> I prefer explicit constructor calls
1211: [19:57:00] <FrozenFire> https://github.com/burnbright/silverstripe-regionaldata
1212: [19:57:00] <r3v3rb> sure I was just playing when I saw the ::create style start to appear in some of the doc's i was reading and thought I would put it to the test. Previously I would have used constructor calls
1213: [19:57:00] * FrozenFire searches for jedateach and burnbright
1214: [19:57:00] <FrozenFire> I need to hug them
1215: [19:58:00] <FrozenFire> Not sure *how* they'd argue that, but they'd argue it.
1216: [19:58:00] <FrozenFire> Yup. And simon_w and others would probably argue that it's better in some regard.
1217: [19:59:00] * UndefinedOffset quit (Quit: Leaving.)
1218: [19:59:00] <r3v3rb> that probably doesn't work as well as I meant it too...
1219: [19:59:00] <r3v3rb> well its tomatoes and toemaytoes <- phonetically to get the meaning
1220: [19:59:00] <r3v3rb> lmao
1221: [20:00:00] * FrozenFire has it in his head that SS is another language :P
1222: [20:00:00] <r3v3rb> it almost is
1223: [20:00:00] <FrozenFire> So many fundamental differences, indeed.
1224: [20:00:00] <FrozenFire> Err, other frameworks, I mean
1225: [20:00:00] <FrozenFire> Heh. I just hate syntactic sugar which doesn't port sensibly to other languages.
1226: [20:01:00] <r3v3rb> says me after using ::create extensively in last project! hahaha
1227: [20:01:00] <r3v3rb> so yes, in many respects I agree - better to stay OOP/Language friendly I guess
1228: [20:02:00] <r3v3rb> FrozenFire: just for fun then, how would you set a new session variable in SS?
1229: [20:03:00] <r3v3rb> :D
1230: [20:03:00] * ARNHOFF quit (Read error: Connection reset by peer)
1231: [20:03:00] <r3v3rb> btw
1232: [20:03:00] <r3v3rb> completely off topic
1233: [20:03:00] <FrozenFire> Session::set()
1234: [20:04:00] * UndefinedOffset has joined #silverstripe
1235: [20:10:00] * FrozenFire then proceeds to smack jedateach/burnbright for a typo that requires a fork
1236: [20:10:00] <FrozenFire> :P
1237: [20:11:00] * dendeffe has joined #silverstripe
1238: [20:12:00] * willr_ has joined #silverstripe
1239: [20:12:00] * willr_ quit (Changing host)
1240: [20:12:00] * willr_ has joined #silverstripe
1241: [20:15:00] * FrozenFire wonders how well DataObject handles class_alias
1242: [20:18:00] * Nivery has joined #silverstripe
1243: [20:23:00] * patJnr quit (Read error: Connection reset by peer)
1244: [20:23:00] * patJnr has joined #silverstripe
1245: [20:32:00] * travis-ci has left #silverstripe
1246: [20:32:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/accbd7f1e2cb...1db0156832cf
1247: [20:32:00] <travis-ci> [travis-ci] silverstripe/sapphire#1329 (3.0 - 1db0156 : Will Rossiter): The build is still failing.
1248: [20:32:00] * travis-ci has joined #silverstripe
1249: [20:32:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4602277
1250: [20:35:00] * patJnr quit (Quit: Leaving)
1251: [20:35:00] * Webdoc has left #silverstripe
1252: [20:36:00] <FrozenFire> So, what's the way to reload a DropdownField's source from the server in the CMS when another field changes?
1253: [20:37:00] <FrozenFire> I have a DropdownField for Country, and I have a DropdownField for State (region). I filter the state one on load, because otherwise it's a gigantic list that crashes the browser on search
1254: [20:37:00] <FrozenFire> But when the Country one changes, I need the state one to change.
1255: [20:41:00] * DigNZ has joined #silverstripe
1256: [20:46:00] * lx-berlin has left #silverstripe
1257: [20:46:00] * DigNZ quit (Quit: DigNZ)
1258: [20:46:00] * zfmf has left #silverstripe
1259: [20:54:00] <simon2012> is there any best practice how to restric the /admin URL from being called. I'd like to have it to be accessible only from certain IP range (internal network) but not from public inet.
1260: [20:55:00] * r3v3rb quit (Quit: r3v3rb)
1261: [20:58:00] <FrozenFire> (Meaning, put it in your .htaccess)
1262: [20:58:00] <FrozenFire> That would be in the jurisdiction of your SAPI
1263: [21:00:00] <simon2012> aaahhh...ok...and physical path is /framework/admin ?
1264: [21:00:00] * zfmf has joined #silverstripe
1265: [21:00:00] <FrozenFire> It's not done by physical path, I don't think.
1266: [21:01:00] <FrozenFire> So you'd cond on the request_uri being admin
1267: [21:01:00] <FrozenFire> http://stackoverflow.com/a/9262777/1069833
1268: [21:11:00] <Kolin> hmmm, silverstripe docs seem to be having a hard time staying up recently
1269: [21:11:00] * DigNZ has joined #silverstripe
1270: [21:11:00] * DigNZ quit (Remote host closed the connection)
1271: [21:13:00] * liam quit (Quit: liam)
1272: [21:16:00] * DigNZ quit (Remote host closed the connection)
1273: [21:16:00] * DigNZ has joined #silverstripe
1274: [21:20:00] <FrozenFire> Versioned is starting to piss me off
1275: [21:20:00] * DigNZ has joined #silverstripe
1276: [21:20:00] * DigNZ quit (Remote host closed the connection)
1277: [21:21:00] * DigNZ has joined #silverstripe
1278: [21:22:00] <FrozenFire> I just want my versions written to live. No staging
1279: [21:22:00] <FrozenFire> But this thing has to be a dick
1280: [21:22:00] * Emil_Blume quit (Quit: Leaving.)
1281: [21:24:00] * simon_w|air has joined #silverstripe
1282: [21:26:00] <FrozenFire> simon_w|air, buddy oh boy. Teach me how to make a Versioned DO write to the Live stage automatically on every write...
1283: [21:27:00] <FrozenFire> :P
1284: [21:27:00] <FrozenFire> Because this is making me crazy.
1285: [21:28:00] <simon_w|air> public function onAfterWrite() { parent::onAfterWrite(); if(Versioned::current_stage() != 'Live') $this->publish(Versioned::current_stage(). 'Live'); } ?
1286: [21:29:00] <FrozenFire> Basically, I have a DO that is attached to an Order which I want versioned.
1287: [21:29:00] <FrozenFire> I'm not operating on SiteTree
1288: [21:29:00] <FrozenFire> I don't think that will work.
1289: [21:29:00] <simon_w|air> Also, until the Config system is sped up, I don't recommended Class::create :p
1290: [21:29:00] <FrozenFire> When I write it, it just gets written to the versions table
1291: [21:29:00] <simon_w|air> But the DO is versioned
1292: [21:30:00] <FrozenFire> Yes. I'm just tracking versions so that when an order is finalized, further modifications to that object in the future are not going to affect the existing orders.
1293: [21:30:00] <FrozenFire> It doesn't get written anywhere else.
1294: [21:30:00] <simon_w|air> You want it to always write to Live?
1295: [21:31:00] <simon2012> RewriteCond %{REMOTE_ADDR} !^212\.254\.23\.69 RewriteCond %{REQUEST_URI} (?:admin) [NC] RewriteRule .* framework/main.php?url=%1&%{QUERY_STRING} [L] RewriteCond %{REQUEST_URI} (?:admin) [NC] RewriteRule ^ - [F] RewriteCond %{REQUEST_URI} ^(.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* framework/main.php?url=%1&%{QUERY_STRING} [L]
1296: [21:31:00] <FrozenFire> So when it's written, it should be fully written and override any existing Live stage
1297: [21:31:00] * UndefinedOffset quit (Quit: Leaving.)
1298: [21:31:00] <simon_w|air> $extensions = array('Versioned("Stage")')
1299: [21:31:00] <simon2012> FF: Thanks for the link. But that was only half of what I wanted. I still want to allow certain IP address to be able to access the /admin interface. Here's what I figured out...
1300: [21:31:00] <simon2012> ah
1301: [21:31:00] <simon2012> shitty web IRC client
1302: [21:31:00] <simon_w|air> simon2012, sspaste.com
1303: [21:31:00] <simon2012> one moment
1304: [21:32:00] <FrozenFire> Pretending the Stage is live.
1305: [21:32:00] <simon_w|air> FrozenFire, no, just having one stage
1306: [21:32:00] <FrozenFire> simon_w|air, That seems... hackish.
1307: [21:33:00] <FrozenFire> Well, that's the problem.
1308: [21:33:00] <FrozenFire> There is only one stage.
1309: [21:33:00] <FrozenFire> Am I missing something? :P
1310: [21:33:00] <FrozenFire> I have OrderAddress, OrderAddress_Live and OrderAddress_versions
1311: [21:34:00] <FrozenFire> Good god that's confusing.
1312: [21:34:00] <simon_w|air> yes
1313: [21:34:00] <FrozenFire> Is OrderAddress == "Stage"?
1314: [21:34:00] <simon_w|air> FrozenFire, that's two stages
1315: [21:34:00] <simon2012> pasted it here: http://pastebin.com/a3HZLeBK - so basically it's working. Only ppl from the one IP address are having access to admin. But all others...when they access /admin URL they are presented the main page instead of a 403 error. any ideas why?
1316: [21:35:00] <Kolin> Anyone have any idea why SS would be showing a 500 error instead of the actual error?
1317: [21:36:00] <FrozenFire> o.O
1318: [21:36:00] <Kolin> a chrome one :/
1319: [21:36:00] <FrozenFire> Now I get an error saying it's trying to write to the Live table
1320: [21:36:00] <simon_w|air> Kolin, is it a silverstripe one or an apache one?
1321: [21:36:00] <Kolin> I have Director::set_environment_type("dev"); in my _config.php
1322: [21:36:00] <Kolin> Don't think its actualy returning anything just a 500 status
1323: [21:37:00] <Kolin> mod_fcgid: stderr: PHP Fatal error: Class 'sadasdA' not found in /home/kolin/domains/bfoe.kolin.me.uk/public_html/mysite/code/Controllers/Paypal.php on line 6
1324: [21:37:00] <Kolin> I have the error in the log
1325: [21:37:00] <simon_w|air> Kolin, check your error log then
1326: [21:37:00] <simon_w|air> Yay, don't you just love it when a browser aimed at developers does annoying things that don't help developers?
1327: [21:37:00] * DigNZ quit (Quit: DigNZ)
1328: [21:37:00] <Kolin> It's definatly code within silverstripe thats throwing the error
1329: [21:38:00] <Kolin> But id expect to see a stack trace rather than a 500
1330: [21:38:00] <simon_w|air> FrozenFire, gah, someone stopped Version from checking to see if the current stage actually exists for the current DO before writing
1331: [21:38:00] <Kolin> well a blank 500 anyway
1332: [21:39:00] <simon_w|air> Kolin, display_errors is Off
1333: [21:39:00] <FrozenFire> It's obviously designed for SiteTree only -.-
1334: [21:39:00] <FrozenFire> I have a feeling it was a mistake using Versioned for anything like that
1335: [21:39:00] * FrozenFire sighs a deep sigh and commits seppuku
1336: [21:40:00] * mrpink has joined #silverstripe
1337: [21:40:00] <Kolin> i have display_errors(true) at the top of _config.php
1338: [21:40:00] <FrozenFire> What about error_reporting?
1339: [21:41:00] <FrozenFire> Though really, I suspect you have something else going on
1340: [21:41:00] <simon_w|air> display_errors isn't a function either
1341: [21:46:00] <simon_w|air> FrozenFire, Versioned really shouldn't be coupled to SiteTree and it did actually do the check in 2.4 (I use it on Member). Is rather annoying that it's been removed
1342: [21:47:00] <simon_w|air> FrozenFire, I guess a massive hack of a way to do it would be to set the reading_mode to Live in onBeforeWrite(), then set it back to what it was in onAfterWrite()
1343: [21:48:00] <simon_w|air> simon2012, try making the fail rule a last rule too
1344: [21:49:00] <simon_w|air> or match against .*
1345: [21:51:00] <FrozenFire> I'm thinking I'll just make addresses immutable with a duplication function
1346: [21:53:00] <simon2012> yeah, I thought over it again
1347: [21:54:00] <simon2012> now it's blocking access from unknow IPs
1348: [21:54:00] <simon2012> but the one known IP...if accessing the /admin URL the page looks broken, i.e. no stylesheets loaded
1349: [21:55:00] <simon_w|air> That sounds like the server doesn't have write access to assets
1350: [21:56:00] <simon2012> admin interface works without the new ruleset
1351: [21:56:00] <simon2012> but I'll doublecheck
1352: [21:57:00] <simon2012> it has write access to assets
1353: [21:57:00] <FrozenFire> Is there a reason why you need /admin not to be resolvable?
1354: [21:57:00] <FrozenFire> Do typical access controls not work?
1355: [21:57:00] <simon2012> security paranoia
1356: [21:58:00] <simon2012> current mod_rewrite ruleset is here: http://pastebin.com/h4jKFepv
1357: [21:58:00] <simon2012> so I shouldn't use it at all??
1358: [21:58:00] <simon2012> SS?
1359: [21:58:00] * ApacheTiger has joined #silverstripe
1360: [21:58:00] <simon2012> ah
1361: [21:58:00] <FrozenFire> And there are more direct avenues of attack
1362: [21:58:00] <FrozenFire> SS is by no means hardened
1363: [21:58:00] <FrozenFire> If security is your paranoia, that's the least of your worries.
1364: [21:59:00] <FrozenFire> Didn't say that.
1365: [21:59:00] <ApacheTiger> how do i turn off zend_cache? I have a website that was working fine, but now I get a message the cache directory is not writable but it is.
1366: [21:59:00] <FrozenFire> If you're concerned about that sort of attack, then there are other attacks which are easier to make.
1367: [21:59:00] <simon2012> yes
1368: [21:59:00] <FrozenFire> You're saying that you're worried about someone compromising the CMS
1369: [21:59:00] <simon2012> but
1370: [22:00:00] <simon2012> like SQL injections?
1371: [22:00:00] <simon2012> apache 0-day exploits?
1372: [22:00:00] <simon2012> php design flaws
1373: [22:02:00] <ApacheTiger> has anyone else experienced a flaky zend_cache?
1374: [22:02:00] <FrozenFire> Direct controller access attacks, API-based access control circumvention, etc.
1375: [22:02:00] <ApacheTiger> Is there a configuration option to set the cache directory?
1376: [22:02:00] <FrozenFire> But controllers you write yourself can be vulnerable.
1377: [22:02:00] <FrozenFire> For the most part, those are locked down in the core.
1378: [22:03:00] <FrozenFire> There are also almost certainly SQL injection vulnerabilities in common modules.
1379: [22:03:00] <FrozenFire> Anything still using DataObject::get(...)
1380: [22:04:00] <simon_w|air> No, use filter/exclude
1381: [22:04:00] <FrozenFire> Or anything using DataList::where
1382: [22:04:00] <ApacheTiger> always use Convert::raw2sql
1383: [22:04:00] <FrozenFire> ApacheTiger, That's exactly the sort of SQL injection vulnerability I'm talking about.
1384: [22:05:00] <FrozenFire> Blind, typeless escaping of SQL
1385: [22:05:00] <ApacheTiger> what do you think silverstripe uses to escape your passed arrays?
1386: [22:06:00] <FrozenFire> Believe me, I'm no fan of that, either.
1387: [22:09:00] <simon2012> I get 403 for some files. that's why admin page is broken. but I don't get why
1388: [22:11:00] <simon_w|air> they have admin in the name
1389: [22:12:00] <simon_w|air> so get blocked by your paranoia :)
1390: [22:14:00] <simon2012> oh...*hmm*...I get what you mean
1391: [22:15:00] <simon_w|air> That's what the L does
1392: [22:15:00] <simon_w|air> but see that !-f condition?
1393: [22:15:00] <simon2012> is there a way to tell mod_rewrite to stop processing further rules if one is matched?
1394: [22:16:00] * ApacheTiger quit (Quit: ApacheTiger)
1395: [22:16:00] <simon2012> ah. so I should remove that one
1396: [22:16:00] <simon2012> line
1397: [22:16:00] <simon2012> -f' (is regular file) Treats the TestString as a pathname and tests whether or not it exists, and is a regular file.
1398: [22:16:00] <simon2012> yes...
1399: [22:16:00] <simon_w|air> That means the first rule doesn't match, because the file exists
1400: [22:17:00] <simon2012> and add a [L] at the end of my first rule?
1401: [22:17:00] <simon2012> letme try
1402: [22:17:00] * instabil quit (Read error: Connection reset by peer)
1403: [22:17:00] <catcher> sidebar many_many widgets, videoWidget extends widget, newsWidget extends widget..
1404: [22:17:00] <catcher> if I'm building my own sidebar/widget interface, what's the best way to set this up so the widget type can be flexible for each sidebar?
1405: [22:18:00] <simon2012> aaaalright
1406: [22:18:00] <simon_w|air> simon2012, no, then all file requests from your IP will be sent to silverstripe. You need to change your rule so it only blocks /admin/ requests, not anything containing admin
1407: [22:18:00] <simon2012> thanks
1408: [22:18:00] * chillu quit (Quit: chillu)
1409: [22:19:00] <simon2012> let me try
1410: [22:20:00] * instabil has joined #silverstripe
1411: [22:31:00] <simon2012> I don't get it
1412: [22:31:00] <catcher> any way to do that without some CMS trickery, i.e. showing/hiding fields based on value of a dropdown?
1413: [22:38:00] <FrozenFire> You can do it with CSS
1414: [22:38:00] <FrozenFire> Maybe
1415: [22:38:00] <FrozenFire> catcher, Yes and no.
1416: [22:39:00] <simon2012> paranoia satisfied
1417: [22:39:00] <simon2012> w00t
1418: [22:39:00] <simon2012> wohoooooo
1419: [22:39:00] <simon2012> made it WORK
1420: [22:39:00] <FrozenFire> :P
1421: [22:39:00] <FrozenFire> Was going to suggest using a general sibling selector with an attribute selector
1422: [22:39:00] <FrozenFire> Inputs are too nested to make that work.
1423: [22:39:00] <FrozenFire> Probably not, now that I think of it
1424: [22:40:00] <simon2012> just made the rewrite cond unusable
1425: [22:40:00] <FrozenFire> I'm still thoroughly confused by why this is necessary.
1426: [22:40:00] <simon2012> no. didn't make it work
1427: [22:40:00] <FrozenFire> Haha
1428: [22:41:00] * spronk quit (Read error: Connection reset by peer)
1429: [22:41:00] <simon2012> if you can't access the login page
1430: [22:41:00] <simon2012> less possibility your login gets abused
1431: [22:41:00] <catcher> I guess I can have several types, but they'll have to be in a fixed order.
1432: [22:41:00] <FrozenFire> /Security/login
1433: [22:42:00] <FrozenFire> Good
1434: [22:42:00] <simon_w|air> doing a POST to any-page/LoginForm
1435: [22:42:00] * spronk has joined #silverstripe
1436: [22:42:00] <simon2012> ah crap that URL exists as well?
1437: [22:42:00] <simon2012> true
1438: [22:42:00] <simon2012> bah
1439: [22:42:00] <simon2012> I'll give up
1440: [22:43:00] <simon2012> for TODAY
1441: [22:43:00] <FrozenFire> It's a waste of time in the utmost.
1442: [22:43:00] <simon2012> *evilgrin*
1443: [22:43:00] <FrozenFire> Don't.
1444: [22:43:00] <simon2012> I'll try to block it again
1445: [22:43:00] <simon2012> tomorrow is a new day
1446: [22:43:00] <simon2012> :)
1447: [22:43:00] <simon2012> it has to be possible.somehow.
1448: [22:44:00] <FrozenFire> If you'd asked how to deny access to the login in the first place, I'd've possibly been able to give you the right answer. ;)
1449: [22:44:00] <simon_w|air> Possible doesn't mean practical
1450: [22:45:00] <simon2012> :)
1451: [22:45:00] <simon2012> Hey, FF, how do I deny access to the login?
1452: [22:45:00] <FrozenFire> Member::canLogIn
1453: [22:46:00] <simon2012> ???
1454: [22:46:00] <FrozenFire> You would apply an extension to Member imposing your IP whitelisting requirements.
1455: [22:47:00] <simon2012> going to bed
1456: [22:47:00] <simon2012> it's 10 to midnight
1457: [22:48:00] <simon2012> think about it tomorrow
1458: [22:48:00] <simon2012> thanks for your help
1459: [22:48:00] * FrozenFire goes back to smashing his skull hard against his desk's edge
1460: [22:48:00] * simon_w|air laughs at the person doing ecommerce
1461: [22:48:00] <FrozenFire> Heh
1462: [22:48:00] <simon2012> good night
1463: [22:49:00] <FrozenFire> Actually, nevermind.
1464: [22:49:00] <FrozenFire> Unrelatedly, is there anything in-built for doing XML exports of a DataList?
1465: [22:49:00] <FrozenFire> I need to do this manually.
1466: [22:49:00] * simon2012 quit (Quit: going to #bed)
1467: [22:50:00] <FrozenFire> Actually, nevermind. Fuck XML
1468: [22:50:00] * priithansen quit (Quit: priithansen)
1469: [22:52:00] <FrozenFire> Is there any purpose to getCMSActions?
1470: [22:57:00] * FrozenFire goes back to trying to figure out this Versioned BOOOLSHIT
1471: [23:06:00] <FrozenFire> That's static
1472: [23:06:00] <FrozenFire> I see
1473: [23:06:00] <FrozenFire> https://github.com/silverstripe/sapphire/blob/3.1/model/Versioned.php#L906 Is this for real?
1474: [23:06:00] <FrozenFire> Seriously?
1475: [23:06:00] <FrozenFire> Oh wait.
1476: [23:07:00] <FrozenFire> The hell is with mixing static and non-static methods?
1477: [23:09:00] <FrozenFire> simon_w|air, Where is this Versioned issue you were saying you fixed?
1478: [23:09:00] <FrozenFire> I can't fathom how it's even pondering the existence of the Live stage, given that I never specify that as a stage.
1479: [23:10:00] <simon_w|air> The current stage is global. You need to check that the current object has that stage in augmentWrite and augmentSQL
1480: [23:11:00] <FrozenFire> Versioned should have nothing to do with anything global.
1481: [23:11:00] <FrozenFire> Why is the current stage global?
1482: [23:11:00] <FrozenFire> So, yeah. Versioned is SiteTree-only.
1483: [23:11:00] <simon_w|air> It's a get parameter
1484: [23:11:00] <FrozenFire> So yeah. SiteTree-only.
1485: [23:11:00] <simon_w|air> Nope
1486: [23:12:00] <FrozenFire> So yeah. Versioned is SiteTree-only.
1487: [23:12:00] <FrozenFire> Got it.
1488: [23:12:00] <FrozenFire> I've tried using it several times now.
1489: [23:12:00] <FrozenFire> It really is.
1490: [23:12:00] * mirrors has joined #silverstripe
1491: [23:12:00] <simon_w|air> GAH! No it isn't.
1492: [23:12:00] <FrozenFire> I just want versions of a DataObject.
1493: [23:12:00] <FrozenFire> I don't want different reading modes based on some global setting.
1494: [23:13:00] <FrozenFire> I do get what you think it is.
1495: [23:13:00] <simon_w|air> Shut up for a minute, okay?
1496: [23:13:00] <FrozenFire> Every time I do, it breaks because it's not SiteTree.
1497: [23:13:00] <FrozenFire> But the naming is extraordinarily deceptive.
1498: [23:13:00] <FrozenFire> It is different "versions" of the site.
1499: [23:13:00] <FrozenFire> Staging
1500: [23:13:00] <simon_w|air> If SiteTree is controlling the requests, then it goes through SiteTree's stages
1501: [23:13:00] <FrozenFire> Whereas I want basic versioning of data only.
1502: [23:13:00] <FrozenFire> That's not what you just said.
1503: [23:13:00] <simon_w|air> If it doesn't, then you can control the stages it goes
1504: [23:14:00] <FrozenFire> It chooses the stage based on the request.
1505: [23:14:00] <FrozenFire> Which is fundamentally retarded.
1506: [23:14:00] <simon_w|air> It has to pick a stage somehow
1507: [23:14:00] <FrozenFire> Two versioned objects can, and usually do, give no shit about each other
1508: [23:14:00] <C10ne> Thanks for the code earlier FrozenFire, it's a great piece of information
1509: [23:15:00] <FrozenFire> The stage picking should be up to what is trying to show the versioned object.
1510: [23:15:00] <FrozenFire> Not up to some global stage picker
1511: [23:15:00] <FrozenFire> If the controller showing the versioned object wants to take part in global staging, then okay.
1512: [23:15:00] <FrozenFire> But enforcing it on all implementors of Versioned is silly in the utmost.
1513: [23:16:00] <FrozenFire> SiteTree-only.
1514: [23:16:00] <FrozenFire> Good. We agree.
1515: [23:16:00] <simon_w|air> So set the stage however you want in your init method
1516: [23:16:00] <FrozenFire> What init method?
1517: [23:16:00] <simon_w|air> It is up to what is trying to display the objects, you just have to tell it
1518: [23:16:00] * EPIK has joined #silverstripe
1519: [23:16:00] <simon_w|air> In your controller
1520: [23:16:00] <FrozenFire> Every single controller that handles an address should define an init which screws around with the stage?
1521: [23:16:00] <FrozenFire> You didn't think that through. :P
1522: [23:16:00] <simon_w|air> I give up.
1523: [23:17:00] <simon_w|air> More than one meaning of version
1524: [23:17:00] <FrozenFire> :D
1525: [23:17:00] <simon_w|air> No, you're just so stuck on being wrong.
1526: [23:17:00] <FrozenFire> I don't even know what staging has to do with versioning.
1527: [23:17:00] <FrozenFire> There should be Versioned and Staged
1528: [23:17:00] <simon_w|air> I have more important things to do with my day than try to argue with you
1529: [23:17:00] <FrozenFire> Not especially.
1530: [23:17:00] <FrozenFire> And certainly not in this context.
1531: [23:18:00] * simon_w|air quit (Quit: This computer has gone to sleep)
1532: [23:18:00] <FrozenFire> Haha
1533: [23:19:00] <mirrors> Hey all...is it possible to change the add button text on a gridfield
1534: [23:19:00] <FrozenFire> http://api.silverstripe.org/trunk/framework/gridfield/GridFieldAddNewButton.html
1535: [23:20:00] <FrozenFire> I think
1536: [23:20:00] <FrozenFire> $gridField->getConfig()->getComponentByType("GridFieldAddNewButton")->setButtonName("Some Name");
1537: [23:35:00] * liam has joined #silverstripe
1538: [23:45:00] <mirrors> cheers
1539: [23:49:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
1540: [23:49:00] * Nivery quit (Quit: Nivery)
1541: [23:54:00] * zfmf has left #silverstripe
1542: [23:54:00] * liam quit (Read error: Connection reset by peer)
1543: [23:54:00] <Jakx> Hope everyone is having a mint Waitangi Day
1544: [23:54:00] * Jakx has joined #silverstripe

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