#silverstripe IRC Log

IRC log for 12 December 2014

All timestamps are in UTC.

1: [00:02:32] * R\w\C quit (Quit: My Mac has gone to sleep. ZZZzzz…)
2: [00:17:47] * veb quit (Quit: veb-irc: &)
3: [00:26:19] * chrisrio has joined #silverstripe
4: [00:28:21] * hailwoodnz has joined #silverstripe
5: [00:29:47] <hailwoodnz> Hey guys, what's the easiest way to essentially register a pattern shortcode? I have the requirement to automatically replace youtube urls with an embed - but they don't want to use shortcodes!
6: [00:30:34] <Colin[pi]> booo
7: [00:30:40] <Colin[pi]> what's wrong with shortcodes?
8: [00:30:53] <hailwoodnz> Ask the client. lol
9: [00:32:17] <hailwoodnz> I'm thinking to just stick a function on the controller "ContentExtended" which would do the search/replace on ->Content and return that, and then use $ContentExtra in the templates instead
10: [00:33:56] <Colin[pi]> mm that'd work I believe
11: [00:42:33] <Zauberfisch> Colin[pi] antmas: used IIS for a while. meh
12: [00:42:46] <Zauberfisch> its ok, but certainly not better than apache
13: [00:44:18] <Zauberfisch> hailwoodnz: yeah, I would probably do it the same waya
14: [00:54:00] * veb has joined #silverstripe
15: [00:54:02] * veb quit (Changing host)
16: [00:54:03] * veb has joined #silverstripe
17: [00:54:24] * veb is now known as vebb
18: [00:54:29] * vebb is now known as veb
19: [00:55:15] * veb_veb_VEB has joined #silverstripe
20: [00:55:22] * Colin[pi] is now known as Colin[pi][a]
21: [00:55:50] * veb_veb_VEB quit (Client Quit)
22: [00:59:15] * veb quit (Ping timeout: 272 seconds)
23: [01:10:40] <antmas> WHY ARE YOU MY CLARITY
24: [01:22:54] * spronk2 has joined #silverstripe
25: [01:32:33] <spronk2> ugh
26: [01:32:37] <spronk2> fuck composer is shitty someitmes
27: [01:40:58] <antmas> spronk2: whatsup?
28: [01:41:02] <spronk2> ugh
29: [01:41:11] <spronk2> composer require (package) --dev -vvv
30: [01:41:11] <spronk2> =
31: [01:41:13] <spronk2> 10 minutes of
32: [01:41:19] <spronk2> Reading /Users/keith/.composer/cache/repo/https---packagist.org/provider-moontoast$math.json from cache
33: [01:41:32] <spronk2> (plus another few million packages)
34: [01:41:35] <antmas> sounds like npm
35: [01:41:36] <spronk2> Y U NEED READ OTHER PACKAGES I JUST WANT INSTALL ONE!
36: [01:42:35] * antmas just spent 6 hours trying to get a validator text to not be set to visible: hidden
37: [01:42:47] <spronk2> bleugh
38: [01:42:47] <antmas> fucking ASP
39: [01:43:42] <antmas> turns out calling a method to set an attribute is a bit retarded
40: [01:47:02] * Colin[pi][a] is now known as Colin[pi]
41: [01:47:37] <antmas> omg
42: [01:47:41] <antmas> ryan isn't here
43: [01:47:44] <antmas> o.O
44: [01:47:51] <antmas> WHO WILL PROVIDE THE GIFS
45: [01:53:42] <mahfuz> Hey Guys. I am trying to use the Grouping lists of records as per this doc - http://doc.silverstripe.org/framework/en/howto/grouping-dataobjectsets/ Its working fine but can I pass parameter to the getGroupedModules() like a value of 5 <% loop $GroupedModules(5).GroupedBy(TitleFirstLetter) %>
46: [01:53:43] <Tanger> Hey guys, I'm editing a record via a gridfield, but when I'm on the edit screen, I seem to have no access to the underlying record. It pulls in and saves the data fine, but I can't access $this->{property} in the actual code
47: [01:55:52] <simon_w|work> Tanger, and where's this code running?
48: [01:57:17] <Tanger> simon_w: getCMSFields.
49: [01:58:26] <Colin[pi]> antmas: http://i.imgur.com/laxsJHr.gif
50: [01:58:59] <antmas> Colin[pi]: oh my got that would be the most epic 2 pets to have
51: [01:59:04] <spronk2> :D
52: [01:59:37] <Tanger> Waaait, hold on. I think I know why
53: [01:59:58] * micmania1 quit (Quit: micmania1)
54: [02:01:48] <Colin[pi]> this reminds me of the new SS site launch: http://i.imgur.com/xGFisN3.gif
55: [02:02:25] <mahfuz> Can I pass a value to a function like this in a template - <% loop $GroupedModules(5).GroupedBy(TitleFirstLetter) %>
56: [02:03:21] <antmas> Colin[pi]: oohhhhh harsh :P
57: [02:03:25] <Colin[pi]> :D
58: [02:03:28] * gelignite quit (Quit: http://bit.ly/nkczDT)
59: [02:03:54] <Colin[pi]> antmas: you gotta admit, that was a pretty damn funny day to be in here
60: [02:12:18] <hailwood> Hey guys, in my config.yml file I have SSViewer:
61: [02:12:18] <hailwood> rewrite_hash_links: false
62: [02:12:35] <hailwood> but things like <a href="#down">down</a> are still ending up as /#down. Any ideas why?
63: [02:13:11] <hailwood> It's working fine on my local copy (hate that statement). but it's not taking effect on live!
64: [02:14:32] <antmas> Colin[pi]: oh yeah
65: [02:14:36] <antmas> it was pretty awesome
66: [02:14:37] <antmas> :D
67: [02:15:07] <Colin[pi]> antmas: yeah SS folks were like: http://i.imgur.com/2WWe6Dv.png
68: [02:15:27] <Colin[pi]> antmas: UC was all like http://i.imgur.com/UZQSs.gif
69: [02:15:32] <antmas> hahahaha
70: [02:15:43] <Colin[pi]> IRC folks were like: http://i.imgur.com/uyjM4.gif
71: [02:16:28] <Tanger> Ok, new question. Currently I set a relationship to the page that contains the gridfield that managed it on the Pages CMSFields, using "$config->getcomponentByType('GridFieldDetailForm')->setFields($do->getCMSFields())". However, when I edit or create a new DO, I only have access to the page ID that I set
72: [02:18:31] <spronk2> lawl @ ss.org launch
73: [02:19:30] <Colin[pi]> spronk2: like a train wreck I couldn't look away from
74: [02:19:35] <Colin[pi]> ;D
75: [02:19:47] <spronk2> yerp
76: [02:19:53] <Colin[pi]> funny also because we've pretty much all been in that situation before
77: [02:19:55] <Colin[pi]> HAHA THIS IS FINE
78: [02:20:04] <Colin[pi]> *world disintegrating around us*
79: [02:20:36] <spronk2> lawlmm
80: [02:20:45] <hailwood> Anyone know why rewrite_hash_links: false wouldn't be working on our prod site?
81: [02:23:37] <antmas> Colin[pi]: haha yeah
82: [02:23:57] <antmas> it's when you quickly sneak off to the bathroom and hope when you come back that EVERYTHING IS FINE
83: [02:24:14] <Colin[pi]> antmas: had things like that happen with linux servers before... like, they work great when they work... very reliable
84: [02:24:16] <Colin[pi]> but
85: [02:24:21] <Colin[pi]> when things go wrong on linux
86: [02:24:26] <Colin[pi]> they go EXTREMELY wrong
87: [02:24:56] <antmas> yeah pretty much
88: [02:24:58] <Colin[pi]> had the file system shit itself once on a server, that was fun... thank fuck for backup
89: [02:25:34] <Kingy> fuck
90: [02:25:43] <Kingy> trademe now take $39 off your account for withdrawing
91: [02:26:16] <antmas> Kingy: for what?
92: [02:26:22] <antmas> cars?
93: [02:26:24] <Kingy> yeh
94: [02:26:37] <antmas> I think that's always been that for cars?
95: [02:27:36] <Kingy> dano
96: [02:28:07] * Vanny quit (Quit: Page closed)
97: [02:30:27] <antmas> farrrkin hell sharepoint is expensive
98: [02:31:29] <antmas> content queries is the only part we need of the enterprise level licence
99: [02:31:36] <antmas> out of 150+ features
100: [02:31:56] <antmas> and only having that one equates to a difference of $36,000
101: [02:32:05] <antmas> p/a
102: [02:32:43] <Colin[pi]> ouch
103: [02:34:09] <antmas> retarded
104: [02:43:03] * glenn-bautista1 quit (Quit: Leaving.)
105: [02:47:03] <spronk2> :|
106: [02:49:49] * antmas_ has joined #silverstripe
107: [02:52:10] * antmas quit (Ping timeout: 246 seconds)
108: [02:52:53] * antmas_ is now known as antmas
109: [02:53:11] * hailwood quit (Quit: Leaving)
110: [03:14:42] <Kingy> peace out wellington
111: [03:15:45] <antmas> Kingy: ?
112: [03:16:11] <Kingy> not coming back
113: [03:16:18] <Kingy> well i guess im flying out of here but still
114: [03:17:03] <antmas> aren't you here for another week?
115: [03:17:40] <Kingy> not wellington
116: [03:18:27] <MichalKleiner> pis
117: [03:18:31] <MichalKleiner> I mean.. peace
118: [03:20:02] * oetiker has joined #silverstripe
119: [03:20:42] <Kingy> jeez whos the person with "Mossad Ops" as their AP on the train
120: [03:21:17] <antmas> oh true
121: [03:21:54] * jordanmk has joined #silverstripe
122: [03:22:02] <Kingy> antmas: yep shits got real lol
123: [03:22:59] <jordanmk> hey guys, anyone here every tried to implement unique page URLs for dataobjects? e.g. how Facebook profiles can have a URL like facebook.com/username_here
124: [03:23:50] <MichalKleiner> what about data-object-as-page module?
125: [03:24:44] <MichalKleiner> https://github.com/arambalakjian/DataObject-as-Page
126: [03:25:25] * antmas quit (Ping timeout: 246 seconds)
127: [03:26:32] * spekulatius quit (Quit: Leaving)
128: [03:28:50] <jordanmk> i can't tell from the docs whether it lets you just have URLs for data objects like site.com/products/5, or if you can have unique page URLs for the data objects like site.com/products/product_name
129: [03:29:22] <jordanmk> do you know off the top of your head, or should i do some experimenting with the module?
130: [03:40:41] <MichalKleiner> well this allows you to use dataobjects in your sitetree with url slug or whatever routing you implement
131: [03:40:50] * spronk2 quit (Quit: I may need a longer sleep timer...)
132: [03:40:55] <MichalKleiner> so having site.com/nice-product is available out of the box
133: [03:41:18] <MichalKleiner> as well as if you put it below /products page in the sitetree it will be /products/nice-product
134: [03:46:34] * JeremyRoundill quit (Remote host closed the connection)
135: [03:47:19] * MichalKleiner having beer o'clock :)
136: [03:49:01] * wracu quit (Quit: Leaving)
137: [04:20:26] * CodeTrap1 has joined #silverstripe
138: [04:20:45] * cloph_away has joined #silverstripe
139: [04:20:46] * cloph quit (Ping timeout: 244 seconds)
140: [04:22:44] * CodeTrap quit (Ping timeout: 245 seconds)
141: [04:32:39] * babak quit (Ping timeout: 244 seconds)
142: [04:33:09] * Ryan-Toast has joined #silverstripe
143: [04:33:33] * babak has joined #silverstripe
144: [04:36:34] * r_hector quit (Quit: Leaving.)
145: [04:41:58] * praveen has joined #silverstripe
146: [04:52:05] * chrisrio quit (Quit: Page closed)
147: [04:52:36] * Ryan-Toast quit (Quit: Ryan-Toast)
148: [04:58:44] * Kingy is now known as Kingy[a]
149: [04:59:21] <praveen> I am getting error in YAML declaration of allowed children here is the paste http://sspaste.com/paste/show/548a70ab7b533
150: [05:00:05] <praveen> A YAML file cannot contain tabs as indentation
151: [05:04:15] * Stomach quit (Quit: zzz)
152: [05:07:13] <MichalKleiner> is the error message not clear enough? make sure you indent by spaces all the time and the amout of spaces is the same per level.. I see 3 spaces before allowed_children and four on next level which is not correct
153: [05:09:38] * Cheddam quit (Quit: Textual IRC Client: www.textualapp.com)
154: [05:16:20] <praveen> Thanks MichalKleiner
155: [05:17:01] <MichalKleiner> did it help? sorry if it sounded a bit arrogant, had a tough day
156: [05:27:33] * Shrike_Finland has joined #silverstripe
157: [05:32:24] <praveen> yes
158: [05:32:43] <praveen> I am not getting error though.
159: [05:33:20] <praveen> Add Page still showing all the childrens for virtual page
160: [05:35:25] <praveen> virtual page is not intuitive
161: [05:35:38] <praveen> This cannot be done with virtual pages
162: [05:35:54] <praveen> we cannot restirct the pages that cannot be allowed to copied
163: [05:36:59] <praveen> virtual page doesnot copy the allowed childrens from the copied page
164: [05:37:24] <praveen> and other properties too
165: [05:37:35] <praveen> like custom fields
166: [05:39:42] * Colin[pi] quit ()
167: [05:39:50] * Olliepop quit (Ping timeout: 246 seconds)
168: [05:40:09] <praveen> And also stuck with sitetree it colapse when open to edit from the frontend
169: [05:40:25] <praveen> I trying to debug
170: [05:44:18] <praveen> I'm trying to debug
171: [05:45:04] * mahfuz quit (Ping timeout: 246 seconds)
172: [05:46:48] <praveen> I put the allowed childred yaml inside mysite/_config/config.yaml . Have I put it in right place?
173: [05:48:51] <MichalKleiner> virtual page is really just a redirect
174: [05:49:06] <praveen> No
175: [05:49:16] <praveen> it copied the content
176: [05:49:28] <praveen> it copies the content
177: [05:49:43] <praveen> it is not redirecting
178: [05:50:12] <MichalKleiner> I mean more like a proxy.. to be able to put it in the tree somewhere and not copy the content over
179: [05:50:36] <MichalKleiner> I tend to believe it still follows rules for the actual content page about all children and stuff
180: [05:51:05] <MichalKleiner> you know what I mean?
181: [05:51:16] <MichalKleiner> something like a symlink
182: [05:51:54] <MichalKleiner> but smarter with the ability to overwrite parts of the content
183: [05:53:13] <praveen> yes it avoids creation of duplicate page
184: [05:54:23] <praveen> If I have condition in template and virutal page fails because the properties refered to copied page
185: [05:54:46] * willr has joined #silverstripe
186: [05:55:54] <praveen> Adding a new page under virtual page showing me all the page types
187: [05:56:29] <praveen> it is not restricting even though I added allowed-childrens to config
188: [06:01:06] * Shrike_Finland quit (Quit: Leaving.)
189: [06:03:19] * Stomach has joined #silverstripe
190: [06:03:38] * Stomach has left #silverstripe
191: [06:14:44] * CodeTrap1 quit (Quit: CodeTrap1)
192: [06:16:44] <praveen> can anybody can help with Sitetree issue.
193: [06:16:50] <praveen> When Page loads in the admin to edit
194: [06:17:00] <praveen> treview is called with all the top level sitetree
195: [06:17:13] <praveen> and the node which I am trying to edit is in 4 the level
196: [06:17:20] <praveen> LeftAndMain.Tree.js updateFromEditForm fails to find the node calls the updateNodesFromServer
197: [06:17:39] <praveen> ajax call to updatetreenodes is not getting the all the top level parents of id sent
198: [06:18:04] <praveen> can anybody help with Sitetree issue.
199: [06:36:06] * jordanmk quit ()
200: [06:39:09] <willr> praveen what version of SilverStripe?
201: [06:39:27] * Shrike_Finland has joined #silverstripe
202: [06:39:52] <praveen> I am using 3.1
203: [06:40:04] <praveen> treview is not loading all the nodes
204: [06:40:21] <praveen> it is limited by $node_threshold_leaf and $node_threshold_total
205: [06:41:02] <praveen> When I check in localsystem installation it is working fine
206: [06:41:38] <praveen> I am having a problem with our production website which has more than 8000pages
207: [06:41:58] <praveen> we are using cms internal
208: [06:42:10] <praveen> it means intranet
209: [06:43:36] <praveen> admin/pages/updatetreenodes is not gettting the node with all the parents till the top evel
210: [06:43:43] <praveen> admin/pages/updatetreenodes is not gettting the node with all the parents till the top level
211: [06:46:38] <praveen> updatetreenodes should have all the parentnode if it not exists
212: [06:47:10] <praveen> currently trying to update only the missing node not its parent
213: [06:48:08] * simon_w|work quit (Quit: Ping timeout: your mum)
214: [06:48:55] <praveen> willr : is it helping what I am trying to say
215: [06:49:48] <willr> No sorry. Treeview will limit your tree view but it should provide an option to load more
216: [06:50:58] * simon_w|air quit (Quit: Ping timeout: your mum)
217: [06:52:10] * Shrike_Finland quit (Quit: Leaving.)
218: [06:52:24] <praveen> We have large number of pages
219: [06:52:48] <praveen> I am trying to access a page which is under 4 th level
220: [06:53:34] <praveen> Initially when treeview is called page I'm trying to edit is not loaded
221: [06:54:34] <praveen> then LeftAndMain.Tree.js self.updateFromEditForm(); is called onload
222: [06:55:03] <praveen> are you getting
223: [06:55:07] <praveen> till here
224: [06:55:26] <praveen> I just tyring to explian the flow
225: [06:56:17] <praveen> I'm tyring to explian the flow
226: [06:58:05] <praveen> can you look into LeftAndMain.Tree.js self.updateFromEditForm();
227: [06:58:43] <praveen> when 4 level node is not present
228: [06:59:07] <praveen> it is calling this.updateNodesFromServer([id]); to updatetreenodes
229: [06:59:26] <MichalKleiner> does it throw some error in the JS console in browser?
230: [06:59:32] <praveen> It is trying to update only the 4th level node not its parent
231: [06:59:39] <praveen> no
232: [06:59:52] <praveen> Since it does not find the node
233: [07:00:04] <praveen> it calls the getsubtree with id 0
234: [07:00:24] <praveen> so the sitetree collapse again
235: [07:00:37] <willr> Whereas the ID should be the the 3rd level parent?
236: [07:00:56] <praveen> all the above parent node which is missing
237: [07:01:36] <praveen> even 2n level parent may not exist
238: [07:01:46] <praveen> even 2nd level parent may not exist
239: [07:02:30] <praveen> getSiteTreeFor say it loads the all the top leve pages and limits child pages based on the threshold
240: [07:02:44] <praveen> getSiteTreeFor say it loads the all the top level pages and limits child pages based on the threshold
241: [07:04:59] <praveen> Is it working correctly or I'm wrong?
242: [07:07:32] <willr> If it’s closing your tree then no doesn’t sound like it’s working correctly
243: [07:10:19] <praveen> This can be recreated on local by changing the threshold. I will try it and update the issue on github https://github.com/silverstripe/silverstripe-cms/issues/1135
244: [07:11:25] <willr> praveen, your best bet is to create an example and link to a sql dump so we can setup the same tree as you
245: [07:11:48] <praveen> ok
246: [07:12:38] <praveen> I wll try But I'm not sure it will be recreated on localsystem
247: [07:13:18] <praveen> I will try But I'm not sure it will be recreated on localsystem
248: [07:13:25] <MichalKleiner> sorry I'm off now.. have a good weekend everyone
249: [07:13:30] * MichalKleiner is now known as MK_away
250: [07:20:45] <willr> So you only see it in production?
251: [07:22:18] * wmk has joined #silverstripe
252: [07:30:43] <praveen> Yes
253: [07:31:25] <praveen> Company Intranet
254: [07:32:25] <praveen> Upgraded Showdown to 3.1 https://github.com/blpraveen/silverstripe-showdown
255: [07:33:22] <praveen> Stiil working on adding edit tool bars like https://github.com/iphands/Meltdown
256: [07:33:42] <praveen> Still working on adding edit tool bars like https://github.com/iphands/Meltdown
257: [07:34:25] <praveen> I get some time on weekend to do this. So I'm going to try it
258: [07:35:42] <praveen> we put a badshow on upgradation release and setback again to 2.4
259: [07:36:05] <praveen> manily because of the remove function
260: [07:36:22] <praveen> it was deleting all the imporant pages
261: [07:36:50] <praveen> remove function with DataObjectset means unset the array item
262: [07:36:55] * Stomach_ has joined #silverstripe
263: [07:37:25] <willr> Yes you’ll need to convert your DataList to be an ArrayList if you want to modify outside of SQl
264: [07:37:53] <praveen> On upgradation it was left as it was there
265: [07:38:56] <praveen> Now I have changed it to ArrayList
266: [07:39:28] <praveen> I mean "it was deleting all the important pages"
267: [07:40:20] <wmk> praveen, sounds bad.
268: [07:40:22] <Eliseth> Morning
269: [07:40:29] <praveen> I'm feeling guilty for noticing it on dev or stage
270: [07:40:34] <wmk> that's what testing environments are for
271: [07:40:45] <wmk> hi Eliseth
272: [07:44:37] <praveen> we never noticed it on dev because the DataList getting data on some active condition. The data we copied to dev was old and the pages might have been inactive or we never noticed it on dev
273: [07:45:43] <praveen> we only came to know about the problem when it was on live
274: [07:48:47] <wmk> oops
275: [07:49:08] <wmk> it was ->remove() ??
276: [07:49:14] <praveen> yes
277: [07:52:02] <wmk> praveen, thanks for pointing at this, just added two comments in my 2.4->3.1 update project
278: [07:52:16] <wmk> will save me some headache hopefully
279: [08:01:18] * lerni_ has joined #silverstripe
280: [08:02:06] * Stomach_ quit (Quit: zzz)
281: [08:02:56] * willr quit (Quit: willr)
282: [08:04:23] * Werner_2_ has joined #silverstripe
283: [08:06:25] * Shrike_Finland has joined #silverstripe
284: [08:14:44] * wmk quit (*.net *.split)
285: [08:18:07] * Stomach_ has joined #silverstripe
286: [08:20:11] * arnhoe has joined #silverstripe
287: [08:32:00] * Werner_2_ is now known as wmk
288: [08:39:10] * DimiStripe has joined #silverstripe
289: [08:50:03] * Stomach_ quit (Quit: zzz)
290: [08:54:45] * Tanger quit (Quit: Tanger)
291: [09:08:59] * willr has joined #silverstripe
292: [09:18:00] * lerni_ quit (Remote host closed the connection)
293: [09:20:08] * lerni_ has joined #silverstripe
294: [09:20:55] * lerni_ quit (Remote host closed the connection)
295: [09:22:28] * lerni_ has joined #silverstripe
296: [09:27:15] * praveen quit (Quit: Page closed)
297: [09:28:02] * Pyhngovrk has joined #silverstripe
298: [09:28:23] * praveen_ has joined #silverstripe
299: [09:29:04] <Pyhngovrk> wmk: tell me about German dances
300: [09:29:16] <Pyhngovrk> /Barvarian
301: [09:34:13] <Pyhngovrk> nom nom nom, scottish water
302: [09:35:40] <wmk> Pyhngovrk, ???
303: [09:37:26] <wmk> hangover?
304: [09:40:14] * Guits has joined #silverstripe
305: [09:41:41] * jeroenem has joined #silverstripe
306: [09:50:48] <Pyhngovrk> wmk: yup.
307: [09:50:57] <Pyhngovrk> went to a bier keller last night.
308: [09:51:01] <wmk> ok
309: [09:51:37] <wmk> if ($Py->hasHeadache()) {$beer->setQuality('bad'); }
310: [09:51:42] <Pyhngovrk> There were steins, and dancing.
311: [09:51:50] <wmk> steins?
312: [09:52:01] <Pyhngovrk> I wondered how German the 'German' fellow from Birmingham was.
313: [09:52:06] <Pyhngovrk> with his dances
314: [09:52:13] <wmk> dunno
315: [09:53:01] <Pyhngovrk> http://www.firebox.com/product/6201/Giant-Beer-Stein?aff=1108&gclid=CI6FitidwMICFdLItAodMTgAgQ
316: [09:54:06] <Eliseth> http://www.therepublicsquare.com/wp-content/uploads/2014/08/Waitress-photo1.jpg
317: [09:55:08] <wmk> ah, stein = sth like jar ?
318: [09:55:15] <wmk> Krug in german
319: [09:55:23] * wmk calles his "Krug" always Manfred
320: [09:55:39] <Pyhngovrk> wmk: is there such a thing where one lad picks up another by his ankles and swings him through the legs and gets the upside down fellow to slap him on the arse?
321: [09:55:58] <wmk> yup.
322: [09:56:03] <wmk> sth like that
323: [09:56:03] <Pyhngovrk> Oh, ok then.
324: [09:56:12] <Pyhngovrk> oh wait, sthein?
325: [09:56:13] <wmk> kind of "schuhplattln"
326: [09:56:26] <wmk> no, sth = something
327: [09:56:28] <Pyhngovrk> yeah I dunno why we call it a stein if that's not the German word :<
328: [09:56:40] <Pyhngovrk> wmk: ah
329: [09:58:31] <wmk> Pyhngovrk, something like that? https://www.youtube.com/watch?v=00M6D30ABLI
330: [09:59:37] * gelignite has joined #silverstripe
331: [10:00:01] <Pyhngovrk> wmk: not quite
332: [10:00:15] <wmk> omfg, there is also a gay schuhplattler dancing group
333: [10:00:24] <Pyhngovrk> lol
334: [10:02:13] <wmk> found it: https://www.youtube.com/watch?v=OYTpFXQXFys
335: [10:02:20] <wmk> around 0:30
336: [10:05:34] <Pyhngovrk> Yeah, that's the one wmk.
337: [10:05:45] <Pyhngovrk> Phew. Glad to know it wasn't just me then.
338: [10:07:05] <Pyhngovrk> also, lol @ that chap in the middle (the standing one)'s expression on his face
339: [10:07:12] <Pyhngovrk> when he lifts the other guy up
340: [10:07:21] <wmk> ;)
341: [10:07:30] <wmk> so you danced with him an got hitten?
342: [10:08:00] <Eliseth> Anyone that can help me with custom login thingy?
343: [10:08:37] <Pyhngovrk> wmk: yeah, except it wasn't quite like that
344: [10:08:44] <Pyhngovrk> because I had no clue what was going on
345: [10:08:48] <Pyhngovrk> :<
346: [10:09:04] <Pyhngovrk> Eliseth: how such?
347: [10:10:24] <Eliseth> I have: class Customer extends DataExtension with extra fields: clientID & clientPassword. Customer extends Member
348: [10:10:35] <Eliseth> I need to use these custom fields for login checks.
349: [10:10:43] <Pyhngovrk> wmk: got me up on stage, told me he was going to swing me through his legs so I could slap his arse, and that I needed to bend over and touch my toes. I was just all 0_0
350: [10:11:09] <wmk> any video of this dance with you?
351: [10:11:12] <Eliseth> I got: private static $unique_identifier_field = 'clientID'; in my Customer.php
352: [10:11:49] <Eliseth> And willmorgan1 pointed out yesterday that I'll need to write my own Authenticator
353: [10:12:01] <Eliseth> But I have just no clue on how to do that ><
354: [10:12:03] <wmk> yup
355: [10:12:20] <Eliseth> Or where to start for that matter
356: [10:12:40] <wmk> see MemberAuthenticator for a start
357: [10:12:51] <wmk> subclass this or Authenticator to get your own logic in it
358: [10:13:20] <wmk> i once imported users from a django installation, wrote something like that
359: [10:13:25] <Eliseth> I checked MemberAuthenticator, and that second line is abacadabra for me :)
360: [10:13:46] <Eliseth> "subclass this or Authenticator to get your own logic in it" <- that line
361: [10:13:51] <wmk> you can even implement your own password encryption method
362: [10:14:12] <wmk> this way it was possible that the django users could use their old password until they changed it, then it was saved with ss method
363: [10:14:30] <wmk> see MemberAuthenticator
364: [10:14:31] <Eliseth> Well, the passwords in the clientPassword field are encrypted and synced everyday with some external system
365: [10:14:51] <wmk> is it the same encryption method like SS uses?
366: [10:14:54] <Eliseth> No
367: [10:15:11] <Eliseth> Nor are they allowed to change it
368: [10:15:33] <wmk> then you have to tell SS how to encrypt the input
369: [10:15:43] <wmk> so it can check if the user has the correct pw
370: [10:15:51] <Eliseth> from the login form you mean?
371: [10:15:55] <wmk> yup
372: [10:16:11] <Eliseth> Yes
373: [10:16:12] <wmk> in DB there are two fields saved: the encrypted PW and the encryption method
374: [10:16:29] <simon_w> Please, hash passwords. Don't encrypt them.
375: [10:17:17] <Eliseth> I have no influence on this.
376: [10:18:49] <Eliseth> The problem I'm struggling with is: I can follow the logic on what to do; I just can't figure out on how to do it...
377: [10:20:45] <Pyhngovrk> wmk: nope
378: [10:21:15] <Pyhngovrk> wmk: one of the lasses that were there just come in and told me there was a video/pictures on facebook... but it was from the stage on the other side, not of me.
379: [10:21:23] <Eliseth> Srry if I'm asking stupid questions, I'm learning...
380: [10:22:03] <wmk> Eliseth, possibly we say encryption to hash...
381: [10:22:20] <Eliseth> what?
382: [10:22:34] <wmk> possibly the pws are hashed, not encrypted.
383: [10:23:13] <Eliseth> MD5
384: [10:23:16] <wmk> simon_w, so SS's PasswordEncryptor is more kind of a PasswordHasher?
385: [10:23:17] <Pyhngovrk> eww, what'
386: [10:23:25] <Pyhngovrk> Eliseth: rainbow table all fo them.
387: [10:23:27] <simon_w> wmk, yes
388: [10:23:36] <wmk> so hash and salt
389: [10:23:57] <wmk> Pyhngovrk, german word "hash" means dope
390: [10:24:09] <Eliseth> Holy crap, you guys are losing me here
391: [10:24:18] <wmk> maybe that's why there are so weird chars in db saved for passwords
392: [10:24:21] <wmk> *duck*
393: [10:24:38] <wmk> Eliseth, just md5 for a password is totally insecucre
394: [10:24:47] <Pyhngovrk> wmk: yeah, hash is a derivitive from the marijuana plant
395: [10:24:58] <wmk> cause "mypassword" results always in the same md5 hash
396: [10:25:00] <Pyhngovrk> people smoke it
397: [10:25:08] <Eliseth> wmk: Yes, I know, they know. I guess they just don't care. I'm told to shut up and use it.
398: [10:25:26] * Shrike_Finland quit (Quit: Leaving.)
399: [10:25:27] <wmk> so you can create a "rainbow table", lookup the hash and you have the password
400: [10:25:51] * Shrike_Finland has joined #silverstripe
401: [10:25:52] <Pyhngovrk> wmk: http://en.wikipedia.org/wiki/Hashish
402: [10:26:07] <wmk> yup. same word here
403: [10:27:06] <simon_w> Eliseth, so, what you need is a subclass of MemberAuthenticator, where you override authenticate_member() to check for your password field instead of the default one
404: [10:27:21] <Eliseth> And I do that in my Customer.php?
405: [10:27:34] <simon_w> Well, you'd put it somewhere else
406: [10:27:42] <simon_w> It's a different class
407: [10:27:57] <simon_w> And then you need to register it (Authenticator::add or somesuch)
408: [10:28:09] <Pyhngovrk> wmk: Eliseth what simon_w means is that encrypting is a two way thing, you can encode AND DECODE something that is encrypted. Hashing is one way, but unique.
409: [10:28:20] <Pyhngovrk> so you re-hash and then check if it matches the stored one.
410: [10:28:26] <Pyhngovrk> but you cannot decode it.
411: [10:28:28] <wmk> ok
412: [10:28:42] <simon_w> Pyhngovrk, encoding is something different :p (and hashes aren't unique)
413: [10:28:53] * simon_w may have spent an entire semester on this
414: [10:29:42] <Pyhngovrk> simon_w: yeh, I'm ... semi aware of this
415: [10:30:06] <Pyhngovrk> Mostly becasue you've semi educated me previously :P
416: [10:30:18] <Pyhngovrk> and I know hashes don't have to be unique.
417: [10:31:03] <Eliseth> So... something like...
418: [10:31:22] <Eliseth> CustomerAuthenticator.php: class CustomerAuthenticator extends MemberAuthenticator{} ?
419: [10:32:52] <Eliseth> And in there I put: protected static function authenticate_member($data, $form, &$success) {} with my custom check code or something?
420: [10:33:11] <simon_w> Eliseth, yup
421: [10:33:48] <Eliseth> And how do I ensure that admin can still log on using silverstripe logic, or won't this override all logins, just Customer?
422: [10:35:09] * willr quit (Quit: willr)
423: [10:36:38] <Eliseth> It's amazing how much help this IRC channel is btw, thank you so much. Things I've done so far since starting this whole developing thing would have taken months more if I'd have to rely on forums for these questions...
424: [10:38:50] <Pyhngovrk> wmk: https://www.facebook.com/pages/Stein-Bier-Keller-Newcastle/512843392181563
425: [10:39:16] <Pyhngovrk> Eliseth: also, set the unique field using the config (yml)
426: [10:39:39] <Pyhngovrk> and don't subclass Member, it only leads to headache.
427: [10:40:14] <wmk> yup. just extend member, but no subclass.
428: [10:40:44] <Eliseth> errr, I thought I did that
429: [10:41:49] <wmk> Pyhngovrk, you're there in the gallery?
430: [10:43:08] * Werner_2_ has joined #silverstripe
431: [10:43:19] <Pyhngovrk> wmk: nope
432: [10:43:29] <Pyhngovrk> But that was the place
433: [10:43:35] * wmk quit (Read error: Connection reset by peer)
434: [10:43:37] <Pyhngovrk> Werner_2_: ^
435: [10:44:18] <Werner_2_> ;)
436: [10:44:31] <Werner_2_> have to run, cu
437: [10:44:35] * Werner_2_ quit (Client Quit)
438: [10:49:27] * Shrike_Finland quit (Quit: Leaving.)
439: [11:02:17] * praveen_ quit (Quit: Page closed)
440: [11:22:39] * Kolin quit (Quit: leaving)
441: [11:22:48] * Kolin has joined #silverstripe
442: [11:23:14] * duke_ has joined #silverstripe
443: [11:23:52] <duke_> Hello guys, I am using ss 2.4 and with few of pages, I am seeing the error - This webpage has a redirect loop
444: [11:23:59] <duke_> any idea, what might be wrong
445: [11:24:33] <duke_> I guess, its .httacess, tried replacing it with default and couple of forum sugggestions too, but no luck yet
446: [11:41:48] * lerni_ quit (Remote host closed the connection)
447: [11:51:28] * veb has joined #silverstripe
448: [11:51:31] * veb quit (Remote host closed the connection)
449: [11:51:58] * willmorgan has joined #silverstripe
450: [11:52:08] * veb has joined #silverstripe
451: [11:59:29] * jyrkililja has joined #silverstripe
452: [11:59:55] <jyrkililja> Hi all!
453: [12:00:35] <jyrkililja> any ideas on how to force versioned to use live version regardless of the stage selected?
454: [12:01:23] <jyrkililja> as far as I can see https://github.com/silverstripe/silverstripe-framework/blob/3.1/model/Versioned.php#L161-182 makes it impossible to force
455: [12:12:32] * lerni has joined #silverstripe
456: [12:13:53] * lerni quit (Remote host closed the connection)
457: [12:14:00] * lerni has joined #silverstripe
458: [12:16:38] * krofek has joined #silverstripe
459: [12:19:06] * duke_ quit (Quit: Page closed)
460: [12:24:43] * lerni quit (Remote host closed the connection)
461: [12:25:40] <willmorgan> jyrkililja: use Versioned::set_reading_mode()
462: [12:29:37] * gelignite quit (Quit: http://bit.ly/nkczDT)
463: [12:33:02] <jyrkililja> willmorgan: I tried that, but if I set it to 'Live' it just reverts to Stage
464: [12:35:16] <jyrkililja> willmorgan: I mean it doesn't affect the dataquery
465: [12:47:53] <Pyhngovrk> duke... quit :<
466: [12:53:58] * toddvalentine has joined #silverstripe
467: [12:55:30] * lerni has joined #silverstripe
468: [12:55:47] <toddvalentine> Hey everyone. I am using the Pusher real time app to power a chat room. It POSTS to a route that I have set up to get member authentication. It should be returning json, but when I view my response, i get that white and blue default Getting Started page.
469: [12:56:45] * Shrike_Finland has joined #silverstripe
470: [12:57:04] <toddvalentine> I have set my method in allowed_actions and have added the correct json Content-Type onto the response. Any thoughts why I am not json back?
471: [12:57:10] * Shrike_Finland1 has joined #silverstripe
472: [12:57:54] <toddvalentine> the problem appeared to begin when I updated from 3.0 to 3.1.8
473: [12:59:52] * lerni quit (Ping timeout: 245 seconds)
474: [13:01:18] * Shrike_Finland quit (Ping timeout: 258 seconds)
475: [13:07:18] * cloph_away is now known as cloph
476: [13:13:32] * lerni has joined #silverstripe
477: [13:21:07] <toddvalentine> solved by changing my route from 'pusher/$Action' : 'PusherController' to 'pusher' : 'PusherController'
478: [13:21:13] * UndefinedOffset has joined #silverstripe
479: [13:30:32] <willmorgan> jyrkililja: I would put a debug::dump whenever the reading_mode is set to try and debug why the reading mode is being reverted
480: [13:30:42] <willmorgan> and then perhaps a backtrace
481: [13:30:46] <willmorgan> that's weird
482: [13:30:50] <Pyhngovrk> toddvalentine: what does it say?
483: [13:32:43] <Pyhngovrk> ah, never mind
484: [13:37:58] <toddvalentine> Pyhngovrk: figured it out by finding a SO entry I'd made years ago! http://stackoverflow.com/questions/15689057/routes-not-working-after-upgrade-to-3-1
485: [13:52:04] <Pyhngovrk> Ah, I see. Same subject matter even! Nice one toddvalentine
486: [13:52:14] <Pyhngovrk> (for sharing the answer)
487: [14:09:05] <jyrkililja> willmorgan: That's what I thought as well. And asking for the reading mode right after setting it returns the correct value.
488: [14:09:13] * wmk has joined #silverstripe
489: [14:09:53] * Shrike_Finland1 quit (Quit: Leaving.)
490: [14:12:10] <jyrkililja> willmorgan: I'll have to dig into it when I have more time. The setup I had was like this: query string setting ?stage=Stage, Versioned::set_reading_mode('Live'), Page::get()->sql() returning references to SiteTree, not SiteTree_Live.
491: [14:14:11] * toddvalentine quit (Remote host closed the connection)
492: [14:17:09] * utopiah_ has joined #silverstripe
493: [14:17:43] <utopiah_> hi, a friend who is managing http://www.generation-europe.eu is wondering how to stop the carousel effect
494: [14:17:54] <utopiah_> any idea on how to do that?
495: [14:22:57] * willmorgan quit (Quit: Leaving.)
496: [14:24:35] * jyrkililja has left #silverstripe
497: [14:24:51] * willmorgan has joined #silverstripe
498: [14:25:32] * jyrkililja has joined #silverstripe
499: [14:28:05] * UndefinedOffset quit (Quit: Leaving.)
500: [14:31:38] * lerni_ has joined #silverstripe
501: [14:34:00] * lerni quit (Ping timeout: 256 seconds)
502: [14:37:34] * UndefinedOffset has joined #silverstripe
503: [14:37:43] * wmk quit (Quit: nice to meet you ;))
504: [14:50:20] * lerni has joined #silverstripe
505: [14:51:57] * lerni_ quit (Ping timeout: 245 seconds)
506: [14:57:26] * muskie9 has joined #silverstripe
507: [14:58:27] * muskie9 quit (Client Quit)
508: [14:59:26] * muskie9 has joined #silverstripe
509: [15:05:01] * lerni_ has joined #silverstripe
510: [15:06:52] * lerni quit (Ping timeout: 255 seconds)
511: [15:09:33] * lerni has joined #silverstripe
512: [15:10:46] * lerni_ quit (Ping timeout: 265 seconds)
513: [15:15:12] * JanD has joined #silverstripe
514: [15:16:28] <JanD> Hi, does somebody know if there is a module which mimics the old 2.4 "To do" functionality (field on page + report "Pages with to do items")?
515: [15:18:21] * toddvalentine has joined #silverstripe
516: [15:29:42] * utopiah_ has left #silverstripe
517: [15:30:39] <Pyhngovrk> JanD: not that I'm aware of.
518: [15:31:26] <lerni> JanD https://github.com/silverstripe-labs/silverstripe-page-todo
519: [15:32:05] <lerni> no idea but github search is awsome :)
520: [15:32:08] <lerni> https://github.com/search?utf8=%E2%9C%93&q=silverstripe+todo&type=Repositories&ref=searchresults
521: [15:35:02] <Pyhngovrk> oh yeah, there we go, nice one lerni
522: [16:02:40] <JanD> Ah cool
523: [16:06:15] <JanD> I'll search GitHub instead of silverstripe.org next time ;)
524: [16:08:55] * catcher has joined #silverstripe
525: [16:13:40] <Pyhngovrk> JanD: addons is a good start, but it only catalouges things on packagist. Not all modules are there.
526: [16:14:59] * lerni quit (Remote host closed the connection)
527: [16:23:23] * arnhoe quit ()
528: [16:29:47] <JanD> Pyhngovrk: Okay, will consider this. Thanks
529: [16:29:56] * JanD quit (Quit: Page closed)
530: [16:33:27] * Pyhngovrk quit ()
531: [16:33:32] * micmania1 has joined #silverstripe
532: [16:37:45] * micmania1 quit (Ping timeout: 244 seconds)
533: [16:38:46] * jenniferaslan has joined #silverstripe
534: [16:39:36] * jenniferaslan quit (Client Quit)
535: [16:42:31] * Copperis has joined #silverstripe
536: [16:42:51] * jeroenem quit (Quit: Page closed)
537: [16:42:53] <willmorgan> pfft
538: [16:42:55] <willmorgan> modules not on packagist
539: [16:43:00] <willmorgan> who cares about those? :P
540: [16:45:43] * lerni has joined #silverstripe
541: [16:48:40] * lerni_ has joined #silverstripe
542: [16:48:40] * lerni quit (Read error: Connection reset by peer)
543: [17:06:27] * DimiStripe quit (Quit: DimiStripe)
544: [17:20:26] * r_hector has joined #silverstripe
545: [17:33:08] * lerni_ quit ()
546: [17:33:47] * gelignite has joined #silverstripe
547: [18:16:12] * MrGuits has joined #silverstripe
548: [18:18:21] * Guits quit (Ping timeout: 264 seconds)
549: [18:43:34] * Copperis quit (Remote host closed the connection)
550: [18:59:21] * Stomach has joined #silverstripe
551: [19:09:58] * willmorgan quit (Quit: Leaving.)
552: [19:26:18] * muskie9 quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
553: [19:29:20] * muskie9 has joined #silverstripe
554: [19:31:38] * willr has joined #silverstripe
555: [19:31:39] * willr quit (Client Quit)
556: [19:33:07] * webdoc has joined #silverstripe
557: [19:33:13] <webdoc> Hi
558: [19:34:24] <webdoc> How can i use fulltextsearch in ss2.4 to search from ecommerce module custom fields
559: [19:36:02] * muskie9_ has joined #silverstripe
560: [19:37:13] * muskie9 quit (Ping timeout: 260 seconds)
561: [19:37:27] <webdoc> Lets say i added Color as text field to products.php
562: [19:37:50] <webdoc> and now i wanna fulltext search to find it
563: [19:49:53] * Stomach1 has joined #silverstripe
564: [20:03:29] <webdoc> Someone have a clue how to do it?
565: [20:09:43] <muskie9_> webdoc, your just using the default SiteSearch?
566: [20:09:47] * muskie9_ is now known as muskie9
567: [20:10:15] <webdoc> Yep FulltextSearchable
568: [20:11:21] * micmania1 has joined #silverstripe
569: [20:11:38] <webdoc> Object::add_extension('Product', "FulltextSearchable('Color')"); didnt work
570: [20:12:00] <muskie9> I think that might just grab from Content... usually when I do custom fields that I want to search I setup getCustomSearchContext() http://doc.silverstripe.org/framework/en/reference/searchcontext
571: [20:12:37] <webdoc> i add it to my product.php in ecommerce module?
572: [20:12:57] <muskie9> I believe so
573: [20:13:31] <webdoc> put the product is page not dataobject
574: [20:13:35] <webdoc> will it work?
575: [20:14:32] <muskie9> Page is ultimately a descendant of DataObject so it should
576: [20:15:14] <webdoc> so i do it like here http://doc.silverstripe.org/framework/en/2.4/reference/searchcontext
577: [20:15:39] * micmania1 quit (Ping timeout: 245 seconds)
578: [20:17:47] <muskie9> are you working on 2.4 or 3.x
579: [20:18:28] <webdoc> 2.4 ecommerce 0.6
580: [20:18:47] <webdoc> i have old shop with tons of products
581: [20:18:58] <webdoc> so its easier to modify than update
582: [20:19:02] <muskie9> gotcha, then ya, I'd start there
583: [20:19:34] <webdoc> ok i try
584: [20:32:55] * MrGuits quit (Ping timeout: 265 seconds)
585: [20:33:50] <webdoc> Security token doesn't match, possible CSRF attack.
586: [20:36:03] <Stomach> you need to add a SecurityID on the form
587: [20:36:23] <Stomach> $Fields.dataFieldByName('SecurityID') in the template if its custom
588: [20:37:21] * Stomach1 quit (Quit: Leaving.)
589: [20:37:50] * Stomach1 has joined #silverstripe
590: [20:38:20] * r_hector quit (Quit: Leaving.)
591: [20:51:32] <webdoc> its becayuse i added the customsearch
592: [20:52:27] * travis-ci has joined #silverstripe
593: [20:52:28] <travis-ci> dhensby/silverstripe-framework#41 (master - f17d594 : Damian Mooyman): The build has errored.
594: [20:52:28] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/17c52c11c307...f17d594141f6
595: [20:52:28] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/43877147
596: [20:52:28] * travis-ci has left #silverstripe
597: [20:52:33] <webdoc> but the search goes broken after i add the part that i need to add to page.php
598: [21:11:34] * UndefinedOffset quit (Quit: Leaving.)
599: [21:11:50] * Stomach1 quit (Quit: Leaving.)
600: [21:14:47] * travis-ci has joined #silverstripe
601: [21:14:47] <travis-ci> dhensby/silverstripe-framework#42 (3.1 - 644f38f : Damian Mooyman): The build passed.
602: [21:14:47] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/3b3478136d49...644f38f2d6cd
603: [21:14:47] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/43877258
604: [21:14:47] * travis-ci has left #silverstripe
605: [21:20:45] * muskie9 quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
606: [21:28:43] * webdoc quit (Quit: Page closed)
607: [21:34:42] * Shrike_Finland has joined #silverstripe
608: [21:40:50] * Stomach quit (Quit: zzz)
609: [21:57:43] * toddvalentine quit (Ping timeout: 255 seconds)
610: [22:07:14] * toddvalentine has joined #silverstripe
611: [22:11:47] * Shrike_Finland quit (Quit: Leaving.)
612: [22:18:54] * jenniferaslan has joined #silverstripe
613: [22:43:29] * Azure quit (Quit: Blue Sky Fish)
614: [22:45:39] * Stomach has joined #silverstripe
615: [22:49:24] * Azure has joined #silverstripe
616: [22:52:22] * willmorgan has joined #silverstripe
617: [22:52:55] * catcher quit (Quit: Leaving)
618: [23:34:47] * toddvalentine quit ()
619: [23:44:12] * willmorgan has left #silverstripe
620: [23:49:13] * micmania1 has joined #silverstripe
621: [23:53:34] * micmania1 quit (Ping timeout: 245 seconds)

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