#silverstripe IRC Log

IRC log for 5 July 2012

All timestamps are in NZT (New Zealand Time).

1: [00:01:00] <r3v3rb> erm, can anyone translate this: الي حاط رقمه يختار بنات ولاعيال
2: [00:01:00] <LoveDuckie> trying to display my custom form on my page
3: [00:01:00] <Pyromanik> r3v3rb, what did you just call my mother!?
4: [00:01:00] <ocm> r3v3rb, you have to speak it out loud in reverse
5: [00:01:00] <ocm> or hold it in front of a mirror
6: [00:01:00] <r3v3rb> wha...
7: [00:01:00] <LoveDuckie> can someone explain to me how to use getField?
8: [00:02:00] <Pyromanik> userforms?
9: [00:02:00] <LoveDuckie> yeah
10: [00:02:00] <Pyromanik> it returns the actual form field
11: [00:02:00] <LoveDuckie> I extended Forms
12: [00:02:00] <Pyromanik> you what?
13: [00:02:00] <r3v3rb> its a user comment on my app on Samsung App store
14: [00:02:00] * UndefinedOffset has joined #silverstripe
15: [00:02:00] <LoveDuckie> extended Form
16: [00:02:00] <samthejarvi> oooh, what app?
17: [00:02:00] <LoveDuckie> and made my own ContactForm class
18: [00:02:00] <samthejarvi> rofl google translate's response
19: [00:02:00] <r3v3rb> Pyromanik: close… google botches
20: [00:02:00] <Pyromanik> LoveDuckie, getField?
21: [00:02:00] <Pyromanik> getField on what?
22: [00:02:00] <samthejarvi> "Hat to choose his own daughters and Aial" is what gtranslate says :D
23: [00:02:00] <r3v3rb> samthejarvi: its nonsense isn't it
24: [00:03:00] <LoveDuckie> so I am a little confused as to how I am suppose to return a field back to the template
25: [00:03:00] <Pyromanik> r3v3rb, change your page encoding.
26: [00:03:00] <r3v3rb> samthejarvi: Asteroid 2012 3D
27: [00:03:00] <LoveDuckie> went off this tutorial
28: [00:03:00] <LoveDuckie> http://doc.silverstripe.org/framework/en/topics/forms/
29: [00:03:00] <LoveDuckie> and $dataByFieldName is apparently outdated
30: [00:03:00] <Pyromanik> LoveDuckie, but that has nothing to do with userforms!
31: [00:04:00] <Pyromanik> if only.
32: [00:04:00] <Pyromanik> in fact, ctrl+f tells me that there's not even a mention of getField on that page at all!
33: [00:04:00] <samthejarvi> r3v3rb: that looks awesome!
34: [00:04:00] <r3v3rb> thank you samthejarvi :D
35: [00:04:00] * samthejarvi quit (Quit: Page closed)
36: [00:04:00] <r3v3rb> if only it were making me a living
37: [00:04:00] <r3v3rb> if if if only
38: [00:04:00] <Pyromanik> iff
39: [00:05:00] <LoveDuckie> A basic form on my site
40: [00:05:00] <r3v3rb> right poxy list-style why you no love me today...
41: [00:05:00] <LoveDuckie> I'll dig deeper.
42: [00:05:00] <LoveDuckie> I am confused.
43: [00:05:00] <Pyromanik> LoveDuckie, are you working in userforms or not?
44: [00:05:00] <LoveDuckie> I am using the class "Form"
45: [00:05:00] <LoveDuckie> based on that tutorial above
46: [00:05:00] <Pyromanik> for what?
47: [00:05:00] <Pyromanik> a form?
48: [00:05:00] <LoveDuckie> Yeah
49: [00:05:00] <Pyromanik> ok
50: [00:06:00] <LoveDuckie> But what if I want to position each field?
51: [00:06:00] <Pyromanik> and what's your actual problem?
52: [00:06:00] <LoveDuckie> that enables me to enter data into a dataobject.
53: [00:06:00] <LoveDuckie> OK, so I am trying to get fields from my form
54: [00:06:00] <LoveDuckie> to appear on their own custom template
55: [00:06:00] <spronk> huh
56: [00:06:00] <LoveDuckie> I have actions displaying OK
57: [00:06:00] <spronk> typo3 got prettier while i wasn't looking
58: [00:06:00] <Pyromanik> <% loop Fields %> ?
59: [00:06:00] <Pyromanik> typo3, isn't that payfor spronk?
60: [00:07:00] <Pyromanik> or using, or whatever that other template thing is
61: [00:07:00] <Pyromanik> LoveDuckie, create them in the right order -.-
62: [00:07:00] <CIA-12> silverstripe: TeamCity silverstripe-cms/translation-staging * r2ecd5a5 / lang/nb.yml : MINOR Updated translations - http://git.io/723PpA
63: [00:07:00] <spronk> Pyromanik: nahh gpl and .. apache licences i thikn
64: [00:07:00] <LoveDuckie> How?
65: [00:07:00] <Pyromanik> oh
66: [00:07:00] <Pyromanik> LoveDuckie, in php!
67: [00:07:00] <spronk> http://typo3.org/about/the-backend/
68: [00:07:00] <LoveDuckie> You mean instantiate them in the main Form object?
69: [00:07:00] <spronk> surprisingly similar to ss3 lol
70: [00:07:00] <Pyromanik> or, with the fancy new SS3, maybe, MAYBE you can <% with Fields %> ?
71: [00:07:00] <LoveDuckie> Hmm okay.
72: [00:07:00] <r3v3rb> spronk: indeed
73: [00:09:00] <Pyromanik> but
74: [00:09:00] <LoveDuckie> "[Warning] Missing argument 1 for ViewableData::getField(), called in C:\wamp\www\poco\framework\view\ViewableData.php on line 106 and defined"
75: [00:09:00] <Pyromanik> but
76: [00:09:00] <Pyromanik> what
77: [00:09:00] <LoveDuckie> http://pastie.org/4198520
78: [00:10:00] <r3v3rb> spronk best part of typo3 that appears to be missing out-of-the-box in SS3 is front end page edits
79: [00:10:00] <Pyromanik> with ContactForm
80: [00:10:00] <Pyromanik> or whatever
81: [00:10:00] <LoveDuckie> <% control Form %>?
82: [00:10:00] <Pyromanik> yeah
83: [00:10:00] <Pyromanik> you could
84: [00:10:00] <Pyromanik> but using that new ss3 one would be better
85: [00:10:00] <CIA-12> silverstripe: Ingo Schommer sapphire/3.0 * r9c71c22 / (cli-script.php tests/bootstrap.php): CLI bootstrap: Merge existing $_GET and $_REQUEST data - http://git.io/u3Pq-w
86: [00:10:00] <LoveDuckie> What would the new SS3 one be?
87: [00:10:00] <LoveDuckie> That is my template for "ContactForm" which is an php object that inherits "Form"
88: [00:10:00] <Pyromanik> you didn't control Form !
89: [00:11:00] <r3v3rb> indeed, it would be a killer addition to the CMS
90: [00:11:00] <r3v3rb> for some of my really retarded clients
91: [00:11:00] <spronk> r3v3rb: i reckon front end page edits could be done rather nicely with js
92: [00:12:00] <Pyromanik> I was right, hooray!
93: [00:12:00] <LoveDuckie> so <% with Fields instead of loop?
94: [00:12:00] <LoveDuckie> haha
95: [00:12:00] <r3v3rb> who can't grasp this whole admin thing!
96: [00:12:00] <Pyromanik> LoveDuckie, it is "with"!
97: [00:13:00] <Pyromanik> <% with ContactForm %> <% with Fields %> $field name?
98: [00:13:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-installer/3.0 * rc8dbcf7 / (3 files): PHPUnit XML configs for other db drivers on TeamCity - http://git.io/c27-EQ
99: [00:14:00] <LoveDuckie> http://pastie.org/4198546
100: [00:14:00] <LoveDuckie> do I close with "end_with"?
101: [00:14:00] <LoveDuckie> [User Error] Uncaught SSTemplateParseException: Parse error in template on line 3. Error was: Unknown open block "with" encountered. Perhaps you missed the closing tag or have mis-spelled it?
102: [00:14:00] <LoveDuckie> heh
103: [00:14:00] <Pyromanik> yup
104: [00:15:00] <LoveDuckie> Not working D:
105: [00:15:00] * r3v3rb quit (Quit: r3v3rb)
106: [00:16:00] <Pyromanik> I dunno what scope you're in
107: [00:16:00] <LoveDuckie> Wait
108: [00:16:00] <Pyromanik> http://doc.silverstripe.org/framework/en/trunk/reference/templates
109: [00:16:00] <LoveDuckie> got it
110: [00:16:00] <Pyromanik> oh silly you
111: [00:16:00] <LoveDuckie> But fields still aren't showing.
112: [00:16:00] <Pyromanik> you know 'control' still works
113: [00:16:00] <LoveDuckie> XD
114: [00:16:00] <Pyromanik> well did you $Me?
115: [00:16:00] <LoveDuckie> I was closing with end_control on fields
116: [00:17:00] <Pyromanik> http://api.silverstripe.org/3.0/forms/fields-structural/FieldList.html#methodfieldByName
117: [00:17:00] <LoveDuckie> Well it's a custom template made for the ContactForm
118: [00:17:00] <LePhil> can we use arrays with removeByName? e.g. $fields->removeByName(array("field1", "field2"));
119: [00:17:00] <LoveDuckie> Check the API documentation LePhil
120: [00:17:00] <LoveDuckie> Should have all appropriate params in there
121: [00:17:00] <LoveDuckie> for the method you're after
122: [00:18:00] <Pyromanik> LePhil, no.
123: [00:18:00] <LePhil> says only "string $fieldName - The name of the field or tab "
124: [00:18:00] <Pyromanik> being that the api page you're after is pasted 2 comments above yours :P
125: [00:19:00] <Pyromanik> this guy though
126: [00:19:00] <LePhil> yes
127: [00:19:00] <Pyromanik> this guy is going to bed.
128: [00:19:00] * Pyromanik wishes y'all the best of luck.
129: [00:19:00] <LePhil> good night to that guy
130: [00:19:00] <Pyromanik> try not to make it explode.
131: [00:19:00] <LePhil> aren't you in GMT+2?
132: [00:19:00] <Pyromanik> ciao
133: [00:19:00] <LePhil> ciao
134: [00:19:00] <Pyromanik> LePhil, add another 10
135: [00:19:00] <Pyromanik> and it said no.
136: [00:19:00] <LePhil> oh
137: [00:19:00] <Pyromanik> "String"
138: [00:19:00] <Pyromanik> is what it actually said
139: [00:20:00] * LePhil tips to the hat
140: [00:20:00] * Pyromanik quit (Quit: HydraIRC -> http://www.hydrairc.com <- \o/)
141: [00:20:00] <Pyromanik> :P
142: [00:20:00] <LePhil> carry on, then
143: [00:20:00] <LePhil> ok
144: [00:21:00] <Colin[pi]> i hate you internet explorer
145: [00:21:00] <SStuck> hi guys, apologies for thick n00b question. I have a little jquery function which I found (as I have zero js knowledge) to try to get my SideBar and Content divs the same height (am basically using blackcandy theme) I've put in a file heights.js in mysite/javascript/. I gather requirements should go in the template rather than the controller init function so in the head of page.ss along with the css requirments I have <% require javascript(mysite/javascri
146: [00:21:00] <SStuck> do next?! :-p
147: [00:22:00] <SStuck> or indeed, what did I get wrong so far
148: [00:22:00] <LoveDuckie> lol I have no idea what you are trying to achieve or what you have.
149: [00:23:00] <LoveDuckie> if require javascript() doesn't working, you could always use <script type="text/javascript" src="">
150: [00:23:00] <SStuck> yeah sorry meant to put link in! This is the function: http://www.sspaste.com/paste/show/4ff437c8292d6
151: [00:24:00] * zfmf has joined #silverstripe
152: [00:24:00] <LoveDuckie> that
153: [00:24:00] <LoveDuckie> make sure though
154: [00:24:00] <LoveDuckie> Yeah, if it's with document on load then it should work fine
155: [00:24:00] <SStuck> in theory should that just work witht he requirement in the template?
156: [00:25:00] <LoveDuckie> <% require javascript({$ThemeDir}/themename/javascript/filename.js) %>
157: [00:25:00] <SStuck> thanks for the patience and help LoveDuckie :-)
158: [00:25:00] <LoveDuckie> hold on
159: [00:25:00] <LoveDuckie> it's like this
160: [00:25:00] * Colin[pi] quit (Quit: balls)
161: [00:26:00] <LoveDuckie> And don't mention it, I come on here asking for help all the time. I ought to give back.
162: [00:26:00] <LoveDuckie> wait
163: [00:26:00] <LoveDuckie> ({$ThemeDir}/javascript/filename.js) %>
164: [00:26:00] <LoveDuckie> there
165: [00:27:00] <LoveDuckie> If that doesn't work you can always go the plain HTML route.
166: [00:27:00] <SStuck> oh it needs to be inside my themes directory I will move it. Sorry but whay did you mean when you said Yeah, if it's with document on load then it should work fine - do I need to add anything to make sure it's called?
167: [00:27:00] <LoveDuckie> nope.
168: [00:27:00] <SStuck> cool
169: [00:27:00] <LoveDuckie> at least it doesn't looke that way
170: [00:36:00] <SStuck> hmm so created directory Themes/backcandy/javascript (alonside css and template directoroes for theme), put my heights.js file in there and <% require javascript({$ThemeDir}/javascript/heights.js) %> in page.ss but no joy :-( I wonder why... will maybe give the <script> tag route a go
171: [00:37:00] <LoveDuckie> If you're using Chrome
172: [00:37:00] <LoveDuckie> hit F12
173: [00:37:00] <LoveDuckie> and find out if it has been included in the page properly.
174: [00:40:00] * UndefinedOffset quit (Disconnected by services)
175: [00:40:00] <LoveDuckie> At least then you can see if it's 404ing and it's a bad URL or something
176: [00:40:00] * UndefinedOffset1 is now known as UndefinedOffset
177: [00:40:00] <SStuck> yeah I am using chrome, but it doesn't work in ff either :-( ... no sign of it in scripts in chrome inspector or firebug. Firebug reports no js on this page
178: [00:40:00] * UndefinedOffset1 has joined #silverstripe
179: [00:42:00] <SStuck> in chrome inspector in the html the <% require appears in quotes after the body tag even though it's with the css requirements in the head of the template. Confused :-s
180: [00:43:00] <UndefinedOffset> SStuck: try <% require javascript(themes/blackcandy/javascript/heights.js) %>
181: [00:44:00] <UndefinedOffset> its possible that the {$ThemeDir} is causing the template parser to miss the require block
182: [00:46:00] <LoveDuckie> interesting D: works fine on my Page.ss for a couple of scripts that I am using
183: [00:46:00] <SStuck> script being included now :-)
184: [00:46:00] <LoveDuckie> glad to hear that its OK now
185: [00:47:00] <SStuck> hmm. Only thing is the script isn't actually doing what I want! neither idebar nor content being expanded to match the height of the other!
186: [00:47:00] <SStuck> d'oh
187: [00:48:00] <LoveDuckie> I bet that you haven't included jQuery properly?
188: [00:48:00] <SStuck> okay chrome inspector is showing uncaught reference error jquery is not defined... now what did I muck up?!
189: [00:48:00] <ss23> Not sure if I decided to get a Sitehost VPS at precisely the wrong time, or they always have 4x downtimes in a month :/
190: [00:49:00] <LoveDuckie> Linode seems to always take my node down for "maintenance"
191: [00:49:00] <LoveDuckie> Seems to be common for VPS hosts to have downtimes quite regularly.
192: [00:50:00] * cuSSter has left #silverstripe
193: [00:53:00] <ss23> Pretty good
194: [00:53:00] <ss23> Hmm, guuess it depends on a lot of factors. I've got a linode that I manage fro a friend thats been down once in the last 6 months
195: [00:54:00] <SStuck> most likely LoveDuckie... although I have a lightbox on youtube gallery working but I guess jquery is just included there and not for the site as a wole
196: [00:56:00] <SStuck> hmm do I need to download jquery separately to my installation? I thought it was included (2.4.7) but can't see a relevant file in my cms/javascript dir
197: [00:58:00] <SStuck> oh, found mysite/jquery.js
198: [01:04:00] <SStuck> sorry fr the running commentary... so now I have jquery included - <% require javascript(mysite/javascript/jquery.js) %> and it is showing in the inspector but the following script <% require javascript(themes/blackcandy/javascript/heights.js) %> isn't!
199: [01:06:00] * webguest has joined #silverstripe
200: [01:07:00] <webguest> any idea's?
201: [01:07:00] <webguest> im stuck at something. im using the dataobjects-as-pages module. created 3 files to make it work, i can add dataobjects to my ProjectsAdmin in the CMS ... when i extend the Project dataobjectAsPage with an $db =array ('klant' => 'text'); .. and i hit save and publish... i get an error: Unknown column 'ClassName' in 'field list' [14:57:34] rob.van.eck1: chrome says: POST http://url/admin/projects/Project/4/EditForm?action_
202: [01:08:00] <SStuck> oh dear, nightmare. Both scripts now included but heights function isn't working and jquery requirement is mucking up my lightwindows in the youtube gallery :-(
203: [01:13:00] <CIA-12> silverstripe: TeamCity silverstripe-cms/translation-staging * rdf4ada2 / lang/nb.yml : MINOR Updated translations - http://git.io/JhIYcA
204: [01:15:00] * xmem has joined #silverstripe
205: [01:19:00] <webguest> any one?
206: [01:20:00] <CIA-12> silverstripe: Ingo Schommer sapphire/3.0 * r8548014 / (cli-script.php tests/bootstrap.php): CLI bootstrap: Merge existing $_GET and $_REQUEST data - http://git.io/bBP07Q
207: [01:25:00] <SStuck> webguest this may be of some use: http://www.silverstripe.org/all-other-modules/show/7392
208: [01:41:00] <webguest> ty
209: [01:41:00] <webguest> SStuck: yeah, deleting the tables in the database, and dev/build .. worked!
210: [01:43:00] * Jeroenem quit ()
211: [01:45:00] * LinusN has left #silverstripe
212: [01:48:00] <SStuck> np, db equivalent of switch it off and back on again!
213: [01:58:00] * DimiStripe quit (Quit: Page closed)
214: [02:14:00] <ocm> ssstuck
215: [02:15:00] <ocm> where do your js get loaded?
216: [02:15:00] <ocm> in the <head></head> ? or before </body>?
217: [02:18:00] <ec8or_> no pictures at all displayed on roman
218: [02:19:00] <ocm> the roman empire?
219: [02:21:00] <ec8or_> wrong window :)
220: [02:22:00] <ocm> haha
221: [02:23:00] <ocm> or does it check the css first before adding a class?
222: [02:23:00] <ocm> the image class keeps being left
223: [02:23:00] <ocm> btw, anyone else has the tinyMCE bug on image alignment?
224: [02:23:00] <ocm> no matter what I choose
225: [02:25:00] <LePhil> how hard on a scale from 1 to hard is it to implement this: have a dropdown-box in the CMS with values 1-4, and upon changing that value, a number of fields get generated. e.g. choose 3 from dropdownbox --> 3 fields get created
226: [02:25:00] * ajshort quit (Quit: ChatZilla 0.9.88-rdmsoft [XULRunner 1.9.2.12/20101026201539])
227: [02:26:00] <ocm> about 474rd
228: [02:26:00] <ocm> hm
229: [02:26:00] <LePhil> or a button to add another field
230: [02:26:00] <ocm> :P
231: [02:26:00] <LePhil> pretty hard, then :P
232: [02:26:00] <ocm> it depens on what kind of fields you want
233: [02:26:00] <ocm> using 2.4.7 or 3.0 rc2?
234: [02:27:00] <ocm> depending on your skill it is about 4 hardness
235: [02:27:00] <LePhil> I just did something with that yesterday
236: [02:27:00] <ocm> and go for the Complex Table Field
237: [02:27:00] <ocm> get uncle cheese's dataobjectmanager
238: [02:27:00] <LePhil> basic stuff
239: [02:27:00] <LePhil> 2.4.7. and textfields
240: [02:28:00] <LePhil> uncle cheese's stuff automagically adds +5 to that value
241: [02:28:00] <ocm> without the DOM it adds +ard
242: [02:28:00] <ocm> :P
243: [02:29:00] <LePhil> I don't need to manage them, really.
244: [02:29:00] <LePhil> just don't want to add 4 fields when the user can use only 1 or 2 if he fancies that
245: [02:30:00] <LePhil> but I want him to have the possibility to go up to 4
246: [02:30:00] <LePhil> or 5
247: [02:30:00] <LePhil> or 11
248: [02:30:00] <ocm> well, if you need to be able to add more
249: [02:30:00] <ocm> and even delete some
250: [02:30:00] <ocm> and also put some content in it
251: [02:30:00] <ocm> ;)
252: [02:30:00] <ocm> then you call it managing your fields
253: [02:31:00] <LePhil> true
254: [02:31:00] <LePhil> thanks :)
255: [02:31:00] <LePhil> i'll try it with DOM
256: [02:31:00] <LePhil> hm that's probably not really easier
257: [02:31:00] <ocm> but clear again on f5 :P
258: [02:31:00] <LePhil> but not backend-managing :P
259: [02:31:00] <ocm> messing the view up
260: [02:31:00] <ocm> otherwise you could just write some js code that prompts random fields on click
261: [02:31:00] <LePhil> crap.
262: [02:31:00] <LePhil> yeah
263: [02:32:00] <ocm> np
264: [02:33:00] <ocm> what is the function of these fields?
265: [02:33:00] <LePhil> maybe managing them on the backend isn't that stupid of an idea, actually
266: [02:34:00] <LePhil> just to print 4 texts
267: [02:34:00] <LePhil> especially considering translatability
268: [02:35:00] <LePhil> so no TinyMCE
269: [02:35:00] <LePhil> but with fancy styling
270: [02:36:00] <ocm> print text from the cms into content?
271: [02:39:00] * Arno has joined #silverstripe
272: [02:39:00] <Arno> Im trying to add a style to tinymce, but for some reason it doesnt show up, im using HtmlEditorConfig::get('cms')->setOption('theme_advanced_styles', 'Name 1=class1;Name 2=class2'); in _config.php
273: [02:40:00] <ocm> atleast, I think :P
274: [02:40:00] <ocm> and you are set arno
275: [02:40:00] <ocm> like this for img:
276: [02:40:00] <ocm> HtmlEditorConfig::get('cms')->setOption('theme_advanced_styles', 'None=none;Image left=left;Image center=center;Image right=right;Image left alone=leftAlone;Image right alone=rightAlone');
277: [02:40:00] <LePhil> yes
278: [02:40:00] <ocm> replace Name with the right dom-element
279: [02:40:00] * webguest quit (Quit: Page closed)
280: [02:41:00] <Arno> the style
281: [02:41:00] <Arno> hmpf doesnt show up still, im adding it to editor.css
282: [02:42:00] <Arno> HtmlEditorConfig::get('cms')->setOptions(array('content_css'=>'cms/css/editor.css, '.(SSViewer::current_theme() ? THEMES_DIR . "/" . SSViewer::current_theme() : project()) . "/css/editor.css"));
283: [02:42:00] <LePhil> arno, if you find out, please tell us. I tried that before and didn't get it to work
284: [02:42:00] <Arno> is it possible to do such a set up? or you can only use get once
285: [02:42:00] <Arno> HtmlEditorConfig::get('cms')->setOption('theme_advanced_styles', 'None=none;Groot Groen=BigGreen');
286: [02:43:00] <Arno> doesnt work ocm
287: [02:44:00] <ocm> though I not really worked that much with that
288: [02:44:00] <ocm> I think you should put it in one string all together
289: [02:44:00] <ocm> as a gigantic array or something
290: [02:45:00] <ocm> I only use the string I just showed, so the right class gets added when a user adds an image
291: [02:46:00] <ocm> maybe it helps a bit
292: [02:46:00] <Arno> aha oke
293: [02:46:00] <Arno> well thanks anyway
294: [02:46:00] <ocm> what happens if you add the style to typography.css?
295: [02:47:00] <LoveDuckie> and display them in their own template?
296: [02:47:00] <LoveDuckie> Anyone know how to loop through fields in a forma
297: [02:47:00] <LoveDuckie> <% with Fields %>
298: [02:48:00] <LoveDuckie> ?
299: [02:48:00] <LoveDuckie> <% end_with %>
300: [02:52:00] <LePhil> what do you mean with "loop through fields"?
301: [02:54:00] <LoveDuckie> lolwat.
302: [02:54:00] <LoveDuckie> essentially yeah
303: [02:54:00] <ss23> You do the loop'de'loop then pull
304: [02:54:00] <LoveDuckie> I found some documentation on the silverstripe
305: [02:54:00] <ss23> Now your shoes are looking cool.
306: [02:54:00] <LoveDuckie> but it's outdated apparently.
307: [02:54:00] <ss23> http://www.youtube.com/watch?v=ZvMUlywpYr8
308: [02:55:00] <ss23> wow bad quality
309: [02:55:00] <ss23> Gets the point across
310: [02:55:00] <LoveDuckie> lol still don't get your point.
311: [02:55:00] <ss23> YOU MAKE A LOOP DE LOP AND PULL
312: [02:55:00] <ss23> AND YOUR SHOES ARE LOOKING COOL
313: [02:55:00] <LoveDuckie> WOAH OKAY.
314: [02:56:00] <LoveDuckie> "[Warning] Missing argument 1 for ViewableData::getField(), called in C:\wamp\www\poco\framework\view\ViewableData.php on line 106 and defined"
315: [02:56:00] <LoveDuckie> http://pastie.org/4199261
316: [02:56:00] <LoveDuckie> GAWD DAMMIT
317: [02:57:00] * xmem quit (Quit: Verlassend)
318: [03:03:00] * oscar_ quit (Ping timeout: 246 seconds)
319: [03:03:00] * OzziNL quit (Ping timeout: 252 seconds)
320: [03:19:00] * EMaster has joined #silverstripe
321: [03:20:00] <EMaster> Is there any documentation on replacing Director::AddRules() with yml?
322: [03:20:00] * EMaster is tired of reading all the entries in the logfile
323: [03:22:00] * EMaster goes back to thinking about Stacey's mom
324: [03:41:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-translatable/master * r319a7fa / code/controller/TranslatableCMSMainExtension.php : Merge pull request #32 from blu42media/patch-1 - http://git.io/yYh4IA
325: [03:41:00] <CIA-12> silverstripe: BLU42 Media silverstripe-translatable/master * r01a61f4 / code/controller/TranslatableCMSMainExtension.php : fixed typo in function call - http://git.io/PAhGeg
326: [03:45:00] * perverse` has joined #silverstripe
327: [03:45:00] * perverse` quit (Read error: Connection reset by peer)
328: [03:47:00] <LePhil> anyone knows how to count the number of items (like $TotalItems) but OUTSIDE of the control?
329: [03:54:00] <ocm> javascript
330: [03:54:00] <Arno> LePhil: mabye two dataobjects? one for control one for count?
331: [03:54:00] <ocm> or by hand
332: [03:55:00] <ocm> I go now
333: [03:55:00] <ocm> I would prefer counting them manual
334: [03:55:00] <LePhil> but it doesn't look that way
335: [03:55:00] <LePhil> just thought of that too :)
336: [03:55:00] <LePhil> maybe there's a template function
337: [03:55:00] <ocm> or on your fingers
338: [03:55:00] <Arno> but mabye he wants to use it dynamically?
339: [03:55:00] <ocm> LePhil, maybe this helps?
340: [03:55:00] <ocm> http://www.wateenspeelgoed.nl/contents/media/houten%20-speelgoed-houten-telraam.jpg
341: [03:55:00] <LePhil> hehe
342: [03:55:00] <Arno> ah oke, loving the trolling
343: [03:55:00] <ocm> anyway
344: [03:56:00] <ocm> cheers
345: [03:56:00] <ocm> before rain starts falling down on me
346: [03:56:00] <ocm> and I got to swim
347: [03:56:00] <LePhil> prefer that one http://i.istockimg.com/file_thumbview_approve/3204474/2/stock-illustration-3204474-counting-on-fingers.jpg
348: [03:58:00] <Arno> and you made the .Total in your function
349: [03:58:00] <Arno> hehe
350: [03:58:00] <Arno> LePhil: I wonder if you can use two functions in one
351: [03:58:00] <Arno> one for <% control %> and then one as like $Function.Total
352: [03:58:00] <Arno> but thats just me talking without having any real php skills :)
353: [03:59:00] <Arno> ah oke :)
354: [03:59:00] <LePhil> hehe
355: [03:59:00] <LePhil> no we're doing the additional dataObject way now
356: [03:59:00] <LePhil> seems easier
357: [03:59:00] * zfmf has left #silverstripe
358: [04:00:00] * zfmf has joined #silverstripe
359: [04:00:00] * ocm quit (Ping timeout: 245 seconds)
360: [04:00:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-translatable/master * r1a4b284 / code/controller/TranslatableCMSMainExtension.php : Fixed deprecated function usage (#33) - http://git.io/H3qCTA
361: [04:07:00] * hormy quit (Ping timeout: 245 seconds)
362: [04:08:00] <CIA-12> silverstripe: jakr sapphire/3.0 * r2069695 / forms/gridfield/GridFieldDataColumns.php : FIX: Ticket #7592 GridFieldDataColumns: Wrong documentation for getFieldCasting Moved documentation to the appropriate function, added note about the two parameter callback function. - http://git.io/Vr5z4A
363: [04:17:00] * elgrodo quit (Read error: Connection reset by peer)
364: [04:18:00] <CIA-12> silverstripe: jakr sapphire/3.0 * r2b5214b / docs/en/changelogs/3.0.0.md : Summarized 3.0 changes in changelog - http://git.io/YQ_NLw
365: [04:18:00] <FrozenFire> Any tips for dealing with SilverStripe being in a subfolder of the webroot?
366: [04:29:00] <Arno> change the webroot of .htaccess to the right subfolders
367: [04:32:00] * webdoc has joined #silverstripe
368: [04:33:00] <FrozenFire> webdoc, What are the Security permissions for your current user?
369: [04:33:00] <webdoc> hi
370: [04:33:00] <webdoc> can some one help with http://www.silverstripe.org/dataobjectmanager-module-forum/show/20185
371: [04:33:00] <FrozenFire> Why hello there, good sir.
372: [04:33:00] <webdoc> giving this error when i use 2nd paragraph line in simpletinymce field
373: [04:34:00] <FrozenFire> As well, do you have the .htaccess file properly installed?
374: [04:34:00] <webdoc> admin
375: [04:34:00] <webdoc> in ss
376: [04:34:00] <webdoc> looking it right now
377: [04:36:00] <webdoc> yep
378: [04:36:00] <EMaster> I know this might sound stupid... but you are definitely still logged into the CMS?
379: [04:36:00] <webdoc> maybe its problem with silverstripe cache
380: [04:37:00] <webdoc> looks like its ok
381: [04:37:00] <webdoc> i have installed it in not root folder but in folder called top
382: [04:37:00] <webdoc> and the rewritebase is set to /top/
383: [04:38:00] <LoveDuckie> HOW do I make one particular field appear?
384: [04:38:00] <webdoc> <IfModule mod_alias.c> RedirectMatch 403 /silverstripe-cache(/|$) </IfModule>
385: [04:38:00] <webdoc> also have this line
386: [04:38:00] <LoveDuckie> Ergh, OK I am making a template for a custom Form object called ContactForm
387: [04:38:00] <LoveDuckie> FieldList()->getField("name")?
388: [04:38:00] <LoveDuckie> Been ripping out my hair here.
389: [04:38:00] <LoveDuckie> I know how to get them all appearing at once
390: [04:38:00] <LoveDuckie> btu that's not what I want.
391: [04:39:00] <FrozenFire> webdoc, If at all possible, modify your vhost configuration to place the webroot at /top/, instead of rewriting the base.
392: [04:39:00] <webdoc> its test web and going up soon on root
393: [04:39:00] <webdoc> but what happens if i remove the silverstripe cache
394: [04:40:00] <EMaster> just rename it
395: [04:40:00] <zfmf> .
396: [04:40:00] <EMaster> a new one should magically appear (providing file/dir permissions are right)
397: [04:40:00] <EMaster> but to be safe
398: [04:41:00] * zfmf quit (Read error: Connection reset by peer)
399: [04:42:00] <CIA-12> silverstripe: Ingo Schommer sapphire/3.0 * rde73db9 / docs/en/changelogs/3.0.0.md : Restructured 3.0 changelog - http://git.io/hZp0Dg
400: [04:44:00] <FrozenFire> LoveDuckie, That's... tricky.
401: [04:46:00] <FrozenFire> LoveDuckie, I'm pretty sure that it's all or nothing, in terms of outputting the form. If you only output part of the form, you're liable to cause errors in the form handling.
402: [04:46:00] <FrozenFire> LoveDuckie, The best bet is to hide unwanted fields with CSS.
403: [04:47:00] <FrozenFire> If you need to get a field for another purpose, in your controller, you can do $form->Fields()->fieldByName('name');
404: [04:48:00] * openbees has joined #silverstripe
405: [04:49:00] <LoveDuckie> I mean, I am literally doing it for the sake of positioning.
406: [04:49:00] <LoveDuckie> That's it.
407: [04:50:00] <FrozenFire> LoveDuckie, Best to use CSS
408: [04:50:00] <LoveDuckie> Hmkay.
409: [04:52:00] <LoveDuckie> Just because of bad standards or?
410: [04:52:00] <LoveDuckie> I managed to get the fields returning separately
411: [04:52:00] <LoveDuckie> I made a function named "returnField($name)"
412: [04:52:00] <openbees> sminnee : need to fix i think ! I was just checking silverstripe.com and on this page "http://www.silverstripe.com/our-work/westpac/" link below "Westpac" title (www.westpac.co.nz) is sending users to "http://www.silverstripe.com/www.westpac.co.nz"
413: [04:52:00] <LoveDuckie> which then calls the forms Fields()->fieldByName
414: [04:52:00] <LoveDuckie> I'll let you know if it works even if called separately.
415: [04:52:00] <FrozenFire> :\ I'd recommend against that, LoveDuckie
416: [04:52:00] <FrozenFire> I've hacked at forms pretty intensely, and I can tell you that you're likely to break it ;)
417: [04:53:00] <LoveDuckie> within the form
418: [04:53:00] <LoveDuckie> that calls "$FormAttributes"
419: [04:53:00] <LoveDuckie> ContactForm.ss
420: [04:53:00] <LoveDuckie> I call $returnField from the template
421: [04:53:00] * EMaster quit (Ping timeout: 245 seconds)
422: [04:53:00] <LoveDuckie> That's where it is
423: [04:53:00] <FrozenFire> LoveDuckie, Keep your presentation in your view.
424: [04:54:00] <LoveDuckie> I see.
425: [04:54:00] <FrozenFire> http://ubiquitycorp.com/contact/ There's an example of where I've styled the form nicely.
426: [04:54:00] <FrozenFire> It's actually not very difficult to style forms. Modifying the rendering of the form is a bad idea.
427: [04:54:00] <LoveDuckie> so surely as long as I include the fields within the form and field set, it should be OK?
428: [04:54:00] * slith quit (Quit: Leaving.)
429: [04:54:00] * lx-berlin has left #silverstripe
430: [04:56:00] * PigeonFriend quit ()
431: [04:58:00] * slith has joined #silverstripe
432: [04:59:00] <CIA-12> silverstripe: ARNHOE sapphire/3.0 * rb6c59f2 / (admin/css/screen.css admin/scss/_forms.scss): Restricting input.time width - http://git.io/wazNbw
433: [05:00:00] * LePhil quit (Ping timeout: 245 seconds)
434: [05:00:00] <LoveDuckie> FrozenFire, how do I add labels to a field?
435: [05:02:00] <FrozenFire> LoveDuckie, In the field definition
436: [05:03:00] <openbees> sminnee : oops same here "http://www.silverstripe.com/our-work/plunket/" on left side of content area below "Plunket" title !!
437: [05:03:00] * r3v3rb has joined #silverstripe
438: [05:03:00] <FrozenFire> new TextField('fieldname', 'title', 'value')
439: [05:03:00] <FrozenFire> Title being the label contents.
440: [05:04:00] * theorytank has joined #silverstripe
441: [05:06:00] <LoveDuckie> but nothing appearing on top.
442: [05:06:00] <LoveDuckie> Yeah, I got those params filled out
443: [05:07:00] <FrozenFire> Check the HTML output
444: [05:07:00] <FrozenFire> Also, are you using SS3?
445: [05:07:00] <FrozenFire> You sure you're not accidentally hiding the label elements?
446: [05:09:00] <LoveDuckie> Yeah I am
447: [05:10:00] <FrozenFire> There may be some differences there. I've not done anything more than installed it thusfar
448: [05:10:00] <LoveDuckie> OK
449: [05:11:00] <LoveDuckie> I'll check it out some more
450: [05:11:00] <LoveDuckie> But there's no hidden labels that's for sure.
451: [05:13:00] * chillu quit (Quit: chillu)
452: [05:17:00] <FrozenFire> (Grid Field)
453: [05:17:00] <FrozenFire> Anyone have a translated version of this talk?: http://vimeo.com/37216649
454: [05:17:00] <FrozenFire> :P
455: [05:17:00] <FrozenFire> I have a really hard time understanding the New Zealand accent
456: [05:21:00] * gelignite has joined #silverstripe
457: [05:22:00] * SStuck has left #silverstripe
458: [05:24:00] * openbees quit (Quit: Leaving)
459: [05:26:00] <LoveDuckie> Looks interesting
460: [05:33:00] <webdoc> it still the same
461: [05:36:00] <webdoc> installed in subdomain
462: [05:36:00] <webdoc> and used the same stuff
463: [05:36:00] <webdoc> but still in 2nd paragraph it gives error
464: [05:40:00] * chillu has joined #silverstripe
465: [05:41:00] <FrozenFire> http://doc.silverstripe.org/framework/en/topics/environment-management
466: [05:41:00] <FrozenFire> You might need an _ss_environment.php file in your SS root, with a FILE_TO_URL_MAPPING
467: [05:41:00] <FrozenFire> webdoc, It really does sound like an error in routing the requests. That'd be related to have SS installed not in the site root
468: [05:55:00] * apk26 quit (Ping timeout: 245 seconds)
469: [06:04:00] <webdoc> all ok with it
470: [06:04:00] <webdoc> if i write on line 1 paragraph it lets me save
471: [06:04:00] <webdoc> if i add second it gives error
472: [06:05:00] <webdoc> something with detailform
473: [06:05:00] <FrozenFire> webdoc, Do you have access to your server's error log?
474: [06:05:00] <webdoc> yes
475: [06:06:00] <FrozenFire> Have you checked the contents of that?
476: [06:07:00] * subaru_ has joined #silverstripe
477: [06:08:00] <subaru_> come estas
478: [06:08:00] <subaru_> ola senor y senoras
479: [06:09:00] * subaru_ quit (Client Quit)
480: [06:10:00] <FrozenFire> webdoc, From the looks of the error message you PM'd me, your rewritebase is incorrect
481: [06:10:00] <FrozenFire> You need a trailing slash on the /top
482: [06:10:00] <FrozenFire> .../topseadmed/admin/EditForm/field/...
483: [06:22:00] <FrozenFire> webdoc, Are you sure that your file permissions are correct?
484: [06:23:00] <webdoc> yep
485: [06:34:00] <Arno> chillu: countrydropdownfield is added on master, but not on 3.0 (on github)
486: [06:36:00] * Nemitz has joined #silverstripe
487: [06:37:00] <Nemitz> Hi ppl :o)
488: [06:43:00] <Nemitz> Anyone knows how to make urls like index.php?id=1 fail? I'm trying to use ajshorts module linkmapping, to redirect old links to new pages. Old links are in the format index.php?id=xx and that unfortunately also works in SS.
489: [06:44:00] <Nemitz> Actually that is actually something that should always happen from a SEO perspective (or better redirect with 301 to correct url /page/subpage/)
490: [06:48:00] <FrozenFire> But since SS uses the url parameter for its internal redirect, it was... very difficult.
491: [06:48:00] <FrozenFire> Nemitz, That's actually quite tricky. I had a similar problem, where I needed a page to accept a url=foo parameter
492: [06:49:00] <FrozenFire> And it's still pretty buggy.
493: [06:50:00] <Nemitz> so many different urls that will give you the same content
494: [06:50:00] * theorytank quit (Quit: Page closed)
495: [06:50:00] <Nemitz> hmm yeah that's also another problem regarding SEO
496: [06:52:00] <Nemitz> I hoped there was just somewhere i could ad some check if url contained index.php, if so then fail and thereby go to the method in linkmapping module that handles redirects
497: [06:55:00] <FrozenFire> It might be possible with a rewriterule
498: [06:57:00] <Nemitz> tried messing around with rewrite rules last week for something else - did not work out for me :-) i just don't understand
499: [06:57:00] <FrozenFire> You'd have to check if it was a first-order request (not an internal request)
500: [06:59:00] <FrozenFire> The issue is that if you try to rewrite accesses to index.php, you are interfering with SilverStripe's routing scheme.
501: [06:59:00] <FrozenFire> It directs all requests to index.php
502: [07:05:00] <FrozenFire> Nemitz, I think it may be possible to use something like: RewriteRule ^/index.php?id=(.*) /wherever/linkmapping/is/index.php?id=$1 [NS]
503: [07:06:00] <FrozenFire> [NS] means "no subrequests"
504: [07:06:00] <Nemitz> yeah ok, i guess i'm in over my head here - think i will just try to implement the Legacy URL rewrites from the SS Book
505: [07:08:00] <Nemitz> FrozenFire: must admit i would not know where to start with that stuff, so i will leave it for now. Maybe use the Legacy URL or just do htaccess rewrites
506: [07:09:00] <FrozenFire> Nemitz, It *should* be as simple as placing that rewrite in your .htaccess prior to the SilverStripe rewrites.
507: [07:09:00] <FrozenFire> (Taking care to make sure RewriteEngine On is called)
508: [07:09:00] <Nemitz> what does /wherever/linkmapping/is mean?
509: [07:11:00] <FrozenFire> How are you wanting to map these IDs to your new URLs?
510: [07:12:00] <Nemitz> link mapping module kicks in when no page is found, so if a url is not found in filesystem or as a SS page, the module will look for a "link mapping"
511: [07:13:00] <Nemitz> https://github.com/ajshort/silverstripe-linkmapping/blob/master/code/controllers/LinkMappingFrontController.php
512: [07:13:00] <FrozenFire> For instance, if you wanted index.php?id=<x> to map to /yourcontroller/<x>/, you'd use: RewriteRule ^/index.php?id=(.*) /yourcontroller/$1/ [NS]
513: [07:13:00] <FrozenFire> You may be able to completely avoid using the linkmapping module for this
514: [07:14:00] <FrozenFire> The linkmapping module is for simple mappings, not complex ones like this, where you're wanting to override index.php
515: [07:17:00] <Nemitz> ok, to bad - that form of redirects would be a very common use case, never mind, i will go with the Legacy URL solution from the book, as it seems to be able to handle this
516: [07:22:00] * dospuntocero has joined #silverstripe
517: [07:38:00] <chillu> Arno: We'll merge master back to 3.0 at some point soon
518: [07:39:00] * webdoc quit (Ping timeout: 245 seconds)
519: [07:43:00] <dospuntocero> hey guys.. quick question
520: [07:43:00] <dospuntocero> what do i need to do in templates on SS3 to getting the dates in spanish?
521: [07:44:00] <Nemitz> $Date.Nice if i18n::set_locale is set to Spanish i think
522: [07:47:00] <dospuntocero> mmm Nemitz i think it doesnt work...
523: [07:48:00] <r3v3rb> arggggghhhhhhh stooopid italians wanting to get their own hosting!
524: [07:48:00] <dospuntocero> i tried with .FormatI18N(%A %e de %B de %Y)
525: [07:48:00] <dospuntocero> but didnt worked either.
526: [07:48:00] <r3v3rb> has fooked up everything, SS doesn't even run on it!
527: [07:49:00] <dospuntocero> lol r3v3rb
528: [07:49:00] <dospuntocero> i know the feeling
529: [07:50:00] <dospuntocero> cant they just change to another italian server?
530: [07:50:00] <r3v3rb> dospuntocero: not funny - test site on my server works perfectly - can't even get their host to run the installer!
531: [07:50:00] <dospuntocero> LMAO.
532: [07:50:00] <r3v3rb> tried bypassing by uploading all correct files etc and boom Error 500 Internal Server
533: [07:50:00] <r3v3rb> why they can't just host with me i do not know!
534: [07:51:00] <dospuntocero> is it yours free?
535: [07:51:00] <dospuntocero> or awfully cheap?
536: [07:51:00] <r3v3rb> its not like I am even expensive - their hosting cost more than mine
537: [07:51:00] <dospuntocero> then offer the first year free.
538: [07:51:00] <dospuntocero> or something simliar
539: [07:52:00] <r3v3rb> its already been on there 6 months whilst they fannyed about uploading all their content!
540: [07:52:00] <Nemitz> r3v3rb: can it be something with the rewrite path in .htaccess?
541: [07:52:00] <r3v3rb> well I have the default .htaccess but it bails
542: [07:53:00] <r3v3rb> Nemitz: what might you suggest...
543: [07:53:00] <r3v3rb> the host is weird for a start
544: [07:54:00] <Nemitz> Ok, don't know, i juts had problems with server not doing anything, also on my localhost on mac, an i added: RewriteBase /~tn/developer/somesite.com
545: [07:54:00] <r3v3rb> root -> domainname_as_folder_for_public_html -> files
546: [07:55:00] <Nemitz> hate it when customers wan't to host on some sh.. server, so much problems
547: [07:57:00] <dospuntocero> damn... i cant put the date in spanish..
548: [07:57:00] <dospuntocero> :C
549: [07:57:00] <r3v3rb> quatro de julio de 2012
550: [07:57:00] <dospuntocero> r3v3rb: close
551: [07:57:00] <r3v3rb> ;)
552: [07:58:00] <dospuntocero> well i just need to return julio
553: [07:58:00] <r3v3rb> sorry my Galician wife would beat me for that
554: [07:58:00] <dospuntocero> LMAO
555: [07:58:00] <r3v3rb> cuatro
556: [07:58:00] <dospuntocero> LMAO
557: [07:58:00] <dospuntocero> yeah.
558: [07:58:00] <dospuntocero> hehe
559: [07:59:00] <dospuntocero> that returns Apr
560: [07:59:00] <dospuntocero> haha
561: [07:59:00] <Nemitz> dospuntocero: is the field defined as date?
562: [07:59:00] <r3v3rb> only one wife thank the lord above!
563: [07:59:00] <dospuntocero> that is almost ok..
564: [07:59:00] <dospuntocero> return date('M', strtotime($this->Date)); returns Jun
565: [07:59:00] <dospuntocero> and how many wifes you have?
566: [07:59:00] <dospuntocero> yes Nemitz
567: [07:59:00] <dospuntocero> return date('M', strtotime($this->Date));
568: [08:00:00] <dospuntocero> but no luck.
569: [08:00:00] <dospuntocero> and i need Abr
570: [08:00:00] <dospuntocero> i have this in my config
571: [08:00:00] <dospuntocero> i18n::set_locale('es_ES');
572: [08:00:00] <r3v3rb> dospuntocero: change the default locale
573: [08:00:00] <r3v3rb> pah!
574: [08:00:00] <dospuntocero> and setlocale(LC_ALL, 'es_ES');
575: [08:00:00] <dospuntocero> also
576: [08:00:00] <r3v3rb> but isnt date(… just a php function
577: [08:01:00] <r3v3rb> see if when passing the international date it gets transmogrified to es_ES
578: [08:01:00] <r3v3rb> nothing to do with SS
579: [08:01:00] <dospuntocero> yes
580: [08:01:00] <dospuntocero> im following this example
581: [08:01:00] <dospuntocero> http://doc.silverstripe.org/framework/en/trunk/howto/grouping-dataobjectsets
582: [08:01:00] <r3v3rb> $date = new Date();
583: [08:01:00] <r3v3rb> etc etc
584: [08:01:00] <dospuntocero> because i just needed that for an article module im working on
585: [08:02:00] <dospuntocero> how can i know that?
586: [08:03:00] <Nemitz> i18n::set_locale('da_DK');
587: [08:03:00] <r3v3rb> dospuntocero: you could always bash this in there http://snipplr.com/view/3644/
588: [08:04:00] <r3v3rb> not seen LC_TIME before
589: [08:04:00] <Nemitz> setlocale(LC_ALL, 'da_DK');
590: [08:04:00] <Nemitz> setlocale (LC_TIME, "da_DK.UTF-8");
591: [08:04:00] <Nemitz> that's what you need in config
592: [08:04:00] <Nemitz> ofcourse not da_DK :-)
593: [08:04:00] <r3v3rb> ;)
594: [08:04:00] <r3v3rb> good to know Nemitz
595: [08:05:00] <dospuntocero> yes but that is scary...
596: [08:05:00] <r3v3rb> i'll shove it in this fooken Italian site - if it ever runs
597: [08:06:00] <r3v3rb> sheesh, got to love webmasters!
598: [08:06:00] <Nemitz> well, i just have that in one site where i had to work with dates, remember having big problems also, but with that in config, i can do $StartDate.Nice
599: [08:06:00] <dospuntocero> lctime is not working either... :C
600: [08:06:00] <dospuntocero> // Set the site locale
601: [08:06:00] <dospuntocero> i18n::set_locale('es_ES');
602: [08:06:00] <dospuntocero> setlocale(LC_ALL, 'es_ES');
603: [08:06:00] <dospuntocero> setlocale(LC_TIME, 'es_ES');
604: [08:06:00] <r3v3rb> this site is hosted as 'www.twpwines.com'
605: [08:07:00] <r3v3rb> place index.html in there - runs
606: [08:07:00] <r3v3rb> '/ root directory on ftp shows 3 folders
607: [08:07:00] <r3v3rb> one being www.twpwines.com
608: [08:07:00] <r3v3rb> place SS in there - fail
609: [08:08:00] <r3v3rb> '/web/htdocs/twpwines.com/home/
610: [08:08:00] <r3v3rb> so error log shows this:
611: [08:08:00] <r3v3rb> [Wed Jul 04 21:42:10 2012] [error] [client 88.108.174.191] File does not exist: /web/htdocs/www.twpwines.com/home/$ThemeDir, referer: http://www.twpwines.com/
612: [08:08:00] <dospuntocero> easy then. just export the site in plain html
613: [08:08:00] <r3v3rb> nice
614: [08:08:00] <dospuntocero> haha
615: [08:08:00] <dospuntocero> is it even running php?
616: [08:08:00] <r3v3rb> yeh phpinfo() works and return 5.3.1 or something
617: [08:09:00] * r3v3rb is going to delete everything again
618: [08:09:00] <r3v3rb> start over
619: [08:10:00] <r3v3rb> I wonder if my redirect for Rewritebase should be /twpwines.com/home/
620: [08:11:00] <r3v3rb> hmmm
621: [08:12:00] * dospuntocero stress level up... FormatI18N lost
622: [08:15:00] <Nemitz> maybe this is relevant regarding dates: http://mikenovember.com/blog/why-your-dates-in-silverstripe-pages-never-show-up-as-expected/
623: [08:16:00] <dospuntocero> no luck.. :(
624: [08:17:00] <dospuntocero> Debug::show($member->Locale);
625: [08:17:00] <dospuntocero> lol
626: [08:17:00] <dospuntocero> returns es_ES
627: [08:18:00] * Nemitz quit (Quit: Nemitz)
628: [08:18:00] <dospuntocero> but the damned date still returns in english
629: [08:18:00] <dospuntocero> xD!!!!
630: [08:18:00] <Nemitz> crap, ok i have to go - work early in the morning. Good luck with the problems guys
631: [08:18:00] <r3v3rb> i think you will win the stress game tonight dospuntocero
632: [08:23:00] <irogue> Passengers: no buses 9-2 due to industrial action. Drivers: get to bar early for good seat of strippers, I mean "union delegates" -- AuckTransport
633: [08:27:00] * chillu quit (Quit: chillu)
634: [08:30:00] * dospuntocero damned locales.... :(
635: [08:32:00] * vbeing has joined #silverstripe
636: [08:34:00] * dospuntocero quit (Read error: Connection reset by peer)
637: [08:34:00] * dospuntocero has joined #silverstripe
638: [08:40:00] <FrozenFire> Pyromanik||, http://try.github.com/levels/1/challenges/1 This may interest you
639: [08:40:00] <irogue> damned IE9
640: [08:43:00] <Pyromanik||> oh yeah FrozenFire
641: [08:43:00] <Pyromanik||> maybe
642: [08:43:00] <ss23> irogue: BET YUO MISS IE6 NOW
643: [08:43:00] <ss23> Wait...
644: [08:43:00] <irogue> no, thats goign too far :P
645: [08:43:00] <Pyromanik||> LOLSIF
646: [08:43:00] <irogue> i like IE9 cos i don't have to test my sites in it anymore, they tend to just work
647: [08:43:00] <Pyromanik||> what's wrong with IE9?
648: [08:44:00] <Pyromanik||> FrozenFire: I see a big white screen... is that normal?
649: [08:44:00] <Pyromanik||> apart from the fact that it carries the same bugs as 7 & 8 when it comes to the 2.4 cms?
650: [08:44:00] <irogue> but for some reason it breaks on 50% of router/switch/firewall etc Web UIs, where IE8, FF and Chrome all work fine
651: [08:45:00] <Pyromanik||> irogue: hmm, maybe it's because I'm in opera
652: [08:45:00] <irogue> Pyromanik||: thats not what i see!
653: [08:45:00] <Pyromanik||> irogue: yeah. It fixed a hell of a lot of render bugs. All g. But some JS ones still exist, along with shit like that.
654: [08:45:00] <ss23> IE9 -- Still not HTML5
655: [08:45:00] <Pyromanik||> ss23: don't say that around MS too loud, they advocate it's awesome HTML5yness
656: [08:46:00] <irogue> yeah, my first question now when someone calls and says "i can't log into my router!" is "are you using IE9?"
657: [08:46:00] <Pyromanik||> well site works in ff
658: [08:46:00] <Pyromanik||> hmm
659: [08:46:00] <FrozenFire> Pyromanik||, Probably not normal
660: [08:47:00] <FrozenFire> Pop-up blocker, javascript blocker, etc?
661: [08:47:00] <ss23> irogue: Do you guys end up chucking out any working products
662: [08:47:00] <Pyromanik||> haha, irogue. Wondered why my mouse felt sluggish this morning
663: [08:47:00] <Pyromanik||> FrozenFire: not in opera
664: [08:47:00] <Pyromanik||> after I whitelist cloudfront with noscript
665: [08:48:00] <ss23> ew, Pyromanik|| ;_;
666: [08:48:00] <Pyromanik||> lifted it up, wet as fuck. Ran it through a puddle on my desk, lol..
667: [08:48:00] <irogue> FrozenFire: presumably cos its actually made by codeschool not github
668: [08:48:00] <ss23> irogue: Thats cool too! How much non working stuff, and do you know why not working? Like, if I took all the non working stuff, I could fix right? :D
669: [08:48:00] <FrozenFire> Hah, funny thing is, apparently this thing isn't open-sourced on github
670: [08:48:00] <ss23> lol
671: [08:48:00] <irogue> ss23: nah, but lots of non-working ones!
672: [08:49:00] <Pyromanik||> gitstatus still works apparently
673: [08:49:00] <Pyromanik||> lol
674: [08:49:00] <irogue> ss23: lol, probably. i'll have to find out what we've got around
675: [08:49:00] <ss23> I have a soldering iron, an IRC network that deals with electronics, and some spare time
676: [08:49:00] <ss23> "what if I use this thing with this thing? :O"
677: [08:49:00] <ss23> Well, if you have more than one thing of the same product, that would be best, so I could just like, try mix it all up etc :D
678: [08:50:00] <Pyromanik||> along with how good your solder skills are
679: [08:50:00] <Pyromanik||> and how steady your hand is
680: [08:50:00] <ss23> My soldering iron is crap
681: [08:50:00] <ss23> Yeah, true that
682: [08:50:00] <ss23> lol
683: [08:50:00] <Pyromanik||> and how fine the point on your soldering iron is
684: [08:50:00] <Pyromanik||> ss23: it really depends on what's wrong with it
685: [08:51:00] <ss23> They make it so easy
686: [08:51:00] <ss23> But hey, not like I have anything to lose?
687: [08:51:00] <ss23> :D
688: [08:51:00] <irogue> yeah, the type of stuff we sell will all be very finely soldered
689: [08:51:00] <Pyromanik||> yeh, true
690: [08:51:00] <ss23> Yeah I know the type, irogue :<
691: [08:51:00] <ss23> Watched a bunch of soldering videos on Youtube once
692: [08:51:00] <ss23> ;_;
693: [08:51:00] <ss23> BLARUGH
694: [08:51:00] <ss23> I try
695: [08:51:00] <ss23> "and just drag along here etc"
696: [08:51:00] <FrozenFire> The worst is trying to use a manual solder sucker
697: [08:51:00] <ss23> :<
698: [08:52:00] <FrozenFire> It was a 20-pin through-hole, with each pin soldered heavily to the board
699: [08:52:00] <FrozenFire> I was trying to replace a module in a plasma TV, and I absolutely could not, due to the way it was mounted on the board.
700: [08:52:00] <ss23> Getting my mother to bring some broken walkie talkies so I can try scavange some RC stuff to put in my RC car project o/
701: [08:53:00] <ss23> rm -rf /
702: [08:53:00] <Pyromanik||> LOL this code school shit is fucking hilarious
703: [08:53:00] <Pyromanik||> git commit -m "penis
704: [08:53:00] <Pyromanik||> (sic)
705: [08:53:00] <FrozenFire> I spent days with desoldering wire, a solder sucker, and a bunch of lead solder
706: [08:53:00] <Pyromanik||> git log
707: [08:53:00] <ss23> lol Pyromanik||
708: [08:53:00] <Pyromanik||> git log gives out "Added all the octocat txt files"
709: [08:54:00] <FrozenFire> Out of habit, I used git add -A
710: [08:54:00] <ss23> -no-preserve-root
711: [08:54:00] <FrozenFire> Heh. Of course it's not an actual environment
712: [08:54:00] <Pyromanik||> I DIDN"T KNOW THAT WAS A SYNONYM FOR PENIS
713: [08:54:00] <Pyromanik||> I know how to do the easy shit.
714: [08:54:00] <ss23> tbh should just include jslinux and give us a real enviroment!
715: [08:54:00] <Pyromanik||> this is retarded.
716: [08:54:00] <Pyromanik||> it wants me to make a github account
717: [08:54:00] <Pyromanik||> urgh
718: [08:54:00] <FrozenFire> Oddly, it gave me an interesting error
719: [08:54:00] <Pyromanik||> I used *
720: [08:55:00] <Pyromanik||> on the projects I had in a repo
721: [08:55:00] <ss23> skip to a higher level, Pyromanik||?
722: [08:55:00] <FrozenFire> ss23, Hah, good luck getting git working on that :P
723: [08:55:00] <Pyromanik||> I was just a bit confused as to how to deal with a conflict, since up until recently I was the sole dev.
724: [08:56:00] <Pyromanik||> yeah, it's a heap of shit.
725: [08:56:00] <Pyromanik||> http://try.github.com/levels/2/challenges/1 "the page you're looking for doesn't exist"
726: [08:56:00] <Pyromanik||> even a monkey can figure out git commit.
727: [08:56:00] <FrozenFire> Yeah, it obviously suffers for tutorialitis.
728: [08:56:00] <FrozenFire> from**
729: [08:57:00] <FrozenFire> My boss can't
730: [08:57:00] <Pyromanik||> along with add & status
731: [08:57:00] <Pyromanik||> FrozenFire: probably because he's too used to svn.
732: [08:57:00] <FrozenFire> He's the designer on the team, and he's completely confused by version control
733: [08:57:00] <Pyromanik||> this add business sent me out for a little bit.
734: [08:57:00] <FrozenFire> I've been doing all of his version control for him :P
735: [08:57:00] <FrozenFire> git commit -a -m "DeSoto's shit"
736: [08:58:00] <Pyromanik||> although it does have the advantage of logging it in a nice fashion, but otherwise it's just complete copies of the file
737: [08:58:00] <FrozenFire> He does the HTML/CSS work
738: [08:58:00] <FrozenFire> Designer/front-end dev
739: [08:58:00] <Pyromanik||> FrozenFire: well yeah. Version control doesn't make all that much sense for pictures.
740: [09:00:00] <Pyromanik||> no ss3 for me :<
741: [09:00:00] <Pyromanik||> php 5.2
742: [09:00:00] <Pyromanik||> urgh f-balls
743: [09:01:00] <FrozenFire> Interesting, your mentioning binary files had me doing some digging on ways to manage large binary files in git. I found this: http://git-annex.branchable.com/
744: [09:02:00] <FrozenFire> (Not SS's type of assets, but rather your theme images or something)
745: [09:02:00] <FrozenFire> I think using that, you could feasibly configure your assets as git remote on an S3 bucket
746: [09:10:00] * willr has joined #silverstripe
747: [09:13:00] * UndefinedOffset quit (Quit: Leaving.)
748: [09:14:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
749: [09:21:00] * Ryoken|0D has joined #silverstripe
750: [09:21:00] * Ryoken|Desktop quit (Disconnected by services)
751: [09:21:00] * Ryoken|0D is now known as Ryoken|Desktop
752: [09:24:00] * vbeing quit (Quit: Page closed)
753: [09:42:00] <Pyromanik||> how to .deb repository?
754: [10:01:00] * dospuntocero quit (Remote host closed the connection)
755: [10:03:00] <ss23> vim /etc/something.sources
756: [10:03:00] <irogue> Pyromanik||: add a repo to apt, or instakk a .deb file?
757: [10:03:00] <irogue> *install
758: [10:03:00] <ss23> looks about right
759: [10:03:00] <irogue> /etc/apt/sources.list iirc
760: [10:04:00] <irogue> yup
761: [10:04:00] <irogue> tested!
762: [10:10:00] <Pyromanik||> but
763: [10:10:00] <Pyromanik||> I know
764: [10:10:00] <Pyromanik||> yeah
765: [10:11:00] <ss23> http://www.dotdeb.org/instructions/
766: [10:11:00] <ss23> Pyromanik||: ^^
767: [10:11:00] <Pyromanik||> ss23: derp less please.
768: [10:11:00] <Pyromanik||> http://archives.dotdeb.org/dists/lenny/
769: [10:11:00] <Pyromanik||> Is NOT a repository :(
770: [10:11:00] <ss23> dude
771: [10:11:00] <ss23> Don't they give instructions?
772: [10:12:00] <Pyromanik||> IS NOT A REPOSITORY
773: [10:12:00] <ss23> ;_;
774: [10:12:00] <ss23> I'm so confused
775: [10:12:00] <Pyromanik||> it's just a list of .deb files.
776: [10:12:00] <Pyromanik||> it cannot be used as a repo.
777: [10:12:00] <Pyromanik||> no repo info contained within archive list.
778: [10:13:00] <irogue> iirc they do dependency checks but no auto resolving
779: [10:13:00] <Pyromanik||> ?
780: [10:13:00] <Pyromanik||> which leads me to my next question... do deb packages still do dependency checks if attempted to manually install>
781: [10:14:00] <Pyromanik||> man I so can't be f'd with manually installing packages
782: [10:14:00] <Pyromanik||> HAPPY!?
783: [10:14:00] <Pyromanik||> ss23: W: Failed to fetch http://archives.dotdeb.org/dists/lenny/all/binary-amd64/Packages 404 Not Found [IP: 88.190.17.153 80]
784: [10:14:00] <Pyromanik||> only option for ss3 :(
785: [10:14:00] <Pyromanik||> but...
786: [10:14:00] <Pyromanik||> irogue: yeh
787: [10:15:00] <Pyromanik||> irogue: IKR
788: [10:15:00] <irogue> Y U LENNY
789: [10:15:00] <ss23> NU UH
790: [10:16:00] <Pyromanik||> system up and running in as long as it took for me to l2nginx
791: [10:16:00] <Pyromanik||> SO MUCH WINNING
792: [10:16:00] <Pyromanik||> recently set up a vps with arch for a mate
793: [10:16:00] <Pyromanik||> more importantly, why can't I arch :<
794: [10:17:00] <Pyromanik||> time for a drink
795: [10:18:00] <Pyromanik||> god I wish that meant a 'strong' drink, but i'll probably just be tea.
796: [10:18:00] <Pyromanik||> irogue: nuh uh
797: [10:18:00] <ss23> lol
798: [10:18:00] <irogue> would be like that with debian too if you didnt use fuckin old versions :P
799: [10:19:00] <irogue> aptitude install php5-fpm php5-gd nginx
800: [10:19:00] <irogue> :P
801: [10:19:00] <irogue> DONE
802: [10:20:00] <ss23> irogue is so hipster he doesn't even like GIRLS
803: [10:20:00] <ss23> wow hipster
804: [10:20:00] <ss23> apt-get install apache-php
805: [10:20:00] <irogue> im too hipster for apache
806: [10:21:00] <irogue> lies
807: [10:21:00] <irogue> hipsters are all bi
808: [10:30:00] * howardgrigg quit (Ping timeout: 240 seconds)
809: [10:32:00] * r3v3rb quit (Quit: r3v3rb)
810: [10:38:00] <Pyromanik||> no
811: [10:38:00] * howardgrigg has joined #silverstripe
812: [10:38:00] <Pyromanik||> no
813: [10:38:00] <Pyromanik||> no
814: [10:39:00] <Pyromanik||> no even
815: [10:39:00] <Pyromanik||> psh
816: [10:39:00] <ss23> I'm surprised you're not using django
817: [10:39:00] <ss23> mega hipster
818: [10:39:00] <ss23> mariadb too
819: [10:39:00] <Pyromanik||> pacman -S nginx mariadb php-fpm php-gd
820: [10:39:00] <ss23> yes!
821: [10:39:00] <Pyromanik||> hipsters are all over the rails
822: [10:40:00] <ss23> lol
823: [10:40:00] <Pyromanik||> GOSH
824: [10:40:00] <Pyromanik||> it's so non-conformist
825: [10:40:00] <Pyromanik||> by ruby
826: [10:40:00] * howardgrigg quit (Client Quit)
827: [10:40:00] <Pyromanik||> they love getting railed
828: [10:53:00] <Pyromanik||> irogue: how to get package info from apt?
829: [10:53:00] <Pyromanik||> ah, show
830: [11:04:00] * dospuntocero has joined #silverstripe
831: [11:05:00] * lenix- has joined #silverstripe
832: [11:05:00] * Zauberfisch_ has joined #silverstripe
833: [11:06:00] * lenix quit (Read error: Connection reset by peer)
834: [11:08:00] * Zauberfisch quit (Ping timeout: 264 seconds)
835: [11:17:00] * SticksM has joined #silverstripe
836: [11:38:00] * Arno quit (Quit: Instantbird 1.1)
837: [11:51:00] <CIA-12> silverstripe: Sam Minnee silverstripe-installer/demo-site * r1dfc722 / dependent-modules.default : Added frameworktest to demo site (+16 more commits...) - http://git.io/TvJF2g
838: [11:56:00] <CIA-12> silverstripe: Sam Minnee silverstripe-installer/demo-site * r4c00b45 / tools/deploy-demo-site : Added demo site deploy script - http://git.io/MzONTw
839: [11:56:00] <CIA-12> silverstripe: Sam Minnee silverstripe-installer/demo-site * raeb279b / .gitignore : Ignore git subcheckouts - http://git.io/pgVo0Q
840: [11:57:00] <Pyromanik||> omg
841: [11:57:00] <Pyromanik||> just came across a site
842: [11:58:00] <Pyromanik||> GW CHAPS
843: [11:58:00] <Pyromanik||> customer login form is inside a div id'd as "AdArea"
844: [11:58:00] <Pyromanik||> anyone running an adblocker cannot log in.
845: [11:58:00] <spronk> lool
846: [12:00:00] <matt_____> hello
847: [12:00:00] * matt_____ has joined #silverstripe
848: [12:03:00] <ss23> Hai2u
849: [12:03:00] <Pyromanik||> sup
850: [12:07:00] <spronk> fog..
851: [12:07:00] <spronk> cool story auckland _b
852: [12:35:00] <Pyromanik||> didn't stop me landing last time I flew into aucks
853: [12:35:00] <Pyromanik||> ikr
854: [12:36:00] <Pyromanik||> I coudln't even see the wing tip. Even though it had red flashy light on the tip.
855: [12:37:00] <spronk> awesome
856: [12:41:00] * isense_daniel has joined #silverstripe
857: [12:43:00] * dospuntocero quit (Remote host closed the connection)
858: [12:43:00] <isense_daniel> G'day everyone, I want to add a poll to a site. Need history of poll results and need to be able to create new poll form in CMS backend. Could someone suggest a good tutorial or module for this?
859: [12:47:00] <spronk> isense_daniel: http://doc.silverstripe.org/framework/en/tutorials/3-forms
860: [12:47:00] * Bollig|DesignCty has joined #silverstripe
861: [12:47:00] <spronk> start here
862: [12:48:00] <spronk> http://www.silverstripe.org/user-forms-module/
863: [12:48:00] <spronk> and here
864: [12:48:00] * dospuntocero has joined #silverstripe
865: [12:49:00] * dospuntocero quit (Remote host closed the connection)
866: [12:51:00] <isense_daniel> Hi Spronk, I had a look at this tut. So you think I should be able to build on top of this the functionality to make it more dunamic and adjustable through the back end? Are there any examples or tutorials our there of someone useing an Ajax poll with silverstipe to do this?
867: [12:52:00] <Pyromanik||> iirc
868: [12:52:00] * howardgrigg has joined #silverstripe
869: [12:52:00] <spronk> userforms module probably gets you like.. 90% of the way there on its own
870: [12:52:00] <Pyromanik||> isense_daniel: there's actually a poll module.
871: [12:52:00] <Pyromanik||> silverstripe.org/modules
872: [12:53:00] <Pyromanik||> but I also don't imagine it to be the most complex thing
873: [12:53:00] <spronk> really O_o
874: [12:53:00] <Pyromanik||> yeah
875: [12:53:00] <isense_daniel> Ok spronk I'll have a look at using userforms.
876: [12:53:00] <Pyromanik||> would pay to check it's compatiblity though
877: [12:53:00] <spronk> 2.2.2+
878: [12:53:00] <Pyromanik||> yeah
879: [12:53:00] <spronk> could be worth a look for reference anyway
880: [12:54:00] <Pyromanik||> where to go for warrant?
881: [12:54:00] <isense_daniel> Hi Pyromanik, I looked into that and there did not seem to be a lot of confidence in the module. Could someone restore my confidence by telling me they have used it and it worked fine?
882: [12:55:00] <Pyromanik||> isense_daniel: just test it.
883: [12:55:00] <Pyromanik||> well no, because polls are pretty rare.
884: [12:55:00] <Pyromanik||> if it works it works.
885: [12:56:00] <Pyromanik||> if it doesn't, don't worry. No loss.
886: [12:56:00] <isense_daniel> Ok, well I've got two options to look into further. Yeah might give it a go. Thanks all.
887: [13:02:00] <sminnee> That's the new ORM at work.
888: [13:02:00] <howardgrigg> sminnee: If I have a function that returns a datalist and in the template I use $FunctionName.Count does that do an efficient query or does it query the whole list?
889: [13:02:00] <sminnee> Efficient query, in SS3.
890: [13:02:00] <howardgrigg> sweet :)
891: [13:03:00] <howardgrigg> I'm having fun :p
892: [13:26:00] <willr> thats always a positive while developing :)
893: [13:27:00] * willr has left #silverstripe
894: [13:27:00] * willr has joined #silverstripe
895: [13:40:00] * howardgrigg quit (Ping timeout: 248 seconds)
896: [13:43:00] * LoveDuckie quit (Read error: Connection reset by peer)
897: [14:36:00] * BaronGrivet has joined #silverstripe
898: [14:38:00] <BaronGrivet> Hello chaps. We've run into one of "those" issues. Something that runs fine on another devs machine isn't running on mine - even though we're both working off the same repo. On my machine an add_extension doesn't seem to be registering. Is there a good way I can check it?
899: [14:39:00] <willr> BaronGrivet done a dev/build / a flush?
900: [14:39:00] * matt_____ quit (Quit: Page closed)
901: [14:40:00] * howardgrigg has joined #silverstripe
902: [14:41:00] <BaronGrivet> willr - yup
903: [14:42:00] * robinm has joined #silverstripe
904: [14:42:00] <willr> if you put a var_dump() or something in add_extension() is it being added?
905: [14:43:00] <robinm> Hi, I have a question about ZendSearchLuceneSearchable
906: [14:43:00] <robinm> I'm not sure if anyone can help
907: [14:44:00] <robinm> "I don't know the default search columns for class 'Event'"
908: [14:44:00] <robinm> but when I these lines to my config
909: [14:44:00] <robinm> ZendSearchLuceneSearchable::enable('Event');
910: [14:44:00] <robinm> ZendSearchLuceneSearchable::enable('Event'); Object::add_extension( 'Event', "ZendSearchLuceneSearchable('Body')");
911: [14:44:00] <robinm> it always gives an error
912: [14:44:00] * SightUnseen has joined #silverstripe
913: [14:45:00] <robinm> whenever the index is built
914: [14:45:00] * SightUnseen quit (Client Quit)
915: [14:45:00] * SightUnseen has joined #silverstripe
916: [14:46:00] <BaronGrivet> It's definitely reading the _config.php file the add_extension is in.
917: [14:46:00] <BaronGrivet> willr - I'm not sure I've got the var_dump/ add_extension syntax correct. What would you suggest?
918: [14:46:00] <willr> what should the extension do?
919: [14:47:00] <willr> there is a bug in SS3.0 with extension fields / methods not being called.
920: [14:47:00] <BaronGrivet> It adds another field onto a custom image class. It's SS 2.4
921: [14:47:00] <BaronGrivet> We are using symbolic links so is it possible that the order could be out?
922: [14:47:00] <willr> paste your extension to sspaste.org or something
923: [14:48:00] * SightUnseen has left #silverstripe
924: [14:52:00] <BaronGrivet> Sorry, willr: http://www.sspaste.com/paste/show/4ff504f1887c7
925: [14:52:00] <BaronGrivet> Pasted: http://www.sspaste.com/paste/show/4ff504f1887c7
926: [14:54:00] <Pyromanik||> might be $searchable_fields
927: [14:54:00] <Pyromanik||> I think
928: [14:54:00] <Pyromanik||> public static $search_fields = array('Title', 'foo', 'bar');
929: [14:54:00] <irogue> my office smells fishy!
930: [14:54:00] <Pyromanik||> robinm: you haven't defined any search fields.
931: [14:55:00] <Pyromanik||> ...
932: [14:55:00] <Pyromanik||> must be related!
933: [14:55:00] <Pyromanik||> well, irogue works at snapper
934: [14:55:00] <Pyromanik||> oic
935: [14:55:00] <Pyromanik||> but fish and chip wednesday was yesterday willr!
936: [14:55:00] <willr> snapper we caught ourselves
937: [14:55:00] <willr> irogue I had fish for lunch!
938: [14:56:00] <willr> BaronGrivet CustomImage? is that another extension
939: [14:58:00] <Pyromanik||> subclass I'd guess
940: [15:03:00] <howardgrigg> somewhere i remeber seeing documentation on how to divide up a datalist such as list all members grouped by the first letter of their name - but now I can't find it… anyone know?
941: [15:04:00] <BaronGrivet> Soz, got called away on something...
942: [15:05:00] <BaronGrivet> CustomImage is a separate dataobject.
943: [15:05:00] <BaronGrivet> The weird thing is it's working on a computer running almost identical setups 3 metres from me.
944: [15:07:00] <howardgrigg> sminnee: has ->groupBy('Lastname') been implemented yet?
945: [15:09:00] <BaronGrivet> Ah-ha! A related file hadn't been updated from the repo. Thanks willr
946: [15:12:00] <irogue> willr: my coworker had fish
947: [15:13:00] <willr> Everyone complains when I have fish. Harden up
948: [15:13:00] <irogue> im not complaining!
949: [15:13:00] <irogue> i like fish
950: [15:13:00] <irogue> it was just strange cos it made my ham and cheese toastie taste like fish
951: [15:13:00] <willr> mmm toastie
952: [15:17:00] <spronk> wooow
953: [15:17:00] <spronk> fucking.. two days worth of work
954: [15:18:00] <spronk> and the bug is a braindead backward ternary operator in php-amqplib
955: [15:18:00] <spronk> https://github.com/videlalvaro/php-amqplib/pull/23
956: [15:19:00] * cloph_away1 quit (Read error: Operation timed out)
957: [15:20:00] * cloph_away has joined #silverstripe
958: [15:22:00] <Pyromanik||> howardgrigg: if it's anything like DataObjectSet then it'll be .GroupedBy(Field) in the template
959: [15:22:00] <Pyromanik||> <% loop MyDatalist.GroupedBy(FirstName) %>
960: [15:22:00] <howardgrigg> oh cool - I'll give it a go
961: [15:22:00] <Pyromanik||> although...
962: [15:23:00] <Pyromanik||> that'll give you groups of names, not first letters
963: [15:23:00] <Pyromanik||> but i'm sure you can find a way to figure that out now that you can group.
964: [15:24:00] <howardgrigg> yea - i'm kinda working it out, thanks
965: [15:44:00] * BaronGrivet has left #silverstripe
966: [15:46:00] <howardgrigg> If I'm right this returns objects that have either a updated time or created time greater than $oldtime yea? http://pastie.org/4202356
967: [15:47:00] <howardgrigg> each works on it's own but together returns an empty list...
968: [15:51:00] <howardgrigg> sminnee: are you lurking around?
969: [15:54:00] <willr> howardgrigg is it doing an OR instead of an AND (or the converse)
970: [15:55:00] <howardgrigg> does this mean you can't do an OR?
971: [15:55:00] <howardgrigg> yea something like that… I just read in the docs "You can specify as many filters as you like, and they all must be true"
972: [15:57:00] <willr> can't see anything in the docs about or
973: [15:57:00] <howardgrigg> how would you do a FirstName = Bob OR Lastname = Smith?
974: [15:58:00] <howardgrigg> yea
975: [15:58:00] <howardgrigg> you can easily do FirstName = Bob OR John...
976: [15:58:00] <willr> well at least OR over columns
977: [15:59:00] <willr> perhaps needs a orFilter() function
978: [15:59:00] <willr> file a ticket.
979: [15:59:00] <willr> You can go back to the 'old' method for now
980: [16:00:00] <willr> I assume he's packing for his holiday
981: [16:00:00] <howardgrigg> I might just wait to see if sminnee has already thought of it - if not I'll file it
982: [16:00:00] <irogue> HOLIDAY
983: [16:00:00] <howardgrigg> nice :)
984: [16:01:00] <willr> Not sure how SS is going to cope with everyone away!
985: [16:01:00] <irogue> redirect the phones to auckland
986: [16:01:00] <irogue> :P
987: [16:01:00] <willr> I hope they're all taking separate flights. Can't put all the assets in 1 location
988: [16:02:00] <howardgrigg> willr: looks like there is a whereAny
989: [16:03:00] <howardgrigg> lol
990: [16:03:00] <willr> Because that's obvious :P
991: [16:03:00] <willr> Also not documented
992: [16:03:00] <willr> RTFS
993: [16:04:00] <Colin[pi]> hai guise
994: [16:04:00] * Colin[pi] has joined #silverstripe
995: [16:05:00] <howardgrigg> it errors saying whereAny doesn't exist on 'DataList' - but it exists on DataQuery. Am I doing it wrong?
996: [16:08:00] <howardgrigg> yea it's not on DataList… :( What's the role of DataQuery?
997: [16:09:00] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
998: [16:11:00] <Colin[pi]> goes Email::getAdminEmail() work in SS3?
999: [16:11:00] <Colin[pi]> *does
1000: [16:12:00] <willr> yep still there Colin.
1001: [16:13:00] <willr> howardgrigg take a look at DataList.php, it doesn't actually expose that. Only used in exclude
1002: [16:14:00] <howardgrigg> yea - bummer, how hard would it be to do?
1003: [16:14:00] <Colin[pi]> willr: hmm but it's giving me string(0) "" when I call it
1004: [16:14:00] <Colin[pi]> do I need to set it separately from the admin member acct?
1005: [16:15:00] <Colin[pi]> ahhh ok, so I need to set it in config first
1006: [16:15:00] <howardgrigg> Colin[pi]: yup Email::setAdminEmail(string $adminemail)
1007: [16:15:00] <willr> Colin[pi] where did you set it?
1008: [16:15:00] <willr> well theres a addFilter on DataList that takes an array of where statements. Perhaps we need a bool option to use where() vs whereAny()
1009: [16:16:00] * howardgrigg doesn't know how to do what willr suggests :p
1010: [16:16:00] <willr> howardgrigg I'm half talking with myself.
1011: [16:16:00] <Colin[pi]> would be cool if the installer added it to the config file from the admin account details -_-
1012: [16:18:00] <howardgrigg> hah cool - let me know if you get something working but ill just try doing it merging multiple lists
1013: [16:18:00] * openbees has joined #silverstripe
1014: [16:22:00] <howardgrigg> gah - "Can't call DataList::merge() because its data comes from a specific query."
1015: [16:23:00] <Colin[pi]> ok my next question, does getCMSValidator() work in the CMS for SS3?
1016: [16:23:00] <howardgrigg> how do I do it then?
1017: [16:24:00] <willr> edit DataList::addFilter to take a second argument for $or (bool) then check for $or to swap where() with whereAny() ? Might want to play around with that
1018: [16:26:00] <howardgrigg> probably shouldn't do this on the live site...
1019: [16:28:00] * peter_W has joined #silverstripe
1020: [16:28:00] <Colin[pi]> howardgrigg: if I had a dollar for the number of times I've said that.. ;)
1021: [16:28:00] <howardgrigg> lol im going for it - what could go wrong
1022: [16:29:00] <Colin[pi]> *BOOOOM*
1023: [16:29:00] <peter_W> i.e. i want the first checkbox on the hasmanyCTF selected
1024: [16:29:00] <peter_W> Hey SS...can anyone help use populateDefault to automatically set a has_many relationship
1025: [16:30:00] <Pyromanik||> set the YourObjectID on the relevant related object.
1026: [16:32:00] <openbees> please fix this ! I was just checking silverstripe.com and on this page "http://www.silverstripe.com/our-work/westpac/" link below "Westpac" title (www.westpac.co.nz) is sending users to "http://www.silverstripe.com/www.westpac.co.nz" and same here "http://www.silverstripe.com/our-work/plunket/" on left side of content area below "Plunket" title !!
1027: [16:32:00] <willr> sorry support@silverstripe.com
1028: [16:32:00] <willr> openbees - email support@silverstripe.org
1029: [16:33:00] <peter_W> pyromanik...sorry correction many_many relationship
1030: [16:34:00] <howardgrigg> willr: i think i've changed addFilter but I don't get what is going on in filter which is checking the number of arguments passed http://pastie.org/4202517
1031: [16:36:00] * Motoservo has joined #silverstripe
1032: [16:39:00] * ajshort has joined #silverstripe
1033: [16:43:00] <howardgrigg> that's what im doing :)
1034: [16:43:00] <willr> howardgrigg addFilter()
1035: [16:47:00] * openbees quit (Quit: Leaving)
1036: [16:49:00] <howardgrigg> http://pastie.org/4202566
1037: [16:49:00] <howardgrigg> willr: was this what you had in mind?
1038: [16:51:00] * openbees has joined #silverstripe
1039: [16:56:00] <willr> howardgrigg just tried whereAny() still uses conjunction
1040: [16:56:00] <peter_W> anyone?
1041: [16:57:00] <howardgrigg> :(
1042: [16:57:00] <willr> will need a fix.
1043: [16:58:00] <willr> Theres a useDisjunction() but it's never called. So I'm assuming an unfinished API
1044: [16:58:00] <howardgrigg> yea - how can i just merge two querys then?
1045: [16:59:00] <willr> LIke I said earlier, I'd just use the good old DataObject::get() if you just want it towkr
1046: [17:01:00] <howardgrigg> oh i missed that - swt ill give it a go
1047: [17:03:00] <Colin[pi]> guys does CMS validation work correctly in SS3?
1048: [17:05:00] <Colin[pi]> all? because if I use an EmailField, it will turn red without a valid email
1049: [17:05:00] <Colin[pi]> however then when I try to save, I get a blank page :(
1050: [17:05:00] <willr> it's a project that didn't quite make 3.0
1051: [17:05:00] <willr> all js validation has been removed
1052: [17:05:00] <Colin[pi]> :(
1053: [17:05:00] <willr> Colin[pi] doubt it
1054: [17:05:00] <Colin[pi]> anyone?
1055: [17:06:00] <Colin[pi]> this is fine for me, but we all know what will happen when I hand over the keys to a client
1056: [17:07:00] <willr> check open.silverstripe.org for a ticket / fix, make one if it doesn't exist
1057: [17:07:00] <willr> and its the email field causing the blank page?
1058: [17:07:00] <Colin[pi]> if I go to save and it's not a valid email (i.e. field border turns red), I get a blank page yes
1059: [17:07:00] <howardgrigg> Colin[pi]: i have a feeling that that validation is the built in html5 validation
1060: [17:07:00] <ajshort> Colin[pi]: There's already a ticket. Validation is completely broken in SS3
1061: [17:07:00] <Colin[pi]> ahhhh l
1062: [17:07:00] <Colin[pi]> *k
1063: [17:08:00] <ajshort> it works in modeladmin and a few other places, but not in the main cms
1064: [17:08:00] <Colin[pi]> that would explain why I got a funky Windows 7 style error popup in the frontend
1065: [17:08:00] <willr> ajshort fix it!
1066: [17:09:00] <howardgrigg> front end validation? or CMS?
1067: [17:09:00] <howardgrigg> hmm yea...
1068: [17:09:00] <ajshort> it shouldnt be too hard to fix
1069: [17:09:00] <Colin[pi]> because you know.. "I BROEK IT!!1
1070: [17:09:00] <Colin[pi]> CMS
1071: [17:09:00] <Colin[pi]> I get twitchy to hand over a site to a client with little to no validation
1072: [17:09:00] <Colin[pi]> unless I charge for fixing ;)
1073: [17:10:00] <Colin[pi]> ajshort: do you have a link to the existing ticket?
1074: [17:10:00] <Colin[pi]> k thanks
1075: [17:10:00] <ajshort> http://open.silverstripe.org/ticket/7537
1076: [17:11:00] <Colin[pi]> I mean I can educate clients, but... clients
1077: [17:11:00] <ajshort> yep
1078: [17:11:00] <Colin[pi]> no cms validation, eek
1079: [17:12:00] <ajshort> it'd probably be easier to just fix it :)
1080: [17:12:00] <Colin[pi]> was the getCMSValidator() functionality working in the 2.4 branch?
1081: [17:12:00] <ajshort> yes
1082: [17:13:00] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
1083: [17:13:00] <Colin[pi]> playing with it will at least yield fixes
1084: [17:13:00] <willr> 3.0 is still very much new ground
1085: [17:13:00] <Colin[pi]> it went from RC1, 2, 3 to stable in about a week I thought? hehe
1086: [17:13:00] <Colin[pi]> seems maybe a bit of a rushed release?
1087: [17:13:00] <Colin[pi]> hmmm I know it's a new release and all but now I've having doubts about diving straight into 3.0.0 :\
1088: [17:13:00] <Colin[pi]> however
1089: [17:14:00] <willr> totally.
1090: [17:15:00] <Colin[pi]> ok, $64k question, are you guys using it for production yet?
1091: [17:16:00] <willr> I am for a couple small projects and ones which require the framework only
1092: [17:16:00] <willr> but 3.0 currently has a couple performance glitches as well
1093: [17:17:00] <Colin[pi]> related to a specific part of the system? just so I know to avoid
1094: [17:17:00] <willr> Well the config system
1095: [17:18:00] <FrozenFire> http://www.reddit.com/r/PHP/comments/w2bre/php_mentoring_were_seeking_both_experienced/
1096: [17:18:00] <willr> http://www.silverstripe.org/general-questions/show/20162
1097: [17:18:00] <FrozenFire> If anyone's interested
1098: [17:19:00] <Colin[pi]> willr: thanks
1099: [17:20:00] <willr> We have to start using ss3 otherwise it'll just never get the issues ironed out. Considering most the community gets paid to build client sites and not work on the framework the best way is to kill 2 birds with 1 stone!
1100: [17:21:00] <willr> thats my view anyway.
1101: [17:22:00] <Colin[pi]> yeah that's what I decided the other day
1102: [17:22:00] <willr> still not deploying 3 out to those clients who push the CMS, just the small easy going ones.
1103: [17:22:00] <Colin[pi]> yeah I have one site I'm doing which is just content, gallery and contact page, so pretty simple
1104: [17:22:00] <Colin[pi]> that's my SS3 guinea pig
1105: [17:23:00] <Colin[pi]> but I'm still relatively new to SS, and I thought well if I continue down the SS2 path it's kinda an evolutionary dead end
1106: [17:24:00] <willr> completely. Now that I'm using some of the 3.0 API's and templating it shows how much of improvement it has been. Just needs a ton more time and energy from awesome people.
1107: [17:24:00] <Colin[pi]> yep
1108: [17:25:00] <Colin[pi]> and I know the SS guys are not just sitting around idle :)
1109: [17:25:00] <Colin[pi]> or I hope, anyway lol
1110: [17:26:00] * willr quit (Quit: willr)
1111: [17:37:00] * Motoservo has joined #silverstripe
1112: [17:39:00] <howardgrigg> anyone know how to use a SS_DateTime in a sql query? this is what I'm trying http://pastie.org/4202705
1113: [17:41:00] * Zauberfisch_ is now known as Zauberfisch
1114: [17:44:00] <ajshort> howardgrigg: quotes
1115: [17:45:00] <ajshort> (around the date)
1116: [17:45:00] <ajshort> also you should quote your db columns
1117: [17:46:00] <howardgrigg> i tried http://pastie.org/4202728
1118: [17:52:00] <howardgrigg> ajshort: thanks i'm not getting errors now but also it's not returning any results, is NOW() not in the same format as SS_DateTime?
1119: [17:52:00] <ajshort> single quotes
1120: [17:52:00] <howardgrigg> yea
1121: [17:53:00] <howardgrigg> I swapped them :)
1122: [17:53:00] <ajshort> wouldn't you want where created > $oldtime?
1123: [17:55:00] <howardgrigg> say $oldtime is 3 days ago I want to select anything that has been created since then...
1124: [17:55:00] <ajshort> yep
1125: [17:55:00] <ajshort> so created would be greater
1126: [18:02:00] <howardgrigg> hmm it's returning all of them...
1127: [18:02:00] <howardgrigg> seems to be ignoring the filter
1128: [18:03:00] <howardgrigg> well not ignoring it because if I swap the > or < you either get all or nothing
1129: [18:03:00] <howardgrigg> and yet i just checked the db and there are definatly values on either side
1130: [18:07:00] <howardgrigg> ajshort: any ideas? not sure what could be going on
1131: [18:08:00] <ajshort> not sure sorry
1132: [18:08:00] <howardgrigg> bummer...
1133: [18:16:00] <howardgrigg> weird it was fixed by removing the single quotes from the column name
1134: [18:17:00] <ajshort> double quotes for column names, single for scalars
1135: [18:17:00] * howardgrigg should learn sql statements
1136: [18:17:00] <howardgrigg> thanks for pointing me in the right direction though :)
1137: [18:34:00] <peter_W> hey can anyone explain the I can't handle sub-URLs of a error
1138: [18:35:00] <peter_W> i am creating an rss feed and i am getting this error
1139: [18:35:00] <peter_W> however if i die() immediately after the $feed->outputToBrowser() then i dont get the error
1140: [18:38:00] * isense_daniel quit (Ping timeout: 245 seconds)
1141: [18:40:00] <openbees> how to retrive multiple rows from one dataobject class into page type class ... but its showing just one row in template .. i think m missing some template logic here .. please help .. code is here http://www.sspaste.com/paste/show/4ff53a1c2b5f6
1142: [18:42:00] <peter_W> your return is inside your foreach statement
1143: [18:43:00] <ajshort> peter_W: Generally it occurs if there is still more parts of the URL left to process, but no controller to handle it
1144: [18:44:00] <ajshort> e.g. if you visit /MyForm/field/another, you might find a matching controller for /MyForm/field, but nothing to handle /another
1145: [18:45:00] <peter_W> yeah thats pretty much what i am doing...how can i make url/field/another/dynamicallyincreasing/ all be handled by /url/field
1146: [18:46:00] <peter_W> actually all be handled by index
1147: [18:48:00] * willr has joined #silverstripe
1148: [18:55:00] * xmem has joined #silverstripe
1149: [18:56:00] <peter_W> any ideas ajshort ?
1150: [18:57:00] <ajshort> is there a limit on the number of url parts?
1151: [18:58:00] <peter_W> no there isnt
1152: [18:59:00] * Pyromanik has joined #silverstripe
1153: [19:00:00] <ajshort> maybe in your index method call $this->request->shift(999);
1154: [19:01:00] * openbees quit (Quit: Leaving)
1155: [19:01:00] <ajshort> bit hacky but should work
1156: [19:01:00] <peter_W> since i am ouputing the rss feed to the browser is it much worse to just die() at the end
1157: [19:02:00] <ajshort> yes
1158: [19:03:00] <ajshort> a neater solution might be while(!$request->allParsed()) $request->shift();
1159: [19:04:00] * zfmf has joined #silverstripe
1160: [19:05:00] <peter_W> ok thanks a lot
1161: [19:12:00] <Bollig|DesignCty> I have never seen that error before.
1162: [19:12:00] <Bollig|DesignCty> hmmmm -> ERROR [Notice]: Object of class Image could not be converted to int
1163: [19:14:00] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
1164: [19:15:00] * SticksM quit (Read error: Connection reset by peer)
1165: [19:23:00] <Pyromanik> Bollig|DesignCty, probably because you haven't tried to use an Image as a number before...
1166: [19:24:00] <Bollig|DesignCty> well that just shows how little you know me.
1167: [19:40:00] * LePhil has joined #silverstripe
1168: [20:04:00] * chillu has joined #silverstripe
1169: [20:07:00] <howardgrigg> I got my notifications working properly :)
1170: [20:09:00] * peter_W quit (Quit: Page closed)
1171: [20:11:00] <LePhil> yay!
1172: [20:12:00] <howardgrigg> http://f.cl.ly/items/2f0j312s0I0W3Q2Y2z45/Screen%20Shot%202012-07-05%20at%206.01.29%20PM.jpeg
1173: [20:13:00] <LePhil> looks fancy
1174: [20:14:00] <howardgrigg> it's good cause when lectures or readings are added they often just appear and are easy to miss
1175: [20:21:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
1176: [20:25:00] * xmem quit (Ping timeout: 248 seconds)
1177: [20:27:00] * lx-berlin has joined #silverstripe
1178: [20:32:00] * OzziNL has joined #silverstripe
1179: [20:33:00] <Pyromanik> yeh I know right
1180: [20:33:00] <Pyromanik> what's a dengue?
1181: [20:33:00] <LePhil> dengue fever
1182: [20:34:00] <LePhil> http://en.wikipedia.org/wiki/Dengue_fever
1183: [20:34:00] <LePhil> :)
1184: [20:34:00] <LePhil> awesome, our hoster just switched our fileserver off...
1185: [20:34:00] <howardgrigg> that's handy
1186: [20:35:00] <LePhil> not really
1187: [20:35:00] <LePhil> it's not like clients would like to acces their stuff on them...
1188: [20:37:00] <howardgrigg> dengue: ORIGIN early 19th cent.: from West Indian Spanish, from Kiswahili dinga (in full kidingapopo), influenced by Spanish dengue ‘fastidiousness’ (with reference to the dislike of movement by affected patients).
1189: [20:41:00] * xmem has joined #silverstripe
1190: [20:45:00] <Pyromanik> howardgrigg, is that the name of your course manager thing, or is that the name of your course?
1191: [20:49:00] * oscar_ has joined #silverstripe
1192: [20:50:00] * simon_w has joined #silverstripe
1193: [20:51:00] <howardgrigg> thats the case of the week - dengue fever, im studying medicine
1194: [20:54:00] <Pyromanik> oic, cool
1195: [20:54:00] <CIA-12> silverstripe: TeamCity sapphire/translation-staging * r9460a0a / lang/es_MX.yml : MINOR Updated translations - http://git.io/DF9LQA
1196: [21:01:00] <LePhil> I'm having difficulties with custom javascript
1197: [21:02:00] <LePhil> anyone knows their way around jquery and silverstripe?
1198: [21:02:00] <howardgrigg> i know a little bit...
1199: [21:04:00] <LePhil> Requirements::customScript('
1200: [21:04:00] <LePhil> );
1201: [21:04:00] <LePhil> });'
1202: [21:04:00] <LePhil> jQuery("#StartSlider").bxSlider();
1203: [21:04:00] <LePhil> console.log("loading...");
1204: [21:04:00] <LePhil> jQuery(document).ready(function() {
1205: [21:04:00] <LePhil> $.noConflict();
1206: [21:04:00] <LePhil> Requirements::javaScript("mysite/code/javascript/bxslider/source/jquery.bxSlider.js");
1207: [21:04:00] <LePhil> Requirements::javaScript("http://code.jquery.com/jquery-latest.js");
1208: [21:04:00] <LePhil> in myStartpage_Controller in init() I have this:
1209: [21:05:00] <LePhil> console works perfectly
1210: [21:05:00] <LePhil> the path to the plugin .js is also correct, inspector shows no 404s
1211: [21:06:00] <LePhil> I'm starting to think that the plugin isn't that well-written
1212: [21:06:00] <LePhil> but the console says "Uncaught TypeError: Object #<Object> has no method 'bxSlider'"
1213: [21:09:00] <howardgrigg> LePhil: is the site live so we can see it?
1214: [21:09:00] <howardgrigg> im not sure where it loads customScript - it needs to be after its loaded the plugin
1215: [21:11:00] <LePhil> howardgrigg yes it's live: http://silverstripe.pubdeville.ch/
1216: [21:12:00] <LePhil> the images that are now floating somewhere should be in the slider
1217: [21:13:00] <howardgrigg> you're including jquery twice
1218: [21:13:00] <howardgrigg> three times actually
1219: [21:15:00] <LePhil> removed the third one
1220: [21:15:00] <LePhil> I know, once the latest, I figured that maybe SS uses an older version and the slider plugin needs a newer one
1221: [21:15:00] <LePhil> i'll look into why there's a second one
1222: [21:15:00] <LePhil> but that shouldn't be huge problem
1223: [21:16:00] <LePhil> hm.I could put it in a different JS and load this with require::javascript after the plugin
1224: [21:20:00] <LePhil> same result, dammit
1225: [21:24:00] <LePhil> it includes jquery, bxslider and startpage.js where I have the jQuery(document).ready(...)
1226: [21:24:00] <howardgrigg> you still have 2 jquerys
1227: [21:25:00] <LePhil> yes, I don't know where the second one gets included
1228: [21:26:00] <LePhil> the first one is in Page's init()
1229: [21:26:00] <howardgrigg> you can call requirements::block
1230: [21:30:00] <LePhil> that was the problem
1231: [21:30:00] <LePhil> holy fuckshit
1232: [21:33:00] <LePhil> I thank you, kind sir
1233: [21:34:00] <howardgrigg> no worries
1234: [21:35:00] <LePhil> why would 2 jquery includes mess up a plugin?
1235: [21:35:00] <howardgrigg> cause everything is defined twice
1236: [21:36:00] * howardgrigg doesn't pretend to know what's going on
1237: [21:36:00] <LePhil> doesn't it just get redefined?
1238: [21:36:00] <LePhil> hehe
1239: [21:36:00] * AshKyd quit (Remote host closed the connection)
1240: [21:40:00] <CIA-12> silverstripe: Ingo Schommer sapphire/pull/deprecate-profiler * raffc34d / (9 files in 7 dirs): API Deprecated Profiler class, removed related debug GET params - http://git.io/HSS2uQ
1241: [21:42:00] <Zauberfisch> howardgrigg LePhil jquery should just overwrite the previous jquery
1242: [21:43:00] <Zauberfisch> unless the 2nd jquery you include is a different version of jquery, and not compatible with the plugin
1243: [21:43:00] <Zauberfisch> so there should be no issues with the plugin
1244: [21:44:00] <LePhil> that could cause problems
1245: [21:44:00] <howardgrigg> yea they were 1.4 & 1.7
1246: [21:44:00] <LePhil> ah I should have looked at the jquery files
1247: [21:44:00] <LePhil> I see
1248: [21:51:00] <Pyromanik> to avoid the problem I generally use the packaged jquery from sapphire
1249: [21:51:00] <Pyromanik> LePhil, yes, it gets redefined, meaning that it loses all plugin info associated with the first object.
1250: [21:52:00] <howardgrigg> i usually turn off front end validation and do it with jquery.validate
1251: [21:52:00] <Pyromanik> the second copy gets included whenever you have userforms or something else that uses it on a page.
1252: [21:53:00] <Pyromanik> at the moment the script filename just gets used as the id
1253: [21:53:00] <Pyromanik> I think unique IDs should be required. That way you can define a file and an ID, if it's already included then it skips adding it again.
1254: [21:53:00] <Pyromanik> one of these days I'm gonna stop being lazy and overhaul the requirements engine.
1255: [21:53:00] <howardgrigg> gets rid of prototype and other yuck stuff
1256: [21:54:00] <Pyromanik> and it's not required.
1257: [21:54:00] <Pyromanik> plus there's no real concept of inclusion order.
1258: [21:54:00] * Becci_ has joined #silverstripe
1259: [21:54:00] <Pyromanik> just first in first out
1260: [21:55:00] <Becci_> Hello there! I suppose it may not be entirely uncommon for somebody to hop in and ask stupid questions (that are likely covered by a FAQ somewhere), but... I was hoping I could do just that.
1261: [21:57:00] <Pyromanik> ok
1262: [21:57:00] <Pyromanik> you do that
1263: [21:57:00] <Pyromanik> by announcing yourself you've just saved yourself from a berating :D
1264: [21:57:00] <Pyromanik> so question away
1265: [21:58:00] <Becci_> Basically, I work for a company to create content for their webpage. They've asked me to figure out how to gain access to analytics for the page - and overview of pagehits for the various sections etc. I've been checking out the forums and FAQ and found a number of modules that allow google analytics integration, but since I'm not actually a site admin and just a content monkey, I can't exactly install or change anything (even i
1266: [21:58:00] <Becci_> -illiterate as it is). So... do I have any other options to gain analytics for my page?
1267: [21:59:00] <Pyromanik> use something like awstats to extract statistics?
1268: [21:59:00] <Pyromanik> nup.
1269: [21:59:00] <Becci_> Guh
1270: [21:59:00] <Pyromanik> check the web server logs?
1271: [21:59:00] <LePhil> Becci_ nah, I ask stupid questions all the time
1272: [21:59:00] <Becci_> Yay!
1273: [22:00:00] <Pyromanik> ok
1274: [22:00:00] <Becci_> Hum. Web server logs. This is where being semi-PC-illiterate kinda kicks in.
1275: [22:00:00] <Pyromanik> well
1276: [22:00:00] <Becci_> (use small words, please)
1277: [22:00:00] <LePhil> Pyromanik: still pissed about your car? :)
1278: [22:00:00] <Becci_> :(
1279: [22:00:00] <Pyromanik> :P
1280: [22:00:00] <howardgrigg> Becci_: who has access to the actual files that make up your website?
1281: [22:00:00] <Pyromanik> "No analytics for you!"
1282: [22:00:00] <Becci_> Got that bit!
1283: [22:00:00] <Pyromanik> "No."
1284: [22:01:00] <Becci_> I have access to the cms, but I actually have no idea who has access to the... coding?
1285: [22:01:00] <Pyromanik> analytics requires that something tracks clicks and things. Only code can do that, so if the site doesn't do it already... someone needs to change it so it does.
1286: [22:01:00] <Pyromanik> if this is not you, then you cannot do it.
1287: [22:01:00] <Pyromanik> LePhil, nope. He said use simple terms!
1288: [22:01:00] <Pyromanik> Becci_, there are 2 ways you could go about this.
1289: [22:01:00] <LePhil> ah, ok
1290: [22:01:00] <Pyromanik> 1: find some redundant module.
1291: [22:02:00] <Pyromanik> and hope that that's the only major page template (generally is).
1292: [22:02:00] <LePhil> sounded a little pissed there
1293: [22:02:00] <Pyromanik> 2: copy and paste the google code into "themes/<yourtheme>/templates/Page.ss
1294: [22:03:00] <Becci_> hence "semi". :> I know where to look for things, its the implementation my brain shuts off at.
1295: [22:03:00] <Pyromanik> either way you have to edit template code, the only thing a module does is make it easier for a content monkey to change the code stuff.
1296: [22:03:00] <Pyromanik> also, as for being PC illiterate, you managed to find this channel easily enough!
1297: [22:03:00] <Pyromanik> so stop being such a girl :P
1298: [22:04:00] <Pyromanik> sure it is!
1299: [22:04:00] <Pyromanik> just be a human rather than one of those icky squeely things.
1300: [22:04:00] <howardgrigg> but yea Becci_ unfortunately you'll need someone to make the easy edit to the actual files of your website - usually whoever made your website will know
1301: [22:04:00] <Becci_> Thats... something I can#t exactly help.
1302: [22:04:00] <Pyromanik> nah, you just gotta copy and paste code
1303: [22:05:00] <Becci_> I'll see if I can figure out who set this thing up in the first place.
1304: [22:05:00] <Pyromanik> but you need to get access to the code one way or another.
1305: [22:05:00] <Pyromanik> Becci_, we can talk you through the changes, since you don't squeal much.
1306: [22:05:00] <Pyromanik> it*
1307: [22:05:00] <Pyromanik> Becci_, do you have any idea what FTP is or if you have access to i?
1308: [22:05:00] <howardgrigg> also presumably your company is paying someone a monthly fee to host it - that might be a good place to start
1309: [22:05:00] <Becci_> Alright.
1310: [22:05:00] <Becci_> I'll have you know I squeal very rarely.
1311: [22:06:00] <Pyromanik> some hosts give you a control panel that has a module to let you edit file content
1312: [22:06:00] <Pyromanik> otherwise you'll need FTP or some other way to upload changed files.
1313: [22:06:00] <Pyromanik> Becci_, if you have someone to email
1314: [22:06:00] <Becci_> I think I may be able to gain access, but it'll likely require some emailing back and forth to get somebody to give me access or make the changes themselves. I'll go see if I can throw sticks at somebody til they listen to me.
1315: [22:06:00] <Becci_> (its the only way, believe me)
1316: [22:07:00] <Pyromanik> before you go and do that, press CTRL(or command)+u
1317: [22:07:00] <Pyromanik> and check that there isn't already a tracking code in the source
1318: [22:07:00] <Pyromanik> I think you misunderstand
1319: [22:07:00] <Pyromanik> no
1320: [22:07:00] <Pyromanik> just get the google analytics code and get them to paste it in
1321: [22:07:00] <Pyromanik> or
1322: [22:07:00] <Pyromanik> better yet
1323: [22:07:00] <Becci_> I don't think we have that. Or at least I can't see anything, I've clicked my way through the majority of visible tabs and links on the webpage and cms.
1324: [22:08:00] <Pyromanik> and ask it for an analytics account
1325: [22:08:00] <Pyromanik> you log in to google
1326: [22:08:00] * willr quit (Quit: willr)
1327: [22:08:00] <Pyromanik> it will spit out some code and tell you to add it to your site
1328: [22:08:00] <howardgrigg> Becci_: what is the website address - ill check it for you
1329: [22:08:00] <Pyromanik> get someone to add it to the site
1330: [22:08:00] <Becci_> .. Oh. Yes, I misunderstood.
1331: [22:08:00] <Pyromanik> you don't paste it in like content :P
1332: [22:08:00] <Becci_> Right.
1333: [22:10:00] <Becci_> Whoops. Mmh, tiny bit nervous about the logging and such.
1334: [22:10:00] <Pyromanik> google.com/analytics
1335: [22:10:00] <Becci_> Can I send whispers in the webclient?
1336: [22:10:00] <Pyromanik> oh
1337: [22:10:00] <Pyromanik> logging?
1338: [22:10:00] <Pyromanik> probably
1339: [22:11:00] <Pyromanik> or type /msg username your message goes here
1340: [22:11:00] <Pyromanik> right click a user name
1341: [22:11:00] <Becci_> Not that its all supersecret and stuff, but still.
1342: [22:12:00] <Becci_> Oh?
1343: [22:12:00] <Becci_> Oh dear. D:
1344: [22:12:00] <Pyromanik> ha!
1345: [22:12:00] <howardgrigg> Becci_: that already has tracking added to it
1346: [22:13:00] <Pyromanik> now all you need is the person who registered it to remember that they registered it
1347: [22:13:00] <Pyromanik> good thing I thought for you to check first!
1348: [22:13:00] <Becci_> Now I feel extra stupid. But yes!
1349: [22:13:00] <Pyromanik> Becci_, you told us you're not a weby person, so it's all good. No feeling stupid allowed!
1350: [22:14:00] <Becci_> Alright. And to figure out who that person was. So they should be able to see the tracking on the website somewhere and either give me access to that or at least give me the numbers.
1351: [22:14:00] <Pyromanik> the person who asked you to do something that has already been done however... different story :P
1352: [22:14:00] <Pyromanik> it won't be on the website
1353: [22:15:00] <Becci_> I'll just pretend I meant that website. Sorry I'm being dense. I'm still trying to work out how to find out who ended up setting this up and hoping they're not in a different department now.
1354: [22:15:00] <Pyromanik> google.com/analytics
1355: [22:15:00] <Pyromanik> it'll be there.
1356: [22:15:00] <Pyromanik> (assuming that it was a google tracking code howardgrigg?)
1357: [22:15:00] <howardgrigg> oh yea
1358: [22:15:00] <howardgrigg> UA-24947160-1
1359: [22:16:00] <Pyromanik> righto, well have fun now Becci_!
1360: [22:16:00] <Pyromanik> I think it's time for bed :< Have to get up early!
1361: [22:17:00] <Pyromanik> hah LePhil
1362: [22:17:00] <Becci_> Thanks for the help you two. :)
1363: [22:17:00] <LePhil> sleep('well');
1364: [22:17:00] <Becci_> Oh! Three. :>
1365: [22:17:00] <Becci_> And good night!
1366: [22:17:00] * LePhil wasn't helpful at all, but thanks :P
1367: [22:17:00] <Pyromanik> :P
1368: [22:17:00] <LePhil> g'night
1369: [22:17:00] <Pyromanik> partytime
1370: [22:17:00] <LePhil> wubwubwub?
1371: [22:18:00] * Pyromanik quit (Quit: HydraIRC -> http://www.hydrairc.com <- Po-ta-to, boil em, mash em, stick em in a stew.)
1372: [22:18:00] <Pyromanik> mmm
1373: [22:18:00] <Pyromanik> ciao
1374: [22:20:00] <LePhil> howardgrigg: in case you want to see it in action, my slider works now. Good times :)
1375: [22:20:00] <LePhil> even IE7 supports it :3
1376: [22:21:00] <LePhil> minus a smallish JS error
1377: [22:26:00] <LePhil> which I just fixed
1378: [22:34:00] <ajshort> Marvanni: no
1379: [22:34:00] <Marvanni> Question, If a Form is sumbitted, but the Form won't validate, does it reach the submitAction?
1380: [22:34:00] * SphereSQL has joined #silverstripe
1381: [22:34:00] <SphereSQL> Can anybody help me?
1382: [22:34:00] <Marvanni> the method I mean
1383: [22:34:00] <SphereSQL> SS3: No searchable fields could be found for class "Member"
1384: [22:34:00] <SphereSQL> GridField Add existing
1385: [22:35:00] <Becci_> Alright, sent out my emails and will hop off for now, thanks again for the help! :) Have a good one.
1386: [22:35:00] * Becci_ quit (Quit: Page closed)
1387: [22:38:00] <Marvanni> ajshort, thanks.
1388: [22:39:00] <LePhil> SphereSQL I haven't used SS3 yet, and can't really help you. But you did state the searchable fields, right?
1389: [22:43:00] * Ryoken|Desktop quit (Read error: Connection reset by peer)
1390: [22:43:00] <Marvanni> ajshort, just to be sure. I use FrontendForm extends Form, so I can us a different template. The submitFormMethod is not in the Form class itself but on the PageController. Should the Form still not reach the submitFormMethod on validation fail?
1391: [22:44:00] * Ryoken|Desktop has joined #silverstripe
1392: [22:44:00] <ajshort> yes
1393: [22:44:00] <Marvanni> ke, ty
1394: [22:45:00] <SphereSQL> but appearantly, the GridFieldAddRelatedSearch function only works on Title
1395: [22:45:00] <SphereSQL> LePhil, it's default in the Member-class: Searchable_fields = first/last & email
1396: [22:49:00] <ajshort> SphereSQL: The setSearchFields method may be of use
1397: [22:59:00] * xmem quit (Ping timeout: 245 seconds)
1398: [23:06:00] <LePhil> I have no idea about Grids
1399: [23:06:00] <LePhil> oh
1400: [23:06:00] <LePhil> brb
1401: [23:06:00] <LePhil> omnomnomming
1402: [23:06:00] <LePhil> SphereSQL, did it work?
1403: [23:13:00] <SphereSQL> LePhil, ajshort, extend Member with a Title-field solves it.
1404: [23:30:00] <Colin[pi]> hey, isn't $summary_fields able to have a method in place of a field name?
1405: [23:31:00] <howardgrigg> Colin[pi]: is that what you use casting for?
1406: [23:32:00] <Colin[pi]> ah, basically I want a gridfield to show a method result instead of a field value
1407: [23:32:00] <Colin[pi]> i need to use casting then?
1408: [23:34:00] <Colin[pi]> yep casting, thanks
1409: [23:35:00] <ajshort> Colin[pi]: Your problem is probably that by default $summary_fields also rolls over to $searchable_fields
1410: [23:36:00] * mightycoco quit (Quit: reboot)
1411: [23:36:00] <CIA-12> silverstripe: Ingo Schommer sapphire/3.0 * r9ce0c9a / thirdparty/zend_translate_railsyaml/tests/Translate/Adapter/RailsYAMLTest.php : Relative include path for RailsYAML PHPUnit tests - http://git.io/BwOCBw
1412: [23:36:00] <Colin[pi]> well it seems gridfield is only happy with field names in $summary_fields
1413: [23:37:00] <CIA-12> silverstripe: Ingo Schommer silverstripe-installer/3.0 * r8687891 / (4 files): Enforce flush on CI test runs - http://git.io/WQOR3A
1414: [23:37:00] <Colin[pi]> but I can setFieldCasting on the GridFieldDataColumns column and achieve what I want to do
1415: [23:37:00] <Colin[pi]> column = component
1416: [23:37:00] <SphereSQL> Colin[pi], that sounds pretty much the same as my problem...
1417: [23:38:00] <Colin[pi]> did you sort it out?
1418: [23:39:00] <Colin[pi]> arrrgh but now if I use a different name for the column in the gridfield the casting dies -_-
1419: [23:43:00] * xmem has joined #silverstripe
1420: [23:53:00] <SphereSQL> I was having a fight with searchable_fields not being searched by add existing gridfield search
1421: [23:57:00] * lx-berlin has left #silverstripe

These logs were automatically created by ss-log on irc.freenode.net. This site is powered by code available under a BSD license.