These logs are running on a SiteHost VPS.
Timestamps are in NZT (New Zealand Time).
[0:02] <WebGuest961> hmm this might be a solution
[0:02] <WebGuest961> http://api.silverstripe.com/forms/fields-relational/TreeMultiselectField.html
[0:51] <Gnx> is there some way to debug getting an empty DataObject?:)
[0:52] <Gnx> also can you lock a page type to 1 instance?
[1:00] <dio5> so a user cannot create it?
[1:00] <Gnx> well basically so that if I make StaticGlobalPage.php
[1:00] <Gnx> for example with Footer, Contact etc.
[1:00] <Gnx> so that there could be only one of those
[1:01] <dio5> hmm.. well, if it's you who makes them, just don't make 2 of them :)
[1:01] <dio5> otherwise, you could do something with canCreate()
[1:02] <dio5> check if there is one of that type already
[1:02] <dio5> and return false
[1:02] <Gnx> dio5: well true, but I was just thinking again if someone else takes over the project/clients mess around with the pages
[1:02] <Gnx> dio5: hmm that'll work, thanks
[1:43] * WebGuest961 (n=d49eceb7@littleted.silverstripe.com) Quit ("CGI:IRC (EOF)")
[1:50] * dio5 (n=dio5@21.5-241-81.adsl-dyn.isp.belgacom.be) Quit (Read error: 104 (Connection reset by peer))
[1:51] * dio5 (n=dio5@151.163-201-80.adsl-dyn.isp.belgacom.be) has joined #silverstripe
[3:06] * WebGuest695 (n=525dac72@littleted.silverstripe.com) has joined #silverstripe
[3:10] <WebGuest695> Sorry to bother you, but is there a downloadable version of the tutorials?
[3:11] <WebGuest695> Or do I just, save them manually?
[3:11] <Gnx> the code is available in zips
[3:12] <WebGuest695> I saw... at the end it is told. But the tutorial instructions aren't included in the code.
[3:14] <Gnx> well, dl'ing the zip at the beginning of tutorial3 essentially gives you working versions of what is done in tutorials 1 and 2
[3:45] <WebGuest695> Does SS uses Clientside caching? If so, how do I tell it to turn it off?
[3:49] <dio5> if you change yr templates, you always have to do ?flush=1
[3:50] <dio5> you can turn off all caching by putting HTTP::set_cache_age(0) in _config.php
[3:50] <dio5> but you'll still have to do ?flush=1 when a template changes
[3:51] <Gnx> dio5: hmm oh you do?
[3:51] <Gnx> where does that get stuck in
[3:52] <dio5> I dunno, it's what I noticed
[3:52] <dio5> at least for template changes that get called by an <% include %>
[3:53] <Gnx> interesting, because I was in the belief SS isn't even capable of caching
[3:53] <dio5> yeah, it does some sort of caching
[3:54] <dio5> but I'm not sure how either
[3:54] <WebGuest695> And this is to prevent Client-side caching as well?
[3:55] <dio5> not sure, haven't really studied it
[3:56] <Gnx> well that HTTP::set I think sets the headers so that browser doesn't cache anything
[3:56] <dio5> yeah
[3:56] <Gnx> which is most of the problem
[3:56] <Gnx> since caching in executing php shouldn't really happen
[3:58] <dio5> it should prevent clientside caching, because I had to set it to 0 because uploaded images weren't
[3:58] <dio5> visible immediatly in the backend
[3:59] * jam13 (n=jamie@host81-149-4-192.in-addr.btopenworld.com) has joined #silverstripe
[4:00] <jam13> afternoon
[4:01] <dio5> hi, sorry for spamming you :)
[4:02] <jam13> so'k
[4:02] <jam13> been in meetings all morning
[4:03] <jam13> another project signed up
[4:32] * WebGuest113 (n=7aa82cf0@littleted.silverstripe.com) has joined #silverstripe
[4:32] <WebGuest113> Hi Guys
[4:32] <WebGuest113> Please help in small problem
[4:32] <WebGuest113> i want use a condition into template
[4:33] <WebGuest113> like there is link.. <a href="" >Edit </a>
[4:33] <WebGuest113> but that link only show when user is login
[4:33] <Gnx> what do you want to condition to?
[4:34] <WebGuest113> i have one template that listing data with memberID
[4:34] <WebGuest113> suppose a data created by 2 member A,B
[4:34] <WebGuest113> then listing will be data of both user
[4:35] <WebGuest113> there is one edit button with every line like name surname <a href="{$MemeberID}"> edit </a>
[4:35] <WebGuest113> i want that link apper only when user logged in into application
[4:36] <WebGuest113> and that link was created by logged in user.
[4:36] <WebGuest113> <% if CurrentMember %>
[4:36] <WebGuest113> <a href="{$Link}editproperty?id=<% control ShowPreviousAddProperty %>$ID <% end_control %>">$CurrentMember.ID Edit</a>
[4:36] <WebGuest113> <% end_if %>
[4:36] <WebGuest113> that code is working for checking current user..
[4:37] <WebGuest113> logged in condition
[4:37] <WebGuest113> but not working for checking that link is data of logged in user
[4:37] <WebGuest113> is anybody help me?
[4:37] * jam13 is reading back
[4:38] <WebGuest113> <% if CurrentMember && CurrentMember.ID = $ID %>
[4:38] <WebGuest113> i want like this condtion
[4:38] <jam13> you can't do that afaik
[4:39] <jam13> the template logic is very simple
[4:39] <jam13> you'll need to create a method in your controller to do the logic
[4:39] <jam13> and then refer to that in the template
[4:39] <WebGuest113> how can i call a method into template ?
[4:40] <WebGuest113> i have created a method into my controller ..
[4:41] <WebGuest113> like this...
[4:41] <WebGuest113> function retUserStatus($id){
[4:41] <dio5> function $Method() --> in template $Method or <% control Method %>
[4:41] <WebGuest113> if($CurrentMember.ID == $id )
[4:41] <WebGuest113> return true;
[4:42] <WebGuest113> else return false ;
[4:42] <dio5> <% if method(id) %>
[4:44] <WebGuest113> this is my controller code please see http://pastie.caboo.se/152715
[4:45] <WebGuest113> this template code http://pastie.caboo.se/152716
[4:45] <WebGuest113> please see this http://localhost/vancouverlivingdev/property-listing/
[4:45] <WebGuest113> that is my output ..i want here
[4:46] <WebGuest113> http://test.vancouverlivingdev.com/real-estate-listings/
[4:47] <WebGuest113> are you looking my tempate ???
[4:48] * dio5 (n=dio5@151.163-201-80.adsl-dyn.isp.belgacom.be) Quit ()
[4:51] <jam13> sorry - bit busy at the moment
[4:52] <jam13> what you've got in the template won't work
[4:52] <jam13> you can't pass vars in the control
[4:53] <jam13> <% control retUserStatus(ShowPreviousAddProperty.$ID) %>
[4:53] <WebGuest113> but i need to pass id
[4:53] <WebGuest113> then i can check ..that recored created by ..which user
[4:53] <jam13> surely the controller knows the id?
[4:53] <WebGuest113> yes
[4:53] <WebGuest113> see this..http://test.vancouverlivingdev.com/real-estate-listings/
[4:54] <WebGuest113> that is generating by that controller and tempate..
[4:54] <jam13> the template language is very simple
[4:54] <jam13> you need to do the logic in the controller
[4:54] <jam13> so you just do:
[4:54] <WebGuest113> i did this.. i have created a method
[4:54] <jam13> <% control retUserStatus %>
[4:54] <WebGuest113> please check this.. http://pastie.caboo.se/152715
[4:55] <jam13> as I said - that won't work
[4:55] <WebGuest113> ok...
[4:55] <jam13> you can't pass args from the template
[4:55] <WebGuest113> so how can i get the current recored member id
[4:55] <jam13> the template parser doesn't work that way yet
[4:56] <WebGuest113> yes..its giving error
[4:56] <jam13> you should be able to get it in the controller itself
[4:56] <WebGuest113> when i am supplying argument
[4:56] <WebGuest113> ok.. $this->Id
[4:56] <WebGuest113> like this..
[4:56] <jam13> yes
[4:56] <WebGuest113> ok let me try
[4:58] <WebGuest113> $o = DataObject::get("RealEstateListingDataObject", null, $order, null, $limit);
[4:58] <WebGuest113> should i add extra variable in my $o object
[4:58] <WebGuest113> like this.. $o->allowedit=true
[4:58] <WebGuest113> and can i get value of allowedit into template ?
[5:05] <jam13> not sure
[5:05] <jam13> I'd need to read the docs
[5:05] <WebGuest113> ok..
[5:06] <WebGuest113> i tried and its not giving error but not printing value into template
[5:07] <jam13> there are some things you can pass in the url for debugging
[5:08] <jam13> search for debugging on the ss site
[5:08] <WebGuest113> ok please tell me i run this code
[5:08] <WebGuest113> $o = DataObject::get("RealEstateListingDataObject", null, $order, null, $limit);
[5:08] <WebGuest113> and data filled into $o
[5:08] <WebGuest113> if i want get the value of any filed ...
[5:09] <WebGuest113> how can i get.. it
[5:10] <jam13> sorry - don't have a lot of time just now
[5:10] <jam13> friday PM is not the best time :)
[5:10] <jam13> it's early saturday AM in NZ too
[5:11] <WebGuest113> ok plz just tell me...how can get value of filled object
[5:11] <jam13> it's an object
[5:11] <jam13> which value do you want
[5:11] <jam13> it has many
[5:12] <jam13> read the docs on dataobject
[5:12] <WebGuest113> RealEstateListingDataObject has one field ID
[5:12] <jam13> $o is a dataobject
[5:12] <WebGuest113> i want that field
[5:12] <WebGuest113> yes
[5:13] <WebGuest113> i ran this $o = DataObject::get("RealEstateListingDataObject", null, $order, null, $limit);
[5:13] <WebGuest113> i want to assign like this $this->id=$o->ID;
[5:13] <WebGuest113> but $o->ID , returning ..blank
[5:13] <WebGuest113> but its have data..
[5:14] <WebGuest113> anyidea?
[5:14] <jam13> sorry - don't have time to help just now
[5:14] <jam13> try monday
[5:14] <WebGuest113> ohhh
[5:14] <jam13> SS devs back then
[5:14] <WebGuest113> please
[5:14] <WebGuest113> i am worker for a company
[5:15] <WebGuest113> and today is my deadline
[5:15] <WebGuest113> client want to see this code run.
[5:15] <WebGuest113> i am fighting with this line only..
[5:15] <WebGuest113> since 4 hour
[5:16] <jam13> read the docs for dataobject: http://doc.silverstripe.com/doku.php?id=datamodel
[5:17] <jam13> you need get_by_id or get_one
[5:17] <WebGuest113> i read it
[5:17] <WebGuest113> but..there is long listing and pagination also there
[5:18] <WebGuest113> so how can i use get_one
[5:22] * xera1 (n=philipp@M1022P022.adsl.highway.telekom.at) has joined #silverstripe
[5:27] * jam13 (n=jamie@host81-149-4-192.in-addr.btopenworld.com) Quit ("Leaving")
[5:35] * xeraa (n=philipp@M1022P022.adsl.highway.telekom.at) Quit (Read error: 110 (Connection timed out))
[5:52] * WebGuest113 (n=7aa82cf0@littleted.silverstripe.com) Quit ("CGI:IRC (EOF)")
[5:57] * Zerrvox (n=zerrvox@195.204.107.62) Quit (Read error: 110 (Connection timed out))
[6:05] * Zerrvox (n=zerrvox@195.204.107.62) has joined #silverstripe
[6:29] * dao777 (i=dao@dsl092-132-067.chi1.dsl.speakeasy.net) has joined #silverstripe
[6:31] * WebGuest695 (n=525dac72@littleted.silverstripe.com) Quit ("CGI:IRC (EOF)")
[7:01] * Zerrvox (n=zerrvox@195.204.107.62) Quit (Read error: 110 (Connection timed out))
[7:09] * xeraa (n=philipp@M972P014.adsl.highway.telekom.at) has joined #silverstripe
[7:18] * xera2 (n=philipp@M972P014.adsl.highway.telekom.at) has joined #silverstripe
[7:22] * romanix_ (n=chatzill@88-96-187-153.dsl.zen.co.uk) Quit ("ChatZilla 0.9.80 [Firefox 2.0.0.12/2008020121]")
[7:27] * dio5 (n=dio5@151.163-201-80.adsl-dyn.isp.belgacom.be) has joined #silverstripe
[7:28] * xera1 (n=philipp@M1022P022.adsl.highway.telekom.at) Quit (Read error: 110 (Connection timed out))
[7:37] * xeraa (n=philipp@M972P014.adsl.highway.telekom.at) Quit (Read error: 110 (Connection timed out))
[7:52] <dao777> um i'm having a big brainfart - what is the component which tells you where you are in the site?
[7:52] <dao777> trail or something
[7:52] * dao777 hates flu sickness
[7:57] <Gnx> eh, stupid problem, but how do I use checkbox data in template?:)
[8:20] * simon_w (n=simon_w_@121-73-18-90.cable.telstraclear.net) has joined #silverstripe
[8:29] * Zerrvox (n=zerrvox@195.204.107.62) has joined #silverstripe
[8:56] <simon_w> Gnx, $Name
[8:56] <simon_w> should be true or false
[9:02] * ss-log-simon_w (n=PircBot@121-73-18-90.cable.telstraclear.net) has joined #silverstripe
[9:02] -ss-log-simon_w- This channel is being logged - see http://logs.silverstripe.com/
[9:02] <simon_w> test the bot
[9:02] * ss-log-simon_w (n=PircBot@121-73-18-90.cable.telstraclear.net) Quit (Remote closed the connection)
[9:15] * ss-log-simon_w (n=PircBot@121-73-18-90.cable.telstraclear.net) has joined #silverstripe
[9:15] -ss-log-simon_w- This channel is being logged - see http://logs.silverstripe.com/
[9:15] <simon_w> and another test
[9:16] <simon_w> woo! It works! (:
[9:17] <simon_w> now, tidy up some stuff
[9:24] * ss-log-simon_w (n=PircBot@121-73-18-90.cable.telstraclear.net) Quit (Remote closed the connection)
[9:25] * ss-log-simon_w (n=PircBot@121-73-18-90.cable.telstraclear.net) has joined #silverstripe
[9:25] -ss-log-simon_w- This channel is being logged - see http://logs.silverstripe.com/
[9:26] <simon_w> did it work?
[9:26] <simon_w> woo! it did!
[9:35] * Zerrvox (n=zerrvox@195.204.107.62) Quit (Read error: 110 (Connection timed out))
[10:19] * sminnee (n=sminnee@121-73-69-63.cable.telstraclear.net) has joined #silverstripe
[10:29] * simon_w (n=simon_w_@121-73-18-90.cable.telstraclear.net) Quit (Read error: 104 (Connection reset by peer))
[10:32] * ss-log-simon_w (n=PircBot@121-73-18-90.cable.telstraclear.net) Quit (Read error: 104 (Connection reset by peer))
[10:36] <dio5> anyone filtered newsletter recipients?
[11:07] * emma3_ (n=none@cpe-76-181-178-240.columbus.res.rr.com) Quit ()
[11:07] * sminnee (n=sminnee@121-73-69-63.cable.telstraclear.net) Quit ()
[11:13] * simon_w (n=simon_w_@121-73-18-90.cable.telstraclear.net) has joined #silverstripe
[11:32] <Gnx> umm my checkbox is still not working
[11:33] <Gnx> do I have to make a function of it or something?
[11:33] <simon_w> shouldn't have to
[11:33] <Gnx> (just need some conditional html based on the checkbox value)
[11:33] <simon_w> is the checkbox being stored in the database?
[11:33] <Gnx> but like <% if $Variable = 1> Print stuff <% end_if %>
[11:34] <simon_w> drop the dollar sign
[11:35] <dio5> anyone linked SS to a SMS - gateway?
[11:36] <Gnx> simon_w: parse error
[11:40] <dio5> <% if Var %> <% end_if %>
[11:40] <simon_w> dio5, in which way?
[11:40] <dio5> in both ways :)
[11:41] <dio5> no, I'm gonna need to add members to the SS db as well as to a SMS db
[11:41] <Gnx> parse error
[11:41] <dio5> I'm not sure how it will work though, waiting on information
[11:41] <simon_w> decorate Member, and use augmentWrite
[11:41] <Gnx> this can't be so hard :)
[11:42] <Gnx> but I can't find any example
[11:42] <simon_w> Gnx, what's the error?
[11:43] <Gnx> parse error: unexpected '}'....etc.
[11:44] <simon_w> is the variable name correct? (including case)
[11:44] <Gnx> is..I'll do some more testing with that now
[11:48] <Gnx> okay now I can't even save the page since changing the variable broke it
[11:49] <Gnx> for some reason db/build doesn't update the name into the db
[11:49] <simon_w> It should make a new column...
[11:53] <Gnx> okay wtf now the subpages won't open
[11:55] <Gnx> but the condition works now ;)
[11:55] <Gnx> apparently variable names don't like numbers
[11:56] <Gnx> which leads to me another question, how to affect the description text in the cms whilst having sound variable name?
[11:57] <simon_w> new CheckboxField('Variable', 'Description') (:
[11:57] <Gnx> oh
[11:57] <Gnx> well that probably won't crash my site to do ;)
[11:57] <Gnx> thanks
[11:57] <Gnx> but this is weird
[11:57] <Gnx> the links don't work, even thought they point at right address
[11:57] <Gnx> and if I paste them manually then they do
[11:59] * HellBoy (n=arve@217-133-107.121210.adsl.tele2.no) has joined #silverstripe
[11:59] <HellBoy> Good evening, gents
[11:59] <simon_w> Morning HellBoy
[11:59] <simon_w> Gnx, that's weird...
[11:59] <Gnx> simon_w: extremely, either FF is confused or the server is doing something
[12:00] <HellBoy> I'm having some trouble with my fresh Silverstripe install, anyone here who might be able to help me out?
[12:00] <simon_w> Gnx, try a different browser then
[12:00] <simon_w> HellBoy, maybe...
[12:01] <HellBoy> I'm getting Fatal error: Class 'ReflectionClass' not found in ********/sapphire/core/Object.php on line 249 when I try to install.
[12:01] <HellBoy> Right after the # Building database schema...
[12:02] <HellBoy> A little Googling didn't turn up anything useful
[12:03] <simon_w> which version of SilverStripe?
[12:03] <HellBoy> Latest, 2.2.1.
[12:03] <HellBoy> Fresh database and fresh install
[12:04] <simon_w> and which PHP version?
[12:04] <HellBoy> PHP Version 5.2.5-pl1-gentoo
[12:05] * dao777_ (i=dao@dsl092-132-067.chi1.dsl.speakeasy.net) has joined #silverstripe
[12:05] <simon_w> that's weird...
[12:06] <HellBoy> I'd say.
[12:06] <simon_w> ReflectionClass is part of PHP 5...
[12:06] <HellBoy> Hmm
[12:07] <simon_w> in a phpinfo(); is there a section on Reflection?
[12:07] <HellBoy> '--disable-reflection'
[12:07] <simon_w> that explains it
[12:07] <HellBoy> Righty-O
[12:08] <HellBoy> What does the Reflection class do?
[12:08] <simon_w> PHP 5 comes with a complete reflection API that adds the ability to reverse-engineer classes, interfaces, functions and methods as well as extensions. Additionally, the reflection API also offers ways of retrieving doc comments for functions, classes and methods.
[12:10] <HellBoy> I would assume there's not a security risk involved in enabling this?
[12:11] <simon_w> not that I know of
[12:11] <HellBoy> Goodie
[12:12] * dao__ (n=dao@dsl092-132-067.chi1.dsl.speakeasy.net) has joined #silverstripe
[12:25] * dao777 (i=dao@dsl092-132-067.chi1.dsl.speakeasy.net) Quit (Read error: 110 (Connection timed out))
[12:30] * dao777_ (i=dao@dsl092-132-067.chi1.dsl.speakeasy.net) Quit (Read error: 110 (Connection timed out))
[12:37] * sminnee (n=sminnee@121-73-23-115.cable.telstraclear.net) has joined #silverstripe
[13:23] * dio5 (n=dio5@151.163-201-80.adsl-dyn.isp.belgacom.be) Quit (Read error: 110 (Connection timed out))
[13:24] <HellBoy> simon_w: Seems like your solution worked :)
[13:27] * emma3 (n=none@cpe-76-181-178-240.columbus.res.rr.com) has joined #silverstripe
[13:30] <simon_w> yay! (:
[13:39] <HellBoy> I'm still having some problems though, regarding Allowoverride and mod_rewrite.
[13:40] <HellBoy> Fatal error: Call to undefined function ctype_digit() in /home/nsgp/helskjegg/almostsober.no/sapphire/misc/Browscap.php on line 522
[13:41] <simon_w> did you compile with --disable-ctype?
[13:42] <HellBoy> Arr, it seems like that one's present.
[13:42] <HellBoy> Anything else I should be aware of?
[13:43] <simon_w> no idea
[13:43] <simon_w> what else do you have disabled?
[13:44] <HellBoy> The commands look like this
[13:44] <HellBoy> ./configure' '--prefix=/usr/lib/php5' '--host=i686-pc-linux-gnu' '--mandir=/usr/lib/php5/man' '--infodir=/usr/lib/php5/info' '--sysconfdir=/etc' '--cache-file=./config.cache' '--disable-cli' '--with-apxs2=/usr/sbin/apxs2' '--with-config-file-path=/etc/php/apache2-php5' '--with-config-file-scan-dir=/etc/php/apache2-php5/ext-active' '--without-pear' '--disable-bcmath' '--without-bz2' '--disable-calendar' '--disable-ctype' '--without-cur
[13:44] <HellBoy> arr
[13:44] <HellBoy> './configure' '--prefix=/usr/lib/php5' '--host=i686-pc-linux-gnu' '--mandir=/usr/lib/php5/man' '--infodir=/usr/lib/php5/info' '--sysconfdir=/etc' '--cache-file=./config.cache' '--disable-cli' '--with-apxs2=/usr/sbin/apxs2' '--with-config-file-path=/etc/php/apache2-php5' '--with-config-file-scan-dir=/etc/php/apache2-php5/ext-active' '--without-pear' '--disable-bcmath' '--without-bz2' '--disable-calendar' '--disable-ctype' '--without-c
[13:48] <simon_w> doesn't look like it
[13:49] <HellBoy> Goodie!
[13:49] <HellBoy> Recompiling now
[13:50] <HellBoy> I've got high hopes for Silverstripe, the system looks really sweet
[13:50] <simon_w> (:
[13:50] <HellBoy> Been using Drupal before, and thought about switching to Wordpress for this project, but it seems to be plagued with security flaws.
[13:53] * Tate (n=popcorn@60-242-2-112.static.tpgi.com.au) has joined #silverstripe
[14:04] <HellBoy> Quick question, though
[14:04] <simon_w> yes?
[14:04] <HellBoy> I can't find where I define the site name and site tagline
[14:04] <HellBoy> I would assume I don't have to use FTP access to change that.
[14:04] <simon_w> in the template
[14:04] <simon_w> They aren't settings yet, and not every template has them
[14:05] <HellBoy> Oh
[14:06] <Gnx> you could of course make those into fields if desired
[14:06] <HellBoy> Can I define the default template for the site within the backend or have I got to do this through FTP access as well?
[14:06] <Gnx> ftp
[14:06] <simon_w> at the moment, that requires FTP as well
[14:06] * Tatey (n=popcorn@60-242-2-112.static.tpgi.com.au) Quit (Read error: 110 (Connection timed out))
[14:06] <simon_w> my last GHOP task was making a way of changing that
[14:07] <Gnx> the cms is meant for the content
[14:07] <Gnx> simon_w: and don't you dare joomlaze what is good and clean ;)
[14:08] <simon_w> Gnx, but not every person that can run a site should be given FTP access, so how are they supposed to change theme or install widgets?
[14:09] <Gnx> okay for those maybe
[14:09] <HellBoy> I guess this'll be a one-time job setting up the template and design for the site, and from what I've seen of the backend it seems pretty much superiour to the tools I've used before.
[14:10] <Gnx> simon_w: but it will inevitably convolute the gui more
[14:10] <HellBoy> And seeing how the site is to be used by people whose tech-knowledge is limited to Word, this should be great for them.
[14:10] <Gnx> HellBoy: yup
[14:10] <Gnx> and those ppl should not be allowed into the html or css anyway
[14:10] <Gnx> you can make custom fields for them in the CMS
[14:11] <simon_w> Gnx, two extra drop downs and buttons is clutter?
[14:11] <Gnx> simon_w: well you said theme
[14:11] <simon_w> yes, a drop down to select which one to test, and a button to install
[14:12] <Gnx> ah
[14:12] <Gnx> thats a different matter
[14:12] <Gnx> I thought editing
[14:12] <Gnx> thats cluttertastic
[14:12] <simon_w> nope, just installing
[14:13] <Gnx> that would create a nice layer actually
[14:13] * Gnx knows from experience ordinary people are very scared of even html
[14:14] <simon_w> (:
[14:14] <Gnx> and some unfortunately are not
[14:14] <Gnx> and insist they know stuff (tm)
[14:14] <HellBoy> How do I add modules, such as the blog module?
[14:14] <Gnx> well it says on the blog module page
[14:15] <simon_w> upload them to your main directory, then run db/build?flush=1
[14:16] <HellBoy> Goodie
[14:16] <HellBoy> I'll have to read up on this tomorrow, it's already 02:16am here.
[14:16] <HellBoy> Thanks for all the help, much appreciated :)
[14:16] <simon_w> ooh, your 12 hours behind me (:
[14:17] <Gnx> its an hour more here, and I'm not tired ;)
[14:17] <HellBoy> simon_w: It's the 16th here, so I might be 12 hours ahead ;)
[14:17] <Gnx> HellBoy: get a nice text editor/ftp setup
[14:17] <Gnx> it'll help a lot
[14:17] <simon_w> 16th here as well (:
[14:17] <HellBoy> Oh.
[14:17] <HellBoy> :P
[14:17] <HellBoy> Australia?
[14:17] <simon_w> not quiet
[14:17] <simon_w> NZ (:
[14:18] <HellBoy> Ah, close but no cigar, then.
[14:18] <Gnx> New Zardoz
[14:18] <HellBoy> Anyways, I'm off to bed :)
[14:18] <simon_w> night HellBoy
[14:18] <HellBoy> g'nite
[14:22] <Gnx> I'm working on 3 sites..and its is fun..and often I can directly paste code between them
[14:22] <Gnx> don't remember this job was like this before SS ;)
[14:22] <Gnx> kinda like...fun ;)
[14:34] <sminnee> Gnx: You should try and create some common classes that you then subclass
[14:34] <sminnee> instead of copy and paste
[14:34] <sminnee> that way, if you fix a bug in the common class, it's fixed in all the sites, without doing more copy and paste
[14:35] <sminnee> You could even make your own "kitchen sink" Page.php class, and on each of your sites you just change the templates.
[14:35] <sminnee> depending on how similar your projects are.
[14:35] * xeraa (n=philipp@M972P014.adsl.highway.telekom.at) has joined #silverstripe
[14:39] * xeraa (n=philipp@M972P014.adsl.highway.telekom.at) has left #silverstripe
[14:39] * simon_w hopes Chris remembers to ask Leslie
[14:42] <Gnx> sminnee: good point
[14:42] <sminnee> simon_w: what are you talking about? :p
[14:43] <Gnx> but for now its been mostly tweaking existing modules
[14:43] <simon_w> sminnee, He said he'll try and get me a free trip to Google as well (:
[14:44] <sminnee> heh sweet.
[14:44] <sminnee> that would be pretty cool! :)
[14:44] <simon_w> (:
[14:45] <sminnee> If you haven't heard about it in a week or so, you might want to give him an email or something; they're generally pretty generous but they're busy and so may sometimes forget things :)
[14:45] <sminnee> Or just talk to Sig about it :p
[14:46] <Gnx> hmm a bug
[14:46] <simon_w> ooh, buggies!
[14:46] <Gnx> the cms writes urls from umlauts to "-"
[14:47] <Gnx> when � should be a and � should be o
[14:50] <simon_w> oh, I've got an update for ss-log that puts anchors in the logs and reorganises the index page
[14:51] <Gnx> thats actually quite annoying, what I described above
[14:51] <simon_w> Gnx, can a varchar handle umlauts?
[14:52] * xera2 (n=philipp@M972P014.adsl.highway.telekom.at) Quit (Read error: 110 (Connection timed out))
[14:52] <Gnx> umm, good question
[14:53] <Gnx> I think I found whats the problem
[14:53] <Gnx> // Keep it clean
[14:53] <Gnx> } else if(isset($this->changed['URLSegment']) &&
[14:53] <Gnx> $this->changed['URLSegment']) {
[14:53] <Gnx> $segment = ereg_replace('[^A-Za-z0-9]+','-',$this->URLSegment);
[14:53] <Gnx> $segment = ereg_replace('-+','-',$segment);
[14:53] <Gnx> that regexp can't do umlauts since they're not in the standard charset
[14:53] <Gnx> (from SiteTree.php line 749)
[14:59] * sminnee_ (n=sminnee@121-73-23-115.cable.telstraclear.net) has joined #silverstripe
[14:59] * sminnee (n=sminnee@121-73-23-115.cable.telstraclear.net) Quit (Read error: 104 (Connection reset by peer))
[14:59] <sminnee_> Gnx: For best results, you would need to find a function that mapped characters with diacritical marks (umlaut, acute, grave, macron, etc) to regular A-Z characters.
[15:00] <Gnx> yeah
[15:00] * sminnee_ (n=sminnee@121-73-23-115.cable.telstraclear.net) Quit (Read error: 104 (Connection reset by peer))
[15:00] <Gnx> and then stick that to the regexp part
[15:03] * sminnee (n=sminnee@121-73-23-115.cable.telstraclear.net) has joined #silverstripe
[15:03] <sminnee> If you had to make a manual map, it would be difficult to ensure that you had covered *everything*.
[15:04] <Gnx> well I don't need to cover everything
[15:04] <sminnee> This might help: http://nz2.php.net/strtr
[15:04] <sminnee> look in the comments
[15:04] <Gnx> its just that those 2 umlauts occur in finnish about as frequently as any other vowel
[15:05] <Gnx> thanks, that is helpful
[15:05] <simon_w> Couldn't you use MySQL to convert it as well?
[15:06] * _3dkiwi (n=jim@203.96.63.38) has joined #silverstripe
[15:06] <Gnx> well the it gets Converted in the SiteTree.php to "-"
[15:06] <Gnx> so I would have to fix it there
[15:06] <sminnee> yeah
[15:07] <sminnee> I don't recommend using MySQL
[15:07] <Gnx> but if I translate the chars
[15:07] <simon_w> http://nz2.php.net/convert_cyr_string may be helpful?
[15:07] <Gnx> before they reach the reg exp
[15:07] <Gnx> then it should be fine
[15:07] <Gnx> exactly
[15:07] <sminnee> I'm not sure that MySQL deals with the utf8 encoded strings that SilverStripe passes it very well
[15:08] <sminnee> Also, we're looking at supporting postgresql in the next few months, and so we want to minimise any db-specific code
[15:08] <Gnx> well I wouldn't want to pass anything except standard chars to urls anyway :)
[15:08] * HellBoy (n=arve@217-133-107.121210.adsl.tele2.no) Quit ("...Kaptein Krok er kanskje en heller lunken onanist, men en glimrende voldtektsmann.")
[15:08] <sminnee> I'm not sure that we're dealing with crylic, really.
[15:09] <Gnx> nope
[15:10] * xera1 (n=philipp@M1009P018.adsl.highway.telekom.at) has joined #silverstripe
[15:10] <Gnx> not me
[15:10] * xera1 (n=philipp@M1009P018.adsl.highway.telekom.at) has left #silverstripe
[15:10] <Gnx> at least
[15:10] <Gnx> I'm fine with translating umlauts to standard chars
[15:12] <sminnee> Gnx: It would be good if you could make a patch that converted acutes, graves, etc as well as umlauts
[15:12] <sminnee> then we will be able to merge it into the standard release so that you'll be able to upgrade more easily.
[15:13] <Gnx> well, I'll first try something simple like converting just the umlauts
[15:13] <Gnx> if it works I can just stick a bigger translation set on it
[15:15] <simon_w> You can't even cheat and remove a constant amount...
[15:17] <Gnx> allthough its a bit complicated
[15:17] <Gnx> since its also about deciding to what ascii char the special character will be written to
[15:17] <Gnx> I mean its just a decision that in finnish urls are written with a and o
[15:18] <Gnx> could also be ae and oe
[15:20] <sminnee> Gnx: Doing a language-specific translation could get quite nasty
[15:21] <sminnee> Just "removing the umlaut", turning é into e and ë into e
[15:21] <sminnee> would be a big improvement on what we currently have.
[15:21] <sminnee> also strtr() seems to only support translation of 1 character into another single character?
[15:22] <Gnx> yup
[15:22] <Gnx> and currently I'm having no luck with it
[15:22] <sminnee> really?
[15:23] <sminnee> You might need to specify the umlaut characters by using an escaped notation
[15:23] <sminnee> remember that the characters will be in unicode
[15:23] <simon_w> I got strtr to change two characters into 3
[15:23] <sminnee> oh ok
[15:23] <sminnee> and that your text editor may not be saving your ë character using unicode encodin.
[15:24] <sminnee> you might want to look in the /lang folder to see how things are encoded there.
[15:28] <Gnx> yup, and also I can't figure out how everything is done in SiteTree.php either
[15:36] <CIA-33> silverstripe: simonw * r49624 /open/modules/embargoexpiry/trunk/ (README INSTALL): Added instructions for installing the single page type or the decorator. Updated the readme, as the patch isn't always required.
[15:36] * simon_w hugs CIA-33
[15:36] * CIA-33 hugs simon_w
[15:43] <simon_w> sminnee, can you have a look at my patch for can()?
[15:43] <sminnee> where is it?
[15:43] <simon_w> http://open.silverstripe.com/ticket/2198
[15:43] <sminnee> jheh
[15:44] <sminnee> extend() isn't normally used to return values.
[15:44] <sminnee> Where have you used augmentCan() ?
[15:44] <simon_w> http://svn.silverstripe.com/open/modules/embargoexpiry/trunk/code/EmbargoExpiryDecorator.php
[15:48] <sminnee> Hmm.
[15:48] <sminnee> The whole Can() API is a bit messed up.
[15:48] <sminnee> Like - it seems that code should be broken out into SiteTree::canView() and SiteTree::canEdit()
[15:52] <simon_w> but there's still the problem of decorators not being able to override any of the can*() functions
[15:55] <sminnee> Yeah
[15:56] <sminnee> We'd need augmentCanView() and augmentCanEdit(), in that case.
[16:05] <simon_w> done in the same way as my current patch?
[16:06] <CIA-33> silverstripe: simonw * r49627 /open/modules/embargoexpiry/trunk/INSTALL: Need to edit _config.php if not using the decorator
[16:31] * sminnee (n=sminnee@121-73-23-115.cable.telstraclear.net) Quit ()
[16:32] * sminnee (n=sminnee@121-73-23-115.cable.telstraclear.net) has joined #silverstripe
[16:45] * Tatey (n=popcorn@60-242-2-112.static.tpgi.com.au) has joined #silverstripe
[16:46] <simon_w> can someone hurry up and make a way for LifeType to get imported into SilverStripe?
[16:49] <sminnee> simon_w: Yes - the same way as the current patch should be fine. Except that you should only need to pass the boolean as an argument, rather than the array.
[16:50] <sminnee> simon_w: What's LifeType?
[16:50] <simon_w> Blogging system I use
[16:50] <simon_w> far too hard to hack
[16:50] <sminnee> So you want to be able to export lifeType data into silverstirpe/
[16:50] <simon_w> yeah
[16:50] <sminnee> Does it have any export support?
[16:51] <simon_w> nope
[16:51] <sminnee> What's the back-end database
[16:52] <simon_w> articles, articles_text, articles_comments, articles_notifications
[16:52] <sminnee> Is your lifetype database on the same server as your silverstripe database?
[16:53] <simon_w> It will end up like that
[16:53] <sminnee> You could make LifeTypeImporter extends Controller, with a function index()
[16:53] <sminnee> So something like
[16:53] <sminnee> $records = DB::query("SELECT * FROM lifetype.articles");
[16:53] <sminnee> foreach($records as $record)
[16:53] <sminnee> $b = new BlogEntry(); $b->Title = $record['Title']; $b->Content = $record['Content'];
[16:53] <sminnee> $b->write();
[16:54] <sminnee> That code is obviously a little bit hand-wavy
[16:54] <sminnee> but do you get the idea?
[16:54] <simon_w> yeah
[16:54] <sminnee> If you wanted, you could make it generate a new BlogHolder() page, and then create BlogEntry() pages under that.
[16:56] <simon_w> and then just call the class using URL handling
[17:09] * Tate (n=popcorn@60-242-2-112.static.tpgi.com.au) Quit (Read error: 110 (Connection timed out))
[17:28] * simon_w loves his widget installer (:
[17:42] <simon_w> quick question. With a theme from SS.com, am I allowed to change the created by string to a comment, and add Powered by SilverStripe instead?
[17:54] * Wojtek-I`m-18-no (i=Wojtek@aafj222.neoplus.adsl.tpnet.pl) has joined #silverstripe
[17:54] <Wojtek-I`m-18-no> howdy!
[17:54] * Wojtek-I`m-18-no is now known as Wojtek
[17:54] <simon_w> afternoon Wojtek-I`m-18-no
[17:54] <Wojtek> what a party it was!
[17:54] <Wojtek> my head still hurts a bit
[17:54] <Wojtek> but it was a good one
[17:54] <simon_w> you might be able to answer my question:
[17:54] <simon_w> With a theme from SS.com, am I allowed to change the created by string to a comment, and add Powered by SilverStripe instead?
[17:54] <Wojtek> =)
[17:55] <simon_w> I meet Leslie's boss last night (:
[17:55] <Wojtek> where?
[17:55] <simon_w> WebStock
[17:55] <Wojtek> nice
[17:55] <Wojtek> do you mean just changing the footer?
[17:56] <simon_w> yeah
[17:56] <Wojtek> should be... templates/includes/footer.php
[17:57] <Wojtek> templates/Includes/Footer.php to be precise
[17:57] <simon_w> but am I allowed to change it?
[17:57] <simon_w> templates/Includes/Footer.ss q:
[17:57] <Wojtek> it depends how
[17:57] <simon_w> comment it out, stick in powered by silverstripe
[17:57] <simon_w> It'll still be in the source code, just not visible
[17:58] <Wojtek> well, certainly you're not allowed to totally remove the "created by" label
[17:58] <Wojtek> ehm it depends on the theme creator
[17:58] <Wojtek> if he agrees to that, sure then, but if not...
[17:59] <Wojtek> and if it's my theme
[17:59] <simon_w> I'll just paraphrase it then
[17:59] <simon_w> Jo?o's
[17:59] <Wojtek> k
[17:59] <Wojtek> so nevermind
[17:59] <Wojtek> :p
[17:59] * Wojtek is going to sleep now
[17:59] <Wojtek> cy
[17:59] <simon_w> laters
[17:59] * Wojtek (i=Wojtek@aafj222.neoplus.adsl.tpnet.pl) Quit ("Leaving")
[18:33] <Gnx> damn, don't get why my umlaut fix doesn't work
[18:33] <simon_w> it doesn't like you?
[18:33] <Gnx> well I found the lines where it corrects the ampersand for example
[18:35] <Gnx> or then its the wrong line
[18:38] <Gnx> the comments are a bit vague at times ;)
[18:40] <Gnx> damn, wasn't that either
[18:46] <Gnx> funny, I found exactly where the auto-urling is done
[18:46] <Gnx> changed the code
[18:46] <Gnx> and nothing happens
[18:52] <Gnx> bah, I'll try more tomorrow
[18:57] <sminnee> Are you having trouble finding which piece of code to correct?
[18:57] <sminnee> Are you working in the JS or the PHP?
[18:57] <sminnee> I have a suspicion that the method is implemented twice :P
[19:00] <Gnx> sminnee: well I found in php the function that does formatting for the url in cms
[19:01] <sminnee> And is it getting passed an undecoded URL?
[19:02] <sminnee> I would suggest that you add some debugging command to see what that method is getting passed
[19:02] <sminnee> because it's possible that there's another stage in the pipeline that's already stripping the ö out of the URL
[19:02] <sminnee> and that's why your method fails.
[19:02] <sminnee> If you just Debug::show() the data, then the save method will give you an error message listing the data.
[19:03] <sminnee> in the CMS
[19:04] <Gnx> hmm okay, I'll try that tomorrow
[19:04] <Gnx> now I need sleep
[19:08] <sminnee> ah where are you?
[19:08] <sminnee> It's 7pm here :P
[19:10] * sminnee (n=sminnee@121-73-23-115.cable.telstraclear.net) Quit ()
[19:14] * sminnee (n=sminnee@121-73-23-115.cable.telstraclear.net) has joined #silverstripe
[19:21] * dao__ (n=dao@dsl092-132-067.chi1.dsl.speakeasy.net) Quit (Read error: 110 (Connection timed out))
[19:22] * sminnee_ (n=sminnee@121-73-23-115.cable.telstraclear.net) has joined #silverstripe
[19:22] <simon_w> aah, the template's for the old version of the blog
[19:29] * sminnee_ (n=sminnee@121-73-23-115.cable.telstraclear.net) Quit (Read error: 104 (Connection reset by peer))
[19:35] * sminnee (n=sminnee@121-73-23-115.cable.telstraclear.net) Quit (Read error: 110 (Connection timed out))
[19:39] * sminnee (n=sminnee@121-73-23-115.cable.telstraclear.net) has joined #silverstripe
[19:42] * simon_w haxors the blog modules
[19:42] <simon_w> *module
[19:44] * sminnee_ (n=sminnee@121-73-23-115.cable.telstraclear.net) has joined #silverstripe
[19:48] * sminnee_ (n=sminnee@121-73-23-115.cable.telstraclear.net) Quit (Read error: 104 (Connection reset by peer))
[19:48] * sminnee_ (n=sminnee@121-73-23-115.cable.telstraclear.net) has joined #silverstripe
[19:51] * sminnee_ (n=sminnee@121-73-23-115.cable.telstraclear.net) Quit (Read error: 104 (Connection reset by peer))
[19:52] * sminnee_ (n=sminnee@121-73-23-115.cable.telstraclear.net) has joined #silverstripe
[19:52] <simon_w> is there any function I can pass stuff through to close any open HTML tags?
[19:59] * sminnee (n=sminnee@121-73-23-115.cable.telstraclear.net) Quit (Read error: 110 (Connection timed out))
[20:01] * dao777 (i=dao@dsl092-132-067.chi1.dsl.speakeasy.net) has joined #silverstripe
[20:06] <simon_w> sminnee_, any ideas?
[20:09] * sminnee_ (n=sminnee@121-73-23-115.cable.telstraclear.net) Quit (Read error: 110 (Connection timed out))
[20:20] * dao777 (i=dao@dsl092-132-067.chi1.dsl.speakeasy.net) Quit (Read error: 110 (Connection timed out))
[20:21] * sminnee (n=sminnee@121-73-23-115.cable.telstraclear.net) has joined #silverstripe
[20:43] * Tate (n=popcorn@60-242-2-112.static.tpgi.com.au) has joined #silverstripe
[20:50] * sminnee (n=sminnee@121-73-23-115.cable.telstraclear.net) Quit ()
[20:57] * Tatey (n=popcorn@60-242-2-112.static.tpgi.com.au) Quit (Read error: 110 (Connection timed out))
[21:12] * Grazyag (n=d201c61f@littleted.silverstripe.com) has joined #silverstripe
[21:17] * Grazyag (n=d201c61f@littleted.silverstripe.com) Quit ("CGI:IRC (EOF)")
[21:30] * simon_w (n=simon_w_@121-73-18-90.cable.telstraclear.net) Quit ("This computer has gone to sleepy land with its Leopard")
[21:33] * _3dkiwi (n=jim@203.96.63.38) Quit ("Konversation terminated!")
[21:48] * WebGuest988 (n=7aa83852@littleted.silverstripe.com) has joined #silverstripe
[21:49] <WebGuest988> is good time to call you for help??
[21:49] <WebGuest988> i am getting one problem in template
[21:50] <WebGuest988> when i am using <% control MethodName %> and using this link <a href="{$Link}">link</a>
[21:50] <WebGuest988> that $link giving me blank/null value
[21:51] <WebGuest988> but when i am calling <a href="{$link}"> outsite of <% Control method %></% end_control %>
[21:51] <WebGuest988> its giving me correct output.. {$link} returing write ans..
[21:51] <WebGuest988> Why this happing please help ??
[23:07] * xeraa (n=philipp@M855P004.adsl.highway.telekom.at) has joined #silverstripe
[23:33] * xeraa (n=philipp@M855P004.adsl.highway.telekom.at) has left #silverstripe
[23:37] <WebGuest988> Hello
[23:37] <WebGuest988> please tell me
[23:38] <WebGuest988> how can i impletement
[23:38] <WebGuest988> that condition into template
[23:38] <WebGuest988> <% if CurrentMember.ID= Id %>
[23:38] <WebGuest988> <% end_if % >
[23:38] <WebGuest988> is this possible??
[23:40] <WebGuest988> HELLO SS GROUP
[23:40] <WebGuest988> Is any HELP HERE
[23:40] <WebGuest988> i am looking for helo
[23:40] <WebGuest988> help
[23:40] <WebGuest988> pleas
[23:41] <WebGuest988> Is any SS DEVELOPER HERE ????
[23:41] <WebGuest988> Is any SS DEVELOPER HERE ????
[23:45] <WebGuest988> HUHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHh
[23:45] <WebGuest988> NO HELPPPPPPPPPPPPPPPPPPP
[23:54] * WebGuest988 (n=7aa83852@littleted.silverstripe.com) Quit ("CGI:IRC (EOF)")
These logs were automatically created by ss-log on irc.freenode.net using the Java IRC LogBot.
These logs are provided by Simon Welsh, running on a SiteHost VPS.