#silverstripe IRC Log

IRC log for 21 May 2013

Logging sponsored by you? Get in touch!

All timestamps are in UTC.

1: [00:01:43] <Pyromanik> hmm
2: [00:01:53] <Pyromanik> it seems I have a slightly corrupt 3.0.5
3: [00:02:01] <Pyromanik> my right click "add here" menu isn't working
4: [00:02:02] <Colin[pi]> :C
5: [00:04:26] * MattSS_ is now known as MattSS
6: [00:04:37] * MattSS quit (Changing host)
7: [00:04:38] * MattSS has joined #silverstripe
8: [00:04:49] <Pyromanik> can anyone confirm/deny?
9: [00:04:51] <Pyromanik> Colin[pi]: ?
10: [00:06:53] * willr_ has joined #silverstripe
11: [00:08:56] * Pyromanik denies.
12: [00:09:00] <Pyromanik> hmm
13: [00:09:37] <Pyromanik> could it be i18n::set_locale('en_NZ') that does it?
14: [00:09:51] <Colin[pi]> change it and see
15: [00:09:54] <Pyromanik> and/or set_default_locale to the same
16: [00:10:02] <Pyromanik> Colin[pi]: I did, but didn't affect already set up site
17: [00:10:09] <Colin[pi]> :\
18: [00:13:43] * FrozenFire is fucking tired of many_many_extraFields
19: [00:13:48] * FrozenFire is back to trying to make this work
20: [00:14:10] <FrozenFire> Need to have a CMS field show up when a many_many_extraField is set on the object
21: [00:14:13] <FrozenFire> And then have that save back.
22: [00:14:16] <Pyromanik> FrozenFire: make a DataObject with the same name as the join table
23: [00:14:21] <FrozenFire> Nope
24: [00:14:23] <Pyromanik> pages_Images
25: [00:14:26] <Pyromanik> or whatever
26: [00:14:30] <Pyromanik> and hax it
27: [00:14:30] <FrozenFire> Can't work that way
28: [00:14:34] <Pyromanik> can :<
29: [00:14:37] <FrozenFire> Not
30: [00:14:58] <FrozenFire> Needs to be an extra field
31: [00:15:05] <Pyromanik> I mean the DO with same name works, might not fit your solution
32: [00:15:09] <Pyromanik> FrozenFire: yeah, I mean have BOTH.
33: [00:15:14] <Pyromanik> they use the same join table.
34: [00:15:27] <Pyromanik> but having an object gives you a tad more control
35: [00:15:45] <Pyromanik> FrozenFire: see this: 
36: [00:15:47] <Pyromanik> https://github.com/frankmullenger/silverstripe-gallery/blob/master/code/GalleryPage.php
37: [00:15:56] * Bollig|DesignCty has joined #silverstripe
38: [00:16:15] <FrozenFire> Doesn't really solve my problem
39: [00:16:23] <FrozenFire> My problem is having the CMS field save
40: [00:16:38] <Pyromanik> save the intermediary object
41: [00:16:48] <Pyromanik> the issue is now getting that to happen from the same page
42: [00:16:51] <Pyromanik> but you could use an onbeforewrite
43: [00:16:58] <Pyromanik> or onafterwrite
44: [00:17:40] <Pyromanik> cf the Caption() method in that file I just linked
45: [00:17:48] <Pyromanik> (although it's a getter, not a setter)
46: [00:17:52] <FrozenFire> Not really. Since I don't know what the many-many relationship is that's being operated upon
47: [00:18:05] <Pyromanik> how do you not know that/
48: [00:18:08] <Pyromanik> ?
49: [00:18:34] <Pyromanik> or do you mean it's a generic field that needs to save any definded many_many?
50: [00:19:32] <FrozenFire> The target of a many-many doesn't know when it's being operated upon
51: [00:19:38] <FrozenFire> Or by whom
52: [00:19:47] <FrozenFire> Sfaik
53: [00:20:35] <FrozenFire> Hoshit.
54: [00:20:38] <FrozenFire> I think I figured it out
55: [00:20:43] <Pyromanik> kgo
56: [00:20:46] <Pyromanik> reportback
57: [00:20:46] <FrozenFire> Nope
58: [00:20:49] <FrozenFire> :P
59: [00:20:53] <FrozenFire> Goddamn AJAX form submission
60: [00:21:05] <FrozenFire> Always makes me jump from joy
61: [00:21:08] <FrozenFire> Only to be let down
62: [00:21:30] <Pyromanik> :<
63: [00:21:53] <Pyromanik> I can't figure out where my site tree context menu has gone :<
64: [00:23:35] <FrozenFire> Fuck the police. Going to make a custom GridFieldDetailForm_ItemRequest
65: [00:23:53] <Pyromanik> :D
66: [00:24:14] * Pyromanik FFFFFFFFFFFFFFFUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU's
67: [00:25:49] <Pyromanik> dear internets: halp
68: [00:25:52] <Pyromanik> http://iforce.co.nz/i/komkoauk.cef.png
69: [00:26:09] <Pyromanik> I've taken a clean install
70: [00:26:15] <Pyromanik> which this menu works in
71: [00:26:23] <Pyromanik> transplanted EVERYTHING excepting the mysite folder
72: [00:26:30] <Pyromanik> no modules
73: [00:26:37] <Pyromanik> (other than cms)
74: [00:26:52] <Pyromanik> same mysite/_config.php
75: [00:27:30] <FrozenFire> It's just fucking with me now
76: [00: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
77: [00:28:23] <FrozenFire> Here's basically how it works right now.
78: [00:28:32] <Pyromanik> this is the _config.php
79: [00:28:34] <Pyromanik> http://sspaste.com/paste/show/519abf9927346
80: [00:28:34] <FrozenFire> If there is no value
81: [00:28:37] <FrozenFire> It saves correctly.
82: [00:28:43] <FrozenFire> If there is a value, it sets it to null
83: [00:28:56] <FrozenFire> If the value is set to null previously, it saves correctly.
84: [00: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.
85: [00:29:15] <FrozenFire> FUCK THE POLICE
86: [00:29:20] <FrozenFire> And the whole framework
87: [00:29:39] <Pyromanik> waw
88: [00:29:43] <Pyromanik> bugged
89: [00:29:49] <FrozenFire> Completely.
90: [00:30:36] <FrozenFire> LOLOLOLOL
91: [00:30:40] <FrozenFire> It's fucking CurrencyField or some shit
92: [00:30:49] <Pyromanik> so now look at my config, and my picture and tell me what's wrong
93: [00:31:12] <FrozenFire> Oh. My. Fucking. God.
94: [00:31:17] <Pyromanik> I've a sneaky idea it's because set_locale or set_default_locale
95: [00:32:00] <Pyromanik> FrozenFire: oh, currency field and numeric field are right dicks.
96: [00:32:14] <Pyromanik> I could have told you that one
97: [00:34:22] <FrozenFire> More than dicks
98: [00:34:24] <FrozenFire> Broken.
99: [00:34:34] <FrozenFire> NumericField is fine
100: [00: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
101: [00:34:42] <FrozenFire> But CurrencyField needs to be fixed or removed.
102: [00:36:05] <zippy__> what I am trying to find out, is if there is a useable paypal module that does IPN
103: [00:37:21] <FrozenFire> Eh, I've done more PayPal stuff than I would ever want to, and IPN is not really necessary.
104: [00:37:30] <FrozenFire> Like, truly not necessary.
105: [00:37:36] <FrozenFire> Almost never necessary.
106: [00:37:54] <zippy__> How do you figure?
107: [00:38:14] <zippy__> How do you validate the purchase, ensure the user really did pay?
108: [00: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.
109: [00:39:08] <FrozenFire> PayPal says the payment happened, synchronously, and then you tell the user as much
110: [00:39:24] <FrozenFire> The payment never happens until you tell it to, server-side.
111: [00:39:50] <zippy__> That using the PaymentExpress?
112: [00:39:58] <FrozenFire> Yes
113: [00:40:04] <simon_w> I really don't like that particular flow
114: [00:40:32] <FrozenFire> That's how it's done. I actually rather like it, for what it is.
115: [00:40:50] <FrozenFire> Gives you a chance to modify the order before actual payment, if necessary.
116: [00:40:59] <zippy__> Why would you need to?
117: [00:41:04] <FrozenFire> You get details back on how they *will* pay, before it actually happens.
118: [00:41:08] <zippy__> gotcha
119: [00:41:18] <FrozenFire> That way you can say, "This aspect of your payment is fucked. Fix it"
120: [00:41:43] <simon_w> But it never tells me how much I'm actually going to get charged, just the conversion rate
121: [00:42:02] <FrozenFire> Only if the developer is shit
122: [00:42:13] <FrozenFire> You can give a line-item breakdown of everything involved in the order.
123: [00:43:00] <simon_w> So you always read figures back out of Paypal instead of just loading up your order again?
124: [00:43:12] * nikrolls has joined #silverstripe
125: [00:43:46] <FrozenFire> Not sure what you mean.
126: [00:44:03] <FrozenFire> If you want, you can execute the transaction immediately as they hit your after-PayPal landing page.
127: [00:44:11] <FrozenFire> And then immediately redirect them to say it's done.
128: [00: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
129: [00: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."
130: [00: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
131: [00:45:32] <FrozenFire> That is, you have to disclaim all risk on the premature launch
132: [00:45:34] <simon_w> When using the entire paypal-side flow, I get the NZD figure as well
133: [00:45:51] <FrozenFire> simon_w, That makes just about zero sense.
134: [00:45:56] <FrozenFire> :P
135: [00:45:58] <ss23> Meh, I'm not worried about them sueing me or aynthing, FrozenFire. There's no risk, this is NZ
136: [00:46:01] <ss23> :D
137: [00:46:11] <FrozenFire> simon_w, Everything *is* PayPal-side
138: [00:46:25] <FrozenFire> They give just you the opportunity to intercept the payment process before the transaction executes.
139: [00:46:25] <zippy__> ss23: You can still get taken to court
140: [00:46:36] <ss23> zippy__: I could, but this client wouldn't, is what I mean
141: [00:46:36] <FrozenFire> ss23, Nah, it's more for the benefit of the client than you.
142: [00:46:41] <simon_w> FrozenFire, and doing that means PayPal only shows the USD figure
143: [00:46:52] <FrozenFire> Meaning, you are giving them a bullshit reason why they don't want to launch early
144: [00:46:59] <ss23> lol
145: [00:47:08] <ss23> Screw that, too lazy. If they want to launch we can
146: [00:47:22] <ss23> Like, I don't really care if they get hacked
147: [00:47:35] <FrozenFire> Meh. More than just hacking. If they launch in a hurry, other shit is likely to happen.
148: [00:47:44] <FrozenFire> A client of ours went bankrupt as a result of exactly that.
149: [00:48:01] <FrozenFire> They scheduled $20k in advertising for a given day, to run during a football game.
150: [00:48:01] <ss23> It's not in a hurry, it's been a long time, we're just waiting on some external host stuff
151: [00:48:11] <FrozenFire> They didn't give us enough time to launch.
152: [00:48:14] <ss23> haha, I actually think this company did a similiar thing XD
153: [00:48:15] <FrozenFire> Site flopped under the load
154: [00:48:40] <FrozenFire> They also didn't tell us the site would be getting thousands of concurrent users
155: [00:49:02] <FrozenFire> On the fly, we managed to push it into a load balanced setup, but the damage was done.
156: [00: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.
157: [00:50:51] <xyphoid> and at that point the customer thinks they've paid and you don't know that
158: [00:51:33] <FrozenFire> True. I just find that handling the IPN/non-IPN split is really not worth it.
159: [00:51:35] * gordon has joined #silverstripe
160: [00:51:48] <FrozenFire> You could conceivably store the tokens generated via IPN for later processing
161: [00:51:56] <FrozenFire> But that's less-than-ideal
162: [00:51:59] * gordon is now known as Guest11557
163: [00:52:15] <FrozenFire> That is, if you want to process the transaction after the user gets back, versus IPN, in some cases.
164: [00:52:22] * Guest11557 is now known as elgrodo
165: [00:54:46] <zippy__> If you don't handle the IPN, how do you handle cancels / refunds?
166: [00:54:51] <zippy__> subscription cancels etc
167: [00:55:14] <FrozenFire> Not sure what you mean.
168: [00:55:34] <FrozenFire> If a payment happens using PayPal Express Checkout, your server at some point gets to explicitly say it did.
169: [00:55:48] <FrozenFire> So at that point, you know for certain what the payment token is.
170: [00:56:23] <zippy__> right
171: [00: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
172: [00:56:44] <FrozenFire> So when you get told about it either via IPN or return, you can verify who owns the token.
173: [00: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?
174: [00:57:07] <FrozenFire> Ah. That's a whole different ball-game.
175: [00:57:24] <FrozenFire> I'm not even sure how that works.
176: [00:57:30] <FrozenFire> I think PayPal has a notification URL thingy for that
177: [00:57:44] <FrozenFire> But you can also have a batch which checks subscriptions, if needed.
178: [00:57:48] <zippy__> ah yea.. IPN :)
179: [00:58:12] <FrozenFire> IPN does complicate things, though, I find.
180: [00:58:17] <FrozenFire> But yeah, that's a complicated scenario.
181: [00:58:29] <FrozenFire> Since it happens outside of the scope/control of your application
182: [00: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.
183: [00:59:29] <FrozenFire> I just let the client handle that using the existing means.
184: [00:59:34] <FrozenFire> The site doesn't need to know about it.
185: [00:59:44] <FrozenFire> Reversed payments are notified through the merchant interface, iirc.
186: [00:59:59] <FrozenFire> Subscriptions are a different dealie, though
187: [01:00:08] <FrozenFire> That'd be a case where I'd check subscriptions in a batch
188: [01:00:13] <FrozenFire> Instead of relying upon external triggers.
189: [01:00:13] * spronk quit (Read error: Connection reset by peer)
190: [01:00:46] * spronk has joined #silverstripe
191: [01:08:04] <FrozenFire> Anyone have a pattern for creating ModelAdmin SearchForm checkboxes?
192: [01:08:45] <FrozenFire> I need to have a checkbox for filtering based on a relation being fulfilled
193: [01:14:34] <Pyromanik> zippy__: YOU'RE
194: [01:14:45] <zippy__> O.o
195: [01:15:31] <zippy__> Used to be on a tv show called "Rainbow"?
196: [01:16:06] <irogue> zippy__, where's bungle?
197: [01:17:25] <zippy__> gone bush
198: [01:18:25] * Pyromanik gets tot he bottom of the issue
199: [01:18:37] <Pyromanik> it's i18n::set_default_locale()
200: [01:18:44] <Pyromanik> MAKES MY MENU DISAPPPEARS
201: [01:19:09] <Pyromanik> no zippy__, 12:58 < zippy__> so your saying,
202: [01:19:11] <Pyromanik> you're
203: [01:19:23] <zippy__> lol
204: [01:19:32] <Pyromanik> who's been up all night banging with rod and rodger?
205: [01:21:05] <Colin[pi]> O_O
206: [01:21:46] <elgrodo> Zippy was somewhat foul mouthed http://www.youtube.com/watch?v=oFF-CzaAkIY
207: [01:22:28] <Pyromanik> long story short: i18n::set_default_locale($code); results in http://iforce.co.nz/i/komkoauk.cef.png
208: [01:22:42] <Pyromanik> does it still do this in 3.1 simon_w ?
209: [01:24:20] <Pyromanik> (above image is 3.0.5)
210: [01:25:14] <Pyromanik> I tested with en_GB and en_NZ
211: [01:30:47] * pevjan has joined #silverstripe
212: [01:33:42] <Pyromanik> hmm
213: [01:33:44] <Pyromanik> http://sspaste.com/paste/show/519aceddf08b7
214: [01:34:38] * ^pH has joined #silverstripe
215: [01:38:08] * ^pH- quit (Ping timeout: 256 seconds)
216: [01:41:05] <Pyromanik> ah
217: [01:41:23] <Pyromanik> I defined a page with static $default_parent = array('parent') rather than = 'parent';
218: [01:42:19] <MattSS> Pyromanik: funny, I'm just looking at the exact same issue myself
219: [01:42:33] <Pyromanik> MattSS: so I just solved your problem :>
220: [01:43:05] <MattSS> depends how you fixed it ;)
221: [01:43:53] <Pyromanik> MattSS: I had BlahPage extends Page { public static $default_parent = array('BlahParent'); [...] }
222: [01:44:20] <Pyromanik> where I should have had BlahPage extends Page { public static $default_parent = 'BlahParent'; [...] }
223: [01:44:26] <MattSS> Pyromanik: is that to do with the i18n thing with text labels disappearing?
224: [01:44:32] <MattSS> or another issue?
225: [01:44:43] <Pyromanik> MattSS: nope
226: [01:44:46] <Pyromanik> well
227: [01:45:02] <Pyromanik> nah not really
228: [01: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
229: [01:46:02] <Pyromanik> MattSS: my solution to the text labels thing was to // on _config.php's i18n::set_default_locale()
230: [01:46:15] <MattSS> ah ok
231: [01:46:35] <Pyromanik> however I suspect that simply filling in the missing translation issues would also solve that issue.
232: [01:46:39] <MattSS> I appear to be using en_GB and it's causing it. I suspect it's because
233: [01:46:45] <Pyromanik> but as this is an NZ site with no need for other languagesw
234: [01:46:50] <Pyromanik> no poitn.
235: [01:46:58] <Pyromanik> MattSS: yeh, I tried en_GB and en_NZ
236: [01:46:58] <MattSS> the lang array doesn't contain an option for that string, and the call to _t isn't providing a default
237: [01:47:01] <Pyromanik> the default is en_US
238: [01:47:11] <Pyromanik> MattSS: yep, I suspect so too.
239: [01:47:28] <MattSS> The _t() call is this: 'label': ss.i18n._t('Tree.EditPage'),
240: [01:47:29] <Pyromanik> although it's all done with yaml these days
241: [01:47:34] <Pyromanik> yeh
242: [01:47:40] <MattSS> that's in cms/javascript/CMSMain.Tree.js
243: [01:47:46] <MattSS> adding in a second argument makes it work fine
244: [01:47:56] <Pyromanik> and tree.whatevertheoptionisforaddachileoftype
245: [01:48:06] <Pyromanik> chile/child
246: [01:48:16] <MattSS> yeah
247: [01:48:32] <MattSS> Tree.AddSubPage
248: [01:48:37] <Pyromanik> mm
249: [01:49:54] <Pyromanik> that context menu is handy as it restricts the options down to only the allowed_children for the parent
250: [01:50:18] <Pyromanik> where as the 'add new' button doesn't
251: [01:52:57] <MattSS> plus it's nice UI
252: [01:53:04] <Pyromanik> yep
253: [01: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"
254: [01:53:24] <Pyromanik> wtf
255: [01:53:50] <Pyromanik> ss23: you should be that hacker
256: [01:53:53] <ss23> lol
257: [01:53:57] <Pyromanik> good business strategy.
258: [01:54:06] <Pyromanik> rofl
259: [01:54:18] <ss23> I've considered it before...
260: [01:54:21] <Pyromanik> MattSS: hmm
261: [01:54:43] <Pyromanik> addsubpage doesn't show up at all in a search of the lang file for en OR en_GB
262: [01:55:00] <Pyromanik> (why is use the default for a CMS most used by the rest of the world?)
263: [01:55:11] <Pyromanik> why is US*
264: [01:56:41] <irogue> ss23: yeah, more $$ for you to fix it once it happens
265: [01:56:58] <Pyromanik> although if you get caught, not a good business strategy :<
266: [01:57:00] <ss23> lol
267: [01:57:19] <ss23> Yeah, like that site the other day, $60 for going in and noticing 400,000 spam comments on a blog
268: [01:57:22] <ss23> :D
269: [01:58:22] <Pyromanik> how the F-balls does translation work?
270: [01:58:41] <Pyromanik> I added a like to cms/lang/en_GB.yml
271: [01:58:44] <Pyromanik> line*
272: [01:58:48] <Pyromanik> but it don't work.
273: [01:59:11] <ss23> Also I fucking hate only having FTP access and not SSH access.
274: [01: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.
275: [01:59:58] <MattSS> Don't you love FTP's ability to gunzip a .tar.gz of the site? Oh wait...
276: [02: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.
277: [02:00:53] <Pyromanik> .txt files marked exceutable and suchlike
278: [02:00:53] <lewellyn> and chmod not actually changing modes
279: [02:01:06] <FrozenFire> And corrupting data
280: [02:01:21] <lewellyn> i refuse to touch that crap ever again.
281: [02:01:28] <Colin[pi]> yeah what I usually do is transfer a tar.gz, then I login via SS... oh wait
282: [02:01:34] <FrozenFire> Indeed. I have a "FTP? You're fired." rule
283: [02:03:11] <Pyromanik> how to rebuild translations?
284: [02:03:29] <lewellyn> i don't dislike ftp. i dislike it as a management platform.
285: [02:03:29] <FrozenFire> Rebuild?
286: [02:03:35] <FrozenFire> Oh, i18n
287: [02:03:45] <FrozenFire> You mean flush translations?
288: [02:03:53] <Pyromanik> FrozenFire: I added lines to cms/lang/en_GB.yml to try and solve MattSS and I's issue.
289: [02:03:57] <Pyromanik> FrozenFire: yes.
290: [02:04:01] <Pyromanik> flush translations
291: [02:05:40] <FrozenFire> Maybe ?flush=all
292: [02:05:41] <FrozenFire> ?
293: [02:06:06] <Pyromanik> yeh I tried
294: [02:06:25] <FrozenFire> Also, why are you adding lines to CMS files?
295: [02:06:33] <Pyromanik> FrozenFire: testing
296: [02:06:41] <FrozenFire> This is not an explanation
297: [02:06:41] <Pyromanik> bugfix
298: [02:06:45] * cloph_away has joined #silverstripe
299: [02:06:49] <Pyromanik> testing for a bugfix
300: [02:06:55] <FrozenFire> You should be able to add the corresponding lines to your project's translation files
301: [02:06:57] <Pyromanik> to push back upstream
302: [02:07:13] <Pyromanik> FrozenFire: should be able to, but that doesn't help me get it into core
303: [02:08:44] <Pyromanik> maybe i18ntextcollectortask
304: [02:09:03] <Pyromanik> oh goody
305: [02:09:07] <Pyromanik> reset connection
306: [02:09:09] <Pyromanik> fantastic
307: [02:09:54] <FrozenFire> Uhh
308: [02:09:56] <FrozenFire> Yeah, don't run that.
309: [02:09:59] <Pyromanik> oh great, now the whole site don't load
310: [02:10:01] <FrozenFire> Now your project is littered
311: [02:10:06] <Pyromanik> yep, lol
312: [02:10:06] <FrozenFire> I hope you're using git
313: [02:10:13] <Pyromanik> littered with what?
314: [02:10:20] <lewellyn> fail
315: [02:10:22] * MattSS notes to self: do't run that
316: [02:10:22] <FrozenFire> Littered with a veritable assload of files
317: [02:10:35] <Pyromanik> FrozenFire: where?
318: [02:10:36] <FrozenFire> You'll now need to basically git clean -rf
319: [02:10:46] <FrozenFire> Or something like that
320: [02:11:05] <Pyromanik> not seeing any litter
321: [02: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
322: [02:11:29] <FrozenFire> It can create a huge. fucking. mess.
323: [02:11:30] <FrozenFire> :P
324: [02:11:34] <Pyromanik> so
325: [02:11:35] <Pyromanik> it
326: [02:11:39] <simon_w> MattSS, fix it!
327: [02:11:43] <Pyromanik> re-builds all the lang.ymls?
328: [02:11:54] <simon_w> Pyromanik, just the US one
329: [02:11:54] <Pyromanik> simon_w: how to add to translation!?
330: [02:12:02] <Pyromanik> huh?
331: [02:12:11] <Pyromanik> US is balls, make GB the default
332: [02:12:19] <simon_w> the collector task rebuilds the en_US.yml one
333: [02:12:27] <Pyromanik> ok
334: [02:12:27] <simon_w> Or your default locale, maybe
335: [02:12:39] <Pyromanik> but there isn't any
336: [02:13:01] <Pyromanik> I have that one open and it's not rebuilt
337: [02:13:04] <Pyromanik> didn't change
338: [02:13:22] <Pyromanik> otherwise Notepad++ has a 'mare at me
339: [02:13:23] * pevjan quit (Remote host closed the connection)
340: [02:13:31] <FrozenFire> It will build either your default locale or one specified by ?locale=lolcat
341: [02:13:45] <Pyromanik> oh god, that was actually a locale in 2.4
342: [02:13:58] <FrozenFire> Of this I'm aware. It should be the default locale.
343: [02:14:08] <Pyromanik> omfglulz
344: [02:14:14] <FrozenFire> Of any of the English dialects, it's the most comprehensible.
345: [02:14:25] <Pyromanik> and efficient!
346: [02:14:45] <Pyromanik> so anyway
347: [02:14:57] <Pyromanik> textcollectortask bricked my site.
348: [02:15:03] <FrozenFire> git status
349: [02:15:05] <Pyromanik> what do?
350: [02:15:06] <FrozenFire> See what it created
351: [02:15:12] <simon_w> It's coming back in 3.1 too
352: [02:15:15] <Pyromanik> yeah
353: [02:15:16] <Pyromanik> but
354: [02:15:20] <Pyromanik> didn't commit yet :<
355: [02:15:23] <FrozenFire> Good
356: [02:15:29] <FrozenFire> Eliminate what it created. :P
357: [02:15:30] <Pyromanik> no I mean
358: [02:15:33] <Pyromanik> at all :<
359: [02:15:47] <FrozenFire> That sounds like a _you_ problem.
360: [02:15:52] <Pyromanik> it is
361: [02:15:53] <Pyromanik> haha
362: [02:16:14] <MattSS> it only wrote to new files though, no? so a git status will show new vs. modified files
363: [02:17:04] <FrozenFire> MattSS, He hasn't committed, so there's no reference point.
364: [02:17:24] <MattSS> oh at all, I see
365: [02:17:57] <FrozenFire> Because he's silly
366: [02:18:07] <Pyromanik> quite
367: [02:18:08] <FrozenFire> If he were using composer, he wouldn't be having this problem. :P
368: [02:18:17] <FrozenFire> Since everything would be a git submodule.
369: [02:18:22] <FrozenFire> But nooo
370: [02:18:26] <Pyromanik> composer ruins my brain
371: [02:18:41] <Pyromanik> shall be something I'll have to get someone to teach me at hackfest I think
372: [02:18:56] <simon_w> MattSS, coming to the hackfest on Saturday?
373: [02:19:27] <FrozenFire> How hard is composer to learn? Not very. :P
374: [02:19:42] <FrozenFire> Write json. composer install
375: [02:19:42] <FrozenFire> Done.
376: [02:20:21] <Pyromanik> FrozenFire: last time I tried that it had a complete 'mare at me.
377: [02:20:34] <Pyromanik> complained about just about everything it possibly could, and refused to do anything
378: [02:20:39] <simon_w> FrozenFire, you missed the "Install Symfony" step :p
379: [02:20:58] <Pyromanik> although, this was a good half year ago
380: [02:21:08] <FrozenFire> simon_w, ?
381: [02:21:20] <lewellyn> yeah. symfony is a good point against composer in my book.
382: [02:21:28] <Pyromanik> simon_w: why can't I just edit cms/lang/en_GB.yml
383: [02:21:49] <Pyromanik> and have it work (with i81n::set_default_locale('en_GB'))
384: [02:21:49] <Pyromanik> ?
385: [02:22:42] <FrozenFire> Because that would be too easy
386: [02:22:47] <Pyromanik> IKR
387: [02:22:51] <Pyromanik> I thought that was the point
388: [02:23:09] <Pyromanik> how does translation in JS work?
389: [02:24:12] <FrozenFire> Translation in Javascript?
390: [02:24:13] <FrozenFire> Wat?
391: [02:24:39] <Pyromanik> well it pulls the CMS text via JS
392: [02:25:12] <FrozenFire> Still not following you.
393: [02:25:17] * simon_w quit (Ping timeout: 248 seconds)
394: [02:25:19] <Pyromanik> http://logs.simon.geek.nz/index.php?date=2013-05-21#13_47_2
395: [02:25:31] <Pyromanik> [13:47] <MattSS> The _t() call is this: 'label': ss.i18n._t('Tree.EditPage'),
396: [02:25:37] <Pyromanik> [13:47] <MattSS> that's in cms/javascript/CMSMain.Tree.js
397: [02:25:47] * FrozenFire dozes off
398: [02:27:45] * simon_w has joined #silverstripe
399: [02:27:57] <MattSS> Pyromanik: am submitting a fix for this shortly
400: [02:28:40] <Pyromanik> MattSS: by adding the second param to the _t call?
401: [02:28:46] <Pyromanik> (the default part)
402: [02:29:00] <Pyromanik> js object in global scope: ss.i18n
403: [02:29:14] <Pyromanik> currentLocale="en_NZ", defaultLocale="en_US"
404: [02:29:16] * pevjan has joined #silverstripe
405: [02:29:20] <Pyromanik> it falls back to US
406: [02: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.
407: [02:30:45] <Pyromanik> so how does one alter en_GB to have that translation string?
408: [02:30:56] <Pyromanik> fix problems, not symptoms :>
409: [02:34:04] <Pyromanik> OIC
410: [02:34:16] <Pyromanik> JS translation is separate files to the yaml
411: [02:34:26] <Pyromanik> so totally unhelpful :<
412: [02:34:43] <FrozenFire> Uhh, wat?
413: [02:34:49] <FrozenFire> Methinks not.
414: [02:35:06] <Pyromanik> well I think it should be unified
415: [02:35:12] <Pyromanik> rather than having to set things twice.
416: [02:35:17] <Pyromanik> is what I'm trying to say.
417: [02: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
418: [02:36:41] <Pyromanik> MattSS: cms/javascript/en_US.js
419: [02:37:02] <Pyromanik> is differents to all the other lang files.
420: [02:37:58] <Pyromanik> dunno how to make them pull in though
421: [02:39:01] <MattSS> I don't see that being loaded by the CMS?
422: [02:39:17] <Pyromanik> yeah I dunno, as I say
423: [02:40:14] * AaronCDR has joined #silverstripe
424: [02: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
425: [02:40:29] * simon_w has left #silverstripe
426: [02:40:37] <Pyromanik> yet when you call _t it gives me nothing, rather than the US output
427: [02:40:44] * simon_w has joined #silverstripe
428: [02:41:08] <Pyromanik> but it's definitely that js file with the dictionary in it MattSS
429: [02:41:25] <Pyromanik> I changed it and it altered the text (when I didn't set default locale in _config.php
430: [02:41:49] <Pyromanik> I just have no idea if it's autogen'd, manually edited or what
431: [02:42:07] <simon_w> the JS lang files are manually edited
432: [02:42:11] <simon_w> the YAML ones are generated
433: [02:42:21] <Pyromanik> simon_w: oh, generated from where?
434: [02:42:33] <simon_w> getlocalization.com
435: [02:42:37] <Pyromanik> oh
436: [02:42:47] <Pyromanik> so not by SS
437: [02:43:10] <Pyromanik> simon_w: how are the js files pulled into the cms?
438: [02:43:11] <simon_w> the US one is generated by the collection task
439: [02:44:41] <simon_w> Requirements::add_i18n_javascript
440: [02:44:54] <Pyromanik> ah
441: [02:48:11] * fpk has joined #silverstripe
442: [02: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
443: [02:50:31] <simon_w> Whoa, MattSS is going to submit something I could review. How times have changed :p
444: [02:51:06] <Pyromanik> fpk: that didn't make much sense sorry.
445: [02:51:51] <fpk> Hi Pyromanik
446: [02:52:07] <fpk> the submit seems not working
447: [02:52:34] <Pyromanik> fpk: perhaps you could paste your form code?
448: [02:52:58] <fpk> say the form url is form.local and the new url after submitted is form.local?email=xxxxx&name=xxxxxx
449: [02:53:11] <simon_w> fpk, you
450: [02:53:16] <simon_w> fpk, you're not using a Form object?
451: [02: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
452: [02:54:24] <Pyromanik> oh it's you again
453: [02:54:40] <fpk> public function ProcessCustomLoginForm() { $member = MemberAuthenticator::authenticate($this->request->postVars()); if ($member) { $member->logIn(); }
454: [02:54:44] <fpk> yes :)
455: [02: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>
456: [02: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
457: [02:57:59] <Pyromanik> fpk, please use pastie.com or something similar
458: [02:58:04] <Pyromanik> I can't read that
459: [02:58:15] <fpk> sorry
460: [02:58:32] <simon_w> fpk, You really should just use $CustomLoginForm and add a LiteralField for the forgot link
461: [03:00:12] <fpk> http://pastie.org/7937354
462: [03: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
463: [03:00:58] <fpk> http://pastie.org/7937357 this is the template
464: [03:02:26] <MattSS> simon_w: heh, indeed
465: [03: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 ...
466: [03:02:54] <simon_w> fpk, and this is why you use version control.
467: [03:03:02] <simon_w> Have a look at the framework's Form.ss
468: [03: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
469: [03:09:04] * fpk quit (Ping timeout: 250 seconds)
470: [03:12:45] * MrJeremy quit (Ping timeout: 248 seconds)
471: [03:13:47] * MrJeremy has joined #silverstripe
472: [03:15:06] <ss23> Cloudflare captchas are literally impossible. I've tried doing 10 of them and got them all wrong
473: [03:15:53] <ss23> okay, I did ~25, got in finally :D
474: [03:15:57] <simon_w> ss23, cause you're a bot
475: [03:16:46] <ss23> :<
476: [03: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
477: [03:17:45] <ss23> Don't think they're repcatcha, these are worse
478: [03:18:11] <Colin[pi]> i find recaptcha pretty good.. one or two tries
479: [03:18:50] <ss23> GOT BACK IN wiht another 25
480: [03:18:54] <ss23> okay cloudflare does NOT like this request.
481: [03:19:43] <ss23> I went to upload a file and it locked me out too ;_;
482: [03:19:49] <lewellyn> i hate recaptcha.
483: [03:19:49] <ss23> cloudflare is such a dick
484: [03:20:02] <Colin[pi]> I think simon_w might be right, maybe you are a bot, and don't know it
485: [03:20:03] <lewellyn> i keep getting foreign letters and random punctuation.
486: [03: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
487: [03:20:47] <ss23> Unlike this
488: [03:20:58] <Pyromanik> lewellyn: you can skip
489: [03:21:04] * ss23 skips
490: [03:21:05] <ss23> :D
491: [03:21:07] <lewellyn> Colin[pi]: it's hard when it looks like z , ^ -
492: [03:21:08] <Pyromanik> I don't like recaptcha because it's too easy
493: [03:21:12] <ss23> lol lewellyn XD
494: [03:21:13] * MrJeremy quit (Ping timeout: 264 seconds)
495: [03:21:19] <Pyromanik> and a fair amount of bots still get through
496: [03:21:20] <lewellyn> Pyromanik: i get really godawful ones
497: [03:21:24] <ss23> Pyromanik: You wanna be forced to do 25 different ones instead?
498: [03:21:25] <ss23> :P
499: [03:21:30] <Pyromanik> ss23: yes
500: [03:21:34] <Pyromanik> give me link
501: [03:21:38] <Pyromanik> I bet it's not that hard
502: [03:21:41] <ss23> Why not just give a 5 min delay on making requests?
503: [03:21:41] <Pyromanik> or screenshot
504: [03:21:41] <ss23> dude.
505: [03:21:43] <ss23> Okay
506: [03:21:56] <Colin[pi]> will agree Pyromanik, I had comments with recaptcha enabled on my blog originally and it got hammered with spam
507: [03:22:03] <ss23> wait
508: [03:22:07] <ss23> cloudflare didn't block me this time
509: [03:22:09] <ss23> one sec
510: [03:22:17] * nikrolls quit (Ping timeout: 276 seconds)
511: [03:22:37] <MattSS> wasn't recaptcha all about turning books into text?
512: [03:22:51] <lewellyn> MattSS: then google got it.
513: [03:22:55] <Colin[pi]> apparently so
514: [03:23:09] <lewellyn> i'm just waiting for it to end up in the google graveyard
515: [03:23:25] <Colin[pi]> I don't find it very reliable any more :\
516: [03:23:42] <Colin[pi]> what was that other one.. mollom?
517: [03:23:52] <MattSS> The last few I've had have been amIDUmas NUtillz rebadeson
518: [03:24:04] <MattSS> them's some interesting words
519: [03:24:24] <ss23> interesting...
520: [03:24:35] <ss23> It seems that changing the country my IP comes from makes them easier or harder
521: [03:24:35] <Colin[pi]> ...words
522: [03:24:41] <lewellyn> Colin[pi]: i just write my own captchas at this point, using bot behaviors to trap them
523: [03:24:42] <ss23> I was using a Spanish IP before, and was getting ones that didn't work at all
524: [03:24:50] <ss23> Now I'm using Russian and I can actually read them
525: [03:24:57] <lewellyn> ss23: that seems to be the case with recaptcha too.
526: [03:25:06] <ss23> maybe it is recaptcha :O
527: [03:25:12] <ss23> note to self: stay away from brazil.
528: [03:25:16] * simon_w quit (Ping timeout: 252 seconds)
529: [03:25:20] <lewellyn> if i change my outgoing ip, i get differing levels of difficulty
530: [03:25:23] <Pyromanik> shit
531: [03:25:29] <lewellyn> which sucks when i'm behind my main nat.
532: [03:25:30] <Pyromanik> accidentally the whole VM
533: [03:25:32] <Colin[pi]> been there four times ss23 ;P
534: [03:25:56] <Pyromanik> ss23: yeah but with Russian you won't have the letters on your KB.
535: [03:26:31] <Pyromanik> Colin[pi]: mollom is good, but relies on the fact that the data you're submitting is a blog post.
536: [03:26:44] <ss23> No, in Rusiaan it seems to only give me ascii :O
537: [03:26:47] <Pyromanik> if it's not, you have to map shit to 'title', 'content', 'author', etc.
538: [03:26:54] <Pyromanik> which I found confusing and shit.
539: [03:27:11] <Colin[pi]> hmm that is a bit shitty
540: [03: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
541: [03:27:51] <Pyromanik> I'll use it if the site is just userforms and blog
542: [03:28:00] <lewellyn> Pyromanik: that doesn't stop it from giving me slavic, cyrillic, greek, and cjk while in .us :/
543: [03:28:04] <Pyromanik> but if I need a captcha on something manually I'll probably go for recaptcha
544: [03:28:21] <Pyromanik> lewellyn: yeah, but you just skip
545: [03:28:25] <Pyromanik> if you know how recaptcha works
546: [03:28:29] <lewellyn> then they get even more off the wall
547: [03:28:33] <Pyromanik> you only need to fill in ONE of the words.
548: [03:28:40] <Colin[pi]> well it's dead easy to implement... didn't catch spammers on my blog though :\
549: [03:28:44] <lewellyn> but you have to be able to discern one of them.
550: [03:28:47] <Pyromanik> it knows one, wants you to translate the other.
551: [03:29:21] <lewellyn> polish on one side and japanese on the other isn't helpful.
552: [03:29:21] <Pyromanik> Colin[pi]: nah, recaptcha's a pain in the ringpiece because it only lets you have one per page
553: [03:29:33] <Pyromanik> lewellyn: hahahhahahahahaha
554: [03:29:35] <Pyromanik> gutted man
555: [03:29:37] <Colin[pi]> well 99% of the time I only need one per page :)
556: [03:29:50] <Colin[pi]> in fact
557: [03:29:51] <Pyromanik> Colin[pi]: yeh, but if you haev more than one form on a page (i've had such in the past)
558: [03:29:59] <Colin[pi]> cant remember the last time I used more than one
559: [03:30:24] <Colin[pi]> sure you can't just change IDs for it or something? to have more on one page?
560: [03:30:31] <lewellyn> i've used hellocaptcha in the past though. they're kinda ugly, but seem to work well
561: [03:30:42] <Colin[pi]> ah prolly related to the request isnt it
562: [03:30:43] <lewellyn> they're also sucky for accessibility
563: [03: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
564: [03:31:03] <ss23> iframes!
565: [03:31:04] <ss23> ^.^
566: [03:31:24] <Colin[pi]> aren't all captchas? :)
567: [03:31:54] <lewellyn> Colin[pi]: i've had few complaints for the one on my pastebin. ;)
568: [03:32:21] <Colin[pi]> link?
569: [03:32:28] <lewellyn> http://www.greenviolet.net/paste
570: [03:32:40] <Pyromanik> MattSS: I found the problem!
571: [03:32:52] <lewellyn> the non-css stuff is a bit off right now. but i'll fix that in the next release.
572: [03:32:56] * simon_w has joined #silverstripe
573: [03:32:58] <lewellyn> now, really going.
574: [03:33:21] <Colin[pi]> thanks I'll have a look :)
575: [03:33:28] <Pyromanik> framework/javascript/i18n.js is HARD CODED to defaultLocale = 'en_US'
576: [03:34:01] <Pyromanik> but requirements::add_i18n_javascript only includes the ACTUAL set locale and default locale
577: [03:34:34] <Pyromanik> so set_locale('en_NZ'), set_default_locale('en_GB'), only these files.js get included
578: [03:34:42] <Pyromanik> but they don't exist
579: [03:34:45] <Pyromanik> so nothing happens.
580: [03:34:54] <Pyromanik> then you have no translation files.
581: [03:34:58] <simon_w> Probably want to make it alwauys include en_US too
582: [03:35:18] <Pyromanik> simon_w: or set default strings on all _t calls
583: [03:35:37] <simon_w> If you really want to
584: [03:35:51] <Pyromanik> well they should
585: [03:42:16] <simon_w> And I should go home before I rage too much, but don't wanna bike
586: [03:42:55] <Colin[pi]> how far?
587: [03:43:15] <simon_w> 6km, all up hill
588: [03:43:26] <Colin[pi]> :(
589: [03:43:33] <simon_w> Hang on, all up "mountain" :p
590: [03:43:33] <MattSS> back in my day...
591: [03:44:05] <Colin[pi]> I have a regular 17km route, but it's a gradual incline :)
592: [03:45:53] <MattSS> Pyromanik: ahh, interesting
593: [03:45:59] <simon_w> Helps that Canberra's flat :p
594: [03:46:11] <Colin[pi]> not all of it :P
595: [03:46:21] <MattSS> so if there's no default and you're not set to en_US, then it won't work basically
596: [03:46:28] <MattSS> nice catch :)
597: [03:46:38] <simon_w> Colin[pi], my bike home would take me to the top of Black Mountain
598: [03:49:42] <simon_w> Ah well, guess I better get started
599: [03:50:03] <Colin[pi]> have fun!
600: [03:50:14] <simon_w> Oh, fun is for coming into work :p
601: [03:50:53] <Colin[pi]> must be fast on the way lol
602: [03:51:37] <zippy__> hmm
603: [03: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
604: [03: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
605: [03:52:36] <zippy__> public function doSubmit($data, Form $form) {
606: [03:52:37] <zippy__> $form->addErrorMessage('Password', 'This failed', 'bad');
607: [03:52:37] <zippy__> return $form;
608: [03:53:10] <zippy__> which will 500, calling $this->render() renders the whole page. What is the proper way to return the form...
609: [03:55:56] <simon_w> Well, change of plans. My legs are complaining rather heavily about standing up. Stupid legs.
610: [03:56:03] <simon_w> zippy__, $this->redirectBack()
611: [03:56:37] <zippy__> simon_w: this is an ajax form submission… redirectBack() renders the wrong page
612: [03:56:53] <simon_w> return $form->forTemplate() ?
613: [04:00:10] <zippy__> close
614: [04:00:19] <zippy__> public function doSubmit($data, Form $form) {
615: [04:00:19] <zippy__> $form->addErrorMessage('Password', 'This failed', 'bad');
616: [04:00:20] <zippy__> $form->setupFormErrors();
617: [04:00:21] <zippy__> return $form->forTemplate();
618: [04:00:30] <zippy__> had to call setupFormErrors as well
619: [04:02:18] * guci0 has joined #silverstripe
620: [04:03:15] * cloph_away quit (Ping timeout: 246 seconds)
621: [04:03:15] <guci0> Morning!
622: [04:06:16] <ss23> moin
623: [04:06:49] <Pyromanik> MattSS: simon_w, trying to include one's own files is hard task.
624: [04: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
625: [04:08:04] * cloph_away has joined #silverstripe
626: [04:08:24] <Pyromanik> there are no hooks
627: [04:08:25] <simon_w> Pyromanik, Extension added to LeftAndMain with an init method
628: [04:08:40] <Pyromanik> simon_w: ah yesh, sounds quality.
629: [04:11:47] * zippy__ quit (Quit: zippy__)
630: [04:11:57] <Pyromanik> simon_w: would LeftAndMain::require_javascript() do it?
631: [04:12:06] <Pyromanik> a yes
632: [04:12:16] <Pyromanik> foreach (self::$extra_requirements['javascript'] as $file) {
633: [04:12:18] <simon_w> Well, if you just wanted to hardcode the file, yes
634: [04:12:22] <Pyromanik> comes after combine files
635: [04:12:30] <Pyromanik> mm, true.
636: [04:13:16] <simon_w> Anyway, time to limp off to the ATM and bus
637: [04:13:33] <Pyromanik> limp?
638: [04:15:01] * DigNZ1 quit (Quit: DigNZ1)
639: [04:17:24] <spronk> he shot himself in the foot playing with toy guns
640: [04:17:28] <spronk> > >
641: [04:17:31] <spronk> < <
642: [04:17:49] <Pyromanik> spronk: like that kid in the states that shot his sister?
643: [04:17:54] <Pyromanik> parent was all like "but it's a toy"
644: [04:18:15] <Pyromanik> bright pink gun from a company called "my first rifle"
645: [04:18:30] <Pyromanik> derp derp derp
646: [04:18:41] <Pyromanik> whole state all "How could this happen?"
647: [04:18:50] <Pyromanik> everyone feels sorry for parent.
648: [04:18:50] <spronk> lulz
649: [04:18:52] <spronk> my first rifle
650: [04:18:53] * spronk totally wants one
651: [04:19:09] <Pyromanik> every other country, parent would be prosecuted for neglect & improper storage of firearms.
652: [04:19:20] <Pyromanik> derp derp derp
653: [04:23:02] <Pyromanik> success with
654: [04:23:03] <Pyromanik> LeftAndMain::require_javascript($project.'/javascript/lang/'.i18n::default_locale().'.js');
655: [04:23:06] <Pyromanik> LeftAndMain::require_javascript($project.'/javascript/lang/'.i18n::get_locale().'.js');
656: [04:23:09] <Pyromanik> MattSS:
657: [04:23:10] <Pyromanik> ^^
658: [04:23:14] * DigNZ1 has joined #silverstripe
659: [04:23:15] * DigNZ1 quit (Remote host closed the connection)
660: [04:23:32] <Pyromanik> in mysite/_config.php
661: [04:23:34] * DigNZ1 has joined #silverstripe
662: [04: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.
663: [04:24:31] <Pyromanik> (instead of before)
664: [04:27:43] * Pyromanik celebrates
665: [04:27:54] <Pyromanik> thanks for your helps MattSS and simon_w :)
666: [04:36:02] <MattSS> Pyromanik: oh nice :)
667: [04:36:26] * DigNZ1 quit (Quit: DigNZ1)
668: [04: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?
669: [04:40:16] * MrJeremy has joined #silverstripe
670: [04:41:09] <MattSS> oh, it's already in there, just not being loaded, so you're forcing the load, I see!
671: [04:43:33] * xyphoid quit (Changing host)
672: [04:43:33] * xyphoid has joined #silverstripe
673: [04: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.
674: [04:51:36] * pevjan quit (Remote host closed the connection)
675: [04:53:52] * DigNZ1 has joined #silverstripe
676: [04:58:05] * pevjan has joined #silverstripe
677: [05:02:15] * nickmolhoek quit (Quit: nickmolhoek)
678: [05:05:03] * DigNZ1 quit (Ping timeout: 256 seconds)
679: [05: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"
680: [05:07:59] * joelpittet has joined #silverstripe
681: [05:08:00] <simon_w|air> MattSS, so, coming on Saturday?
682: [05:08:53] * MrJeremy quit (Ping timeout: 276 seconds)
683: [05:11:03] * MrJeremy has joined #silverstripe
684: [05: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
685: [05:17:27] <simon_w|air> MattSS, good excuse to not do it then :p
686: [05:17:53] * Shrike_Finland has joined #silverstripe
687: [05:23:10] <willr_> MattSS where is the new place?
688: [05:23:21] <willr_> looked like Broadmeadows.
689: [05:23:33] <MattSS> hah, wish it was that easy ;D
690: [05:23:38] <MattSS> willr_: got it in one
691: [05:23:59] <willr_> Boom.
692: [05:24:49] <MattSS> hopefully Telecom won't take years to move our connection
693: [05:24:55] <MattSS> maybe too much to hope for
694: [05:31:57] * DigNZ quit (Quit: DigNZ)
695: [05:35:04] <irogue> was very surprised
696: [05:35:07] <irogue> moved house in the weekend
697: [05:35:16] <irogue> told them we were moving on saturday
698: [05:35:27] <irogue> on friday night internets stopped working at old house, went there on saturday and it was up and running
699: [05:35:41] <irogue> like, slingshot did something right
700: [05:35:42] <Colin[pi]> well that just wont do
701: [05:35:44] <irogue> amazing
702: [05:35:55] <irogue> we were all ecstatic and surprised
703: [05:36:09] <irogue> then we realised although the internet was working... they'd somehow managed to leave our landline at the old house
704: [05:36:26] <irogue> so we currently have non-naked DSL where the phone and internet services are in different places
705: [05:37:14] <simon_w|air> Haha
706: [05:37:40] <simon_w|air> Still don't know why moving takes so long for DSL, when it's just flipping a switch
707: [05:38:24] <irogue> well, in this case it didnt :-P
708: [05:38:30] <irogue> the flipped the switch and it was moved!
709: [05:38:35] <irogue> they just forgot the other switch...
710: [05: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
711: [05:40:02] * MrJeremy quit (Read error: Connection reset by peer)
712: [05:41:11] <spronk> hmm
713: [05:41:27] <spronk> anyone done anything like... template replacement?
714: [05:41:28] <spronk> like
715: [05:41:36] <spronk> have some custom shit
716: [05:41:39] <spronk> include via tiny
717: [05:42:00] <spronk> oo userdefinedforms does this..
718: [05:42:14] <willr_> spronk yeah but hacky
719: [05:42:18] <spronk> :(*
720: [05:42:21] <willr_> short codes the way to go
721: [05:42:38] <simon_w|air> willr_, don't think you can have page-specific short codes, so wouldn't really work for userforms
722: [05:43:07] <willr_> pretty much why user forms doesn't use them. Though thought about it
723: [05:43:30] <spronk> hmm
724: [05:43:44] <willr_> user forms does a basic str_replace(). Not flash.
725: [05:43:57] <spronk> really i just want to be able to <% include %> within an html editor
726: [05:44:06] <willr_> So avoid doing stuff like <h2>$UserForm</h2>
727: [05:45:24] <willr_> http://doc.silverstripe.org/framework/en/3.1/reference/shortcodes
728: [05:45:40] <willr_> heh chillu broke the formatting
729: [05:47:48] * MrJeremy has joined #silverstripe
730: [05:48:54] * willr_ quit (Quit: willr_)
731: [05: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
732: [05:50:56] * AaronCDR quit (Quit: Page closed)
733: [05: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)
734: [05:53:05] <irogue> lol yeah
735: [05:53:10] <irogue> slingshot i presume?
736: [05:53:48] <simon_w|air> [17:24:42] <MattSS> hopefully Telecom won't take years to move our connection
737: [05:53:52] <simon_w|air> I'm going with Telecom :p
738: [05:59:44] * turnip has joined #silverstripe
739: [06:00:39] <irogue> ah
740: [06:01:04] <irogue> i'm too used to assuming people say "Telecom" when they mean "Chorus"
741: [06:06:02] * MrJeremy quit (Quit: MrJeremy)
742: [06:06:20] * pevjan quit (Remote host closed the connection)
743: [06:16:23] * pevjan has joined #silverstripe
744: [06:17:18] * joelpittet quit (Remote host closed the connection)
745: [06:22:27] * travis-ci has joined #silverstripe
746: [06:22:28] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#24 (3.1 - 34b9952 : Sean Harvey): The build passed.
747: [06:22:28] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/13e632d0532d...34b9952e9df4
748: [06:22:28] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7347764
749: [06:22:28] * travis-ci has left #silverstripe
750: [06:37:41] * DigNZ has joined #silverstripe
751: [06:39:30] * DigNZ quit (Client Quit)
752: [06:41:36] * DigNZ has joined #silverstripe
753: [06:41:37] * DigNZ quit (Client Quit)
754: [06:43:35] * guci0 quit (Ping timeout: 250 seconds)
755: [06:58:34] * zfmf1 has joined #silverstripe
756: [07:03:29] * pevjan quit (Remote host closed the connection)
757: [07:05:27] * pevjan has joined #silverstripe
758: [07:05:58] * priithansen has joined #silverstripe
759: [07:08:38] * chillu has joined #silverstripe
760: [07:16:13] * pevjan quit (Remote host closed the connection)
761: [07:25:42] * MrJeremy has joined #silverstripe
762: [07:26:37] * MrJeremy_ has joined #silverstripe
763: [07:29:57] * MrJeremy quit (Ping timeout: 250 seconds)
764: [07:30:52] * SightUnseen has joined #silverstripe
765: [07:31:11] * SightUnseen has left #silverstripe
766: [07:52:34] * Liquide quit ()
767: [07:52:39] * turnip quit (Quit: Page closed)
768: [07:55:57] * MrJeremy_ quit (Ping timeout: 250 seconds)
769: [08:01:28] * kinglozzer has joined #silverstripe
770: [08:11:05] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
771: [08:13:07] * popeshoe has joined #silverstripe
772: [08:15:02] * popeshoe quit (Client Quit)
773: [08: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
774: [08:24:42] * popeshoe has joined #silverstripe
775: [08:26:03] <chillu> kinglozzer: have you tested this on supported browsers, particularly IE8?
776: [08: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 :)
777: [08:32:42] * nikrolls has joined #silverstripe
778: [08:33:56] <chillu> alright, merged :)
779: [08:34:47] * simon_w quit (Read error: Connection reset by peer)
780: [08:34:54] <kinglozzer> Thank you :)
781: [08:35:05] * simon_w has joined #silverstripe
782: [08:43:53] * willmorgan has joined #silverstripe
783: [08:44:20] * SightUnseen has joined #silverstripe
784: [08:44:32] * SightUnseen has left #silverstripe
785: [08:53:55] * travis-ci has joined #silverstripe
786: [08:53:55] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#25 (3.1 - 14771ff : Ingo Schommer): The build passed.
787: [08:53:55] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/34b9952e9df4...14771ff31f2c
788: [08:53:55] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7350611
789: [08:53:55] * travis-ci has left #silverstripe
790: [09:02:02] * Shrike_Finland quit (Quit: Leaving.)
791: [09:14:51] * Shrike_Finland has joined #silverstripe
792: [09:18:53] * mento has joined #silverstripe
793: [09:31:55] * Shrike_Finland quit (Quit: Leaving.)
794: [09:33:57] * Shrike_Finland has joined #silverstripe
795: [09:48:51] * lx-berlin_ has joined #silverstripe
796: [09:49:33] <lx-berlin_> guten Tag
797: [09:55:12] <mento> moin
798: [09:58:37] * zippy__ has joined #silverstripe
799: [09:58:47] <zippy__> Evening
800: [09:58:53] * mento quit (Quit: Page closed)
801: [10:01:01] <kinglozzer> Morning :)
802: [10:01:24] * nikrolls quit (Ping timeout: 276 seconds)
803: [10:01:41] <lx-berlin_> kinglozzer: do i remember right, that you are from austria ?
804: [10:02:18] <kinglozzer> lx-berlin_: Nope, from the UK
805: [10:02:47] <lx-berlin_> ah, ok
806: [10:07:53] <lx-berlin_> is anyone hostet at hosteurope? Whats going on there ?
807: [10:13:06] <simon_w|air> lx-berlin_, perhaps it'll be best to ask them?
808: [10: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.
809: [10:14:36] <lx-berlin_> but i wondered why it takes them so long to get up and running again
810: [10:15:19] <willmorgan> it might be a datacentre problem, lx-berlin_
811: [10:15:24] <lx-berlin_> probably
812: [10:15:26] <willmorgan> in which case it's probably out of their control
813: [10:15:48] <lx-berlin_> i think they run their own datacenter , but i am not sure
814: [10:18:32] <simon_w|air> It's loading for me, just rather slowly
815: [10:18:39] <simon_w|air> Looks like a DDoS
816: [10:19:12] <ss23> whooops!
817: [10:19:13] <ss23> Sorry
818: [10:19:14] * ss23 stops
819: [10:19:45] <lx-berlin_> i hope i will find a blogpost anywhere later about what happend
820: [10:24:19] <priithansen> well they have twitter but I don't speak german
821: [10:39:47] * DrCuriosity quit (Ping timeout: 245 seconds)
822: [10:42:57] * DrCuriosity has joined #silverstripe
823: [10:43:46] * travis-ci has joined #silverstripe
824: [10:43:47] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#28 (3.1 - 30906c8 : Ingo Schommer): The build passed.
825: [10:43:47] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/14771ff31f2c...30906c8b3198
826: [10:43:47] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7353484
827: [10:43:47] * travis-ci has left #silverstripe
828: [10:44:03] <willmorgan> anyone ever had to deal with a 'rotten' set of tests for an app before?
829: [10:44:14] <willmorgan> not specifically related to SS, but you guys are smart
830: [10:44:20] <lx-berlin_> priithansen: good advice
831: [10:44:36] <willmorgan> seriously considering rewriting about 50 PHPUnit tests from the ground up
832: [10:45:46] * gordon has joined #silverstripe
833: [10:46:10] * gordon is now known as Guest19574
834: [10:46:33] * elgrodo quit (Ping timeout: 248 seconds)
835: [10:51:03] * travis-ci has joined #silverstripe
836: [10:51:03] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#29 (3.0 - 17ac2e3 : Will Rossiter): The build passed.
837: [10:51:03] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/76cef0644095...17ac2e36fc97
838: [10:51:03] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7353800
839: [10:51:03] * travis-ci has left #silverstripe
840: [10:56:39] * Shrike_Finland quit (Quit: Leaving.)
841: [10:57:25] * travis-ci has joined #silverstripe
842: [10:57:25] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#30 (3.1 - 90c274b : Will Rossiter): The build has errored.
843: [10:57:25] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/30906c8b3198...90c274b6408e
844: [10:57:25] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7353966
845: [10:57:25] * travis-ci has left #silverstripe
846: [11:04:39] * lobarvaz has joined #silverstripe
847: [11:05:22] * lobarvaz quit (Client Quit)
848: [11:06:08] * ^pH- has joined #silverstripe
849: [11:09:21] * ^pH quit (Ping timeout: 256 seconds)
850: [11:11:30] * travis-ci has joined #silverstripe
851: [11:11:30] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#32 (3.1 - 5ec4f31 : Will Rossiter): The build was broken.
852: [11:11:30] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/90c274b6408e...5ec4f3146f55
853: [11:11:30] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7354081
854: [11:11:30] * travis-ci has left #silverstripe
855: [11:31:33] * lerni has joined #silverstripe
856: [11:36:43] * Shrike_Finland has joined #silverstripe
857: [11:39:40] * Shrike_Finland1 has joined #silverstripe
858: [11:39:53] * Shrike_Finland quit (Read error: Connection reset by peer)
859: [11:40:06] * zri has joined #silverstripe
860: [11:40:49] <zri> hi guys
861: [11:41:11] <zri> I was wondering if there is a way to extend a dataObject with DataExtension and change the existing field
862: [11:41:31] <zri> which might be an enum, and add options to this enum through the extension
863: [11:41:40] <zri> anyone has any idea?
864: [11:45:09] * zippy__ quit (Quit: zippy__)
865: [12:13:07] * Guest19574 quit (Ping timeout: 245 seconds)
866: [12:47:52] * origincube has joined #silverstripe
867: [12:48:20] <origincube> hi everyone
868: [12:48:55] <origincube> been trying to implement a new shortcode, and having some weird issues
869: [12:52:12] <origincube> followed the api docs and check if the argument is set first, and it seems to always be returning false :/
870: [12:54:10] * osterlaus has joined #silverstripe
871: [12:55:31] <Colin[pi]> oh ss I do love you but sometimes your form handling stuff can be a pita
872: [12:55:42] <origincube> hehe
873: [12:58:27] <Colin[pi]> been fighting with it just to do a simple add to cart form, with dataobjects though instead of pages
874: [12:58:40] <Colin[pi]> think I just had a breakthrough but :)
875: [12:58:47] <Colin[pi]> seems to be almost working
876: [12:59:11] <origincube> awesome. got to love it when you have those breakthroughs!
877: [12:59:36] <willmorgan> pretty sure you need a controller instead of a dataobject when you're using forms
878: [13:00:01] <Colin[pi]> yeah I've made a Product_Controller which extends the Page_Controller to get all of the template stuff
879: [13:00:12] <Colin[pi]> had to do a bit of Director configuring
880: [13:00:32] <Colin[pi]> and the painful stuff is when I need to do hidden fields with IDs and such to track the product
881: [13:00:40] <Colin[pi]> it works but ehhh
882: [13:00:44] * lx-berlin_ has left #silverstripe
883: [13:00:51] <willmorgan> Session is probably safer
884: [13:01:25] <Colin[pi]> hmmmm
885: [13:01:31] <Colin[pi]> good point
886: [13:02:19] <Colin[pi]> so.. on the action that displays the product, store product ID in the session for the add to cart action?
887: [13:02:56] <willmorgan> hmm, I think so. but that's still not optimal
888: [13:03:05] <Colin[pi]> :\
889: [13:03:10] <willmorgan> if you are able to somehow identify a user for the purpose of the application, i.e. not just the session
890: [13:03:19] <willmorgan> then you should really be creating a Cart dataobject and adding things to it
891: [13:03:35] <Colin[pi]> I am
892: [13:03:50] <willmorgan> User has_many Cart many_many Product
893: [13:03:58] <Colin[pi]> but this is the step just prior to adding it to the cart
894: [13:04:03] <willmorgan> ohh
895: [13:04:06] <Colin[pi]> just rendering the add to cart form
896: [13:04:09] <willmorgan> sorry :-P
897: [13:04:15] <willmorgan> yes, then in that case an ID should be safe enough
898: [13:06:50] <Colin[pi]> yeah.. the product controller renders the product template, template calls $AddProductForm, AddProductForm is loaded up with the ID of the requested product (hidden field), then can retrieve product on submit
899: [13:07:14] <Colin[pi]> still seems a bit clunky.. the form stuff in SS generally feels that way though :\
900: [13:07:34] <willmorgan> having done some interesting things with forms lately, I am inclined to mostly agree
901: [13:07:58] <Colin[pi]> this is one of those reasons I said SS is like a beautiful woman
902: [13:08:13] <willmorgan> it is a learning experience though - once you know where data is stored (in the session), and how it handles validation, submissions, and actions (Form->httpSubmission) then you're mostly set
903: [13:08:16] <Colin[pi]> she pisses you off sometimes but you can't stay mad at her because of all the good things she does
904: [13:08:59] <Colin[pi]> yeah.. I can do some really neat stuff by extending pages, but my experience is still limited with raw dataobject handling and custom controllers/forms
905: [13:09:10] <Colin[pi]> gradually getting there
906: [13:09:40] <Colin[pi]> my main hurdle is how to glue it all together.. once we're out of the sitetree, it gets a bit weird
907: [13:09:41] * ocm has joined #silverstripe
908: [13:09:43] <ocm> howdy!
909: [13:09:49] <Colin[pi]> hey hey
910: [13:10:30] <origincube> arg, why won't this shortcode work they way its meant to
911: [13:10:55] <Colin[pi]> because programming
912: [13:11:22] <origincube> tried three different mechanisms from three different tutorials
913: [13:11:26] <Colin[pi]> :(
914: [13:11:44] <origincube> and all becuase i can't get TinyMCE to just allow a small javascript code snippet!
915: [13:12:11] <Colin[pi]> security risk
916: [13:12:34] <origincube> yeah i get that completely
917: [13:12:52] <origincube> but my client needs to insert code snippets for multiple call to action tracking buttons
918: [13:13:16] <willmorgan> origincube: you could be a bit cleverer than that, mind you.
919: [13:13:23] <willmorgan> thought about maybe allowing them to add a class on a button via tinymce?
920: [13:13:33] <willmorgan> JS listens for events on buttons of that class and then tracks it
921: [13:13:42] <Colin[pi]> ooh that's a good suggestion
922: [13:13:43] <origincube> yeah, the issue is the tracking code isn't local
923: [13:13:53] <origincube> he's creating these call to actions through HubSpot
924: [13:14:18] <willmorgan> you would be surprised about what might still be possible!
925: [13:14:24] <origincube> they then provide a code snippet which contains links, imagery and a small bit of code, with an element ID
926: [13:14:34] <willmorgan> yeah, and you can still hack it, maybe...
927: [13:14:39] <willmorgan> can you paste an example?
928: [13:15:28] * mattybalaam has joined #silverstripe
929: [13:15:46] <kinglozzer> I've hit the traditional developer post-lunch slump... can't concentrate on anything. More caffeine needed.
930: [13:16:02] <Colin[pi]> worst time of the day!
931: [13:16:31] <origincube> http://sspaste.com/paste/show/519b739fab1f5
932: [13:16:47] <origincube> thats an example of a code snippet that they supply
933: [13:17:22] <ocm> lil question: I am using the blogmodule and want to get the latest blogposts from all blogholders (I have several in my blogtree). How do I get all the blogholders ?
934: [13:17:45] <ocm> $holder = BlogHolder::get()->First(); wil only get the first one, $holder = BlogHolder::get(); doesnt return anything at all
935: [13:17:48] <origincube> so i've put together a shortcode that would allow me to use [CallToAction id=1234-1234-1234-1234] to replace the <script> part of the code
936: [13:20:16] <ocm> any suggestions on how I can get all the BlogHolders?
937: [13:21:10] <kinglozzer> Linux people: having trouble with my MySQL server on my mac, ps ax|grep mysql shows two processes, mysqld and mysqld_safe, is it normal to have two?
938: [13:21:20] <origincube> wouldn't you need to access them via the BlogTree object?
939: [13:23:08] * Shrike_Finland1 quit (Quit: Leaving.)
940: [13:23:45] <ocm> @kinglozzer, you have mysqld x2 and mysqld_safe x2?
941: [13:24:07] <kinglozzer> ocm: Nope, one of each. Just read a little article online and think it's okay actually
942: [13:24:26] <ocm> I dont see any problem either in that case :)
943: [13:26:57] <mattybalaam> Has anyone tried to use widgets in 3.1? I can see any widgets in the CMS tab and page if I have added already in 3.0, but clicking on the [+] button on a widget once updated to 3.1 I get a not-found error.
944: [13:27:48] <ocm> mattybalaam did you update the widgetmodule?
945: [13:28:20] <mattybalaam> Yes, I’m using composer to, theoretically, handle all that for me.
946: [13:29:21] <ocm> origincube, when I try acces them via the BlogTree like this: http://sspaste.com/paste/show/519b767a9528d I still only get the posts in one blogholder, not from all of the blogholders
947: [13:30:18] <ocm> matty not sure what it can be, havent done anything so far with 3.1
948: [13:30:27] <kinglozzer> Ughhh. I keep getting a "mysql server has gone away" when multiple connections to the database are open :(.
949: [13:31:04] * UndefinedOffset has joined #silverstripe
950: [13:32:22] <mattybalaam> I wonder if the widget, or the widget module needs to have 'allowed_actions' set somewhere.
951: [13:32:23] <ocm> kinglozzer, get a virtual machine
952: [13:32:58] <kinglozzer> Tempted, just a case of getting time to set it up
953: [13:33:26] <ocm> setting up a VM can be done perfectly while enjoying some beers!
954: [13:33:26] <origincube> awesome, shortcode is now working
955: [13:38:57] * Colin[pi] quit (Ping timeout: 256 seconds)
956: [13:40:41] <ocm> can anyone have a look at my problem? I am trying to get latest posts from the blog module
957: [13:40:54] <ocm> tried $holder = BlogTree::get()->First(); and $holder = BlogHolder::get()->First();
958: [13:41:05] <ocm> in both cases I only get posts from one blogholder
959: [13:41:13] <ocm> I got multiple holders in my blogtree
960: [13:41:50] <mattybalaam> Have you tried taking out filter('ParentID', $holder->ID) ?
961: [13:43:00] <ocm> hmm clearly not! haha
962: [13:43:05] <ocm> since it makes it work
963: [13:43:27] <mattybalaam> Sorry, looked at it too quickly!
964: [13:45:24] <ocm> I should have seen that myself
965: [13:45:52] <ocm> running through 3 projects at the same time is definitely not the best thing to do to keep focused
966: [13:46:03] * origincube quit (Quit: ~ Trillian - www.trillian.im ~)
967: [13:46:35] * kinglozzer quit (Remote host closed the connection)
968: [13:48:41] * kinglozzer has joined #silverstripe
969: [13:53:53] * zri quit (Ping timeout: 250 seconds)
970: [13:55:24] * DesignerX has joined #silverstripe
971: [13:57:20] <DesignerX> hi, anyone had problems using renderWith() to look for files in folders other then the default ones (like templates/Sections/TemplateName)
972: [13:59:35] <DesignerX> I have been testing for like an house & found that rederWith(array()) doesnt look for templates in the order of the array, it gets the template with the shortest name 1st ! a.ss will always get used 1st even if added to the end of the array
973: [14:07:58] <mattybalaam> It seems when you click on the add Widget button an http request is sent: url.com/WidgetController/EditableSegment/nameofWidget - on 3.0.x this works fine, but on 3.1.x there is a 404 error. Any ideas?
974: [14:08:31] <kinglozzer> DesignerX: I've never experienced that before
975: [14:09:32] <DesignerX> kinglozzer: Not sure if I should report it, note that my templates are not in the default folders (not in Includes or Layout )
976: [14:16:50] <kinglozzer> DesignerX: Are you using the type/template to search for them?
977: [14:17:00] <DesignerX> no
978: [14:17:11] <kinglozzer> E.g. ->renderWith(array('Includes/MyTemplate'))
979: [14:17:13] <kinglozzer> Try that
980: [14:17:25] <DesignerX> type/template is limited to the default folders (I think)
981: [14:17:56] <kinglozzer> Not sure then, I've never used other folders
982: [14:18:06] <kinglozzer> At least not when rendering with more than one template
983: [14:20:26] <DesignerX> kinglozzer: nope, doesnt work
984: [14:36:54] * daslicht has joined #silverstripe
985: [14:39:28] <daslicht> are ss 2.4 modules compatible with the altest release ?
986: [14:40:04] <mattybalaam> 3.0.x or 3.1?
987: [14:40:20] <mattybalaam> There are quite a lot of API changes 2.4 -> 3.0 and also 3.0 -> 3.1
988: [14:40:37] <mattybalaam> The short asnwer, no/
989: [14:40:53] <UndefinedOffset> daslicht they are only compatible with 2.4.x, they will not work correctly in 3.0 and maybe not at all in 3.1
990: [14:40:54] <daslicht> i just searched for multilingual module
991: [14:41:03] <daslicht> thanks
992: [14:41:27] <UndefinedOffset> try https://github.com/silverstripe/silverstripe-translatable it is compatible with 3.0 and the 3.1 beta
993: [14:41:39] <UndefinedOffset> though use the 1.0 tag for 3.0
994: [14:42:10] <mattybalaam> There is also this I have just found: http://www.kreationsbyran.se/blogg/multilingual-module-2-0-for-silverstripe-cms-3-0/
995: [14:42:36] * osterlaus has left #silverstripe
996: [14:43:36] <daslicht> yeh i saw the latter
997: [14:44:27] <daslicht> but the price tag makes it not interesting for me , since I just get sterated with ss and still evalute it if it fits my needs
998: [14:44:57] <daslicht> is theerr already a ecommerce module which lets you sell digital goods ?
999: [14:45:57] <daslicht> now reading : http://doc.silverstripe.org/framework/en/topics/module-development
1000: [14:55:09] <kinglozzer> chillu: The issue you closed - PR hasn't been merged?
1001: [14:55:20] <chillu> url?
1002: [14:55:45] <kinglozzer> PR: https://github.com/silverstripe/silverstripe-framework/pull/1965, issue: https://github.com/silverstripe/silverstripe-framework/issues/1958
1003: [15:00:14] * plopinou has joined #silverstripe
1004: [15:00:20] <plopinou> hi guys
1005: [15:01:17] <plopinou> i have a little question for you regarding include in template
1006: [15:01:55] * mattybalaam quit (Ping timeout: 250 seconds)
1007: [15:02:27] * Nivery has joined #silverstripe
1008: [15:03:44] <plopinou> I wanna include a string which is in a $variable, can i do such thing in a template ? I found some docs on google but nothing answered my question
1009: [15:04:29] <plopinou> is my code : <h1>$form.title</h1>
1010: [15:04:29] <plopinou> <% include $form.name %>
1011: [15:05:06] <plopinou> and when i launch the page i see : <%include MyForm %>
1012: [15:05:28] <plopinou> and $form.name = MyForm of course :)
1013: [15:07:09] <plopinou> why the include isnt executed ?
1014: [15:10:43] <plopinou> Any help will be really appreciated, i really need to do this :p
1015: [15:21:01] * lerni quit (Remote host closed the connection)
1016: [15:22:10] * mattybalaam has joined #silverstripe
1017: [15:23:16] <daslicht> is there somewhere a tutorial how to create a blog with comments etc ?
1018: [15:24:24] <daslicht> ha : http://www.tmdhosting.com/tutorials/silverstripe/add-blog-in-silverstripe.html
1019: [15:24:26] <daslicht> heh
1020: [15:25:04] <daslicht> mmm: http://ss2doc-v2.ernie.silverstripe.com/old/modules:blog
1021: [15:25:08] <daslicht> broken link :/
1022: [15:25:24] * lerni has joined #silverstripe
1023: [15:27:14] <daslicht> wherer do i find a documentation for this module : http://www.silverstripe.org/blog-module
1024: [15:27:15] <daslicht> ?
1025: [15:27:23] <daslicht> eg. how to set up
1026: [15:27:44] <daslicht> btw the download link for the module is broken either
1027: [15:27:57] <kinglozzer> daslicht: https://github.com/silverstripe/silverstripe-blog
1028: [15:28:08] <daslicht> i saw that but therer is no documentation ?
1029: [15:28:20] <daslicht> or what is the best way to get started
1030: [15:28:21] <daslicht> ?
1031: [15:28:31] <kinglozzer> daslicht: The documentation is on that main page!
1032: [15:29:12] <daslicht> hm
1033: [15:29:16] <daslicht> quite vague
1034: [15:29:31] <daslicht> do i just extract the folder in the root of my ss app?
1035: [15:30:11] <mattybalaam> Yes
1036: [15:30:21] <kinglozzer> daslicht: Yes. Create a folder called 'silverstripe-blog' in your root folder, put everything in there
1037: [15:30:34] <daslicht> ok i try it now
1038: [15:31:52] <daslicht> ok when i open my page now i get : http://paste.ie/view/00434051
1039: [15:32:29] <daslicht> aha ok
1040: [15:32:42] <daslicht> i renamed it back to silverstripe-blog-master
1041: [15:33:19] <daslicht> Server error
1042: [15:33:19] <daslicht> Sorry, there was a problem with handling your request.
1043: [15:33:52] <daslicht> hm if i now go to the backend i get : Fatal error: Access level to BlogEntry::$db must be public (as in class Page) in /Applications/MAMP/htdocs/silverstripe/silverstripe-blog-master/code/BlogEntry.php on line 219
1044: [15:33:53] <kinglozzer> daslicht: Put your site in dev mode so you can see the error message
1045: [15:34:09] <daslicht> ok i google how to
1046: [15:34:33] <kinglozzer> daslicht: You downloaded the wrong version, I'm guessing you're using SilverStripe 3.0? If so, use this version: https://github.com/silverstripe/silverstripe-blog/tree/0.6
1047: [15:34:44] <daslicht> ahh
1048: [15:35:06] * plopinou quit ()
1049: [15:35:14] <kinglozzer> The 'master' branch is being built for 3.1
1050: [15:35:45] <daslicht> ok
1051: [15:35:51] <daslicht> Warning: require_once(/Applications/MAMP/htdocs/silverstripe/silverstripe-blog-master/_config.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/silverstripe/framework/core/manifest/ClassLoader.php on line 57
1052: [15:35:51] <daslicht> Fatal error: require_once(): Failed opening required '/Applications/MAMP/htdocs/silverstripe/silverstripe-blog-master/_config.php' (include_path='.:/Applications/MAMP/htdocs/silverstripe/framework:/Applications/MAMP/htdocs/silverstripe/framework/parsers:/Applications/MAMP/htdocs/silverstripe/framework/thirdparty:.:/Applications/MAMP/bin/php/php5.4.4/lib/php') in /Applications/MAMP/htdocs/silverstripe/framework/core/manifest/ClassLoade
1053: [15:35:51] <daslicht> r.php on line 57
1054: [15:36:13] <kinglozzer> daslicht: You need to do a /dev/build?flush=all
1055: [15:36:18] <daslicht> hm thats strange it still looking in teh master dir
1056: [15:36:23] <daslicht> aye
1057: [15:36:38] <kinglozzer> It's looking in there because it caches the locations of all the files
1058: [15:36:55] <daslicht> ok cool
1059: [15:36:59] <daslicht> now it looks better
1060: [15:37:02] <daslicht> thank you very much !
1061: [15:37:08] <kinglozzer> No problem
1062: [15:37:57] <daslicht> lovely
1063: [15:38:16] <daslicht> : SilverStripe blog module successfully installed
1064: [15:38:17] <daslicht> :D
1065: [15:40:03] <daslicht> should there already be a posibility to leave comments ? or do i have to implement it myself ?
1066: [15:41:57] * travis-ci has joined #silverstripe
1067: [15:41:58] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#33 (3.1 - 9bda0b7 : Ingo Schommer): The build is still failing.
1068: [15:41:58] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/5ec4f3146f55...9bda0b7c5404
1069: [15:41:58] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7361541
1070: [15:41:58] * travis-ci has left #silverstripe
1071: [15:44:19] <mattybalaam> I think comments have been spun out into a module https://github.com/silverstripe/silverstripe-comments
1072: [15:44:50] <daslicht> i dont even see the "post new entry" form
1073: [15:44:51] <daslicht> or link
1074: [15:44:53] <daslicht> heh
1075: [15:45:27] <daslicht> https://github.com/silverstripe/silverstripe-blog/tree/0.6#simple-form-for-adding-a-post
1076: [15:45:33] <daslicht> \sounds good but how to use ?!
1077: [15:45:47] <daslicht> There is a blog management widget, that includes a link "Post new blog entry",
1078: [15:46:19] <mattybalaam> Out of the box, the blog module works with each post as a page. So just go to site tree and add Blog Entry under a Blog Holder
1079: [15:50:01] <daslicht> ok fine but using it like this wouldnt make the blogbindle any usefull non ?
1080: [15:50:14] <daslicht> I could do the same by creating just pages
1081: [15:50:15] <daslicht> :)
1082: [15:50:37] <daslicht> how to learn the blog bundle more into depth ? are therer any resources I am missing ?
1083: [15:51:41] <daslicht> i have a look on teh comments module now
1084: [15:52:22] <kinglozzer> daslicht: It's more useful than standard pages as it includes additional fields, post tags, post summary, rss feed etc. I don't know if there are any more docs, it assumes you already have a basic knowledge of development with SilverStripe
1085: [15:52:58] <daslicht> I started yesterday bu completing the tutorials online
1086: [15:53:12] <daslicht> but I have experience in coding
1087: [15:53:32] <daslicht> last project I was working on was symfony 2 based
1088: [15:54:02] * catcher has joined #silverstripe
1089: [15:55:11] <daslicht> i see the comments module is for 3.1
1090: [15:55:45] <mattybalaam> There is a branch for 3.0.
1091: [15:56:09] <daslicht> should i better start with 3.1 ?
1092: [15:57:41] * Shrike_Finland has joined #silverstripe
1093: [15:58:41] <mattybalaam> 3.0 is stable, 3.1 is RC
1094: [15:58:47] <daslicht> i installed now the 3.0 comments version
1095: [15:59:18] <daslicht> ~ /dev/build?flush=all did not do the trick this time
1096: [15:59:37] <daslicht> Server error
1097: [15:59:38] <daslicht> Sorry, there was a problem with handling your request.
1098: [16:00:10] <kinglozzer> daslicht: In your mysite/_config.php, add Director::set_environment_type('dev');
1099: [16:00:18] <kinglozzer> You should then see the error message
1100: [16:01:31] <daslicht> [User Error] Couldn't run query: SELECT DISTINCT "SiteTree_Live"
1101: [16:02:00] <daslicht> aha
1102: [16:02:09] <daslicht> ok dev/built alone worked
1103: [16:05:24] * kinglozzer quit (Quit: Home time)
1104: [16:05:52] <daslicht> cool that works
1105: [16:08:34] <ss23> Isn't it annoying? You can't close your mouth because your teeth are so big they get in the way.
1106: [16:10:39] <daslicht> haha
1107: [16:11:41] <daslicht> its called "communication"
1108: [16:11:50] <daslicht> never mind
1109: [16:11:58] <daslicht> ss seams not to be the correct thing for me
1110: [16:27:11] * lerni quit (Remote host closed the connection)
1111: [16:30:27] * joelpittet has joined #silverstripe
1112: [16:40:16] <catcher> Having an issue with my 2.4 CMS appearing to create 2 pages in the sitetree, 1 of which disappears on refresh. Anyone else experience this?
1113: [16:48:48] * Shrike_Finland quit (Quit: Leaving.)
1114: [16:49:40] * Nivery quit (Quit: Nivery)
1115: [16:54:24] * joelpittet quit (Remote host closed the connection)
1116: [16:57:11] * mattybalaam quit (Ping timeout: 250 seconds)
1117: [16:58:30] * oak has joined #silverstripe
1118: [17:00:33] * Colin[pi] has joined #silverstripe
1119: [17:04:27] * joelpittet has joined #silverstripe
1120: [17:05:06] * Shrike_Finland has joined #silverstripe
1121: [17:19:23] * joelpittet quit (Remote host closed the connection)
1122: [17:20:12] * willmorgan quit (Ping timeout: 245 seconds)
1123: [17:24:25] * Colin[pi] quit (Ping timeout: 276 seconds)
1124: [17:37:13] * joelpittet has joined #silverstripe
1125: [17:37:38] * lerni has joined #silverstripe
1126: [17:40:03] * MattyBalaam has joined #silverstripe
1127: [17:41:49] * oak quit (Ping timeout: 250 seconds)
1128: [17:42:01] * lerni quit (Ping timeout: 248 seconds)
1129: [17:42:09] <FrozenFire> Any clue how additional action buttons are added to the last column of a GridField?
1130: [17:42:19] <FrozenFire> I thought it was GridField_ActionProvider, but I'm not so sure now.
1131: [17:46:38] * Nivery has joined #silverstripe
1132: [17:57:11] * joelpittet quit (Remote host closed the connection)
1133: [18:01:15] * willmorgan has joined #silverstripe
1134: [18:05:29] * willmorgan quit (Ping timeout: 248 seconds)
1135: [18:10:40] * willmorgan has joined #silverstripe
1136: [18:12:53] <FrozenFire> So it was a hacky GridField_ColumnProvider
1137: [18:13:06] <FrozenFire> Now to figure out how to make the CMS not intercept link clicks
1138: [18:13:16] * joelpittet has joined #silverstripe
1139: [18:14:57] <FrozenFire> Aha, just had to not specify it as an action class
1140: [18:17:52] * lerni has joined #silverstripe
1141: [18:18:36] * ocm quit (Quit: HydraIRC -> http://www.hydrairc.com <-)
1142: [18:20:25] * zfmf1 has left #silverstripe
1143: [18:23:32] * DesignerX quit (Ping timeout: 245 seconds)
1144: [18:39:33] * lerni quit (Remote host closed the connection)
1145: [18:39:56] * UndefinedOffset quit (Quit: Leaving.)
1146: [18:40:03] * lerni has joined #silverstripe
1147: [18:43:46] * gumble has joined #silverstripe
1148: [18:44:17] <gumble> is it right that silverstripe needs geoiplookup to be installed? how do I find webspace providers having it installed?
1149: [18:44:38] * lerni quit (Ping timeout: 264 seconds)
1150: [18:48:51] * gumble quit (Remote host closed the connection)
1151: [18:50:19] * gelignite has joined #silverstripe
1152: [18:57:04] * dd has joined #silverstripe
1153: [18:57:05] <dd> hello
1154: [18:57:31] <dd> is there a way to limit the number of pagination links shown? right now i am paginating 500 records 10 at a time and there are 50 links...
1155: [18:57:49] <willmorgan> dd: DataObjectSet->setPageLimits
1156: [18:59:55] <dd> willmorgan: that's deprecated in 3.0
1157: [19:00:03] <willmorgan> oh, you're using 3.0
1158: [19:02:18] <dd> got it, PaginationSummary instead of Pages. need to start reading the docs better haha
1159: [19:02:25] * dd quit (Quit: Page closed)
1160: [19:03:02] * UndefinedOffset has joined #silverstripe
1161: [19:29:37] * joelpittet quit (Remote host closed the connection)
1162: [19:33:15] * lerni has joined #silverstripe
1163: [19:37:48] * gumble has joined #silverstripe
1164: [19:38:26] <gumble> hey, anyone knows how I can find out which providers have geoiplookup installed for ecommerce?
1165: [19:38:42] * SightUnseen has joined #silverstripe
1166: [19:39:37] * SightUnseen has left #silverstripe
1167: [19:58:28] * ARNHOE has joined #silverstripe
1168: [20:01:37] * robert_ has left #silverstripe
1169: [20:04:15] <simon_w> gumble, ask them
1170: [20:07:36] * sekjal has joined #silverstripe
1171: [20:13:13] * UndefinedOffset quit (Quit: Leaving.)
1172: [20:13:18] * sekjal quit (Quit: Leaving)
1173: [20:15:25] * UndefinedOffset has joined #silverstripe
1174: [20:16:25] * UndefinedOffset quit (Client Quit)
1175: [20:34:20] * DigNZ has joined #silverstripe
1176: [20:34:21] * DigNZ quit (Remote host closed the connection)
1177: [20:34:35] * DigNZ has joined #silverstripe
1178: [20:36:25] * nickmolhoek has joined #silverstripe
1179: [20:36:26] * nickmolhoek quit (Remote host closed the connection)
1180: [20:36:40] * nickmolhoek has joined #silverstripe
1181: [20:37:29] <Pyromanik> willmorgan: PaginatedList::create($dataList)->setPageLimits()
1182: [20:37:51] <Pyromanik> 06:44 < gumble> is it right that silverstripe needs geoiplookup to be installed?
1183: [20:37:54] <Pyromanik> not that I'm aware of.
1184: [20:39:00] <simon_w> Pyromanik, willmorgan, pass in the request object too
1185: [20:39:33] <gumble> Pyromanik, yes I misstyped I meant the ecommerce module
1186: [20:45:24] * Nivery quit (Quit: Nivery)
1187: [20:48:01] * ARNHOE quit (Remote host closed the connection)
1188: [20:54:45] * zippy__ has joined #silverstripe
1189: [20:55:12] * simon_w quit (Ping timeout: 245 seconds)
1190: [20:55:26] * simon_w has joined #silverstripe
1191: [21:00:17] * MrJeremy has joined #silverstripe
1192: [21:04:35] <FrozenFire> gumble, If you're doing ecommerce, presumably it's not shared hosting.
1193: [21:04:38] <FrozenFire> RIGHT
1194: [21:04:50] <FrozenFire> So you can install geoiplookup yourself.
1195: [21:05:53] * nikrolls has joined #silverstripe
1196: [21:08:09] <zippy__> Morning
1197: [21:08:32] * gumble quit (Ping timeout: 245 seconds)
1198: [21:09:14] <Pyromanik> morning zippy__
1199: [21:09:35] <zippy__> How goes it
1200: [21:10:03] <Pyromanik> Skipped breakfast for ham cheese and tomato crossont at the cafe
1201: [21:10:07] <Pyromanik> went to cafe
1202: [21:10:10] <Pyromanik> not crossonts
1203: [21:10:12] <Pyromanik> no*
1204: [21:10:19] <Pyromanik> had chiabatta
1205: [21:10:30] <Pyromanik> was ham and cheese (no tomato) for $7
1206: [21:10:31] <zippy__> least you still would of got the coffee, thats all you need
1207: [21:10:45] <Pyromanik> so I'm hungry and I don't drink coffee
1208: [21:11:46] <Pyromanik> and acrobat wants me to restart the entire f'n computer because it's retard.
1209: [21:11:52] * willmorgan quit (Quit: Leaving.)
1210: [21:12:02] <FrozenFire> So don't use it
1211: [21:12:28] <FrozenFire> I read an interesting article once on why Adobe Acrobat is as big as it is.
1212: [21:12:39] <zippy__> Cos it's crapware/
1213: [21:13:13] <FrozenFire> It seems pretty obvious, but the reason is that every feature that's possible to produce in the PDF editor needs to be present in the PDF viewer.
1214: [21:13:34] <FrozenFire> Which ends up including a lot of shit that 99% of people will never ever use.
1215: [21:13:42] <Pyromanik> yep
1216: [21:13:44] <Pyromanik> like forms
1217: [21:13:56] <Pyromanik> forms in your pdf that require submittal via email
1218: [21:13:56] <FrozenFire> I've used PDF forms
1219: [21:14:01] <Pyromanik> so have we
1220: [21:14:10] <Pyromanik> doesn't mean I have to liek them
1221: [21:14:14] <Pyromanik> and scripting your pdf
1222: [21:14:21] <Pyromanik> lied wtf
1223: [21:14:25] <FrozenFire> In fact, I get pissy at government agencies who don't put forms in their PDFs
1224: [21:14:25] <Pyromanik> liek*
1225: [21:14:33] <Pyromanik> lol
1226: [21:14:51] <FrozenFire> I want to be able to type out the form and then print it
1227: [21:14:58] <FrozenFire> Not have to fuck with it in Okular or something
1228: [21:15:06] <FrozenFire> Or worse, print it out and put pen to paper.
1229: [21:15:13] <FrozenFire> And they too do not want the latter to happen.
1230: [21:15:52] * Pyromanik just shrugged and loaded the pdf in firefox now that it supports them
1231: [21:15:54] <FrozenFire> Since the quality of my writing borders on being ample for diagnosis of Parkinson's.
1232: [21:16:30] <Pyromanik> I was once told that messy handwriting is a symptom of genius
1233: [21:16:56] <simon_w> It's a sympton of laziness
1234: [21:16:58] <Pyromanik> but then 15 years later I found out that the woman wasn't doing an IQ test on me, she was testing me for ADD :<
1235: [21:18:40] * gelignite quit (Quit: http://bit.ly/nkczDT)
1236: [21:34:36] * travis-ci has joined #silverstripe
1237: [21:34:36] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#35 (3.1 - e2553fa : Sean Harvey): The build was fixed.
1238: [21:34:36] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/9bda0b7c5404...e2553fa86434
1239: [21:34:36] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7372151
1240: [21:34:36] * travis-ci has left #silverstripe
1241: [21:46:27] * daslicht quit (Remote host closed the connection)
1242: [22:09:45] * Jedateach has joined #silverstripe
1243: [22:11:56] <Jedateach> Anyone encountered an issue where they try to log in to CMS, and are redirected back to login screen, with no message / errors? (ss 2.4)
1244: [22:12:46] <Jedateach> - this is not a new install. just started hapenning today for my client.
1245: [22:14:07] <spronk> Pyromanik: when you flying up to wlgn?
1246: [22:16:15] <catcher> Jedateach, I'd check for changes to .htaccess or some _config.php redirection happening.
1247: [22:16:32] <catcher> Jedateach, if not, it could be a server issue with sessions.
1248: [22:16:56] <Jedateach> catcher: my gut says session issues. Running on cPanel btw.
1249: [22:17:30] <catcher> Jedateach, I see some people pointing out missing write access to php.ini's session.save_path
1250: [22:18:21] <Jedateach> yep, I'll take a look. thakns
1251: [22:19:21] <simon_w> [Wed May 22 10:17:40 2013] [error] [client 142.0.136.29] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezo
1252: [22:19:21] <simon_w> ne to select your timezone. in /var/www/logs/index.php on line 70, referer: http://logs.simon.geek.nz/index.php
1253: [22:19:21] <simon_w> Hello 3 GB of error logs!
1254: [22:23:23] <catcher> simon_w, solution: buy more harddrives
1255: [22:23:43] <simon_w> eh, rm /var/log/apache2/error.log*
1256: [22:24:34] <MattSS> logrotate
1257: [22:24:58] <simon_w> Doesn't help when it's the one file :p
1258: [22:25:05] <catcher> nobody likes jokes around here.
1259: [22:25:47] <MattSS> :p
1260: [22:26:01] <MattSS> at least *setup* logrotate
1261: [22:26:11] <MattSS> you should never rm log files
1262: [22:26:16] <MattSS> bad security practice!
1263: [22:26:21] <simon_w> It is setup :p
1264: [22:26:51] <simon_w> When I have 3 GB in an error log telling me the exact same thing and I'm also out of disk space, I'm getting rid of it
1265: [22:27:32] <MattSS> oh, your* above implied you were deleting all logs :p
1266: [22:27:44] <Pyromanik> spronk: yup
1267: [22:27:48] <simon_w> All the error.logs, yes :p
1268: [22:28:00] <simon_w> So, error.log (1 GB) and error.log.1 (2 GB)
1269: [22:28:22] <Pyromanik> maybe just fix the error?
1270: [22:28:34] <simon_w> That doesn't free up the space
1271: [22:28:35] <catcher> more harddrives.
1272: [22:28:55] <simon_w> Ooh, stick ss-log behind a paywall to fund it!
1273: [22:29:05] <Pyromanik> a what
1274: [22:29:10] <simon_w> paywall
1275: [22:29:13] <Pyromanik> a what
1276: [22:29:15] <simon_w> So you have to pay to get to the logs
1277: [22:29:20] <Pyromanik> oic
1278: [22:29:23] <Pyromanik> or
1279: [22:29:24] <Pyromanik> not
1280: [22:29:26] <MattSS> $('#paywall').style.display = 'none';
1281: [22:29:32] <Pyromanik> rofl
1282: [22:29:34] <MattSS> fixed it
1283: [22:29:41] <Pyromanik> well no
1284: [22:29:57] <Pyromanik> you're mixing your jquery with your vanillas
1285: [22:30:06] <MattSS> that's how "hackers" broke through the Time and WSJ paywalls -_-
1286: [22:30:22] <Pyromanik> MattSS: well yeah. murikan't.
1287: [22:31:27] <simon_w> Oh, MattSS, ss-log is finally about to become not-Java powered
1288: [22:31:33] <simon_w> And actually database backed
1289: [22:31:38] <Pyromanik> it fucks me off their sites load up a dickload of ads, then make a separate ajax request to get the actual page content
1290: [22:31:38] <simon_w> And fancy stuff like that
1291: [22:31:50] <Pyromanik> or the content is hidden then shown and styled by js rather than css
1292: [22:32:02] <Pyromanik> to make people turn js on so they can serve more ads
1293: [22:32:09] <Pyromanik> kotaku used to be particularly bad for it
1294: [22:32:25] <Pyromanik> although their articles actually load if you've got JS off now.
1295: [22:32:36] <simon_w> I should add the CIA-bot triggers to GoTest!
1296: [22:34:03] <MattSS> simon_w: wow
1297: [22:34:06] <MattSS> non-Java eh
1298: [22:34:09] <MattSS> bet it won't scale
1299: [22:34:15] <MattSS> :D
1300: [22:34:38] <simon_w> Eh, then I just stick more subroutines on the processing channel :p
1301: [22:34:46] <simon_w> Go is great :)
1302: [22:36:41] <spronk> Pyromanik: not going up this avo are you?
1303: [22:38:26] <MattSS> Hi Traci,
1304: [22:38:26] <MattSS> The above comment is part of PUT-264 (in case we need to refer to this ticket in the future and can't figure out where that came from!)
1305: [22:38:59] <MattSS> bah
1306: [22:39:03] * joelpittet has joined #silverstripe
1307: [22:39:25] <MattSS> wrong window, clearly :p
1308: [22:40:08] <spronk> :D
1309: [22:40:39] <irogue> oh god
1310: [22:42:18] * MattyBalaam quit (Quit: Page closed)
1311: [22:42:23] <irogue> i arrive back to aucks at 11pm on sunday
1312: [22:42:31] <irogue> now i've just discovered we have stocktake on monday morning :(
1313: [22:47:05] <simon_w> irogue, just send me lots of free stuff
1314: [22:48:44] * joelpittet quit (Remote host closed the connection)
1315: [22:51:01] * pex has joined #silverstripe
1316: [22:53:29] * nickmolhoek quit (Ping timeout: 248 seconds)
1317: [22:54:09] * nickmolhoek has joined #silverstripe
1318: [22:54:10] * nickmolhoek quit (Remote host closed the connection)
1319: [22:54:54] * nickmolhoek has joined #silverstripe
1320: [23:08:44] <unsignedint> Hi, is there a way to make DataObject::get() get all subclasses too?
1321: [23:10:17] <unsignedint> Basically I have created a 'Tile' dataobject (which is a basic tile) and I have created 'TextRotaterTile' and 'ImageRotaterTile' subclasses. I also have a TilePage page which has_many Tiles. What I want to be able to do is use GridField to list tiles of any subclass on the page
1322: [23:12:12] <unsignedint> Actually, nevermind, the has_many relation picks them all up anyway
1323: [23:12:41] * pex quit (Ping timeout: 248 seconds)
1324: [23:17:47] <simon_w> unsignedint, so does a ::get()
1325: [23:17:58] <unsignedint> yep I just realised
1326: [23:18:08] <unsignedint> i was doing something more retarded than usual
1327: [23:18:16] <unsignedint> which is why I had the issue
1328: [23:19:20] * catcher quit (Quit: Leaving)
1329: [23:21:46] * joelpittet has joined #silverstripe
1330: [23:25:17] <unsignedint> simon_w: one thing I noticed, when you try and change the ClassName of a dataobject in the admin interface, it warns you and tells you to save it first. Very cool, wasnt expecting that!
1331: [23:25:32] <simon_w> It's been doing that since at least 2.2 :p
1332: [23:25:41] <unsignedint> I never used that feature till now haha
1333: [23:31:29] * joelpittet quit (Remote host closed the connection)
1334: [23:31:41] <unsignedint> ok whats the best way to add an arbitrary number of images to a DataObject? I have a has_many Images of type Image. If I wrap them in a GridField and set its config to GridFieldConfig_RecordEditor it tries and edits the Image objects directly. How can I wrap them in an UploadField?
1335: [23:32:59] <simon_w> many_many to Image, and just use an UploadField
1336: [23:39:16] * Colin[pi] has joined #silverstripe
1337: [23:39:39] * simon_w quit (Ping timeout: 264 seconds)
1338: [23:40:59] * simon_w has joined #silverstripe
1339: [23:43:30] <unsignedint> hmm its giving 400 bad request
1340: [23:47:20] <Colin[pi]> good morning all
1341: [23:48:51] * nikrolls quit (Ping timeout: 276 seconds)
1342: [23:48:53] * MrJeremy quit (Ping timeout: 252 seconds)

Logging sponsored by you? Get in touch!

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