#silverstripe IRC Log

IRC log for 29 July 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:18] * ss-helper has joined #silverstripe
3: [00:03:39] <Nightjar> fuk, thai, what' what I need.
4: [00:03:42] <Nightjar> THAIDAY
5: [00:04:06] <Nightjar> dunno where get tho, prolly kebab instead :<
6: [00:04:11] * janneklouman-- quit (Ping timeout: 265 seconds)
7: [00:04:36] <Nightjar> aware of thai close by micmania1 ?
8: [00:20:21] <Stomach> Nightjar - goto monsoon poon
9: [00:25:17] <Nightjar> Stomach, nah bro, ya mum's a nice lady 'n all, but I'm searching for lunch.
10: [00:25:27] <Stomach> :D
11: [00:28:53] * irogue has joined #silverstripe
12: [00:34:33] <DanaeNZ> it's burgerfuel for me :D
13: [00:39:11] * vanny has joined #silverstripe
14: [00:40:12] * Stomach quit (Quit: zzz)
15: [00:40:47] <vanny> hi all, I just moved a site from 3.3 to 3.4 and scope in my include is not working. I need to call a function on my main page
16: [00:53:00] * Nightjar quit (Ping timeout: 265 seconds)
17: [00:54:48] * Stomach has joined #silverstripe
18: [01:05:01] * Stomach quit (Quit: zzz)
19: [01:10:34] <irogue> DanaeNZ: yup burgerfuel day
20: [01:13:30] * Stomach has joined #silverstripe
21: [01:15:31] * DanaeNZ quit (Remote host closed the connection)
22: [01:16:06] * DanaeNZ has joined #silverstripe
23: [01:16:51] * Nightjar has joined #silverstripe
24: [01:19:46] * DanaeNZ quit (Remote host closed the connection)
25: [01:20:03] * DanaeNZ has joined #silverstripe
26: [01:22:50] * kerozene has joined #silverstripe
27: [01:36:33] * vanny quit (Quit: Page closed)
28: [01:58:21] * lietzmk has joined #silverstripe
29: [02:12:24] * micmania2 has joined #silverstripe
30: [02:12:44] * micmania1 quit (Read error: Connection reset by peer)
31: [02:12:45] * micmania2 is now known as micmania1
32: [02:18:42] * janneklouman-- has joined #silverstripe
33: [02:23:03] * janneklouman-- quit (Ping timeout: 258 seconds)
34: [02:28:24] <DanaeNZ> so when is it wine'o'clock
35: [02:30:42] <ss23> It's always wine-o-clock
36: [02:43:51] <DanaeNZ> woooo
37: [03:00:35] <lietzmk> I have no wine to celebrate
38: [03:00:55] <ss23> I could get a bottle on the way home
39: [03:04:01] <lietzmk> I'm I suppose to check the Security Token on every form submission? Or Does that happen automatically?
40: [03:04:24] <ss23> lietzmk: Automatic :)
41: [03:05:17] <lietzmk> what if its an ajax form?
42: [03:05:34] <ss23> If you have it already set up, why not just modify the token and see what happens?
43: [03:06:20] <lietzmk> thats a good idea
44: [03:23:28] <lietzmk> I followed this page to create an AJAX form http://www.silverstripe.org/community/forums/general-questions/show/9813
45: [03:23:56] <lietzmk> if I change the security token it still works
46: [03:24:43] <lietzmk> so I should run security check in the form submit action
47: [03:34:38] <Nightjar> ss23, no more ops?
48: [03:35:34] <Nightjar> lietzmk, no, should be a part of the form's validation (happens before action gets called). Have you changed/are you using a custom validator?
49: [03:37:08] <Nightjar> also, that code from the forum is ... old at best.
50: [03:38:12] <Nightjar> An AJAX form is no different from a normal one, really. Only the submission method is (and thus the submitted value of the submit button form element - it's not part of the submission on ajax submissions via jQuery).
51: [03:38:27] <Nightjar> (jQuery.serialize that is)
52: [03:48:13] <lietzmk> the jquery seems to override the forms submit button, and when it loads the url on the next line the form validation is not called before the action
53: [03:48:38] <lietzmk> you said this is old, is there a better example?
54: [03:49:25] * Dan has joined #silverstripe
55: [03:50:02] <Dan> hello all!!!
56: [03:50:49] <lietzmk> hi dan
57: [03:53:06] * spronk has joined #silverstripe
58: [03:54:24] * Dan quit (Ping timeout: 250 seconds)
59: [03:57:41] <lietzmk> Nightjar, Thank you, I now understand whats going on with the JQuery Serialize
60: [04:00:06] <ss-helper> Silverstripe subsite module, how to make subsite specific members? - http://stackoverflow.com/questions/38650272/silverstripe-subsite-module-how-to-make-subsite-specific-members
61: [04:07:23] <Nightjar> lietzmk, there's a more full explanation on the jQuery API page. Something to do with being programmatic, thus no 'click' taken into account. Even if you're triggering it from 'onclick' as such.
62: [04:07:52] <Nightjar> have good weekends y'all
63: [04:07:53] <Nightjar> :>
64: [04:07:55] * Nightjar quit (Quit: Leaving)
65: [04:31:17] * Stomach quit (Quit: zzz)
66: [04:42:42] * micmania1 quit (Quit: micmania1)
67: [04:55:30] * lietzmk quit (Quit: Leaving)
68: [05:00:07] <ss-helper> Silverstripe: Page Controller Redirect Back not working - http://stackoverflow.com/questions/38650711/silverstripe-page-controller-redirect-back-not-working
69: [05:00:33] * Hailwood quit (Remote host closed the connection)
70: [05:15:48] * veb has joined #silverstripe
71: [05:20:42] * DanaeNZ quit (Quit: TIME TO FEED)
72: [05:40:29] * Stomach has joined #silverstripe
73: [05:41:51] * Stomach quit (Client Quit)
74: [06:08:57] * irogue quit (Ping timeout: 250 seconds)
75: [06:25:02] * marvanni has joined #silverstripe
76: [06:26:21] * veb is now known as vebb
77: [06:28:09] * MichalKleiner quit ()
78: [06:42:06] * janneklouman-- has joined #silverstripe
79: [06:45:33] * Stomach has joined #silverstripe
80: [06:46:34] * janneklouman-- quit (Ping timeout: 240 seconds)
81: [06:46:34] * Stomach quit (Read error: Connection reset by peer)
82: [06:46:39] * Stomach_ has joined #silverstripe
83: [06:58:19] * arnhoe has joined #silverstripe
84: [06:58:27] * Stomach_ quit (Quit: zzz)
85: [07:08:56] * swaiba has joined #silverstripe
86: [07:21:21] * arnhoe_ has joined #silverstripe
87: [07:22:07] * arnhoe quit (Ping timeout: 260 seconds)
88: [07:43:40] * deschebbs has joined #silverstripe
89: [07:46:05] * SH___ has joined #silverstripe
90: [07:46:05] <ss-helper> SH___: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
91: [07:49:10] <SH___> Hey guys I am making a very simple booking system. I am having some trouble storing prices. A product can be booked on given time period options, for example weeks, weekends etc. These period options are dataobjects related to the product. I then store a price on the relation table.
92: [07:50:49] <SH___> However I also have dataobjects called "Season" which represent for example high season (busy season). Here the prices on a product can be different than normal. How can I change prices for a product in a season?
93: [07:51:05] * kinglozzer has joined #silverstripe
94: [08:02:08] * slievr has joined #silverstripe
95: [08:03:13] * janneklouman-- has joined #silverstripe
96: [08:30:11] <ss-helper> Simple booking - db: Price variations depending on time periods and seasons - http://stackoverflow.com/questions/38654048/simple-booking-db-price-variations-depending-on-time-periods-and-seasons
97: [08:31:31] * arnhoe_ quit (Ping timeout: 250 seconds)
98: [08:35:19] * arnhoe has joined #silverstripe
99: [08:39:36] <deschebbs> Suppose that is your Question on Stackoverflow. Why you use a many_many relation between Property and PeriodOption?
100: [08:40:10] <SH___> Well I want to be able to create time periods like weekend, 1 week, 2 weeks etc only once, and then relate them to a product.
101: [08:40:25] <deschebbs> Why istnt it enought to. Property 1->n PeriodOptions 1->n Seasons?
102: [08:41:36] <deschebbs> does that mean the time Periods work on a percentage base of a certain property price?
103: [08:41:55] <SH___> No the price should always be a fixed number
104: [08:42:26] <SH___> A property costs for example 200 on a weekend, and 400 for a week
105: [08:42:50] <SH___> If its a weekend in a busy season, it could be 300 or so
106: [08:43:21] <deschebbs> then what do you mean by saing you want to create the only once?
107: [08:45:25] <SH___> well a "weekend" is a dataobject. I want to be able to "attach" it to a product and then that option will be available to the user to choose.
108: [08:45:41] <SH___> I was just trying to explain that I dont want to create these period options for each product I make
109: [08:47:05] <deschebbs> so fore some properties the price for one week could be the same as for two weeks?
110: [08:48:24] <SH___> Well sure, then you would make PeriodOption objects called "1 week" and "2 weeks". These could each have their own price on for a property
111: [08:55:37] <deschebbs> well, for each Property, a certain PeriodOptions (say 1 week) would hold a season (say high season) that holds a price. This one could be entered or calculated from business logic in entry of a property. But it is held in de DB.
112: [08:56:12] <deschebbs> in a structore like Property 1->n PeriodOptions 1->n Seasons
113: [08:56:32] <deschebbs> 1-1 Price
114: [08:56:40] <deschebbs> 1->1 Price
115: [08:57:31] <deschebbs> sorry, im thinking mor in tables at the moment.
116: [08:57:44] <deschebbs> does that make sense?
117: [08:59:43] <SH___> Hmm but wouldnt that mean that the prices for a period option would be global, and not specific for a property? Since the price would in no way be connected to the property itself?
118: [09:03:40] <deschebbs> No. The price is connected through the table relations.
119: [09:05:05] <deschebbs> Property has_many PeriodOption has_many Season has_one Price
120: [09:06:03] <deschebbs> so for every Property you can hold many Prices and for every price entry in your DB there is only one Property
121: [09:06:41] <deschebbs> any other approaches?
122: [09:10:41] <SH___> Hmm okay. But shouldnt PeriodOption has_many Season be PeriodOption many_many Seasons instead? Else a Season can only be connected to 1 periodoption
123: [09:11:55] <deschebbs> no, i could not think of an example at the moment...
124: [09:12:19] * jeremy370 has joined #silverstripe
125: [09:12:19] <ss-helper> jeremy370: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
126: [09:12:43] <SH___> ALright I'm going to give it a try. Thank you very much for your time!
127: [09:13:38] <deschebbs> okay. its flexibe but complicated.
128: [09:13:47] <jeremy370> Hi everyone :) I have an issue with the text collector for the translation. When I call http://mywebsite.localhost/dev/tasks/i18nTextCollectorTask/ I got require_once(PHPUnit/Framework/TestResult.php): failed to open stream: No such file or directory . Phpunit is installed and I can't find any solution :s
129: [09:13:52] <jeremy370> Could you help me ?
130: [09:16:03] <deschebbs> sounds like file permissions. What does the error stack say?
131: [09:17:46] <swaiba> jeremy370 just state your problem, if we can (and are reading this) we will help
132: [09:18:45] <jeremy370> Nothing more usefull : PHP Fatal error: require_once(): Failed opening required 'PHPUnit/Framework/TestResult.php' (include_path='.:/Users/jeremy/Documents/WEB/mywebsite/public/framework:/Users/jeremy/Documents/WEB/mywebsite/public/framework/parsers:/Users/jeremy/Documents/WEB/mywebsite/public/framework/thirdparty:.:') in /Users/jeremy/Documents/WEB/mywebsite/public/framework/dev/SapphireTestReporter.php on line 2
133: [09:19:38] * pweh has joined #silverstripe
134: [09:20:21] <jeremy370> http://pastebin.com/reMpEn6C
135: [09:21:11] <jeremy370> The file just doesn't exists ... I don't know why :(
136: [09:21:39] <swaiba> how are you including the php unit ? composer?
137: [09:22:23] <jeremy370> "require-dev": { "phpunit/PHPUnit": "~3.7@stable" },
138: [09:22:29] <jeremy370> (silverstripe 3.2.1 )
139: [09:22:34] <swaiba> well that is me out of ideas :(
140: [09:23:26] <jeremy370> Maybe there are some alternative ? I just need a parser on the template. I'm thinking about writing it myself if I don't find any solution :s
141: [09:24:30] <kinglozzer> jeremy370: The only alternative I know of is Zauberfisch's https://github.com/Zauberfisch/silverstripe-better-i18n
142: [09:24:38] <kinglozzer> I've not used it personally, though :)
143: [09:26:18] <jeremy370> Yeah, I already try it but : " Could not find package zauberfisch/silverstripe-better-i18n at any version for your minimum-stability (stable). Check the package s pelling or your minimum-stability "
144: [09:26:40] <jeremy370> oh, maybe it's not possible with composer ?
145: [09:30:16] <janneklouman--> it should be available through composer
146: [09:30:44] <jeremy370> I add it manually by downloading the archive, but I got the same error about this require_once
147: [10:04:34] <pweh> jeremy370, hello utiera
148: [10:07:15] * deschebbs quit (Quit: Konversation terminated!)
149: [10:14:21] <Zauberfisch> jeremy370: set minimum-stability to dev and add "prefer-stable": true
150: [10:15:13] <ss-helper> SilverStripe edit gridfield success message on save - http://stackoverflow.com/questions/38611914/silverstripe-edit-gridfield-success-message-on-save
151: [10:17:15] <Zauberfisch> there is no stable release of that module, and there might never be. it's more a hack fix until silverstripes i18n works properly
152: [11:12:51] * gelignite has joined #silverstripe
153: [11:21:24] <SH___> Isnt there a way in Silverstripe to make the template language available in javascript files?
154: [11:22:42] <janneklouman--> Requirements::javascriptTemplate(
155: [11:22:42] <janneklouman--> 'googlemaps/javascript/GoogleMap.js',
156: [11:22:42] <janneklouman--> $vars
157: [11:22:48] <janneklouman--> Whops
158: [11:22:55] <janneklouman--> See this SH___ https://github.com/i-lateral/silverstripe-googlemaps/blob/master/code/extension/GoogleMapController.php
159: [11:23:05] <janneklouman--> Line 44
160: [11:23:15] <SH___> Oh cool, thanks!
161: [11:23:49] <janneklouman--> And here's what the JS file looks like https://github.com/i-lateral/silverstripe-googlemaps/blob/master/javascript/GoogleMap.js
162: [11:26:10] * Stomach has joined #silverstripe
163: [11:27:39] * Stomach quit (Client Quit)
164: [12:08:50] * SH___ quit (Ping timeout: 250 seconds)
165: [12:18:39] * UndefinedOffset has joined #silverstripe
166: [12:34:30] * marvanni quit (Quit: marvanni)
167: [12:43:30] * jeremy370 quit (Ping timeout: 250 seconds)
168: [12:47:26] * marvanni has joined #silverstripe
169: [12:53:13] * pweh quit (Read error: Connection reset by peer)
170: [12:57:45] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
171: [13:01:54] * muskie9 has joined #silverstripe
172: [13:06:09] * muskie9 quit (Ping timeout: 244 seconds)
173: [13:22:51] * MichalKleiner has joined #silverstripe
174: [13:24:53] * MichalKleiner quit (Client Quit)
175: [13:52:28] * dzon has joined #silverstripe
176: [13:52:28] <ss-helper> dzon: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
177: [13:53:24] * dzon quit (Client Quit)
178: [14:19:40] * ss23 quit (Ping timeout: 264 seconds)
179: [14:20:14] * ss23 has joined #silverstripe
180: [14:26:14] * muskie9 has joined #silverstripe
181: [15:03:03] * swaiba quit (Remote host closed the connection)
182: [15:08:08] * jeremy370 has joined #silverstripe
183: [15:08:17] * arnhoe quit ()
184: [15:14:44] * jeremy370 quit (Ping timeout: 250 seconds)
185: [15:18:08] * UndefinedOffset quit (Quit: Leaving.)
186: [15:25:08] * marvanni quit (Quit: marvanni)
187: [15:50:31] * UndefinedOffset has joined #silverstripe
188: [16:00:16] * kinglozzer quit ()
189: [16:11:03] * janneklouman-- quit (Ping timeout: 258 seconds)
190: [16:11:16] * arnhoe has joined #silverstripe
191: [16:17:04] * marvanni has joined #silverstripe
192: [16:21:40] * lietzmk has joined #silverstripe
193: [16:26:50] * slievr quit (Quit: Leaving.)
194: [16:34:41] * shellbac1pacific quit (Ping timeout: 250 seconds)
195: [17:07:06] * janneklouman-- has joined #silverstripe
196: [17:12:14] * janneklouman-- quit (Ping timeout: 260 seconds)
197: [17:38:59] * shellbackpacific has joined #silverstripe
198: [17:51:20] * marvanni quit (Quit: marvanni)
199: [18:38:15] * janneklouman-- has joined #silverstripe
200: [18:38:44] * TRB143 quit (Remote host closed the connection)
201: [18:39:44] * TRB143 has joined #silverstripe
202: [18:41:53] * TRB143 quit (Remote host closed the connection)
203: [18:44:03] * janneklouman-- quit (Ping timeout: 240 seconds)
204: [18:45:22] <ss-helper> Add JS page to SilverStripe - http://stackoverflow.com/questions/38665586/add-js-page-to-silverstripe
205: [19:02:53] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
206: [19:27:15] * lietzmk quit (Ping timeout: 276 seconds)
207: [19:54:07] * marvanni has joined #silverstripe
208: [19:55:24] * janneklouman-- has joined #silverstripe
209: [20:00:14] * janneklouman-- quit (Ping timeout: 260 seconds)
210: [20:01:05] * marvanni quit (Quit: marvanni)
211: [20:37:49] * vebb is now known as veb
212: [20:38:03] * veb is now known as vebb
213: [20:38:07] * vebb is now known as veb
214: [20:38:09] * TRB143 has joined #silverstripe
215: [20:47:15] * UndefinedOffset quit (Quit: Leaving.)
216: [20:49:23] * Azure quit (Quit: My Mac has gone to sleep. ZZZzzz…)
217: [21:03:46] * UncleCheese has joined #silverstripe
218: [21:43:44] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
219: [22:14:32] * UncleCheese has joined #silverstripe
220: [22:26:17] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
221: [22:56:18] * pweh has joined #silverstripe
222: [23:32:38] * janneklouman-- has joined #silverstripe
223: [23:38:37] * janneklouman-- quit (Ping timeout: 260 seconds)
224: [23:49:23] * pweh quit (Changing host)
225: [23:49:23] * pweh has joined #silverstripe
226: [23:49:24] * pweh is now known as coca_koala

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