#silverstripe IRC Log

These logs are running on a SiteHost VPS.

Index

IRC Log for 5 July 2012

Timestamps are in NZT (New Zealand Time).

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

These logs were automatically created by ss-log on irc.freenode.net using the Java IRC LogBot.

These logs are provided by Simon Welsh, running on a SiteHost VPS.