#silverstripe IRC Log

IRC log for 31 July 2013

All timestamps are in UTC.

1: [00:02:09] <atmos> any ideas why images might be outputting to ResizedImage rather than resizedimages?
2: [00:03:20] <simon_w> atmos, huh?
3: [00:03:30] * DigNZ has joined #silverstripe
4: [00:03:30] * DigNZ quit (Remote host closed the connection)
5: [00:06:45] * DigNZ has joined #silverstripe
6: [00:08:22] <atmos> images uploaded path is appearing with /ResizedImages/... rather than lowercase and thereofor failing
7: [00:09:29] <timespoon> hey gang
8: [00:09:43] <timespoon> i want to set a custom option for a single tinymce instance
9: [00:09:56] <timespoon> can i just set it then create the HtmlEditorField instance, then set it back
10: [00:11:17] <guzzlefry> well, this is interesting: [User Error] Uncaught Exception: Object->__call(): the method 'handlerequest' does not exist on 'FindUsPage'
11: [00:11:32] <simon_w> guzzlefry, no controller
12: [00:11:49] <simon_w> timespoon, you can only do that if the field's in the frontend. It won't work in the CMS.
13: [00:12:07] <timespoon> ahh
14: [00:12:22] <guzzlefry> oh, /find-us is redirecting to /contact/find-us 0.o Probably did something silly in the CMS.
15: [00:12:23] <timespoon> well i need one tinymce on the cms not to add <p> everywhere, and all the rest to work normally
16: [00:12:49] <simon_w> guzzlefry, as in, no FindUsPage_Controller
17: [00:13:20] <simon_w> atmos, so you moved the database/assets from a case-insensitive filesystem to a case-sensitive one?
18: [00:14:06] * guzzlefry sighs
19: [00:14:14] <guzzlefry> I had FindUs_Controller. :P
20: [00:16:14] <Colin[pi]> does anyone know of an embeddable "document viewer" I could plug into the SS cms?
21: [00:16:35] <Colin[pi]> i.e. user clicks on .docx, .pdf - and it embeds/renders it in the CMS, without download
22: [00:16:58] * catcher quit (Quit: Leaving)
23: [00:17:28] <guzzlefry> Colin[pi]: Something like converting the docs to HTML?
24: [00:17:40] <Colin[pi]> like what google docs does
25: [00:17:53] <Colin[pi]> rather than downloading the file, renders it in the page
26: [00:17:55] * nickmolhoek quit (Ping timeout: 264 seconds)
27: [00:17:59] <guzzlefry> ah
28: [00:18:07] <guzzlefry> there might be some pdf2html binary you can use.
29: [00:18:31] * DigNZ quit (Ping timeout: 264 seconds)
30: [00:18:33] <Colin[pi]> I could actually use google docs, but the files need to be publicly accessible, and these files have sensitive data
31: [00:18:34] <guzzlefry> For a starting point anyway.
32: [00:18:41] * LoveDuckie has joined #silverstripe
33: [00:18:51] <Colin[pi]> perhaps I could set up some sort of auth layer
34: [00:20:25] <atmos> simon_w: Not my site, I doubt it - the images can be browsed to, but break in the template
35: [00:24:38] <ss23> simon_w: Lemme know if you want noms today
36: [00:26:35] <zippy__> I want noms
37: [00:26:54] <Colin[pi]> I can haz noms too?
38: [00:27:01] <Pyromanik> imma have Thai
39: [00:27:07] <Pyromanik> huuuge feed
40: [00:27:10] <Colin[pi]> I had laksa yesty
41: [00:27:18] * joelpittet quit (Remote host closed the connection)
42: [00:27:19] <Pyromanik> so I can be thai-rd in the afternoon
43: [00:27:33] <Colin[pi]> boom tish
44: [00:27:37] <Pyromanik> see me at 3, want'n a nap
45: [00:27:47] * will has joined #silverstripe
46: [00:27:51] <Pyromanik> free thai
47: [00:27:53] <Pyromanik> s'all good
48: [00:28:24] <simon_w> ss23, I suppose I want noms
49: [00:29:21] * DigNZ has joined #silverstripe
50: [00:29:21] * DigNZ quit (Remote host closed the connection)
51: [00:29:25] <ss23> simon_w: Same procedure as normal then ^.^
52: [00:29:26] * nickmolhoek has joined #silverstripe
53: [00:29:27] * nickmolhoek quit (Remote host closed the connection)
54: [00:29:43] <Colin[pi]> one does not suppose they want noms, they either want noms or not
55: [00:29:53] <ss23> lol
56: [00:29:57] <Colin[pi]> nom or not nom, there is no suppose
57: [00:30:08] <ss23> lol
58: [00:30:11] <will> hello. Is there a good resouce on saving has_many records to the db from the site (not admin area)
59: [00:30:41] <simon_w> Ooh, that gets even easier in 3.1
60: [00:30:54] <ss23> In Soviet Russia, platter stays still and HDD spins.
61: [00:30:59] <simon_w> ss23, 5 minutes
62: [00:31:14] <ss23> omg
63: [00:31:16] <ss23> I just started a good song
64: [00:31:17] <ss23> ;_;
65: [00:31:20] <ss23> fffff
66: [00:31:22] * ss23 dies
67: [00:31:32] <ss23> okay I have like 2 mins of song I can get into
68: [00:33:16] <guzzlefry> ss23: Which song?
69: [00:33:37] * ss23 now playing The Call of Ktulu - Metallica [S&M]
70: [00:33:53] * guzzlefry hasn't heard that. >_>
71: [00:34:00] * nickmolhoek has joined #silverstripe
72: [00:34:01] <ss23> It's good
73: [00:34:01] * nickmolhoek quit (Remote host closed the connection)
74: [00:34:04] <ss23> The entire album, really good
75: [00:34:04] <ss23> like
76: [00:34:10] <irogue> yeah
77: [00:34:13] <irogue> S&M is great
78: [00:34:15] <Pyromanik> willr_: I want to userform to something that isn't a UserDefinedForm (page).
79: [00:34:15] * nickmolhoek has joined #silverstripe
80: [00:34:19] <irogue> well
81: [00:34:21] <irogue> the album anyway
82: [00:34:29] <ss23> The two best albums I've heard, that I can think of, are Daft Punk's 2007 Alive, and S&M
83: [00:34:29] <guzzlefry> nice save :P
84: [00:34:33] <ss23> haha
85: [00:34:41] <ss23> anyway, bbl, going to eat with simon_w :D
86: [00:34:42] * ss23 skips off
87: [00:34:56] <willr_> Pyromanik, then jedatech has the patch for you! ha well he got it working as a decorator
88: [00:39:35] * DigNZ has joined #silverstripe
89: [00:39:36] * DigNZ quit (Remote host closed the connection)
90: [00:40:00] <Pyromanik> hmm
91: [00:40:05] <Pyromanik> sounds good
92: [00:40:17] <Pyromanik> I really should get around to merging all my updates with upstream
93: [00:43:28] * Pyromanik quit (Quit: Lost terminal)
94: [00:44:41] * Pyromanik has joined #silverstripe
95: [00:44:47] <Pyromanik> ffff screen stalled :<
96: [00:45:16] * atmos quit (Quit: Page closed)
97: [00:49:30] <will> looking in my database, votes (that belong to debates) don't have a debate_id - where is the relationship stored?
98: [00:50:55] <EasyCo> UncleCheese: Luv your better buttons module. Cheers, you saved me a lot of work!
99: [00:51:44] <Pyromanik> hmm
100: [00:52:07] <Pyromanik> will: if debate has_one vote?
101: [00:52:09] <Pyromanik> on the debate.
102: [00:52:37] <Pyromanik> if debate has_many votes, you forgot to take the necessary step of defining the reverse relation (that votes has_one debate)
103: [00:59:48] * DigNZ has joined #silverstripe
104: [00:59:49] * DigNZ quit (Remote host closed the connection)
105: [01:02:20] <will> Pyromanik: no, has_many
106: [01:03:53] <guzzlefry> What does the template variable $TItle.XML do as opposed to just $Title?
107: [01:05:15] <EasyCo> Escapes the text
108: [01:05:27] * UncleCheese quit (Quit: UncleCheese)
109: [01:06:13] <EasyCo> guzzlefry: From the docs: / transforms e.g. "<em>alert</em>" to "&lt;em&gt;alert&lt;/em&gt;"
110: [01:06:27] * Bollig|DesignCty has joined #silverstripe
111: [01:11:40] * DigNZ has joined #silverstripe
112: [01:11:41] * DigNZ quit (Remote host closed the connection)
113: [01:11:55] * DigNZ has joined #silverstripe
114: [01:12:32] * LoveDuckie quit (Ping timeout: 256 seconds)
115: [01:21:48] * spronk has left #silverstripe
116: [01:26:18] <ss23> There we are, listening to S&M properly now, no interuptions!
117: [01:27:30] <simon_w> That doesn't sound like something you should be doing at work :p
118: [01:30:53] * spronk has joined #silverstripe
119: [01:33:34] * ss23 quit (Ping timeout: 246 seconds)
120: [01:34:36] * ss23 has joined #silverstripe
121: [01:35:04] <guzzlefry> simon_w: Youv'e gone and embarassed ss23
122: [01:36:29] <ss23> :O
123: [01:36:35] <ss23> simon_w: BUT IT FEELS GOOD
124: [01:37:08] <guzzlefry> haha
125: [01:37:21] <ss23> OBEY YOUR MASTER.
126: [01:37:23] <ss23> MASTER
127: [01:37:27] <ss23> MASTER OF PUPPETS, PULLING THE STRINGS
128: [01:40:53] * EasyCo quit (Quit: EasyCo)
129: [01:41:24] * EasyCo has joined #silverstripe
130: [01:45:05] * ss23 quit (Ping timeout: 268 seconds)
131: [01:47:19] * pex quit (Quit: pex)
132: [01:55:19] * UncleCheese has joined #silverstripe
133: [01:55:29] <UncleCheese> EasyCo: yeah, thats's a good one. Still very much in development. Test it with versioned DataObjects if you can.
134: [01:56:18] <EasyCo> What do you mean by versioned databojects
135: [02:00:20] <UncleCheese> DataObjects that have versioning
136: [02:02:27] <EasyCo> UncleCheese: Haha, well thanks
137: [02:02:46] <EasyCo> I'm not sure if I ever user Versioned DOs
138: [02:03:10] <EasyCo> Cause it's first I hear from them.
139: [02:03:43] * lietzmk has joined #silverstripe
140: [02:04:50] <Colin[pi]> Pages are versioned DOs :)
141: [02:05:06] <UncleCheese> oh ok.. yeah, a lot of times you want your DOs to have versioning if they contain important data
142: [02:05:41] <UncleCheese> they're poorly supported by the CMS core, but there are a few modules you can chuck into your application that make it work little better
143: [02:05:49] <UncleCheese> betterbuttons is now Versioned aware.
144: [02:07:44] <EasyCo> Ahh gotcha. That's what I thought but I've just never been exposed to doing any data object versioning.
145: [02:10:35] <will> using the site search form as instructed in the turorial - all works great but if the form is blank the value is 'search' rather than the placeholder
146: [02:10:50] <will> is there a good place to override that (by good i mean really simple)
147: [02:13:40] * nickmolhoek quit (Ping timeout: 264 seconds)
148: [02:13:40] <will> ok, never mind. view source, copy , edit. don't think i need php to make html.
149: [02:15:28] * DigNZ quit (Ping timeout: 264 seconds)
150: [02:15:53] * nickmolhoek has joined #silverstripe
151: [02:15:55] * nickmolhoek quit (Remote host closed the connection)
152: [02:16:14] * nickmolhoek has joined #silverstripe
153: [02:16:26] * DigNZ has joined #silverstripe
154: [02:16:31] <timespoon> fuck this
155: [02:17:01] <timespoon> er w/w
156: [02:31:03] * will quit (Ping timeout: 250 seconds)
157: [02:31:15] <Peavers> if my web server is pointing at /var/www/ and I've got a project folder in there named abc which I access via example.com/abc what would the rewrite base be for abc? /abc?
158: [02:31:33] <guzzlefry> Peavers, I think so.
159: [02:32:43] <Peavers> yeah I thought so to
160: [02:32:54] <Peavers> but example.com/abc/dev/tasks gives s not found
161: [02:33:19] <Peavers> while example.com/abc/index.php/dev/tasks works fine...
162: [02:33:29] <Peavers> not using virtual hosts is killing me =(
163: [02:37:07] * UncleCheese quit (Read error: Connection reset by peer)
164: [02:37:56] * UncleCheese has joined #silverstripe
165: [02:39:42] <Peavers> UncleCheese should know....
166: [02:40:10] <Peavers> if he has flashing enabled... UncleCheese UncleCheese UncleCheese UncleCheese
167: [02:40:24] <UncleCheese> thanks, asshole
168: [02:40:31] <Peavers> love you too
169: [02:42:37] <guzzlefry> I'm trying to do this: https://gist.github.com/anonymous/67e4cb71010113c235d2
170: [02:42:48] <guzzlefry> Doesn't work though, cuts off at btn_
171: [02:44:09] * guzzlefry guesses he doesn't really need that entire gist.
172: [02:44:36] <guzzlefry> <img src="/themes/bigkids/images/btn_$Title.XML.png" /> <-- this :P Is there some way to concatenate values in the template?
173: [02:47:53] * mobiusnz has joined #silverstripe
174: [02:50:21] <guzzlefry> ah, {$Var}
175: [02:53:45] * spronk has left #silverstripe
176: [02:54:10] <Pyromanik> guzzlefry: is because it was looking for a png method on whatever XML returns (vanilla string iirc)
177: [02:54:16] <Pyromanik> which of course there isn't one
178: [02:54:20] <Pyromanik> so nothing is out put
179: [02:54:39] <guzzlefry> ah, that makes more sense.
180: [02:54:41] <guzzlefry> thanks
181: [02:56:28] <guzzlefry> <img src="/themes/bigkids/images/btn_{$Title.Lower}_sel.png" /> <-- Any idea why that doesn't work?
182: [02:56:35] <guzzlefry> Maybe I want ToLower..
183: [02:57:01] <guzzlefry> nope :P
184: [02:57:11] <mobiusnz> how do I add a column to the security page table?
185: [02:57:37] <guzzlefry> mobiusnz: What do you mean?
186: [02:57:51] <Pyromanik> feeling pretty snoozy right about now Colin[pi]
187: [02:58:14] <mobiusnz> guzzlefry: I want another column as well as First Name, Surname & Email
188: [02:58:17] <mobiusnz> I've extended Member
189: [02:58:20] * spronk has joined #silverstripe
190: [02:58:28] <guzzlefry> mobiusnz, updateCMSfields?
191: [02:58:42] <guzzlefry> In your extension...I think that's how it's done.
192: [02:58:50] <mobiusnz> guzzlefry: not the form, the table that lists all the members
193: [02:58:56] <guzzlefry> oh
194: [02:59:32] <guzzlefry> not sure on that
195: [03:03:15] <guzzlefry> oh, I'm dumb. LowerCase. :P And it looks like Lower is deprecated.
196: [03:07:18] * timespoon is now known as bjanr
197: [03:15:55] <Pyromanik> guzzlefry: you want whatever you have available on http://api.silverstripe.org/3.0/class-StringField.html
198: [03:16:06] <guzzlefry> yep
199: [03:16:20] <guzzlefry> Pyromanik, I was looking at 3.0, I'm on 3.1, so lower() is no longer available.
200: [03:16:27] <Pyromanik> $Title.Lower should work, provided Title is Varchar or Text
201: [03:16:34] <Pyromanik> guzzlefry: it's not?
202: [03:16:37] <Pyromanik> :<
203: [03:16:41] <guzzlefry> deprecated in 3.0
204: [03:16:51] <Pyromanik> wtf
205: [03:17:01] <guzzlefry> It's hard to find.
206: [03:17:03] <Pyromanik> oh
207: [03:17:04] <guzzlefry> Let me get the page. :P
208: [03:17:06] <Pyromanik> LowerCase
209: [03:17:12] <Pyromanik> http://api.silverstripe.org/3.1/class-StringField.html
210: [03:17:38] <guzzlefry> yeah, using that now.
211: [03:17:56] <Pyromanik> problem solved then :>
212: [03:18:07] <guzzlefry> Pyromanik, The docs only show it as deprecated when you view a subclass of it. http://api.silverstripe.org/3.0/class-Text.html Have to look at the inherited methods. :/
213: [03:21:50] <Colin[pi]> wow a car crashed into the store of one of my client's :\
214: [03:23:43] * simon_w denies all responsibility
215: [03:23:51] <Colin[pi]> http://the-riotact.com/whats-a-car-doing-there/110750
216: [03:26:22] * bjanr is now known as timespoon
217: [03:26:53] * jrthomer quit (Remote host closed the connection)
218: [03:27:20] * jrthomer has joined #silverstripe
219: [03:27:32] <Pyromanik> Colin[pi]: lol, your customer just got ramraided?
220: [03:29:20] <Pyromanik> lol 'not suspicious'
221: [03:29:42] <Colin[pi]> haha I don't know yet what the circumstances were
222: [03:29:55] <Colin[pi]> might have been a drunk driver since that area is pretty shit at night
223: [03:30:04] <Pyromanik> says in 'article' that police a not treating it as supicious
224: [03:30:07] <Pyromanik> ie, a ram raid
225: [03:30:08] <Colin[pi]> also.. it's a computer store... "RAM-raided" haha
226: [03:30:15] <Pyromanik> haha, yeh
227: [03:30:28] <Pyromanik> I'm just that good at puns that I don't even realise when I make them anymore
228: [03:30:55] <Colin[pi]> dunno he just contacted me to put up a message on their site that they're closed.. I'll ask him what happened when he's got it fixed
229: [03:30:59] <Pyromanik> MAGICAL TRACTORS
230: [03:33:03] <guzzlefry> hm, interesting.
231: [03:33:38] <guzzlefry> Does restoring from a database dump not keep the nav links in the same order?
232: [03:34:51] <Colin[pi]> shoulg be according to the Sort field
233: [03:36:26] <guzzlefry> well, something else isn't correct. /admin doesn't really..work. :P
234: [03:36:35] <Colin[pi]> uh oh :(
235: [03:41:13] <guzzlefry> ah
236: [03:41:19] <guzzlefry> does the login use the site's theme?
237: [03:41:49] <guzzlefry> I did a /dev/build and ?flush=all, and now it's doing it on the dev server. :P
238: [03:48:43] <Pyromanik> yeh, Security instantiates a page controller
239: [03:48:48] <Pyromanik> or content controller
240: [03:48:58] <Pyromanik> with page template, or soemthing like that
241: [03:49:58] <guzzlefry> ah
242: [03:50:36] <guzzlefry> Probably shouldn't have deleted Layout/Pagess ;)
243: [03:51:00] <Colin[pi]> lol
244: [03:51:11] <Colin[pi]> there's yer problem right thar
245: [03:52:25] * cloph_away has joined #silverstripe
246: [03:52:57] <guzzlefry> Action 'Security' isn't available on class Security.
247: [03:53:03] * cloph quit (Ping timeout: 245 seconds)
248: [03:53:14] <guzzlefry> Don't understand what's going on. :P
249: [03:54:55] * cloph_away has joined #silverstripe
250: [03:55:29] <simon_w> no <% base_tag %>
251: [03:56:29] <guzzlefry> ah, thanks
252: [03:56:37] <guzzlefry> this is what I get for trying to go from scratch. :P
253: [03:59:45] <Colin[pi]> ah silverstripe, I love it when you "just work" sometimes
254: [04:18:09] * gitgat has joined #silverstripe
255: [04:18:29] <gitgat> anyone here care to help with contenreview?
256: [04:18:35] <gitgat> contentreview*
257: [04:19:05] * SightUnseen has joined #silverstripe
258: [04:19:09] * SightUnseen has left #silverstripe
259: [04:19:58] <Pyromanik> is making tabs in tabs not a thing anymore/
260: [04:19:59] <Pyromanik> ?
261: [04:31:30] <spronk> ugh
262: [04:31:31] <spronk> fuck vagrant
263: [04:31:38] <spronk> and pyro, no
264: [04:32:15] * gitgat quit (Quit: Page closed)
265: [04:35:58] * howardgrigg quit (Remote host closed the connection)
266: [04:36:25] * howardgrigg has joined #silverstripe
267: [04:40:49] * howardgrigg quit (Ping timeout: 246 seconds)
268: [04:44:36] <guzzlefry> How do I add a nicer date format to a ModelAdmin interface?
269: [04:44:49] <guzzlefry> Jul 20, 2002 is going to confuse the client. :P
270: [04:46:33] <Pyromanik> spronk: what?
271: [04:46:47] * mirrors has joined #silverstripe
272: [04:46:49] <Pyromanik> guzzlefry: hit them with a stick.
273: [04:47:17] <guzzlefry> Not allowed to do that. :/
274: [04:47:21] <Pyromanik> it is probably the least ambiguious of all dates.
275: [04:47:35] <Pyromanik> guzzlefry: failing that, change the date setting on their Member object.
276: [04:47:37] <guzzlefry> there's a date picker that I can use too afaik.
277: [04:47:47] <Pyromanik> guzzlefry: enable it on the date field
278: [04:47:56] <Pyromanik> $dateField->setConfig('showcalendar', true)
279: [04:47:58] * guzzlefry wonders how to do that.
280: [04:48:13] <guzzlefry> Pyromanik, in the ModelAdmin subclass?
281: [04:48:15] <Pyromanik> $dateTimeField->getDateField()->setConfig('showcalendar', true)
282: [04:48:19] <Pyromanik> guzzlefry: what?
283: [04:48:19] <Pyromanik> no
284: [04:48:25] <Pyromanik> I don't even
285: [04:48:27] <Pyromanik> what are you doing?
286: [04:48:35] <Pyromanik> model admin is just a controller
287: [04:48:56] <guzzlefry> I have a news article object that extends DataObject.
288: [04:49:07] <guzzlefry> Then I wrote a ModelAdmin to manage those in the CMS.
289: [04:49:07] <Pyromanik> wherever the edit fields are made, do it there.
290: [04:49:15] <Pyromanik> most normally it's the Article object.
291: [04:49:23] <Pyromanik> ie, the model that is managed by modeladmin.
292: [04:49:30] <Pyromanik> since that's what loads.
293: [04:49:44] <mirrors> hey has anyone leveraged the tinymce pop for creating a link else where....i need an easy way to add an external or internal link but I dont what to have it in a HtmlEditorField
294: [04:49:56] <Pyromanik> modeladmin does not much more than give you a list of all the objects of that type, and display using their settings (ie, summaryfields)
295: [04:50:09] <guzzlefry> derp
296: [04:50:14] <guzzlefry> getCMSFields? :P
297: [04:50:20] <Pyromanik> yup.
298: [04:50:31] <guzzlefry> Getting lost in these docs. >_>
299: [04:50:37] <Pyromanik> mirrors: some kind of OptionField?
300: [04:52:05] <mirrors> i "think" this is exactly what i am after https://github.com/sheadawson/silverstripe-linkable
301: [04:52:24] <mirrors> i always find something as soon as I ask the question
302: [04:52:25] * lietzmk quit (Quit: Leaving)
303: [05:00:26] * DigNZ quit (Quit: DigNZ)
304: [05:00:44] * nickmolhoek quit (Quit: nickmolhoek)
305: [05:01:44] <Pyromanik> mirrors: better than after rolling your own
306: [05:02:03] <Pyromanik> also, nested tabs is still a thing, you just need at least two, or the first one doesn't show up :<
307: [05:02:08] * Pyromanik quit (Quit: leaving)
308: [05:04:18] * Peavers quit (Ping timeout: 256 seconds)
309: [05:04:40] * howardgrigg has joined #silverstripe
310: [05:07:55] * henkpoley has joined #silverstripe
311: [05:13:53] <guzzlefry> If i have $default_sort defined in the DataObject, so I need to specify sort order when using DataObject::get()?
312: [05:13:59] <guzzlefry> s/so/do
313: [05:16:09] <EasyCo> UncleCheese, I'd change the read me for your betterbuttons master branch to SS3.1+ instead of 3.0+ as private static properties don't play nice in 3.0
314: [05:16:30] <UncleCheese> there should be two branches, no?
315: [05:16:43] <UncleCheese> yeah, there's a 3.0 branch
316: [05:16:51] <EasyCo> Yah but I originally just clone the master cause I read it supported 3.0+
317: [05:16:57] <EasyCo> Then saw that it didn't
318: [05:16:57] <UncleCheese> oh right
319: [05:17:02] <EasyCo> Then checked and saw 3.0 :)
320: [05:17:07] <EasyCo> Pedantic I know
321: [05:17:13] <UncleCheese> i don't think branch information belongs in a read me anyway
322: [05:17:18] <EasyCo> Just sayin' is all.
323: [05:17:22] <UncleCheese> it should probably just be removed
324: [05:18:26] * henkpoley quit (Quit: henkpoley)
325: [05:19:02] * henkpoley has joined #silverstripe
326: [05:19:37] * DigNZ has joined #silverstripe
327: [05:19:59] * DigNZ quit (Client Quit)
328: [05:23:09] <guzzlefry> What's a good way to automatically switch newlines for <br> when entering text in the CMS? Or preferably before dumping to the template.
329: [05:24:53] * DigNZ has joined #silverstripe
330: [05:28:39] <guzzlefry> There's some mention of nl2br in the logs, but I don't see it. :/
331: [05:32:10] <simon_w|air> php.net/nl2br
332: [05:33:15] <guzzlefry> simon_w|air: But how would I use that in a template?
333: [05:34:04] * DesignerX has joined #silverstripe
334: [05:38:48] * willr_ quit (Quit: willr_)
335: [05:40:33] * henkpoley quit (Quit: henkpoley)
336: [05:40:39] <guzzlefry> ah, nevermind. Found something about extending TextFormatter.
337: [05:48:20] * UncleCheese quit (Quit: UncleCheese)
338: [05:54:18] * SightUnseen has joined #silverstripe
339: [06:10:37] * pippy_ has joined #silverstripe
340: [06:12:37] * joelpittet has joined #silverstripe
341: [06:13:21] * pippy quit (Ping timeout: 264 seconds)
342: [06:15:46] * willr_ has joined #silverstripe
343: [06:16:34] * DigNZ1 has joined #silverstripe
344: [06:16:35] * DigNZ1 quit (Remote host closed the connection)
345: [06:16:54] * DigNZ1 has joined #silverstripe
346: [06:17:55] * sam_ has joined #silverstripe
347: [06:18:17] <EasyCo> How the hell do you change the height of tinymce?
348: [06:18:17] <sam_> Hi
349: [06:18:27] <EasyCo> I set the height option. no go.
350: [06:18:37] <EasyCo> So I'm assuming it's taking from the textarea?
351: [06:19:34] <simon_w|air> You set the number of rows
352: [06:19:57] * SightUnseen has left #silverstripe
353: [06:20:19] <sam_> Hi I am facing problem in admin panel, the data is not getting saved
354: [06:20:21] <sam_> http://www.sspaste.com/paste/show/51f8abde9f1f3
355: [06:20:28] <sam_> please tell me what is wrong
356: [06:21:53] <EasyCo> simon_w|air: Of course it would be that easy! Didn't see the setRows() method.
357: [06:22:28] <EasyCo> Woahhh, a tree just came down on the house/office
358: [06:23:29] <sam_> Please help me....
359: [06:24:29] <EasyCo> What's not getting saved, anything?
360: [06:24:42] <guzzlefry> sam_: What's the error?
361: [06:24:54] <guzzlefry> or problem
362: [06:25:00] <guzzlefry> oh wait, you said that. :P
363: [06:25:31] <sam_> not getting saved.... the saving icon is rorating for indefinite period
364: [06:25:53] <EasyCo> For that data object only?
365: [06:26:12] <sam_> this is used with event_calender module
366: [06:26:14] <EasyCo> Are you getting anything in your network pane?
367: [06:26:21] <sam_> nope
368: [06:26:54] <EasyCo> The code you're showing looks fine to me. The problem may be somewhere else.
369: [06:28:52] <sam_> hmmm
370: [06:31:04] * DigNZ1 quit (Ping timeout: 264 seconds)
371: [06:31:39] <guzzlefry> sam_: Nothing in Apache's error log?
372: [06:33:35] <sam_> there is an error for javascript for currency....
373: [06:34:19] <sam_> it worked as soon as i changed it to varchar
374: [06:44:14] * joelpittet quit (Remote host closed the connection)
375: [06:48:44] * Bmabii7 quit (Quit: Page closed)
376: [06:55:46] * willr_ quit (Quit: willr_)
377: [07:03:00] * SightUnseen has joined #silverstripe
378: [07:03:58] * SightUnseen has left #silverstripe
379: [07:06:22] * joelpittet has joined #silverstripe
380: [07:19:26] * joelpittet quit (Remote host closed the connection)
381: [07:23:49] <sam_> Hi all again in problem in linking the page
382: [07:24:14] <sam_> http://golf.kc316.com/
383: [07:24:38] <sam_> under tournament planners.... just click on 'More button'
384: [07:24:45] <sam_> it shows.... error
385: [07:25:06] <sam_> but I Used it as $MoreLink from ss page
386: [07:25:46] * mirrors quit (Quit: Page closed)
387: [07:26:22] <sam_> href="$MoreLink"
388: [07:28:05] * zfmf1 has joined #silverstripe
389: [07:28:11] <guzzlefry> sam_: I don't get the error?
390: [07:28:29] <sam_> not error... page not found
391: [07:28:41] <guzzlefry> sam_: takes me here: http://golf.kc316.com/home/profile-items/tournament-planners/
392: [07:28:51] * willr_ has joined #silverstripe
393: [07:28:52] <sam_> yes...
394: [07:29:26] <sam_> I need to transfer the page into http://golf.kc316.com/plan-a-tournament
395: [07:31:10] <guzzlefry> ah, so change the link?
396: [07:32:41] <sam_> how.....
397: [07:33:38] <guzzlefry> not sure, no clue what your code is like.
398: [07:34:34] <sam_> http://www.sspaste.com/paste/show/51f8bd56bf691
399: [07:35:04] <simon_w|air> http://userhelp.silverstripe.org/framework/en/for-website-content-editors/managing-your-site#moving-pages-within-the-site
400: [07:35:37] <simon_w|air> And the button next to the link you get shown in the CMS
401: [07:35:47] <sam_> m using 2.4
402: [07:36:57] <simon_w|air> Same section on http://2.4.userhelp.silverstripe.org/for-website-content-editors/managing-your-site/ then
403: [07:37:19] <simon_w|air> And the URL field in the Metadata tab when editing the page
404: [07:39:20] <sam_> thnx
405: [07:40:28] * guci0 has joined #silverstripe
406: [07:40:31] <guci0> Hello World!
407: [07:42:56] * ss23 has joined #silverstripe
408: [07:43:07] * ocm has joined #silverstripe
409: [07:43:43] <ocm> howdy!
410: [07:43:53] <ss23> Hai hai!
411: [07:51:23] <guci0> :)
412: [07:55:03] * EasyCo quit (Quit: EasyCo)
413: [07:55:06] <ocm> whats new?
414: [07:56:02] * kinglozzer has joined #silverstripe
415: [07:56:21] <ss23> Bugs bugs and more bugs!
416: [07:56:59] <ocm> wanne borrow some of my pesticide? :D
417: [07:57:05] <ocm> I spray around daily here in the office
418: [07:57:10] <ocm> most bugs die out or flee
419: [07:57:20] <ocm> scare tactics is the way to go man!\
420: [07:57:23] <sam_> can anybody guide me to change time format?
421: [07:57:27] <ss23> XD
422: [07:57:32] <ocm> sam_ what do you want to change?
423: [07:57:32] <sam_> millitary to regular?
424: [07:57:45] <ocm> I don't have a clue about military time, war is evil
425: [07:57:50] <ss23> sam_: http://doc.silverstripe.org/framework/en/topics/i18n You can try there, but uh
426: [07:58:10] <ss23> sam_: It's all locale based, so you should be able to set a default locale for people not logged in, and have a locale set on the profile of people who are
427: [07:58:17] <ss23> If I remember correctly, anyway, I haven't looked into it much, sam_
428: [08:00:06] * Shrike_Finland has joined #silverstripe
429: [08:01:21] * Peavers has joined #silverstripe
430: [08:01:38] <guci0> ocm: Have u seen my newest project http://linki.dtl.pl ? Fast, and easy short links app? It's good for seo, if u need (soon links are indexed).
431: [08:02:28] <ocm> I am seeing it now, however my polish int any good
432: [08:03:03] <ocm> does it work like a bit.ly service?
433: [08:07:10] <guci0> yes!
434: [08:07:23] <guci0> paste url and click button :)
435: [08:08:47] <guci0> thx!
436: [08:09:13] <guci0> short linki.dtl.pl/new?url=some_exists_url
437: [08:13:12] * zippy__ quit (Ping timeout: 260 seconds)
438: [08:15:45] <sam_> hi....
439: [08:15:58] <sam_> is there any way to add you tube link in frontend?
440: [08:17:18] <Zauberfisch> sam_ be more specific
441: [08:17:25] <kinglozzer> Use the insert media form?
442: [08:19:23] * zippy__ has joined #silverstripe
443: [08:28:48] * lobarvaz has joined #silverstripe
444: [08:29:06] <sam_> User will upload videos...
445: [08:29:15] <sam_> I mean link the youtube videos
446: [08:34:00] <kinglozzer> sam_: http://userhelp.silverstripe.org/framework/en/for-website-content-editors/working-with-images-and-documents#embedding-other-media
447: [08:34:37] * Peavers quit (Ping timeout: 246 seconds)
448: [08:44:28] <ocm> I wonder.. is there a function already to clear a form?
449: [08:44:31] <ocm> as a formaction?
450: [08:46:42] <kinglozzer> ocm: I'd try: create an action (e.g. ClearForm) that calls a method ClearForm() that does $this->redirect($this->Link());
451: [08:47:20] <kinglozzer> Or am I missing the point a bit? :P
452: [08:49:56] <sam_> kinglozzer: M in 2.4
453: [08:51:05] * howardgrigg quit (Remote host closed the connection)
454: [08:51:32] * howardgrigg has joined #silverstripe
455: [08:52:01] <ocm> ah that might do kinglozzer, though wont the browser keep any cache for the filled fields?
456: [08:52:27] <kinglozzer> Nope :)
457: [08:52:28] <ocm> not that its a big issue, cause I was thinking for some JS event on the reset button click anyway, but redundancy..
458: [08:56:16] * howardgrigg quit (Ping timeout: 264 seconds)
459: [09:03:55] * Werner_2__ has joined #silverstripe
460: [09:03:55] * Werner_2__ quit (Client Quit)
461: [09:04:06] * colymba has joined #silverstripe
462: [09:07:28] * violetina has joined #silverstripe
463: [09:07:57] * openbees has joined #silverstripe
464: [09:10:19] * FrozenFire quit (Ping timeout: 246 seconds)
465: [09:17:20] * FrozenFire has joined #silverstripe
466: [09:31:33] <wmk> ist it possible to tell composer to update only one module?
467: [09:32:08] <wmk> seems so...
468: [09:32:41] <openbees> yes
469: [09:32:43] <openbees> http://getcomposer.org/doc/03-cli.md#update
470: [09:35:55] <wmk> hm, i have an old version of translatable installed, but running "composer update silverstripe-translatable dev-master" shows me "nothing to install or update"
471: [09:35:57] <wmk> wtf?
472: [09:36:56] * cloph_away is now known as cloph
473: [09:37:55] <wmk> damn typos.
474: [09:39:13] <openbees> damn index.php in URL :( .. mode rewrite enabled .. virtual host pointing to write dir .. still some *** happening .. someone got any idea ?
475: [09:39:32] <wmk> .htaccess ok?
476: [09:39:52] <wmk> had this problem some days ago after accidently overriding .htaccess
477: [09:41:13] * Shrike_Finland quit (Quit: Leaving.)
478: [09:41:30] <openbees> yes .. even replaced with fresh .htaccess no effect :(
479: [09:42:09] <ocm> openbees, is it a localhost problem? In my develop environment, coming from localhost:someport/site it always gives me index.php
480: [09:42:45] <openbees> no its on our dev server .. centos vps
481: [09:43:13] <ocm> hm.. never had that issue on centos
482: [09:43:25] <ocm> is it reading your .htaccess?
483: [09:43:32] <ocm> or is your vhosts making some trouble?
484: [09:44:52] <openbees> I think I should explain in detail .. It's an site with sub-site module .. it has some 12 sub-site ... I am able to access all sub-sites but they come with index.php
485: [09:45:17] <openbees> vhosts works because I am able to access to those subsites
486: [09:45:43] <ocm> gets your .htaccess in domainroot read?
487: [09:46:51] <openbees> hmm I think this is the problem .. added some error in .htaccess file ... and no effect
488: [09:47:50] <ocm> what happens if you add this?
489: [09:47:59] <ocm> RewriteLog "/somedir/rewrite.log"
490: [09:47:59] <ocm> RewriteLogLevel 9
491: [09:48:07] <ocm> does it write something in the log?
492: [09:48:41] <ocm> did you setup an AccesFileName?
493: [09:49:31] <wmk> in cms addLink dialog: is "select an Anchor" supposed to show a list of available anchors on the selected page?
494: [09:49:46] <openbees> hmm this is what happens when you give a noob to setup a vps :D checking all
495: [09:49:57] <ocm> hahaha
496: [09:50:03] <ocm> http://httpd.apache.org/docs/current/mod/core.html#allowoverride might help
497: [09:50:22] <ocm> big chance it just ignores the .htaccess
498: [09:53:47] <openbees> BINGO :) works
499: [09:54:00] <ocm> what caused the problem?
500: [09:54:03] <openbees> thanks ocm
501: [09:54:35] <openbees> AllowOverride ... last time I edited it on wrong place i think !!
502: [09:54:41] <ocm> ahh :)
503: [09:55:55] <sam_> hi all...
504: [09:56:15] <sam_> is there any option for adding youtube videos in the frontend?
505: [09:56:26] <sam_> in non-cms environtment
506: [09:56:38] <openbees> you mean upload from fronend ?
507: [09:57:18] <sam_> yes
508: [09:57:30] <sam_> adding youtube link
509: [10:00:21] <ocm> sam_: http://userhelp.silverstripe.org/framework/en/for-website-content-editors/working-with-images-and-documents#embedding-other-media
510: [10:00:22] <ocm> haha :D
511: [10:00:44] <ocm> I dont really understand the question though
512: [10:01:33] <sam_> it is getting attached in the cms area
513: [10:01:52] <sam_> but i need it in the front end, users will do the same thing
514: [10:02:08] <ocm> so you need a formfield in the frontend?
515: [10:02:20] <sam_> yes
516: [10:02:43] <ocm> I dont see any problem there?
517: [10:03:32] <sam_> ok.....
518: [10:03:52] <sam_> And i am using 2.4
519: [10:05:12] <kinglozzer> sam_ Try to explain what you're trying to do, "i need it in the front end, users will do the same thing" isn't very helpful
520: [10:05:34] <kinglozzer> Do you mean users will simply have a box to paste a youtube link into, then that form will be sent to someone?
521: [10:09:36] <sam_> http://golf.kc316.com/listingpage/show/18
522: [10:09:40] * DigNZ1 has joined #silverstripe
523: [10:09:41] * DigNZ1 quit (Remote host closed the connection)
524: [10:09:55] * DigNZ1 has joined #silverstripe
525: [10:10:19] <sam_> this listing can be edited by a user. That user will paste a youtube link....and that will be displayed here
526: [10:10:38] <sam_> I do not know how can it be displayed here
527: [10:10:51] <sam_> till pasting link is fine
528: [10:12:02] <ocm> past link, create a function like embedVideo that uses the link to embed the youtube video ?
529: [10:12:22] <sam_> yes
530: [10:13:03] <ocm> mu assumption would be is splitting the url, so you get the hash of the video
531: [10:13:04] * DigNZ1 quit (Client Quit)
532: [10:13:28] <ocm> and use it for your embed link: <iframe src="http://youtube.com/embed/HASH"></iframe>
533: [10:13:33] <ocm> probably something like that
534: [10:15:31] <openbees> 1 - add a form field 2- get the link from user 3- on form submit .. get url and fetch video id , save them in DB , 4- in template make iframe link or whatever as suggested by ocm
535: [10:15:57] <openbees> now tell us which step is making problem for you :D
536: [10:16:15] <openbees> sam_
537: [10:16:53] <sam_> yes...3- on form submit .. get url and fetch video id
538: [10:17:19] <sam_> I have problem here
539: [10:17:51] <openbees> http://www.sspaste.com/paste/show/51f8e39a23e1b
540: [10:17:55] <simon_w|air> https://svn.pocketrent.com/public/oembed/trunk/ is what the Insert Media in the 3.0 CMS uses
541: [10:17:57] <openbees> sam_ take this function
542: [10:18:09] <sam_> thnx
543: [10:18:27] <simon_w|air> openbees, that regex is nasty :p
544: [10:18:43] <openbees> ohh you again :D
545: [10:18:59] <sam_> actually I am using 2.4
546: [10:19:30] <openbees> simon_w|air I didn't wrote though ... I can't even write that bit ... noob here :D
547: [10:19:31] <ocm> openbees, why use a regex? :P
548: [10:19:32] <simon_w|air> sam_, yes, I know that. That oembed code is for 2.4.
549: [10:19:40] <sam_> ok....
550: [10:19:42] <sam_> thnx
551: [10:19:44] <ocm> I would split the string on v=
552: [10:19:50] <ocm> and take splitted[1];
553: [10:20:36] <simon_w|air> openbees, parse_str(parse_url($url, PHP_URL_QUERY), $args); $hash = $args['v']
554: [10:20:37] <openbees> that won't work on every case .. say share url from youtube "http://youtu.be/9pmPa_KxsAM"
555: [10:20:55] <ocm> hmm, then splitted will be null
556: [10:21:06] <ocm> then just strip domain from url
557: [10:21:23] <ocm> or what simon_w|air says
558: [10:22:01] <simon_w|air> And the short URL's even easier. if(parse_url($url, PHP_URL_HOST) == 'youtu.be') $hash = substr($url, strrpos($url, '/'));
559: [10:23:17] <openbees> hmm in my case it was not sure what url user may enter .. so went with a dirty regex :D
560: [10:24:37] <simon_w|air> And then, if you do want to use regex, preg_match('#(?:(?:\?|&)v=|youtu\.be/)([\w-]+)#i', $url, $match); $hash = $match[1];
561: [10:24:47] * DigNZ1 has joined #silverstripe
562: [10:24:48] * DigNZ1 quit (Remote host closed the connection)
563: [10:25:02] <ocm> seriously... are you both regex-machines or are those just snippets? haha
564: [10:25:02] * DigNZ1 has joined #silverstripe
565: [10:25:12] <simon_w|air> I just wrote that
566: [10:25:40] <openbees> I just copied that
567: [10:25:45] <ocm> lol
568: [10:25:50] <openbees> :D it works though
569: [10:26:05] <simon_w|air> Yeah, I try not to over-engineer my regexes :p
570: [10:26:25] <openbees> :D
571: [10:26:25] * simon_w|air heads off
572: [10:28:50] * DigNZ1 quit (Client Quit)
573: [10:31:51] * Werner_2_ has joined #silverstripe
574: [10:31:52] * Werner_2_ quit (Client Quit)
575: [10:31:56] <Marvanni> Does anyone knows if the flickr module works in ss3?
576: [10:31:56] <Marvanni> https://github.com/SilverStripers/silverstripe-flickrservice
577: [10:33:24] <openbees> Marvanni : My boss said no :D
578: [10:33:55] <Marvanni> ok, thanks :)
579: [10:34:17] <openbees> But we have to use this in a project this week
580: [10:34:28] <openbees> may be we will upgrade .. not sure
581: [10:34:31] <Marvanni> me too...
582: [10:34:48] <Marvanni> But i need ShortCode solution to display galleries
583: [10:35:24] * ARNHOE has joined #silverstripe
584: [10:35:50] <Marvanni> i'm not familiar with Flickr, but do you know if Flickr provide a way of embedding galleries without the need of the API?
585: [10:37:42] <openbees> hmm never tried dude
586: [10:42:09] <Marvanni> ah, seesm possible : https://www.flickr.com/help/forum/en-us/72157633549110570/
587: [10:46:59] * willr_ quit (Quit: willr_)
588: [10:52:03] * howardgrigg has joined #silverstripe
589: [10:54:07] * Shrike_Finland has joined #silverstripe
590: [10:55:21] <Shrike_Finland> Anyone familiar with userdefined forms and uncle cheese Bootstrap forms collaboration: how should I enable Bootstrap form on Userfom?
591: [10:56:46] * howardgrigg quit (Ping timeout: 256 seconds)
592: [11:00:27] <Shrike_Finland> Is Bootstrap form extending UserForms?
593: [11:02:51] <sam_> Thanx openbees simon_w|air ,ocm....
594: [11:06:32] <colymba> Anybody ever had an issue on SS3.1 with a custom HtmlEditorConfig making tinyMce to render twice on page reload (all fine when the CMS page loads via AJAX)?
595: [11:16:26] * LoveDuckie has joined #silverstripe
596: [11:19:59] <ocm> Marvanni, if it are public sets / albums/ photo's you could just do a json request
597: [11:21:04] <ocm> I have a draft for a SS module on flickr, for the use on private sets
598: [11:22:53] <Shrike_Finland> ocm: You familiar with bootstrap-forms and userforms?
599: [11:24:23] <ocm> I am not really a bootstrap guy
600: [11:24:53] <ocm> only (ab)use it for the glyphs and button styling for mockups
601: [11:24:58] <Shrike_Finland> ;)
602: [11:25:04] <ocm> but what is your question? :P
603: [11:25:48] <Shrike_Finland> I try to figure out, how userforms can be "bootstrapified" with bootstrap_forms
604: [11:26:39] * sam_ quit (Ping timeout: 250 seconds)
605: [11:26:40] <Shrike_Finland> There seems to be support for that already, but I haven't figured out, how should I actually do it
606: [11:27:32] <ocm> hmm, I am afraid I cant help any on that
607: [11:28:00] <ocm> but as I see on github bootstrap_forms is for ruby
608: [11:28:03] <ocm> rails*
609: [11:29:12] <Shrike_Finland> this is the right one: https://github.com/unclecheese/silverstripe-bootstrap-forms
610: [11:33:07] <ocm> hm, I guess you should extend the userform and force it to use the bootstrap-forms
611: [11:33:41] * priithansen has joined #silverstripe
612: [11:34:50] <ocm> how oyu know there seems to be some kind of support already on the two?
613: [11:35:58] * zfmf1 has left #silverstripe
614: [11:38:02] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
615: [11:56:52] <Shrike_Finland> There is extension for Userforms on bootstrap config: https://github.com/unclecheese/silverstripe-bootstrap-forms/blob/master/_config/config.yml
616: [12:09:33] * UndefinedOffset has joined #silverstripe
617: [12:11:57] * openbees quit (Quit: Leaving)
618: [12:22:53] * zippy__ quit (Quit: zippy__)
619: [12:49:55] * Colin[pi] quit (Ping timeout: 260 seconds)
620: [12:52:28] * howardgrigg has joined #silverstripe
621: [12:56:40] * howardgrigg quit (Ping timeout: 245 seconds)
622: [12:59:29] * DesignerX quit (Read error: Connection reset by peer)
623: [12:59:56] * DesignerX has joined #silverstripe
624: [13:06:04] * DesignerX has joined #silverstripe
625: [13:06:57] <Shrike_Finland> DesignerX: Hi, have you ever ontegrated Bootstrap_forms on Userforms?
626: [13:07:25] <DesignerX> sorry no , never used bootstrap other then for a quick test :(
627: [13:07:36] <Shrike_Finland> ok
628: [13:10:00] * zfmf1 has joined #silverstripe
629: [13:12:56] * zfmf1 quit (Read error: No route to host)
630: [13:25:14] * colymba quit (Remote host closed the connection)
631: [13:45:46] * jcwacky has joined #silverstripe
632: [13:46:34] <jcwacky> How can I change the CMS Help link URL?
633: [13:47:06] <jcwacky> I've tried CMSMenu::add_link("Help","Help","(MYURL)",-2); but it's not working for me.
634: [13:48:21] <jcwacky> I can change the 'code' and it will add a 2nd Help tab. But can't remove the original one, even with CMSMenu::remove_menu_item('Help');
635: [13:56:12] * micmania1 has joined #silverstripe
636: [13:59:19] <jcwacky> Hmm, seems to be a SS bug :(
637: [14:46:42] <priithansen> jcwacky: It has been my experience too that the Help menu doesn't obey remove_menu_item that well
638: [14:47:00] <priithansen> My solution http://www.sspaste.com/paste/show/51f92285d03d3
639: [14:47:23] <AlphaCactus> http://www.sspaste.com/paste/show/51f92292536e2
640: [14:47:49] <jcwacky> Thanks! Actually ended up doing that in the end!
641: [14:50:23] * drazafsky has joined #silverstripe
642: [14:52:55] * howardgrigg has joined #silverstripe
643: [14:56:26] * ARNHOE quit (Remote host closed the connection)
644: [14:57:31] * howardgrigg quit (Ping timeout: 264 seconds)
645: [15:07:54] * Nivery has joined #silverstripe
646: [15:11:41] * Liquide has joined #silverstripe
647: [15:16:07] * inadream has joined #silverstripe
648: [15:27:02] <inadream> hello, does anyone know of a complete reference silverstripe project that I can download?
649: [15:38:51] * guci0 quit (Ping timeout: 250 seconds)
650: [15:41:40] * Shrike_Finland quit (Quit: Leaving.)
651: [15:42:36] * NitinShah has joined #silverstripe
652: [15:43:21] <AlphaCactus> silverstripe is a reference of itself?
653: [15:43:32] <NitinShah> I am using silverstripe blog
654: [15:44:34] <NitinShah> I would like to have multiple authors for the blog and would like to give a page to each author which will list all blog entries made by them
655: [15:44:48] <NitinShah> is there a way to do so
656: [15:47:45] <AlphaCactus> definitely
657: [15:52:29] <kinglozzer> inadream: Use the tutorials, they're essentially a guide to set up a reference project and they also teach you what everything means & does
658: [15:54:31] <inadream> kinglozzer: I have been using them, was hoping for a boilerplate type app to move a bit faster
659: [15:54:53] <kinglozzer> Hmm, I'm not aware of any
660: [15:55:09] * NitinShah quit (Quit: Leaving)
661: [15:55:38] <kinglozzer> inadream: https://github.com/Zauberfisch/silverstripe-boilerplate something like that?
662: [15:55:58] * ocm quit (Read error: Connection reset by peer)
663: [15:56:08] <Zauberfisch> and soon there will be a vagrant VM
664: [15:56:16] <kinglozzer> ^^
665: [15:56:28] <Zauberfisch> but thats in closed alpha right now so to speak
666: [15:58:34] <inadream> It looks good, I like the fact that it has the themes in the mysite folder, will explore
667: [16:00:09] * kinglozzer quit (Remote host closed the connection)
668: [16:09:38] <Zauberfisch> bloody hell
669: [16:09:45] <Zauberfisch> who broke the text collector task again?
670: [16:16:51] <Zauberfisch> it would appear I can no longer restrict it to the mysite folder
671: [16:17:16] <Zauberfisch> and now I am getting serveral notices that de_DE is not set, even though I have not a single use of de_DE in myiste
672: [16:17:32] <Zauberfisch> and its dieing with a permission issue in cms/lang/
673: [16:17:57] <Zauberfisch> could it be that the new yml parser needs to parse all files in order to be able to merge or something of that sort?
674: [16:21:53] * henkpoley has joined #silverstripe
675: [16:21:54] <Zauberfisch> ok, I might have judged rashly
676: [16:22:22] <Zauberfisch> I found something bad of my origin
677: [16:27:11] * henkpoley quit (Read error: Connection reset by peer)
678: [16:40:35] * henkpoley has joined #silverstripe
679: [16:42:17] * henkpoley quit (Client Quit)
680: [16:43:02] * C10ne has joined #silverstripe
681: [16:45:19] * micmania1 quit (Ping timeout: 246 seconds)
682: [16:49:42] <C10ne> Can anybody help me a bit? I'm trying to create new page programmatically, but when I do, I get a page that is "Removed from draft site". Anyone knows why is that happening?
683: [16:51:38] * inadream quit (Quit: Ex-Chat)
684: [16:53:20] * howardgrigg has joined #silverstripe
685: [16:57:44] * howardgrigg quit (Ping timeout: 256 seconds)
686: [17:00:00] * lobarvaz quit (Remote host closed the connection)
687: [17:00:10] <AlphaCactus> C10ne: see if http://www.silverstripe.org/data-model-questions/show/17635 helps
688: [17:00:11] * Colin[pi] has joined #silverstripe
689: [17:02:59] <C10ne> AlphaCactus: I did check the forums, but it didn't help a lot. I get "Can't find testing/13 in stage Stage" when trying to use $page->writeToStage('Stage'); $page->publish("Stage", "Live");
690: [17:04:26] <AlphaCactus> I've never actually had to create a page programmatically...
691: [17:17:34] * sekjal has joined #silverstripe
692: [17:18:47] <sekjal> is there a straight forward way to hide Redirector Pages from the SiteTree in the CMS admin? I'm going to have a lot of them, and they're only managed by a small subset of my content authors, so I want to unclutter the interface
693: [17:19:57] * DigNZ quit (Ping timeout: 268 seconds)
694: [17:31:42] * UndefinedOffset quit (Quit: Leaving.)
695: [17:34:41] * UndefinedOffset has joined #silverstripe
696: [17:35:56] <sekjal> okay, I think I figured it out: I can create an extension of RedirectorPage that implements HiddenClass, and hides it's ancestor. Then pull the Redirector Page out into a ModelAdmin that I can restrict access to
697: [17:36:46] <sekjal> will probably need a decorator/extension on the Redirector Page so I can get more useful summary fields, but that shouldn't be to hard
698: [17:39:16] * Nivery quit (Quit: Nivery)
699: [17:48:20] <guzzlefry> sekjal: Might also be able to extend the CMS with a new page tree thingy that filters them out.
700: [17:53:32] * swordsmanz quit (Ping timeout: 256 seconds)
701: [18:04:35] <sekjal> guzzlefry: worth looking at.... my solution doesn't seem to work; creating new redirector pages in modeladmin fails
702: [18:12:05] <guzzlefry> Should I be pulling in 3.1-dev or are the betas better?
703: [18:12:17] * gelignite has joined #silverstripe
704: [18:13:05] * Nivery has joined #silverstripe
705: [18:14:09] * ARNHOE has joined #silverstripe
706: [18:23:53] * catcher has joined #silverstripe
707: [18:34:22] * violetina quit (Quit: No Ping reply in 180 seconds.)
708: [18:34:43] * violetina has joined #silverstripe
709: [18:38:04] * pippy has joined #silverstripe
710: [18:39:28] * pippy_ quit (Ping timeout: 264 seconds)
711: [18:42:01] * priithansen quit (Quit: priithansen)
712: [18:51:58] * r3v3rb has joined #silverstripe
713: [18:52:27] <r3v3rb> hi everyone - are gridfields supported on the frontend yet?
714: [18:53:47] * howardgrigg has joined #silverstripe
715: [18:58:26] * howardgrigg quit (Ping timeout: 256 seconds)
716: [18:59:55] * C10ne quit (Ping timeout: 250 seconds)
717: [19:00:42] * Shrike_Finland has joined #silverstripe
718: [19:01:21] * sekjal quit (Quit: Leaving)
719: [19:13:40] * SightUnseen has joined #silverstripe
720: [19:15:20] * SightUnseen has left #silverstripe
721: [19:16:11] <Zauberfisch> r3v3rb sure, why not?
722: [19:16:19] <Zauberfisch> they have been since 3.0
723: [19:17:02] <r3v3rb> Zauberfisch: only asking as I googled and found a forum post regarding buggy implementation
724: [19:17:09] <r3v3rb> no other info surfaced
725: [19:18:12] <r3v3rb> I am about to embark on a side project that might make use of them, in fact it only uses the framework - no cms stuff at all
726: [19:18:37] <r3v3rb> and all developed using routes rather than sitetree etc etc
727: [19:19:17] <r3v3rb> although I'm not sure if gridfields will be necessary yet - I thought I should ask before getting to far ahead ;)
728: [19:20:17] <Zauberfisch> r3v3rb see http://saturn.zauberfisch.at/share/screen001.png
729: [19:20:38] <Zauberfisch> thats sort of front end
730: [19:20:47] <Zauberfisch> actually its a self written admin area
731: [19:20:52] <Zauberfisch> but that is equal to frontend
732: [19:21:30] <r3v3rb> yep, thats what i'm about to embark upon for a little web app I have been meaning to build for ages
733: [19:21:47] <Zauberfisch> I did have to do some custom stuff
734: [19:21:59] <Zauberfisch> like you have to write your own javascript action handler
735: [19:22:01] <r3v3rb> now I have no client work but some reserves in the bank its as good a time as any to get down to it
736: [19:22:12] <Zauberfisch> so that when you click on the "edit" or "delete"
737: [19:22:22] <r3v3rb> it fires the ajax
738: [19:22:38] <Zauberfisch> the problem is that the built in JS for the gridfield actions does some pjax stuff
739: [19:23:06] <Zauberfisch> and if you don't have that in front end set up properly (you most likely don't), then you need to do those events yourself
740: [19:23:13] <Zauberfisch> but thats a 30lines javascript or so
741: [19:23:25] <r3v3rb> tbh, I think I may just end up using standard tables and have the edit/delete functionality in my own custom modal windows etc but will try both ways
742: [19:24:52] <Zauberfisch> gridfield is awesome because it has sorting, pagination, filtering, ... for you
743: [19:25:15] <r3v3rb> ;) so does a lot of bootstrap admin templates too heh
744: [19:25:38] <r3v3rb> so do*
745: [19:25:55] <Zauberfisch> the good thing is that it is server side
746: [19:26:05] <r3v3rb> obviously not tightly integrated with the SS framework but enough nuts and bolts to use for what I need
747: [19:26:10] <Zauberfisch> so if you have thousands of records, you should use gridfield
748: [19:26:28] <Zauberfisch> if its just a couple of records just use some javascript table plugin
749: [19:26:31] <r3v3rb> Zauberfisch: 1000's only if people are willing to pay per month ;)
750: [19:38:35] * Peavers has joined #silverstripe
751: [19:40:56] * ARNHOE quit (Remote host closed the connection)
752: [19:42:14] <r3v3rb> also, 3.1 or Master at GitHub for Framework only development? Should I chance 3.2(Master) yet?
753: [19:43:26] <guzzlefry> r3v3rb, I've been using 3.1-dev without many problems for both framework and cms.
754: [19:43:35] <guzzlefry> General use though.
755: [19:43:59] <r3v3rb> guzzlefry: hmm, yes 3.1 I am using for most stuff but master is now what will eventually end up being 3.2 I gather...
756: [19:44:26] <r3v3rb> can any SSr's confirm or deny?
757: [19:49:44] <guzzlefry> The people that would probably know are usually around 4 or 5 hours from now.
758: [19:50:18] <r3v3rb> guzzlefry: yep, still all sleepy heads
759: [19:50:43] * r3v3rb also wonders whether to test out Laravel before committing to SS again
760: [19:50:49] <r3v3rb> any thoughts ?
761: [19:50:52] <guzzlefry> r3v3rb: Oh, no. They're all in New Zealand I think. :P
762: [19:51:27] * guzzlefry hasn't a clue about Laravel.
763: [19:58:28] * priithansen has joined #silverstripe
764: [20:00:10] <simon_w> r3v3rb, the usability of master isn't anywhere near certain
765: [20:00:25] <simon_w> The API stability is even less so
766: [20:00:33] <r3v3rb> simon_w: ok, i'll stick with 3.1 for now :)
767: [20:00:51] <r3v3rb> out of interest have you (simon_w ) tried out laravel yet?
768: [20:01:00] <simon_w> Nope
769: [20:06:16] <r3v3rb> ok, just wondered what your thoughts might be in a comparison… but having looked at some of laravels syntax I think I'll stick with SS for the foreseeable ;)
770: [20:08:24] * drazafsky_ has joined #silverstripe
771: [20:08:49] * drazafsky quit (Ping timeout: 250 seconds)
772: [20:32:14] * mobiusnz has left #silverstripe
773: [20:36:02] * coldblooded01 has joined #silverstripe
774: [20:41:32] * Pyromanik has joined #silverstripe
775: [20:41:37] <r3v3rb> Pyromanik:
776: [20:41:39] <r3v3rb> :D
777: [20:41:40] <Pyromanik> yo
778: [20:41:42] <Pyromanik> :D
779: [20:41:46] <r3v3rb> they sold out for £30
780: [20:41:51] <r3v3rb> ;) lmao
781: [20:41:51] <Pyromanik> ?
782: [20:41:57] <Pyromanik> OH so you got it?
783: [20:42:08] <r3v3rb> rotflmao no only kidding!
784: [20:42:11] <Pyromanik> hahaha
785: [20:42:15] <Pyromanik> thought so :P
786: [20:42:25] * ARNHOE has joined #silverstripe
787: [20:42:28] <Pyromanik> I was liek WTF 30 pounds?
788: [20:42:32] <r3v3rb> would be fucking A if they did sell that IP though
789: [20:42:43] <Pyromanik> aces indeed.
790: [20:42:49] * DigNZ has joined #silverstripe
791: [20:42:50] * DigNZ quit (Remote host closed the connection)
792: [20:42:53] <r3v3rb> maybe I should start a Kickstarter to buy the IP
793: [20:42:58] <Pyromanik> zomg, halkyon is here.
794: [20:42:59] <r3v3rb> :)
795: [20:43:02] <Pyromanik> hahaha
796: [20:43:04] * DigNZ has joined #silverstripe
797: [20:43:27] <Pyromanik> licence it to some crappy hollywood studio
798: [20:43:52] * r3v3rb just checked out the very vocal 'Laravel' chan - they offered little help of what's great about it other than 'try it and see'
799: [20:44:23] <Pyromanik> I've no idea what laravel even is
800: [20:44:30] <Pyromanik> (besides php)
801: [20:44:33] <r3v3rb> Pyromanik: another framework/mvc
802: [20:44:40] <Pyromanik> oh it is a full framework?
803: [20:45:22] <r3v3rb> yeh, I think I might try it, but something is stopping me (other than lazyness)
804: [20:45:29] <irogue> whoa, their site is all nice and it has good documentation
805: [20:45:30] <irogue> this is weird
806: [20:45:34] <Pyromanik> wtf
807: [20:45:35] <Pyromanik> sif
808: [20:45:39] <irogue> its like the polar opposite of ss.org :P
809: [20:45:44] <Pyromanik> tell you what
810: [20:45:48] <Pyromanik> let's ask spronk
811: [20:45:52] <r3v3rb> irogue: how so?
812: [20:46:04] <r3v3rb> Pyromanik: who the hell is spronk
813: [20:46:06] <Pyromanik> r3v3rb: in that no framework anywhere ever had good documentation.
814: [20:46:14] <irogue> heh, it feels very rubyish
815: [20:46:20] <Pyromanik> r3v3rb: the fellow with the opinions on all frameworks.
816: [20:46:21] <r3v3rb> Pyromanik: arh yes true that
817: [20:46:37] <Pyromanik> irogue: rubyish?
818: [20:46:43] <irogue> *railsish
819: [20:46:50] <r3v3rb> irogue: rubbish or ruby'ish ?
820: [20:46:53] <Pyromanik> so like silverstripe?
821: [20:47:17] <irogue> Pyromanik: nah, SS is more python/django-esque
822: [20:47:26] <Pyromanik> truedat, but I thought they were similar
823: [20:47:29] <r3v3rb> python!
824: [20:47:33] <r3v3rb> no way
825: [20:47:40] <Pyromanik> python! The ruby that works.
826: [20:47:48] <r3v3rb> whaaaaaa
827: [20:47:50] <irogue> well they're all MVC frameworks and all took a lot of influence from RoR
828: [20:47:52] <Pyromanik> xD
829: [20:48:03] <Pyromanik> r3v3rb: Django specifically.
830: [20:48:37] * coldblooded01 quit (Ping timeout: 248 seconds)
831: [20:48:38] * pippy_ has joined #silverstripe
832: [20:48:40] <simon_w> Well yeah, coming up with any sort of new pattern requires a lot more work in both development and explaining it :p
833: [20:48:44] * coldblooded01_ has joined #silverstripe
834: [20:48:46] * nickmolhoek has joined #silverstripe
835: [20:48:47] * nickmolhoek quit (Remote host closed the connection)
836: [20:48:51] <irogue> simon_w: for sure
837: [20:48:56] <Pyromanik> oic, it uses new php stuffs.
838: [20:49:01] * nickmolhoek has joined #silverstripe
839: [20:49:04] <Pyromanik> seems heavily reliant on closures
840: [20:49:15] <irogue> yep
841: [20:49:16] <r3v3rb> just looking at this makes me love SS more: Route::group(array('before' => 'auth'), function()
842: [20:49:17] <r3v3rb> {
843: [20:49:19] <r3v3rb> Route::get('panel', function()
844: [20:49:20] <r3v3rb> {
845: [20:49:21] <r3v3rb> / do stuff
846: [20:49:24] <r3v3rb> });
847: [20:49:24] <r3v3rb> Route::get('dashboard', function()
848: [20:49:26] <r3v3rb> {
849: [20:49:27] <r3v3rb> / do stuff
850: [20:49:28] <r3v3rb> });
851: [20:49:28] <r3v3rb> sorry for the BIG POST!
852: [20:49:33] <Pyromanik> so much code :(
853: [20:49:50] * DigNZ quit (Ping timeout: 240 seconds)
854: [20:49:55] <Pyromanik> lol
855: [20:49:55] <Pyromanik> @
856: [20:49:58] <Pyromanik> @ all the things
857: [20:50:01] <Pyromanik> eh ss23
858: [20:50:09] <Pyromanik> especially in the view layer
859: [20:50:11] <irogue> yeah, that ^^ really makes me think of RoR/CakePHP
860: [20:50:47] * r3v3rb stays firmly put in the SS corner of MVC frameworks
861: [20:51:08] <irogue> i've been playing with django
862: [20:51:09] * pippy quit (Ping timeout: 264 seconds)
863: [20:51:17] <irogue> feel quite "at home" there after SS
864: [20:51:27] <Pyromanik> lolwtf
865: [20:51:31] <Pyromanik> @extends('layout')
866: [20:51:32] <Pyromanik> @section('content')
867: [20:51:32] <Pyromanik> @foreach($users as $user)
868: [20:51:32] <Pyromanik> <p>{{ $user->name }}</p>
869: [20:51:32] <Pyromanik> @endforeach
870: [20:51:34] <Pyromanik> @stop
871: [20:51:51] <Pyromanik> dat @
872: [20:51:53] <simon_w> Whereas I'm in the process of writing our own framework
873: [20:52:01] <Pyromanik> simon_w: ok
874: [20:52:05] <irogue> Pyromanik: seems to be their alternative to <% %>
875: [20:52:10] * DigNZ has joined #silverstripe
876: [20:52:10] * DigNZ quit (Remote host closed the connection)
877: [20:52:11] <r3v3rb> simon_w: huh? no more SS for you?
878: [20:52:11] <Pyromanik> irogue: yeah, kinda
879: [20:52:28] <Pyromanik> I'm confused as to whether it's supposed to be PHP or actually some other kind of parsed thing
880: [20:52:30] * DigNZ has joined #silverstripe
881: [20:52:58] <irogue> parsed template file
882: [20:53:02] <simon_w> r3v3rb, well, our base is currently a massively hacked version of SS
883: [20:53:16] * Peavers_Somethin has joined #silverstripe
884: [20:53:23] <simon_w> And we've been hitting the limits for at least 18 months now
885: [20:53:43] <r3v3rb> simon_w: this for your rentals site by any chance?
886: [20:53:48] <simon_w> Yes
887: [20:53:49] <irogue> when i first used SS, it scared me a little cos the template language is extremely similar to RoR's
888: [20:54:04] <irogue> i was like OH FUCK WHAT HAVE I GOT MYSELF INTO IS THIS A RoR CLONE
889: [20:54:04] <r3v3rb> so there are limits to SS and large projects…
890: [20:54:06] <simon_w> irogue, is why I use HTML (Rails) for syntax highlighting it
891: [20:54:13] * howardgrigg has joined #silverstripe
892: [20:54:20] <simon_w> r3v3rb, there's limits to everything.
893: [20:54:27] <r3v3rb> simon_w: for sure
894: [20:54:32] <irogue> simon_w: yeah, same :P
895: [20:54:46] <simon_w> And, while it's getting there, SS isn't that great for large, non-CMS focused projects
896: [20:54:46] * zippy__ has joined #silverstripe
897: [20:54:58] <zippy__> Morning
898: [20:55:01] <r3v3rb> I have a mutlinational site with about 12 countries on board now and 2.4 is starting to creak
899: [20:55:20] <r3v3rb> simon_w: that's not what I wanted to hear :(
900: [20:55:52] <irogue> Pyromanik: http://ruby.railstutorial.org/chapters/filling-in-the-layout#sec-adding_to_the_layout
901: [20:55:55] <irogue> look familiar?
902: [20:56:15] <r3v3rb> irogue: holy cow <%= %>
903: [20:56:25] <simon_w> SS is obviously a CMS-focused framework. Sure, you can build sites without it but you get a lot of baggage
904: [20:56:35] <irogue> yep
905: [20:56:49] <r3v3rb> simon_w: for example… ??
906: [20:57:28] * Peavers quit (Ping timeout: 264 seconds)
907: [20:57:41] <simon_w> The templating system, the overly convoluted routing, all the magic that's great until you try doing something a little different
908: [20:57:50] <irogue> simon_w: i have pondered at times rewriting our extranet in something else and just keeping the public site in SS
909: [20:58:02] <simon_w> irogue, is basically what we're doing
910: [20:58:07] <r3v3rb> arh yes, I did a little non-cms site and routing it was the 'most fun'
911: [20:58:12] <simon_w> pocketrent.com will stay as SS-based
912: [20:58:22] * howardgrigg quit (Ping timeout: 246 seconds)
913: [20:58:57] <simon_w> Also, our ORM is going to be so much more powerful
914: [20:59:05] <simon_w> Array field types!
915: [20:59:19] <simon_w> Stored procedures!
916: [20:59:22] <r3v3rb> simon_w: open source it now!
917: [20:59:25] <simon_w> Foreign keys and triggers!
918: [20:59:34] <r3v3rb> foreign keys yay!
919: [20:59:34] <simon_w> r3v3rb, you're not likely to be able to run it
920: [20:59:37] <irogue> simon_w: we're not actually pushing any limits resource-wise, it's running fine on a micro ec2 instance, but things are having to be more complex dev-wise than they could be
921: [20:59:57] <r3v3rb> simon_w: oh, you make me sadface :(
922: [21:01:25] <simon_w> r3v3rb, think you'll be able to run http://pastebin.com/ZTp6Snev? (Two files, both perfectly valid syntax)
923: [21:02:08] <r3v3rb> lmao, looks like yaml on steroids!
924: [21:02:08] <simon_w> We may open source the base later, but it's not a PHP framework
925: [21:03:34] <r3v3rb> simon_w: it doesn't look particularly 'dev' friendly if I may say so :\
926: [21:03:54] * UndefinedOffset quit (Quit: Leaving.)
927: [21:03:56] * UncleCheese has joined #silverstripe
928: [21:03:58] <simon_w> Why not?
929: [21:04:07] <zippy__> seems ok
930: [21:04:20] <r3v3rb> it does… then I am no programmer :D
931: [21:04:44] <r3v3rb> I see, view intertwined with routing etc etc
932: [21:05:31] <simon_w> No, that's view intertwined with the controller
933: [21:05:55] <irogue> <3
934: [21:06:14] <zippy__> Whats people use for doing website wireframes these days?
935: [21:06:21] <r3v3rb> ok fair enough, but in with my small amount of coding skill I thought the MVC approach was to separate separate separate
936: [21:06:27] <simon_w> zippy__, paper
937: [21:06:38] <r3v3rb> zippy__: gridded paper ^^
938: [21:06:56] <irogue> i don't mind merging V and C somewhat, personally. i just like M to be standalone.
939: [21:07:01] <zippy__> yea well, thats fine for a start
940: [21:07:24] <simon_w> Yeah, SS has its view strongly coupled to the controller and that's fairly common
941: [21:08:05] <r3v3rb> simon_w: does it? I don't think I have ever written HTML into any of my Controller code yet…
942: [21:08:23] <zippy__> I find most of my functions are in controls and the model hardly used
943: [21:08:39] <UncleCheese> does the composer.json "replaces" key just not work full stop?
944: [21:09:36] <r3v3rb> bbl, time to rest
945: [21:09:40] <simon_w> r3v3rb, it's a separate file, sure. But can you switch out the controller used for a view? And you almost never switch out the view used for a controller, so we're just skipping the extra file step. It's easy enough to add in. Just require "file.php';
946: [21:09:41] * r3v3rb has left #silverstripe
947: [21:09:54] <simon_w> UncleCheese, given it's composer, I'm going with yes.
948: [21:09:57] * r3v3rb has joined #silverstripe
949: [21:10:02] <UncleCheese> awesome
950: [21:10:24] <simon_w> Just like version key, or whatever it is
951: [21:10:36] <r3v3rb> simon_w: ok, i see
952: [21:10:41] <r3v3rb> au revoir
953: [21:10:45] * r3v3rb quit (Quit: r3v3rb)
954: [21:10:59] <simon_w> Yeah, version. Composer ignores it and uses branch/tag name
955: [21:14:47] <simon_w> Composer also doesn't let you install my modules unless you've checked them out manually before
956: [21:23:21] * pippy_ is now known as pippy
957: [21:31:24] * Nivery quit (Quit: Nivery)
958: [21:34:19] <zippy__> With SS 2.4 I thought in a controller you could call $this->Parent() to get the parent model (parent in the CMS) ?
959: [21:34:56] <zippy__> You can do Parent. in the template
960: [21:38:36] * ARNHOE quit (Remote host closed the connection)
961: [21:46:41] <Pyromanik> zomg
962: [21:46:48] <Pyromanik> "Halp, this link doesn't work"
963: [21:46:59] <Pyromanik> domain.com/linky:link
964: [21:47:05] <Pyromanik> "I think the colon is making it error"
965: [21:47:12] * Pyromanik visits
966: [21:47:24] * Pyromanik gets redirected instantly to www.domain.com/linky:link
967: [21:47:32] <Pyromanik> *firefox cannot find www.domain.com*
968: [21:47:36] <Pyromanik> lol, no www record.
969: [21:47:40] <Pyromanik> FIXED
970: [21:47:43] <Pyromanik> <3
971: [21:47:52] <Pyromanik> Probably the easiest fix I've ever had to do.
972: [21:52:39] * willr_ has joined #silverstripe
973: [21:58:09] <Pyromanik> 08:54 <@simon_w> irogue, is why I use HTML (Rails) for syntax highlighting it
974: [21:58:14] <Pyromanik> really?
975: [21:58:21] <simon_w> Yes
976: [21:58:27] <Pyromanik> <% is asp too, I did not jump to RoR conclusion irogue
977: [21:59:17] <Pyromanik> zippy__: parent is on the model.
978: [21:59:23] <Pyromanik> for site trees.
979: [21:59:38] <Pyromanik> applied by Hierarchy I think
980: [22:02:09] <irogue> Pyromanik: yeah, i've used RoR more than ASP :P
981: [22:02:26] <irogue> cos i've used ASP zero ;)
982: [22:02:27] <zippy__> I see..
983: [22:03:04] <irogue> also, i see that ASP.net has ditched <%= %> and now uses @blah - same as Laravel
984: [22:04:55] * Pyromanik quit (Read error: Connection reset by peer)
985: [22:05:09] * Pyromanik has joined #silverstripe
986: [22:05:36] <simon_w> ss23, hurry up and bring me food!
987: [22:06:58] * DigNZ quit (Ping timeout: 246 seconds)
988: [22:07:59] * drazafsky_ quit (Ping timeout: 250 seconds)
989: [22:09:11] * DigNZ has joined #silverstripe
990: [22:09:12] * DigNZ quit (Remote host closed the connection)
991: [22:09:26] * DigNZ has joined #silverstripe
992: [22:11:36] <ss23> simon_w: AIN'T NEVER GOING TO HAPPEN
993: [22:11:44] <ss23> Best I can do is let you accompany me while I get a hot chocolate
994: [22:11:46] <ss23> TAKE IT OR LEAVE IT
995: [22:12:11] <simon_w> Your attitude says I'm not getting food, your double negative says I am!
996: [22:12:21] <ss23> XD
997: [22:16:23] <ss23> OMG
998: [22:16:26] <ss23> ARE YOU OFF TO COURT, simon_w?!
999: [22:16:27] <ss23> TODAY?!
1000: [22:16:33] <ss23> oh wait
1001: [22:16:35] <ss23> or after winter
1002: [22:16:37] <ss23> that makes more sense
1003: [22:17:00] <simon_w> Sheesh, read my stream from Monday night :p
1004: [22:17:14] <ss23> lol
1005: [22:17:18] <Pyromanik> stream?
1006: [22:17:21] <ss23> nu uh!
1007: [22:17:34] <simon_w> Twitter stream
1008: [22:18:08] <Pyromanik> hey is sminnee about?
1009: [22:18:12] <Pyromanik> ss23?
1010: [22:18:14] <ss23> https://twitter.com/SadSkyDrive/status/362615423994306561
1011: [22:18:15] <ss23> Pyromanik: Uh
1012: [22:18:19] <ss23> Yeah, in his office
1013: [22:18:27] <Pyromanik> give him the grats brah
1014: [22:18:35] <ss23> oh, for the certificate? :D
1015: [22:18:42] <ss23> He got uh, nominated, or did he win?
1016: [22:19:06] <Pyromanik> nominated, just like my boss
1017: [22:19:11] <ss23> ype yep
1018: [22:19:12] <ss23> who won?
1019: [22:19:20] <ss23> also, brb, going to get a hot chocolate
1020: [22:19:43] <Pyromanik> ss23: no idea, don't think it's nominated yet
1021: [22:20:45] <Pyromanik> err, decided yet, just nomination stage
1022: [22:21:16] <Pyromanik> tell sminnee to get on the ircses so I can gratz2him
1023: [22:25:27] <ss23> back :D
1024: [22:25:32] <ss23> oic Pyromanik
1025: [22:25:32] <ss23> lol
1026: [22:25:36] <ss23> He's presumably busy!
1027: [22:26:21] <simon_w> So?
1028: [22:26:29] <simon_w> That doesn't stop you climbing over me!
1029: [22:26:45] <ss23> :O
1030: [22:26:51] <ss23> You're busy AND ON IRC
1031: [22:26:55] <ss23> That's a different kind of busy! :D
1032: [22:27:24] <simon_w> I'm on IRC because I don't quit xchat :p
1033: [22:27:31] <ss23> Me either! :D
1034: [22:27:35] <ss23> I don't start it either
1035: [22:28:33] <simon_w> You have to use something before you can quit it :p
1036: [22:29:33] <irogue> http://www.nzherald.co.nz/nz/news/article.cfm?c_id=1&objectid=10906340
1037: [22:29:48] <irogue> heh, the bit at the bottom basically sums up what i've seen at various service stations
1038: [22:30:09] <pippy> we released a new silverstripe site today
1039: [22:30:14] <pippy> op.ac.nz
1040: [22:30:15] <pippy> W 2
1041: [22:30:56] <ss23> simon_w: Exactly
1042: [22:30:59] <ss23> I don't quit xchat
1043: [22:31:05] <irogue> though they left out the part where it feels like Mobil staff are always either on the phone or just having a chat with each other and either (a) completely ignore you, or (b) serve you without saying a word to you so they don't have to stop their conversation
1044: [22:31:27] <ss23> But the man continued to refuse to assist him so Mr Fewings left for a Z station in Orakei where he was served petrol and both his car windows were cleaned.
1045: [22:31:31] <ss23> lol
1046: [22:32:35] <irogue> yeah, Z are hardcore targeting the elderly/woman-who-won't-learn-to-pump-gas market
1047: [22:32:48] <simon_w> "served petrol" makes it sound like he was given it to drink
1048: [22:32:56] <ss23> XD
1049: [22:33:04] <ss23> irogue: I don't really understand "learning"
1050: [22:33:06] <ss23> press da lever
1051: [22:33:09] <ss23> petrol comes out
1052: [22:33:09] <ss23> :O
1053: [22:33:15] <irogue> seems to be working for them, my grandmother will only go to Z stations
1054: [22:33:21] <ajmitch> pippy: looks shiny :)
1055: [22:33:31] <irogue> ss23: ikr, but a lot of older people are scared of anything they don't know
1056: [22:33:46] <ss23> meh
1057: [22:33:47] <Pyromanik> nice pippy :)
1058: [22:33:51] <ss23> fuck da police
1059: [22:33:52] <Pyromanik> looks good
1060: [22:33:53] <irogue> "WHAT IF I DO IT WRONG AND THE STATION BLOWS UP"
1061: [22:33:56] <ss23> XD
1062: [22:34:09] <irogue> "WHAT IF I PUT DIESEL IN BY MISTAKE"
1063: [22:34:35] <ss23> hahaha
1064: [22:34:36] <simon_w> Then you put in way too much effort
1065: [22:34:44] <ss23> Now that's a real fear, though one that is kind of silly
1066: [22:34:52] <ss23> They're all like "HOLY FUCK BRO THIS IS DESIL, YOU SURE?"
1067: [22:34:54] <ss23> It's good :D
1068: [22:34:54] <Pyromanik> irogue: hahahaha, diesel
1069: [22:35:06] <irogue> i can't count the number of times i've taken my grandmother down to the self-serve gull and shown her what to do
1070: [22:35:18] <irogue> ss23: which is funny cos putting diesel into a petrol car is no biggie
1071: [22:35:23] <irogue> it won't go, but it won't damage anything
1072: [22:35:28] <irogue> whereas putting petrol into a diesel is BAD
1073: [22:35:35] <irogue> really it should be "WARNING: PETROL"
1074: [22:35:38] <ss23> lol
1075: [22:36:20] <irogue> pippy: nice, i like it
1076: [22:36:29] <irogue> though the subnav on the left hides a bit
1077: [22:36:31] <Pyromanik> irogue: people who drive diesel tend to know these things
1078: [22:36:42] <Pyromanik> though with diesel cars becoming more common...
1079: [22:36:43] <irogue> maybe needs to be a little more prominent
1080: [22:36:51] <irogue> Pyromanik: yeah, diesel cars pretty damn common now
1081: [22:38:03] <irogue> sufficiently so that most stations around here have diesel at every pump rather than just selected ones
1082: [22:38:19] <pippy> irogue: thx :)
1083: [22:38:28] <irogue> but that's cos people in the Shore drive Audis and BMWs, which are almost all diesel :P
1084: [22:38:42] <Pyromanik> irogue: yeh, lots of that
1085: [22:38:54] <Pyromanik> they actually almost perform like normal cars now.
1086: [22:39:01] <irogue> yeah, Turbo Diesel do
1087: [22:39:30] <Pyromanik> it's actually the cleaner fuel, until it goes all over the road.
1088: [22:40:00] <ss23> So what you're saying is, I should drink diesil?
1089: [22:40:03] <Pyromanik> then it's pretty much liquid black ice
1090: [22:41:03] <irogue> a mate of mine has an Audi A6, iirc it's 2.7L V6 TDI
1091: [22:41:06] <irogue> that has some legit balls
1092: [22:41:49] <spronk> and
1093: [22:41:52] <spronk> the engines sound like arse
1094: [22:41:55] <spronk> so... Nope!
1095: [22:42:23] <irogue> well, the engine barely has sound, which is a little disappointing
1096: [22:42:47] <irogue> but thats better than it sounding like a diesel truck :P
1097: [22:42:59] <guzzlefry> Quick question I hope. :P
1098: [22:43:24] <guzzlefry> I have a DataExtension that I'd like to give a group access to.
1099: [22:44:02] <guzzlefry> Would I just implement PermissionProvider, add related flags in providePermisisons(), and then code up canView(), etc. to check those permissions?
1100: [22:45:22] <ss23> I don't know :O
1101: [22:45:46] <guzzlefry> ss23: You're a'sposed to! :P
1102: [22:47:16] * guzzlefry tries and sees.
1103: [22:47:18] <guzzlefry> https://www.youtube.com/watch?v=o0YWRXJsMyM
1104: [22:47:23] <guzzlefry> relevant
1105: [22:49:43] * joelpittet has joined #silverstripe
1106: [22:50:21] <ss23> Listening to capsule at work, I hope my headphones don't leak so no one judges me :O
1107: [22:54:38] * howardgrigg has joined #silverstripe
1108: [22:57:41] <Pyromanik> wtf is a capsule
1109: [22:57:44] <Pyromanik> crm?
1110: [22:57:48] <ss23> band
1111: [22:57:50] <ss23> artist
1112: [22:57:51] <ss23> idk
1113: [22:58:05] <ss23> https://www.youtube.com/watch?v=W4h8m74pyC8 @ Pyromanik
1114: [22:58:07] * ss23 grinds on Pyromanik
1115: [22:58:13] <ss23> YEAH I'M THE HOTTEST GIRLS AROUND~
1116: [22:58:15] <ss23> girl*
1117: [22:58:18] <Pyromanik> D:
1118: [22:58:22] * LoveDuckie quit ()
1119: [22:58:46] * howardgrigg quit (Ping timeout: 246 seconds)
1120: [22:58:48] <Pyromanik> ss23: with a bit of conditioner and a dress you pretty much could be.
1121: [22:58:56] <Pyromanik> xD
1122: [22:59:02] <ss23> hahaha
1123: [23:01:30] * Peavers has joined #silverstripe
1124: [23:01:31] <Pyromanik> oh, dat comment: //do important things
1125: [23:01:39] <ss23> lol
1126: [23:01:48] <ss23> // TODO: Write this
1127: [23:02:02] * mobiusnz has joined #silverstripe
1128: [23:02:21] <ss23> WAIT FOR IT
1129: [23:02:23] * ss23 pokes Pyromanik
1130: [23:02:24] * sminnee has joined #silverstripe
1131: [23:02:25] <mobiusnz> hey when I do $this->redirectBack() to show a form error message, how do I restore the form data?
1132: [23:02:25] <ss23> wait for it
1133: [23:02:34] <ss23> Boom, Pyromanik :D
1134: [23:02:45] <ss23> you can say congrats properly now :P
1135: [23:03:51] <Pyromanik> mobiusnz: it should be in session
1136: [23:03:57] <Pyromanik> if it's not, store it there.
1137: [23:04:30] <Pyromanik> there are methods on form for it (sometimes, iirc), or you can just Session::set() the relevant fields (generally easier)
1138: [23:06:09] * Peavers quit (Ping timeout: 264 seconds)
1139: [23:06:16] * Peavers_Somethin quit (Ping timeout: 276 seconds)
1140: [23:06:24] * Peavers_DEAD has joined #silverstripe
1141: [23:06:35] * toddmorey has joined #silverstripe
1142: [23:06:52] <mobiusnz> I was sure there was a shortcut way to do it
1143: [23:07:04] <guzzlefry> You can use whatever codes you like, but for the sanity of developers and users, it would be worth listing the codes in permissions:codes <-- what is this referring to? It's form the Permission topic in the docs regarding PermissionProvider.
1144: [23:07:21] <guzzlefry> The link to "permissions:codes" just links right back to the article. :/
1145: [23:07:33] <UncleCheese> Anyone ever seen this? [User Error] Couldn't run query: SET CHARACTER SET 'utf8'
1146: [23:07:38] <UncleCheese> on /dev/build
1147: [23:07:38] <Pyromanik> sminnee: congratulations :D
1148: [23:07:49] <ss23> UncleCheese: Any further error?
1149: [23:07:58] <ss23> UncleCheese: at a wild guess... I would go with... MySQL being shit!
1150: [23:08:35] <Peavers_DEAD> how to allow other file extentions to be uploaded via the cms?
1151: [23:08:56] <irogue> UncleCheese: means it can't connect to the database
1152: [23:08:58] <sminnee> Thanks Pyromanik! I met your boss :)
1153: [23:08:59] <irogue> (generally)
1154: [23:09:06] <ss23> Pyromanik: Sounds like a security risk! No government department would ever let that happen!
1155: [23:09:07] <toddmorey> UncleCheese: I have, but only at times of database contingency
1156: [23:09:13] <UncleCheese> that's an odd way for an authentication issue to present itself, no?
1157: [23:09:27] <Pyromanik> sminnee: yeah I heard :P
1158: [23:09:30] <ss23> UncleCheese: I agree. You should fix it
1159: [23:09:34] <irogue> UncleCheese: well, it failed to run the first query it tried to run :-P
1160: [23:09:40] <sminnee> Pyromanik we talked about having a Chch meetup
1161: [23:09:48] <UncleCheese> but it was able to connect
1162: [23:09:49] <ss23> Whenever I can't conncet to the DB, I get spammed with "LOL CAN'T RUN QUERY" until my Chrome crashes cause silverstripe just sent like 500mb of error text in HTML
1163: [23:10:23] <Pyromanik> sminnee: he said something about training courses
1164: [23:10:39] <simon_w> Shake shake!
1165: [23:10:42] <UncleCheese> QUAKE!
1166: [23:10:43] <sminnee> Pyromanik: eh? i don't remember talking about that.
1167: [23:10:43] <irogue> when i was on rackspace cloud, whose mysql hosting is shitballs and has lots of micro-outages, i'd get 2 or 3 emails a day with "Couldn't run query: SET CHARACTER SET 'utf8'"
1168: [23:10:55] <ss23> hahaha
1169: [23:10:56] <Peavers_DEAD> Everyone still alive?
1170: [23:11:09] <Peavers_DEAD> simon_w, check in
1171: [23:11:11] <simon_w> Well, you're not
1172: [23:11:19] <simon_w> simon_w|air, are you alive?
1173: [23:11:21] <ss23> It felt not big up here, idk
1174: [23:11:23] <simon_w> TALK TO ME!
1175: [23:11:24] <Peavers_DEAD> good to see you made it simon_w
1176: [23:11:31] <ss23> This building distorts the shit out of quakes
1177: [23:11:50] <Peavers_DEAD> our building doesn't handle them well... should see our stairwells...
1178: [23:11:51] <ss23> someone walking feels like a 3
1179: [23:11:52] <Pyromanik> Peavers_DEAD: why are you DEAD?
1180: [23:12:01] <toddmorey> On 2.4… how can I tell if a component set returned by something like $this->Speakers("MemberID = ".$memberID) has no entries?
1181: [23:12:12] <Peavers_DEAD> Because irc threw me out a million times and blocked all my other nicks so this is the final fall back name
1182: [23:12:16] <Pyromanik> Peavers_DEAD: did you walk through Newtown last night?
1183: [23:12:16] <simon_w> ->Count()
1184: [23:12:24] <Peavers_DEAD> lols
1185: [23:13:31] <ss23> Okay so it's up to 4.8
1186: [23:13:35] <ss23> Wanna take bets on if it goes up?
1187: [23:14:08] <simon_w> If it goes stays the same or goes up, I win. If it goes down, you lose?
1188: [23:14:13] <ss23> o.o
1189: [23:14:16] <simon_w> Oh look, I won!
1190: [23:14:20] <ss23> HEAds I WIN, TAILS YOU LOSE
1191: [23:14:27] <simon_w> 4.9 now
1192: [23:14:43] <simon_w> Come on, hit 5!
1193: [23:14:45] <ss23> XD
1194: [23:14:49] <ss23> 5 isn't big enough anyway!
1195: [23:14:50] <ss23> I WANT A 7
1196: [23:14:54] <ss23> MOTHER FUCKING 7 RIGHT TO THE CBFD
1197: [23:14:55] <ss23> COME ON
1198: [23:14:56] <ss23> HIT ME RIGHT NOW
1199: [23:14:58] <ss23> SFSDFSADFASDF
1200: [23:15:00] <ss23> I CAN TAKE IT
1201: [23:15:33] <Pyromanik> sminnee: hehe, I think he sorta mighta meant meetup to skillup. Although that may not have been explicit.
1202: [23:15:48] <ss23> Pyromanik: as in... training events?
1203: [23:15:55] <simon_w> ss23, in that building? Good luck :p
1204: [23:15:56] <Pyromanik> meetups are generally informative, like ss23's sec talk.
1205: [23:16:01] <ss23> lol
1206: [23:16:06] <ss23> Pyromanik: awww shucks, why thank you
1207: [23:17:24] <ss23> I got my Cerebot MX7cK yesterday, so hopefully I'll be able to shake it and get another talk worth of content out of it
1208: [23:17:31] <ss23> Not that my C skills are all that great to be able to do it easily...
1209: [23:17:41] <ss23> Doubt I'll be able to do that one at a SS meetup though :D
1210: [23:19:42] * EasyCo has joined #silverstripe
1211: [23:20:06] <EasyCo> Bonjour!
1212: [23:20:11] <ss23> moin EasyCo
1213: [23:23:38] <guzzlefry> I have this DataExtension that implements PermissionProvider and extends Member. I added a special permission to it via providePermissions(), and added a canView() to check this. The group member with the given permission still can't view any items in the GridField for that.
1214: [23:23:40] <guzzlefry> Any ideas?
1215: [23:24:47] <guzzlefry> https://gist.github.com/anonymous/0d08e66e610a828592d4 <-- there's the code.
1216: [23:25:49] <simon_w> guzzlefry, does your DataObject check canView() on its extensions?
1217: [23:27:16] <guzzlefry> simon_w: I'm not sure. It's set to extend Member, via Config::inst()->forClass("Member")->extensions = array ( "MemberLoginAttempts" );
1218: [23:28:07] <simon_w> And you're trying to view a GridField of Members?
1219: [23:30:15] <guzzlefry> simon_w: I can go to Security -> View a member in the grid field, then there's a tab for Login Attempts, that I can access, but no rows are listed.
1220: [23:30:28] <guzzlefry> Which isn't the case for Admin.
1221: [23:30:35] <UncleCheese> do you guys know how to get SS errors to show when environment type is "test"?
1222: [23:30:46] <ss23> UncleCheese: Yes, set it to dev.
1223: [23:30:47] <simon_w> guzzlefry, Well, yeah. LoginAttempt is a different DataObject
1224: [23:30:52] <UncleCheese> mmph
1225: [23:30:59] <UncleCheese> well that will screw up the database connection
1226: [23:31:23] <UncleCheese> that's where my DB error was coming from.. i had put ?isDev=1 in the URL
1227: [23:31:24] <ss23> UncleCheese: You can define the database in _ss_environment, so that it'll be correct no matter the envrionment/mode
1228: [23:31:52] <UncleCheese> if it were my site, i'd have done it that way
1229: [23:31:56] <ss23> If you use a different *server* for dev and test, you can just configure Db creds through _ss_environment and not bother with changing them based on whether oyu're on dev or not
1230: [23:32:00] <ss23> well
1231: [23:32:04] <ss23> It's test, you're allowed to edit it, right UncleCheese?
1232: [23:32:10] <ss23> Just hack it up / edit it to make it dev + right creds
1233: [23:34:20] <guzzlefry> simon_w: So I guess extend LoginAttempts and implement the permission provider like I did before?
1234: [23:34:42] <simon_w> guzzlefry, assuming that it calls extensions for its can* methods
1235: [23:35:00] <guzzlefry> ah
1236: [23:35:03] <guzzlefry> this is complicated. :/
1237: [23:36:32] * joelpittet quit (Remote host closed the connection)
1238: [23:37:35] <guzzlefry> simon_w: Looks like it. extendedCan()?
1239: [23:37:54] <simon_w> Yes
1240: [23:38:17] <guzzlefry> thanks
1241: [23:40:29] <Pyromanik> hm
1242: [23:40:39] <Pyromanik> how to block Requirements::insertHeadTags() ?
1243: [23:41:11] <Pyromanik> oh, add uniquenessID
1244: [23:44:02] <simon_w> Huh, apparently Newtown's getting a BurgerFuel
1245: [23:44:09] <Pyromanik> legit
1246: [23:44:20] <ss23> YAY
1247: [23:44:21] <ss23> :d
1248: [23:45:15] <Pyromanik> ss23: breakfast, lunch, AND dinner
1249: [23:45:19] <Pyromanik> BOOM
1250: [23:45:23] <Pyromanik> and midnight snack?
1251: [23:45:28] <Pyromanik> :P
1252: [23:45:42] <simon_w> Ooh, it'll probably be open by the time ss23 wants breakfast too
1253: [23:45:48] <ss23> :O
1254: [23:45:49] <ss23> XD
1255: [23:45:54] <ss23> I don't really eat breakfast, no time!
1256: [23:46:08] <simon_w> And then there'll be a BF in two Newtowns!
1257: [23:46:39] <ss23> :D
1258: [23:46:53] <spronk> fucks sakes
1259: [23:46:57] <spronk> where is my CHCH BF
1260: [23:47:07] <spronk> someone's had the riccarton franchise rights for the last year
1261: [23:47:10] <spronk> STILL NO BF
1262: [23:47:15] <simon_w> Eh, who cares? :p
1263: [23:47:39] <ss23> spronk wants a BF.
1264: [23:47:41] <mobiusnz> can you do <% if Foo > 5 %> in templates?
1265: [23:47:48] <simon_w> mobiusnz, in 3.1
1266: [23:47:58] <ss23> Guise, ORM, Foo::get()->First()?
1267: [23:48:02] <ss23> Is it First()?
1268: [23:48:05] <simon_w> Yes
1269: [23:48:07] <ss23> sweet
1270: [23:48:17] <ss23> I think I was looking on the wrong page, I was on datamodel page
1271: [23:48:43] <Colin[pi]> morning all!
1272: [23:48:51] <Pyromanik> spronk: gett'n all made about MF BF
1273: [23:48:54] <Colin[pi]> wait did I say that already?
1274: [23:48:56] <Pyromanik> mad*
1275: [23:48:59] <ss23> lol
1276: [23:49:00] <ss23> morning Colin[pi]
1277: [23:49:10] <Colin[pi]> HAI2U
1278: [23:49:19] <Pyromanik> lucky you Colin[pi], it's still the morning
1279: [23:49:25] <Pyromanik> 11:50
1280: [23:49:39] <simon_w> That's when he usually shows up
1281: [23:49:48] <ss23> lol
1282: [23:52:19] * willr_ quit (Quit: willr_)
1283: [23:53:45] <ss23> simon_w: Want noms today?
1284: [23:55:00] * zippy__ quit (Ping timeout: 245 seconds)

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