#silverstripe IRC Log

IRC log for 21 March 2014

All timestamps are in UTC.

1: [00:04:30] <antmas> Colin[pi]: heh, been done before with older sharepoint and *shudder* bing maps http://www.youtube.com/watch?v=nzqP1u_JqUI
2: [00:04:41] <Colin[pi]> of course they used bing
3: [00:04:47] <antmas> lol
4: [00:09:31] * azureknight quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
5: [00:10:03] <Ryan-Toast> Shouldn't have a had a sunday, now I feel ill.
6: [00:10:15] <Ryan-Toast> Sundae
7: [00:10:52] <Stomach> I have a V for the first time in 3 weeks
8: [00:10:56] <Stomach> I feel weird
9: [00:11:15] <Stomach> but thats normal. weirder I suppose.
10: [00:18:43] <Ryan-Toast> Stomach: I'm not allowed to drink V anymore, due funnily enough to Stomach issues.
11: [00:19:20] <Stomach> yeah I was going mental on it again for a period there - im on a no coffee or v or sugar at work diet lol
12: [00:19:49] * muskie9_ quit (Remote host closed the connection)
13: [00:19:57] <ss23> Hey Stomach... there are... 20 letters in the alphabet?
14: [00:20:15] <Stomach> 26 ?
15: [00:20:22] <Ryan-Toast> 29
16: [00:20:26] <ss23> oh that's right!
17: [00:20:29] <ss23> I forgot, U R A Q T
18: [00:20:30] <ss23> <3
19: [00:20:43] <simon_w> ss23, you're still missing one
20: [00:20:50] <Ryan-Toast> simon_w: lol.
21: [00:20:51] <ss23> simon_w: Don't worry, he'll get the D later.
22: [00:20:56] <Ryan-Toast> OOOOH SNAP
23: [00:21:11] <Stomach> well, that was weird.
24: [00:21:12] <antmas> lol ^
25: [00:21:12] <ss23> hahaha, is my favorite "pick up" line ever
26: [00:21:21] <Stomach> why am I being picked up?
27: [00:21:31] <Stomach> I didn't do it.
28: [00:21:31] <ss23> simon_w: Sorry, you were just the last person to talk and I needed a target
29: [00:21:32] <simon_w> Because you're like 5kg?
30: [00:21:35] <ss23> :D
31: [00:21:39] <ss23> wait what, you're like 5kg?!
32: [00:21:48] <simon_w> How else would you be able to pick him up?
33: [00:21:52] <ss23> XD
34: [00:22:01] <ss23> I have muscles! Weak ones, but muscles nonetheless
35: [00:25:17] <Ryan-Toast> ss23: http://i.imgur.com/JlRKM.gif
36: [00:25:46] <ss23> ^ me IRL
37: [00:26:21] <Colin[pi]> is he saying "rape me" in that gif?
38: [00:26:39] <ss23> hahahahahahahahahahahahahah
39: [00:26:49] <Ryan-Toast> Colin[pi]: http://i.imgur.com/ETW67.gif
40: [00:27:05] <Ryan-Toast> Alt: http://i.imgur.com/pGOmE.gif
41: [00:27:09] <Colin[pi]> I'm no lip reader.. but.. ;P
42: [00:27:43] <Ryan-Toast> I'm no lip reader, but: http://i.imgur.com/rrPlu.jpg
43: [00:28:21] <spronk> http://static1.fjcdn.com/comments/Do+you+even+lift+_ea2d843ef482b81d48b4dab659479a70.jpg
44: [00:29:29] <Ryan-Toast> spronk: http://i.imgur.com/3gdfK.gif
45: [00:30:58] <spronk> HI FAIIVEEE
46: [00:31:01] <Colin[pi]> dat seamless loop
47: [00:32:37] <Ryan-Toast> Ciolin[pi]: http://reddit.com/r/perfectloops
48: [00:36:10] <Colin[pi]> http://i.imgur.com/UhH2D37.gif
49: [00:37:48] * k_fish_ quit (Quit: Leaving)
50: [00:42:53] * Bollig|DesignCty has joined #silverstripe
51: [00:42:53] * UncleCheese has joined #silverstripe
52: [00:43:33] * zippy____ has joined #silverstripe
53: [00:46:17] * bubaphex has joined #silverstripe
54: [00:56:13] * simon_w quit (Quit: This computer has gone to sleep)
55: [00:57:09] * bubaphex quit (Ping timeout: 245 seconds)
56: [00:58:13] * OxFF1 has joined #silverstripe
57: [01:03:56] * jparks has joined #silverstripe
58: [01:07:34] * joelpittet quit ()
59: [01:08:49] * antmas quit (Quit: Page closed)
60: [01:11:35] <Ryan-Toast> Boss came back with his new car, told him he looked like he was off to drop the girls to soccer practice. Don't think he found it funny.
61: [01:12:44] <zippy____> heh
62: [01:13:03] <zippy____> I thought AllChildren got all pages (unpusliehd/published) and Children just go the published ones?
63: [01:13:10] <Ryan-Toast> It does
64: [01:13:20] <zippy____> but, Children gives me nudda and AllChildren gives me the goods, even through the pages are published
65: [01:13:24] <Ryan-Toast> Published, and "Show in menu" = true
66: [01:13:36] <Ryan-Toast> check the show in menu in the settings
67: [01:13:45] <Ryan-Toast> of the pages
68: [01:13:57] <zippy____> yeap thats fine too
69: [01:14:17] <Ryan-Toast> GHOSTS THEN
70: [01:14:31] <zippy____> it is set to only show to logged in people (but I am logged in)
71: [01:14:51] <Ryan-Toast> How can pages be real, if our eyes aren't real?
72: [01:16:01] <zippy____> hmmm, and on that note, is it possible to not show a page in the menu unless not logged in
73: [01:16:16] <zippy____> like, you can set to only logged in, and if your logged in int shows, but what if you want it so not logged in
74: [01:16:32] <Ryan-Toast> you may have to write that navigation loop custom
75: [01:16:44] <zippy____> nut sack
76: [01:17:23] * UncleCheese_ has joined #silverstripe
77: [01:20:34] * muskie9 has joined #silverstripe
78: [01:21:01] * UncleCheese_ quit (Client Quit)
79: [01:24:38] * muskie9 quit (Ping timeout: 240 seconds)
80: [01:25:25] <jordanmk> hey guys
81: [01:26:46] <zippy____> jordanmk: hi
82: [01:26:53] <Ryan-Toast> hmm, check this way of vertically aligning text: http://jsfiddle.net/556TR/
83: [01:27:02] <jordanmk> anyone know how to create a new Image object from a URL (in the assets folder)?
84: [01:28:21] <Ryan-Toast> jordanmk: http://stackoverflow.com/questions/10233577/create-image-from-url-any-file-type
85: [01:28:24] <zippy____> jordanmk: Well… you could probably do $image = Image::get()->filter('Filename', $filename)->first()
86: [01:28:39] <jordanmk> i have an image in the assets folder which I need to crop, so i'm looking for a way to create an Image object based on knowing the URL to the image, then doing Image()->CroppedImage(150, 150)->getURL() to output the URL of the new cropped image
87: [01:30:17] <zippy____> Ryan-Toast: Thats some voodoo stuff eh (v alig text)
88: [01:30:27] <zippy____> width:1px
89: [01:30:36] <zippy____> css always makes me feel so dirty
90: [01:30:49] <zippy____> like it hasn't been made to properly do what it needs to do
91: [01:30:52] <Ryan-Toast> zippy____: :P
92: [01:31:01] <Ryan-Toast> Dem tricks, son.
93: [01:31:17] * muskie9 has joined #silverstripe
94: [01:31:41] <jordanmk> zippy
95: [01:31:58] <jordanmk> i tried the following:
96: [01:32:01] <jordanmk> 'URL' => Image::get()->filter('Filename', SSViewer::get_theme_folder() . '/images/faces/person2.jpg')->first()->->CroppedImage(150, 150)->getURL()
97: [01:32:16] <jordanmk> sorry, this:
98: [01:32:19] <jordanmk> 'URL' => Image::get()->filter('Filename', SSViewer::get_theme_folder() . '/images/faces/person2.jpg')->first()->CroppedImage(150, 150)->getURL()
99: [01:32:43] <jordanmk> but i'm getting this error: "Fatal error: Call to a member function CroppedImage()"
100: [01:32:44] <zippy____> jordanmk: right so when you said in the assets folder, you didn't mean the /assets/ folder did you
101: [01:32:57] <zippy____> jordanmk: it's a theme asset
102: [01:33:06] <jordanmk> sorry yes, my mistake
103: [01:33:28] <jordanmk> i was meaning the /assets/ folder but it's actually in the theme folder, not assets
104: [01:33:55] <zippy____> I would probaly attach it as a field on the page, or site config
105: [01:34:15] <zippy____> ie siteconfig, default person face (or blog, whatever)
106: [01:34:54] <jordanmk> i will need to do it for multiple things so setting it as a site config or field on the page isn't really a great option
107: [01:35:18] <jordanmk> e.g. i might need to do it 20 times, with the image paths changing constantly
108: [01:35:24] <jordanmk> it's not a default image
109: [01:35:50] <Stomach> where do I put a template for it to get picked up as a formfield? I have "class PopupPointField extends FormField" and a file called PopupPointField.ss in templates/forms/. I've also tried setting "protected $template = 'PopupPointField'; and nothing happens
110: [01:36:13] <zippy____> Stomach: you have flushed right, any error message? how are you call it
111: [01:36:21] <Stomach> yeah ive done all that
112: [01:36:26] <Stomach> no errors, just no template
113: [01:36:35] <Ryan-Toast> Whomever make the VW site did a really good job.
114: [01:36:41] <Stomach> I'm flushing every request at this stage lol
115: [01:38:08] <zippy____> PopupPointField::create('Foo')->setTemplate('PopupPointField') ?
116: [01:38:23] <Stomach> I don't want to have to do that
117: [01:38:37] <Stomach> it should be automagic, otherwise its broken :P
118: [01:40:04] <zippy____> should, but test to see if it works
119: [01:40:13] <Stomach> if I use
120: [01:40:13] <Stomach> return $this->customise($properties)->renderWith('PopupPointField');
121: [01:40:27] <Stomach> in my Field() return I get "cannot find template" error
122: [01:40:33] <Stomach> so where do I put my template? :D
123: [01:41:46] * jellygnite has joined #silverstripe
124: [01:42:30] <zippy____> Stomach: typo prbaly
125: [01:42:41] <Stomach> [User Warning] None of these templates can be found in theme 'base': PopupPointField.ss
126: [01:43:05] <Stomach> the name is PopupPointField.ss, have checked repeatedly :\
127: [01:43:10] <an_Eskimo> Flush?
128: [01:43:12] <jellygnite> hi, has anyone noticed in silverstripe 3.1.3-rc2 when uploading to the assets folder the file gets saved to the root folder? works fine if uploading to a subfolder.
129: [01:43:13] <an_Eskimo> =D
130: [01:43:30] <Stomach> been flushing for half an hour, trying to move template to other folders etc
131: [01:43:34] <Stomach> dunno how to debug it :\
132: [01:52:56] <jellygnite> I just did a clean install and can confirm this is a bug. I noticed an image in the root folder called chart.jpg so it looks like it possibly happened in development as well.
133: [01:54:16] <Colin[pi]> yeah I noticed that chart jpeg in the root yesty
134: [01:54:24] <Colin[pi]> ss23: FIX IT
135: [01:58:01] <ss23> I told you how to fix it!
136: [01:58:04] <ss23> Make me a ./dorelease script
137: [01:58:04] <ss23> ^.^
138: [01:58:18] <zippy____> Stomach: in the right theme folder? Are you even in the right folder / site?
139: [01:58:25] <zippy____> ss23: just make SS rolling release
140: [01:58:48] <Stomach> zippy____ - yeah, I've given up for now I'm just going to return the field as html from the field controller
141: [01:59:02] <Stomach> I'll work it out later
142: [02:01:16] <jellygnite> ss23: can you tell me how to fix it or point me in the right direction?
143: [02:03:55] <jordanmk> hey guys, if i have some properties defined in a page's model like so:
144: [02:03:56] <jordanmk> private static $db = array(
145: [02:03:57] <jordanmk> 'EmailSubject' => 'Varchar',
146: [02:03:57] <jordanmk> 'EmailMessage' => 'Text'
147: [02:03:57] <jordanmk> );
148: [02:04:09] <jordanmk> how can i use those properties in the same page's controller?
149: [02:04:23] <jordanmk> i've tried $this->EmailSubject
150: [02:04:30] <muskie9> $this->Data()->Property
151: [02:04:31] <jordanmk> but that's not returning anything
152: [02:05:16] <jordanmk> $this->Data()->EmailSubject isn't returning anything either
153: [02:06:06] <zippy____> jordanmk: but they show up populated in the CMS?
154: [02:07:14] <jellygnite> should they be private static
155: [02:07:32] <zippy____> ss 3.1.x? yes
156: [02:07:36] <jordanmk> nevermind, the values had somehow been reset in the CMS
157: [02:07:40] <jordanmk> that's working now, thanks!
158: [02:13:08] * Colin[pi] facepalms
159: [02:13:17] <Colin[pi]> how hard is it for people to follow basic instructions?
160: [02:13:53] <Colin[pi]> "here is the data format, the columns must be X, Y, Z"
161: [02:13:55] <Colin[pi]> nek minnit
162: [02:14:16] <Colin[pi]> "is this data ok? columns: BZZZZ, CHIKEN, LALALALA, OMG, WOW"
163: [02:14:52] <Colin[pi]> "how... are they in any way like the columns I asked you to put?"
164: [02:15:15] <muskie9> Colin[pi] importing?
165: [02:15:17] <Colin[pi]> yep
166: [02:15:28] <Colin[pi]> I gave them the exact spec, even a sample file
167: [02:15:33] <Colin[pi]> and they still get it wrong
168: [02:15:38] <muskie9> all the time
169: [02:15:48] <muskie9> building one now and dreading what comes back
170: [02:15:58] <Colin[pi]> like fuck sake, it's not rocket science
171: [02:16:23] <muskie9> got a little saying... you can lead a horse to water... but you can't fix stupid
172: [02:16:44] <Colin[pi]> lool
173: [02:16:49] <Colin[pi]> that saying is so fitting for my entire week
174: [02:17:49] <muskie9> might make a good shirt
175: [02:31:41] <jellygnite> OK. is it a case of the assets upload form not sending the folder'assets' or is $relativeFilePath getting cleared somehow. I am close.
176: [02:34:36] <ss23> 14:58:26 < zippy____> ss23: just make SS rolling release
177: [02:34:39] <ss23> composer update!
178: [02:34:42] <ss23> boom rolling release :D
179: [02:34:48] <zippy____> ss23: :)
180: [02:42:18] <Ryan-Toast> when you forget to change your dummy images before a demo: http://i.imgur.com/vjRQWzy.png
181: [02:46:06] * jellygnite quit (Quit: Page closed)
182: [02:47:50] <zippy____> right I think it's pub time
183: [02:53:47] <Ryan-Toast> been pub time for an hour
184: [02:54:49] * zippy____ quit (Ping timeout: 240 seconds)
185: [02:57:42] <ajmitch_> Ryan-Toast: this is why you use something nice & innocent like placekitten.com
186: [02:58:13] <Ryan-Toast> ajmitch_: I usually use plackitten, but I felt like some ladies.
187: [02:58:29] <Ryan-Toast> :P
188: [02:59:10] <Colin[pi]> "The image does not get saved with the CSV data." "No, but do you have the file names in the Image column?" "I can not save the image in CSV format."
189: [02:59:19] * Colin[pi] headbutts desk repeatedlyt
190: [03:00:17] <Colin[pi]> these people will make me an alcoholic
191: [03:01:45] * OxFF1 quit (Quit: Hasta la proxima)
192: [03:15:29] * muskie9 quit ()
193: [03:17:52] <Stomach> how can I get a relationship value before first save?
194: [03:22:56] <Stomach> there seems to be a 'lookup' something happening with JS which returns the right thing somehow, anyone know where to look?
195: [03:25:58] * an_Eskimo_ has joined #silverstripe
196: [03:27:43] * an_Eskimo quit (Ping timeout: 245 seconds)
197: [03:35:02] <terryapodaca> Ryan-Toast: what do you think: http://www.studiopress.com/responsive/
198: [03:35:13] <terryapodaca> http://ph.terryapodaca.com/
199: [03:39:29] <Ryan-Toast> which one am I looking at?
200: [03:39:54] <terryapodaca> go to the first one, then enter the second one
201: [03:40:12] <terryapodaca> remember...I asked for help on my responsive menu?
202: [03:40:17] * Tanger has joined #silverstripe
203: [03:40:18] <Ryan-Toast> I do :P
204: [03:40:23] <terryapodaca> and you gave me some tips
205: [03:41:11] <terryapodaca> thought I'd see what you thought
206: [03:41:22] <Ryan-Toast> It's still not working though? I see you're replacing the images with text after a certain size. But the layout doesn't scale properly based on the view, which can be observed with the borders being everywhere.
207: [03:41:53] <terryapodaca> ?
208: [03:42:09] <terryapodaca> could be a browser issue?
209: [03:42:19] <terryapodaca> I am using Chrome right now
210: [03:42:37] <Ryan-Toast> http://i.imgur.com/9zbjoqm.png
211: [03:43:28] <terryapodaca> ahhh...you're just resizing your browser
212: [03:43:32] <Ryan-Toast> yes
213: [03:43:43] <Ryan-Toast> are you detecting mobile with js?
214: [03:44:17] <terryapodaca> no, i'm just using that studiopress site and it's little windows to test
215: [03:44:29] <Ryan-Toast> Oh.
216: [03:44:34] <Ryan-Toast> right.
217: [03:44:50] <Ryan-Toast> but you aren't using their mobile navigation?
218: [03:45:50] <terryapodaca> not sure I know what you mean
219: [03:45:57] <Ryan-Toast> give me a second
220: [03:47:09] * danfo quit (Quit: danfo)
221: [03:48:58] * an_Eskimo_ quit (Ping timeout: 245 seconds)
222: [03:49:14] <Ryan-Toast> terryapodaca: this is what your structure should look like http://i.imgur.com/4qAbF75.png
223: [03:55:27] <terryapodaca> ah, so you're saying I am going about this mobile stuff wrong
224: [04:02:50] <Ryan-Toast> yes :)
225: [04:03:20] <Ryan-Toast> Go and look at a mobile first grid, and see how they are implemented to see how to move elements around
226: [04:03:33] <Ryan-Toast> something like foundation, inuit, or bootstrap
227: [04:04:17] <Ryan-Toast> http://getbootstrap.com/css/#grid-example-basic
228: [04:05:40] <terryapodaca> a friend of mine told me that these days he doesn't worry about 'resized' browsers anymore because most of the time the target already is at the desired window size (iphone/ipad/etc) and they won't be seeing any resize (moving part) issues
229: [04:05:46] <terryapodaca> i guess he's wrong
230: [04:06:03] <Ryan-Toast> terryapodaca: Yes. Yes he is :P
231: [04:06:23] <Ryan-Toast> content should look good no matter what size you're viewing it at.
232: [04:06:51] <Ryan-Toast> i.e resize my website around http://ryanpotter.co.nz/
233: [04:06:56] <terryapodaca> ok ok...I'll do some more studying and ping you when i get this cleaned up
234: [04:07:46] <Ryan-Toast> Sweet, I won't be on until Monday. But I'll be happy to help you out :0
235: [04:07:48] <Ryan-Toast> :) **
236: [04:08:30] <terryapodaca> thanks man...i do appreciate it
237: [04:08:42] <terryapodaca> and nice site, btw
238: [04:08:48] <Ryan-Toast> cheers :)
239: [04:08:54] * Ryan-Toast has left #silverstripe
240: [04:09:03] <terryapodaca> and It's still Thursday night for me...so I guess I'll ping you in three days
241: [04:09:10] * bubaphex has joined #silverstripe
242: [04:09:23] * jparks quit (Ping timeout: 245 seconds)
243: [04:10:46] * nickmolhoek quit (Quit: nickmolhoek)
244: [04:12:05] * nickmolhoek has joined #silverstripe
245: [04:12:13] * nickmolhoek quit (Client Quit)
246: [04:15:06] * terryapodaca has left #silverstripe
247: [04:20:39] * UncleCheese quit (Quit: UncleCheese)
248: [04:21:02] * bubaphex quit (Ping timeout: 252 seconds)
249: [04:24:08] * simon_w has joined #silverstripe
250: [04:33:48] <jordanmk> hey guys, any of you good with routing?
251: [04:34:22] <Colin[pi]> controller or networking?
252: [04:34:34] <jordanmk> controller :P
253: [04:34:37] <Colin[pi]> ;P
254: [04:34:41] <simon_w|air> I hear Colin[pi] is :p
255: [04:34:47] <Colin[pi]> LIES
256: [04:34:53] <jordanmk> i'm trying to setup some AJAX, and my routes don't seem to be working
257: [04:35:40] <jordanmk> i've added a routes.yml to my _config directory with the following contents:
258: [04:35:41] <jordanmk> ---
259: [04:35:41] <jordanmk> Name: myroutes
260: [04:35:41] <jordanmk> After: framework/routes#coreroutes
261: [04:35:41] <jordanmk> ---
262: [04:35:41] <jordanmk> Director:
263: [04:35:42] <jordanmk> rules:
264: [04:35:42] <jordanmk> 'ajax/electoratesfrompostcode/$ID': 'TakeActionPage_Controller'
265: [04:36:05] <jordanmk> then in my TakeActionPage_Controller i've added the following:
266: [04:36:07] <jordanmk> private static $url_handlers = array(
267: [04:36:07] <jordanmk> 'ajax/electoratesfrompostcode/$ID' => 'electoratesfrompostcode',
268: [04:36:07] <jordanmk> );
269: [04:37:01] <jordanmk> TakeActionPage_Controller then has a function called electoratesfrompostcode as follows:
270: [04:37:01] <jordanmk> public function electoratesfrompostcode(SS_HTTPRequest $request)
271: [04:37:02] <jordanmk> {
272: [04:37:02] <jordanmk> $id = (int)$request->param('ID');
273: [04:37:02] <jordanmk> echo $this->getElectoratesFromPostcode($id);
274: [04:37:02] <jordanmk> }
275: [04:38:01] <jordanmk> in my page's JS, the call to /ajax/electoratesfrompostcode always just returns the entire TakeActionPage, rather than what the getElectoratesFromPostcode function returns
276: [04:38:10] <Colin[pi]> hmm where does it echo to if it's ajax? checking the http response that comes back?
277: [04:38:51] <jordanmk> yeah the response that comes back is the entire TakeActionPage page
278: [04:39:12] <jordanmk> i tried adding ?debug_request=1 to the URL of my TakeActionPage, and it shows the following at the top of the page:
279: [04:39:20] <jordanmk> Debug (line 250 of RequestHandler.php): Testing 'ajax/electoratesfrompostcode/$ID' with '' on TakeActionPage_Controller
280: [04:39:21] <jordanmk> Debug (line 250 of RequestHandler.php): Testing '$Action//$ID/$OtherID' with '' on TakeActionPage_Controller
281: [04:39:21] <jordanmk> Debug (line 258 of RequestHandler.php): Rule '$Action//$ID/$OtherID' matched to action 'handleAction' on TakeActionPage_Controller. Latest request params: array ( 'Action' => NULL, 'ID' => NULL, 'OtherID' => NULL, )
282: [04:39:21] <jordanmk> Debug (line 184 of RequestHandler.php): Action not set; using default action method name 'index'
283: [04:39:57] <jordanmk> so it says "using default action method name 'index'" and i'm guessing that's what causes the response of the request to just be the entire TakeActionPage page
284: [04:40:03] <Colin[pi]> so it's not matching your route, no
285: [04:40:25] * abitran quit (Ping timeout: 240 seconds)
286: [04:41:37] <Colin[pi]> it's definitely passing the ID?
287: [04:42:40] * abitran has joined #silverstripe
288: [04:49:48] <Colin[pi]> look at me, writing regexes on a friday arvo
289: [04:56:09] * cloph has joined #silverstripe
290: [04:56:27] * cloph_away quit (Ping timeout: 265 seconds)
291: [04:56:40] <simon_w|air> Can't, too busy cuddling the fiancee
292: [04:58:35] <Colin[pi]> d'awww
293: [04:58:42] <Colin[pi]> give her a squeeze for me
294: [05:02:18] <simon_w|air> Eww, no :p
295: [05:05:22] <Colin[pi]> Okay. :(
296: [05:07:50] <simon_w|air> I'm Simon I'm a pretty princess!
297: [05:12:04] <Colin[pi]> Yep that's simon_w alright
298: [05:12:06] <Colin[pi]> no doubt
299: [05:12:30] <simon_w|air> Damn right
300: [05:12:37] <simon_w|air> It's even on my Twitter bio!
301: [05:13:00] <Colin[pi]> I noticed!
302: [05:17:21] * babak has joined #silverstripe
303: [05:26:54] <babak> menu I see this error "Can't open c:/php/logfile.txt!"
304: [05:55:29] * Tanger quit (Read error: Connection reset by peer)
305: [05:55:42] * Tanger has joined #silverstripe
306: [06:28:44] * UncleCheese has joined #silverstripe
307: [06:31:10] * Shrike_Finland has joined #silverstripe
308: [06:33:52] * Tanger_ has joined #silverstripe
309: [06:35:23] <jordanmk> hey guys
310: [06:35:32] <jordanmk> anyone here good with retrieving data from the database?
311: [06:36:30] * Tanger quit (Ping timeout: 265 seconds)
312: [06:36:43] * Tanger_ is now known as Tanger
313: [06:37:13] <jordanmk> i have a class called Recipe which has a property of Title (data type Text) and also a $many_$many relationship of RecipeTypes (data type RecipeType)
314: [06:37:44] <jordanmk> RecipeType is a class which has a property of Title (data type Text)
315: [06:39:11] <jordanmk> for my site's search functionality, i want the search results to be every Recipe which has a Title that matches the search parameter, as well as every Recipe which has a RecipeType whose title matches the search parameter
316: [06:39:17] <jordanmk> i've tried the following:
317: [06:41:14] <jordanmk> return Recipe::get()->filterAny(array(
318: [06:41:14] <jordanmk> 'Title:PartialMatch' => $searchString,
319: [06:41:14] <jordanmk> 'RecipeTypes.Title:PartialMatch' => $searchString
320: [06:41:14] <jordanmk> ));
321: [06:41:48] <jordanmk> but that is only returning Recipes whose Title matches the search parameter
322: [06:42:27] <jordanmk> it's not returning any Recipes where the Title of that Recipes RecipeType matches the search parameter
323: [06:42:59] * guci0 has joined #silverstripe
324: [06:43:03] <jordanmk> any ideas?
325: [06:43:08] <guci0> Hello World!
326: [06:43:46] * terryapodaca has joined #silverstripe
327: [06:44:40] <Colin[pi]> hello guci0
328: [06:47:07] <terryapodaca> Do I understand this correctly, now in SS3 if you have a DO that's only specific to a single PageType, you can actually build that DO in the same file as the page type?
329: [06:47:24] <jordanmk> hey Colin, any suggestions for my data query question?
330: [06:47:53] <jordanmk> can't figure out why it's not working :(
331: [06:54:32] * Shrike_Finland quit (Quit: Leaving.)
332: [07:15:40] * jparks has joined #silverstripe
333: [07:17:37] * violetina has joined #silverstripe
334: [07:19:48] * jparks quit (Ping timeout: 245 seconds)
335: [07:26:02] * zippy____ has joined #silverstripe
336: [07:26:10] * spronk2 has joined #silverstripe
337: [08:01:30] <terryapodaca> anyone awake?
338: [08:08:03] <spronk2> mhmmm
339: [08:08:23] <terryapodaca> barely?
340: [08:09:56] <terryapodaca> my client insists I add back the metakeywords...how do i update the metadata toggle with a keyword textarefield?
341: [08:10:19] <terryapodaca> without modifying the core code of course
342: [08:12:38] <spronk2> hmm
343: [08:12:45] <spronk2> think there was an extension for this
344: [08:13:08] <spronk2> http://addons.silverstripe.org/add-ons/arnhoe/metakeywords
345: [08:13:46] <terryapodaca> i couldn't get it to work with getCMSFields of course, can i simply add a new function updateCMSFields in my Page class?
346: [08:13:57] * Guits has joined #silverstripe
347: [08:14:18] * MrGuits quit (Ping timeout: 252 seconds)
348: [08:14:21] <spronk2> hmm?
349: [08:15:23] * MrGuits has joined #silverstripe
350: [08:16:32] * Shrike_Finland has joined #silverstripe
351: [08:18:47] * Guits quit (Ping timeout: 246 seconds)
352: [08:26:45] * ARNHOE has joined #silverstripe
353: [08:31:37] * Pyromanik has joined #silverstripe
354: [08:31:55] <Pyromanik> kia ora
355: [08:32:16] <spronk2> sup P
356: [08:36:19] * Shrike_Finland quit (Quit: Leaving.)
357: [08:36:32] <Pyromanik> sup spronk
358: [08:36:37] <Pyromanik> spronk2, even :D
359: [08:36:54] <Pyromanik> Bro, do me a favour. Go and eat some burgerfuel and tell me how awesome it is.
360: [08:39:20] <zippy____> lol
361: [08:39:34] <zippy____> miss it eh
362: [08:42:52] <terryapodaca> can you set a site in dev mode in the config.yml file?
363: [08:43:07] <terryapodaca> or is it still best to do that in _config
364: [08:49:12] <Pyromanik> zippy____, yes and no. Not really, until right now.
365: [08:49:24] <Pyromanik> reminds me of happier times.
366: [08:49:31] <zippy____> terryapodaca: you can do it in the config.yml
367: [08:49:39] <zippy____> or the _config.php
368: [08:51:42] <terryapodaca> zippy____: do you have a structure example by chance?
369: [08:53:19] <zippy____> http://doc.silverstripe.com/framework/en/topics/debugging
370: [08:54:33] <terryapodaca> perfect!
371: [08:59:17] <terryapodaca> can we set the GD quality there too?
372: [09:00:20] <zippy____> yes
373: [09:00:31] <zippy____> most stuff from _config can be done there
374: [09:00:59] <zippy____> http://doc.silverstripe.com/framework/en/topics/configuration
375: [09:04:56] * ocm has joined #silverstripe
376: [09:05:28] <ocm> howdy
377: [09:06:00] <ocm> why oh why do hdd's break if you drop your laptop? :(
378: [09:06:22] <zippy____> get a ssd
379: [09:06:34] <ocm> I said the same thing this morning
380: [09:11:45] * kinglozzer has joined #silverstripe
381: [09:14:50] <kinglozzer> Morning
382: [09:15:07] * micmania1 has joined #silverstripe
383: [09:19:23] * zippy____ quit (Quit: zippy____)
384: [09:23:45] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
385: [09:26:08] <ocm> heya
386: [09:30:00] <micmania1> mornin'
387: [09:30:41] * cloph is now known as cloph_away
388: [09:39:36] <spronk2> so
389: [09:39:37] <spronk2> burgerfuel
390: [09:39:39] <spronk2> pretty awesome
391: [09:39:39] <spronk2> ;)
392: [09:47:55] * jordanmk has joined #silverstripe
393: [09:48:55] <jordanmk> hey guys
394: [09:49:31] * zippy____ has joined #silverstripe
395: [09:50:26] <jordanmk> hi zippy :)
396: [09:52:33] <micmania1> spronk2: it sounds like a place of GODs
397: [09:52:44] <zippy____> bugerfuel?
398: [09:52:52] <zippy____> jordanmk: hi
399: [09:53:26] <jordanmk> you wouldn't happen to be any good with dataobject retrieval from the database, would you?
400: [09:53:55] <micmania1> zippy____: how the hell did you know that? lol
401: [09:57:14] <zippy____> jordanmk: like what you trying to do
402: [09:57:24] <zippy____> micmania1: know he was going on about bugerfueld, secret
403: [09:57:29] <jordanmk> i've got a post up about it on stackoverflow
404: [09:57:31] <jordanmk> https://stackoverflow.com/questions/22552383/complex-search-functionality
405: [09:58:05] <jordanmk> i feel like it's something that should be pretty easy, but i'm new to SilverStripe so i'm not quite sure how to do what i'm trying to do
406: [09:59:34] <micmania1> jordanmk: first of all, you need a $belongs_many_many on your recipe type model
407: [09:59:41] <micmania1> which links back to the recipe
408: [10:01:11] <jordanmk> ah yep
409: [10:05:00] <jordanmk> still not showing any results based on RecipeType unfortunately :(
410: [10:05:13] <micmania1> yeah, not 100% sure how to do the next part.
411: [10:06:18] <micmania1> getManyManyComponents is probably what you're after but i've never used it before
412: [10:06:38] <jordanmk> ah okay
413: [10:07:06] <micmania1> maybe someone else can give more help? kinglozzer Zauberfisch
414: [10:07:42] <jordanmk> yeah I was hoping Zauberfisch would be around, he really knows his shit lol
415: [10:09:24] * Sj0hn has joined #silverstripe
416: [10:10:16] <Sj0hn> hi
417: [10:10:35] <kinglozzer> Hmm, not sure how to do that in an "ORM-y" way. You could do two queries and merge the results perhaps
418: [10:11:49] <jordanmk> yeah no problem with doing it as two queries, but i've tried doing a query that is just for the RecipeType part and can never get any results back
419: [10:14:01] <kinglozzer> jordanmk: $recipes = RecipeType::get()->filter('Title:PartialMatch', $searchString)->relation('Recipes');
420: [10:14:03] <kinglozzer> I think
421: [10:15:35] <micmania1> ah relation! I only found that the other day.
422: [10:15:40] <micmania1> Does that perform the join?
423: [10:15:59] <micmania1> The only other way i've done this is to do an innerJoin() but that means hardcoding the table names.
424: [10:16:38] <jordanmk> i'll give that a try kinglozzer
425: [10:17:49] <kinglozzer> micmania1: Yeah I think so, it calls - singleton($this->dataClass)->$relationName()->forForeignID($ids);
426: [10:18:07] <kinglozzer> I just didn't know you could pass an array of IDs to ->forForeignID
427: [10:18:28] <jordanmk> hmm, got this error
428: [10:18:29] <jordanmk> [User Error] Uncaught Exception: Object->__call(): the method 'recipes' does not exist on 'RecipeType'
429: [10:19:39] <zippy____> jordanmk: The relation would be you called that belongs_many_many
430: [10:21:12] <micmania1> jordanmk: have you done a dev/build?
431: [10:21:37] <jordanmk> doing that now :P
432: [10:24:18] * Tanger quit (Quit: Tanger)
433: [10:24:25] <jordanmk> okay so after /dev/build, the error is gone but no results are returned
434: [10:25:13] <zippy____> jordanmk: The other method you had before should work...
435: [10:25:31] <jordanmk> what do you mean?
436: [10:25:34] <zippy____> Do you actually have any RecipeType with that Title?
437: [10:25:47] <jordanmk> yeah
438: [10:27:53] <jordanmk> hmm
439: [10:28:00] <jordanmk> i think i might know what it is, give me a min
440: [10:30:28] <Pyromanik> spronk2, <3
441: [10:30:34] <spronk2> :D
442: [10:31:35] <Pyromanik> micmania1, yes, burgerfuel is a place of gods. Something you'll come to understand when your new office is 2 doors and 5 levels above an outlet.
443: [10:31:55] <Pyromanik> err, 2 doors over and 5 levels above.
444: [10:32:16] <micmania1> I heard a sick rumour that they put beetroot on your burger tho?
445: [10:32:22] <Pyromanik> hahaha, and egg.
446: [10:32:26] <micmania1> egg is good.
447: [10:32:30] <Pyromanik> don't knock it 'til you've tried it.
448: [10:32:49] <Pyromanik> I once heard a sick rumour that some people even like it when they put gherkins in burgers.
449: [10:32:57] <Pyromanik> what kind of a weirdo does that.
450: [10:33:06] <Pyromanik> :P
451: [10:33:18] <micmania1> I don't think people like it. I think they just put up with it.
452: [10:33:21] <Pyromanik> in all honesty though, NZ burgers far better than anything I've had here so far.
453: [10:33:31] <Pyromanik> they're more... fully loaded.
454: [10:33:37] <micmania1> yes!
455: [10:33:41] <Pyromanik> Burgers here seem to be more american
456: [10:33:43] <micmania1> we've just ordered fancy sandwiches
457: [10:33:52] <micmania1> http://www.chillipeppersandwiches.com/
458: [10:33:57] <Pyromanik> You have bun, meat, a slight bit of cheese and... and nothing else.
459: [10:34:04] <Pyromanik> micmania1, omg I go there every day :D
460: [10:34:20] <micmania1> I've only been once. I had Meatball madness and it was unreal
461: [10:34:20] <spronk2> god
462: [10:34:21] <spronk2> delicious
463: [10:34:32] <micmania1> I'm going for urban cowboy today
464: [10:34:41] <spronk2> those look tasty..
465: [10:34:55] <micmania1> They deliver too!
466: [10:35:09] <Pyromanik> I said to the chap, I says... "you make the best sandwiches in all of the ... " (I almost said 'North East') " ... England"
467: [10:35:21] <kinglozzer> Pyromanik: Where dafuq you been lately?
468: [10:35:24] <Pyromanik> it just came out like that. And then I agreed with myself.
469: [10:35:30] <Pyromanik> kinglozzer, hospital.
470: [10:35:45] <kinglozzer> It's been awful quiet in here D:
471: [10:35:50] <Pyromanik> yeh.
472: [10:36:05] <Pyromanik> I had plastic surgery. I never want to have to do that again :<
473: [10:36:13] <Colin[pi]> :(
474: [10:36:16] * kinglozzer not sure if srs
475: [10:36:23] <Pyromanik> kinglozzer, full srs.
476: [10:36:30] <zippy____> jordanmk: sorted?
477: [10:36:38] <kinglozzer> :( *hugs*
478: [10:36:45] <kinglozzer> (no homo)
479: [10:36:53] <spronk2> hmm..
480: [10:36:56] <jordanmk> yep just managed to get it returning the results based on recipe type
481: [10:37:06] <spronk2> nose job?
482: [10:37:11] <jordanmk> now trying to get it to return the results from both the recipe name and recipe type
483: [10:37:44] <micmania1> You back at work today Pyromanik?
484: [10:37:58] <spronk2> also, want a biofuel now
485: [10:38:15] <Pyromanik> kinglozzer, http://iforce.co.nz/i/wfjxmrgr.wjw.jpg
486: [10:38:26] <Pyromanik> micmania1, was going to... but nah.
487: [10:38:32] <Pyromanik> I underestimated recovery time.
488: [10:38:42] <Pyromanik> plus I didn't sleep pretty much the entire time in hospital
489: [10:38:47] <spronk2> fucking nose job
490: [10:38:54] <spronk2> CALLED IT
491: [10:39:10] <Pyromanik> when I did it was only for half an hour because mouth would dry out and I'd wake up in a bit of pain
492: [10:39:23] <Pyromanik> spronk, not by choice.
493: [10:39:34] <Pyromanik> spronk2, I had it re-aligned.
494: [10:39:38] <kinglozzer> Pyromanik: Broken?
495: [10:39:42] <spronk2> someone smack you?
496: [10:40:28] <Pyromanik> spronk2, yes. This is a pool of my blood.
497: [10:40:28] <Pyromanik> http://iforce.co.nz/i/owdtmaab.5mf.jpg
498: [10:40:49] <spronk2> ... i assume you mean the greenish brownish shit TL?
499: [10:40:54] <spronk2> because
500: [10:40:55] <spronk2> otherwise
501: [10:41:02] <spronk2> you've got something seirously wrong with you man
502: [10:41:07] <Pyromanik> kinglozzer, yeah. Surgeon wasn't sure it'd move because I'd left it too long. Then he was surprised at how free it was. Then he decribed it as "mush"
503: [10:41:12] * zippy____ quit (Ping timeout: 252 seconds)
504: [10:41:27] <spronk2> now i'm not sure if srs
505: [10:41:28] <spronk2> fuck
506: [10:41:28] <kinglozzer> Pyromanik: Did some actually smack you? who/why? D:
507: [10:41:32] <Pyromanik> spronk, well the scuff marks to the right are my feet marks.
508: [10:41:53] <Pyromanik> the reddish brown circle to the left is my face.
509: [10:42:00] <Pyromanik> it's about a metre apart.
510: [10:42:01] <spronk2> the fuck man
511: [10:42:12] <Pyromanik> I was curled up as a whole group of cunts laid into me.
512: [10:42:20] <spronk2> why?
513: [10:42:40] <Pyromanik> just because, that's what you do in England for a bit of a laugh apparently.
514: [10:42:54] <spronk2> bad luck man
515: [10:42:55] <spronk2> fuck that shit
516: [10:42:59] <Pyromanik> kinglozzer, some criminals, no reason.
517: [10:43:06] * mento has joined #silverstripe
518: [10:43:25] <kinglozzer> Pyromanik: It's happened to me before :/ some real cunts about. Any joy with police/finding who they were?
519: [10:43:42] <kinglozzer> I "looked at them funny"
520: [10:43:47] <kinglozzer> Whatever that means
521: [10:44:07] <Pyromanik> kinglozzer, spronk2... see this is what I mean by apparently this is what folks do for a good time. kinglozzer so far I've not talked to anyone who hasn't had this experience, or at least knows someone who has.
522: [10:44:36] <Pyromanik> and yeah, the cops found my phone. Crims trying to sell it over facebook.
523: [10:44:42] <jordanmk> got it working! cheers for the help kinglozzer, zippy____ and micmania1
524: [10:44:48] <spronk2> what dbags
525: [10:45:02] <Pyromanik> Best part is that they don't have the power to do anything about it, because they can't proove which one actually has my phone, and if they set up a buy that would be entrapment.
526: [10:45:26] <micmania1> but if you setup a buy...?
527: [10:45:33] <micmania1> that's not entrapment.
528: [10:45:38] <Pyromanik> so likely I'll never see my stolen phone, wallet, EXPIRED RAIL PASS again.
529: [10:45:53] <spronk2> bugger
530: [10:45:56] <Pyromanik> micmania1, apparently it is. If I buy it, everything is fine. If the cops buy it, it's entrapment.
531: [10:46:04] <terryapodaca> what's the format for setting the GD quality in the config.yml file?
532: [10:46:06] <micmania1> yeah, that's what I mean.
533: [10:46:08] <micmania1> You buy it.
534: [10:46:24] <spronk2> so.. you buy it, go along with a coppah?
535: [10:46:36] <Pyromanik> micmania1, I'd need to know who they are, and someone from around here to buy it from them (I somewhat doubt they'd talk to me, since they obviously know my face... and my accent).
536: [10:47:02] <Pyromanik> spronk2, yeah... law is pretty much set up to protect criminals.
537: [10:47:08] <Pyromanik> same as everywhere.
538: [10:47:26] <Pyromanik> so much fear of wrongful prosecution that it's so fucking hard to make a correct one.
539: [10:48:02] <Pyromanik> but also because it's a facebook sale thing, I'd need to know who it is that rolled me to be able to even get a look in.
540: [10:48:19] <Pyromanik> which I doubt the cops would dish out for fear of vigilante justice.
541: [10:48:19] <spronk2> wow. ridiculous
542: [10:48:26] <kinglozzer> :/ assholes
543: [10:48:28] <spronk2> so they aren't even gonna get done for assault
544: [10:48:31] <Pyromanik> which of course then I'd get arrested and prosecuted for (if I could even fight0
545: [10:48:31] <spronk2> ?
546: [10:48:46] <mento> hey guys, i can't seem to get my language files to work for a translation of my site. I've looked into the translation files of some modules - and i can't figure out what's going wrong... see the example: http://pastie.org/8956130 - the en.yml file is in the mysite/lang/ folder
547: [10:48:52] <Pyromanik> spronk, well they'll get done for assault and robbery if they get caught. I'll have to testify and all that jazz too.
548: [10:48:59] <spronk2> mm
549: [10:49:11] <spronk2> then they'll probably come and assault you again
550: [10:49:21] <Pyromanik> if they get off.
551: [10:49:39] <spronk2> yeah
552: [10:49:42] <Pyromanik> Winds me up. My phone being stolen wouldn't bother me so much if it didn't have so much personal info on it.
553: [10:49:43] <spronk2> at which point
554: [10:49:52] <spronk2> http://www.quickmeme.com/img/f9/f96ede2a57a8e77495d36e876f8c1151175fb2163f398b8f07b202bc2b464629.jpg
555: [10:49:53] <Pyromanik> like, pictures of the missus and I on holiday...
556: [10:49:54] <spronk2> remote wipe?
557: [10:50:00] <Pyromanik> spronk, phone too old.
558: [10:50:05] <spronk2> D:
559: [10:50:17] <Pyromanik> also no data connection because UK vodafone is more of a cunt than NZ (wow go figure wtf)
560: [10:50:22] <spronk2> mm
561: [10:50:36] <Pyromanik> but then all the other networks are just as big a cunts.
562: [10:50:49] <Pyromanik> so... yeah. Sucks.
563: [10:51:01] <Pyromanik> they took my nice new wallet too, present from the missus.
564: [10:51:17] <spronk2> ah well
565: [10:51:18] <spronk2> could be worse
566: [10:51:24] <Pyromanik> could be. I could be dead.
567: [10:51:32] <Pyromanik> or a vegetable.
568: [10:51:38] <spronk2> mm
569: [10:52:02] <Pyromanik> but then I know they went through the phone because they text the missus.
570: [10:52:12] <Pyromanik> from THEIR phone.
571: [10:52:20] <spronk2> eh?!
572: [10:52:39] <Pyromanik> unless they instantly swapped out the sim, but then they probably wouldn't be trying to sell it.
573: [10:52:59] <Pyromanik> spronk, yeah, they tried to get her to give them my westpac card's pin.
574: [10:53:14] <spronk2> looooool
575: [10:53:40] <Pyromanik> saying that I was drunk and needed a taxi, still in Newcastle (another city)... I'd been in hospital for about 3 hours by this point.
576: [10:53:51] <spronk2> wow
577: [10:53:58] <Pyromanik> I was 600m from home when it happened.
578: [10:54:26] <Pyromanik> I'd put pace on and got away, then hidden. But I hid poorly :<
579: [10:55:13] <Pyromanik> So I've formed this new theory righ.
580: [10:55:16] <Pyromanik> right*
581: [10:55:22] <spronk2> oh, wtf
582: [10:55:28] <Pyromanik> instead of having a death penalty, it should be a castration penalty.
583: [10:55:32] <spronk2> so they went looking for you!?
584: [10:56:17] <Pyromanik> so shits like this and stuff who perform 'serious crimes' undergo castration. They they can't breed and hopefully would mellow out with less testosterone or something.
585: [10:56:24] <spronk2> mm
586: [10:56:38] <spronk2> couldn't do it chemically though
587: [10:56:45] <spronk2> because then they're the perfect rapist
588: [10:56:50] <micmania1> Pyromanik: people like that have kids when they're like 12 anyway so it'd probably already be too late.
589: [10:56:51] <Pyromanik> spronk, nah not really, they went past me, and I was relieved. But then one just happened to turn around, and I got seen.
590: [10:56:55] <spronk2> you'd have to do a proper chop
591: [10:57:09] <Pyromanik> micmania1, yeah, I know. But then I would feel better :<
592: [10:57:23] <Pyromanik> at least they'd lose something they care about.
593: [10:57:32] <spronk2> either that or just chop off a hand
594: [10:57:33] <spronk2> or two
595: [10:57:52] <spronk2> when did this happen?
596: [10:57:54] <Pyromanik> spronk, I was thinking more docking ring, personally.
597: [10:58:01] <spronk2> cringe
598: [10:58:03] <Pyromanik> spronk2, Friday before last.
599: [10:58:12] <spronk2> damn
600: [10:58:28] <spronk2> where were you?
601: [10:58:28] <Pyromanik> just come back from a good night out with micmania1
602: [10:58:37] <Pyromanik> spronk, 600m from home!
603: [10:58:42] <spronk2> walking back or something?
604: [10:58:44] <Pyromanik> mmm
605: [10:58:48] <spronk2> fuuckers
606: [10:59:05] <Pyromanik> I had to get out of the taxi early because otherwise I was going to spring a leak.
607: [10:59:19] <Pyromanik> so I used a tree, started walking... suddenly boom.
608: [10:59:58] <Pyromanik> then I dragged myself back toward town (different one from where I was out in) and found a pizza place still open.
609: [11:00:05] <Pyromanik> they called the cops, cops got an ambo...
610: [11:00:28] <Pyromanik> cops apparently did a sweep of the area, but this might have been an hour later or so. I dunno if I was unconcious or not (dem concussions)
611: [11:00:51] <Pyromanik> so yeah.
612: [11:01:38] <Pyromanik> Crims put me in hospital and stole my stuff. Then cops came to hospital and took all my clothes. So by the end of it I just had underwear and blood stained shoes.
613: [11:02:46] <spronk2> wow
614: [11:04:00] <spronk2> that is fucking shit man.
615: [11:05:10] <Pyromanik> yep.
616: [11:05:19] <Pyromanik> but nose straight again now, so thank fuck for that.
617: [11:05:47] <Pyromanik> they took everything from me, including the straightness of my nose. But thankfully I can have that back.
618: [11:05:50] <Pyromanik> at least.
619: [11:06:19] <Pyromanik> It wasn't hugely bent, but it was taking a bit of a phsychological toll on me :<
620: [11:06:29] <spronk2> heh
621: [11:10:56] <Pyromanik> other than that, the biggest thing has been the feeling of invasion of privacy.
622: [11:11:44] <Pyromanik> knowing that these cunts have been through my phone, seeing pics, addresses, tax codes, all kinds of stuff related to me, or people close to me.
623: [11:11:59] <spronk2> mm
624: [11:12:10] <Pyromanik> could have saved pictures of the missus to their computers for all I know. That really boils my blood.
625: [11:12:16] <spronk2> even i'm angry just thinking about it
626: [11:12:30] * DesignerX has joined #silverstripe
627: [11:12:50] <spronk2> get out the old Gyphon and give em a good smack
628: [11:13:11] <Pyromanik> the worst part is since this has happened, I realise that the 'smartphone' has to be the single worst thing to have ever happened to privacy, both in the tech industry and out.
629: [11:14:01] <Pyromanik> I know you can encrypt the phone right... but as I've found on xkcd since... pretty much entirely this: http://xkcd.com/538/
630: [11:14:23] <Pyromanik> the encryption is only as good as long as the phone is not in user mode...
631: [11:14:42] <spronk2> lol
632: [11:14:43] <spronk2> mm
633: [11:14:49] <Pyromanik> I think I might have even been asked while getting smacked why my pin was.
634: [11:15:07] <Pyromanik> I seem to have a faint memory of this.
635: [11:15:24] <Pyromanik> only my phone isn't pin guarded, so it might have been about the visa.
636: [11:15:31] <Pyromanik> that or they're really dumb.
637: [11:15:32] <spronk2> mm
638: [11:16:32] <Pyromanik> so in reality apps need to ask for passwords before they access stored data, and/or maybe the chomebook is the future.
639: [11:16:44] <Pyromanik> everything in the cloud, theft doesn't matter, etc.
640: [11:16:49] <spronk2> mm..
641: [11:17:05] <Pyromanik> but I fucking hate putting shit in the cloud. So that's crap too. Not to mention the data usage.
642: [11:17:52] <spronk2> yeah
643: [11:18:51] <Pyromanik> so the only realistic thing would be for every app to need to have a password input in order to be able to access the file system when it needs. Which is rubbish usability.
644: [11:19:23] <spronk2> or a voice code or something
645: [11:19:37] <Pyromanik> but then you could have a panic code like a house alarm where it demo's the data if you put in a nonsense code.
646: [11:19:50] <Pyromanik> yeah, or voice, or fingerprints... etc.
647: [11:19:54] <micmania1> If my phone was stolen people would gain access to my emails and twitter. That's about it.
648: [11:20:11] <micmania1> The email account I use for all my accounts I don't actually have on my phone.
649: [11:20:12] <Pyromanik> but then you get all kinds of rubbish shit like what if you had a degloving accident at work....
650: [11:20:16] <Pyromanik> how then to use the phone?
651: [11:20:31] <spronk2> heh
652: [11:20:45] <Pyromanik> micmania1, yeah I'm well stoked that the account I activated android with has not existed in about 4 years.
653: [11:21:01] <Pyromanik> emails, calendar etc. all useless with no personal info on them.
654: [11:21:11] <Pyromanik> it's mostly just photos
655: [11:21:19] <Pyromanik> and that I used the phone as a USB stick from time to time.
656: [11:21:29] <Pyromanik> and a notepad.
657: [11:21:56] <Pyromanik> so it had shit like reference numbers for bank account applications and stuff (ultimately useless, just annoying).
658: [11:22:33] <Pyromanik> the trouble is I don't know if there's anything sensitive that I've forgotten. I highly doubt it as I never write down passwords, but things like my todo list are gone too.
659: [11:23:01] <Pyromanik> and yeah, as I keep saying, mostly the photos (not that there's anything dodgy in them, it's just a bit of a personal violation like).
660: [11:24:20] <Pyromanik> I don't think I'd backed them up since coming here at least. So a bunch of travel photos of the UK gone.
661: [11:24:59] <spronk2> :(
662: [11:25:28] * danfo has joined #silverstripe
663: [11:27:25] <Pyromanik> anyway, time for me to relax a bit and maybe figure out how one is supposed to shower without getting their face wet, as I still smell like hospital but can't get spint or wounds wet, etc.
664: [11:27:35] <spronk2> guts
665: [11:28:03] <Pyromanik> also, can you buy senny bits separately spronk?
666: [11:28:24] <Pyromanik> My foam covers for my ear buds are disintergrating
667: [11:28:36] <spronk2> yes
668: [11:28:36] * mento quit (Quit: Page closed)
669: [11:28:39] <spronk2> try custom cables
670: [11:28:42] <Pyromanik> nothing major obviously, but it annoys me.
671: [11:28:53] <spronk2> http://www.custom-cable.co.uk/
672: [11:28:55] <Pyromanik> I guess they don't have to be senny replacement
673: [11:29:53] <spronk2> http://www.custom-cable.co.uk/sennheiser-replacement-streetwear-earpads-10-pcs.html ?
674: [11:31:12] <Pyromanik> http://www.custom-cable.co.uk/index.php?match=all&subcats=Y&dispatch=product_features.view&q=mx270
675: [11:31:17] <Pyromanik> sweet, thanks spronk :D
676: [11:31:32] <spronk2> :D
677: [11:35:01] <Pyromanik> now if I had a UK bank account I could pay the 3 quid they want for them.
678: [11:35:07] <Pyromanik> instead of nigh on $10
679: [11:35:17] <Pyromanik> :P
680: [11:35:19] <spronk2> lol
681: [11:35:34] <Pyromanik> Maybe that's what I'll do tomorrow.
682: [11:35:54] <Pyromanik> shit, except they'll just want me to make an appointment for next year, because that'll be the nearest one.
683: [11:36:42] <spronk2> heh
684: [11:36:54] <spronk2> prolly not if opening account
685: [11:36:59] <spronk2> they like new customers
686: [11:37:19] <Pyromanik> bullshit they do. New customers is a morbid fear around here.
687: [11:37:33] <Pyromanik> That'd mean that they'd actually have to do some fucking WORK and EARN money for a change.
688: [11:37:39] <Pyromanik> no one in banking wants to do that.
689: [11:38:17] <spronk2> lol :D
690: [11:38:18] <Pyromanik> I wanna go with HSBC because they have NZ branches... but they seem to fuck me around the most.
691: [11:38:35] <Pyromanik> but then they're also about the only ones who HAVEN'T had a major security upset in the past year
692: [11:38:37] <terryapodaca> what's the new way to make a site translatable? I know in previous version it was built in, but not anymore?
693: [11:38:53] <spronk2> addon
694: [11:39:12] <Pyromanik> but then again they're also the ones who are paying out their bossman an illegal sum bonus by use of some bullshit loophole in european law.
695: [11:39:34] <spronk2> terryapodaca: http://addons.silverstripe.org/add-ons/silverstripe/translatable
696: [11:39:52] <Pyromanik> and despite being the Hong Kong and Shanghai Banking Coproration, they're actually 100% British.
697: [11:39:57] <spronk2> heh
698: [11:40:08] <terryapodaca> i guess i should be doing a search before asking :P
699: [11:40:25] <Pyromanik> terryapodaca, most things are split to modules these days, as they probably always should have been.
700: [11:42:22] <terryapodaca> makes sense
701: [11:48:34] * babak quit (Quit: Connection closed for inactivity)
702: [11:50:34] <micmania1> Thing i hate about ordering sandwiches is they take ages. I'm starving!
703: [11:53:29] <Sj0hn> any1 got experience with the display logic module form unclecheese?
704: [11:53:48] <UncleCheese> <--- this guy does
705: [11:54:17] <Sj0hn> Ow haha, hi there
706: [11:54:25] <Sj0hn> im getting the follwing error : collateDataFields() I noticed that a field called 'GalleryImages' appears twice in your form: 'Form_ItemEditForm'. One is a 'GridField' and the other is a 'GridField'
707: [11:54:39] <Sj0hn> this is my code i use http://paste2.org/zAtFV8wK
708: [11:55:46] <Sj0hn> Im not sure whats wrong here
709: [11:57:06] <UncleCheese> wow... that's definitely odd
710: [11:58:59] <kinglozzer> Sj0hn: Try doing $fields->removeByName('GalleryImages') before you add the display logic stuff
711: [11:59:06] <UncleCheese> ohh
712: [11:59:13] <UncleCheese> the dreaded parent::getCMSFields()
713: [11:59:17] <UncleCheese> don't use that
714: [11:59:46] <UncleCheese> $fields = FieldList::create(TabSet::create("Root"));
715: [12:00:17] <UncleCheese> then add your own fields.. otherwise, you're at the will of whatever SS scaffolds for you.. and in this case, you got two giid fields
716: [12:00:57] <Sj0hn> that did the trick
717: [12:01:17] <UncleCheese> yeah, parent::getcmsfields is bad for anything but site tree classes
718: [12:01:42] <Sj0hn> Good thing to remember :p
719: [12:01:46] <Sj0hn> Thanks :)
720: [12:04:27] * desperate has joined #silverstripe
721: [12:04:30] <desperate> good morning everyone
722: [12:05:01] <desperate> question regarding my hierachy... if I have an EventsPage.....
723: [12:05:15] <desperate> actually I have several EventsPages
724: [12:05:30] <desperate> I want to display these in my side bar
725: [12:05:48] <desperate> do I still need an EventsPages Holder page in order to group them into an hierachy
726: [12:06:11] <desperate> it doesn't seem righ tin that I will not ever render the EventsPage holder
727: [12:10:41] * Colin[pi] quit ()
728: [12:16:36] * UndefinedOffset has joined #silverstripe
729: [12:22:37] * spronk2 quit (Quit: spronk2)
730: [12:24:09] * UncleCheese quit (Quit: UncleCheese)
731: [12:24:37] * mento has joined #silverstripe
732: [12:25:28] <Pyromanik> desperate, group them by ParentID
733: [12:28:32] * spronk2 has joined #silverstripe
734: [12:29:37] <mento> anyone here around who succesfully translated a website using SS 3.0 + translatable module with i18n language files?
735: [12:30:01] <mento> For some reason, my language files in mysite/lang/ aren't loaded into the site
736: [12:30:35] <micmania1> mento: have you flushed?
737: [12:30:50] <mento> yes, withouth any success
738: [12:31:08] <mento> this is my yaml file - seems to be fine to me - http://pastie.org/8956347
739: [12:31:52] <mento> my config: http://pastie.org/8956351
740: [12:32:42] <micmania1> I've never used the Translatable module, but I don't think that and i18n are the same thing
741: [12:32:55] <micmania1> So the language file its probably looking for is nl_NL
742: [12:33:02] <micmania1> You yaml is en
743: [12:34:22] * Shrike_Finland has joined #silverstripe
744: [12:35:59] <mento> micmania1: when the site is translated using the translatable module it is looking for en_US - since every single language file in the framework & CMS is simply named en.yml - i did the same thing - when i tried en_US instead, it dind't work neither
745: [12:36:31] <mento> in 2.X you could simply use en_US.php as a file in the mysite/lang/ folder and it worked like a charm
746: [12:37:07] <mento> the new approach is a bit vague and the documentation lacks of examples if you'd ask me
747: [12:37:50] <terryapodaca> mento: did you follow this https://github.com/silverstripe/silverstripe-translatable/blob/master/docs/en/index.md?
748: [12:40:39] <mento> terryapodaca: yes, translatable is working just fine - only the t variables (i18n) / language files don't work
749: [12:48:23] <mento> it's driving me nuts :-P i made a file named nl.yml with some random text - it loads successfully on the default language (which is nl_NL) when i click on my translated pages (english / en_US) the same random text from the nl.yml are loaded
750: [12:49:10] <desperate> Pyromanik: group by ParentID?
751: [12:49:20] <desperate> should I not have an events holder then?
752: [12:52:57] <mento> hmm when i change the i18n::set_locale('nl_NL'); to en_US the en.yml is loaded - so something going wrong setting the i18n locale on translated pages
753: [12:56:27] <terryapodaca> mento: the link i gave you says to change the i18m locale in your page controller
754: [12:57:28] <mento> if($this->dataRecord->hasExtension('Translatable')) { i18n::set_locale($this->dataRecord->Locale); }
755: [12:57:56] * derek-b has joined #silverstripe
756: [12:58:07] <terryapodaca> I'm about to install the module to see if I can't help more...give me a few
757: [12:58:19] <mento> terryapodaca: you're right
758: [12:58:29] <mento> i missed to line to set the locale in the page controller
759: [12:58:43] * danfo quit (Quit: danfo)
760: [12:58:44] <mento> terryapodaca: thanks man! no need to install the module =)
761: [12:58:56] <terryapodaca> np
762: [12:59:13] * basso_ has joined #silverstripe
763: [12:59:23] <mento> i was still used to this function which was needed in 2.x in order to get it to work function provideI18nEntities() { $entities = parent::provideI18nEntities(); return null; }
764: [12:59:46] <terryapodaca> I need to anyway...client has customers all over the world and her previous site used the old built in stuff
765: [13:00:02] <terryapodaca> right...making the upgrade since it's now a module
766: [13:00:43] <terryapodaca> now all i need to do is make the 'switcher' on the front end with the flags....
767: [13:01:13] * DesignerX quit (Ping timeout: 240 seconds)
768: [13:01:33] <basso_> Hi, i just created a function in my new created homepage controller. It prints some data from a db query. The printed data however, is being displayed at the top of the page. I <% loop %> over it. It's probably easier to return the data in an array. Am i correct?
769: [13:02:21] <terryapodaca> basso: depends on the content you are displaying
770: [13:02:48] <basso_> terryapodaca: it are filenames which have to be put in a div
771: [13:02:58] <terryapodaca> sspaste the code?
772: [13:05:48] <terryapodaca> i've got a question for SS3.1 and possibly 3.2: are they updating the GridField to include things like the SortableGridField and GridFieldBulkEditingTools provide, or is it still a good idea to install those modules?
773: [13:06:40] <mento> terryapodaca: the switcher is quite easy, it's in the documentation - but here is what i came up with: http://pastie.org/8956429
774: [13:07:34] <micmania1> terryapodaca: I think they're staying as modules.
775: [13:07:51] <mento> uhh wrong pastie - this is the right one: http://pastie.org/8956430
776: [13:08:18] <terryapodaca> micmania1: so if I want that extra functionality I still need the addons
777: [13:08:32] <micmania1> yes
778: [13:09:50] <terryapodaca> thanks micmania1 and mento
779: [13:11:08] <desperate> I have an EventsPageHolder which has allowed_children EventsPage
780: [13:11:19] <desperate> I want to loop the EventsPages for a sidebar menu
781: [13:11:41] <desperate> can I just use <% loop EventsPages %>
782: [13:12:00] <terryapodaca> couldn't you just loop children?
783: [13:12:04] <desperate> or is it <%loop EventsHolder->children %>
784: [13:13:19] <terryapodaca> <% loop $Children %> inside the EventsPageHolder should work
785: [13:14:21] <terryapodaca> http://doc.silverstripe.org/framework/en/reference/templates#looping-over-lists
786: [13:15:38] * headtrip has joined #silverstripe
787: [13:19:09] <headtrip> silverstripe-sortableuploadfield dont works on 3.1, you got any experience with that?
788: [13:20:03] <terryapodaca> never used sortableuploadfield
789: [13:20:53] <headtrip> alternative modules?
790: [13:21:28] <micmania1> https://github.com/bummzack/sortablefile - I would say that, but github is down.
791: [13:21:46] <headtrip> okay thanks, github is slow all day :(
792: [13:22:15] <micmania1> https://status.github.com/messages - DDos attack
793: [13:24:05] <headtrip> wow oO
794: [13:26:56] <mento> stupid DDos attacks
795: [13:27:41] <terryapodaca> mento: I don't understand having to enable translatable since they already do it in their config.yml
796: [13:28:51] * cloph_away is now known as cloph
797: [13:29:50] <mento> terryapodaca: yes, thats a strange thing
798: [13:30:15] <mento> thats the whole point of those module specific configs, if you'd ask me
799: [13:30:29] <mento> but for some reason you still need to enable it in your _config.php
800: [13:33:14] <terryapodaca> mento: can we do this in our config.yml instead of the _config.php?
801: [13:34:08] <mento> terryapodaca: haven't tried it though, i just followed the steps from the docs: https://github.com/silverstripe/silverstripe-translatable/blob/master/docs/en/index.md?#configuration
802: [13:50:42] * spronk2 quit (Quit: spronk2)
803: [13:54:48] <Sj0hn> I've got an error, but im not sure what it means
804: [13:54:49] <Sj0hn> GridFieldManyRelationHandler requires the GridField to have a RelationList. Got a UnsavedRelationList instead.
805: [13:59:33] <micmania1> Sj0hn: something needs saved. If you're creating a new DataObject, don't add the GridFieldManyRelationHandler (or GridField). Only add it after you've saved.
806: [14:00:43] <micmania1> I've never came across the error before, but that's my best guess.
807: [14:01:17] <micmania1> I assume GridFieldManyRelationHandler is a module?
808: [14:01:33] <Sj0hn> yeah,
809: [14:01:45] <Sj0hn> how do i add it after it'
810: [14:03:07] <Sj0hn> *after it's saved
811: [14:03:37] <ARNHOE> Is it normal behaviour that Requirements::javascriptTemplate($themeFolder."/js/filter.js", $vars); gets added as inline javascript ?
812: [14:06:29] <terryapodaca> I believe so
813: [14:06:46] <terryapodaca> that's why I dont do any require in PHP
814: [14:06:53] <terryapodaca> only in template
815: [14:08:08] * desperate quit (Ping timeout: 245 seconds)
816: [14:10:39] <micmania1> geolocation sucks.
817: [14:11:46] <Sj0hn> micmania1, do you know the code for adding it after it's been created?
818: [14:12:28] <micmania1> when you add the GridField wrap it in if($this->ID > 0) { //.. add gridfield }
819: [14:21:39] <Pyromanik> ARNHOE, yes. But I'm reasonably sure that is deprecated code (javascriptTemplate)
820: [14:22:18] <Pyromanik> it's inline because it parses a 'template' file, thus there is no physical file, it must go inline
821: [14:22:45] * Shrike_Finland quit (Quit: Leaving.)
822: [14:22:53] <Pyromanik> and the 'template' is a loose word, it has nothing to do with ssviewer, it's bascially just extremely basic variable substitution through preg_replace.
823: [14:23:25] * OxFF1 has joined #silverstripe
824: [14:23:32] <ARNHOE> thanks for clarifying, Pyromanik. I don't see any deprecated notices in api though
825: [14:23:56] <Pyromanik> ARNHOE, by deprecated what I meant was I thought it was completely removed from 3.x codebase.
826: [14:24:06] <Pyromanik> But may not be. Either way using it is a bad idea.
827: [14:28:36] * Shrike_Finland has joined #silverstripe
828: [14:28:45] <micmania1> I used it form an in-house google map module and i'm going to substitute it out. It causes way too many problems and isn't very flexible.
829: [14:31:31] <basso_> I've copied a SS site from a live server onto my own computer and would like to login, but don't know the password. What's the easiest way to reset the password?
830: [14:31:39] * muskie9 has joined #silverstripe
831: [14:32:05] <basso_> I searched for this, but it's all referring to SS < 3
832: [14:32:17] <terryapodaca> Security::setDefaultAdmin('admin','password');
833: [14:32:29] <basso_> yeah, I tried that, but it does not work
834: [14:32:37] <micmania1> basso_: then you need to dev/build?flush=1
835: [14:32:52] <basso_> alright
836: [14:32:56] * Shrike_Finland quit (Ping timeout: 246 seconds)
837: [14:33:52] <micmania1> If it doesn't let you dev/build (You need to be logged in on latest versions) then you can set the environment to dev.
838: [14:34:06] <basso_> I'm in :)
839: [14:36:37] <Pyromanik> [03:28] <micmania1> I used it form an in-house google map module and i'm going to substitute it out. It causes way too many problems and isn't very flexible.
840: [14:37:15] <Pyromanik> yeh, if you need templating I suggest manually loading and processing an SSViewer instance in code, then dumping it into a customise array or such.
841: [14:37:54] <micmania1> I used an include as a solution elsewhere. Works nice enough.
842: [14:38:50] <Pyromanik> I've done that with my modules. Well, they're not templates, but using a separate include for JS files was a nice way for me to be able to separate out the js libs of my choice for the module from the module itself, meaning it was easy to use another lib without having to copypasta the entire template
843: [14:45:38] * kinglozzer usually just does a customScript() with <<<JS var something = $myPHPVar; JS;
844: [14:46:09] <kinglozzer> But yeah for more complex stuff, templates ^^
845: [14:47:28] * jonShape_ has joined #silverstripe
846: [14:48:04] * jonShape quit (Ping timeout: 265 seconds)
847: [14:49:03] * babak has joined #silverstripe
848: [15:07:08] * OxFF1 has left #silverstripe
849: [15:13:05] * jonShape has joined #silverstripe
850: [15:13:13] * jonShape_ quit (Ping timeout: 240 seconds)
851: [15:21:23] * desperate has joined #silverstripe
852: [15:21:41] <desperate> In my sidebar I want to display the children of my EventsHolderPage
853: [15:21:56] <desperate> I want to be able to do this on all pages, not just the EventsHolderPage
854: [15:22:18] * terryapodaca has left #silverstripe
855: [15:22:29] <muskie9> desperate: show the children of the parent page? or show the Event child pages on every page?
856: [15:27:52] <muskie9> you can write a function in Page.php to get the children of your EventsHolderPage
857: [15:28:25] <muskie9> if it's in Page_Controller you can access it on any page that extends page
858: [15:31:36] <desperate> muskie9: show the children of the events holder page only
859: [15:31:46] <kinglozzer> desperate: If you have one EventsHolderPage: <% with List(EventsHolderPage).First %><% loop Children %>{$Title}<% end_loop <% end_with %>
860: [15:32:14] <kinglozzer> If you have more than one, <% loop List(EventsHolderPage) %><% loop Children %>{$Title}<% end_loop %><% end_loop %>
861: [15:36:22] <desperate> will try thanks
862: [15:39:40] <Pyromanik> too much logic in templates, but it'll work nicely.
863: [15:40:14] <Pyromanik> personally I'd has_one EventsHolderPage to SiteConfig, then <% loop SiteConfig.EventsHolderPage %><% loop Children %>...
864: [15:40:28] <Pyromanik> that way people can choose which events holder they list, if there's more than one.
865: [15:40:44] <kinglozzer> Either that or write a Controller method to fetch them
866: [15:41:12] <kinglozzer> Never considered tieing stuff like that to SiteConfig, neat idea
867: [15:41:39] <Pyromanik> if you indisciminately list all upcoming events, yeh. But if you want them by 'category' or whatever EEventsHolderPage represents... you'd be a bit out of luck
868: [15:41:44] <Pyromanik> kinglozzer, you've never done that?
869: [15:41:47] <Pyromanik> :<
870: [15:41:58] <muskie9> anyone have a good fix if a client has compatibility view on by default in IE8, found some htaccess stuff to override it, but the cms still trips the browser upgrade message
871: [15:42:08] <Pyromanik> I thought it was pretty fundamental. About everything I do has an element of user definition in it.
872: [15:42:35] <Pyromanik> I don't even know of what you speak muskie9
873: [15:43:16] <Pyromanik> but from memory there's some bs meta tag that IE obeys as to which 'mode' it operates in.
874: [15:43:47] <muskie9> http://paste2.org/Pe9pHb5G
875: [15:43:58] <muskie9> that'll override it for the most part in htaccess
876: [15:44:42] <Pyromanik> looks like the most ugly arsed hack I've ever seen.
877: [15:45:19] <kinglozzer> Pyromanik: I've done stuff with SiteConfig of course, but never tieing a page type to it like that - we usually prevent people creating more than one eventholder or w/e unless they specifically ask for it :P
878: [15:46:12] <Pyromanik> kinglozzer, ah yeh, that'd work too. I generally just give as much freedom as possible, otherwise they come back wanting it anyway and I get all wound up about it,haha
879: [15:47:12] <kinglozzer> We also don't usually give clients admin permissions, or access to the Security section. You'd think they'd realise and complain, but no one has ever mentioned it!
880: [15:47:27] <Pyromanik> haha, that I can agree with.
881: [15:47:34] <Pyromanik> well, security section at least.
882: [15:47:50] <Pyromanik> but in my experience although they can log in and do whatever they want, they never ever do.
883: [15:48:04] <micmania1> anybody got a site in 3.0 they could try something on for me?
884: [15:48:05] <Pyromanik> we'd often get folk ringing up asking us to update some content, then email through a doc file.
885: [15:48:12] <Pyromanik> mebbe
886: [15:48:13] <Pyromanik> sec
887: [15:48:16] <micmania1> more specifically 3.0.9, but i doubt it matters
888: [15:48:37] <Pyromanik> what is it?
889: [15:48:50] <micmania1> File upload issue i'd like to check.
890: [15:48:57] <Pyromanik> what do?
891: [15:49:17] <micmania1> Through the html field. I need to link a pdf. Tried to upload via media but it leaves the page for some reason
892: [15:49:31] <micmania1> and just ends up on a blank one.
893: [15:49:37] <Pyromanik> :<
894: [15:49:41] <micmania1> I think the demo site is 3.0
895: [15:49:43] <Pyromanik> can't test that, not enough power.
896: [15:50:06] <Pyromanik> net book doesn't do too well with handling complex loads :P
897: [15:50:24] <Pyromanik> like... building. or flushing. or... y'know... development.
898: [15:50:37] <kinglozzer> micmania1: I can test, sec
899: [15:50:38] <micmania1> the demo site is 3.1 :(
900: [15:50:41] <micmania1> cool
901: [15:50:56] * SMaction has joined #silverstripe
902: [15:51:02] <kinglozzer> micmania1: PDF via media? Thought that was only images
903: [15:51:22] <micmania1> Not sure. Either way it shouldn't do what its doing.
904: [15:51:44] <kinglozzer> No redirection here
905: [15:51:57] <kinglozzer> Ohh wait
906: [15:52:00] <micmania1> does it insert the pdf as a link when you try to press update?
907: [15:52:01] <kinglozzer> Yeah I see it
908: [15:52:06] <micmania1> white screen?
909: [15:52:11] <kinglozzer> yep - /admin/pages/EditorToolbar/MediaForm
910: [15:52:22] <Pyromanik> dem js form controls :<
911: [15:52:28] <Pyromanik> such troublemakers!
912: [15:52:38] <kinglozzer> Works with an image
913: [15:52:48] <micmania1> pdf works nicely in 3.1 on the demo site
914: [15:52:49] <kinglozzer> But yeah it should probably block you from uploading PDFs like that :P
915: [15:53:05] <kinglozzer> It does? What happens when you click insert?
916: [15:53:06] <micmania1> It just inserts a link to the pdf with the title
917: [15:53:17] <micmania1> http://demo.silverstripe.org/admin
918: [15:53:20] <kinglozzer> Ah awesome, didn't know you could do that
919: [15:53:20] <micmania1> haeva go there
920: [15:53:37] <micmania1> yep, you can insert youtube and vimeo and stuff too
921: [15:53:51] <kinglozzer> Always thought that form was images only
922: [15:53:58] <kinglozzer> Kinda makes one of my PRs 100% pointless :P
923: [15:54:13] <micmania1> yeah, I know the one haha I was just thinking the same
924: [15:54:20] * derek-b quit (Remote host closed the connection)
925: [15:56:15] <Pyromanik> wholey shit I wrote some cool stuff once.
926: [15:56:21] <Pyromanik> I really should find the time to tidy this up :<
927: [15:56:38] <kinglozzer> micmania1: The like to the file is wrong though, it links to the actual path rather than using the file id as a shortcode
928: [15:56:44] <kinglozzer> link*
929: [15:56:52] <kinglozzer> So actually looks like a useful bug :P
930: [15:57:01] <SMaction> I have a website that is all https: I have a page that has a Youtube player on it. The problem is unless a user clicks yes on show insecure content, the player is not on the page. Here is the code for my Youtube Page and Youtube Holder Page: http://pastebin.com/kB5ZVYFX and http://pastebin.com/Ec5hTNT5. I also included what I think is the relevant portion of page.js http://pastebin
931: [15:57:02] <SMaction> .com/sSQHvbLw. I did not create this site and I am in way over my head. This site is in Silverstripe 2.4.5
932: [15:57:43] <Pyromanik> SMaction, so change http to https on youtube embeds and problem solved.
933: [15:58:44] <Pyromanik> taking a (very brief) look with half an eye over the first link there, I'd say it's a template change anywya.
934: [16:04:24] * Sj0hn quit ()
935: [16:06:35] <SMaction> Pyromanik changing to https in page.js did not work. I am sorry to be dense, could you tell me what the template change would be?
936: [16:09:24] <mento> Anyone known with PaginatedList? http://doc.silverstripe.org/framework/en/howto/pagination
937: [16:10:26] <mento> not sure how to get it to work with my current News function: http://pastie.org/8956817
938: [16:11:17] <Pyromanik> SMaction, probably RamsheadYoutubePPage.ss ?
939: [16:11:20] <muskie9> mento: is that function in your controller?
940: [16:16:18] <mento> yep
941: [16:16:21] <SMaction> Pyromanik ty
942: [16:19:00] <muskie9> something along the lines of this: http://pastie.org/8956840
943: [16:19:23] <muskie9> you need the request as that tracks the start/end for limit
944: [16:22:06] * ARNHOE quit ()
945: [16:23:12] <Pyromanik> so basically return PaginatedList::create(NewsPage::get(), $this->request)
946: [16:26:40] <mento> muskie9: yes, thats seems to do the trick
947: [16:27:33] <mento> but the nice thing about this simple function - http://pastie.org/8956817 is that i can use any num i want in my template
948: [16:27:43] * headtrip quit (Ping timeout: 245 seconds)
949: [16:28:17] <mento> the default value = 25 - but if i want to display 50 items instead, i don't need to change the function in PHP but can simply use <% loop News(50) %> instead
950: [16:28:44] <mento> somehow this wont work the paging approach, since now you have to set the setPageLength()
951: [16:29:47] <UndefinedOffset> mento it should given line 9 of what muskie9 sent you
952: [16:32:00] <mento> ah, you are right - it does - i think i need a break o.O
953: [16:32:07] <UndefinedOffset> lol
954: [16:32:18] <mento> i had too few items to display - lol
955: [16:35:02] <mento> thanks for the help muskie9 and UndefinedOffset time for weeeeeeeeekend!
956: [16:35:14] <muskie9> cheers!
957: [16:36:04] * mento quit (Quit: Page closed)
958: [16:40:11] * danfo has joined #silverstripe
959: [16:48:49] <kinglozzer> Anyone have any experience with symlinks+apache? Host is concerned that you need to restart apache when the symlink changes, but I've tested it any I don't need to
960: [16:49:05] <kinglozzer> Vhost pointing to symlink
961: [16:57:39] * ocm quit (Read error: Connection reset by peer)
962: [17:06:15] * Shrike_Finland has joined #silverstripe
963: [17:09:44] <kinglozzer> /fuckit - monday task
964: [17:09:51] <kinglozzer> Have a good weekend all
965: [17:09:55] * kinglozzer quit ()
966: [17:19:00] * basso_ quit (Quit: basso_)
967: [17:24:32] * OxFF1 has joined #silverstripe
968: [17:27:36] * muskie9 quit (Remote host closed the connection)
969: [17:35:25] * jonShape quit (Quit: leaving)
970: [17:51:37] * Shrike_Finland quit (Quit: Leaving.)
971: [18:03:14] * muskie9 has joined #silverstripe
972: [18:45:33] * bubaphex has joined #silverstripe
973: [19:12:18] * desperate quit (Ping timeout: 245 seconds)
974: [19:16:38] * bubaphex quit (Ping timeout: 240 seconds)
975: [19:19:45] * Shrike_Finland has joined #silverstripe
976: [19:59:19] * k_fish has joined #silverstripe
977: [20:12:05] * UndefinedOffset quit (Quit: Leaving.)
978: [20:24:36] * Shrike_Finland quit (Quit: Leaving.)
979: [20:52:05] * simon_w|air quit (Quit: This computer has gone to sleep)
980: [21:02:49] * muskie9 quit ()
981: [21:58:37] * fpereira1 has joined #silverstripe
982: [22:07:07] * desperatre quit (Quit: Page closed)
983: [22:16:42] * DesignerX has joined #silverstripe
984: [22:17:58] * AndroUser has joined #silverstripe
985: [22:18:16] * AndroUser is now known as Antmas
986: [22:18:28] <Antmas> Morning!
987: [22:21:48] * UncleCheese has joined #silverstripe
988: [22:40:05] * cloph is now known as cloph_away
989: [23:00:14] * Shrike_Finland has joined #silverstripe
990: [23:07:49] <Pyromanik> good moroning Antmas.
991: [23:10:02] <simon_w> Pyromanik, go to bed :p
992: [23:10:48] * Motoservo has joined #silverstripe
993: [23:10:58] <Pyromanik> yes sir mr simon_w sir.
994: [23:11:04] <Pyromanik> Exactly what I'm doing :P
995: [23:11:11] <Pyromanik> Just fell asleep in front of the TV :<
996: [23:14:55] * fpereira1 quit (Ping timeout: 252 seconds)
997: [23:16:38] * danfo quit (Quit: danfo)
998: [23:32:34] * UncleCheese quit (Quit: UncleCheese)
999: [23:34:29] * Shrike_Finland quit (Ping timeout: 240 seconds)
1000: [23:43:53] * fpereira1 has joined #silverstripe
1001: [23:45:25] * antmas has joined #silverstripe
1002: [23:45:45] <antmas> morning all
1003: [23:47:32] <Pyromanik> good moroning antmas
1004: [23:48:10] <Pyromanik> bed.
1005: [23:51:41] <antmas> :P
1006: [23:51:55] <antmas> titanfall is 50gb :(
1007: [23:58:41] * [1]antmas has joined #silverstripe
1008: [23:58:53] * antmas quit (Quit: Page closed)
1009: [23:58:53] * [1]antmas is now known as antmas

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