#silverstripe IRC Log

IRC log for 19 March 2014

All timestamps are in UTC.

1: [00:02:27] * UncleCheese quit (Quit: UncleCheese)
2: [00:05:15] * an_Eskimo has joined #silverstripe
3: [00:27:06] * an_Eskimo quit (Quit: Page closed)
4: [00:27:30] * an_Eskimo has joined #silverstripe
5: [00:29:25] <antmas> finally
6: [00:31:48] <zippy___> hmm
7: [00:31:53] * Jakx has joined #silverstripe
8: [00:32:14] <Ryan-Toast> yes
9: [00:32:52] <Jakx> how do you check if a .ss file exists?
10: [00:33:15] * Bollig|DesignCty has joined #silverstripe
11: [00:33:16] <zippy___> Jakx: Look in the template folder?
12: [00:33:27] <zippy___> Jakx: If its saying not found, then make sure to flush
13: [00:33:38] <Jakx> zippy___, ahaha. I mean as like a redundancy check.
14: [00:33:38] <simon_w> Well, after the previous email, that email from Zendesk was a let down
15: [00:34:05] <zippy___> Jakx: Why do you need to? What are you trying to solve
16: [00:35:14] <Jakx> zippy___, I'm trying to create an include template that can be overwritten by child classes. In a $this->renderWith() context.
17: [00:35:41] <Jakx> zippy___, but if there is no template, it'll just return false or some such.
18: [00:35:53] <zippy___> I c, not sure, you think there would be
19: [00:36:19] <Jakx> zippy___, I assume manifest does it somehow
20: [00:37:00] * UncleCheese has joined #silverstripe
21: [00:37:14] <zippy___> Jakx: There is a getTemplate method on the SS_TemplateManifest class. Might simon_w might know a better way to see if a template exists in the current theme
22: [00:37:15] <UncleCheese> feijoas!!
23: [00:37:45] <zippy___> Jakx: Also the SS_TemplateLoader class might be useful
24: [00:38:04] <Jakx> zippy___, cheers - I'll check it out.
25: [00:39:20] <simon_w> UncleCheese, such a tourist :p
26: [00:39:48] <UncleCheese> haha
27: [00:39:57] <UncleCheese> it's about time.. i've been waiting 8 months for the damn thing
28: [00:40:09] <UncleCheese> very mediocre
29: [00:40:23] <simon_w> Jakx, just ->renderWith(array($lookingFor, 'Fallback'))?
30: [00:40:36] <Colin[pi]> whoops just had a bit of a yell at a client lol
31: [00:42:16] <zippy___> simon_w: Isn't that Template, Layout ? or would that be ->renderWith(array($lookingFor, 'Fallback'), 'Layout');
32: [00:43:00] <simon_w> zippy___, no, it's the order in which templates are looked for. There's no actual way to specify "This is for Layout and this is the main one"
33: [00:43:09] <simon_w> Well, not with renderWith() anyway
34: [00:44:09] <antmas> Colin[pi]: that hover css, fan thing just floored about 8 people who noticed I was trying it out
35: [00:44:11] <antmas> lol
36: [00:44:15] <Colin[pi]> :o
37: [00:44:24] <Colin[pi]> dat css
38: [00:45:18] <Jakx> simon_w, nice suggestion. ty.
39: [00:46:15] <zippy___> antmas: link?
40: [00:46:29] <antmas> zippy___: http://codepen.io/NobodyRocks/pen/viqFa
41: [00:46:44] <antmas> I've changed it up quite a bit - but this is the initial idea ^^
42: [00:47:50] <zippy___> nice indeed
43: [00:50:20] <Colin[pi]> one prob, it needs to maintain the fan expansion when between the gaps of the colours
44: [00:51:12] <zippy___> If I have a content field, is it possible to get the first sentence or first x characters? There is FirstParagraph but thats too long
45: [00:51:57] <antmas> Colin[pi]: yeah I fixed that
46: [00:52:06] <Colin[pi]> oh sweet
47: [00:52:08] <antmas> also has some dumb positioning stufff going on too
48: [00:54:47] <Colin[pi]> pfft, amateur hour!
49: [00:56:34] <Ryan-Toast> zippy___: $Content.FirstParagraph
50: [00:56:45] <Ryan-Toast> LimitCharacters or something
51: [00:57:28] <Ryan-Toast> $Content.LimitWordCountXML(40)
52: [00:58:05] <zippy___> indeed!!! thanks
53: [00:58:06] <Ryan-Toast> and LimitCharacters()
54: [00:58:25] <Ryan-Toast> Not sure if limit characters has a xml one.
55: [01:03:34] <zippy___> it will strip tags which is what I want, thanks :)
56: [01:23:39] <zippy___> http://www.stuff.co.nz/life-style/life/9844749/All-is-not-as-it-seems - haha
57: [01:28:54] <antmas> workout shorts >>>>>>> yoga pants
58: [01:29:16] <Ryan-Toast> antmas: whatever the girls wear at Jump > Life
59: [01:30:10] <antmas> slap in da faaaace with teh booobaaayyyzz
60: [01:31:01] * willr has joined #silverstripe
61: [01:32:52] * nick86 has joined #silverstripe
62: [01:33:22] <nick86> hey guys, having a bit of trouble setting interlacing when uploading imgaes
63: [01:33:43] <nick86> I posted the following on stackoverflow but haven't got any bites yet
64: [01:33:46] <nick86> http://stackoverflow.com/questions/22494393/silverstripe-upload-and-interlace-image
65: [01:34:14] <nick86> would appreciate some silverstripe l33tasaurus looking over it
66: [01:34:49] <Ryan-Toast> nick86: Set your quality in the yml file
67: [01:35:01] * Tanger has joined #silverstripe
68: [01:35:11] <Ryan-Toast> You can see it here: https://github.com/Rhym/ss_boilerplate/blob/master/Boilerplate/_config/config.yml
69: [01:35:18] <Tanger> Morning folks
70: [01:35:25] <Ryan-Toast> Tanger: Afternoon
71: [01:35:30] <nick86> brilliant!
72: [01:36:00] <nick86> thanks Ryan-Toast
73: [01:36:10] <Ryan-Toast> nick86: No problem, yml confuses me too :P
74: [01:38:05] <nick86> yeah, so many gotchas with indentation and syntax hey?
75: [01:39:15] <zippy___> nick86: don't forget to update stack overflow :)
76: [01:40:16] <nick86> yeah will do, just ran a test then and the interlacing still hasn't stuck
77: [01:40:41] <nick86> might give everything a good fluch and buil;d and try again
78: [01:41:37] <nick86> flush* build* :P
79: [01:43:40] <zippy___> yea, got flush after config
80: [01:44:16] <nick86> ok, flushed everthing and still no love on the interlacing
81: [01:47:14] <antmas> interlacing?
82: [01:48:30] <nick86> trying to upload an image and interlace it using GD
83: [01:49:19] <nick86> so it loads progressive
84: [01:49:29] <antmas> ah
85: [01:52:17] <nick86> stackoverflow posts has been updated: http://stackoverflow.com/questions/22494393/silverstripe-upload-and-interlace-image
86: [01:53:11] <antmas> damn stupid jagged edges on images :<
87: [01:53:25] <UncleCheese> extraStatics still works for creating statics contextually?
88: [01:59:43] <simon_w> Nope
89: [01:59:52] <antmas> dumb question - what might be causing the aliasing on the red light bulb and text here? http://i.imgur.com/Yb1qRvR.png
90: [02:00:00] <simon_w> UncleCheese, add_to_class()
91: [02:00:08] <UncleCheese> gah
92: [02:00:25] <UncleCheese> and it returns an array of static vars and their values?
93: [02:00:41] <UncleCheese> and it's a static method?
94: [02:01:29] <simon_w> Comments uses it, IIRC
95: [02:01:57] <UncleCheese> k
96: [02:09:43] * zippy___ has comitted sacrilege!
97: [02:11:39] <simon_w> But did you enjoy it?
98: [02:13:05] <antmas> sacrilege is awesome
99: [02:13:23] <antmas> I use all the time :D
100: [02:13:27] <antmas> >.>
101: [02:13:29] <antmas> <.<
102: [02:13:54] <Ryan-Toast> antmas: using the want tool in photoshop.
103: [02:13:58] <Ryan-Toast> wand**
104: [02:14:33] <Ryan-Toast> Well, using it poorly is what's causing it.
105: [02:15:36] <antmas> Ryan-Toast: naw, I don't use the wand homie
106: [02:15:56] <antmas> the bulbs are svgs with no aliasing
107: [02:16:00] <zippy___> antmas: wasn't my favourite ship to fly
108: [02:16:24] <zippy___> simon_w: yes I did, but I pitty the next poor sucka (which will probably be me)
109: [02:16:32] <Ryan-Toast> antmas: Do you export the svgs with illustrator?
110: [02:16:39] <antmas> Ryan-Toast: yup
111: [02:16:43] <simon_w> zippy___, good, So long as you enjoyed it.
112: [02:16:52] <Ryan-Toast> Delete all the extra shit in the file, ,see if that helps
113: [02:17:07] <antmas> Ryan-Toast: schweet
114: [02:17:18] <Ryan-Toast> antmas: should only need the polygon tags
115: [02:18:45] <zippy___> how bad could it be.. really… to swap out the 1.7.2 jquery in the framework thirdpary folder to 1.8.3
116: [02:21:53] <antmas> Ryan-Toast: sweet, that helpd
117: [02:21:55] <antmas> chur
118: [02:22:04] <Ryan-Toast> antmas: No probs :)
119: [02:22:23] <UncleCheese> i had an idea on requirements the other day
120: [02:22:28] <UncleCheese> what if you could do something like
121: [02:22:41] <UncleCheese> Requirements::require_if_not_exists('jQuery','/path/to/jquery.js');
122: [02:22:47] <UncleCheese> and that ends up writing something like
123: [02:23:06] <UncleCheese> if(!jQuery) document.write(<script jquery/path></script>);
124: [02:23:14] <UncleCheese> obviously more elegant, but you get the iea
125: [02:23:19] <Ryan-Toast> UncleCheese: I'd really like the combine_js or whatever it is to be able to be called from multiple places and combined into the same file.
126: [02:23:20] <simon_w> UncleCheese, go find the thread on ss-dev
127: [02:23:25] <Ryan-Toast> same with CSS
128: [02:23:47] <simon_w> Ryan-Toast, easy enough to do with a custom backend
129: [02:23:49] <UncleCheese> Ryan-Toast: I reckon you can do that
130: [02:24:04] <Ryan-Toast> Orly?
131: [02:24:30] <Ryan-Toast> Would be awesome, because then I could make my mini modules independant.
132: [02:24:53] <UncleCheese> well
133: [02:25:00] <zippy___> UncleCheese: Wouldn't it always be better just to require the framework jquery? That way your not going to get an unexpected result when your fall back is the latest version, but a module pulls in 1.8
134: [02:25:01] <UncleCheese> the default backend allows you to ID the libraries
135: [02:25:10] * joelpittet has joined #silverstripe
136: [02:25:23] <UncleCheese> and if everyone adhered to that convention, there would be no problem
137: [02:25:44] <UncleCheese> zippy___: that's typically what i do, but most people don't want to use the crusty old version of jquery that comes with SS
138: [02:25:54] <UncleCheese> they're probably pulling it in from the CDN already
139: [02:26:10] <simon_w> The CDN? Is that like The Cloud? :p
140: [02:26:28] <UncleCheese> no.. it's the Canberra Douche Network
141: [02:26:32] <simon_w> Also, module/theme developers should be using the framework one. End users can then block and require their own version
142: [02:26:43] <UncleCheese> tune in sometime.. it's a lot better than American TV
143: [02:26:55] <simon_w> Colin[pi], UncleCheese pulls his jQuery from your clients!
144: [02:26:59] <UncleCheese> yeah, block/require is a good call
145: [02:27:13] <zippy___> Was only a problem because SS held back so much on updating the jquery version
146: [02:27:21] <zippy___> and ss23 takes so loonngg to roll a release
147: [02:27:37] <zippy___> ss23: honestly, employ some pixies or something
148: [02:30:52] <Tanger> Hmmmm… One of my model admins seems to be aborting it's GET request when I access it, then retrying successfully.
149: [02:40:16] <antmas> I wonder how accurate Adobe Edge Inspect is
150: [02:45:50] <ss23> 15:27:13 < zippy___> Was only a problem because SS held back so much on updating the jquery version
151: [02:45:53] <ss23> blame the core devs
152: [02:45:53] <ss23> :O
153: [02:45:56] <ss23> not me
154: [02:47:18] <simon_w> But blaming you is so much easier! :p
155: [02:47:34] <simon_w> zippy___, the main difference between 1.7.x and 1.8.x is .live() is gone
156: [02:48:08] <Ryan-Toast> simon_w: And they didn't replace it.
157: [02:48:26] <simon_w> Ryan-Toast, there's .on(), but it does mean it's not a straight find+replace
158: [02:48:49] <Ryan-Toast> simon_w: yeah, .on() gets annoying when working with ajax though.
159: [02:49:03] <Ryan-Toast> any dynamic content based to be passed in. It's ffukcing annoying.
160: [02:49:07] <simon_w> Then you're not binding on the right thing :p
161: [02:49:14] <Ryan-Toast> has to be*
162: [02:49:23] <Ryan-Toast> Not if it's created by ajax.
163: [02:49:50] <Ryan-Toast> You get jQuery to append an element then try to run a .on() on it.
164: [02:49:50] <simon_w> $('.selector').live('event') is basically the same as $(window).on('event', '.selector')
165: [02:50:03] <Ryan-Toast> Not with generated content
166: [02:50:11] <Ryan-Toast> well, yeah like that
167: [02:50:15] <Ryan-Toast> Is what I mean
168: [02:50:26] <simon_w> Like I said, you're just not binding in the right place
169: [02:50:36] <simon_w> You need to bind above where you're inserting
170: [02:50:39] <Ryan-Toast> Yeah, I just liked live because you didn't :P
171: [02:50:55] <pippy> i like the new .on syntax, it makes dynamic events seem way easier
172: [02:51:07] <Ryan-Toast> yeah, it's a lot cleaner.
173: [02:51:56] <simon_w> Also, faster
174: [02:52:08] <simon_w> But you're writing JavaScript, so you're not worried about that :p
175: [02:52:18] <Ryan-Toast> :P
176: [02:52:33] <Ryan-Toast> I try to use vanilla as much as possible.
177: [02:52:39] <antmas> Javascript*
178: [02:52:44] <Ryan-Toast> good old: http://youmightnotneedjquery.com/
179: [02:55:24] <antmas> Ryan-Toast: That's my new mantra for the year
180: [02:55:29] <antmas> unless it's SS
181: [02:55:31] <antmas> :<
182: [02:55:37] <Ryan-Toast> lol
183: [02:55:48] <simon_w> I just try not to use JS at all :p
184: [02:55:53] <zippy___> This framework is good - http://vanilla-js.com/
185: [02:56:00] <Ryan-Toast> simon_w: Same
186: [02:57:47] <antmas> well, same here
187: [02:57:54] <antmas> but with SS...
188: [03:07:01] <Colin[pi]> <@simon_w> Colin[pi], UncleCheese pulls his jQuery from your clients!
189: [03:07:02] <Colin[pi]> ^ lol
190: [03:09:15] <antmas> haha
191: [03:15:13] <Colin[pi]> after yelling at a client today, I can see that
192: [03:17:23] <antmas> Colin[pi]: lol
193: [03:18:36] <Colin[pi]> client has been annoying me all week, lost my temper :(
194: [03:18:44] <Colin[pi]> it's alright now, we talked lol
195: [03:19:01] <antmas> Colin[pi]: what happened?
196: [03:20:37] <Colin[pi]> client is one of the abrupt types, who knows a little bit but not enough, and has been pestering me all week with annoying little things
197: [03:20:40] * Jakx quit (Quit: ~ Trillian Astra - www.trillian.im ~)
198: [03:21:12] <Colin[pi]> to make matters worse, they then argued their balance was wrong because they paid a deposit (they did) but cant do basic maths to figure out their balance
199: [03:21:24] <Colin[pi]> so I had to email to explain that
200: [03:21:33] <Colin[pi]> and every little thing has been an ordeal
201: [03:21:59] <Colin[pi]> client rings me today second guessing my opinions (as has been all week) because what would I know about web sites
202: [03:22:02] <Colin[pi]> and I lost it lol
203: [03:22:49] <Colin[pi]> there was a big delay on the line (awkward) he they said "are you done?"
204: [03:22:50] <Colin[pi]> LOL
205: [03:23:13] <Colin[pi]> anyway I called back a bit later and we had a chat, seems ok now ;)
206: [03:25:19] <Ryan-Toast> Send him the 1999 classic "ten things I hate about you", great for the whole family.
207: [03:26:15] <Colin[pi]> ^_^
208: [03:26:33] <Ryan-Toast> what is that face, it looks like an anime character on my screen.
209: [03:26:42] <Ryan-Toast> can you separate the symbols?
210: [03:26:50] <Colin[pi]> ^ _ ^
211: [03:26:55] <Colin[pi]> ^____________^
212: [03:26:55] <Ryan-Toast> Ah, lol.
213: [03:26:55] <simon_w> Ryan-Toast, just get a better client :p
214: [03:27:04] <antmas> Colin[pi]: man, that sucks
215: [03:27:10] <Ryan-Toast> simon_w: Sometimes we have no choice.
216: [03:27:11] <antmas> I've had a similar client before
217: [03:27:22] <Colin[pi]> antmas: is alright, I knew it was coming for a while
218: [03:27:25] <Ryan-Toast> simon_w: but I agree, some clients need to be fired.
219: [03:27:35] <Ryan-Toast> WHICH IS WHY YOU NEVER WORK FOR FAMILY, OH MY GOD.
220: [03:27:36] <simon_w> Ryan-Toast, IRC client :p
221: [03:27:54] <Colin[pi]> Ryan-Toast: yeah thats a huge red flag
222: [03:28:08] * nick86 quit (Ping timeout: 245 seconds)
223: [03:28:46] <Colin[pi]> antmas: wouldn't be a problem normally but unfortunately this client is very abrupt and, well, kinda rude
224: [03:29:04] <antmas> Colin[pi]: meh, fuck them
225: [03:29:07] <Colin[pi]> antmas: that grates on my after a while
226: [03:29:09] <Colin[pi]> *me
227: [03:29:17] <antmas> lol
228: [03:29:22] <antmas> one of the councilos
229: [03:29:27] <Colin[pi]> will be glad when the project is finished tbh
230: [03:29:28] <antmas> who has an ipad we gave them
231: [03:29:38] <antmas> locked himself out so many times the reset time is 48 hours
232: [03:29:46] <antmas> FAIL
233: [03:29:59] <Colin[pi]> lol
234: [03:30:16] <antmas> WHO CAN'T REMEMBER A 4 DIGIT CODE?!
235: [03:32:37] * cloph_away has joined #silverstripe
236: [03:32:51] * cloph quit (Ping timeout: 255 seconds)
237: [03:36:21] <antmas> holy crap
238: [03:36:26] <antmas> edge inspect is quite cool
239: [03:37:29] <zippy___> With the PaddedImage - is it possible to set the color to alpha / transparent?
240: [03:38:01] <Ryan-Toast> padded image?
241: [03:38:28] <zippy___> yea
242: [03:38:42] <zippy___> $Image.PaddedImage(80, 80) // Returns an 80x80 image. Unused space is padded white. No crop. No stretching
243: [03:41:24] <Colin[pi]> can you override the getter behaviour of a DO?
244: [03:41:50] <Colin[pi]> i.e. $DO->NameOfField... NameOfField doesn't exist but I want to return it via a method
245: [03:41:58] <Colin[pi]> do I need to override getField or __get or something?
246: [03:42:17] <Colin[pi]> note... field name, and not method call
247: [03:50:42] <an_Eskimo> Is there a reason why the Login form would suddenly start being a GET method instead of a POST method after moving servers? WOuld this also stop one from being able to login>?
248: [03:53:49] * antmas quit (Quit: Page closed)
249: [03:57:08] <zippy___> an_Eskimo: Is there a redirect going on, ie - for https or something it's redirecting (or www)
250: [03:58:03] <zippy___> shoot… you can't limit the SearchForm!
251: [03:58:19] <zippy___> to certain pages
252: [04:01:39] <an_Eskimo> zippy___: Not that I am aware of. I haven't even touched the login code. All I've done is put a form into the template so I can log in
253: [04:09:53] * muskie9 has joined #silverstripe
254: [04:25:41] * cloph has joined #silverstripe
255: [04:26:01] <an_Eskimo> Found it, the dev who built it put a form withn a form...
256: [04:26:02] * cloph_away quit (Ping timeout: 252 seconds)
257: [04:30:16] <Colin[pi]> yo dawg
258: [04:32:18] * an_Eskimo quit (Ping timeout: 245 seconds)
259: [04:33:51] * chris_bryer has joined #silverstripe
260: [04:47:13] * zippy___ quit (Ping timeout: 240 seconds)
261: [04:58:59] * muskie9 quit (Remote host closed the connection)
262: [05:02:56] * muskie9 has joined #silverstripe
263: [05:10:47] <Colin[pi]> 23s is kinda long for a R/R cycle huh :\
264: [05:10:50] <Colin[pi]> hmm
265: [05:10:54] <Colin[pi]> got some optimising to do
266: [05:15:40] * joelpittet quit ()
267: [05:16:06] <spronk> R/R?
268: [05:16:09] <spronk> oh
269: [05:16:10] <spronk> req res
270: [05:16:11] <spronk> mm
271: [05:16:51] * muskie9 quit ()
272: [05:16:52] * willr quit (Quit: willr)
273: [05:17:11] * chris_bryer has left #silverstripe
274: [05:17:14] <Colin[pi]> down to 11s!
275: [05:17:51] <Colin[pi]> amazing how changing just one line can sometimes halve processing time
276: [05:19:41] <ss23> nice!
277: [05:20:01] <Colin[pi]> 6s!
278: [05:20:17] <Colin[pi]> think that's the best I can do, it's returning a lot of objects/data
279: [05:33:29] <simon_w|air> optimise it even more!
280: [05:34:59] <simon_w|air> Blood report came back, and I don't have the ss23 disease!
281: [05:35:10] <ss23> I would hope so!
282: [05:35:16] * stripee has joined #silverstripe
283: [05:35:31] <ss23> simon_w|air: I presume you were getting tested for type 2 though? :P
284: [05:35:35] <simon_w|air> No diabetes for me!
285: [05:35:40] <ss23> Type 1 is kind of obvious, when you coma and die
286: [05:36:19] <stripee> any other website like sspaste ?
287: [05:36:32] <ss23> stripee: Thousands! gist.github.com is a good one :)
288: [05:36:44] * terryapodaca has joined #silverstripe
289: [05:36:48] <stripee> thousands !!!!
290: [05:36:55] <ss23> If you want one without a login, codepad.viper-7.com is good since it execeutes code, pastebin.com is good for non execution of code
291: [05:36:57] <simon_w|air> Though trying to read my doctor's handwriting is proving difficult
292: [05:36:59] <ss23> Thousands! Muhahahaha :D
293: [05:37:04] <ss23> haha simon_w|air
294: [05:37:30] <terryapodaca> anyone good with debugging IE CSS issues?
295: [05:38:07] <ss23> Sometimes I'm not angry enough
296: [05:38:17] <ss23> Then I see this: "I thought we'd already fixed this for CWP, but maybe we didn't integrate it into the open source release." amnd O
297: [05:38:22] <ss23> and I'm back to mad
298: [05:39:37] <simon_w|air> No glandular fever, go hep a or b
299: [05:39:46] <Colin[pi]> ss23: CWP and open source are separate?
300: [05:40:20] <simon_w|air> No herpes either
301: [05:41:08] <ss23> lol
302: [05:41:21] <ss23> simon_w|air: Is there a reason you were being tested? Just general check up, or feeling yucky?
303: [05:41:29] <ss23> Colin[pi]: I'm not sure. I thought not, idk :/
304: [05:41:39] <simon_w|air> ss23, seeing if anything was causing the depression
305: [05:41:47] <ss23> ah yep yep
306: [05:41:59] <ss23> I know dieting makes me depressed :(
307: [05:42:01] <stripee> I want onli specific pagetype pages in dropdown of treemultiselectfield ......how can i do this ?
308: [05:43:56] <simon_w|air> ss23, there's nothing to say CWP uses a different framework/cms from open source
309: [05:44:47] <ss23> simon_w|air: yeah, idk what it was in regards to ,I just saw that comment on an email from a while ago
310: [05:44:51] <simon_w|air> ss23, also, may want to bump the recipe versions
311: [05:44:59] <simon_w|air> "silverstripe/cms": "3.1.2",
312: [05:44:59] <simon_w|air> "silverstripe/framework": "3.1.2",
313: [05:45:03] <ss23> Nothing to do with me! :P
314: [05:45:13] <stripee> http://codepad.viper-7.com/iMtpnR
315: [05:45:14] <ss23> They have strict requirements on how/when they can bump versions
316: [05:48:58] <simon_w|air> stripee, you can't. You can only have a Tree type field that loads things from a class that Hierarchy is directly applied to
317: [05:50:02] <stripee> dint get u....
318: [05:50:45] <simon_w|air> stripee, you can only display a tree of things that directly use Hierarchy. In this case, that's SiteTree
319: [05:51:53] <stripee> oh yes,that is what going in mi case....but how can i implement mi requirement...
320: [05:52:18] <stripee> i mean instead of sitetree ,i want mi own specific any class.....
321: [05:55:51] <simon_w|air> So long as that class doesn't subclass a class that already uses Hierarchy (so, it can't subclass SiteTree or File in the default install), just add private static $extensions = array('Hierarchy'); to it
322: [06:07:41] <stripee> an error has occured using that
323: [06:08:41] <stripee> @simon_w|air private static $extensions = array('Hierarchy'); has created an error...
324: [06:09:05] <simon_w|air> stripee, are you trying to use it on a subtype of SiteTree?
325: [06:10:56] <stripee> yes ,i m using private static $extensions = array('Hierarchy'); in sitetree/page/mypage
326: [06:11:53] <simon_w|air> Yes, that won't work
327: [06:12:00] <simon_w|air> SiteTree already has Hierarchy
328: [06:40:09] * Shrike_Finland has joined #silverstripe
329: [06:44:14] <ss23> Good news for zippy! Done like 50% of the security release patches :D
330: [06:44:32] <ss23> 2 more left
331: [06:44:35] <ss23> though one is a lot of work...
332: [06:46:29] <ss23> OH FUCK I FORGOT TO DO SOMETHING
333: [06:46:30] <ss23> :/
334: [06:46:32] <ss23> Will have to do at home
335: [06:46:36] <ss23> bah
336: [06:46:40] <ss23> I hate sshit like this
337: [06:49:42] <simon_w|air> Get it, sshit as opposed to non-ss shit?
338: [06:59:54] * UncleCheese_ has joined #silverstripe
339: [07:15:06] <simon_w|air> Well, might have to move away from Ghost already. It doesn't allow scheduling future posts.
340: [07:27:27] * willr has joined #silverstripe
341: [07:29:09] * Shrike_Finland quit (Quit: Leaving.)
342: [07:29:30] * terryapodaca has left #silverstripe
343: [07:46:30] <ss23> simon_w|air: In this case, it's just "shit" :P
344: [07:46:34] <ss23> Shi me forgetting though
345: [07:46:35] <ss23> not anything ba
346: [07:46:36] <ss23> bad
347: [07:49:16] <stripee> @simon_w|air where should i use private static $extensions = array('Hierarchy');
348: [07:49:35] <simon_w|air> stripee, as I have said before, you can't in this situation
349: [07:49:40] <simon_w|air> What you're trying to do won't work
350: [07:49:53] <stripee> is there any other solution?
351: [07:50:34] <stripee> as per the treemultiselectfield definition ...it should have done wat i want ........
352: [07:51:00] <willr> SearchUpdater has to be the wackiest class in SS. Yay for file_put_contents() and requiring the file.
353: [07:51:12] <ss23> lol
354: [07:51:19] <ss23> willr: Yes, well... if I remember rightly, it was written by Hamish
355: [07:51:30] <ss23> You are not the only one to go "what the fucking shit is this" at it, from what I hear here at SS
356: [07:51:34] <ss23> :D
357: [07:51:46] <willr> obviously on a deadlne or just CBF
358: [07:59:20] * spronk2 has joined #silverstripe
359: [08:04:54] <ss23> I blame spronk2
360: [08:05:00] <spronk2> FORWHAT
361: [08:05:02] * CamelCase has joined #silverstripe
362: [08:05:11] <spronk2> WHAT DID I DO
363: [08:05:14] <ss23> :O
364: [08:05:19] <ss23> I heard you rm -rf'd willr's work...
365: [08:05:32] <spronk2> oh yeha
366: [08:05:34] <spronk2> sorry bout that
367: [08:07:34] <ss23> XD
368: [08:08:23] <willr> I'm going to PR composer. Stupid to not be a safe operation
369: [08:15:50] <simon_w|air> Oh man, why did I go look at that class...
370: [08:17:21] <ss23> hahahahhaa
371: [08:17:23] <ss23> Poor simon_w|air XD
372: [08:17:32] <willr> I feel like http://eeuauaughhhuauaahh.ytmnd.com/ trying to extend it
373: [08:17:42] * zippy____ has joined #silverstripe
374: [08:18:29] <simon_w|air> Aww, I don't have access to the repo so can't go and delete that class
375: [08:19:58] <willr> You also can't turn it off :(
376: [08:22:26] <zippy____> I am quite suprised the site search / search form doesn't allow you to filter by page type. Seems quite a few things hard coded in numerious places
377: [08:24:05] <ss23> PR's welcome
378: [08:24:05] <ss23> ^.^
379: [08:28:04] <zippy____> indeed
380: [08:28:10] <simon_w|air> If you're talking about the inbuilt one, a better PR is to nuke it from orbit
381: [08:28:39] <ss23> BC changes not allowed between certain versions, simon_w|air told me
382: [08:28:39] <ss23> :3
383: [08:29:03] <zippy____> yea the inbuilt one, which you can pass in array of DataObjects to search on, but then it throws an error if it's not SiteTree or Files as others are not supported
384: [08:29:11] <zippy____> https://github.com/burnbright/silverstripe-pagesearch has promise, but needs some love
385: [08:30:21] <zippy____> but that only works with mysql and assumes myisam tables being used
386: [08:30:34] <simon_w|air> So does the inbuilt one :p
387: [08:30:40] * philbenoit has joined #silverstripe
388: [08:30:41] <simon_w|air> Well, it switches your tables to myisam
389: [08:30:55] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
390: [08:31:02] <philbenoit> anyone know how to keep line breaks in emails?
391: [08:31:24] <philbenoit> Seems 3.* replaces then with <br/>
392: [08:34:40] <willr> Remember ss23, not allowed to use hack in messages. Workaround is the SilverStripe apprioritate language
393: [08:35:19] <willr> philbenolt trying to send plaintext emails? use sendPlaintext instead of send perhaps?
394: [08:35:49] <ss23> willr: What? Did I use the word "hack"? :O
395: [08:36:16] <ss23> willr: security list is only ssltd + core devs, so I figure I'm okay :P
396: [08:36:21] <ss23> The annoucmenets are properly right
397: [08:36:42] <willr> I was about to label this whole class HACK
398: [08:37:12] <ss23> XD
399: [08:37:41] <ss23> To: security@silverstripe.com Subject: What the fuck is this class? I'd be more surprised if you couldn't get RCE from this than if you bloody could
400: [08:42:08] <philbenoit> @willr not plan text. My client has a system ingesting the emails that requires a line break or ascii character line break to break up the email. I see SS replaces all /n with <br />, can this be changes
401: [08:43:47] <willr> no idea without looking sorry philbenoilt. Look at mailer::sendHTML() as a debugging start
402: [08:46:27] <simon_w|air> Well, Ghost isn't powerful enough yet
403: [08:46:38] <simon_w|air> What other blogging platforms could I look at?
404: [08:46:54] <ss23> Github pages!
405: [08:46:55] <ss23> :3
406: [08:46:57] <ss23> SilverStripe! :D
407: [08:47:03] <ss23> SilverStripe lets you schedule publish for the future
408: [08:47:04] <ss23> :3
409: [08:47:14] <simon_w|air> SilverStripe also only has simple
410: [08:47:18] <simon_w|air> Screw that
411: [08:47:22] <ss23> lol
412: [08:47:33] <zippy____> simon_w|air: wordpress?
413: [08:47:51] <simon_w|air> Is what I'm currently looking at
414: [08:48:03] <zippy____> what about blogspot as you can use your own subdomain with it?
415: [08:50:16] <simon_w|air> "933.3 MB available"
416: [08:50:17] <simon_w|air> Oh crap
417: [08:52:04] <Tanger> Heya guys, when using GridFields, if you add a field (i.e. a checkboxfield) to a custom grid field component, is there any way to tie the field in with a record's database entry?
418: [08:57:25] * headtrip has joined #silverstripe
419: [08:57:51] <headtrip> hey guys
420: [08:58:28] <headtrip> is there any module for image upload fields where i can choose a point from where its cropping the image? hope you understand what i mean - sorry for englisch :D
421: [08:58:56] * Shrike_Finland has joined #silverstripe
422: [08:59:25] * violet- has joined #silverstripe
423: [08:59:56] * violetina quit (Ping timeout: 246 seconds)
424: [09:00:15] <Tanger> headtrip: I believe there is, gimme a few mins to look it up
425: [09:00:44] <headtrip> thank you tanger
426: [09:00:51] <zippy____> headtrip: yes there is one, I saw it a month ago
427: [09:00:52] <zippy____> hmm
428: [09:01:23] * micmania1 has joined #silverstripe
429: [09:01:46] <zippy____> headtrip: http://www.silverstripe.org/focuspoint-smarter-image-cropping-for-silverstripe/ here you go
430: [09:02:14] <Tanger> Damn, beat me to it by one second zippy :(
431: [09:02:26] <zippy____> :)
432: [09:02:40] <headtrip> thank you guys :) great!
433: [09:09:39] * kinglozzer has joined #silverstripe
434: [09:14:01] <simon_w|air> zippy____, know of a theme that's good for text and code?
435: [09:14:36] <Colin[pi]> matrix theme?
436: [09:14:42] <Colin[pi]> ;P
437: [09:15:11] <zippy____> simon_w|air: no sorry, Ryan-Toast might be someone to ask, otherwise look at blogs that you frequent perhaps?
438: [09:15:38] <simon_w|air> zippy____, I don't tend to frequent those sorts of blogs :p
439: [09:16:08] <Colin[pi]> simon_w|air: make your own ;P
440: [09:16:10] <simon_w|air> I like my Ghost theme (http://coding.simon.geek.nz), but it's ghost specific, rather than a copy of something else
441: [09:16:15] <simon_w|air> Colin[pi], ahahahahaha
442: [09:16:53] <Colin[pi]> <html><head><title>My Theme</title></head><body> $Content </body></html>
443: [09:16:54] <Colin[pi]> DONE
444: [09:17:09] <headtrip> What are your favorite SilverStripe Modules you often use in CMS-Projects?
445: [09:17:37] * simon_w|air does use the CMS or modules!
446: [09:17:41] <simon_w|air> *doesn't
447: [09:17:59] <Colin[pi]> yeah but simon_w is crazy
448: [09:18:01] <Colin[pi]> ;)
449: [09:18:04] <simon_w|air> Yup!
450: [09:18:18] <headtrip> why dont u?
451: [09:18:26] <ss23> headtrip: betterbuttons is nice
452: [09:21:44] <simon_w|air> headtrip, the sites I build tend to be rather custom and it's usually faster for me to write something myself then figure out all the quirks in someone else's code
453: [09:22:06] * ocm has joined #silverstripe
454: [09:22:08] <ocm> howdy!
455: [09:22:37] <Colin[pi]> simon_w subscribes to the NIH philosophy
456: [09:22:49] <Colin[pi]> hey ocm
457: [09:25:44] * micmania2 has joined #silverstripe
458: [09:26:54] * willr quit (Quit: willr)
459: [09:28:43] * micmania1 quit (Ping timeout: 264 seconds)
460: [09:36:25] <headtrip> do i have to install silverstripe-googlesitemaps manually?
461: [09:36:41] <zippy____> yes
462: [09:36:48] <ss23> CAKE FOR YOU
463: [09:36:50] <ss23> TEA FOR YOU
464: [09:37:07] <headtrip> thanks
465: [09:37:12] <ss23> No problems
466: [09:37:15] <ss23> Glad I could help
467: [09:37:15] <ss23> ^.^
468: [09:40:41] <headtrip> i installed the module
469: [09:40:54] <headtrip> requested ../sitemap.xml
470: [09:41:04] <headtrip> it gives me only one entry in the sitetree
471: [09:41:14] <headtrip> ....<loc>http://localhost/lobenwein/sitemap.xml/sitemap/SiteTree/1</loc>....
472: [09:41:22] <headtrip> whats wrong?
473: [09:42:05] <ss23> did you clear the cache/flush etc?
474: [09:42:08] <ss23> And do a dev/build?
475: [09:42:15] <headtrip> yep
476: [09:42:36] <headtrip> when i follow the link http://localhost/lobenwein/sitemap.xml/sitemap/SiteTree/1 i see a html page with all my sites listed
477: [09:42:52] <headtrip> but google needs a real xml file doesnt it?
478: [09:42:57] <ss23> Yes
479: [09:42:59] <ss23> Yes it does
480: [09:43:04] <ss23> I do not know what that happens sorry, I ahve not used the module :O
481: [09:43:16] <headtrip> ok thanks anyway
482: [09:47:26] <simon_w|air> headtrip, that's a site map index page. It's how the module works
483: [09:47:39] <simon_w|air> Spiders know how to use it too
484: [09:48:37] * terryapodaca has joined #silverstripe
485: [09:50:26] <terryapodaca> is there a place in the Docs that will show me a decent list of settings for the _config.php file?
486: [09:51:01] * desperate has joined #silverstripe
487: [09:51:28] <desperate> morning !
488: [09:51:35] <ss23> moin moin
489: [09:51:38] * Tanger quit (Quit: Tanger)
490: [09:51:45] <desperate> does anyone know if it is possible to condense this into a single line
491: [09:51:49] <desperate> $return[]=new ArrayData($temparray); return new ArrayList($return);
492: [09:52:32] <desperate> I thought this might work: return new ArrayList(new ArrayData($temparray));
493: [09:52:44] <desperate> but i get a server error
494: [09:53:51] <simon_w|air> desperate, need to wrap the ArrayData in an array
495: [09:55:04] * wmk has joined #silverstripe
496: [09:55:44] <ss23> return new ArrayList(array(new ArrayData($temparray)));
497: [09:55:45] <ss23> rite?
498: [09:56:37] <wmk> hi all
499: [09:58:13] <Colin[pi]> hey wmk
500: [09:58:17] <ss23> hihi
501: [09:58:25] <headtrip> thanks simon_w|air
502: [10:05:26] <desperate> ss23: Yes that's it thnaks
503: [10:05:31] <desperate> thanks!
504: [10:05:52] <headtrip> is it possible to make an folder in silverstripe root like /modules/ and put all the modules in there?
505: [10:08:54] <ss23> headtrip: Not that I'm aware of. Why do you mind/care?
506: [10:09:39] <terryapodaca> if I put SS_Log::add_writer(new SS_LogFileWriter('error_log.txt'), SS_Log::ERR); in the config file, is that writing to the root of the site or some place else in the framework?
507: [10:09:53] <Colin[pi]> yeah convention is module in root, with a _config.php file... works pretty well?
508: [10:10:22] <headtrip> ss23: my silverstripe root folder is full of modules, i'd like to tidy it up a bit
509: [10:11:50] <ss23> terryapodaca: No idea, add the line and see where the file ends up I guess! :D
510: [10:11:56] <Colin[pi]> headtrip: yeah but then you'll have a modules folder full of modules... most folders in the root are considered a module anyway
511: [10:12:01] <micmania2> is there a way to detect where images are used in Content fields across the site? Does the link tracking tie into images/media?
512: [10:12:05] * micmania2 is now known as micmania1
513: [10:12:48] <zippy____> terryapodaca: pretty sure it ads it to the folder that has the config file
514: [10:13:01] <headtrip> Colin[pi]: allright no worries, just checked out if there is any possibility to do it
515: [10:13:14] <Colin[pi]> k :)
516: [10:13:29] <zippy____> headtrip: im with ya :) i think it looks messey too..
517: [10:20:45] * UncleCheese_ quit (Quit: UncleCheese_)
518: [10:21:15] * UncleCheese__ has joined #silverstripe
519: [10:26:17] <stripee> output of $source->map('ID', 'Title') is an object but i want the ooutput be an array...how can i make it an array?
520: [10:28:10] * nbezzala quit (Read error: Connection reset by peer)
521: [10:34:30] <simon_w|air> stripee, why do you want it to be an array?
522: [10:35:20] <stripee> i want to use that output in listboxfield
523: [10:35:34] <stripee> thats y i want that to be array
524: [10:36:52] <simon_w|air> ListboxField just needs a traversable value
525: [10:36:57] <simon_w|air> SS_Map is one of those
526: [10:37:44] * micmania2 has joined #silverstripe
527: [10:37:50] <stripee> it is not working
528: [10:37:57] <stripee> i have already tried it
529: [10:38:21] <stripee> [Warning] array_keys() expects parameter 1 to be array, object given
530: [10:40:49] * micmania1 quit (Ping timeout: 240 seconds)
531: [10:41:28] <headtrip> can i stop the blog module from generating a blog holder + entry on dev build?
532: [10:45:31] <zippy____> headtrip: will only do it once if blog holder doesn't exist
533: [10:45:43] <zippy____> headtrip: otherwise I think you'll have to edit the module
534: [10:46:12] <headtrip> okay thanks
535: [10:59:09] * qlex has joined #silverstripe
536: [10:59:20] * qlex says hi
537: [10:59:29] <qlex> guys, im struggling with potentially a simple problem
538: [10:59:40] <qlex> have a gallery inside of my ss 3.1.1 installation
539: [10:59:53] <qlex> and now when trying to add a new page (meaning, add a gallery) to my page..
540: [10:59:58] <qlex> im getting an error/warning in cms
541: [11:00:01] <qlex> firebug says:
542: [11:00:01] * Guits has joined #silverstripe
543: [11:00:12] <qlex> ERROR [User Warning]: None of these templates can be found in theme 'Base1': BulkManagerButtons.ss IN GET /snipe/admin/pages/edit/show/32 Line 728 in /var/www/vhosts/kulesza.net/httpdocs/snipe/framework/view/SSViewer.php
544: [11:00:24] <qlex> any idea what can this be ?
545: [11:00:30] <philbenoit> you might need to flush=all
546: [11:00:32] * micmania1 has joined #silverstripe
547: [11:00:37] <zippy____> qlex: you need to flush
548: [11:00:47] <philbenoit> both on the front end of the site
549: [11:01:05] <philbenoit> and the CMS url.com/admin/page?flush=all
550: [11:02:49] * micmania2 quit (Ping timeout: 240 seconds)
551: [11:04:32] <qlex> did that
552: [11:04:36] <qlex> both in cms and outside
553: [11:06:20] * UncleCheese__ quit (Quit: UncleCheese__)
554: [11:07:07] <qlex> ok, when i flushed again at /admin/page?flush=all it helped
555: [11:07:17] <qlex> befre that i was flushing only at /admin?flush=all
556: [11:09:48] * desperate quit (Ping timeout: 245 seconds)
557: [11:15:16] <zippy____> qlex: best bet to do it on /
558: [11:22:35] * micmania2 has joined #silverstripe
559: [11:24:59] * micmania1 quit (Ping timeout: 240 seconds)
560: [11:29:16] * Shrike_Finland quit (Quit: Leaving.)
561: [11:36:54] <stripee> when using map as one argument in listboxfield ...an error is shown...this is the error message...[Warning] array_keys() expects parameter 1 to be array, object given....does nayone have any idea?
562: [11:42:47] <zippy____> stripee: with your ->map(xxxx)
563: [11:42:54] <zippy____> add ->toArray() on the end
564: [11:43:03] <stripee> ohk
565: [11:43:12] <stripee> let me apply ur logic
566: [11:43:34] * micmania2 is now known as micmania1
567: [11:45:30] <zippy____> stripee: sorted?
568: [11:45:59] <stripee> trying
569: [11:46:22] <stripee> smartgit got slept...i am waking it now.hehe
570: [11:47:36] <stripee> see what i got ....[User Error] Uncaught InvalidArgumentException: No array values allowed with multiple=false
571: [11:48:29] <headtrip> I am adding a DataExtension to a Page Object, when i am extending the getCMSFields() function this doesnt works, it does not show me the added fields. why is that? http://pastebin.com/ae2KpRPj
572: [11:48:54] <stripee> $source->map('ID', 'Title')->toArray() is the third argument for Listboxfield....
573: [11:50:11] * Shrike_Finland has joined #silverstripe
574: [11:50:18] <zippy____> stripee: when you create your field, you need to setMultiple(true)
575: [11:50:20] <zippy____> so
576: [11:50:59] <zippy____> ListboxField::create('Name', 'Title', $source->map('ID', 'Title')->toArray())->setMultiple(true)
577: [11:51:16] <micmania1> stripee: don't use ListboxField for no multiples. Just use a DropdownField
578: [11:52:33] <zippy____> micmania1: DropdownField for single select and ListboxField for multiple select?
579: [11:52:42] <micmania1> yes
580: [11:52:47] <zippy____> headtrip: did you dev/build and flush? need to flush with that extension
581: [11:53:05] <zippy____> stripee: Are you trying to have single select, or multiple select?
582: [11:53:17] <stripee> mi work is multiple select
583: [11:53:40] <stripee> actaully i was trying it with treemultiselectfield
584: [11:53:44] <micmania1> headtrip: You don't use getCMSFields within your DataExtension. You need to use updateCMSFields(FieldList $fields) and don't call parent...
585: [11:54:01] <stripee> but that was not workig so i decidedd to use listbox
586: [11:54:08] <headtrip> micmania1: thanks, works
587: [11:54:34] * basso_ has joined #silverstripe
588: [11:54:47] <micmania1> headtrip: http://doc.silverstripe.org/framework/en/reference/dataextension - there's the docs if you need them.
589: [11:55:25] * zippy____ quit (Quit: zippy____)
590: [12:00:47] <stripee> ->setMultiple(true) using it makes the whole page blank...
591: [12:01:01] <stripee> no error,no display,none appears
592: [12:02:06] <stripee> this is what actually have......$fields->addFieldToTab('Root.Main', new ListboxField("name","title",$source->map('ID', 'Title')->toArray()), 'Content', 'Metadata');
593: [12:07:29] * wmk quit (Ping timeout: 240 seconds)
594: [12:10:11] <stripee> zippy____ how to apply ->setMultiple(true) in $fields->addFieldToTab('Root.Main', new ListboxField("name","title",$source->map('ID', 'Title')->toArray()), 'Content', 'Metadata');
595: [12:15:13] * micmania2 has joined #silverstripe
596: [12:17:59] * micmania1 quit (Ping timeout: 240 seconds)
597: [12:20:10] <basso_> Hi, Im trying to install and load a theme based on the skeleton css framework, but I can't seem to load the theme. When I change theme to "simple", it works, but the moment i load the skeleton framework, it does not show the appropriate Page.ss, or anything that has to do with the theme. Anyone knows where I can start to get it to work? I already tried editing /mysite/_config/config.yml, like the installation suggest, but no luck.
598: [12:20:40] * UndefinedOffset has joined #silverstripe
599: [12:21:36] <basso_> Loading a theme that does work, removing all the files from that theme and copy the files from the skeleton directory into a working theme directory does not seem to work either
600: [12:24:33] * micmania1 has joined #silverstripe
601: [12:27:14] * micmania3 has joined #silverstripe
602: [12:28:43] * micmania2 quit (Ping timeout: 264 seconds)
603: [12:28:52] * qlex1 has joined #silverstripe
604: [12:29:35] * micmania1 quit (Ping timeout: 246 seconds)
605: [12:29:59] * qlex quit (Ping timeout: 240 seconds)
606: [12:34:38] * micmania3 is now known as micmania1
607: [12:34:48] * philbenoit quit (Ping timeout: 245 seconds)
608: [12:36:18] * Bollig|DesignCty has joined #silverstripe
609: [12:40:16] <basso_> Mmmm, don't know what it was, but clearing the cache did the trick
610: [12:40:23] <basso_> flushing
611: [12:40:38] * iamss has joined #silverstripe
612: [12:45:40] * desperate has joined #silverstripe
613: [12:45:55] <desperate> what is wrong with this:
614: [12:46:01] <desperate> $res=galleryalbum_images::get();
615: [12:46:12] <desperate> when i open my page I get a white screen
616: [12:46:26] <kinglozzer> Do you have a DataObject class called 'galleryalbum_images' ?
617: [12:46:27] <desperate> if I change it to $res=file::get(); it works
618: [12:47:04] <desperate> hmm no
619: [12:48:09] <Colin[pi]> well there's ur problem :)
620: [12:48:30] <desperate> I have gallery_album which has many gallery_images which has one image
621: [12:48:44] <iamss> to get rid of a white screen make sure you have set your environment to dev
622: [12:48:45] <desperate> I want to pull out all images that belong to galleryx
623: [12:48:47] <basso_> I added Security_login.ss to my Layout directory, flushed the cache, logged out, but it still show my Page.ss instead of Security_login.ss. Any ideas?
624: [12:49:08] <desperate> it looks as if the relation is stored in galleryalbum_images
625: [12:50:03] <desperate> but i can't query that table
626: [12:52:31] <desperate> so do i have to query the gallery table as an object and then extract the information i neeD?
627: [12:53:40] <kinglozzer> desperate: Gallery::get()->byID($id)->GalleryAlbum_Images();
628: [12:58:13] <desperate> [User Error] Uncaught Exception: Object->__call(): the method 'galleryalbum_images' does not exist on 'GalleryAlbum'
629: [12:59:22] <kinglozzer> desperate: That was an example. You need to get the gallery, or galleryalbum or whatever you want the images from, then call ->GalleryAlbum_Images() (assuming that's the relationship name) to get a list of images in that relationship
630: [12:59:25] * micmania1 has joined #silverstripe
631: [13:02:33] <desperate> ah i see... I had the wrong relationname
632: [13:06:03] * iamss quit (Ping timeout: 245 seconds)
633: [13:08:06] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
634: [13:13:06] <desperate> @kinglozzer I presume I am doing this correctly.. I have a carousel on my page and so I need ot grab all images so I have wrote a small function that queries for the images where gallery = x
635: [13:13:47] * samthejarvis has joined #silverstripe
636: [13:14:47] <samthejarvis> does anyone know how to stop silverstripe from processing and caching the result of a method in a template?
637: [13:15:53] <samthejarvis> for example I have a $FormattedAddress($Address) method that's used in templates, it's used multiple times throughout a template
638: [13:16:00] <samthejarvis> but it only runs it once
639: [13:16:06] <samthejarvis> and saves the result of the first
640: [13:17:12] <samthejarvis> obviously something silverstripe does to reduce redundant processing
641: [13:18:12] <samthejarvis> ViewableData::cachedCall is what does it
642: [13:19:40] * mento has joined #silverstripe
643: [13:23:16] <samthejarvis> yet there's no underscore
644: [13:24:15] <mento> hey guys, how can i add a DateTimeField to my dataobject in the correct fieldgroup? This is my current result, it works - but it looks horrible: http://oi59.tinypic.com/wjfk03.jpg I use push to insert the datetimefield, is this the correct way? http://pastie.org/8950439
645: [13:25:35] * Colin[pi] quit (Ping timeout: 252 seconds)
646: [13:25:38] <samthejarvis> hi mento, you want to use $fields->addFieldToTab('Root.Main', $field); for that
647: [13:26:49] * violet- quit (Remote host closed the connection)
648: [13:27:23] <mento> ah, samthejarvis - ofcourse - i'm still used to the 2.X branch of the CMS :-P
649: [13:28:11] <mento> with DataObjectManager in mind
650: [13:28:12] * violetina has joined #silverstripe
651: [13:28:23] <mento> thanks for the tip!
652: [13:29:21] <samthejarvis> heh i see
653: [13:30:33] * micmania2 has joined #silverstripe
654: [13:34:20] * micmania1 quit (Ping timeout: 246 seconds)
655: [13:34:29] * micmania2 is now known as micmania1
656: [13:41:53] * samthejarvis quit (Ping timeout: 245 seconds)
657: [13:48:58] * qlex1 has left #silverstripe
658: [13:50:07] <headtrip> i installed the googleanalytics module and saved all required data in the Site Config
659: [13:50:28] <headtrip> now when i go to the Analytics tab on any page type and tick "Views" nothing happens
660: [13:50:31] <headtrip> why not?
661: [13:50:35] <headtrip> flushed it!
662: [13:51:03] * stripee quit (Ping timeout: 245 seconds)
663: [13:55:40] * jonShape_ quit (Quit: leaving)
664: [13:59:42] <headtrip> when i tick on "views" its querieying (..)/GoogleDataController/performance/1 (Status: 200, Response: JSON) but thats it, i cant see anything
665: [14:01:54] * spronk2 quit (Quit: spronk2)
666: [14:04:55] * catcher has joined #silverstripe
667: [14:07:17] <desperate> is there a way of getting the ID of the page I am using
668: [14:07:27] <desperate> for example GalleryHolder extends page
669: [14:08:07] <desperate> in my controller I want to use a varialbe which is the ID of this pgae
670: [14:08:20] <kinglozzer> $this->ID
671: [14:11:44] <terryapodaca> any good JS folks here?
672: [14:12:08] <ocm> terryapodaca, perhaps! depends on what topic :P
673: [14:12:11] <ocm> so, shoot it
674: [14:13:02] <terryapodaca> http://ph.terryapodaca.com/ <-- just getting started on a rebuild and need help getting a rollover/mouseover to work (jQuery)
675: [14:13:20] <terryapodaca> when you mouse over a menu item, that image above it should change
676: [14:13:38] <terryapodaca> $("#menu1 li a img").mouseover(function() {
677: [14:13:38] <terryapodaca> $("#slogan").attr("src", 'themes/parishouse/images/'+ $(this).attr('class') +"roll.gif");
678: [14:13:38] <terryapodaca> });
679: [14:13:45] <terryapodaca> grrrr...
680: [14:13:49] <terryapodaca> formatting...
681: [14:14:18] <terryapodaca> anyway, I used that to try and change the image above the name based on what link you mouse over in the nav
682: [14:16:41] * Shrike_Finland quit (Quit: Leaving.)
683: [14:16:59] <ocm> what jquery version do you use?
684: [14:17:00] * ryszard has joined #silverstripe
685: [14:17:13] <terryapodaca> 1.10
686: [14:17:24] <ocm> you should use $(elem).on(
687: [14:17:31] <ocm> mousein / mouseout
688: [14:17:32] <ocm> I think
689: [14:17:38] <ocm> or use hover
690: [14:18:00] <ocm> .over == .on('mouseover')
691: [14:18:16] <desperate> @kinglozzer thanks that works.... so in my template I can output the ImageID in my, but I want the filename so this should work righT? $ImageID.Filename
692: [14:18:26] <terryapodaca> what's the equv for mouseout
693: [14:18:36] <ocm> its the callback from the first
694: [14:18:52] <ocm> hang on, let me fiddle you something
695: [14:19:07] <terryapodaca> ok, appreciate it a lot!
696: [14:20:13] <desperate> i thought the whole point of sql as an object is that you pull acorss all relations?
697: [14:21:09] <ocm> terryapodaca, is the image within the list item which has to change? or is it in the previous list item?
698: [14:22:01] * muskie9 has joined #silverstripe
699: [14:22:02] <terryapodaca> I use the list item src and class to tell what the hover image should be and back to what the original was when you mouse out
700: [14:22:40] <terryapodaca> <img class="$URLSegment" src="themes/parishouse/images/$URLSegment<% if $LinkingMode = current %>_hover<% else_if $LinkingMode = section %>_hover<% end_if %>.gif" alt="$Title">
701: [14:23:02] <terryapodaca> so if you ignore the LinkingMode...you can hard code it
702: [14:24:03] <terryapodaca> then the original image above that changes I put the original URL in the class
703: [14:24:17] <terryapodaca> i know it's a hack...but trying to reuse code when possible
704: [14:24:50] <ocm> I would suggest use the data property
705: [14:25:03] <ocm> not the class, it might give you an invalid value on the class prop
706: [14:25:05] <cloph> just for hover on the same element, you can use plain css, no need to use javascript.
707: [14:25:23] <desperate> what wrong with this.... galleryAlbum has_many galleryImages, galleryImages has_one Image
708: [14:25:44] <desperate> $res=galleryalbum::get()->byID($this->ID)->GalleryImage();
709: [14:25:47] <terryapodaca> I'm behind on current usages like that...so any tips would be fine.
710: [14:26:28] <desperate> $ImageID ... works
711: [14:26:34] <cloph> terryapodaca: if you use sprites, then there isn't even a delay loading the other image... see http://kyleschaeffer.com/development/pure-css-image-hover/ for an example.
712: [14:26:54] <terryapodaca> cloph: hovering on a menu item changes a div image above the menu
713: [14:27:02] <terryapodaca> it's not a sprite image hover
714: [14:27:41] <cloph> could still combine that with more advanced css selectors
715: [14:28:34] * babak quit (Quit: Connection closed for inactivity)
716: [14:29:54] <desperate> $ImageID.Filename doesn't work
717: [14:30:15] <desperate> shouldn'tr my query bring the relations across by default
718: [14:30:26] <desperate> $res=galleryalbum::get()->byID($this->ID)->GalleryImage();
719: [14:31:04] <terryapodaca> cloph: you mean something like this?
720: [14:31:22] <terryapodaca> but the div isn't inside the menu list items
721: [14:31:44] <cloph> if you pasted something that starts with a /, it didn't make it to the channel
722: [14:31:58] <terryapodaca> http://jsfiddle.net/DTXYa/
723: [14:33:01] <desperate> does sql by object give me access to all relations?
724: [14:33:17] <terryapodaca> this is the site I am rebuilding with the working functionality but it uses jQuery 1.6
725: [14:33:30] <terryapodaca> http://www.parishouse.co.nz/
726: [14:34:05] <terryapodaca> and I need a newer version for some new functionality I will be adding to the site (along with upgrading to SS3)
727: [14:34:59] * Alfirin has joined #silverstripe
728: [14:35:16] <cloph> yes. And if css selectors aren't enough, just use a simple javascript that sets corresponding classes/IDs to apply the css/make the selectors easier :-)
729: [14:37:02] * Matt_ has joined #silverstripe
730: [14:37:09] <Matt_> hi :)
731: [14:37:25] <Alfirin> cheers
732: [14:37:26] * Matt_ is now known as Guest77713
733: [14:37:34] <terryapodaca> curious what ocm comes up with
734: [14:38:34] <Guest77713> I've recently upgraded my one installation to 3.1.3. The home page loads fine, but the rests shows the tutorial template and the "Sorry, it seems you were trying to access a page that doesn't exist." message. The page clearly exists in the database though
735: [14:39:03] <desperate> does anyone know if by doing an sql query as an object should I be able ot access the related foreign key data in my result?
736: [14:39:16] <basso_> Guest77713: is the page still published?
737: [14:39:30] <Guest77713> Yes
738: [14:39:45] <Guest77713> No errors are outputted to the error_log either
739: [14:39:52] * Shrike_Finland has joined #silverstripe
740: [14:40:02] * Shrike_Finland quit (Client Quit)
741: [14:40:21] * Shrike_Finland has joined #silverstripe
742: [14:40:38] <cloph> Guest77713: You're probably seeing the static version of the 404 page because your webserver is not configured properly.
743: [14:40:50] <Guest77713> Is there an easy fix?
744: [14:40:53] <cloph> You might not have mod rewrite enabled or similar.
745: [14:41:07] <cloph> try adding a index.php between and see if that fixes things.
746: [14:41:28] <desperate> my only other alternative is to do a nested sql statement but I can't believe that is the correct way to do things
747: [14:41:44] <desperate> it's a simple datamodel
748: [14:42:37] * Shrike_Finland quit (Client Quit)
749: [14:42:38] <Guest77713> cloph: I've just had a look at the .htaccess file, and noticed a slight error (RewriteBase was in there). I've removed this, and it's worked fine. Thank you for your help
750: [14:42:40] <headtrip> someone using silverstripe-googleanalytics with ss >3.1 ?
751: [14:42:42] <cloph> index.php
752: [14:42:43] <Guest77713> (and also basso_) :)
753: [14:42:51] <cloph> ups. sorry :-)
754: [14:43:40] <Guest77713> Cheers :D
755: [14:43:53] <basso_> I need to programmatically add an image to a page, whats the way to go?
756: [14:44:12] <desperate> is anyone able to help me?
757: [14:44:46] <cloph> stick $imageHere into your template and write a function imageHere in your page's controller. Or define what "programmatically" really means.
758: [14:44:59] <basso_> desperate: use a join? You should see the result. Your can always print_r your object to see whats inside
759: [14:45:19] <catcher> desperate, where is the ORM failing you?
760: [14:45:20] * wmk has joined #silverstripe
761: [14:45:23] <cloph> desperate: the datamodel gives you access to all relations.
762: [14:45:51] <desperate> I have a dataobject called GalleryImage which has_one Image
763: [14:46:12] <cloph> (with the slight annoyance that for 1:1 you need to use the ID explicitly, while for other kinds the object itself can be passed)
764: [14:46:24] <desperate> I am querying my db for all GalleryImage that belong to a GalleryAlbum as follows: $res=galleryalbum::get()->byID($this->ID)->GalleryImage() ;
765: [14:46:25] <catcher> basso_, define 'page' in that case - does your page class have a related image?
766: [14:46:34] <catcher> basso_, or do you mean an htmltext block?
767: [14:47:20] <desperate> that works, I can access the $ImageID in my template
768: [14:47:20] <catcher> desperate, that will work fine, provided you've set the relationships up right, and the data actually exists
769: [14:47:42] <desperate> but when I do $Image.ID.Filename i get no output
770: [14:47:46] <basso_> catcher: i've uploaded an image, I need to put it inside my body, it's being used for a slideshow, so I can't use the editor for this. I need to get it from the DB and insert it in the appropriate div
771: [14:47:52] <catcher> desperate, why would the ID have a filename?
772: [14:48:22] <catcher> basso_, inside an htmltext body?
773: [14:48:49] <desperate> sorry that should have been $ImageID.Filename
774: [14:49:03] <desperate> $ImageID is the forgeign key to images in the file table
775: [14:49:08] <basso_> catcher: yes
776: [14:49:18] <catcher> desperate, $Image.Filename
777: [14:49:27] <catcher> You have to reference the image object, not its ID
778: [14:50:13] * Guest77713 quit (Ping timeout: 245 seconds)
779: [14:50:26] * jparks has joined #silverstripe
780: [14:50:37] <jparks> hey everyone
781: [14:51:06] <desperate> grrrr
782: [14:51:07] <catcher> basso_, you can grab the content field, insert the content (DOMDocument?), and write the updated object.
783: [14:51:09] <desperate> that works
784: [14:51:16] <desperate> I was using ImageID.filename
785: [14:51:24] <desperate> why isn't it ImageID
786: [14:51:29] <jparks> so, i installed tagfield and it works but i am lost at how to query it ... so say i want to show all related articles with similar tags
787: [14:51:35] <catcher> desperate, because that's an ID, i.e. a number
788: [14:51:41] <catcher> desperate, you want the object itself
789: [14:51:49] <cloph> desperate: you don't write what ImageID corresponds to in your statement. If that's only the ID; then of course it won't work..
790: [14:53:09] <catcher> basso_, but I think shortcodes may be a better solution
791: [14:55:31] <desperate> thanks guys... i was almost keelling over
792: [14:56:12] <catcher> no need for all that :)
793: [14:57:52] <Alfirin> gents, is it possible to prepopulate forms on the frontend. I now how to do it in backend, but the frontend still eludes me.
794: [14:58:21] <jparks> has anyone used the tagfield module?
795: [14:58:37] <cloph> a shortcodes, nice topic that I need to dig deeper in as well. A little unclear to me where to define those/whether you can limit them to certain page-types/classes and what the shortcode parser instances are about. If someone has pointers besides the php itself and http://doc.silverstripe.org/framework/en/reference/shortcodes that leaves those questions open for me...
796: [14:59:03] <basso_> catcher: thank you so far
797: [14:59:33] <cloph> Alfirin: where should the data for the frontend come from? frontend for me= a regular visitors browses to your site and loads a page...
798: [15:00:46] <catcher> Alfirin, when you're pushing the fields, $field->setValue('Initial Val');
799: [15:01:22] <Alfirin> What I'd like is to get the page title and, in case the user is logged in, his name and email
800: [15:01:23] <cloph> that would be backend, and he knows to do it in backend, so question remains unclear to me...
801: [15:02:23] <catcher> Alfirin, You can do that all server-side with ->setValue
802: [15:02:37] <catcher> cloph, I was figuring back-end = CMS :-P
803: [15:03:45] <Alfirin> m-kay, I figured it would be more complex
804: [15:14:21] * UndefinedOffset quit (Quit: Leaving.)
805: [15:18:32] * UndefinedOffset has joined #silverstripe
806: [15:28:18] * babak has joined #silverstripe
807: [15:50:16] * Guest22798 has joined #silverstripe
808: [15:51:29] <Guest22798> Hi. I've just done a fresh installation of SilverStripe, but seem to get an error when clicking on "Reports" in the admin section
809: [15:51:31] <Guest22798> "AH01215: PHP Fatal error: require_once(): Failed opening required 'Zend/Exception.php' (include_path='.:/home/site/public_html/framework:/home/site/public_html/framework/parsers:/home/site/public_html/framework/thirdparty:.:/usr/share/pear55:/usr/share/php') in /home/site/public_html/framework/thirdparty/Zend/Log/Exception.php on line 23"
810: [15:59:03] <Guest22798> Any help would be appreciated :)
811: [16:07:43] * Guest22798 quit (Ping timeout: 245 seconds)
812: [16:13:37] * mento quit (Quit: Page closed)
813: [16:21:14] * basso_ quit (Quit: basso_)
814: [16:23:22] * Colin[pi] has joined #silverstripe
815: [16:24:33] * basso_ has joined #silverstripe
816: [16:26:07] * opalfroot has joined #silverstripe
817: [16:26:46] <opalfroot> anyone know how I can save serialised data on my entity ?
818: [16:29:55] * basso_ quit (Quit: basso_)
819: [16:33:58] <catcher> opalfroot, php has a serialize method, are you planning on writing it to the DB that way?
820: [16:35:30] <kinglozzer> opalfroot: Use serialize() and either write it to the database or use the SS_Cache API
821: [16:42:41] <kinglozzer> Straw poll: do you usually rename 'mysite'? For internal projects I always rename them, but otherwise I don't usually bother - I guess because it's /slightly/ easier for anyone who inherits the project
822: [16:45:19] <micmania1> never!
823: [16:46:48] * basso_ has joined #silverstripe
824: [16:48:07] <opalfroot> sorry yea
825: [16:48:20] <opalfroot> trying to write it back to the DB serialised
826: [16:48:59] <opalfroot> so in the entity I have $this->Data['abc']='something' within the onBeforeWrite
827: [16:49:19] <opalfroot> it never seems to actually make it to the db...
828: [16:49:48] * jparks quit (Ping timeout: 245 seconds)
829: [16:54:24] <opalfroot> got it using get/setField
830: [16:56:31] <headtrip> i am using a customsite config for data displayed in my footer
831: [16:56:49] <headtrip> what can i use as partial caching hash?
832: [16:56:57] <headtrip> <% cached $SiteConfig.LastEdit %> wont work
833: [16:58:33] * desperate quit (Ping timeout: 245 seconds)
834: [17:02:39] <kinglozzer> LastEdited is the field name
835: [17:08:06] * kinglozzer quit ()
836: [17:12:37] * basso_ has left #silverstripe
837: [17:14:17] * opalfroot quit (Quit: Page closed)
838: [17:19:10] <headtrip> Thanks
839: [17:20:29] * robert_ quit (Read error: Connection reset by peer)
840: [17:26:10] * ocm quit (Quit: HydraIRC -> http://www.hydrairc.com <- \o/)
841: [17:28:51] * derek-b has joined #silverstripe
842: [17:29:04] * Shrike_Finland has joined #silverstripe
843: [17:32:06] * muskie9 quit (Remote host closed the connection)
844: [17:32:42] * muskie9 has joined #silverstripe
845: [17:36:53] * muskie9 quit (Ping timeout: 246 seconds)
846: [17:39:29] * Shrike_Finland quit (Quit: Leaving.)
847: [17:45:37] <ryszard> Hi guys!
848: [17:46:35] <ryszard> I'm extending silverstripe/comments - adding FileField to comment form.
849: [17:47:03] <ryszard> I added FilePath collumn to db.
850: [17:47:59] <ryszard> But I dont really know how to get to the saved path...
851: [17:49:42] <ryszard> File gets saved into assets automatically - that's cool. But I can't find the path it gets saved to...
852: [17:50:09] <ryszard> From inside the controller I mean
853: [17:54:42] <catcher> ryszard, if you have access to the file object, you can use $file->getFullPath() or $file->getRelativePath() depending on your needs
854: [17:55:11] <ryszard> Yeah, that is what I need.
855: [17:55:27] <catcher> ryszard, you shouldn't need to create your own FilePath field.
856: [17:55:36] <catcher> no sense storing it twice.
857: [17:55:49] <ryszard> So you mean
858: [17:56:03] <ryszard> that it gets saved to DB somewhere?
859: [17:56:12] <ryszard> and i only need an ID?
860: [17:57:00] <ryszard> What I really need is a way to log data from inside a controller for me to view.
861: [17:57:02] <catcher> SS stores a DB record of the file (hence having those methods available)
862: [17:57:37] <catcher> So you can simply return the results of $file->getXPath() instead of storing it again and returning that instead.
863: [18:00:14] <ryszard> I'm afraid i don't know how to do it.
864: [18:00:36] <ryszard> I guess I have to create has_one relationship.
865: [18:00:45] <ryszard> between comment and file
866: [18:03:24] <catcher> If each comment has a file, then you do want a has_one relationship.
867: [18:07:02] <ryszard> And if only some have?
868: [18:10:29] * ryan____ has joined #silverstripe
869: [18:10:47] <ryan____> hey, is anybody here familair with the SS image cahcing on resampled images?
870: [18:10:49] <catcher> ryszard, I don't understand the question - you can't add columns to just some records
871: [18:11:13] <catcher> ryan____, depends on the question :)
872: [18:11:32] <ryan____> well i'm doing some optimisation fo a site, makign everything use partial caching - working well
873: [18:11:38] <ryan____> but a big section of our site is AJAX
874: [18:11:42] <ryan____> with 9000 objects
875: [18:11:55] * joelpittet has joined #silverstripe
876: [18:11:59] <ryan____> each has an image, and the image mehtod is the biggest hit on load time
877: [18:12:08] <ryan____> im trying to find out if it's resampling the images EVERY time
878: [18:12:32] <ryan____> it only made 7 calls to paddedImage and it took 1.5s!
879: [18:12:41] <catcher> ryan____, it should test to see if the resampled image already exists before doing it again.
880: [18:12:54] <ryan____> can you point me to where it checks first?
881: [18:12:56] <catcher> ryan____, are you in live mode?
882: [18:12:58] <ryan____> i cant find it anywhere :(
883: [18:13:16] <ryan____> jesus good point....im in dev mode
884: [18:13:29] <ryan____> if that's the reason, im going home now and giving up
885: [18:14:08] <ryan____> OK i can't test that...as if i put it in live mode i can't use debug_profile=1 .... can i?
886: [18:14:39] <catcher> ryan____, I think so, if you're logged in
887: [18:14:41] <ryszard> catcher: What I mean is: is has_one a better idea than storing FileID
888: [18:15:00] <catcher> ryan____, has_one is almost equivalent to storing FileID
889: [18:15:01] <ryan____> ooooooh i'll tyr logging in
890: [18:15:03] <catcher> ryszard, rather, sorry
891: [18:15:25] <ryan____> ah i am logged in - no joy
892: [18:16:04] <catcher> ryan____, if it speeds up significantly, that's your problem :)
893: [18:16:18] <catcher> ryszard, by storing your own FileID, you're basically bypassing the ORM which exists to make your life easier.
894: [18:16:34] <ryszard> catcher: o, ok
895: [18:17:13] <ryszard> :) so i'll make it with has_one and see how it goes from there :)
896: [18:18:24] <catcher> ryan____, otherwise, here's your guy: https://github.com/silverstripe/silverstripe-framework/blob/3.1/model/Image.php#L415
897: [18:18:42] * muskie9 has joined #silverstripe
898: [18:19:50] <ryszard> catcher: Thanks - I can't believe how easy it was!
899: [18:21:34] <catcher> ryszard, np!
900: [18:23:26] <ryan____> catcher, that's what I was lookign at
901: [18:23:38] <ryan____> but in SS3.0 it doesn't seem to check for the file firts?!
902: [18:23:38] * Colin[pi] quit (Read error: Connection reset by peer)
903: [18:25:24] <ryan____> sorry ignore me, it definitely does
904: [18:26:33] <catcher> ryan____, most (all?) caching is disabled in dev mode, that didn't help?
905: [18:32:34] <Alfirin> Is there a way to add the same user form on multiple pages? So that I don't have to set it up individually
906: [18:36:31] <ryszard> catcher: so FileField upload works - but how can I validate/resize file on the fly
907: [18:36:35] <ryszard> ?
908: [18:37:07] <catcher> ryszard, SS has an image resizer that will handle that for you, just call one of the resize functions in the template.
909: [18:37:58] <ryszard> catcher, yeah - but the form is avaliable to all the users from the front page - I want to restrict filesize...
910: [18:38:32] <ryszard> to, lets say 2MB
911: [18:38:50] * Motoservo quit (Ping timeout: 246 seconds)
912: [18:40:08] <catcher> ryszard, that should occur on the upload field's validator: http://api.silverstripe.org/3.1/class-Upload_Validator.html#_setAllowedMaxFileSize
913: [18:43:08] <ryszard> does it work with FileField?
914: [18:45:03] <ryszard> O it does, my bad.
915: [18:47:22] <catcher> $field->getValidator->setAllowedMaxFileSize(2097152);
916: [18:48:03] <ryszard> catcher: That answers question I was about to ask. :)
917: [18:50:24] * gelignite has joined #silverstripe
918: [18:53:05] <Alfirin> http://www.clickheredigital.co.uk/blog/how-to-include-a-silverstripe-form-on-any-every-page/ I tried this but to no avail
919: [18:53:56] <catcher> Alfirin, what version of SS are you on?
920: [18:54:29] <Alfirin> 3.1.2, to the extent of my knowledge
921: [18:55:04] <catcher> Alfirin, you'll need to update that example, that's all SS2 code.
922: [18:55:29] <Alfirin> That's why I asked you guys first
923: [18:56:12] <catcher> Alfirin, the concepts should still apply, you'll just have to use SS3 code where needed.
924: [18:56:53] * ryan____ quit (Ping timeout: 245 seconds)
925: [19:11:04] <Alfirin> I wish I got even an error message
926: [19:12:01] <ryszard> catcher: another thing - can I add/remove form fields based upon page type I'm on?
927: [19:12:03] <catcher> Alfirin, you can view network responses in browser debug tools
928: [19:12:59] <simon_w> Whoa, busy in here in the morning for once
929: [19:19:46] <catcher> ryszard, Controller::curr() will give you the current controller
930: [19:23:10] <ryszard> catcher: thanks, that did the job!
931: [19:23:35] <catcher> ryszard, np!
932: [19:23:38] <ryszard> catcher, thank you for your help - gotta run, have a great day :)
933: [19:23:46] <catcher> anytime, you too
934: [19:23:49] * ryszard quit (Quit: Wychodzi)
935: [19:27:12] * Motoservo has joined #silverstripe
936: [19:31:12] * zippy____ has joined #silverstripe
937: [19:32:55] * CamelCase quit (Ping timeout: 264 seconds)
938: [19:32:57] * Shrike_Finland has joined #silverstripe
939: [19:33:57] * Stomach[Ache] has joined #silverstripe
940: [19:34:54] <zippy____> morning
941: [19:34:59] <Stomach[Ache]> how do
942: [19:35:10] <zippy____> heh! nice nick
943: [19:35:46] * Stomach[Ache] is now known as Stomach
944: [19:35:55] <Stomach> ah my away one :P
945: [19:41:02] <Ryan-Toast> Morning.
946: [19:44:20] * joelpittet quit ()
947: [19:45:07] * an_Eskimo has joined #silverstripe
948: [19:45:47] <zippy____> Ryan-Toast: know of a theme that's good for text and code?
949: [19:45:52] <zippy____> Ryan-Toast: for a blog
950: [19:53:06] * Ryan-Toast quit (Quit: Ryan-Toast)
951: [19:53:38] <Alfirin> I can't see what I'm missing here
952: [19:55:05] <zippy____> Alfirin: I can't see what your seeing
953: [20:01:32] <Alfirin> I'm trying to upgrade the userforms part from this http://www.clickheredigital.co.uk/blog/how-to-include-a-silverstripe-form-on-any-every-page/ to 3.1.2, and I've changed all things mentioned in the 3.0 update log, but it's not working
954: [20:01:37] <Alfirin> at least it stopped crashing
955: [20:01:42] * derek-b_ has joined #silverstripe
956: [20:05:00] <zippy____> whats not working about it? where is your current code, can you paste it in a paste bin?
957: [20:06:53] * derek-b quit (Write error: Broken pipe)
958: [20:07:13] * Ryan-Toast has joined #silverstripe
959: [20:07:30] <Ryan-Toast> Sorry, someone asked me something before I restarted my comp.
960: [20:07:39] <zippy____> yes
961: [20:07:43] * micmania1 has joined #silverstripe
962: [20:08:00] * Stomach quit (Excess Flood)
963: [20:08:34] <Ryan-Toast> zippy____: Was it you, zup?
964: [20:08:39] <Ryan-Toast> Zip**
965: [20:08:45] <zippy____> Ryan-Toast: know of a theme that's good for text and code? for a blog
966: [20:09:03] <Ryan-Toast> For ss?
967: [20:09:12] <zippy____> anything
968: [20:09:12] <Ryan-Toast> rock3tm4n
969: [20:09:15] * Stomach[Ache] has joined #silverstripe
970: [20:09:20] * Stomach[Ache] is now known as Stomach
971: [20:09:42] <Ryan-Toast> zippy____: Minimal, complex?
972: [20:10:09] <zippy____> good for text and code, more minimal than complex, but throw out some options
973: [20:11:37] * UndefinedOffset quit (Quit: Leaving.)
974: [20:11:50] <Alfirin> zippy____ this is what I've stitched together so fat zippy____
975: [20:11:50] <Ryan-Toast> Well code can be added to any theme pretty easily, with something like prettify.
976: [20:12:00] <Alfirin> http://pastebin.com/SDtrq9fj
977: [20:14:43] <Ryan-Toast> Zippy___: Variation of something like this: http://themes.okaythemes.com/fixed/
978: [20:19:20] <zippy____> Ryan-Toast: Nice thanks, simon_w was the one asking last night, I told him I had no clue but to ask you :)
979: [20:19:52] <Ryan-Toast> zippy____: Just jump on http://themeforest.net/ and find something you like, there are heeeaps
980: [20:20:34] <zippy____> <% include BoxedListing Boxs=Results %> -- for some reason when I try and loop Boxs in my include it's empty, but if I loop Results before the include it works……! it's like it's not passing the Results to Boxs
981: [20:20:37] <zippy____> arg
982: [20:21:28] <simon_w> zippy____, $Results
983: [20:21:45] <zippy____> simon_w: Then it complains DataList has no method forTemplate
984: [20:21:54] <zippy____> ss 3.0.3
985: [20:21:58] <simon_w> zippy____, upgrade
986: [20:22:08] <zippy____> can't and it's doing my head in!!
987: [20:22:16] <simon_w> Parsing arguments did weird things in 3.0
988: [20:22:20] <simon_w> *Passing
989: [20:22:39] <zippy____> it's causing me to rage, like, this should work, and it's not!!
990: [20:24:34] <simon_w> zippy____, Ryan-Toast, I ended up with http://coding.simon.geek.nz/
991: [20:24:49] <simon_w> Need to add in syntax highlighting, but that's just a JS lib
992: [20:25:08] <Ryan-Toast> simon_w: Nice and clean, you just ned to align your logo/text with the body text
993: [20:25:21] <simon_w> Ryan-Toast, effort :p
994: [20:25:29] <Ryan-Toast> Mayber add a little more space between elements.
995: [20:26:15] <zippy____> Alfirin: Since you just want one, when you do your UserForm::get make sure to do get()->first(); also you wouldn't loop it, you can just use with $ShowForm
996: [20:26:56] <zippy____> simon_w: wordpress eh!
997: [20:27:05] * ryszard has joined #silverstripe
998: [20:27:14] <ryszard> Hi guys!
999: [20:27:46] <simon_w> Ryan-Toast, update my CSS for me and I'll paste it into the really bad idea of the editor in the admin interface!
1000: [20:27:52] <ryszard> Most curious thing happened.
1001: [20:28:50] <Alfirin> zippy____ thanks
1002: [20:29:10] <ryszard> I added http://paste2.org/WZyKvDMn to my CommentController extension.
1003: [20:29:12] <Ryan-Toast> simon_w: Make it like this: http://i.imgur.com/RIiX2g8.png
1004: [20:29:20] <Ryan-Toast> Or something to that effect.
1005: [20:30:06] <ryszard> It works with if statement commented - but doesn't upload images with it.
1006: [20:30:20] <Ryan-Toast> simon_w: Also, install this: https://wordpress.org/plugins/better-wp-security/
1007: [20:31:29] <an_Eskimo> Is there an easy way to add uploaded files (in a custom upload field) to an email with ->attachFile() ??
1008: [20:33:09] * Shrike_Finland quit (Quit: Leaving.)
1009: [20:34:03] * Shrike_Finland has joined #silverstripe
1010: [20:40:47] * violet- has joined #silverstripe
1011: [20:41:55] * violetina quit (Ping timeout: 264 seconds)
1012: [20:42:02] * Shrike_Finland quit (Quit: Leaving.)
1013: [20:45:54] * derek-b_ quit (Remote host closed the connection)
1014: [20:45:55] <simon_w> Ryan-Toast, how can I get it to realise I'm running nginix?
1015: [20:45:59] <simon_w> Only picks up HHVM
1016: [20:49:05] * wmk quit (Quit: nice to meet you ;))
1017: [21:02:08] <Ryan-Toast> simon_w: Get what to pick it up?
1018: [21:02:25] <simon_w> Ryan-Toast, that module
1019: [21:02:37] <simon_w> Isn't giving me things to stick in my config, cause it doesn't know it's nginix
1020: [21:03:51] <Ryan-Toast> "The first page or "dashboard" of the plugin's settings in your admin area will give you a cut and paste script to copy and paste into your nginx.conf file that is located in the root of your WP site (not the one in your /etc/nginx folder). "
1021: [21:04:19] <simon_w> "Server Type: HPHP"
1022: [21:04:29] <simon_w> It doesn't know I'm running nginx
1023: [21:04:41] <Ryan-Toast> Shrug, I haven't used WP for a long time now.
1024: [21:04:53] <Ryan-Toast> And I've always used Apache
1025: [21:07:02] * catcher quit (Quit: Leaving)
1026: [21:12:31] <terryapodaca> does anyone know of or have a link to a comprehensive list of additions to tinymce?
1027: [21:12:46] <terryapodaca> I use to have some saved to a text file but I got a new machine and can't find it
1028: [21:14:05] * ryszard_ has joined #silverstripe
1029: [21:15:59] * ryszard quit (Ping timeout: 240 seconds)
1030: [21:16:10] * ryszard_ quit (Client Quit)
1031: [21:16:30] * ryszard_ has joined #silverstripe
1032: [21:16:55] * ryszard_ quit (Client Quit)
1033: [21:17:17] * ryszard has joined #silverstripe
1034: [21:19:36] <ryszard> Does anybody have an idea why checking Controller::curr() in an if statement breaks file upload?
1035: [21:19:46] <ryszard> http://paste2.org/5JGc50b3
1036: [21:20:21] <ryszard> I ve got it here with if commented out - I use it inside Comment Controller extension.
1037: [21:24:36] * danfo has joined #silverstripe
1038: [21:24:43] <danfo> hello beautiful people
1039: [21:25:11] <zippy____> ryszard: maybe Controller::curr()->is_a('ProjectHolder_Controller') isn't what your expecting… have you looked at Controller::curr()->ClassName to see what it is?
1040: [21:25:28] <UncleCheese> is_a()?
1041: [21:25:33] <UncleCheese> is that a valid method call?
1042: [21:25:37] <simon_w> Yes
1043: [21:25:59] <danfo> quick question from a million years ago (aka 2.4) - is there a simple reason a theme won't be loading? I'm just getting "Generated with the default ContentController.ss template"
1044: [21:26:02] <Stomach> how can I find out which of my config files is breaking the control chain: Invalid argument supplied for foreach() in C:\wamp\www\labonic\framework\core\manifest\ConfigManifest.php on line 655
1045: [21:26:02] <Stomach> :S
1046: [21:26:17] <UncleCheese> haha
1047: [21:26:22] <UncleCheese> poor you
1048: [21:26:32] <danfo> :(
1049: [21:26:42] <UncleCheese> i've been dealing with crap like that all week
1050: [21:26:56] <UncleCheese> danfo: your page type has ClassName == null or == 'SiteTree' in the DB
1051: [21:26:57] <ryszard> zippy____: it is exactly what it is supposed to be: returns TRUE or FALSE depending on a site type
1052: [21:27:26] <Stomach> UncleCheese - yeah I am going to have a smoke, ive been trying to find it for half an hour
1053: [21:27:28] <danfo> page type - which table... Pages? I think I checked that, found that issue via google
1054: [21:27:32] <Stomach> logging doesnt help at all :\
1055: [21:27:48] <UncleCheese> yeah, totally, man
1056: [21:27:52] <UncleCheese> it's brutal
1057: [21:27:54] * Azure quit (Quit: My MBP went to sleep.)
1058: [21:28:03] <UncleCheese> it's a lot of error_log()
1059: [21:28:29] <Stomach> yeah and working out which fragment is where and why its being merged and doesn't exist
1060: [21:28:51] <Stomach> did error_log(print_r$this->yamlConfig, true))
1061: [21:28:57] <Stomach> 300,000 lines later...
1062: [21:29:00] <UncleCheese> danfo: your SiteTree and SiteTree_Live tables
1063: [21:29:23] * Alfirin quit (Ping timeout: 245 seconds)
1064: [21:29:27] <danfo> Ok thanks, ClassName in both those are all good
1065: [21:30:02] <zippy____> ryszard: eys it does, but have you checked the VALUE your self (dump it out) to see what it is
1066: [21:30:04] <Stomach> you have a SSViewer::set_theme('themename'); call in your config ?
1067: [21:30:07] <Stomach> danfo
1068: [21:30:26] <danfo> Stomach: yes
1069: [21:30:54] <ryszard> zippy____: yep, I did, it's very strange
1070: [21:31:18] <danfo> wait... why is themes/theme/templates/Layout folder empty..... please hold :)
1071: [21:31:33] <danfo> ohh if this is it... how many hours...
1072: [21:32:18] * antmas has joined #silverstripe
1073: [21:32:20] <ryszard> when I call $addFieField = Controller::curr()->is_a('ProjectHolder_Controller') and dont use it as condition, everthing works fine
1074: [21:32:27] <danfo> wtf. ALL FIXED
1075: [21:32:33] <danfo> sorry for wasting your time
1076: [21:32:35] <antmas> yoyoyoyoyoyo
1077: [21:32:52] <danfo> thanks anyway UncleCheese Stomach
1078: [21:33:18] * k_fish has joined #silverstripe
1079: [21:33:21] <danfo> now... might as well try upgrade this to SS3, ya
1080: [21:33:29] <danfo> http://www.levesys.com, welcome to 2014
1081: [21:34:31] <Ryan-Toast> dat flash
1082: [21:35:06] <ss23> be glad it's only flahso n home and not anywhere else! :O
1083: [21:36:30] <antmas> kinda fun seeing flash rear it's head every now and then
1084: [21:36:43] <zippy____> ryszard: if you do that, then var_dump($addFieField); die() is it true or false?
1085: [21:38:34] * babak quit (Quit: Connection closed for inactivity)
1086: [21:38:41] <ryszard> boolean true on my ProjectHolder and false on BlogEntry
1087: [21:40:04] <zippy____> ryszard: comment it, let the page load, uncomment it, and submit the form - and see what it is when you do the submit
1088: [21:42:14] <ryszard> zippy____: it's false, I see what you mean
1089: [21:42:42] <zippy____> ryszard: repeat to find class name
1090: [21:42:43] <ryszard> I had no idea that alterCommentForm hook gets called twice :)
1091: [21:42:57] <zippy____> ah yeap
1092: [21:43:03] <ryszard> zippy____: Thanks a bunch! :)
1093: [21:43:31] <ryszard> gotta go, thanks again zippy___ :D
1094: [21:43:50] * k_fish_ has joined #silverstripe
1095: [21:45:42] * k_fish quit (Ping timeout: 264 seconds)
1096: [21:46:03] * headtrip quit (Ping timeout: 245 seconds)
1097: [21:47:59] * ryszard quit (Ping timeout: 240 seconds)
1098: [21:48:43] <terryapodaca> quick question, when you create a new PageType (ex: HomePage) and you create a new page, how do you add the description on the new page selection page in the CMS?
1099: [21:52:46] * micmania2 has joined #silverstripe
1100: [21:52:49] * micmania1 quit (Ping timeout: 240 seconds)
1101: [21:52:55] * micmania2 is now known as micmania1
1102: [21:56:55] <zippy____> terryapodaca: private static $description = "I am an awesome page";
1103: [21:57:24] * mobiusnz has joined #silverstripe
1104: [21:57:29] <mobiusnz> morning all
1105: [21:57:51] <mobiusnz> is it possible to set the righttitle of optionset options?
1106: [21:59:52] <Ryan-Toast> How do you add a field to be searchable? i.e if I added a SKU field, how can I get the default search box to crawl them?
1107: [22:00:52] * ryszard has joined #silverstripe
1108: [22:01:26] <zippy____> Ryan-Toast: hehe - you mean with the SearchForm ?
1109: [22:01:32] <Ryan-Toast> zippy____: yes
1110: [22:04:01] <zippy____> yea na she's pretty hard coded in there
1111: [22:04:27] <zippy____> MATCH (Title, MenuTitle, Content, MetaTitle, MetaDescription, MetaKeywords)"
1112: [22:06:45] <zippy____> Ryan-Toast: simon had this to say about it last night. simon_w|air: If you're talking about the inbuilt one, a better PR is to nuke it from orbit
1113: [22:07:10] <zippy____> Ryan-Toast: check this out as a start perhaps, https://github.com/burnbright/silverstripe-pagesearch
1114: [22:07:11] <Ryan-Toast> lol
1115: [22:07:49] <zippy____> I havn't used that code, only found it with a search so don't know how good it is
1116: [22:08:07] <Ryan-Toast> zippy____: Cheers :)
1117: [22:16:03] * antmas quit (Ping timeout: 245 seconds)
1118: [22:20:05] * ryszard_ has joined #silverstripe
1119: [22:23:51] <zippy____> Is it possible to use the blog tags widget on another page (another page type to have tags) ?
1120: [22:24:15] <micmania1> zippy____: Can't see why not
1121: [22:25:46] <zippy____> hmmm humbug… the TagCloudWidget has a getTagsCollection which has $container = BlogTree::current(); - so thats not going to fly
1122: [22:26:42] <Ryan-Toast> zippy____: Make your own blog. With blackjack, and hookers!
1123: [22:27:02] <Ryan-Toast> Also tag cloud widgets are dumb.
1124: [22:27:13] <zippy____> the blog is fine, I just want to add tags to another page - I thought it would be fairly easy with code re-use and all
1125: [22:27:26] <zippy____> I am using it more like a tag category list instead of the odd sized cloud list
1126: [22:27:47] <Ryan-Toast> then just do a Tag::get( in your page?)
1127: [22:27:52] * jparks has joined #silverstripe
1128: [22:28:06] <Ryan-Toast> I'm assuming they're dataobjects.
1129: [22:28:22] <jparks> @UncleCheese - thank you again :)
1130: [22:28:32] * gelignite quit (Quit: http://bit.ly/nkczDT)
1131: [22:28:45] <UncleCheese> the code i sent you was bunk. this will work, but i'm not sure its' the most performant solution http://paste2.org/XwZyFWvE
1132: [22:29:03] * desperate has joined #silverstripe
1133: [22:29:05] <jparks> ah, OK. so that is taking into account the array
1134: [22:30:16] <desperate> how do I activate the sidebar?
1135: [22:31:27] <zippy____> desperate: wot?
1136: [22:32:05] <desperate> in my page.ss I see <% include SideBar %>
1137: [22:32:16] <zippy____> yea
1138: [22:32:17] <desperate> I presume this is right hand column menu?
1139: [22:32:24] <zippy____> so look in the includes folder for Sidebar.ss and see whats there
1140: [22:32:33] <Ryan-Toast> desperate: Have a loo in your templates/include folder
1141: [22:32:47] <Ryan-Toast> it will most likely appear if there are child menu items
1142: [22:33:06] <desperate> are ok so it is an automatic thing
1143: [22:34:08] <Ryan-Toast> Shru, depends on your theme
1144: [22:34:11] <Ryan-Toast> shrug**
1145: [22:43:41] * antmas has joined #silverstripe
1146: [22:46:13] <zippy____> heh
1147: [22:46:51] <zippy____> so on the blog module, if you have a tag call "boat" and another one called "boating shop" anything tagged with boating shop will show in the boat tag, since it's a %Tag% match
1148: [22:47:07] <zippy____> well… this is SS 3.0.x, maybe it's changed
1149: [22:47:14] <desperate> i'm using the simple template
1150: [22:47:47] <desperate> the content-container class is 3of4.... 75%
1151: [22:47:59] <desperate> but then the inner div is set as 1100px
1152: [22:48:26] <desperate> which just pushes the content-container to 1100px
1153: [22:48:34] <desperate> am I missing something?
1154: [22:50:10] <jparks> Hmm, still not working ...
1155: [22:51:59] * wracu has joined #silverstripe
1156: [22:54:24] <Ryan-Toast> anyone made a Link() function for a many_many relationship while rendering themany_many data object as a page?
1157: [22:57:29] * zippy____ quit (Ping timeout: 246 seconds)
1158: [22:58:31] * wracu quit (Quit: Page closed)
1159: [22:58:49] <antmas> anyone ever tried remote device debugging?
1160: [22:59:01] * wracu has joined #silverstripe
1161: [22:59:46] <wracu> it's simple to set a character limit for TextField in the CMS, but how can I achieve the same with TextareaField and HTMLEditorfield ?
1162: [23:00:24] <UncleCheese> text areas don't have maxlength attributes as part of their spec
1163: [23:00:39] <UncleCheese> it's not a silverstripe thing.. it's an html thing
1164: [23:01:44] <wracu> ah. so... don't bother, or implement something myself
1165: [23:02:36] * Colin[pi] has joined #silverstripe
1166: [23:03:10] <Colin[pi]> moin moin
1167: [23:04:00] <antmas> Colin[pi]: le moin
1168: [23:05:33] * k_fish_ quit (Read error: Connection reset by peer)
1169: [23:05:49] * k_fish_ has joined #silverstripe
1170: [23:08:55] <Colin[pi]> wow, full engine and source for $19/month https://www.unrealengine.com/
1171: [23:08:56] * Motoservo quit (Quit: Motoservo)
1172: [23:09:04] <Colin[pi]> not that I'm a game dev but that seems... impressive
1173: [23:12:16] * babak has joined #silverstripe
1174: [23:13:08] <antmas> Colin[pi]: yeah, it's pretty awesome
1175: [23:13:29] <antmas> I'd get it just to play around with the tech demo in real time :P
1176: [23:13:32] <Colin[pi]> the demo videos are freaking amazing
1177: [23:14:06] <Colin[pi]> I've always been a fan of Tim Sweeney's stuff, he's like your stereotypical uber UBER smart dude with a touch of autism
1178: [23:14:06] <antmas> Colin[pi]: especially with oculus rift
1179: [23:14:37] <Colin[pi]> also I tried Remember Me last night... fucking love it
1180: [23:15:04] <Colin[pi]> I can see the combat would get repetitive, but the game world itself, 2084... very plausible
1181: [23:16:22] * Motoservo has joined #silverstripe
1182: [23:17:23] <antmas> aw man
1183: [23:17:29] <antmas> Edge Inspect only uses Chrome
1184: [23:17:35] <antmas> seems like a... waste
1185: [23:19:18] <Ryan-Toast> Colin[pi]: titanfall :P
1186: [23:19:31] <Colin[pi]> yeah but MP only :\
1187: [23:19:51] <Ryan-Toast> Yarp
1188: [23:23:22] * OxFF1 has joined #silverstripe
1189: [23:23:23] <Ryan-Toast> hnnnng http://dgise.com/post/80078089373/oculus-has-revealed-a-new-headset-rift-dev-kit-2
1190: [23:25:34] * OxFF1 has left #silverstripe
1191: [23:26:05] <terryapodaca> anyone good at making a <nav> that has an unordered list with images as the links...making the images responsive?
1192: [23:26:35] <antmas> terryapodaca: Ryan-Toast is like our IRC frontend guru
1193: [23:27:14] <Ryan-Toast> terryapodaca: can you elaborate a little more?
1194: [23:27:19] <terryapodaca> I'm trying to make a site responsive while I rebuild it and am using http://www.studiopress.com/responsive/
1195: [23:27:30] <terryapodaca> and if you enter http://ph.terryapodaca.com/
1196: [23:27:36] <terryapodaca> you can see I have a decent start
1197: [23:27:58] <terryapodaca> i just don't know how to make the images inside the menu list items responsive
1198: [23:28:37] <terryapodaca> trying to use the correct media queries
1199: [23:28:57] <Ryan-Toast> You'll have to set a max-width on the li, then have max-width: 100%;height: auto; on the images.
1200: [23:29:23] <Ryan-Toast> Personally I would embed the font
1201: [23:29:30] <Ryan-Toast> and not use images.
1202: [23:29:35] <antmas> terryapodaca: does that studiopress actually support media queries? doesn't seem to :P
1203: [23:29:40] <Colin[pi]> terryapodaca: you're not using a responsive boilerplate?
1204: [23:30:01] <terryapodaca> Ryan-Toast: that's her own hand writing, not a font :(
1205: [23:30:03] <Ryan-Toast> antmas: that link is displaying the different screen sizes.
1206: [23:30:35] <Ryan-Toast> terryapodaca: Oh :P yeah, just set a max-width on the lis.
1207: [23:31:15] <antmas> Ryan-Toast: oh so it is, I just had a non-reponsive (mobile themed) site loaded on it :P
1208: [23:31:23] <Ryan-Toast> antmas: nooooob
1209: [23:31:46] <antmas> Ryan-Toast: pffft, emulators
1210: [23:31:48] <terryapodaca> Colin[pi]: This is a conversion from a very old SS2.3 to 3.1 so I am keeping the code as simple as possible and don't want the overhead of a boilerplate
1211: [23:32:12] <Colin[pi]> terryapodaca: why not something lightweight then? like Skeleton which I use? it's like as simple as can be
1212: [23:32:17] <Colin[pi]> just a few CSS files
1213: [23:32:56] <antmas> terryapodaca: a framework for the responsiveness will help a lot
1214: [23:32:59] * jordanmk has joined #silverstripe
1215: [23:33:02] <Colin[pi]> http://www.getskeleton.com/
1216: [23:33:15] <Colin[pi]> it's getting a bit old now, but I still like it for it's simplicity
1217: [23:33:23] <jordanmk> oo, what's this about Skeleton? that's what I use too :D
1218: [23:33:27] <Colin[pi]> none of this over the top BS like bootstrap
1219: [23:33:33] * Colin[pi] high fives jordanmk
1220: [23:33:46] <Ryan-Toast> terryapodaca: I wouldn't recommend scaling them down on mobile though, it will be very hard to click the links. I would use a select drop down, that looks like a button. See http://webdough.co.nz/~boilerpl/
1221: [23:34:32] <jordanmk> does anyone know if it's possible to output a form with no actions (no submit button)?
1222: [23:34:49] <Ryan-Toast> Colin[pi]: learn sasssss
1223: [23:35:14] <Colin[pi]> Ryan-Toast: NU UH
1224: [23:35:18] <Colin[pi]> you can't make me
1225: [23:35:19] <Colin[pi]> ;D
1226: [23:35:20] <Ryan-Toast> UH HUH
1227: [23:35:30] <Colin[pi]> I will one day
1228: [23:35:32] <Colin[pi]> I swear
1229: [23:35:43] <jordanmk> i need to output a single CountryDropDownField, and then also 2 separate forms (ones that will have actions), with the value of the CountryDropDownField determining which form is shown and which is hidden (using JavaScript)
1230: [23:35:45] <Ryan-Toast> Just use it like css, and use the variables then.
1231: [23:35:55] <Ryan-Toast> if you don't want to learn the other stuff.
1232: [23:36:22] <terryapodaca> I'd love to make a dropdown and use text....buuuuuuut...I'm not that great with this kind of thing. Is there a tutorial some place that shows you how to do that with media queries?
1233: [23:37:12] <Ryan-Toast> look under "#select-navigation" https://github.com/Rhym/ss_boilerplate/blob/master/themes/boilerplate/sass/_layout.scss
1234: [23:37:18] <Colin[pi]> terryapodaca: this is where I started with responsive: http://webdesign.tutsplus.com/tutorials/building-a-responsive-layout-with-skeleton-starting-out--webdesign-6318
1235: [23:38:12] <jordanmk> wow Colin, that's the exact same tutorial that i started with responsive too
1236: [23:38:16] <jordanmk> it's a good one
1237: [23:38:50] <Colin[pi]> it's extremely good, and cant beat the price
1238: [23:39:02] <Colin[pi]> wow looks like we are treading the same path jordanmk lol
1239: [23:39:24] <jordanmk> yep haha
1240: [23:39:33] <jordanmk> except i also learned Sass at the same time, seems like you're a bit behind there :P
1241: [23:39:38] <Colin[pi]> I'm old
1242: [23:39:41] <Colin[pi]> that's why
1243: [23:39:43] <Colin[pi]> :D
1244: [23:39:57] <Ryan-Toast> jordanmk > Colin[pi]
1245: [23:40:03] <jordanmk> ^
1246: [23:40:06] <Ryan-Toast> :P
1247: [23:40:16] <jordanmk> so anyone got any ideas on my question above?
1248: [23:40:20] <antmas> antmas > all
1249: [23:40:47] <Colin[pi]> sif
1250: [23:44:00] * UncleCheese_ has joined #silverstripe
1251: [23:45:48] <Ryan-Toast> I swear /r/tall flirts more than /r/gonewild
1252: [23:46:59] <Colin[pi]> Ryan-Toast: haha I've had this problem and I'm only 178cm: http://i.imgur.com/yuY4dFd.jpg
1253: [23:47:15] <Ryan-Toast> Colin[pi]: haha
1254: [23:47:33] <Ryan-Toast> I was at a house the other day and it had a waterfall shower head on the ceiling.
1255: [23:47:41] <Ryan-Toast> I wanted to have a shower right there and then.
1256: [23:47:59] <Colin[pi]> so I take it you're of the taller variety?
1257: [23:48:09] <Colin[pi]> or you just like browsing /r/tall?
1258: [23:48:14] <Ryan-Toast> Yeah, 6'5
1259: [23:48:19] <Colin[pi]> holy fuckballs
1260: [23:48:38] <Colin[pi]> you must bump your head on things a lot
1261: [23:49:00] <Ryan-Toast> Not really, I'm 2cm under the door minimum height, so I'm good.
1262: [23:49:06] <Colin[pi]> heh
1263: [23:49:09] <Ryan-Toast> That would be annoying if I was a little taller
1264: [23:49:33] <Ryan-Toast> I just have to try harder when flipping is all :P
1265: [23:50:03] <ss23> Guys, there is a site where if you go to "certainurl.co.nz" it presents a certain page from "mainsite.co.nz"
1266: [23:50:06] <ss23> I don't know how it works
1267: [23:50:15] <Ryan-Toast> ss23: iframe?
1268: [23:50:22] <ss23> No, they're hitting the same codebase
1269: [23:50:32] <ss23> like, certainurl.co.nz is definitly the 100% same codebase as mainsite.co.nz
1270: [23:50:41] <ss23> same DNS/IP, same server, same vhost/codebase
1271: [23:50:46] <ss23> There must be something in the code
1272: [23:50:48] <ss23> A module or something
1273: [23:50:50] <ss23> But I don't know what
1274: [23:50:59] <Ryan-Toast> htaccess shizz?
1275: [23:51:05] <ss23> Checked, nope
1276: [23:51:08] <ss23> not server config either
1277: [23:51:14] <Ryan-Toast> Weird.
1278: [23:51:19] <ss23> It's intentional btw
1279: [23:51:23] <ss23> I just don't know who built the feature
1280: [23:51:47] <Ryan-Toast> Oh, right haha.
1281: [23:51:52] <Ryan-Toast> Sounds cool though.
1282: [23:52:11] <ss23> It's definitly in the database
1283: [23:52:12] <ss23> Bah
1284: [23:52:22] <ss23> Oh
1285: [23:52:25] <ss23> A module called "homepagefordomain"
1286: [23:52:27] <ss23> This sounds like it!
1287: [23:52:49] <ss23> https://github.com/silverstripe-labs/silverstripe-homepagefordomain/
1288: [23:52:54] <Ryan-Toast> huzzah
1289: [23:52:55] <ss23> oh look at that, I was the one who made it work with 3.1
1290: [23:52:55] <ss23> weird
1291: [23:52:56] <ss23> :O
1292: [23:53:01] <Ryan-Toast> lol!
1293: [23:53:07] <Ryan-Toast> Bad memory, son.
1294: [23:53:15] <ss23> It was 8 months ago!
1295: [23:54:01] <Ryan-Toast> Colin[pi]: https://www.youtube.com/watch?v=GfnRdq_YuVE
1296: [23:54:05] <Ryan-Toast> Boom.
1297: [23:54:44] <Colin[pi]> if that was me, the next video would be a thumbs up from a hospital beds
1298: [23:54:46] <Colin[pi]> *bed
1299: [23:54:51] <Colin[pi]> but well done ;D
1300: [23:54:53] <Ryan-Toast> that was me the week after :P
1301: [23:55:01] <Colin[pi]> lol
1302: [23:55:01] <ss23> A load of 16 isn't normal
1303: [23:55:04] <Ryan-Toast> Hurt myself trying for a double.
1304: [23:55:07] <ss23> guis
1305: [23:55:07] <ss23> pls
1306: [23:55:11] <ss23> top - 12:55:08 up 9 days, 2:33, 1 user, load average: 18.38, 6.99, 2.89
1307: [23:55:13] <ss23> guys
1308: [23:55:14] <ss23> guys help
1309: [23:55:17] <Colin[pi]> HALP
1310: [23:55:32] <Ryan-Toast> OH GOD, THERE AREN'T ENOUGH LIFE BOATS!
1311: [23:55:38] <ss23> restarted apache
1312: [23:56:06] <danfo> *bubbles*
1313: [23:56:13] <ss23> OH GOD WTF It'S NOT HELPING
1314: [23:56:17] <ss23> top - 12:56:14 up 9 days, 2:34, 1 user, load average: 19.24, 9.53, 4.05
1315: [23:56:19] <ss23> holy shit what is going on
1316: [23:56:31] <ss23> fml I'm listening to 1812 overture atm too
1317: [23:56:36] <ss23> ;_;
1318: [23:56:38] <ss23> THIS IS TOO INTENSE
1319: [23:56:41] <ss23> okay okay guys don't worry
1320: [23:56:43] <Colin[pi]> rofl
1321: [23:56:44] <ss23> it's coming down now
1322: [23:56:44] <ss23> 18
1323: [23:56:47] <ss23> phew
1324: [23:56:59] <Ryan-Toast> ss23: Me right now http://i.imgur.com/3M9vP.gif
1325: [23:57:14] <ss23> lol
1326: [23:57:20] <ss23> You know the song though, right?
1327: [23:57:27] <Colin[pi]> yes

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