#silverstripe IRC Log

IRC log for 21 May 2013

All timestamps are in NZT (New Zealand Time).

1: [00:00:54] * UncleCheese has joined #silverstripe
2: [00:04:47] <ss23> oh man I think I'm about to be paid, and if so, I'm fucking getting dinner. I've been eating nothing but jelly rings coated in chocolate since I woke up, and they're taking a toll on me
3: [00:04:51] <ss23> :<
4: [00:34:09] * jrthomer has joined #silverstripe
5: [00:37:02] * r3v3rb quit (Quit: r3v3rb)
6: [00:43:04] <Colin[pi]> as a freelancer, this is how I feel when I show my sites to devs from large companies: http://www.youtube.com/watch?v=hfF6HVjgeEA
7: [00:49:02] <ss23> lol, it's the opposite!
8: [00:49:10] <ss23> Big companies normally have old crufty code from the 90's!
9: [00:52:47] <Colin[pi]> depends on the company :)
10: [00:53:33] <Colin[pi]> annnnd I'm off to sleeps, nn
11: [00:53:37] * Colin[pi] quit (Quit: pants)
12: [00:54:47] <priithansen> can arraylist filter use GreaterThanFilter and other search filters?
13: [01:00:00] <priithansen> i guess not
14: [01:07:40] * UncleCheese quit (Quit: UncleCheese)
15: [01:23:32] * UncleCheese has joined #silverstripe
16: [01:27:27] * UncleCheese quit (Client Quit)
17: [01:29:07] * pex has joined #silverstripe
18: [01:34:58] * osterlaus has joined #silverstripe
19: [01:39:58] * otinane quit (Quit: Page closed)
20: [01:45:47] * lx-berlin_ has joined #silverstripe
21: [01:46:53] * lx-berlin_ has left #silverstripe
22: [01:47:23] * Shrike_Finland quit (Quit: Leaving.)
23: [01:57:13] * pex quit (Ping timeout: 264 seconds)
24: [02:02:48] * osterlaus quit (Quit: Leaving.)
25: [02:05:22] <daslicht> is it normal that silverstipe is very slow reacting on my localhost ?
26: [02:05:50] <daslicht> are therer different modes ? such as developement ?
27: [02:07:00] <daslicht> hm even this demo is slooowww http://ss3.silverstripe-ecommerce.com/new-product-category/
28: [02:12:21] * oak has joined #silverstripe
29: [02:12:46] <oak> hello. would it be possible to access the user logged into silverstripe from an external script sitting on the webserver ?
30: [02:12:50] <oak> if so how ?
31: [02:21:09] * Nivery has joined #silverstripe
32: [02:42:35] * r3v3rb has joined #silverstripe
33: [02:44:06] <r3v3rb> hello, can anyone help?
34: [02:44:53] <r3v3rb> I have my site setup as a translated site and I have setup user groups to determine which people can edit which language. This works well
35: [02:45:37] <r3v3rb> however, I have to give access to the SiteConfig for each set of editors too and this is where it falls down - SiteConfig is not accepting the canEdit function I have
36: [02:45:48] <r3v3rb> in SiteConfigExtension.php
37: [02:46:46] <kinglozzer> r3v3rb: Can you actually override canEdit() etc with an extension?
38: [02:46:54] <kinglozzer> Just wondering if you're sure you can, I've never tried before
39: [02:46:54] <r3v3rb> no idea
40: [02:47:07] <r3v3rb> lol
41: [02:47:11] <kinglozzer> r3v3rb: Stick a die('hello'); in there and see if it's called? :P
42: [02:47:16] <r3v3rb> good shout
43: [02:47:29] * UncleCheese has joined #silverstripe
44: [02:48:59] <r3v3rb> hmm, it appears not kinglozzer
45: [02:49:12] <r3v3rb> UncleCheese: good luck with the forth coming move :)
46: [02:49:26] <UncleCheese> thanks, bud
47: [02:49:32] <r3v3rb> kinglozzer: that could be a real headscratcher now for me!
48: [02:49:35] <UncleCheese> it's craaaaaaazy
49: [02:49:48] <kinglozzer> r3v3rb: So you're adding some fields to SiteConfig, presumably with updateCMSFields(), can you do the check in your updateCMSFields() method before you add them in?
50: [02:49:56] <r3v3rb> UncleCheese: would do it myself if: a. qualified enough and b. didn't have children
51: [02:50:21] <UncleCheese> we have an 11 month old
52: [02:50:24] <UncleCheese> easy to move :)
53: [02:50:30] <UncleCheese> but it's an insane amount of work
54: [02:50:37] <UncleCheese> i think i have 40 hours into the visa application alone
55: [02:50:39] <r3v3rb> kinglozzer: the problem is when logged in as an 'editor' instead of an 'admin' as such the 'save' button is missing
56: [02:50:59] <r3v3rb> UncleCheese: yes 11 month is much easier to move than a 10 & 7 year old
57: [02:51:20] <r3v3rb> UncleCheese: application forms should be banned!
58: [02:51:43] <kinglozzer> r3v3rb: updateCMSActions ;)
59: [02:51:57] * r3v3rb googles
60: [02:52:47] <kinglozzer> r3v3rb: Just add it to your extension: http://pastie.org/7934801
61: [02:53:06] <kinglozzer> Oh sorry I messed that up, one sec
62: [02:53:45] <kinglozzer> http://pastie.org/7934806 that should do it
63: [02:54:01] <r3v3rb> hehe, 2.4 still on this project :D
64: [02:55:58] <kinglozzer> Or possibly that one: http://pastie.org/7934813
65: [02:56:09] <kinglozzer> r3v3rb: Should be fine in 2.4
66: [02:56:25] <r3v3rb> nope, didn;t like it :( crashed out site
67: [02:56:26] <kinglozzer> I think, just forget the extra classes/attributes
68: [02:56:50] <r3v3rb> setAttribute doesn't exist in 2.4
69: [02:56:55] <zfmf1> he guys, the search on http://doc.silverstripe.org add www. to the search result so i get a aborted response
70: [02:57:20] <kinglozzer> Yeah that was added in 3.0, so try without that r3v3rb
71: [02:57:46] <kinglozzer> zfmf1: Known bug, it's been fixed but not pushed live yet
72: [02:57:47] <r3v3rb> I is! kinglozzer :D
73: [02:59:32] <kinglozzer> r3v3rb: Working? Test saving it, I'm not sure if there are additional permission checks before writing to the db
74: [03:00:04] <r3v3rb> no idea yet, the site doesn't load at the moment in 2.4
75: [03:00:20] <r3v3rb> PHP Fatal error: Call to a member function Name() on a non-object in /Users/Sites/sapphire/forms/FieldSet.php on line 392
76: [03:00:24] <r3v3rb> just fixing it
77: [03:01:15] <kinglozzer> r3v3rb: Caused by you or me? :P
78: [03:01:31] <r3v3rb> ->addExtraClass !
79: [03:01:32] <r3v3rb> lol
80: [03:02:19] * UncleCheese quit (Ping timeout: 260 seconds)
81: [03:02:56] <r3v3rb> kinglozzer: works but now I just need to add my check in for whichever language they are in to stop them overwriting others siteconfigs ;)
82: [03:03:22] <r3v3rb> should be fairly straightforward
83: [03:03:32] <r3v3rb> except I have to go pick up my damn kids!
84: [03:03:36] <r3v3rb> bbl
85: [03:05:17] <kinglozzer> Haha, cya
86: [03:17:06] * guci0 quit (Ping timeout: 250 seconds)
87: [03:50:01] * chillu has joined #silverstripe
88: [03:52:19] * joelpittet has joined #silverstripe
89: [03:52:58] * MichaelDesignerX has joined #silverstripe
90: [03:53:13] * DesignerX quit (Ping timeout: 256 seconds)
91: [03:54:25] * catcher has joined #silverstripe
92: [03:54:54] * Nacho_Cologne has joined #silverstripe
93: [03:56:29] <MichaelDesignerX> join /sql
94: [03:56:36] <MichaelDesignerX> join /#sql
95: [03:56:51] * MichaelDesignerX quit (Client Quit)
96: [03:57:19] * DesignerX has joined #silverstripe
97: [03:57:45] <Nacho_Cologne> Dear experts, I really need some help with multiple widgets. When I add a second widget whichever is on the bottom won't show any content. Could somebody please give me a hint where I could look for the bug? Thank you!
98: [03:58:11] <catcher> Class B extends Class A, class B's $default_sort='sortOrder'. Class B's onBeforeWrite is erroring because Class A has no field 'sortOrder'. What's the right way to have the ORM consider the actual class I'm referring to?
99: [03:59:50] * origincube has joined #silverstripe
100: [04:00:11] <DesignerX> catcher: have the base class with that variable set to null ?
101: [04:02:51] <origincube> hi everyone, have a bit of a tricky problem, and can't seem to find a solution in the forums
102: [04:03:07] <catcher> DesignerX, variable?
103: [04:03:10] * ^pH- has joined #silverstripe
104: [04:03:57] <origincube> have a client who needs to be able to add in code snippets within the htmleditor, which i know isn't best practice, but there isn't really a way around it since they're code snippets for a third party lead nurturing network
105: [04:05:52] <catcher> origincube, shortcodes
106: [04:06:18] <origincube> the code snippets are javascript based though
107: [04:06:39] * ^pH quit (Ping timeout: 276 seconds)
108: [04:09:01] <catcher> FrozenFire, we discussed this issue before, didn't we? Do you remember the way around it?
109: [04:10:03] <origincube> i've set allowed elements to *[*]
110: [04:10:10] <origincube> and also set cleanup to ""
111: [04:10:24] <origincube> as suggested in the forums, but it still removes any javascript code
112: [04:10:39] <FrozenFire> It's feasible to enable Javascript in the HTMLEditorField, but I recommend against it. You should instead determine the way that the Javascript is put together, and create a shortcode for it, or have fields on your Page for that, then handle including that Javascript in the controller.
113: [04:11:24] * joelpittet quit (Remote host closed the connection)
114: [04:11:48] <FrozenFire> For instance, for GA, you might have the code listed here: https://support.google.com/analytics/answer/1008080?hl=en
115: [04:11:49] <origincube> yeah, the trick is that the client creates these "call to actions" within Hubspot (marketing engine), and then needs to place them within content areas
116: [04:12:13] <origincube> the GA stuff is all configured into the site template since that doens't have to be too dynamic
117: [04:12:25] <FrozenFire> Yeah, just making an example of templated Javascript.
118: [04:12:39] <origincube> the only other option would seem to be insert a textarea field instead of html, then paste the raw content into the layout?
119: [04:12:43] <FrozenFire> In the case of the GA stuff, you'd template it and insert the account ID
120: [04:12:56] <FrozenFire> Definitely not that way.
121: [04:13:48] <FrozenFire> I'd say a shortcode is your best bet.
122: [04:13:57] * kinglozzer quit (Quit: home time)
123: [04:14:02] <origincube> any nifty links to tutorials on how to use that ? :)
124: [04:14:11] <origincube> only been using SS for about a month
125: [04:14:17] <origincube> feel like a total newb
126: [04:14:56] <FrozenFire> http://www.balbuss.com/mini-introduction-to-shortcodes/
127: [04:15:17] <FrozenFire> It may have changed a bit in SS3, though
128: [04:16:14] <origincube> hopefully not too much!
129: [04:16:40] <origincube> this could work fairly well, just need to see the script info from this client and then i'm good to test it out!
130: [04:16:44] <FrozenFire> It's fundamentally the same, but the configuration syntax for adding new shortcodes may have changed
131: [04:19:05] <origincube> ah sweet
132: [04:19:09] <origincube> there's some helpful docs in the api
133: [04:19:10] <origincube> http://docs.silverstripe.org/framework/en/topics/shortcodes
134: [04:19:13] <origincube> thanks! :)
135: [04:19:59] <FrozenFire> You'll probably also want to take a look at Requirements::javascriptTemplate
136: [04:20:55] <FrozenFire> Unless, of course, you need to place the script in a specific place in the content
137: [04:20:55] <Nacho_Cologne> Politely asking for help again - it's for a primary school, so if you help me you'll get karma points for contributing to a brighter future and the happiness of children! :-)
138: [04:21:02] <FrozenFire> Though that'd be bad practise.
139: [04:21:34] <FrozenFire> Nacho_Cologne, Could you give more information on the issue you're encountering? Do you have a screenshot?
140: [04:21:50] <FrozenFire> Also, need information on the types of widgets
141: [04:21:52] <origincube> yeah, i'm still not entirely sure why these bits of html need javascript since they're linked to external sites, but must be tracking related
142: [04:22:10] <origincube> thanks for the assist FrozenFire :)
143: [04:22:11] <Nacho_Cologne> I can give you a link: http://www.wp11170768.server-he.de/aktuelles/
144: [04:22:39] <Nacho_Cologne> I added a debug line already
145: [04:23:09] <Nacho_Cologne> whichever widget on top will work, so it's not the widget's malfunction
146: [04:24:24] <FrozenFire> Odd. Could you quickly switch the order of the widgets, so I can see the tag collection widget functioning correctly?
147: [04:24:46] <daslicht> when i try to install ss with composer i get :
148: [04:24:48] <daslicht> [Composer\Downloader\TransportException]
149: [04:24:48] <daslicht> The "https://api.github.com/repos/silverstripe/sapphire/zipball/3.0.5" file could not be downloaded (HTTP/1.1 404 Not Found)
150: [04:25:20] <Nacho_Cologne> In the forum I just found an open thread with no solution
151: [04:26:20] <FrozenFire> daslicht, SS goofed recently and changed the name of the repository. If you have any hardcoded references to "sapphire" in your composer.json, you'll need to change it to silverstripe-framework
152: [04:26:32] <Nacho_Cologne> FrozenFire, did it - order changed
153: [04:27:03] <FrozenFire> Yeah, I can see that. Very odd.
154: [04:27:10] <daslicht> i tried it like this: composer create-project silverstripe/installer ./my/website/folder
155: [04:27:25] <FrozenFire> I don't have the time at the moment to do deeper debugging with you, but I may have time in a bit.
156: [04:27:25] <daslicht> how would a composer.json look like ?
157: [04:27:40] <FrozenFire> daslicht, Ah, so you're installing it like that
158: [04:27:58] <daslicht> i actually dont care how
159: [04:27:59] <daslicht> :)
160: [04:28:11] <Nacho_Cologne> ok FrozenFire I'll wait for a while - thanks for looking into it!
161: [04:28:20] <daslicht> i try : https://packagist.org/packages/silverstripe/framework
162: [04:28:34] <FrozenFire> Well, all I can really say is that the naming of the repository changed, so some reference you have it probably borked
163: [04:28:45] <daslicht> ok
164: [04:28:48] <FrozenFire> Which may be a case of composer creating a cache
165: [04:28:50] <daslicht> i donload it manually :D
166: [04:29:52] <FrozenFire> sminnee, Just going to ping you on this, since it's likely to be a common issue in the coming days.
167: [04:30:10] <FrozenFire> Change of sapphire repo name to silverstripe-framework is apparently causing at least one person to have repo reference issues
168: [04:30:28] <FrozenFire> And will likely have many more for people who are using git submodules instead of composer
169: [04:31:05] <r3v3rb> FrozenFire: has it changed again from framework to silverstripe-framework?
170: [04:31:35] <FrozenFire> Nah, not in that way, r3v3rb
171: [04:31:42] <r3v3rb> phew!
172: [04:31:47] <FrozenFire> https://github.com/silverstripe/sapphire changed to https://github.com/silverstripe/silverstripe-framework
173: [04:31:52] <r3v3rb> sure
174: [04:32:07] * origincube quit (Quit: ~ Trillian - www.trillian.im ~)
175: [04:34:02] * Nivery quit (Quit: Nivery)
176: [04:37:40] <r3v3rb> is it time to go home yet?
177: [04:37:53] * r3v3rb is now known as r3v|home
178: [04:38:04] * r3v|home has left #silverstripe
179: [04:39:08] <daslicht> ok i maanged now to install teh framework with composer
180: [04:39:22] <daslicht> but therer is stuff missing :)
181: [04:39:27] <daslicht> its just the framework folder
182: [04:46:56] <catcher> Any ideas on unknown column 'sortOrder' due to the ORM only querying the base class?
183: [04:47:32] <catcher> $default_sort = 'sortOrder' is set on the subclass, and the field exists on the subclass (not the base class).
184: [04:53:56] <catcher> looping instead of using column() seems to avoid the $default_sort check. Would this be a bug in column() for not joining the necessary tables?
185: [04:55:55] <ss23> ss23 when working with a stack - http://www.youtube.com/watch?v=vCadcBR95oU
186: [04:57:40] <catcher> ha!
187: [04:58:48] * cloph_away1 quit (Read error: Connection reset by peer)
188: [05:02:34] <daslicht> is therer a way to speed up silverstripe ? its so slow on my localhost
189: [05:03:03] <daslicht> i am using mamp which has apc enabled
190: [05:03:10] <ss23> Depends on which parts are slow
191: [05:03:22] <daslicht> just the main navigation
192: [05:03:23] <ss23> static publisher is good though
193: [05:03:33] <ss23> I mean internally, is it PHP or MySQL or what
194: [05:03:34] * joelpittet has joined #silverstripe
195: [05:03:46] <daslicht> how do i find out ?
196: [05:04:32] <ss23> Measure how long each part takes? idk the best way to do that in Silverstripe though sorry
197: [05:05:29] <daslicht> uh
198: [05:05:57] <daslicht> do you have an example of a fast ss page online ?
199: [05:06:24] <ss23> Hmm, iirc the democrat party used Silverstripe, I'll see if theirs is still up
200: [05:06:54] <ss23> Oh, was the convention side
201: [05:06:55] <ss23> site*
202: [05:07:28] <ss23> daslicht: http://westpac.co.nz/ is another good example
203: [05:08:09] <daslicht> do you suggest using nginx or apache ?
204: [05:08:33] <ss23> I suggest using whichever suits your needs better :P
205: [05:08:45] <ss23> nginx is faster for static content, apache is better for intergration with PHP
206: [05:08:51] <daslicht> will be nginx feel faster than apache ?
207: [05:08:56] <ss23> If you can use a combination, that'll likely be the best, but few people have the resources to justify both
208: [05:09:27] <daslicht> do you use some kind of cache in conjunction with apache ? varnish ?
209: [05:09:50] <ss23> The sites I manage don't, though some of htem use static publisher
210: [05:09:54] * Mark-M quit ()
211: [05:09:59] * popeshoe quit (Quit: This computer has gone to sleep)
212: [05:10:02] * chillu quit (Quit: chillu)
213: [05:10:20] <daslicht> i dont know that , i google
214: [05:11:16] <daslicht> looks good
215: [05:11:18] <daslicht> thanks
216: [05:11:18] <daslicht> !
217: [05:12:09] <ss23> Sweet :)
218: [05:15:38] * willmorgan quit (Ping timeout: 264 seconds)
219: [05:29:27] * zfmf1 quit (Ping timeout: 256 seconds)
220: [05:31:16] <daslicht> holy cow, PJAX inside
221: [05:31:26] <daslicht> http://doc.silverstripe.org/framework/en/reference/cms-architecture#pjax-partial-template-replacement-through-ajax
222: [05:39:37] * Nivery has joined #silverstripe
223: [06:01:06] * daslicht quit (Remote host closed the connection)
224: [06:11:44] * joelpittet quit (Remote host closed the connection)
225: [06:12:17] * joelpittet has joined #silverstripe
226: [07:03:26] * UncleCheese has joined #silverstripe
227: [07:11:08] * popeshoe has joined #silverstripe
228: [07:12:57] * cloph_away has joined #silverstripe
229: [07:14:22] * pex has joined #silverstripe
230: [07:14:44] * joelpitt_ has joined #silverstripe
231: [07:17:59] * joelpittet quit (Ping timeout: 256 seconds)
232: [07:24:02] * popeshoe quit (Quit: This computer has gone to sleep)
233: [07:40:33] * joelpitt_ quit (Remote host closed the connection)
234: [07:44:16] * SightUnseen has joined #silverstripe
235: [07:44:20] * SightUnseen has left #silverstripe
236: [07:44:32] * OldTom quit (Ping timeout: 256 seconds)
237: [07:47:51] * OldTom has joined #silverstripe
238: [07:54:33] * SightUnseen has joined #silverstripe
239: [07:57:05] * SightUnseen has left #silverstripe
240: [08:20:50] <Nacho_Cologne> Hey FrozenFire, how is it looking? If you're still busy I would be grateful if you could post whatever thoughts you have on the thread in the forum - it's easy to find in the widgets section
241: [08:39:26] * UncleCheese quit (Quit: UncleCheese)
242: [08:40:16] * Pyromanik has joined #silverstripe
243: [08:40:28] <Pyromanik> simon_w: do you have that paste handy?
244: [08:40:38] * DigNZ1 has joined #silverstripe
245: [08:40:39] * DigNZ1 quit (Remote host closed the connection)
246: [08:40:58] * DigNZ1 has joined #silverstripe
247: [08:41:53] * simon_w quit (Ping timeout: 276 seconds)
248: [08:42:55] * priithansen quit (Quit: priithansen)
249: [08:42:57] * simon_w has joined #silverstripe
250: [08:42:59] <Pyromanik> oic
251: [08:43:09] * Nacho_Cologne quit (Quit: Page closed)
252: [08:43:11] <Pyromanik> simon_w: do you have that paste handy?
253: [08:43:30] * joelpittet has joined #silverstripe
254: [08:48:09] * C10ne has joined #silverstripe
255: [08:48:30] <simon_w> Pyromanik, hang on, browser's just opening
256: [08:51:08] <Pyromanik> simon_w: thanks dude
257: [08:52:05] <simon_w> http://sspaste.com/paste/show/519a8ce6d7beb
258: [08:54:53] * oak quit (Quit: Page closed)
259: [08:59:04] <simon_w> Pyromanik, Ignore TabularCompositeField and its first parameter. That's a custom field
260: [09:00:39] <simon_w> and $data['NumUnits'] is the number of units to add fields for. You may want something more akin to count($data['FieldName'])
261: [09:03:39] * Jeremy2 has joined #silverstripe
262: [09:04:04] <catcher> simon_w, what am I missing here - class B extends class A, class B has a $db field and $default_sort 'sortOrder'. Calling ->column('ID') directly on Class B tells me it can't find 'sortOrder', because it's only looking on the base class table.
263: [09:08:17] <Pyromanik> thank you simon_w, that looks fantastic.
264: [09:08:21] <Pyromanik> why does it not in core?
265: [09:08:49] <Pyromanik> core can handle [] submissions (even validates them iirc), but doesn't do re-population support of it :<
266: [09:09:08] * Jeremy2 is now known as MrJeremy
267: [09:09:43] <Pyromanik> catcher: calling ->column('ID') on which object?
268: [09:09:47] <Pyromanik> A or B?
269: [09:09:58] <catcher> Pyromanik, B
270: [09:10:02] <Pyromanik> oh sorry, didn't see it on the end there
271: [09:10:30] <Pyromanik> by base class table you mean eg SiteTree vs HomePage, yeh?
272: [09:11:28] * MrJeremy quit (Quit: MrJeremy)
273: [09:11:44] * Jeremy2 has joined #silverstripe
274: [09:11:55] <catcher> These are custom DOs, but in that example, Homepage $default_sort & $db 'sortOrder', Homepage::get()->column('ID') complains about missing 'sortOrder' because only SiteTree is queried.
275: [09:13:02] * zfmf1 has joined #silverstripe
276: [09:13:44] * zfmf1 has left #silverstripe
277: [09:13:53] <Jeremy2> Is it possible to constant in templates?
278: [09:15:05] <Jeremy2> define(d) constants that is
279: [09:16:44] <simon_w> add a method that returns it and it is
280: [09:17:37] <Jeremy2> ok thanks
281: [09:20:15] * zippy__ has joined #silverstripe
282: [09:21:06] <zippy__> Always a contentious question :) What IDE to you mac developers use? I've been using sublime edit lately, but looking to try something else
283: [09:21:21] <simon_w> Hehe, IDEs
284: [09:21:31] <simon_w> Most of us use Sublime Text for some reason
285: [09:21:58] <lewellyn> i use vim, just because it's the most proper vi available for os x.
286: [09:23:14] <zippy__> need to get Sublime opening .ss files as html
287: [09:23:21] * Nivery quit (Quit: Nivery)
288: [09:23:44] <zippy__> I find vim fine for quick edits, not when trying to do some serious work. Guess I am not hardcore enough ;-)
289: [09:24:28] <lewellyn> i've used vi for like 20 years now. so i find where vim differs from vi to be overall annoying ;)
290: [09:26:22] <zippy__> I used to work with the guy that wrote NerdTree plugin, good guy, loved his vim
291: [09:26:50] <Pyromanik> Jeremy2: separation of concerns, nothing should be 'new' in a template!
292: [09:27:55] <Pyromanik> also, a constant just being constant, wouldn't you just type the text in?
293: [09:28:09] <Jeremy2> its a setting
294: [09:28:12] <Pyromanik> zippy__: I use Notepad++, but I'm on windows.
295: [09:28:19] <Pyromanik> Jeremy2: so it's not constant.
296: [09:28:51] <zippy__> Pyromanik: Notepad++ takes me back a few years!
297: [09:28:52] <Jeremy2> yes but its set in one place. Its constant for the application
298: [09:29:05] <Pyromanik> if someone can change it in the CMS, then it's on a model somewhere, which means you can probably just access it there.
299: [09:29:22] <simon_w> zippy__, open .ss file, View -> Syntax -> Open all with current extension as.. -> Pick your HTML flavour (I use Rails)
300: [09:29:27] <Pyromanik> if it's _config statically set, then what simon_w said, write a getter.
301: [09:30:02] * nickmolhoek has joined #silverstripe
302: [09:30:03] * nickmolhoek quit (Remote host closed the connection)
303: [09:30:14] <zippy__> simon_w You have to do that every time?
304: [09:30:17] <Jeremy2> its not in the cms its a define('SETTING_NAME', 30). so its not new nor will it change
305: [09:30:17] * nickmolhoek has joined #silverstripe
306: [09:30:34] <Pyromanik> write a getter.
307: [09:30:35] <simon_w> zippy__, you're missing the "Open all with current extension as..." step
308: [09:30:49] <Pyromanik> also, use the configuration system where applicable.
309: [09:31:19] <Jeremy2> oh but I could put it in the cms, thanks might be simpler to edit/tweak
310: [09:31:50] <zippy__> simon_w: Ah ok, that worked. It sounds deceiving, like it would set all the currently open files of .ss with that syntax.
311: [09:36:32] <Pyromanik> Jeremy2: if it's a site wide setting, look at decorators and SiteConfig
312: [09:36:48] <Jeremy2> its a module setting
313: [09:36:57] <simon_w> ooh, sexy new Flickr
314: [09:40:42] <Jeremy2> Pyromanik: Thanks for all your help. I think ill add it to the cms for ease of tweaking
315: [09:42:51] * Jeremy2 has left #silverstripe
316: [09:44:14] * MrJeremy has joined #silverstripe
317: [09:44:42] <MrJeremy> now Im registered
318: [09:54:54] <zippy__> WIth Mollom, do you guys just create free accounts for client websites? The limits are a bit of a pain, I find the plans to be very weird. Free = unlimited sites, but paid = 3! I don't mind paying, but it seems you pay and get less.
319: [09:59:02] <simon_w> zippy__, the number of sites means nothing if you go over their rate limits
320: [10:01:57] <zippy__> simon_w: correct, but that is what I mean by weird. unlimited sites but limit of 50. I need to support 100 sites but need a limit of 300. Enterprise is overkill. There is no way to add just a little bit more to an account
321: [10:02:41] <simon_w> zippy__, make your clients pay.
322: [10:02:42] * FrozenFire wonders why DataObject never shows up in Google searches
323: [10:02:45] <FrozenFire> Always DataObjectInterface
324: [10:04:17] <simon_w> FrozenFire, doing it wrong! http://doc.silverstripe.org/framework/en/reference/dataobject is my top hit
325: [10:05:20] <FrozenFire> https://www.google.com/search?q=site:api.silverstripe.org%2F3.1%20dataobject
326: [10:08:25] <FrozenFire> Anyone happen to know how jQuery handles redirects in $.get ?
327: [10:08:31] * gelignite quit (Quit: http://bit.ly/nkczDT)
328: [10:09:07] * cloph_away quit (Ping timeout: 256 seconds)
329: [10:09:13] <simon_w> All AJAX-related redirects are opaque to the JS
330: [10:09:41] <FrozenFire> Getting weirdness with an AJAX-ified link
331: [10:09:46] <FrozenFire> Not returning the JSON I expect
332: [10:09:48] <FrozenFire> Or anything
333: [10:09:56] <FrozenFire> The hit happens
334: [10:10:00] <FrozenFire> But no success call
335: [10:13:51] <FrozenFire> Mmm, now I am
336: [10:13:54] <FrozenFire> Weirdness
337: [10:13:56] <FrozenFire> Cached calls, probably.
338: [10:15:37] * Colin[pi] has joined #silverstripe
339: [10:18:58] <FrozenFire> Blegh. Is there some magic for returning JSON that I'm not aware of?
340: [10:19:17] <FrozenFire> Is there a magic helper on the response object for handling that?
341: [10:19:23] <catcher> what's wrong with this? $SDO = CustomDataObject::get()->filter('CustomImageID:GreaterThan', 0);
342: [10:19:36] <FrozenFire> catcher, I'd say, use :Not
343: [10:19:46] <FrozenFire> Or, exclude("CustomImageID", 0);
344: [10:20:18] <simon_w> FrozenFire, $this->response->addHeader('Content-type', 'application/json'); ?
345: [10:20:30] <FrozenFire> Blegh. I expected as much. :P
346: [10:20:49] <FrozenFire> Wish there was return $this->Response->json(array( ... ));
347: [10:21:28] <catcher> exclude is a winner, ty - but weird that I get 'setValue on a non-object' with the filter, no?
348: [10:24:10] * FrozenFire feels like he's retarded or something
349: [10:24:33] <FrozenFire> Derp.
350: [10:24:36] <FrozenFire> More caching
351: [10:24:38] <FrozenFire> I hate that shit.
352: [10:40:00] <zippy__> If I have a has_many relationship, and I have an ID which I want to check is in the relationship (e.g., if $staff->hasStudent($studentID); in my haStudent would I need to loop my $this->Students relationship and check the id, or is there a better way - the DataModel page doesn't seem to provide much information. Basically, how can I check (and then add) an object to a relationship
353: [10:45:05] <simon_w> zippy__, just add it? $staff->Students()->add($studentID) will make sure that the student with that ID's in the list
354: [10:45:22] <zippy__> simon_w: how can I check if it exists in there first?
355: [10:45:23] <simon_w> though, to check, $staff->Students()->byID($studentID)
356: [10:45:27] <zippy__> gotcha
357: [10:45:42] <zippy__> I see, so filtering it really
358: [10:50:22] * fake has joined #silverstripe
359: [10:50:46] * fake is now known as Guest59463
360: [10:51:14] <Guest59463> Hi there, in SS 3, how to load a single form field in the form template ? $Fields.dataFieldByName(FieldName) seems not working
361: [10:52:03] * Guest59463 quit (Client Quit)
362: [10:53:04] * fakep has joined #silverstripe
363: [10:53:21] <Pyromanik> FrozenFire: aren't AJAX calls never cached?
364: [10:53:37] <fakep> hi there, sorry to ask the same question again, lost the connection
365: [10:53:37] <simon_w> Pyromanik, nope
366: [10:53:38] <fakep> Hi there, in SS 3, how to load a single form field in the form template ? $Fields.dataFieldByName(FieldName) seems not working
367: [10:54:09] <Pyromanik> simon_w: nope they get cached?
368: [10:54:14] <simon_w> Pyromanik, yeah
369: [10:54:28] <Pyromanik> oh. I thought browsers didn't cache XHRs
370: [10:54:49] <simon_w> fakep, Are you in the right scope? Is that field actually a data field? Is the name correct?
371: [10:55:01] <simon_w> Pyromanik, some don't, some do. Corporate proxies like to as well.
372: [10:55:28] <Pyromanik> fakep: $Form.Fields.dataFieldByName(Name)
373: [10:55:34] <Pyromanik> try that
374: [10:55:41] <fakep> the form template was included successfully
375: [10:56:03] <fakep> but in the form.ss just can't get the field I want
376: [10:56:17] <Pyromanik> fakep: if you're trying to change the template for a single field, try it programmatically with $field->setFieldHolderTemplate()
377: [10:56:30] <Pyromanik> fakep: it might not be a datafield
378: [10:56:35] <Pyromanik> try fieldByName
379: [10:56:53] <Pyromanik> try using dot notation if it's a subfield
380: [10:57:20] <Pyromanik> eg fieldByName("Name.FieldYouWant")
381: [10:57:50] <Pyromanik> simon_w: yeh true proxys I guess.
382: [10:59:52] <fakep> $fields = new FieldList( EmailField::create('Email')->addExtraClass('input input-text')->setAttribute('placeholder', 'email address')->setAttribute('type', 'email'), PasswordField::create('Password')->addExtraClass('input input-text')->setAttribute('placeholder', 'password')->setAttribute('type', 'password') );
383: [11:00:13] <fakep> then I renderWith('Form.ss')
384: [11:00:28] <fakep> the form.ss is inclueded in the page.ss
385: [11:00:56] <fakep> in the form.ss i tried $Fields.fieldByName(Email) or $Fields.dataFieldByName(Email)
386: [11:07:00] * pex quit (Quit: pex)
387: [11:08:04] <simon_w> fakep, what are you calling renderWith() on? And you probably shouldn't name it Form.ss
388: [11:11:16] <fakep> renderWith('LoginForm')
389: [11:11:39] <fakep> renderWith('LoginForm')
390: [11:12:06] <simon_w> fakep, What are you calling it on?
391: [11:12:15] <Pyromanik> There already is a LoginForm.ss, no?
392: [11:12:15] <fakep> renderWith('LoginForm')
393: [11:12:29] <Pyromanik> fakep: No, what is the OBJECT you're calling the method on?
394: [11:12:35] <fakep> then I put the LoginForm.ss in the includes
395: [11:12:42] <fakep> sorry
396: [11:13:23] <Pyromanik> $form = new Form(...); $form->renderWith('LoginForm') ?
397: [11:13:59] <fakep> $this->renderWidth()
398: [11:14:02] <FrozenFire> Making the blog module let you do future publishing, but hidden. How to?
399: [11:14:16] <FrozenFire> That is, I want to be able to set the Date for a future date, and have the post only show up then.
400: [11:14:37] <Pyromanik> fakep: and what is $this?
401: [11:14:43] <FrozenFire> I know how I'd do it if I was writing it. But blog module is cray-cray
402: [11:14:54] <Pyromanik> FrozenFire: modify BlogSummary?
403: [11:14:56] <zippy__> FrozenFire: could you just not change your blog holder to fetch entries older than current day?
404: [11:15:00] <Pyromanik> or, install the workflow module?
405: [11:15:25] <fakep> yes, guess something wrong here, i have no diea either, :) thanks
406: [11:15:27] <Pyromanik> iirc workflow has embargo/expiry with it
407: [11:15:28] <FrozenFire> I think you guys overestimate the sane-ness of blog module
408: [11:15:39] <Pyromanik> FrozenFire: not really, I've looked at it.
409: [11:16:00] <zippy__> FrozenFire: I've done it before, but can't recall how (was couple of years ago)
410: [11:16:19] <Pyromanik> FrozenFire: there's a summary method on blogholer or tree
411: [11:16:35] <Pyromanik> if it has a hook (doubtful) you could decorate
412: [11:16:37] <FrozenFire> Actually, nevermind. I look at it now and I've already created a separate accessor for blog entries on a holder for filtering it properly.
413: [11:16:48] <Pyromanik> or subclass and hide_ancestor
414: [11:16:59] <Pyromanik> FrozenFire: or that ;)
415: [11:17:02] <FrozenFire> God this project has been going on so long I've forgotten what changes I've made.
416: [11:17:08] <Pyromanik> lulz
417: [11:17:12] <Pyromanik> hack all the cores!
418: [11:17:51] <FrozenFire> I fucking despise this client
419: [11:17:53] <Pyromanik> "you must restart your machine to finish your Adobe Acrobat update" - what, the, fuck.
420: [11:18:03] <FrozenFire> They've basically made my current employer go kaput
421: [11:18:06] <lewellyn> yay adobe not knowing how to tskill their crap
422: [11:18:08] <FrozenFire> New job at the end of the month
423: [11:18:27] <Pyromanik> FrozenFire: there was an embargo/expiry module for 2.4 you could probably hack up and plonk in for basic support in 3.0 if you don't want the full workflow weight.
424: [11:18:38] <Pyromanik> FrozenFire: wow, that sucks :(
425: [11:18:54] <Pyromanik> lewellyn: tskill?
426: [11:19:11] <lewellyn> Pyromanik: it's the windows equiv of pkill
427: [11:19:14] <Pyromanik> FrozenFire: I hear lots of places in Wellington are hiring :P
428: [11:19:22] <Pyromanik> lewellyn: ah.
429: [11:19:38] <Pyromanik> nah, I assume it's for some kind of OS hook
430: [11:19:39] <FrozenFire> :P My new job pays more and is more in line with my level of competence.
431: [11:19:51] <Pyromanik> FrozenFire: nice
432: [11:19:59] <FrozenFire> Unfortunately for you guys, that probably means I stop using SilverStripe.
433: [11:19:59] <FrozenFire> :P
434: [11:20:09] <Pyromanik> FrozenFire: so your current job is under or above your current level of competence?
435: [11:20:19] <Pyromanik> FrozenFire: sif. you'll still be here
436: [11:20:22] <FrozenFire> Current job is way below my level of competence and pay.
437: [11:20:31] <Pyromanik> FrozenFire: IC.
438: [11:20:39] <Pyromanik> well congratulations then :)
439: [11:21:07] <zippy__> Wellington gives me the jitters
440: [11:21:13] * fakep quit (Quit: Page closed)
441: [11:21:13] <FrozenFire> Incidentally, if my replacement doesn't work out, one of you guys is welcome to my job, if my employer keeps going. :P
442: [11:21:24] <lewellyn> heh.
443: [11:21:25] <zippy__> After being all through Chch quakes, the thought of Wellington makes me queezy!
444: [11:22:34] <Pyromanik> zippy__: where are you now?
445: [11:23:02] <Pyromanik> FrozenFire: $40USD an hour right?
446: [11:23:09] <Pyromanik> sounds great
447: [11:23:18] <Pyromanik> but I don't want the stress :P
448: [11:23:22] <FrozenFire> $25/hour, actually.
449: [11:23:31] <FrozenFire> New job is going to be $40/hour
450: [11:23:44] <Pyromanik> nice
451: [11:23:50] <FrozenFire> And yeah, my current employer would only be good for someone who is knowledgeable but inexperienced.
452: [11:24:09] <FrozenFire> Someone who doesn't really have much to lose, as far as financial responsibilities go
453: [11:24:30] <FrozenFire> Which is why I'm jumping ship so quickly.
454: [11:24:48] <Colin[pi]> Sounds like the writing is on the wall FF?
455: [11:25:15] <FrozenFire> No doubt. I wouldn't actually count him out just yet, but he'll have to get creative in the coming months.
456: [11:25:31] <FrozenFire> If I were in his position, this current client would've been fired months ago, no matter the legal repercussions.
457: [11:25:37] <Colin[pi]> I've been in that situation before, not a pleasant feeling
458: [11:26:20] <FrozenFire> Indeed. If not for the money stuff, I'd've gladly stayed on indefinitely.
459: [11:27:01] <FrozenFire> My current boss/client is a good guy, with good projects, and a lot of respect for me, so I've nothing but hope for his success.
460: [11:27:12] <zippy__> Pyromanik: nelson
461: [11:29:40] <Colin[pi]> I worked at one place with about 50 staff, 45 managers, and 5 people actually doing work
462: [11:29:55] <Colin[pi]> needless to say that we could see it imploding long before it did
463: [11:30:08] <Colin[pi]> surprised it lasted as long as it did, actually
464: [11:32:59] <Pyromanik> zippy__: oh yeah, who do you work for/as?
465: [11:33:16] <zippy__> freelance
466: [11:33:48] <Pyromanik> as a developer?
467: [11:34:00] <zippy__> yes
468: [11:34:01] <Pyromanik> wait, you're not Tama are you?
469: [11:34:05] <zippy__> no
470: [11:34:25] <Pyromanik> righto.
471: [11:34:44] <Pyromanik> or Scotti?
472: [11:34:49] <zippy__> no :)
473: [11:35:03] <simon_w> zippy__, coming to the hackfest?
474: [11:35:08] <Pyromanik> yeah, he's designer.
475: [11:35:26] <Pyromanik> yeah zippy, it's just a ferry ride for you.
476: [11:35:41] <zippy__> simon_w: no I'm not, try and stay out of wellington :) thou will likely go up for the kiwi con later in the year
477: [11:35:50] <zippy__> when is it?
478: [11:35:56] <simon_w> What's wrong with Wellington? :p
479: [11:36:00] <Pyromanik> simon_w: is project _config always included last?
480: [11:36:01] <simon_w> Saturday
481: [11:36:04] <Pyromanik> simon_w: earthquakes.
482: [11:36:09] <simon_w> Pyromanik, nope
483: [11:36:12] <Colin[pi]> lol
484: [11:36:16] <simon_w> Pyromanik, New Zealand
485: [11:36:33] <Pyromanik> simon_w: New Zealand is always included last?
486: [11:36:37] <Colin[pi]> yeah earthquakes in NZ don't just happen in Welly lol
487: [11:36:42] <simon_w> Pyromanik, earthquakes
488: [11:36:44] <zippy__> Guys seen that video clip on stuff with the dudes parachute?
489: [11:36:55] <Pyromanik> nope
490: [11:38:32] <Pyromanik> weird I just got an error in the cms, admin/pages
491: [11:38:41] <Pyromanik> complaining about trim() in SiteTree
492: [11:38:43] * catcher quit (Quit: Leaving)
493: [11:38:44] <Pyromanik> but now can't replicate it
494: [11:38:52] * joelpittet quit (Remote host closed the connection)
495: [11:45:36] * MrJeremy quit (Ping timeout: 245 seconds)
496: [11:47:09] * MrJeremy has joined #silverstripe
497: [11:47:16] * simon_w quit (Ping timeout: 245 seconds)
498: [11:50:08] * simon_w has joined #silverstripe
499: [11:53:37] <Pyromanik> ERROR [User Error]: Uncaught Exception: Object->__call(): the method 'extends' does not exist on 'BannerSlide'
500: [11:53:40] <Pyromanik> what does it mean?
501: [11:53:54] <Pyromanik> class BannerSlide extends DataObject {
502: [11:53:59] <Pyromanik> :<
503: [11:54:12] <Pyromanik> oh, extend/extends
504: [11:54:13] <Pyromanik> derp
505: [11:59:05] * Liquide has joined #silverstripe
506: [11:59:17] <zippy__> :)
507: [12:01:43] <Pyromanik> hmm
508: [12:01:53] <Pyromanik> it seems I have a slightly corrupt 3.0.5
509: [12:02:01] <Pyromanik> my right click "add here" menu isn't working
510: [12:02:02] <Colin[pi]> :C
511: [12:04:26] * MattSS_ is now known as MattSS
512: [12:04:37] * MattSS quit (Changing host)
513: [12:04:38] * MattSS has joined #silverstripe
514: [12:04:49] <Pyromanik> can anyone confirm/deny?
515: [12:04:51] <Pyromanik> Colin[pi]: ?
516: [12:06:53] * willr_ has joined #silverstripe
517: [12:08:56] * Pyromanik denies.
518: [12:09:00] <Pyromanik> hmm
519: [12:09:37] <Pyromanik> could it be i18n::set_locale('en_NZ') that does it?
520: [12:09:51] <Colin[pi]> change it and see
521: [12:09:54] <Pyromanik> and/or set_default_locale to the same
522: [12:10:02] <Pyromanik> Colin[pi]: I did, but didn't affect already set up site
523: [12:10:09] <Colin[pi]> :\
524: [12:13:43] * FrozenFire is fucking tired of many_many_extraFields
525: [12:13:48] * FrozenFire is back to trying to make this work
526: [12:14:10] <FrozenFire> Need to have a CMS field show up when a many_many_extraField is set on the object
527: [12:14:13] <FrozenFire> And then have that save back.
528: [12:14:16] <Pyromanik> FrozenFire: make a DataObject with the same name as the join table
529: [12:14:21] <FrozenFire> Nope
530: [12:14:23] <Pyromanik> pages_Images
531: [12:14:26] <Pyromanik> or whatever
532: [12:14:30] <Pyromanik> and hax it
533: [12:14:30] <FrozenFire> Can't work that way
534: [12:14:34] <Pyromanik> can :<
535: [12:14:37] <FrozenFire> Not
536: [12:14:58] <FrozenFire> Needs to be an extra field
537: [12:15:05] <Pyromanik> I mean the DO with same name works, might not fit your solution
538: [12:15:09] <Pyromanik> FrozenFire: yeah, I mean have BOTH.
539: [12:15:14] <Pyromanik> they use the same join table.
540: [12:15:27] <Pyromanik> but having an object gives you a tad more control
541: [12:15:45] <Pyromanik> FrozenFire: see this: 
542: [12:15:47] <Pyromanik> https://github.com/frankmullenger/silverstripe-gallery/blob/master/code/GalleryPage.php
543: [12:15:56] * Bollig|DesignCty has joined #silverstripe
544: [12:16:15] <FrozenFire> Doesn't really solve my problem
545: [12:16:23] <FrozenFire> My problem is having the CMS field save
546: [12:16:38] <Pyromanik> save the intermediary object
547: [12:16:48] <Pyromanik> the issue is now getting that to happen from the same page
548: [12:16:51] <Pyromanik> but you could use an onbeforewrite
549: [12:16:58] <Pyromanik> or onafterwrite
550: [12:17:40] <Pyromanik> cf the Caption() method in that file I just linked
551: [12:17:48] <Pyromanik> (although it's a getter, not a setter)
552: [12:17:52] <FrozenFire> Not really. Since I don't know what the many-many relationship is that's being operated upon
553: [12:18:05] <Pyromanik> how do you not know that/
554: [12:18:08] <Pyromanik> ?
555: [12:18:34] <Pyromanik> or do you mean it's a generic field that needs to save any definded many_many?
556: [12:19:32] <FrozenFire> The target of a many-many doesn't know when it's being operated upon
557: [12:19:38] <FrozenFire> Or by whom
558: [12:19:47] <FrozenFire> Sfaik
559: [12:20:35] <FrozenFire> Hoshit.
560: [12:20:38] <FrozenFire> I think I figured it out
561: [12:20:43] <Pyromanik> kgo
562: [12:20:46] <Pyromanik> reportback
563: [12:20:46] <FrozenFire> Nope
564: [12:20:49] <FrozenFire> :P
565: [12:20:53] <FrozenFire> Goddamn AJAX form submission
566: [12:21:05] <FrozenFire> Always makes me jump from joy
567: [12:21:08] <FrozenFire> Only to be let down
568: [12:21:30] <Pyromanik> :<
569: [12:21:53] <Pyromanik> I can't figure out where my site tree context menu has gone :<
570: [12:23:35] <FrozenFire> Fuck the police. Going to make a custom GridFieldDetailForm_ItemRequest
571: [12:23:53] <Pyromanik> :D
572: [12:24:14] * Pyromanik FFFFFFFFFFFFFFFUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU's
573: [12:25:49] <Pyromanik> dear internets: halp
574: [12:25:52] <Pyromanik> http://iforce.co.nz/i/komkoauk.cef.png
575: [12:26:09] <Pyromanik> I've taken a clean install
576: [12:26:15] <Pyromanik> which this menu works in
577: [12:26:23] <Pyromanik> transplanted EVERYTHING excepting the mysite folder
578: [12:26:30] <Pyromanik> no modules
579: [12:26:37] <Pyromanik> (other than cms)
580: [12:26:52] <Pyromanik> same mysite/_config.php
581: [12:27:30] <FrozenFire> It's just fucking with me now
582: [12:28:01] <Pyromanik> the only difference is that one site was initially built with the config already in place, the other had the updated config copied in after the initial build
583: [12:28:23] <FrozenFire> Here's basically how it works right now.
584: [12:28:32] <Pyromanik> this is the _config.php
585: [12:28:34] <Pyromanik> http://sspaste.com/paste/show/519abf9927346
586: [12:28:34] <FrozenFire> If there is no value
587: [12:28:37] <FrozenFire> It saves correctly.
588: [12:28:43] <FrozenFire> If there is a value, it sets it to null
589: [12:28:56] <FrozenFire> If the value is set to null previously, it saves correctly.
590: [12:29:12] <FrozenFire> So basically, one can set a value if it's null. But if you try to change the value, it sets it null.
591: [12:29:15] <FrozenFire> FUCK THE POLICE
592: [12:29:20] <FrozenFire> And the whole framework
593: [12:29:39] <Pyromanik> waw
594: [12:29:43] <Pyromanik> bugged
595: [12:29:49] <FrozenFire> Completely.
596: [12:30:36] <FrozenFire> LOLOLOLOL
597: [12:30:40] <FrozenFire> It's fucking CurrencyField or some shit
598: [12:30:49] <Pyromanik> so now look at my config, and my picture and tell me what's wrong
599: [12:31:12] <FrozenFire> Oh. My. Fucking. God.
600: [12:31:17] <Pyromanik> I've a sneaky idea it's because set_locale or set_default_locale
601: [12:32:00] <Pyromanik> FrozenFire: oh, currency field and numeric field are right dicks.
602: [12:32:14] <Pyromanik> I could have told you that one
603: [12:34:22] <FrozenFire> More than dicks
604: [12:34:24] <FrozenFire> Broken.
605: [12:34:34] <FrozenFire> NumericField is fine
606: [12:34:39] <zippy__> Whats wrong with currency field, seems to be ok here with 3.05 - but then I haven't tried to break it
607: [12:34:42] <FrozenFire> But CurrencyField needs to be fixed or removed.
608: [12:36:05] <zippy__> what I am trying to find out, is if there is a useable paypal module that does IPN
609: [12:37:21] <FrozenFire> Eh, I've done more PayPal stuff than I would ever want to, and IPN is not really necessary.
610: [12:37:30] <FrozenFire> Like, truly not necessary.
611: [12:37:36] <FrozenFire> Almost never necessary.
612: [12:37:54] <zippy__> How do you figure?
613: [12:38:14] <zippy__> How do you validate the purchase, ensure the user really did pay?
614: [12:38:53] <FrozenFire> The PayPal flow is this: Create an order token. Send user to the PayPal checkout page with that token. User authorizes token's contents for payment. User is sent back to your confirm-this-purchase page with the token attached. You verify that the payment is authorized with PayPal server-side, then finalize it.
615: [12:39:08] <FrozenFire> PayPal says the payment happened, synchronously, and then you tell the user as much
616: [12:39:24] <FrozenFire> The payment never happens until you tell it to, server-side.
617: [12:39:50] <zippy__> That using the PaymentExpress?
618: [12:39:58] <FrozenFire> Yes
619: [12:40:04] <simon_w> I really don't like that particular flow
620: [12:40:32] <FrozenFire> That's how it's done. I actually rather like it, for what it is.
621: [12:40:50] <FrozenFire> Gives you a chance to modify the order before actual payment, if necessary.
622: [12:40:59] <zippy__> Why would you need to?
623: [12:41:04] <FrozenFire> You get details back on how they *will* pay, before it actually happens.
624: [12:41:08] <zippy__> gotcha
625: [12:41:18] <FrozenFire> That way you can say, "This aspect of your payment is fucked. Fix it"
626: [12:41:43] <simon_w> But it never tells me how much I'm actually going to get charged, just the conversion rate
627: [12:42:02] <FrozenFire> Only if the developer is shit
628: [12:42:13] <FrozenFire> You can give a line-item breakdown of everything involved in the order.
629: [12:43:00] <simon_w> So you always read figures back out of Paypal instead of just loading up your order again?
630: [12:43:12] * nikrolls has joined #silverstripe
631: [12:43:46] <FrozenFire> Not sure what you mean.
632: [12:44:03] <FrozenFire> If you want, you can execute the transaction immediately as they hit your after-PayPal landing page.
633: [12:44:11] <FrozenFire> And then immediately redirect them to say it's done.
634: [12:44:20] <ss23> Okay so client asked "when can we go live", and I'm like "Well we need to get the server changed, there's a security issue if we launch before it's done.". Wanna take bets on whether he's like FUCK IT, GO LIVE
635: [12:45:15] <FrozenFire> ss23, I like to say something along the lines of "The paperwork necessary to eliminate my risk in that situation would take longer to complete than the fix for the problem."
636: [12:45:22] <simon_w> When using that flow, Paypal doesn't display the amount of NZD I'm going to be charged, just the conversion rate from the (usually) USD figure
637: [12:45:32] <FrozenFire> That is, you have to disclaim all risk on the premature launch
638: [12:45:34] <simon_w> When using the entire paypal-side flow, I get the NZD figure as well
639: [12:45:51] <FrozenFire> simon_w, That makes just about zero sense.
640: [12:45:56] <FrozenFire> :P
641: [12:45:58] <ss23> Meh, I'm not worried about them sueing me or aynthing, FrozenFire. There's no risk, this is NZ
642: [12:46:01] <ss23> :D
643: [12:46:11] <FrozenFire> simon_w, Everything *is* PayPal-side
644: [12:46:25] <FrozenFire> They give just you the opportunity to intercept the payment process before the transaction executes.
645: [12:46:25] <zippy__> ss23: You can still get taken to court
646: [12:46:36] <ss23> zippy__: I could, but this client wouldn't, is what I mean
647: [12:46:36] <FrozenFire> ss23, Nah, it's more for the benefit of the client than you.
648: [12:46:41] <simon_w> FrozenFire, and doing that means PayPal only shows the USD figure
649: [12:46:52] <FrozenFire> Meaning, you are giving them a bullshit reason why they don't want to launch early
650: [12:46:59] <ss23> lol
651: [12:47:08] <ss23> Screw that, too lazy. If they want to launch we can
652: [12:47:22] <ss23> Like, I don't really care if they get hacked
653: [12:47:35] <FrozenFire> Meh. More than just hacking. If they launch in a hurry, other shit is likely to happen.
654: [12:47:44] <FrozenFire> A client of ours went bankrupt as a result of exactly that.
655: [12:48:01] <FrozenFire> They scheduled $20k in advertising for a given day, to run during a football game.
656: [12:48:01] <ss23> It's not in a hurry, it's been a long time, we're just waiting on some external host stuff
657: [12:48:11] <FrozenFire> They didn't give us enough time to launch.
658: [12:48:14] <ss23> haha, I actually think this company did a similiar thing XD
659: [12:48:15] <FrozenFire> Site flopped under the load
660: [12:48:40] <FrozenFire> They also didn't tell us the site would be getting thousands of concurrent users
661: [12:49:02] <FrozenFire> On the fly, we managed to push it into a load balanced setup, but the damage was done.
662: [12:50:04] <xyphoid> reading back, I want IPN because sometimes the customer DOESN'T come back to my confirm-this-purchase page with the token.
663: [12:50:51] <xyphoid> and at that point the customer thinks they've paid and you don't know that
664: [12:51:33] <FrozenFire> True. I just find that handling the IPN/non-IPN split is really not worth it.
665: [12:51:35] * gordon has joined #silverstripe
666: [12:51:48] <FrozenFire> You could conceivably store the tokens generated via IPN for later processing
667: [12:51:56] <FrozenFire> But that's less-than-ideal
668: [12:51:59] * gordon is now known as Guest11557
669: [12:52:15] <FrozenFire> That is, if you want to process the transaction after the user gets back, versus IPN, in some cases.
670: [12:52:22] * Guest11557 is now known as elgrodo
671: [12:54:46] <zippy__> If you don't handle the IPN, how do you handle cancels / refunds?
672: [12:54:51] <zippy__> subscription cancels etc
673: [12:55:14] <FrozenFire> Not sure what you mean.
674: [12:55:34] <FrozenFire> If a payment happens using PayPal Express Checkout, your server at some point gets to explicitly say it did.
675: [12:55:48] <FrozenFire> So at that point, you know for certain what the payment token is.
676: [12:56:23] <zippy__> right
677: [12:56:25] <FrozenFire> As well, if you need to associate a payment token with a member, you should do that *before* sending them to PayPal
678: [12:56:44] <FrozenFire> So when you get told about it either via IPN or return, you can verify who owns the token.
679: [12:56:45] <zippy__> and if the next day the user cancels the subscription in paypal, or ask paypal for a refund, how do you stop them access?
680: [12:57:07] <FrozenFire> Ah. That's a whole different ball-game.
681: [12:57:24] <FrozenFire> I'm not even sure how that works.
682: [12:57:30] <FrozenFire> I think PayPal has a notification URL thingy for that
683: [12:57:44] <FrozenFire> But you can also have a batch which checks subscriptions, if needed.
684: [12:57:48] <zippy__> ah yea.. IPN :)
685: [12:58:12] <FrozenFire> IPN does complicate things, though, I find.
686: [12:58:17] <FrozenFire> But yeah, that's a complicated scenario.
687: [12:58:29] <FrozenFire> Since it happens outside of the scope/control of your application
688: [12:58:37] <zippy__> so your saying, when ever you use Paypal and don't handle the IPN you don't mind if people refund - you just let them to continue to have access / receive their order.
689: [12:59:29] <FrozenFire> I just let the client handle that using the existing means.
690: [12:59:34] <FrozenFire> The site doesn't need to know about it.
691: [12:59:44] <FrozenFire> Reversed payments are notified through the merchant interface, iirc.
692: [12:59:59] <FrozenFire> Subscriptions are a different dealie, though
693: [13:00:08] <FrozenFire> That'd be a case where I'd check subscriptions in a batch
694: [13:00:13] <FrozenFire> Instead of relying upon external triggers.
695: [13:00:13] * spronk quit (Read error: Connection reset by peer)
696: [13:00:46] * spronk has joined #silverstripe
697: [13:08:04] <FrozenFire> Anyone have a pattern for creating ModelAdmin SearchForm checkboxes?
698: [13:08:45] <FrozenFire> I need to have a checkbox for filtering based on a relation being fulfilled
699: [13:14:34] <Pyromanik> zippy__: YOU'RE
700: [13:14:45] <zippy__> O.o
701: [13:15:31] <zippy__> Used to be on a tv show called "Rainbow"?
702: [13:16:06] <irogue> zippy__, where's bungle?
703: [13:17:25] <zippy__> gone bush
704: [13:18:25] * Pyromanik gets tot he bottom of the issue
705: [13:18:37] <Pyromanik> it's i18n::set_default_locale()
706: [13:18:44] <Pyromanik> MAKES MY MENU DISAPPPEARS
707: [13:19:09] <Pyromanik> no zippy__, 12:58 < zippy__> so your saying,
708: [13:19:11] <Pyromanik> you're
709: [13:19:23] <zippy__> lol
710: [13:19:32] <Pyromanik> who's been up all night banging with rod and rodger?
711: [13:21:05] <Colin[pi]> O_O
712: [13:21:46] <elgrodo> Zippy was somewhat foul mouthed http://www.youtube.com/watch?v=oFF-CzaAkIY
713: [13:22:28] <Pyromanik> long story short: i18n::set_default_locale($code); results in http://iforce.co.nz/i/komkoauk.cef.png
714: [13:22:42] <Pyromanik> does it still do this in 3.1 simon_w ?
715: [13:24:20] <Pyromanik> (above image is 3.0.5)
716: [13:25:14] <Pyromanik> I tested with en_GB and en_NZ
717: [13:30:47] * pevjan has joined #silverstripe
718: [13:33:42] <Pyromanik> hmm
719: [13:33:44] <Pyromanik> http://sspaste.com/paste/show/519aceddf08b7
720: [13:34:38] * ^pH has joined #silverstripe
721: [13:38:08] * ^pH- quit (Ping timeout: 256 seconds)
722: [13:41:05] <Pyromanik> ah
723: [13:41:23] <Pyromanik> I defined a page with static $default_parent = array('parent') rather than = 'parent';
724: [13:42:19] <MattSS> Pyromanik: funny, I'm just looking at the exact same issue myself
725: [13:42:33] <Pyromanik> MattSS: so I just solved your problem :>
726: [13:43:05] <MattSS> depends how you fixed it ;)
727: [13:43:53] <Pyromanik> MattSS: I had BlahPage extends Page { public static $default_parent = array('BlahParent'); [...] }
728: [13:44:20] <Pyromanik> where I should have had BlahPage extends Page { public static $default_parent = 'BlahParent'; [...] }
729: [13:44:26] <MattSS> Pyromanik: is that to do with the i18n thing with text labels disappearing?
730: [13:44:32] <MattSS> or another issue?
731: [13:44:43] <Pyromanik> MattSS: nope
732: [13:44:46] <Pyromanik> well
733: [13:45:02] <Pyromanik> nah not really
734: [13:45:58] <MattSS> [13:13:52] < Pyromanik> | long story short: i18n::set_default_locale($code); results in http://iforce.co.nz/i/komkoauk.cef.png
735: [13:46:02] <Pyromanik> MattSS: my solution to the text labels thing was to // on _config.php's i18n::set_default_locale()
736: [13:46:15] <MattSS> ah ok
737: [13:46:35] <Pyromanik> however I suspect that simply filling in the missing translation issues would also solve that issue.
738: [13:46:39] <MattSS> I appear to be using en_GB and it's causing it. I suspect it's because
739: [13:46:45] <Pyromanik> but as this is an NZ site with no need for other languagesw
740: [13:46:50] <Pyromanik> no poitn.
741: [13:46:58] <Pyromanik> MattSS: yeh, I tried en_GB and en_NZ
742: [13:46:58] <MattSS> the lang array doesn't contain an option for that string, and the call to _t isn't providing a default
743: [13:47:01] <Pyromanik> the default is en_US
744: [13:47:11] <Pyromanik> MattSS: yep, I suspect so too.
745: [13:47:28] <MattSS> The _t() call is this: 'label': ss.i18n._t('Tree.EditPage'),
746: [13:47:29] <Pyromanik> although it's all done with yaml these days
747: [13:47:34] <Pyromanik> yeh
748: [13:47:40] <MattSS> that's in cms/javascript/CMSMain.Tree.js
749: [13:47:46] <MattSS> adding in a second argument makes it work fine
750: [13:47:56] <Pyromanik> and tree.whatevertheoptionisforaddachileoftype
751: [13:48:06] <Pyromanik> chile/child
752: [13:48:16] <MattSS> yeah
753: [13:48:32] <MattSS> Tree.AddSubPage
754: [13:48:37] <Pyromanik> mm
755: [13:49:54] <Pyromanik> that context menu is handy as it restricts the options down to only the allowed_children for the parent
756: [13:50:18] <Pyromanik> where as the 'add new' button doesn't
757: [13:52:57] <MattSS> plus it's nice UI
758: [13:53:04] <Pyromanik> yep
759: [13:53:19] <ss23> All bets are in - "We got it working Stephen...so if you could take it live now that would be awesome". They chose "go live with a heavy chance of getting the shit hacked out of you"
760: [13:53:24] <Pyromanik> wtf
761: [13:53:50] <Pyromanik> ss23: you should be that hacker
762: [13:53:53] <ss23> lol
763: [13:53:57] <Pyromanik> good business strategy.
764: [13:54:06] <Pyromanik> rofl
765: [13:54:18] <ss23> I've considered it before...
766: [13:54:21] <Pyromanik> MattSS: hmm
767: [13:54:43] <Pyromanik> addsubpage doesn't show up at all in a search of the lang file for en OR en_GB
768: [13:55:00] <Pyromanik> (why is use the default for a CMS most used by the rest of the world?)
769: [13:55:11] <Pyromanik> why is US*
770: [13:56:41] <irogue> ss23: yeah, more $$ for you to fix it once it happens
771: [13:56:58] <Pyromanik> although if you get caught, not a good business strategy :<
772: [13:57:00] <ss23> lol
773: [13:57:19] <ss23> Yeah, like that site the other day, $60 for going in and noticing 400,000 spam comments on a blog
774: [13:57:22] <ss23> :D
775: [13:58:22] <Pyromanik> how the F-balls does translation work?
776: [13:58:41] <Pyromanik> I added a like to cms/lang/en_GB.yml
777: [13:58:44] <Pyromanik> line*
778: [13:58:48] <Pyromanik> but it don't work.
779: [13:59:11] <ss23> Also I fucking hate only having FTP access and not SSH access.
780: [13:59:56] <lewellyn> i remember one place that thought ftps wwas the same as sftp. they couldn't understand why they had recurrent issues with permissions.
781: [13:59:58] <MattSS> Don't you love FTP's ability to gunzip a .tar.gz of the site? Oh wait...
782: [14:00:37] <Pyromanik> MattSS: no, I love FTP's ability to upload a single file at a time, taking an hour to do a whole site and with all the wrong permissions on all the files.
783: [14:00:53] <Pyromanik> .txt files marked exceutable and suchlike
784: [14:00:53] <lewellyn> and chmod not actually changing modes
785: [14:01:06] <FrozenFire> And corrupting data
786: [14:01:21] <lewellyn> i refuse to touch that crap ever again.
787: [14:01:28] <Colin[pi]> yeah what I usually do is transfer a tar.gz, then I login via SS... oh wait
788: [14:01:34] <FrozenFire> Indeed. I have a "FTP? You're fired." rule
789: [14:03:11] <Pyromanik> how to rebuild translations?
790: [14:03:29] <lewellyn> i don't dislike ftp. i dislike it as a management platform.
791: [14:03:29] <FrozenFire> Rebuild?
792: [14:03:35] <FrozenFire> Oh, i18n
793: [14:03:45] <FrozenFire> You mean flush translations?
794: [14:03:53] <Pyromanik> FrozenFire: I added lines to cms/lang/en_GB.yml to try and solve MattSS and I's issue.
795: [14:03:57] <Pyromanik> FrozenFire: yes.
796: [14:04:01] <Pyromanik> flush translations
797: [14:05:40] <FrozenFire> Maybe ?flush=all
798: [14:05:41] <FrozenFire> ?
799: [14:06:06] <Pyromanik> yeh I tried
800: [14:06:25] <FrozenFire> Also, why are you adding lines to CMS files?
801: [14:06:33] <Pyromanik> FrozenFire: testing
802: [14:06:41] <FrozenFire> This is not an explanation
803: [14:06:41] <Pyromanik> bugfix
804: [14:06:45] * cloph_away has joined #silverstripe
805: [14:06:49] <Pyromanik> testing for a bugfix
806: [14:06:55] <FrozenFire> You should be able to add the corresponding lines to your project's translation files
807: [14:06:57] <Pyromanik> to push back upstream
808: [14:07:13] <Pyromanik> FrozenFire: should be able to, but that doesn't help me get it into core
809: [14:08:44] <Pyromanik> maybe i18ntextcollectortask
810: [14:09:03] <Pyromanik> oh goody
811: [14:09:07] <Pyromanik> reset connection
812: [14:09:09] <Pyromanik> fantastic
813: [14:09:54] <FrozenFire> Uhh
814: [14:09:56] <FrozenFire> Yeah, don't run that.
815: [14:09:59] <Pyromanik> oh great, now the whole site don't load
816: [14:10:01] <FrozenFire> Now your project is littered
817: [14:10:06] <Pyromanik> yep, lol
818: [14:10:06] <FrozenFire> I hope you're using git
819: [14:10:13] <Pyromanik> littered with what?
820: [14:10:20] <lewellyn> fail
821: [14:10:22] * MattSS notes to self: do't run that
822: [14:10:22] <FrozenFire> Littered with a veritable assload of files
823: [14:10:35] <Pyromanik> FrozenFire: where?
824: [14:10:36] <FrozenFire> You'll now need to basically git clean -rf
825: [14:10:46] <FrozenFire> Or something like that
826: [14:11:05] <Pyromanik> not seeing any litter
827: [14:11:19] <FrozenFire> The text collector goes through all of the modules, reads their templates for uses of _t and then writes files out "collecting" uses of those
828: [14:11:29] <FrozenFire> It can create a huge. fucking. mess.
829: [14:11:30] <FrozenFire> :P
830: [14:11:34] <Pyromanik> so
831: [14:11:35] <Pyromanik> it
832: [14:11:39] <simon_w> MattSS, fix it!
833: [14:11:43] <Pyromanik> re-builds all the lang.ymls?
834: [14:11:54] <simon_w> Pyromanik, just the US one
835: [14:11:54] <Pyromanik> simon_w: how to add to translation!?
836: [14:12:02] <Pyromanik> huh?
837: [14:12:11] <Pyromanik> US is balls, make GB the default
838: [14:12:19] <simon_w> the collector task rebuilds the en_US.yml one
839: [14:12:27] <Pyromanik> ok
840: [14:12:27] <simon_w> Or your default locale, maybe
841: [14:12:39] <Pyromanik> but there isn't any
842: [14:13:01] <Pyromanik> I have that one open and it's not rebuilt
843: [14:13:04] <Pyromanik> didn't change
844: [14:13:22] <Pyromanik> otherwise Notepad++ has a 'mare at me
845: [14:13:23] * pevjan quit (Remote host closed the connection)
846: [14:13:31] <FrozenFire> It will build either your default locale or one specified by ?locale=lolcat
847: [14:13:45] <Pyromanik> oh god, that was actually a locale in 2.4
848: [14:13:58] <FrozenFire> Of this I'm aware. It should be the default locale.
849: [14:14:08] <Pyromanik> omfglulz
850: [14:14:14] <FrozenFire> Of any of the English dialects, it's the most comprehensible.
851: [14:14:25] <Pyromanik> and efficient!
852: [14:14:45] <Pyromanik> so anyway
853: [14:14:57] <Pyromanik> textcollectortask bricked my site.
854: [14:15:03] <FrozenFire> git status
855: [14:15:05] <Pyromanik> what do?
856: [14:15:06] <FrozenFire> See what it created
857: [14:15:12] <simon_w> It's coming back in 3.1 too
858: [14:15:15] <Pyromanik> yeah
859: [14:15:16] <Pyromanik> but
860: [14:15:20] <Pyromanik> didn't commit yet :<
861: [14:15:23] <FrozenFire> Good
862: [14:15:29] <FrozenFire> Eliminate what it created. :P
863: [14:15:30] <Pyromanik> no I mean
864: [14:15:33] <Pyromanik> at all :<
865: [14:15:47] <FrozenFire> That sounds like a _you_ problem.
866: [14:15:52] <Pyromanik> it is
867: [14:15:53] <Pyromanik> haha
868: [14:16:14] <MattSS> it only wrote to new files though, no? so a git status will show new vs. modified files
869: [14:17:04] <FrozenFire> MattSS, He hasn't committed, so there's no reference point.
870: [14:17:24] <MattSS> oh at all, I see
871: [14:17:57] <FrozenFire> Because he's silly
872: [14:18:07] <Pyromanik> quite
873: [14:18:08] <FrozenFire> If he were using composer, he wouldn't be having this problem. :P
874: [14:18:17] <FrozenFire> Since everything would be a git submodule.
875: [14:18:22] <FrozenFire> But nooo
876: [14:18:26] <Pyromanik> composer ruins my brain
877: [14:18:41] <Pyromanik> shall be something I'll have to get someone to teach me at hackfest I think
878: [14:18:56] <simon_w> MattSS, coming to the hackfest on Saturday?
879: [14:19:27] <FrozenFire> How hard is composer to learn? Not very. :P
880: [14:19:42] <FrozenFire> Write json. composer install
881: [14:19:42] <FrozenFire> Done.
882: [14:20:21] <Pyromanik> FrozenFire: last time I tried that it had a complete 'mare at me.
883: [14:20:34] <Pyromanik> complained about just about everything it possibly could, and refused to do anything
884: [14:20:39] <simon_w> FrozenFire, you missed the "Install Symfony" step :p
885: [14:20:58] <Pyromanik> although, this was a good half year ago
886: [14:21:08] <FrozenFire> simon_w, ?
887: [14:21:20] <lewellyn> yeah. symfony is a good point against composer in my book.
888: [14:21:28] <Pyromanik> simon_w: why can't I just edit cms/lang/en_GB.yml
889: [14:21:49] <Pyromanik> and have it work (with i81n::set_default_locale('en_GB'))
890: [14:21:49] <Pyromanik> ?
891: [14:22:42] <FrozenFire> Because that would be too easy
892: [14:22:47] <Pyromanik> IKR
893: [14:22:51] <Pyromanik> I thought that was the point
894: [14:23:09] <Pyromanik> how does translation in JS work?
895: [14:24:12] <FrozenFire> Translation in Javascript?
896: [14:24:13] <FrozenFire> Wat?
897: [14:24:39] <Pyromanik> well it pulls the CMS text via JS
898: [14:25:12] <FrozenFire> Still not following you.
899: [14:25:17] * simon_w quit (Ping timeout: 248 seconds)
900: [14:25:19] <Pyromanik> http://logs.simon.geek.nz/index.php?date=2013-05-21#13_47_2
901: [14:25:31] <Pyromanik> [13:47] <MattSS> The _t() call is this: 'label': ss.i18n._t('Tree.EditPage'),
902: [14:25:37] <Pyromanik> [13:47] <MattSS> that's in cms/javascript/CMSMain.Tree.js
903: [14:25:47] * FrozenFire dozes off
904: [14:27:45] * simon_w has joined #silverstripe
905: [14:27:57] <MattSS> Pyromanik: am submitting a fix for this shortly
906: [14:28:40] <Pyromanik> MattSS: by adding the second param to the _t call?
907: [14:28:46] <Pyromanik> (the default part)
908: [14:29:00] <Pyromanik> js object in global scope: ss.i18n
909: [14:29:14] <Pyromanik> currentLocale="en_NZ", defaultLocale="en_US"
910: [14:29:16] * pevjan has joined #silverstripe
911: [14:29:20] <Pyromanik> it falls back to US
912: [14:30:33] <Pyromanik> but if I set default to something other than US, I need to be able to set that bit of text, no matter the lang.
913: [14:30:45] <Pyromanik> so how does one alter en_GB to have that translation string?
914: [14:30:56] <Pyromanik> fix problems, not symptoms :>
915: [14:34:04] <Pyromanik> OIC
916: [14:34:16] <Pyromanik> JS translation is separate files to the yaml
917: [14:34:26] <Pyromanik> so totally unhelpful :<
918: [14:34:43] <FrozenFire> Uhh, wat?
919: [14:34:49] <FrozenFire> Methinks not.
920: [14:35:06] <Pyromanik> well I think it should be unified
921: [14:35:12] <Pyromanik> rather than having to set things twice.
922: [14:35:17] <Pyromanik> is what I'm trying to say.
923: [14:35:58] <MattSS> Pyromanik: was planning on fixing both, but haven't yet found where to set a en_GB lang - thought that had to be done separately via the translations interface
924: [14:36:41] <Pyromanik> MattSS: cms/javascript/en_US.js
925: [14:37:02] <Pyromanik> is differents to all the other lang files.
926: [14:37:58] <Pyromanik> dunno how to make them pull in though
927: [14:39:01] <MattSS> I don't see that being loaded by the CMS?
928: [14:39:17] <Pyromanik> yeah I dunno, as I say
929: [14:40:14] * AaronCDR has joined #silverstripe
930: [14:40:27] <Pyromanik> or why for example I can set locale and default_locale to en_GB, but ss.i18n in the console tells me locale is en_NZ and defaultlocale is en_US
931: [14:40:29] * simon_w has left #silverstripe
932: [14:40:37] <Pyromanik> yet when you call _t it gives me nothing, rather than the US output
933: [14:40:44] * simon_w has joined #silverstripe
934: [14:41:08] <Pyromanik> but it's definitely that js file with the dictionary in it MattSS
935: [14:41:25] <Pyromanik> I changed it and it altered the text (when I didn't set default locale in _config.php
936: [14:41:49] <Pyromanik> I just have no idea if it's autogen'd, manually edited or what
937: [14:42:07] <simon_w> the JS lang files are manually edited
938: [14:42:11] <simon_w> the YAML ones are generated
939: [14:42:21] <Pyromanik> simon_w: oh, generated from where?
940: [14:42:33] <simon_w> getlocalization.com
941: [14:42:37] <Pyromanik> oh
942: [14:42:47] <Pyromanik> so not by SS
943: [14:43:10] <Pyromanik> simon_w: how are the js files pulled into the cms?
944: [14:43:11] <simon_w> the US one is generated by the collection task
945: [14:44:41] <simon_w> Requirements::add_i18n_javascript
946: [14:44:54] <Pyromanik> ah
947: [14:48:11] * fpk has joined #silverstripe
948: [14:50:06] <fpk> Hi everyone, I set up the form and pass the variable of the fields and action to the template, all good, but when I submit the form, it seems like the submit function don'es get called and the fnew url is the same one with extra form fields parameters attach to it
949: [14:50:31] <simon_w> Whoa, MattSS is going to submit something I could review. How times have changed :p
950: [14:51:06] <Pyromanik> fpk: that didn't make much sense sorry.
951: [14:51:51] <fpk> Hi Pyromanik
952: [14:52:07] <fpk> the submit seems not working
953: [14:52:34] <Pyromanik> fpk: perhaps you could paste your form code?
954: [14:52:58] <fpk> say the form url is form.local and the new url after submitted is form.local?email=xxxxx&name=xxxxxx
955: [14:53:11] <simon_w> fpk, you
956: [14:53:16] <simon_w> fpk, you're not using a Form object?
957: [14:53:52] <fpk> public function CustomLoginFormContent() { if ($this->request->postVar('action_LoadRegisterForm')) { return $this->RegisterFormContent(); } $fields = new FieldList( EmailField::create('Email')->addExtraClass('input input-text')->setAttribute('placeholder', 'email address')->setAttribute('type', 'email'), PasswordField::create('Password')->addExtraClass('input input
958: [14:54:24] <Pyromanik> oh it's you again
959: [14:54:40] <fpk> public function ProcessCustomLoginForm() { $member = MemberAuthenticator::authenticate($this->request->postVars()); if ($member) { $member->logIn(); }
960: [14:54:44] <fpk> yes :)
961: [14:55:13] <fpk> <form> <% loop $CustomLoginForm.Fields %> $Field <% end_loop %> <a class="linkForgot" href="#">forgot password?</a> <div class="centerBtnWrapper"> <% loop $CustomLoginForm.Actions %> $Field <% end_loop %> </div> </form>
962: [14:55:38] <fpk> the first section is the form class and the second one is the submit function and the last one is the form template
963: [14:57:59] <Pyromanik> fpk, please use pastie.com or something similar
964: [14:58:04] <Pyromanik> I can't read that
965: [14:58:15] <fpk> sorry
966: [14:58:32] <simon_w> fpk, You really should just use $CustomLoginForm and add a LiteralField for the forgot link
967: [15:00:12] <fpk> http://pastie.org/7937354
968: [15:00:23] <simon_w> And your form's working exactly as you're telling it to. Defaulting to a GET submission to the current URL
969: [15:00:58] <fpk> http://pastie.org/7937357 this is the template
970: [15:02:26] <MattSS> simon_w: heh, indeed
971: [15:02:32] <fpk> simon, yes, thanks for that, the thing is it was working few days ago, then I deleted the templates by mistake and rewrite it, it's not working now ...
972: [15:02:54] <simon_w> fpk, and this is why you use version control.
973: [15:03:02] <simon_w> Have a look at the framework's Form.ss
974: [15:03:19] <MattSS> (also, has been submitted now) just did the JS change as that needs to be done anyway, and I don't have enough time to work out where it's pulling the other strings from
975: [15:09:04] * fpk quit (Ping timeout: 250 seconds)
976: [15:12:45] * MrJeremy quit (Ping timeout: 248 seconds)
977: [15:13:47] * MrJeremy has joined #silverstripe
978: [15:15:06] <ss23> Cloudflare captchas are literally impossible. I've tried doing 10 of them and got them all wrong
979: [15:15:53] <ss23> okay, I did ~25, got in finally :D
980: [15:15:57] <simon_w> ss23, cause you're a bot
981: [15:16:46] <ss23> :<
982: [15:17:18] <Colin[pi]> those other ones google used to use for account logins, with the letter squished really close together, I usually went through at least 5 until I got it right
983: [15:17:45] <ss23> Don't think they're repcatcha, these are worse
984: [15:18:11] <Colin[pi]> i find recaptcha pretty good.. one or two tries
985: [15:18:50] <ss23> GOT BACK IN wiht another 25
986: [15:18:54] <ss23> okay cloudflare does NOT like this request.
987: [15:19:43] <ss23> I went to upload a file and it locked me out too ;_;
988: [15:19:49] <lewellyn> i hate recaptcha.
989: [15:19:49] <ss23> cloudflare is such a dick
990: [15:20:02] <Colin[pi]> I think simon_w might be right, maybe you are a bot, and don't know it
991: [15:20:03] <lewellyn> i keep getting foreign letters and random punctuation.
992: [15:20:34] <Colin[pi]> lewellyn: ya me too but I've found if you seem to get pretty close to what it looks like, it lets you through
993: [15:20:47] <ss23> Unlike this
994: [15:20:58] <Pyromanik> lewellyn: you can skip
995: [15:21:04] * ss23 skips
996: [15:21:05] <ss23> :D
997: [15:21:07] <lewellyn> Colin[pi]: it's hard when it looks like z , ^ -
998: [15:21:08] <Pyromanik> I don't like recaptcha because it's too easy
999: [15:21:12] <ss23> lol lewellyn XD
1000: [15:21:13] * MrJeremy quit (Ping timeout: 264 seconds)
1001: [15:21:19] <Pyromanik> and a fair amount of bots still get through
1002: [15:21:20] <lewellyn> Pyromanik: i get really godawful ones
1003: [15:21:24] <ss23> Pyromanik: You wanna be forced to do 25 different ones instead?
1004: [15:21:25] <ss23> :P
1005: [15:21:30] <Pyromanik> ss23: yes
1006: [15:21:34] <Pyromanik> give me link
1007: [15:21:38] <Pyromanik> I bet it's not that hard
1008: [15:21:41] <ss23> Why not just give a 5 min delay on making requests?
1009: [15:21:41] <Pyromanik> or screenshot
1010: [15:21:41] <ss23> dude.
1011: [15:21:43] <ss23> Okay
1012: [15:21:56] <Colin[pi]> will agree Pyromanik, I had comments with recaptcha enabled on my blog originally and it got hammered with spam
1013: [15:22:03] <ss23> wait
1014: [15:22:07] <ss23> cloudflare didn't block me this time
1015: [15:22:09] <ss23> one sec
1016: [15:22:17] * nikrolls quit (Ping timeout: 276 seconds)
1017: [15:22:37] <MattSS> wasn't recaptcha all about turning books into text?
1018: [15:22:51] <lewellyn> MattSS: then google got it.
1019: [15:22:55] <Colin[pi]> apparently so
1020: [15:23:09] <lewellyn> i'm just waiting for it to end up in the google graveyard
1021: [15:23:25] <Colin[pi]> I don't find it very reliable any more :\
1022: [15:23:42] <Colin[pi]> what was that other one.. mollom?
1023: [15:23:52] <MattSS> The last few I've had have been amIDUmas NUtillz rebadeson
1024: [15:24:04] <MattSS> them's some interesting words
1025: [15:24:24] <ss23> interesting...
1026: [15:24:35] <ss23> It seems that changing the country my IP comes from makes them easier or harder
1027: [15:24:35] <Colin[pi]> ...words
1028: [15:24:41] <lewellyn> Colin[pi]: i just write my own captchas at this point, using bot behaviors to trap them
1029: [15:24:42] <ss23> I was using a Spanish IP before, and was getting ones that didn't work at all
1030: [15:24:50] <ss23> Now I'm using Russian and I can actually read them
1031: [15:24:57] <lewellyn> ss23: that seems to be the case with recaptcha too.
1032: [15:25:06] <ss23> maybe it is recaptcha :O
1033: [15:25:12] <ss23> note to self: stay away from brazil.
1034: [15:25:16] * simon_w quit (Ping timeout: 252 seconds)
1035: [15:25:20] <lewellyn> if i change my outgoing ip, i get differing levels of difficulty
1036: [15:25:23] <Pyromanik> shit
1037: [15:25:29] <lewellyn> which sucks when i'm behind my main nat.
1038: [15:25:30] <Pyromanik> accidentally the whole VM
1039: [15:25:32] <Colin[pi]> been there four times ss23 ;P
1040: [15:25:56] <Pyromanik> ss23: yeah but with Russian you won't have the letters on your KB.
1041: [15:26:31] <Pyromanik> Colin[pi]: mollom is good, but relies on the fact that the data you're submitting is a blog post.
1042: [15:26:44] <ss23> No, in Rusiaan it seems to only give me ascii :O
1043: [15:26:47] <Pyromanik> if it's not, you have to map shit to 'title', 'content', 'author', etc.
1044: [15:26:54] <Pyromanik> which I found confusing and shit.
1045: [15:27:11] <Colin[pi]> hmm that is a bit shitty
1046: [15:27:36] <Pyromanik> Colin[pi]: you can make it just give you a captcha, but it's still too much effort. Which is a shame because I like mollom
1047: [15:27:51] <Pyromanik> I'll use it if the site is just userforms and blog
1048: [15:28:00] <lewellyn> Pyromanik: that doesn't stop it from giving me slavic, cyrillic, greek, and cjk while in .us :/
1049: [15:28:04] <Pyromanik> but if I need a captcha on something manually I'll probably go for recaptcha
1050: [15:28:21] <Pyromanik> lewellyn: yeah, but you just skip
1051: [15:28:25] <Pyromanik> if you know how recaptcha works
1052: [15:28:29] <lewellyn> then they get even more off the wall
1053: [15:28:33] <Pyromanik> you only need to fill in ONE of the words.
1054: [15:28:40] <Colin[pi]> well it's dead easy to implement... didn't catch spammers on my blog though :\
1055: [15:28:44] <lewellyn> but you have to be able to discern one of them.
1056: [15:28:47] <Pyromanik> it knows one, wants you to translate the other.
1057: [15:29:21] <lewellyn> polish on one side and japanese on the other isn't helpful.
1058: [15:29:21] <Pyromanik> Colin[pi]: nah, recaptcha's a pain in the ringpiece because it only lets you have one per page
1059: [15:29:33] <Pyromanik> lewellyn: hahahhahahahahaha
1060: [15:29:35] <Pyromanik> gutted man
1061: [15:29:37] <Colin[pi]> well 99% of the time I only need one per page :)
1062: [15:29:50] <Colin[pi]> in fact
1063: [15:29:51] <Pyromanik> Colin[pi]: yeh, but if you haev more than one form on a page (i've had such in the past)
1064: [15:29:59] <Colin[pi]> cant remember the last time I used more than one
1065: [15:30:24] <Colin[pi]> sure you can't just change IDs for it or something? to have more on one page?
1066: [15:30:31] <lewellyn> i've used hellocaptcha in the past though. they're kinda ugly, but seem to work well
1067: [15:30:42] <Colin[pi]> ah prolly related to the request isnt it
1068: [15:30:43] <lewellyn> they're also sucky for accessibility
1069: [15:31:00] <ss23> 15:29:44 < Pyromanik> Colin[pi]: nah, recaptcha's a pain in the ringpiece because it only lets you have one per page
1070: [15:31:03] <ss23> iframes!
1071: [15:31:04] <ss23> ^.^
1072: [15:31:24] <Colin[pi]> aren't all captchas? :)
1073: [15:31:54] <lewellyn> Colin[pi]: i've had few complaints for the one on my pastebin. ;)
1074: [15:32:21] <Colin[pi]> link?
1075: [15:32:28] <lewellyn> http://www.greenviolet.net/paste
1076: [15:32:40] <Pyromanik> MattSS: I found the problem!
1077: [15:32:52] <lewellyn> the non-css stuff is a bit off right now. but i'll fix that in the next release.
1078: [15:32:56] * simon_w has joined #silverstripe
1079: [15:32:58] <lewellyn> now, really going.
1080: [15:33:21] <Colin[pi]> thanks I'll have a look :)
1081: [15:33:28] <Pyromanik> framework/javascript/i18n.js is HARD CODED to defaultLocale = 'en_US'
1082: [15:34:01] <Pyromanik> but requirements::add_i18n_javascript only includes the ACTUAL set locale and default locale
1083: [15:34:34] <Pyromanik> so set_locale('en_NZ'), set_default_locale('en_GB'), only these files.js get included
1084: [15:34:42] <Pyromanik> but they don't exist
1085: [15:34:45] <Pyromanik> so nothing happens.
1086: [15:34:54] <Pyromanik> then you have no translation files.
1087: [15:34:58] <simon_w> Probably want to make it alwauys include en_US too
1088: [15:35:18] <Pyromanik> simon_w: or set default strings on all _t calls
1089: [15:35:37] <simon_w> If you really want to
1090: [15:35:51] <Pyromanik> well they should
1091: [15:42:16] <simon_w> And I should go home before I rage too much, but don't wanna bike
1092: [15:42:55] <Colin[pi]> how far?
1093: [15:43:15] <simon_w> 6km, all up hill
1094: [15:43:26] <Colin[pi]> :(
1095: [15:43:33] <simon_w> Hang on, all up "mountain" :p
1096: [15:43:33] <MattSS> back in my day...
1097: [15:44:05] <Colin[pi]> I have a regular 17km route, but it's a gradual incline :)
1098: [15:45:53] <MattSS> Pyromanik: ahh, interesting
1099: [15:45:59] <simon_w> Helps that Canberra's flat :p
1100: [15:46:11] <Colin[pi]> not all of it :P
1101: [15:46:21] <MattSS> so if there's no default and you're not set to en_US, then it won't work basically
1102: [15:46:28] <MattSS> nice catch :)
1103: [15:46:38] <simon_w> Colin[pi], my bike home would take me to the top of Black Mountain
1104: [15:49:42] <simon_w> Ah well, guess I better get started
1105: [15:50:03] <Colin[pi]> have fun!
1106: [15:50:14] <simon_w> Oh, fun is for coming into work :p
1107: [15:50:53] <Colin[pi]> must be fast on the way lol
1108: [15:51:37] <zippy__> hmm
1109: [15:51:55] <zippy__> so I got this form which I am submitting via ajax. It's working pretty well, validation with required fields is working good
1110: [15:52:09] <zippy__> but I want to add some extra validation inside by doSubmit action, and if it's not valid pass back the form in the response
1111: [15:52:36] <zippy__> public function doSubmit($data, Form $form) {
1112: [15:52:37] <zippy__> $form->addErrorMessage('Password', 'This failed', 'bad');
1113: [15:52:37] <zippy__> return $form;
1114: [15:53:10] <zippy__> which will 500, calling $this->render() renders the whole page. What is the proper way to return the form...
1115: [15:55:56] <simon_w> Well, change of plans. My legs are complaining rather heavily about standing up. Stupid legs.
1116: [15:56:03] <simon_w> zippy__, $this->redirectBack()
1117: [15:56:37] <zippy__> simon_w: this is an ajax form submission… redirectBack() renders the wrong page
1118: [15:56:53] <simon_w> return $form->forTemplate() ?
1119: [16:00:10] <zippy__> close
1120: [16:00:19] <zippy__> public function doSubmit($data, Form $form) {
1121: [16:00:19] <zippy__> $form->addErrorMessage('Password', 'This failed', 'bad');
1122: [16:00:20] <zippy__> $form->setupFormErrors();
1123: [16:00:21] <zippy__> return $form->forTemplate();
1124: [16:00:30] <zippy__> had to call setupFormErrors as well
1125: [16:02:18] * guci0 has joined #silverstripe
1126: [16:03:15] * cloph_away quit (Ping timeout: 246 seconds)
1127: [16:03:15] <guci0> Morning!
1128: [16:06:16] <ss23> moin
1129: [16:06:49] <Pyromanik> MattSS: simon_w, trying to include one's own files is hard task.
1130: [16:07:57] <Pyromanik> I want it to only happen in the CMS, and only after the combined file that pulls in i18n.js is included
1131: [16:08:04] * cloph_away has joined #silverstripe
1132: [16:08:24] <Pyromanik> there are no hooks
1133: [16:08:25] <simon_w> Pyromanik, Extension added to LeftAndMain with an init method
1134: [16:08:40] <Pyromanik> simon_w: ah yesh, sounds quality.
1135: [16:11:47] * zippy__ quit (Quit: zippy__)
1136: [16:11:57] <Pyromanik> simon_w: would LeftAndMain::require_javascript() do it?
1137: [16:12:06] <Pyromanik> a yes
1138: [16:12:16] <Pyromanik> foreach (self::$extra_requirements['javascript'] as $file) {
1139: [16:12:18] <simon_w> Well, if you just wanted to hardcode the file, yes
1140: [16:12:22] <Pyromanik> comes after combine files
1141: [16:12:30] <Pyromanik> mm, true.
1142: [16:13:16] <simon_w> Anyway, time to limp off to the ATM and bus
1143: [16:13:33] <Pyromanik> limp?
1144: [16:15:01] * DigNZ1 quit (Quit: DigNZ1)
1145: [16:17:24] <spronk> he shot himself in the foot playing with toy guns
1146: [16:17:28] <spronk> > >
1147: [16:17:31] <spronk> < <
1148: [16:17:49] <Pyromanik> spronk: like that kid in the states that shot his sister?
1149: [16:17:54] <Pyromanik> parent was all like "but it's a toy"
1150: [16:18:15] <Pyromanik> bright pink gun from a company called "my first rifle"
1151: [16:18:30] <Pyromanik> derp derp derp
1152: [16:18:41] <Pyromanik> whole state all "How could this happen?"
1153: [16:18:50] <Pyromanik> everyone feels sorry for parent.
1154: [16:18:50] <spronk> lulz
1155: [16:18:52] <spronk> my first rifle
1156: [16:18:53] * spronk totally wants one
1157: [16:19:09] <Pyromanik> every other country, parent would be prosecuted for neglect & improper storage of firearms.
1158: [16:19:20] <Pyromanik> derp derp derp
1159: [16:23:02] <Pyromanik> success with
1160: [16:23:03] <Pyromanik> LeftAndMain::require_javascript($project.'/javascript/lang/'.i18n::default_locale().'.js');
1161: [16:23:06] <Pyromanik> LeftAndMain::require_javascript($project.'/javascript/lang/'.i18n::get_locale().'.js');
1162: [16:23:09] <Pyromanik> MattSS:
1163: [16:23:10] <Pyromanik> ^^
1164: [16:23:14] * DigNZ1 has joined #silverstripe
1165: [16:23:15] * DigNZ1 quit (Remote host closed the connection)
1166: [16:23:32] <Pyromanik> in mysite/_config.php
1167: [16:23:34] * DigNZ1 has joined #silverstripe
1168: [16:24:23] <Pyromanik> pretty much the same thing as Requirements::add_i18n_javascript($project . '/javascript/lang', $return=false, $langOnly=true), only plonks the lang files after the i18n lib.
1169: [16:24:31] <Pyromanik> (instead of before)
1170: [16:27:43] * Pyromanik celebrates
1171: [16:27:54] <Pyromanik> thanks for your helps MattSS and simon_w :)
1172: [16:36:02] <MattSS> Pyromanik: oh nice :)
1173: [16:36:26] * DigNZ1 quit (Quit: DigNZ1)
1174: [16:39:41] <MattSS> Pyromanik: and then did you just copy the en_US.js file into your own project folder and add the missing ones?
1175: [16:40:16] * MrJeremy has joined #silverstripe
1176: [16:41:09] <MattSS> oh, it's already in there, just not being loaded, so you're forcing the load, I see!
1177: [16:43:33] * xyphoid quit (Changing host)
1178: [16:43:33] * xyphoid has joined #silverstripe
1179: [16:45:43] <AaronCDR> Hi, hope I'm not interrupting, would anybody know why when selecting both a parent and a type when creating a new page, it only listens to whichever option was set last? It happens both locally and live with fresh installs.
1180: [16:51:36] * pevjan quit (Remote host closed the connection)
1181: [16:53:52] * DigNZ1 has joined #silverstripe
1182: [16:58:05] * pevjan has joined #silverstripe
1183: [17:02:15] * nickmolhoek quit (Quit: nickmolhoek)
1184: [17:05:03] * DigNZ1 quit (Ping timeout: 256 seconds)
1185: [17:07:24] <simon_w|air> Pyromanik, I stood up to bike home and my legs were all "nup, you're going to be too sore before you start"
1186: [17:07:59] * joelpittet has joined #silverstripe
1187: [17:08:00] <simon_w|air> MattSS, so, coming on Saturday?
1188: [17:08:53] * MrJeremy quit (Ping timeout: 276 seconds)
1189: [17:11:03] * MrJeremy has joined #silverstripe
1190: [17:16:49] <MattSS> simon_w|air: Possibly, but probably not. Just moved house over the weekend and most o the furniture couldn't make it up the stairs, so has to be disassembled and reassembled :p
1191: [17:17:27] <simon_w|air> MattSS, good excuse to not do it then :p
1192: [17:17:53] * Shrike_Finland has joined #silverstripe
1193: [17:23:10] <willr_> MattSS where is the new place?
1194: [17:23:21] <willr_> looked like Broadmeadows.
1195: [17:23:33] <MattSS> hah, wish it was that easy ;D
1196: [17:23:38] <MattSS> willr_: got it in one
1197: [17:23:59] <willr_> Boom.
1198: [17:24:49] <MattSS> hopefully Telecom won't take years to move our connection
1199: [17:24:55] <MattSS> maybe too much to hope for
1200: [17:31:57] * DigNZ quit (Quit: DigNZ)
1201: [17:35:04] <irogue> was very surprised
1202: [17:35:07] <irogue> moved house in the weekend
1203: [17:35:16] <irogue> told them we were moving on saturday
1204: [17:35:27] <irogue> on friday night internets stopped working at old house, went there on saturday and it was up and running
1205: [17:35:41] <irogue> like, slingshot did something right
1206: [17:35:42] <Colin[pi]> well that just wont do
1207: [17:35:44] <irogue> amazing
1208: [17:35:55] <irogue> we were all ecstatic and surprised
1209: [17:36:09] <irogue> then we realised although the internet was working... they'd somehow managed to leave our landline at the old house
1210: [17:36:26] <irogue> so we currently have non-naked DSL where the phone and internet services are in different places
1211: [17:37:14] <simon_w|air> Haha
1212: [17:37:40] <simon_w|air> Still don't know why moving takes so long for DSL, when it's just flipping a switch
1213: [17:38:24] <irogue> well, in this case it didnt :-P
1214: [17:38:30] <irogue> the flipped the switch and it was moved!
1215: [17:38:35] <irogue> they just forgot the other switch...
1216: [17:39:11] <simon_w|air> At least when I moved they had to come enable the cabling in the box on the front of the house and make sure I could handle 100 mbits through it
1217: [17:40:02] * MrJeremy quit (Read error: Connection reset by peer)
1218: [17:41:11] <spronk> hmm
1219: [17:41:27] <spronk> anyone done anything like... template replacement?
1220: [17:41:28] <spronk> like
1221: [17:41:36] <spronk> have some custom shit
1222: [17:41:39] <spronk> include via tiny
1223: [17:42:00] <spronk> oo userdefinedforms does this..
1224: [17:42:14] <willr_> spronk yeah but hacky
1225: [17:42:18] <spronk> :(*
1226: [17:42:21] <willr_> short codes the way to go
1227: [17:42:38] <simon_w|air> willr_, don't think you can have page-specific short codes, so wouldn't really work for userforms
1228: [17:43:07] <willr_> pretty much why user forms doesn't use them. Though thought about it
1229: [17:43:30] <spronk> hmm
1230: [17:43:44] <willr_> user forms does a basic str_replace(). Not flash.
1231: [17:43:57] <spronk> really i just want to be able to <% include %> within an html editor
1232: [17:44:06] <willr_> So avoid doing stuff like <h2>$UserForm</h2>
1233: [17:45:24] <willr_> http://doc.silverstripe.org/framework/en/3.1/reference/shortcodes
1234: [17:45:40] <willr_> heh chillu broke the formatting
1235: [17:47:48] * MrJeremy has joined #silverstripe
1236: [17:48:54] * willr_ quit (Quit: willr_)
1237: [17:49:50] <MattSS> irogue: nice! I'm currently getting the account transferred to my name (24hrs to change, but it's been 36 already and I won't hear until tomorrow now), and then a 'standard' 3-5 days to move the conx
1238: [17:50:56] * AaronCDR quit (Quit: Page closed)
1239: [17:51:04] <MattSS> I especially enjoyed listening to their explanation for taking 24hrs to move a connection from one account to another (there wasn't one)
1240: [17:53:05] <irogue> lol yeah
1241: [17:53:10] <irogue> slingshot i presume?
1242: [17:53:48] <simon_w|air> [17:24:42] <MattSS> hopefully Telecom won't take years to move our connection
1243: [17:53:52] <simon_w|air> I'm going with Telecom :p
1244: [17:59:44] * turnip has joined #silverstripe
1245: [18:00:39] <irogue> ah
1246: [18:01:04] <irogue> i'm too used to assuming people say "Telecom" when they mean "Chorus"
1247: [18:06:02] * MrJeremy quit (Quit: MrJeremy)
1248: [18:06:20] * pevjan quit (Remote host closed the connection)
1249: [18:16:23] * pevjan has joined #silverstripe
1250: [18:17:18] * joelpittet quit (Remote host closed the connection)
1251: [18:22:27] * travis-ci has joined #silverstripe
1252: [18:22:28] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#24 (3.1 - 34b9952 : Sean Harvey): The build passed.
1253: [18:22:28] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/13e632d0532d...34b9952e9df4
1254: [18:22:28] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7347764
1255: [18:22:28] * travis-ci has left #silverstripe
1256: [18:37:41] * DigNZ has joined #silverstripe
1257: [18:39:30] * DigNZ quit (Client Quit)
1258: [18:41:36] * DigNZ has joined #silverstripe
1259: [18:41:37] * DigNZ quit (Client Quit)
1260: [18:43:35] * guci0 quit (Ping timeout: 250 seconds)
1261: [18:58:34] * zfmf1 has joined #silverstripe
1262: [19:03:29] * pevjan quit (Remote host closed the connection)
1263: [19:05:27] * pevjan has joined #silverstripe
1264: [19:05:58] * priithansen has joined #silverstripe
1265: [19:08:38] * chillu has joined #silverstripe
1266: [19:16:13] * pevjan quit (Remote host closed the connection)
1267: [19:25:42] * MrJeremy has joined #silverstripe
1268: [19:26:37] * MrJeremy_ has joined #silverstripe
1269: [19:29:57] * MrJeremy quit (Ping timeout: 250 seconds)
1270: [19:30:52] * SightUnseen has joined #silverstripe
1271: [19:31:11] * SightUnseen has left #silverstripe
1272: [19:52:34] * Liquide quit ()
1273: [19:52:39] * turnip quit (Quit: Page closed)
1274: [19:55:57] * MrJeremy_ quit (Ping timeout: 250 seconds)
1275: [20:01:28] * kinglozzer has joined #silverstripe
1276: [20:11:05] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
1277: [20:13:07] * popeshoe has joined #silverstripe
1278: [20:15:02] * popeshoe quit (Client Quit)
1279: [20:24:10] <kinglozzer> chillu: Another request: can you merge https://github.com/silverstripe/silverstripe-framework/pull/1959? Only a simple CSS fix. When I was half-asleep yesterday I was working directly on the 3.1 branch so it'd make my life easier for submitting a PR about the stacked field descriptions
1280: [20:24:42] * popeshoe has joined #silverstripe
1281: [20:26:03] <chillu> kinglozzer: have you tested this on supported browsers, particularly IE8?
1282: [20:32:33] <kinglozzer> chillu: I hadn't, as it's only removing a bottom margin, but I just did and all is fine. I will for the PR about stacked descriptions though :)
1283: [20:32:42] * nikrolls has joined #silverstripe
1284: [20:33:56] <chillu> alright, merged :)
1285: [20:34:47] * simon_w quit (Read error: Connection reset by peer)
1286: [20:34:54] <kinglozzer> Thank you :)
1287: [20:35:05] * simon_w has joined #silverstripe
1288: [20:43:53] * willmorgan has joined #silverstripe
1289: [20:44:20] * SightUnseen has joined #silverstripe
1290: [20:44:32] * SightUnseen has left #silverstripe
1291: [20:53:55] * travis-ci has joined #silverstripe
1292: [20:53:55] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#25 (3.1 - 14771ff : Ingo Schommer): The build passed.
1293: [20:53:55] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/34b9952e9df4...14771ff31f2c
1294: [20:53:55] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7350611
1295: [20:53:55] * travis-ci has left #silverstripe
1296: [21:02:02] * Shrike_Finland quit (Quit: Leaving.)
1297: [21:14:51] * Shrike_Finland has joined #silverstripe
1298: [21:18:53] * mento has joined #silverstripe
1299: [21:31:55] * Shrike_Finland quit (Quit: Leaving.)
1300: [21:33:57] * Shrike_Finland has joined #silverstripe
1301: [21:48:51] * lx-berlin_ has joined #silverstripe
1302: [21:49:33] <lx-berlin_> guten Tag
1303: [21:55:12] <mento> moin
1304: [21:58:37] * zippy__ has joined #silverstripe
1305: [21:58:47] <zippy__> Evening
1306: [21:58:53] * mento quit (Quit: Page closed)
1307: [22:01:01] <kinglozzer> Morning :)
1308: [22:01:24] * nikrolls quit (Ping timeout: 276 seconds)
1309: [22:01:41] <lx-berlin_> kinglozzer: do i remember right, that you are from austria ?
1310: [22:02:18] <kinglozzer> lx-berlin_: Nope, from the UK
1311: [22:02:47] <lx-berlin_> ah, ok
1312: [22:07:53] <lx-berlin_> is anyone hostet at hosteurope? Whats going on there ?
1313: [22:13:06] <simon_w|air> lx-berlin_, perhaps it'll be best to ask them?
1314: [22:14:06] <lx-berlin_> i think they already now that there are problems. Since some hours also their own website doesnt work. And they are one of the biggest hosters in germany , if not the biggest.
1315: [22:14:36] <lx-berlin_> but i wondered why it takes them so long to get up and running again
1316: [22:15:19] <willmorgan> it might be a datacentre problem, lx-berlin_
1317: [22:15:24] <lx-berlin_> probably
1318: [22:15:26] <willmorgan> in which case it's probably out of their control
1319: [22:15:48] <lx-berlin_> i think they run their own datacenter , but i am not sure
1320: [22:18:32] <simon_w|air> It's loading for me, just rather slowly
1321: [22:18:39] <simon_w|air> Looks like a DDoS
1322: [22:19:12] <ss23> whooops!
1323: [22:19:13] <ss23> Sorry
1324: [22:19:14] * ss23 stops
1325: [22:19:45] <lx-berlin_> i hope i will find a blogpost anywhere later about what happend
1326: [22:24:19] <priithansen> well they have twitter but I don't speak german
1327: [22:39:47] * DrCuriosity quit (Ping timeout: 245 seconds)
1328: [22:42:57] * DrCuriosity has joined #silverstripe
1329: [22:43:46] * travis-ci has joined #silverstripe
1330: [22:43:47] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#28 (3.1 - 30906c8 : Ingo Schommer): The build passed.
1331: [22:43:47] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/14771ff31f2c...30906c8b3198
1332: [22:43:47] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7353484
1333: [22:43:47] * travis-ci has left #silverstripe
1334: [22:44:03] <willmorgan> anyone ever had to deal with a 'rotten' set of tests for an app before?
1335: [22:44:14] <willmorgan> not specifically related to SS, but you guys are smart
1336: [22:44:20] <lx-berlin_> priithansen: good advice
1337: [22:44:36] <willmorgan> seriously considering rewriting about 50 PHPUnit tests from the ground up
1338: [22:45:46] * gordon has joined #silverstripe
1339: [22:46:10] * gordon is now known as Guest19574
1340: [22:46:33] * elgrodo quit (Ping timeout: 248 seconds)
1341: [22:51:03] * travis-ci has joined #silverstripe
1342: [22:51:03] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#29 (3.0 - 17ac2e3 : Will Rossiter): The build passed.
1343: [22:51:03] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/76cef0644095...17ac2e36fc97
1344: [22:51:03] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7353800
1345: [22:51:03] * travis-ci has left #silverstripe
1346: [22:56:39] * Shrike_Finland quit (Quit: Leaving.)
1347: [22:57:25] * travis-ci has joined #silverstripe
1348: [22:57:25] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#30 (3.1 - 90c274b : Will Rossiter): The build has errored.
1349: [22:57:25] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/30906c8b3198...90c274b6408e
1350: [22:57:25] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7353966
1351: [22:57:25] * travis-ci has left #silverstripe
1352: [23:04:39] * lobarvaz has joined #silverstripe
1353: [23:05:22] * lobarvaz quit (Client Quit)
1354: [23:06:08] * ^pH- has joined #silverstripe
1355: [23:09:21] * ^pH quit (Ping timeout: 256 seconds)
1356: [23:11:30] * travis-ci has joined #silverstripe
1357: [23:11:30] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#32 (3.1 - 5ec4f31 : Will Rossiter): The build was broken.
1358: [23:11:30] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/90c274b6408e...5ec4f3146f55
1359: [23:11:30] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7354081
1360: [23:11:30] * travis-ci has left #silverstripe
1361: [23:31:33] * lerni has joined #silverstripe
1362: [23:36:43] * Shrike_Finland has joined #silverstripe
1363: [23:39:40] * Shrike_Finland1 has joined #silverstripe
1364: [23:39:53] * Shrike_Finland quit (Read error: Connection reset by peer)
1365: [23:40:06] * zri has joined #silverstripe
1366: [23:40:49] <zri> hi guys
1367: [23:41:11] <zri> I was wondering if there is a way to extend a dataObject with DataExtension and change the existing field
1368: [23:41:31] <zri> which might be an enum, and add options to this enum through the extension
1369: [23:41:40] <zri> anyone has any idea?
1370: [23:45:09] * zippy__ quit (Quit: zippy__)

These logs were automatically created by ss-log on irc.freenode.net. This site is powered by code available under a BSD license.