#silverstripe IRC Log

IRC log for 2 January 2013

All timestamps are in UTC.

1: [00:00:00] <FrozenFire> There never was. It was a hack used with DataObjectManager
2: [00:01:00] <pex__> oh, i didnt know
3: [00:04:00] * stillEPIK quit (Remote host closed the connection)
4: [00:04:00] * stillEPIK has joined #silverstripe
5: [00:05:00] * EPIK quit (Ping timeout: 245 seconds)
6: [00:26:00] <pex__> hmm
7: [00:27:00] <pex__> in dropdownfield
8: [00:27:00] <pex__> i got an error that relationed class dont have method 'map'
9: [00:27:00] <pex__> http://www.sspaste.com/paste/show/50e37ecbd91bd
10: [00:32:00] <FrozenFire> Oh. It's a has_one
11: [00:33:00] <FrozenFire> magCollection::get(), rather
12: [00:33:00] <FrozenFire> Okay, so do Collection::get()->map("ID", "Title")->toArray()
13: [00:33:00] <pex__> sorry i didnt tell
14: [00:33:00] <FrozenFire> Err
15: [00:34:00] * Motoservo quit (Ping timeout: 265 seconds)
16: [00:38:00] <pex__> super thanks
17: [00:38:00] <pex__> yeah! :)
18: [00:53:00] * mivilleb has joined #silverstripe
19: [00:53:00] * howardgrigg quit (Remote host closed the connection)
20: [00:54:00] <mivilleb> Is the Job Portal example in the book supposed to work for SS 3.0.3, anybody tried it?
21: [00:55:00] <FrozenFire> The book? I don't know if anyone's written a SS Book for SS3, yet
22: [00:56:00] * howardgrigg has joined #silverstripe
23: [00:56:00] <FrozenFire> I mean, basic stuff obviously will
24: [00:56:00] <FrozenFire> Yeah, there's so very much changed in SS3, that practically no code you'll find for 2.4 will work right in 3.x
25: [00:56:00] <mivilleb> The original book from 2009 (SS 2.4 I think)
26: [00:57:00] <FrozenFire> But a great deal of it is changed (mostly improved)
27: [00:58:00] <mivilleb> I guess I will have to do it from scratch then
28: [01:00:00] <FrozenFire> I've not read the old SS book, but I'd say that doing something like a job portal would be absolutely trivial in SS
29: [01:00:00] <FrozenFire> SS3, that is
30: [01:01:00] <mivilleb> I am 100% newbie with SS so it will not be that trivial for me, but will give it a go
31: [01:01:00] * aznain has joined #silverstripe
32: [01:02:00] <FrozenFire> You're in for a treat
33: [01:02:00] <FrozenFire> :P
34: [01:21:00] * pex__ has left #silverstripe
35: [01:56:00] * ARNHOE quit (Quit: ARNHOE)
36: [01:59:00] * Multiform_SOS has joined #silverstripe
37: [02:00:00] * howardgrigg quit (Remote host closed the connection)
38: [02:00:00] <Multiform_SOS> http://www.sspaste.com/paste/show/50e39459e9906, I have done the validator using the multiform module. However, I was still able to proceed to the next step of the multi-step form
39: [02:01:00] <Multiform_SOS> can anyone help mi in correcting the code\
40: [02:01:00] <Multiform_SOS> Have i doen wrong somewhere?
41: [02:01:00] <Multiform_SOS> done*
42: [02:03:00] <Multiform_SOS> anyone?
43: [02:05:00] <FrozenFire> Multiform_SOS, First and foremost, what the heck is the crap at the end of your script?
44: [02:06:00] <FrozenFire> Don't do that
45: [02:06:00] <FrozenFire> Use SS's ORM
46: [02:06:00] <Multiform_SOS> oh tat is a
47: [02:06:00] <Multiform_SOS> test database connection code
48: [02:06:00] <Multiform_SOS> we were trying out the connecting to database for the multiform
49: [02:07:00] <FrozenFire> DataObject
50: [02:07:00] <Multiform_SOS> jus to let you noe tats actually a test form to test out the validation function of the multiform
51: [02:07:00] <Multiform_SOS> the real one is here
52: [02:07:00] <FrozenFire> Or even just SS's database layer
53: [02:07:00] <Multiform_SOS> SS's ORM?
54: [02:07:00] <FrozenFire> The ORM
55: [02:08:00] <Multiform_SOS> the ending codes i am not able to change
56: [02:08:00] <FrozenFire> I'm just seeing so much... bad code, that I'm inclined not to help. :P
57: [02:08:00] <Multiform_SOS> oh sry sry
58: [02:08:00] <Multiform_SOS> LOLS
59: [02:09:00] <Multiform_SOS> well it works
60: [02:09:00] <FrozenFire> There is no case in which I ever needed to do such a thing
61: [02:09:00] <Multiform_SOS> hang on
62: [02:09:00] <FrozenFire> Not only is that practically guaranteed to result in SQL injection, it's broken in the utmost.
63: [02:09:00] <Multiform_SOS> let me check
64: [02:09:00] <Multiform_SOS> tats actually necessary to connect our multiforms to the database
65: [02:09:00] <FrozenFire> Yes you are. Don't put that code in your class file.
66: [02:09:00] <FrozenFire> No it is not.
67: [02:10:00] <FrozenFire> Please, please learn how to write PHP before you try to write PHP.
68: [02:10:00] <FrozenFire> I'm not even trying to be insulting, here.
69: [02:10:00] <Multiform_SOS> actually its a team that is doing the PHP coding for the multiforms
70: [02:10:00] <FrozenFire> Uggh
71: [02:10:00] * FrozenFire bows out of this
72: [02:10:00] <Multiform_SOS> lols
73: [02:11:00] <FrozenFire> They're going to make your application crash and burn
74: [02:11:00] <FrozenFire> Because they're not a programmer. They're just pretending to be one.
75: [02:11:00] <FrozenFire> Fire whoever wrote that database code.
76: [02:11:00] <Multiform_SOS> LOLS
77: [02:12:00] * mivilleb quit (Quit: Page closed)
78: [02:13:00] <Multiform_SOS> hmm...
79: [02:13:00] <Multiform_SOS> frozenfire
80: [02:13:00] <Multiform_SOS> other than that
81: [02:13:00] <Multiform_SOS> are you able to identify any errors in my getvalidator() codings?
82: [02:14:00] <Multiform_SOS> oh so u mean its ok
83: [02:14:00] <FrozenFire> But seriously. Remove that shit from the end of your class file.
84: [02:14:00] <FrozenFire> Nothing obviously wrong specifically with the getValidator method
85: [02:14:00] <Multiform_SOS> and should work?
86: [02:15:00] <Multiform_SOS> hang on
87: [02:15:00] <Multiform_SOS> dam
88: [02:15:00] <FrozenFire> I have no idea if it should work. I've never worked with the multiform module
89: [02:15:00] <Multiform_SOS> it still allows me to proceed to next step
90: [02:15:00] <Multiform_SOS> but when i tried to proceed to the next step without filling in anything
91: [02:15:00] <ss23> SOS please someone help me IT'S NOT HEALTHY, FOR me to feel this WAY
92: [02:16:00] <Multiform_SOS> turns out\
93: [02:16:00] <Multiform_SOS> lols
94: [02:16:00] <FrozenFire> It's... programming.
95: [02:16:00] <FrozenFire> It's not SS you're having trouble with.
96: [02:16:00] <Multiform_SOS> well its not only me who is having trouble with SS
97: [02:16:00] <Multiform_SOS> lols
98: [02:16:00] <ss23> silverstripe you are making this hard!
99: [02:17:00] <FrozenFire> Your code is... so badly broken.
100: [02:17:00] <FrozenFire> Basic application development processes.
101: [02:17:00] <FrozenFire> Like, you know, parametrizing your queries, keeping side-effect-causing code out of your class files, etc?
102: [02:17:00] <FrozenFire> Indentation
103: [02:17:00] <FrozenFire> Oh. Multiform_SOS, yeah, I know what's wrong.
104: [02:18:00] <Multiform_SOS> oh
105: [02:18:00] <Multiform_SOS> alrite
106: [02:18:00] <FrozenFire> Where did you come from? How did this happen to you?
107: [02:18:00] <Multiform_SOS> well there is
108: [02:18:00] <FrozenFire> Are there more of you?
109: [02:18:00] <FrozenFire> I didn't know people like you existed in anything resembling a "team"
110: [02:18:00] <FrozenFire> I'm scared by this
111: [02:18:00] <FrozenFire> Please, please, please learn to write PHP.
112: [02:18:00] <FrozenFire> You placed your closing brace on the first method after the second method
113: [02:18:00] <FrozenFire> Like, there's no end to getFields
114: [02:19:00] <Multiform_SOS> we are students
115: [02:19:00] <Multiform_SOS> heres the story
116: [02:19:00] <FrozenFire> Are you involved in a class of some sort?
117: [02:19:00] <Multiform_SOS> LOLOS
118: [02:19:00] * FrozenFire wipes his forehead
119: [02:19:00] <FrozenFire> Okay. Good.
120: [02:19:00] <Multiform_SOS> not professional PHP coders
121: [02:19:00] <Multiform_SOS> ok
122: [02:20:00] <Multiform_SOS> And we have to use Silverstripe
123: [02:20:00] <Multiform_SOS> our company endorsed us a project to create a Search engine optimized website with a built in forms as well as creating a event management system
124: [02:20:00] <Multiform_SOS> we are tasked to do a final year project in my final semester of study
125: [02:21:00] <Multiform_SOS> little do we noe
126: [02:21:00] <Multiform_SOS> cause they will be able to integrate their web design
127: [02:21:00] <Multiform_SOS> so since the forms are most suited to be made using the multiform module
128: [02:21:00] <Multiform_SOS> we decide to use the module
129: [02:21:00] <FrozenFire> What are you studying?
130: [02:21:00] <Multiform_SOS> we are involved in some real difficult situation as we sit
131: [02:21:00] <Multiform_SOS> business information technology
132: [02:22:00] <Multiform_SOS> i dun find that offensive cause its the truth
133: [02:22:00] <FrozenFire> I'm sure I'm being insulting, sorry. ;)
134: [02:22:00] <Multiform_SOS> thats why
135: [02:22:00] <FrozenFire> You had me very concerned for a moment that someone was churning out students with that level of knowledge.
136: [02:22:00] <Multiform_SOS> they expect us to learn ourselves =.=
137: [02:22:00] <FrozenFire> Okay, alright. That's... better.
138: [02:22:00] <Multiform_SOS> tats the problem
139: [02:22:00] <Multiform_SOS> NO
140: [02:22:00] <Multiform_SOS> we actually are not trained in and programming codes
141: [02:22:00] <FrozenFire> Did they teach you PHP?
142: [02:23:00] <Multiform_SOS> none of us are well training in PHP
143: [02:23:00] <FrozenFire> Alright. Let me give you a bit of background on who *I* am, if I can toot my own horn for a moment. I'm a professional software developer, and member of the PHP documentation team, as well as one of the founders of phpmentoring.org. I'm actually very interested in *teaching* people to use PHP effectively.
144: [02:24:00] <FrozenFire> So I'm actually not opposed to helping you figure this out. ;)
145: [02:24:00] <Multiform_SOS> oh ty
146: [02:24:00] <FrozenFire> So, the first thing you need to do is remove that database code from the end of your class file.
147: [02:25:00] <Multiform_SOS> dont worry
148: [02:25:00] <Multiform_SOS> oh
149: [02:25:00] <Multiform_SOS> side-effects?
150: [02:25:00] <FrozenFire> Causing side-effects is anything that makes the application *do* something.
151: [02:25:00] <FrozenFire> Defining structures is things like defining classes, functions, etc.
152: [02:25:00] <Multiform_SOS> oh
153: [02:25:00] <FrozenFire> PHP files should do one of two things: Define structures, or cause side-effects.
154: [02:26:00] <FrozenFire> So for instance, putting that code at the end of your file is causing the application to do something in the phase during which it's just trying to define all of its structures.
155: [02:26:00] <FrozenFire> That's a bad idea.
156: [02:26:00] <Multiform_SOS> ok so first thign first
157: [02:26:00] <FrozenFire> Next up, SilverStripe is what we call a routed MVC application framework.
158: [02:26:00] <Multiform_SOS> i remove the coding to test it out
159: [02:27:00] <FrozenFire> This means that pretty-well none of your files should ever themselves cause side-effects. You can have configuration files which define certain parameters for how it runs, but never put things like that database code in a file.
160: [02:28:00] <Multiform_SOS> having a database connection in another file?
161: [02:28:00] <FrozenFire> What happens is, the "Director" in SilverStripe will try to find what code it's supposed to run by following a certain process.
162: [02:28:00] <Multiform_SOS> oh u mean
163: [02:29:00] <FrozenFire> In your application configuration (which is probably under mysite/_config.php), you should find your application's database credentials.
164: [02:29:00] <FrozenFire> No, one of the biggest reasons for using a framework like this is that you never have to deal with all of that stuff yourself.
165: [02:29:00] <Multiform_SOS> a separate coding to connect all the fields to the database,
166: [02:29:00] <Multiform_SOS> oh
167: [02:29:00] <FrozenFire> You create the pieces, and define how they're supposed to interact with each other, then SilverStripe does the rest.
168: [02:29:00] <Multiform_SOS> i see
169: [02:29:00] <Multiform_SOS> So in my case
170: [02:30:00] <Multiform_SOS> the multi-step form
171: [02:30:00] <Multiform_SOS> what if so happens that
172: [02:30:00] <FrozenFire> SilverStripe will take that configuration and make its own connection to the database. So, you don't need to worry about that.
173: [02:30:00] <Multiform_SOS> we have to connect each fields to the database
174: [02:31:00] <FrozenFire> Here are a few concepts to understand:
175: [02:31:00] <FrozenFire> You would do this using DataObjects.
176: [02:31:00] <Multiform_SOS> with out own created tables?
177: [02:31:00] <Multiform_SOS> our*
178: [02:31:00] <FrozenFire> SilverStripe uses something called an ORM
179: [02:31:00] <FrozenFire> This stands for Object Relational Model
180: [02:31:00] <FrozenFire> Which sounds complicated.
181: [02:31:00] <Multiform_SOS> yup\
182: [02:32:00] <FrozenFire> But, to break it down into smaller pieces, you have at the base of it something called a Data Access Object, or DataObject
183: [02:32:00] <FrozenFire> A Data Access Object is an object in PHP (like, a class) which can be saved directly into the database, without doing your own SQL.
184: [02:33:00] <FrozenFire> In SilverStripe, it would look something like this: class MyDataObject extends DataObject { public static $db = array("Name" => "Text", "Year" => "Int"); }
185: [02:33:00] <FrozenFire> What happens is, when you run /dev/build in your application, it looks at all of the DataObjects you have, and changes your database so that all of the tables are there, so it can save your DataObjects into them.
186: [02:33:00] <Multiform_SOS> I see
187: [02:34:00] <FrozenFire> It'll create your tables and fields itself
188: [02:34:00] <FrozenFire> Then, all you have to do is create a new MyDataObject, set $obj->Name and $obj->Year, and call $obj->write()
189: [02:34:00] <FrozenFire> This will put the DataObject into the database.
190: [02:35:00] <FrozenFire> For instance, your MyDataObject can "has_one" another MyDataObject
191: [02:35:00] <FrozenFire> The next part of an ORM is the object relationship modelling
192: [02:35:00] <FrozenFire> It'll store the ID of that other object in its table and then you can automatically look that other object up
193: [02:35:00] <FrozenFire> But, that's enough theory.
194: [02:35:00] <FrozenFire> In addition to having fields on the object itself, you can define relationships between them
195: [02:36:00] <FrozenFire> What's this form you're making supposed to do?
196: [02:37:00] <Multiform_SOS> it actually is a proposal form
197: [02:37:00] <Multiform_SOS> erm
198: [02:37:00] <Multiform_SOS> u can go to this website
199: [02:37:00] <Multiform_SOS> sgeventhouse.com.sg
200: [02:37:00] <Multiform_SOS> click on "request for proposal"
201: [02:38:00] <Multiform_SOS> going step by step
202: [02:38:00] <Multiform_SOS> venue is a must filled form
203: [02:38:00] <Multiform_SOS> and the event details also mus be filled in order to procceed
204: [02:38:00] <Multiform_SOS> it actually is a event proposal form
205: [02:38:00] <FrozenFire> Alright, one of the biggest reasons you're using SilverStripe multiform is that you don't have to save the form into the database until the user has finished.
206: [02:39:00] <Multiform_SOS> oh
207: [02:39:00] <Multiform_SOS> erm actually we have to built in a event management system
208: [02:39:00] <Multiform_SOS> I am also still struggling with getting ths tep indicator up onto the form
209: [02:39:00] <FrozenFire> It handles saving all of the fields in the user's session while they're filling it out
210: [02:39:00] <Multiform_SOS> yup
211: [02:39:00] <Multiform_SOS> yes
212: [02:39:00] <FrozenFire> So you don't have to do *any* of that database stuff you were doing
213: [02:39:00] <Multiform_SOS> tats y i think its suitable
214: [02:39:00] <FrozenFire> Back in a minute. Just have to do something
215: [02:40:00] <Multiform_SOS> and display it in the form of a PHP coded calendar
216: [02:40:00] <Multiform_SOS> so we nid to save the data into the database
217: [02:43:00] <FrozenFire> The user goes through all of the steps, and at the end, it saves it all
218: [02:43:00] <FrozenFire> You define the form, and all of the steps.
219: [02:43:00] <FrozenFire> The point is, you don't do that at each step
220: [02:43:00] <FrozenFire> Yup
221: [02:44:00] <FrozenFire> Your application's project directory is mysite/, yes?
222: [02:44:00] <Multiform_SOS> yes
223: [02:45:00] <FrozenFire> As well, what version of SilverStripe are you running?
224: [02:45:00] <FrozenFire> Alrighty
225: [02:45:00] <Multiform_SOS> 2.4
226: [02:45:00] <Multiform_SOS> cos the server's PHP version is too low
227: [02:45:00] <Multiform_SOS> and we are not in control of upgrading the server
228: [02:45:00] <FrozenFire> Yeah. Though, I should mention, if there's any possibility of doing so, you should be running PHP 5.3. ;)
229: [02:45:00] <FrozenFire> Heh
230: [02:45:00] <FrozenFire> You may have heard this spiel before. :P
231: [02:45:00] <FrozenFire> PHP 5.2 does not exist any more
232: [02:46:00] <FrozenFire> Anyways.
233: [02:46:00] <FrozenFire> I can do 2.4 :P
234: [02:46:00] <Multiform_SOS> ok
235: [02:46:00] <FrozenFire> This will be your DataObject
236: [02:46:00] <FrozenFire> So, in mysite/code, create something like "Proposal.php"
237: [02:46:00] <Multiform_SOS> oh i see
238: [02:46:00] <FrozenFire> It was officially considered "dead" some time ago
239: [02:46:00] <FrozenFire> In it, put class Proposal extends DataObject { }
240: [02:47:00] <FrozenFire> You're going to define a DataObject which represents all of the information you want to store about each proposal.
241: [02:47:00] <Multiform_SOS> ok
242: [02:48:00] <FrozenFire> Let's start with, say, the Venue's city.
243: [02:48:00] <FrozenFire> The most important thing to start with are your database fields. These are the bits of information that relate *directly* to your proposal
244: [02:49:00] <FrozenFire> "
245: [02:49:00] <FrozenFire> And so on.
246: [02:49:00] <FrozenFire> You would have public static $db = array( "City" => "Text" );
247: [02:49:00] <FrozenFire> Because your City is a text field that you want filled in
248: [02:49:00] <FrozenFire> Then you might have "Venue" => "Text
249: [02:49:00] <FrozenFire> Which would be the venue's name.
250: [02:50:00] <FrozenFire> Number of participants attending will *probably* be an Enum
251: [02:50:00] <FrozenFire> Everything in the $db array is a field's name mapped to its type.
252: [02:51:00] <Multiform_SOS> let mi paste the code
253: [02:51:00] <FrozenFire> Yup, if you get ahead of me, just let me know. It's hard to tell how much of this you might be understanding. ;)
254: [02:51:00] <Multiform_SOS> frozen isit something like this
255: [02:51:00] <Multiform_SOS> hang on
256: [02:52:00] <Multiform_SOS> http://www.sspaste.com/paste/show/50e3a0d6b593a
257: [02:52:00] <FrozenFire> Haha :P
258: [02:52:00] <Multiform_SOS> the bottom part ignore
259: [02:53:00] <Multiform_SOS> we were trying to connect to our own created tables
260: [02:53:00] <Multiform_SOS> if we had not changed to varchar
261: [02:53:00] <FrozenFire> Well, nearly.
262: [02:53:00] <Multiform_SOS> oh dear
263: [02:53:00] <Multiform_SOS> whats my team doing o.o
264: [02:53:00] <FrozenFire> You're using the wrong field types for a lot of those
265: [02:53:00] <Multiform_SOS> oh i think i noe why
266: [02:53:00] <FrozenFire> Ah
267: [02:54:00] <Multiform_SOS> we wont be able to store our data in our own tables
268: [02:54:00] <FrozenFire> Why do you need to store the data in your own tables?
269: [02:54:00] <Multiform_SOS> Do you rmb the php coded calendar feature i told u jjus now?
270: [02:55:00] <Multiform_SOS> its for that purpose i think
271: [02:55:00] <FrozenFire> Yes. But, that's still not a good reason. ;)
272: [02:55:00] <Multiform_SOS> and we probably thought that when the form is submitted
273: [02:55:00] <Multiform_SOS> the calendar value will be calling values from the database and display it
274: [02:55:00] <Multiform_SOS> the data goes no where
275: [02:55:00] <FrozenFire> If you need to make these things work with another application, you should first be storing them in SilverStripe's "way", and then exporting them to the other application's database.
276: [02:56:00] <Multiform_SOS> frozen
277: [02:56:00] <Multiform_SOS> thats y we created our own tables and fields
278: [02:56:00] <FrozenFire> You shouldn't be having SilverStripe running off the same database as this other application
279: [02:56:00] <Multiform_SOS> I see
280: [02:56:00] <Multiform_SOS> I am about to go to sch
281: [02:56:00] <Multiform_SOS> i will tok to you at about 12 pm
282: [02:56:00] <Multiform_SOS> i will save this conversation
283: [02:57:00] <FrozenFire> Alright. I'm in BC, Canada, so I'll probably not be awake when you are. ;)
284: [02:57:00] <FrozenFire> Heh. I'm not on the SS team either. ;)
285: [02:57:00] <Multiform_SOS> whom we can apporach
286: [02:57:00] <Multiform_SOS> Hope there would be a SS Team in Singapore
287: [02:57:00] <Multiform_SOS> I am from singapore
288: [02:57:00] <Multiform_SOS> no
289: [02:57:00] <FrozenFire> I suspect you're not here in Canada
290: [02:58:00] <FrozenFire> 7 p.m.
291: [02:58:00] <Multiform_SOS> wats ur time there frozen?
292: [02:58:00] <Multiform_SOS> its 10.58 AM in singapore
293: [02:58:00] <FrozenFire> If you're interested in learning more about PHP in general, I might recommend checking out #phpmentoring
294: [02:58:00] <Multiform_SOS> not much people in singapore noes about SS i feared
295: [02:58:00] <Multiform_SOS> yup
296: [03:03:00] * Multiform_SOS quit (Ping timeout: 245 seconds)
297: [03:16:00] * Motoservo has joined #silverstripe
298: [03:21:00] * Motoservo quit (Quit: Motoservo)
299: [03:22:00] * SticksM has joined #silverstripe
300: [03:42:00] <SticksM> Hi all, I have a form in a widget that works fine until I try to AJAXify it and then it throws an "ERROR [Warning]: Missing argument 2 for FormWidget_Controller::doAction()" (the two arguments being $data and $form). Can anyone help with this before I start throwing more code in the ring?
301: [03:44:00] * Motoservo has joined #silverstripe
302: [03:47:00] * Motoservo quit (Client Quit)
303: [03:55:00] * Error404NotFound has joined #silverstripe
304: [04:21:00] * cloph_away1 has joined #silverstripe
305: [04:22:00] * cloph_away quit (Ping timeout: 245 seconds)
306: [05:02:00] * jardiamj has joined #silverstripe
307: [05:05:00] <jardiamj> even worst, no change made to the pages in the CMS seem to be saving
308: [05:05:00] <jardiamj> Hi guys, I just updated my website to 3.0, but I had some pages changed to page type = virtual page every time I try to change it it doesn't save
309: [05:27:00] * Multiform_SOS has joined #silverstripe
310: [05:28:00] <Multiform_SOS> http://www.sspaste.com/paste/show/50e3c55bdec3a, I have followed the multiform user guide but the step indicator did not appear do I have to do anything extra?
311: [05:28:00] <Multiform_SOS> frozen
312: [05:28:00] <Multiform_SOS> i got my validators to work alr
313: [05:29:00] <Multiform_SOS> i get the validator
314: [05:29:00] <Multiform_SOS> turns out is my coding got probs
315: [05:29:00] * dendeffe has joined #silverstripe
316: [05:35:00] <FrozenFire> What do you mean the step indicator didn't work?
317: [05:35:00] <FrozenFire> Or rather, didn't appear
318: [05:36:00] <FrozenFire> It's just include
319: [05:36:00] <FrozenFire> Err
320: [05:36:00] <FrozenFire> <% includes MultiFormProgressList %>
321: [05:37:00] <FrozenFire> Not includes
322: [05:39:00] * cloph_away has joined #silverstripe
323: [05:41:00] * cloph_away1 quit (Ping timeout: 244 seconds)
324: [06:04:00] * SticksM quit (Read error: Connection reset by peer)
325: [06:39:00] <Multiform_SOS> i put include
326: [06:39:00] <Multiform_SOS> frozen
327: [06:39:00] <Multiform_SOS> it gave mi this error
328: [06:40:00] <Multiform_SOS> Parse error: syntax error, unexpected $end in /tmp/silverstripe-cache-home-sgevh-public_html/.cache.home.sgevh.public_html.themes.blackcandy.templates.Layout.Page.ss on line 358
329: [06:46:00] * openbees has joined #silverstripe
330: [06:47:00] * jardiamj quit (Quit: Leaving)
331: [06:48:00] <openbees> how to extend login form for redirecting users after login .. Currently just stays on log in page !
332: [06:52:00] * aznain quit (Ping timeout: 245 seconds)
333: [06:59:00] * Bollig|DesignCty has joined #silverstripe
334: [07:01:00] <FrozenFire> openbees, http://api.silverstripe.org/2.4/sapphire/security/Security.html#methodset_default_login_dest
335: [07:02:00] <FrozenFire> Same for 3
336: [07:46:00] <openbees> Thanks FrozenFire !
337: [07:47:00] * openbees quit (Quit: Leaving)
338: [07:53:00] * dendeffe quit (Quit: dendeffe)
339: [07:54:00] * Shrike_Finland1 quit (Quit: Leaving.)
340: [08:02:00] * chillu has joined #silverstripe
341: [08:26:00] * dendeffe has joined #silverstripe
342: [08:32:00] * SightUnseen has joined #silverstripe
343: [08:32:00] * SightUnseen has left #silverstripe
344: [08:33:00] <g4b0> morning
345: [08:33:00] * g4b0 has joined #silverstripe
346: [08:39:00] * dendeffe quit (Quit: dendeffe)
347: [08:42:00] * wazza has joined #silverstripe
348: [08:46:00] <g4b0> I've got a strange problem with tinymce
349: [08:47:00] <g4b0> when I insert a <br/> tag into the html code
350: [08:47:00] <g4b0> it saves into the DB just <br>, without the closur
351: [08:47:00] <g4b0> closure*
352: [08:53:00] <g4b0> but when I read back it from tinymce it shows me again <br /> (with a space before the /)
353: [08:57:00] * chillu quit (Quit: chillu)
354: [09:06:00] * FinBoWa has joined #silverstripe
355: [09:13:00] * howardgrigg has joined #silverstripe
356: [09:26:00] <wazza> Hello, I'm looking for experienced freelancers to help out with SS-based projects. Where is best place to advertise this?
357: [09:31:00] * howardgrigg quit (Remote host closed the connection)
358: [09:32:00] <qlex> was DesignerX around today perhaps?
359: [09:32:00] * qlex says hi
360: [09:32:00] <qlex> im unable to catch him lately and desperately need to talk to him
361: [09:32:00] * qlex has joined #silverstripe
362: [09:47:00] <qlex> any1 here ? :)
363: [09:47:00] <qlex> hello?
364: [10:05:00] * lx-berlin has joined #silverstripe
365: [10:12:00] <lx-berlin> happy new year everyone
366: [10:23:00] * dendeffe has joined #silverstripe
367: [10:25:00] * DesignerX has joined #silverstripe
368: [10:26:00] <DesignerX> hi everyone & happy new year
369: [10:32:00] <lx-berlin> hey, whats up DesignerX ?
370: [10:33:00] <DesignerX> not much , been away from pc for about 2 weeks .. back & trying to build a basic CRM in SS3 to improvie my SS skills
371: [10:33:00] <qlex> Michael, can u check email from me - originally sent on 21 dec
372: [10:33:00] <qlex> DesignerX: hey !
373: [10:34:00] <qlex> brb
374: [10:34:00] <lx-berlin> that sounds interesting . A client just asked today if we can extend his cms with a crm :) But its a 2.4 site
375: [10:34:00] <DesignerX> kk, I am also on the worst intent ever, 1mbps !! the ADSL cables are damaged & taking the ISP ages to fix it
376: [10:34:00] <qlex> two outstanding issues on the deployment to that company, you did the website for me
377: [10:35:00] <DesignerX> lx-berlin: :) it will be basic one, just to store an orgnize client+project data ,
378: [10:35:00] <lx-berlin> do you have a feature list you want to implement ?
379: [10:36:00] <DesignerX> lx-berlin: no feature list "yet" , just doing the skeleton code now then add feature on request
380: [10:36:00] <lx-berlin> ok. I think i will also build a very basic one. Also because its a 2.4 site. It is not fun for me to do it
381: [10:37:00] <DesignerX> he wants the CRM with 2.4 ?! is there an option to have it on a differnt ss install ?
382: [10:38:00] * feejin has joined #silverstripe
383: [10:40:00] <lx-berlin> what do you mean? you are interested to see the final code ?
384: [10:41:00] <lx-berlin> that should be possible. But we are not using the member table for the customers (so propably a little bit unusual)
385: [10:41:00] <qlex> DesignerX: sent you a PM there :)
386: [10:42:00] <DesignerX> lx-berlin: I mean, why build for 2.4 ? is it possible to run the CRM on a differnt SS install ?
387: [10:43:00] <DesignerX> lx-berlin: kk , I though about making the CRM mebers not to extend the member class, but then changed my mind as I may give these clients access & permisstions to the CMS later
388: [10:44:00] <DesignerX> gocha
389: [10:44:00] <lx-berlin> ah, i see. You mean just installing a seperate fresh ss3 installation only for the crm. Hmm, i think it needs to be integrated in the current cms. Very likely that it has some relations to existing dataobjects
390: [10:45:00] <DesignerX> another idea , have a fresh install for the CRM then pull the data from the website database & use it in the CRM (if this sounds ok to you ) ?
391: [10:46:00] <DesignerX> again, it depends on what & how much data you need from the existing website
392: [10:46:00] <DesignerX> qlex: yep, reading the e-mail
393: [10:47:00] <lx-berlin> the database from the website is constantly changing. So this would require a connection to always get the latest data. Too complex :)
394: [10:47:00] <lx-berlin> rest interface was the word i was looking for
395: [10:51:00] <qlex> when im creating a StaffPage, it deosnt get created underneigh the Staffholder
396: [10:51:00] <qlex> because Staffholder is not in root of site tree
397: [10:51:00] <qlex> DesignerX: the issue with StaffHolder and Staffpage being childern of standard Page type is most outstanding
398: [11:03:00] * Error404NotFound quit (Disconnected by services)
399: [11:03:00] * Err404NotFound has joined #silverstripe
400: [11:06:00] * Shrike_Finland has joined #silverstripe
401: [11:08:00] <g4b0> I'm trying to install a dev version of SS through composer
402: [11:08:00] <g4b0> but it doesn't initialize git on "framework" directory
403: [11:08:00] <g4b0> how can I do it?
404: [11:14:00] * dendeffe quit (Quit: dendeffe)
405: [11:31:00] <g4b0> any git wizard over there?
406: [11:35:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
407: [11:43:00] <qlex> did any1 stumble upon a bug in TinyMCE editor when it comes to anchors ?
408: [11:44:00] <qlex> we're trygin to resolve a problem here with DesignerX and it seems that the html code gets wrong when setting up anchors and then links to anchors
409: [11:44:00] <qlex> causing whole page being dispalyed as hyperlink
410: [11:48:00] <DesignerX> ! the ancher gets repeated in each paragtaph flollowing the ancher !!
411: [11:48:00] <DesignerX> each paragraph *
412: [11:50:00] <DesignerX> even doing all the formatting using an external editor will not fix it, the problem is happenning when saving and/or rendering the text
413: [11:54:00] <feejin> I've used anchors in 3.0.3 with no issue. Not much help sorry.
414: [12:06:00] * DesignerX quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
415: [12:07:00] * dendeffe has joined #silverstripe
416: [12:10:00] * Emil_Blume has joined #silverstripe
417: [12:14:00] * zfmf has joined #silverstripe
418: [12:35:00] * SightUnseen has joined #silverstripe
419: [12:40:00] * chillu has joined #silverstripe
420: [12:43:00] * Multiform_SOS quit (Ping timeout: 245 seconds)
421: [12:53:00] * SightUnseen quit (Ping timeout: 252 seconds)
422: [13:01:00] * travis-ci has joined #silverstripe
423: [13:01:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/775567d42715...9dafc83f2953
424: [13:01:00] * travis-ci has left #silverstripe
425: [13:01:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/3914855
426: [13:01:00] <travis-ci> [travis-ci] silverstripe/sapphire#1099 (3.1 - 9dafc83 : Ingo Schommer): The build passed.
427: [13:12:00] * qlex has left #silverstripe
428: [13:15:00] * wazza quit (Ping timeout: 245 seconds)
429: [13:19:00] * SightUnseen has joined #silverstripe
430: [13:26:00] * C10ne quit (Quit: Page closed)
431: [13:27:00] * C10ne has joined #silverstripe
432: [13:32:00] * feejin quit (Remote host closed the connection)
433: [13:35:00] * SightUnseen quit (Ping timeout: 252 seconds)
434: [13:37:00] * ARNHOE has joined #silverstripe
435: [13:39:00] * instabil has joined #silverstripe
436: [13:44:00] <g4b0> 8148-sqlquery-aggregate
437: [13:44:00] <g4b0> a question about git
438: [13:44:00] <g4b0> # git branch
439: [13:44:00] <g4b0> 8088-GroupedDropdownField-xhtml-strict
440: [13:44:00] <g4b0> master
441: [13:44:00] <g4b0> how can I have also branch 3.1?
442: [13:44:00] <g4b0> hi
443: [13:44:00] <g4b0> * 3.0
444: [13:46:00] <g4b0> or I need to work on branch 3.0?
445: [13:51:00] * Err404NotFound quit (Quit: User guilty of hitting the Big Red X...)
446: [13:51:00] <FinBoWa> g4b0: what are you exactly working on?
447: [13:51:00] <FinBoWa> e.g. a site or a specific module stuff?
448: [13:51:00] <g4b0> I'm working on a bugfixing
449: [13:52:00] <g4b0> for the 3.1.0-beta1 core
450: [13:53:00] <FinBoWa> ah.. id assume the tag/brach that is the relevant for the latest version :)
451: [13:55:00] <FinBoWa> suggest on installing smartgit..
452: [13:55:00] <g4b0> yes, but how can I have a 3.1 local branch?
453: [13:56:00] <FinBoWa> eases the the pain with git
454: [13:56:00] <g4b0> does it works on linux?
455: [13:57:00] <FinBoWa> with..
456: [13:57:00] <FinBoWa> but this might help your question http://stackoverflow.com/questions/1783405/git-checkout-remote-branch
457: [13:57:00] <FinBoWa> um mac and pc for sure.. linux don't know
458: [13:58:00] <g4b0> thanks a lot
459: [13:59:00] <FinBoWa> np
460: [14:00:00] <FinBoWa> g4b0: SmartGit is a graphical client for the version control systems Git and Mercurial. It runs on Windows, Mac OS X and Linux. Beginners can start quickly and
461: [14:01:00] <FinBoWa> i think you should give a go on that as it DOES have a linux version
462: [14:01:00] <g4b0> yeah, I will check it
463: [14:02:00] * SightUnseen has joined #silverstripe
464: [14:04:00] * precise has joined #silverstripe
465: [14:05:00] <precise> Hello, I'm looking for experienced freelancers to help out with SS-based projects. Where is best place to advertise this?
466: [14:05:00] <lx-berlin> the irc was a good start
467: [14:07:00] <lx-berlin> there is also a mailinglist (not the official developer mailinglist)
468: [14:08:00] <lx-berlin> but i dont remember the name
469: [14:09:00] * feejin has joined #silverstripe
470: [14:10:00] <lx-berlin> ok, it was a google group "Silverstripe Small Business"
471: [14:10:00] * Shrike_Finland quit (Quit: Leaving.)
472: [14:10:00] <lx-berlin> you could try it there
473: [14:11:00] <precise> great, thank you. Is it worth posting on the Forum too, or jobs.silverstripehq.com?
474: [14:11:00] <lx-berlin> btw. what kind of project is it ?
475: [14:11:00] <lx-berlin> ss3 ?
476: [14:12:00] <lx-berlin> i would also post it on the forum
477: [14:13:00] <precise> The current one is a simple ecommerce site, built in SS3. email for contact is hello@precise-minds.co.uk
478: [14:14:00] <lx-berlin> ah ok, i have never done a shop with SS
479: [14:18:00] * SightUnseen quit (Ping timeout: 252 seconds)
480: [14:33:00] <precise> thanks for your help lx-berlin :-)
481: [14:33:00] <g4b0> chillu: I think I did something wrong here... https://github.com/silverstripe/sapphire/pull/1074
482: [14:33:00] * precise quit (Quit: Page closed)
483: [14:33:00] <lx-berlin> did i help? if so , then you are welcome :)
484: [14:39:00] <chillu> I don't think you can edit that after the fact, but rather have to send a new pull request. Before you send it off, ensure that only *your* commit(s) are in the github commit list (pull request preview)
485: [14:39:00] <chillu> g4b0: Yep, you applied your patch against 3.0 or master, but sent the pull request for 3.1
486: [14:40:00] * FinBoWa quit (Quit: FinBoWa)
487: [14:40:00] <g4b0> ok
488: [14:41:00] <g4b0> apply my changes
489: [14:41:00] <g4b0> I have to create a new branch from 3.1
490: [14:41:00] <g4b0> so
491: [14:42:00] <g4b0> I never seen it...
492: [14:42:00] <g4b0> where is the pull request preview?
493: [14:42:00] <g4b0> and then issue a pull request for 3.1 right?
494: [14:45:00] * SightUnseen has joined #silverstripe
495: [14:50:00] <chillu> Where you enter your description and title. There's a "commits" and "files" tab
496: [14:50:00] <chillu> Its the view after pressing "pull request" to create one, and htting "submit" (or whatever that button is called)
497: [14:51:00] <g4b0> now I think it's correct https://github.com/silverstripe/sapphire/pull/1075
498: [14:51:00] <g4b0> ok, thanks
499: [15:02:00] * feejin quit (Remote host closed the connection)
500: [15:03:00] * SightUnseen quit (Ping timeout: 252 seconds)
501: [15:04:00] * Error404NotFound has joined #silverstripe
502: [15:19:00] * ferge has left #silverstripe
503: [15:19:00] * ferge has joined #silverstripe
504: [15:28:00] * SightUnseen has joined #silverstripe
505: [15:29:00] * webguest has joined #silverstripe
506: [15:29:00] <webguest> does any know this answer http://www.silverstripe.org/general-questions/show/21795
507: [15:29:00] <webguest> still looking for the answer
508: [15:33:00] * webguest quit (Ping timeout: 245 seconds)
509: [15:41:00] <g4b0> chillu: why does SS strip the closing / from <br/>?
510: [15:42:00] <g4b0> how can I stop that behaviour?
511: [15:45:00] * SightUnseen quit (Ping timeout: 265 seconds)
512: [15:47:00] <C10ne> how can I override/extend DO save javascript? Do I have to remove the FormAction and make a new one, or can I just add my script to some action?
513: [15:47:00] <C10ne> g4b0, not sure, probably something with tinyMce settings
514: [15:49:00] <g4b0> mmm, I'm not sure it's a TinyMCE issue
515: [15:52:00] <C10ne> let me check, the content is submitted from the form without slashes, let's see who does that
516: [16:00:00] <g4b0> I tried to add a <br/> through the HTML button
517: [16:00:00] <g4b0> into the db it's stored as <br> (no ending slash)
518: [16:01:00] <g4b0> when I inspect the code through the HTML button in TinyMCE I found a <br /> (with a space between br and /)
519: [16:02:00] <g4b0> In frontend I have just <br>, link in db
520: [16:05:00] <C10ne> Yeah, I see that, but also when you inspect the textarea from which the editor is created, it's also <br>, and the editor shows <br />
521: [16:05:00] <C10ne> so, tinyMCE adds the slash, and maybe also removes it.
522: [16:07:00] <g4b0> rally strange behaviour
523: [16:07:00] <g4b0> really*
524: [16:10:00] <g4b0> When you inspect the textarea you see what is present into the db
525: [16:10:00] <g4b0> not what *actually* present into the textarea
526: [16:11:00] <g4b0> if you add something and then re-inspect it you will not see what you added
527: [16:12:00] <C10ne> No, that happens just before submit, tinyMCE populates the textarea,and then the form is submitted
528: [16:13:00] * SightUnseen has joined #silverstripe
529: [16:13:00] <g4b0> how can I dump what is submitted?
530: [16:18:00] * catcher has joined #silverstripe
531: [16:20:00] * dendeffe quit (Quit: dendeffe)
532: [16:24:00] * dospuntocero has joined #silverstripe
533: [16:25:00] <C10ne> Sorry, got some requests to finish. You can inspect what's submitted via ajax when you edit the form. Just check the network panel.
534: [16:25:00] <dospuntocero> hey guys happy new year!
535: [16:26:00] <g4b0> thanks C10ne
536: [16:31:00] * SightUnseen quit (Ping timeout: 264 seconds)
537: [16:35:00] * g4b0 quit (Quit: Sto andando via)
538: [16:54:00] * mrzero quit (Ping timeout: 264 seconds)
539: [16:54:00] * lx-berlin has left #silverstripe
540: [16:57:00] * SightUnseen has joined #silverstripe
541: [16:58:00] * UndefinedOffset has joined #silverstripe
542: [17:03:00] * ARNHOE1 has joined #silverstripe
543: [17:17:00] * SightUnseen quit (Ping timeout: 255 seconds)
544: [17:25:00] <travis-ci> [travis-ci] silverstripe/sapphire#1102 (3.1 - 06f05d0 : Ingo Schommer): The build was broken.
545: [17:25:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/9dafc83f2953...06f05d0e7a98
546: [17:25:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/3918773
547: [17:25:00] * travis-ci has left #silverstripe
548: [17:25:00] * travis-ci has joined #silverstripe
549: [17:27:00] * Zauberfisch quit (Ping timeout: 246 seconds)
550: [17:32:00] * zfmf has left #silverstripe
551: [17:35:00] * Zauberfisch has joined #silverstripe
552: [17:43:00] * SightUnseen has joined #silverstripe
553: [17:47:00] <travis-ci> [travis-ci] silverstripe/sapphire#1102 (3.1 - 06f05d0 : Ingo Schommer): The build passed.
554: [17:47:00] * travis-ci has joined #silverstripe
555: [17:47:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/9dafc83f2953...06f05d0e7a98
556: [17:47:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/3918773
557: [17:47:00] * travis-ci has left #silverstripe
558: [17:53:00] <FrozenFire> Is there a way to, from an external scope, block the listing of a class as a page type in the CMS?
559: [17:54:00] <FrozenFire> I have a module which I need to set up a sort of functionality switching configuration on
560: [17:54:00] <FrozenFire> That is, so that certain parts of the functionality have to be turned on explicitly in the configuration
561: [17:55:00] <FrozenFire> And no, I don't want to split this out into multiple modules
562: [18:03:00] * Emil_Blume quit (Read error: Connection reset by peer)
563: [18:04:00] * SightUnseen quit (Ping timeout: 252 seconds)
564: [18:14:00] <dospuntocero> actually i need only some members but i cant even get it all...
565: [18:14:00] <dospuntocero> hey guys im trying to populate a checkboxsetfield on ss3 and i only have errors...
566: [18:14:00] <dospuntocero> $fields->addFieldToTab("Root.Main", $clients = CheckboxSetField::create('Recipients', _t('ExtranetMessage.CLIENTS', 'Clients')));
567: [18:14:00] <dospuntocero> $clients->setSource(Member::get()->map());
568: [18:14:00] <dospuntocero> does anyone knows how to do it?
569: [18:17:00] * dospuntocero quit (Remote host closed the connection)
570: [18:17:00] * dospuntocero has joined #silverstripe
571: [18:18:00] <dospuntocero> thats the error im getting...
572: [18:18:00] <FrozenFire> dospuntocero, Did you run /dev/build?
573: [18:18:00] <dospuntocero> yes
574: [18:18:00] <dospuntocero> https://gist.github.com/4436614#file-gistfile1-txt
575: [18:18:00] <dospuntocero> flushed, etc.
576: [18:19:00] <dospuntocero> yes.. no idea why..
577: [18:19:00] <dospuntocero> thats not the problem
578: [18:19:00] <FrozenFire> That's weird. It's trying to get ParentID from Member
579: [18:19:00] <dospuntocero> and no idea why is not there..
580: [18:20:00] <dospuntocero> no luck..
581: [18:20:00] <FrozenFire> So it might be trying to get a hierarchy from each Member object
582: [18:20:00] <FrozenFire> DataList::map returns an SS_Map
583: [18:20:00] <FrozenFire> Maybe change it to Member::get()->map()->toArray()
584: [18:20:00] <dospuntocero> but groups have
585: [18:20:00] <dospuntocero> just checked.
586: [18:20:00] <dospuntocero> well.. member doesnt have parentID.
587: [18:21:00] <dospuntocero> mm but.. what if i do something like
588: [18:22:00] <FrozenFire> Select a group?
589: [18:22:00] <dospuntocero> does that have any sense?
590: [18:22:00] <FrozenFire> What are you trying to define with the formfield?
591: [18:22:00] <dospuntocero> Group::get->filter(array("Title"=>"Clients"))->Members()
592: [18:23:00] <dospuntocero> i need a checkboxsetfield of clients from a specific group
593: [18:23:00] <dospuntocero> so the client can select some and send communications
594: [18:23:00] <FrozenFire> You'd get Member::get()->filter("Groups.Title:ExactMatch", "Clients")
595: [18:23:00] * Emil_Blume has joined #silverstripe
596: [18:24:00] <FrozenFire> (I think the Member relation for groups is Groups
597: [18:24:00] <dospuntocero> yes just checked
598: [18:24:00] <FrozenFire> I'm actually not sure why you're using CheckboxSetField::create()
599: [18:24:00] <FrozenFire> Might want to double-check that
600: [18:24:00] <FrozenFire> I've seen that before. Not sure if someone's made it the new "standard" for defining formfields.
601: [18:24:00] <FrozenFire> )
602: [18:25:00] <FrozenFire> I don't like it, myself.
603: [18:25:00] <FrozenFire> Anywho, you should still be able to put the source in the creation call
604: [18:25:00] <dospuntocero> field::create
605: [18:25:00] <dospuntocero> yes
606: [18:25:00] <dospuntocero> all fields must be inited that way now
607: [18:26:00] <dospuntocero> Unknown column 'ParentID' in 'where clause
608: [18:26:00] <FrozenFire> But that's probably not the issue
609: [18:26:00] <FrozenFire> Just thinking. :P
610: [18:26:00] <dospuntocero> damn...
611: [18:26:00] <FrozenFire> If you go to /admin/security/, do you get the same error?
612: [18:27:00] <dospuntocero> i can see my clients group
613: [18:27:00] <dospuntocero> no
614: [18:27:00] <dospuntocero> probably its a bug ?
615: [18:28:00] <FrozenFire> Try moving the source setting into the field creation
616: [18:28:00] <FrozenFire> You're starting by creating the field without an explicit source
617: [18:28:00] <FrozenFire> Maybe
618: [18:28:00] <FrozenFire> So the field constructor might be fetching the Recipients
619: [18:28:00] <dospuntocero> with populated users in the gridfield
620: [18:28:00] <FrozenFire> Oh wait
621: [18:29:00] <dospuntocero> damn..
622: [18:29:00] <dospuntocero> no luck.
623: [18:29:00] <dospuntocero> well i will revisit this damn code in some hours... i need to go to a meeteing now.
624: [18:30:00] * dospuntocero quit (Remote host closed the connection)
625: [18:30:00] <dospuntocero> thanks for your help FrozenFire ;)
626: [18:30:00] * SightUnseen has joined #silverstripe
627: [18:50:00] <FrozenFire> Uggh, I'm getting really freaking tired of UploadField >.>
628: [18:50:00] <FrozenFire> Every fucking other field somehow manages to handle saving its relation on a new object
629: [18:51:00] * SightUnseen quit (Ping timeout: 248 seconds)
630: [19:00:00] <FrozenFire> And of course, now FileField is being an asshole :(
631: [19:07:00] * SightUnseen has joined #silverstripe
632: [19:11:00] * SightUnseen quit (Client Quit)
633: [19:12:00] <catcher> FrozenFire, Zauberfisch told me he was hoping to get some time on it over the holiday. Fingers crossed.
634: [19:14:00] <FrozenFire> At the moment, I can't even figure out how to work around it
635: [19:14:00] <FrozenFire> I'm trying to use a FileField when $this->ID isn't set
636: [19:14:00] <FrozenFire> But it won't save into the relation for some reason
637: [19:15:00] <FrozenFire> In fact, this is really getting on my nerves...
638: [19:16:00] <FrozenFire> Nada
639: [19:16:00] <FrozenFire> http://www.sspaste.com/paste/show/50e4877b1579f
640: [19:18:00] <FrozenFire> Though, I wonder if I'm getting a chicken-egg issue here
641: [19:22:00] * DigNZ quit (Remote host closed the connection)
642: [19:22:00] * DigNZ has joined #silverstripe
643: [19:23:00] * DigNZ has joined #silverstripe
644: [19:24:00] <FrozenFire> The deuce
645: [19:24:00] <FrozenFire> Apparently the file isn't even getting uploaded...
646: [19:26:00] * nickmolhoek quit (Remote host closed the connection)
647: [19:26:00] * nickmolhoek has joined #silverstripe
648: [19:27:00] * nickmolhoek has joined #silverstripe
649: [19:30:00] <FrozenFire> This makes no sense
650: [19:30:00] <FrozenFire> I'm going a bit nutty here
651: [19:31:00] <FrozenFire> It doesn't create the file
652: [19:31:00] <FrozenFire> And I cannot upload.
653: [19:31:00] <catcher> permissions?
654: [19:31:00] <FrozenFire> Nope
655: [19:31:00] <catcher> I've had some epic wrestling matches with uploadfield on the front-end. I lost.
656: [19:31:00] <catcher> Should be smoother in the CMS though.
657: [19:31:00] <FrozenFire> I'm not even working with UploadField any more
658: [19:31:00] <FrozenFire> At the moment I've removed everything related to it from this form.
659: [19:31:00] <FrozenFire> I'm just using a plain-old FileField
660: [19:32:00] <FrozenFire> I made sure that every file and directory is writeable by me
661: [19:32:00] <catcher> Needs to be writeable by the webserver
662: [19:32:00] <catcher> k
663: [19:32:00] <FrozenFire> And I can upload from the Files admin
664: [19:32:00] <FrozenFire> Err, by the web user, that is
665: [19:32:00] <FrozenFire> This FileField is just not creating a file. At all
666: [19:32:00] <FrozenFire> It's not just not setting the relation. The upload is failing.
667: [19:33:00] <FrozenFire> Nothing except the relation name is given to it
668: [19:33:00] <catcher> custom upload dir?
669: [19:33:00] <FrozenFire> Nope
670: [19:33:00] <FrozenFire> It's a stock FileField
671: [19:33:00] * terryapodaca has joined #silverstripe
672: [19:34:00] <catcher> Files table synced?
673: [19:35:00] <FrozenFire> Nothing to do with that
674: [19:35:00] <FrozenFire> Yeah
675: [19:35:00] <catcher> 3.1?
676: [19:35:00] <FrozenFire> I suspect this is due to the recent changes to FileField
677: [19:36:00] <FrozenFire> Which is fine on its own
678: [19:36:00] * Bollig|DesignCty has joined #silverstripe
679: [19:36:00] <FrozenFire> The allowedExtensions stuff was removed
680: [19:36:00] <FrozenFire> https://github.com/silverstripe/sapphire/commits/3.1/forms/FileField.php
681: [19:36:00] <FrozenFire> Or something like that
682: [19:36:00] <FrozenFire> But I betcha that it doesn't set default allowed extensions
683: [19:37:00] <catcher> lmk if setting custom extensions works, I haven't tried 3.1 yet.
684: [19:38:00] <FrozenFire> And I'm not sure which is which
685: [19:38:00] <FrozenFire> Though there seems to be two ways in which they're set
686: [19:38:00] <FrozenFire> I did try setting the allowed extensions
687: [19:39:00] <terryapodaca> creating my first contact form in 3.1
688: [19:39:00] <terryapodaca> are forms 'submitted' the same in 3.1 as in 2.4
689: [19:40:00] <terryapodaca> so if all i need to do is sent the form as an email, i'd just do it the same ole fashion
690: [19:40:00] <catcher> terryapodaca, they were in 3.0
691: [19:40:00] <FrozenFire> Yes
692: [19:41:00] * SightUnseen has joined #silverstripe
693: [19:41:00] <FrozenFire> Mainly just FieldList instead of FieldSet
694: [19:41:00] <FrozenFire> There are some differences in the code, but nothing drastic
695: [19:41:00] <terryapodaca> cool...and thanks
696: [19:42:00] <terryapodaca> yeah, and now it's easier to set attributes, styles, etc...even subclass Form so you can easily build your own form templates now too
697: [19:43:00] <terryapodaca> I got all that. I think it's a lot better and easier now to work with forms and customize them easier. I just wanted to make sure the "doForm" function didn't change any
698: [19:44:00] * FrozenFire grumbles loudly at halkyon
699: [19:46:00] * mrzero has joined #silverstripe
700: [19:50:00] * dendeffe has joined #silverstripe
701: [19:55:00] <FrozenFire> It's definitely FileField that's broken
702: [19:55:00] <FrozenFire> And it's pretty goddamn broken
703: [19:55:00] <FrozenFire> This is getting ridiculous
704: [19:57:00] <terryapodaca> what's the best way to redirect back on a successful form submit...using Session
705: [19:58:00] * SightUnseen has left #silverstripe
706: [19:58:00] <FrozenFire> terryapodaca, Just $this->redirectBack()
707: [20:11:00] <FrozenFire> I swear this is a conspiracy to rob me of my sanity
708: [20:11:00] <catcher> terryapodaca, you can also set a sessionMessage that will make it back to the form
709: [20:12:00] <terryapodaca> I found some old code to do that...I set a session variable and check it every time the page loads for a session variable
710: [20:14:00] <catcher> terryapodaca, that works too, setSessionMessage just handles the extra stuff that needs to happen (unsetting, etc.)
711: [20:14:00] <FrozenFire> Well, you can set the BackURL request variable
712: [20:15:00] <terryapodaca> but that's so old school
713: [20:15:00] <terryapodaca> catcher, you know any sample code doing it your way?
714: [20:21:00] <catcher> terryapodaca, sure, I use something like this: http://sspaste.com/paste/show/50e49690422ae
715: [20:23:00] <catcher> the message shows up with classes .message & the second arg from the submit action
716: [20:31:00] * C10ne quit (Ping timeout: 245 seconds)
717: [20:31:00] * ARNHOE1 quit (Quit: ARNHOE1)
718: [20:37:00] <terryapodaca> FrozenFire: I can't get ??Director::redirect($this->Link("?success=1")); to work in 3.1
719: [20:37:00] <FrozenFire> terryapodaca, That's because it's not Director::redirect
720: [20:37:00] <FrozenFire> Controller::redirect or Controller::redirectBack
721: [20:38:00] <FrozenFire> If you want to add redirectback functionality, overload that method on your Controller
722: [20:39:00] <catcher> terryapodaca, why not just return the form from the action like the code I posted?
723: [20:39:00] * irogue has joined #silverstripe
724: [20:48:00] * instabil quit (Read error: Connection reset by peer)
725: [20:52:00] * Emil_Blume has left #silverstripe
726: [20:53:00] * dendeffe quit (Quit: dendeffe)
727: [20:59:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/16eff71a7f8b...c2fea77f589f
728: [20:59:00] * travis-ci has joined #silverstripe
729: [20:59:00] <travis-ci> [travis-ci] silverstripe/sapphire#1103 (post-2.4 - 024ef6d : Ingo Schommer): The build was broken.
730: [20:59:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/46a942e05b1a...024ef6d11b1d
731: [20:59:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/3922542
732: [20:59:00] * travis-ci has left #silverstripe
733: [20:59:00] * travis-ci has joined #silverstripe
734: [20:59:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#175 (post-2.4 - c2fea77 : Ingo Schommer): The build passed.
735: [20:59:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/3922539
736: [20:59:00] * travis-ci has left #silverstripe
737: [21:04:00] <catcher> terryapodaca, should be no need to redirectback from the form then.
738: [21:04:00] <catcher> from the form action* rather
739: [21:04:00] <terryapodaca> catcher: I did
740: [21:05:00] <terryapodaca> oh I know...I was just replying to Simon since he asked. I tried it the old way first and it didn't work. i might have had something typed wrong
741: [21:27:00] * dendeffe has joined #silverstripe
742: [21:29:00] * ARNHOE quit (Remote host closed the connection)
743: [21:43:00] * dendeffe quit (Quit: dendeffe)
744: [21:49:00] <catcher> did he give you a call from vacation?
745: [21:52:00] * UndefinedOffset quit (Quit: Leaving.)
746: [21:58:00] <terryapodaca> other Simon
747: [21:59:00] <FrozenFire> One was enough for me
748: [21:59:00] <FrozenFire> There's another Simon?
749: [22:10:00] <catcher> I'll second that, just in case he looks through his irc logs
750: [22:13:00] * chillu quit (Quit: chillu)
751: [22:39:00] * xini has joined #silverstripe
752: [22:41:00] <xini> happy new year everyone! just a question: what is the current recommendation regarding ecommerce and SS3? are there any shopping modules available already?
753: [22:47:00] <terryapodaca> http://swipestripe.com/ and http://www.silvercart.org/ are both ready for 3.0+ now
754: [22:47:00] <terryapodaca> you'd want to check first
755: [22:48:00] <xini> great, thanks!
756: [22:50:00] <terryapodaca> yeah, you have to ask for the new version
757: [22:50:00] <FrozenFire> Pretty sure they're both 2.4
758: [22:50:00] <xini> hm.. both websites don't say anything re SS3. and all screenshots etc are still 2.4...
759: [22:52:00] <xini> how about the e-commerce module? or is there anything else?
760: [22:53:00] <xini> maybe I should...
761: [22:53:00] <xini> hm.. ok ;)
762: [22:53:00] <FrozenFire> Nobody wants to touch it
763: [22:53:00] <FrozenFire> Says everyone who ever wants to use it in SS3
764: [22:53:00] <xini> ;)
765: [22:53:00] <FrozenFire> And then they just build the equivalent from scratch for themselves.
766: [22:53:00] <FrozenFire> The ecommerce module is definitely 2.4
767: [22:54:00] <terryapodaca> pretty sure the ecommerce module is 2.4, and you can ask Nicolaas what it's status is
768: [22:54:00] <terryapodaca> He's the one maintaining that module now
769: [22:54:00] <xini> yeah ok.. i wouldlike to avoid that...
770: [22:54:00] <xini> but the payment module is 3.0?
771: [22:55:00] <irogue> payment != ecommerce. there's a lot of other uses for payment besides nicolaas' ecommerce module
772: [22:55:00] <xini> i konw
773: [22:55:00] <FrozenFire> I think most people overestimate the usefulness of the ecommerce and payments modules
774: [22:56:00] <FrozenFire> Every single time I've gone to use them, I ended up doing it from scratch
775: [22:56:00] <FrozenFire> They're pretty shit
776: [22:56:00] <xini> so... how would you do it?
777: [22:56:00] <xini> ;)
778: [22:56:00] <FrozenFire> Well, how I would do it is probably not how you could do it. ;)
779: [22:56:00] <terryapodaca> ecommerce is tricky though...you never know what features people will want
780: [22:57:00] <xini> yeah...
781: [22:57:00] <FrozenFire> Most of my shit is direct response ecommerce with a very different flow than any "cart" site
782: [22:57:00] <FrozenFire> And the payments often end up being done custom
783: [22:57:00] <FrozenFire> Exactly
784: [22:58:00] <FrozenFire> Or any number of other payment types
785: [22:58:00] <xini> ok.. hm.. i just hae no idea how to start.
786: [22:58:00] <FrozenFire> What're you doing?
787: [22:58:00] <FrozenFire> That, or stuff like PayPal subscriptions
788: [22:59:00] <xini> shop with hundreds of products, several product categories and variations, probably paypal
789: [23:00:00] <terryapodaca> ask Jedatech where he's at with his new module: http://ss-shop.org/
790: [23:00:00] <irogue> sounds awfully like swipestripe territory, xini
791: [23:00:00] <xini> variations as in colour and sizes
792: [23:01:00] <FrozenFire> irogue, Everyone balks at the price
793: [23:01:00] <FrozenFire> :P
794: [23:01:00] <xini> hm.. ok. we'll see about SS3
795: [23:01:00] <FrozenFire> I just recommended it to someone in #phpc
796: [23:01:00] <irogue> http://ss3.swipestripe.com/
797: [23:01:00] <FrozenFire> First comment was $247!?!?
798: [23:01:00] <irogue> lol
799: [23:01:00] <xini> yeah!
800: [23:01:00] <terryapodaca> he branched off from the original ecommerce module which has variations/categories, etc...and paypal checkout
801: [23:02:00] <FrozenFire> That's steep
802: [23:02:00] <FrozenFire> Gotta pay the bills for sure, but jeeze
803: [23:02:00] <irogue> that's... buggerall imo
804: [23:02:00] <FrozenFire> Oh, I definitely agree.
805: [23:02:00] <FrozenFire> But people will surely balk. :P
806: [23:02:00] <irogue> cheap people ;)
807: [23:02:00] <irogue> who don't expect their store to actually succeed
808: [23:03:00] <irogue> so $247 is sweet fuck all in the grand scheme of things
809: [23:03:00] <irogue> we just paid ~$3k for someone to implement a few automated emails and such in our system, cos i didn't have the time
810: [23:03:00] <irogue> FrozenFire: its right there on the page :)
811: [23:03:00] <irogue> "This is SwipeStripe v2.0 Alpha, compatible with SilverStripe 3. Log in to CMS here using admin:password."
812: [23:03:00] <FrozenFire> That it is
813: [23:03:00] <FrozenFire> Is there a backend login for that demo?
814: [23:03:00] <irogue> $130/hr
815: [23:04:00] <terryapodaca> and not sure when this will launch, but you can sign up for this one http://goldstripe.co/
816: [23:04:00] <FrozenFire> In tiny font
817: [23:04:00] <FrozenFire> :P
818: [23:04:00] <terryapodaca> so that 5 different ones you can start asking
819: [23:04:00] <terryapodaca> for new versions that work with ss3
820: [23:04:00] <irogue> since when has 13px been tiny? :-P
821: [23:05:00] * C10ne has joined #silverstripe
822: [23:05:00] <irogue> https://twitter.com/SwipeStripe/status/276416796272254976
823: [23:05:00] <C10ne> Anyone knows if there's a way to edit many_many_extraFields without editing entire dataObject?
824: [23:06:00] <irogue> tankr's probably on holiday, lol
825: [23:06:00] <terryapodaca> I've been waiting for my beta for a couple weeks...they are not fast with that
826: [23:06:00] <irogue> was so weird driving to work this morning
827: [23:07:00] <xini> great! thanks!
828: [23:07:00] <irogue> hardly any businesses have started back up yet, we were really early
829: [23:07:00] <irogue> so there was fuckall traffic on the roads during normal peak time
830: [23:07:00] <terryapodaca> i thought you all had a holiday of some sort today
831: [23:07:00] <irogue> terryapodaca: 1st and 2nd were holidays, today is the first non-holiday day. but since its a thursday most companies have decided to not re-open until monday
832: [23:08:00] <irogue> i'm gonna have to go to Subway for lunch cos all my regular lunch bars are closed
833: [23:10:00] <irogue> speaking of which, it's lunch time!
834: [23:11:00] <irogue> also, grrr
835: [23:11:00] <irogue> was payday yesterday
836: [23:11:00] <irogue> but since it was a public holiday, didn't go through
837: [23:18:00] * terryapodaca quit (Quit: Leaving.)
838: [23:42:00] <dnz-> DYEL
839: [23:54:00] <C10ne> Anyone knows if there's a way to edit many_many_extraFields?
840: [23:55:00] * SightUnseen has joined #silverstripe
841: [23:56:00] <xini> I think that will be in the 3.1 release
842: [23:56:00] <xini> C10ne: in SS3?
843: [23:56:00] <C10ne> yes
844: [23:57:00] <xini> see http://doc.silverstripe.org/framework/en/3.1/changelogs/beta/3.1.0-beta1
845: [23:57:00] <C10ne> that's bad
846: [23:58:00] <xini> i usually use a seperate dataobject as a 'middleman'
847: [23:58:00] <C10ne> yeah, it's there
848: [23:59:00] <xini> like person - membership - organisation and then i store the extra data in the membership object

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