# |
Apr 13th 2010, 18:58 |
savant |
another, intermittent, issue was the bbcode formatter breaking when there was a large incoming bit of encoded code. for whatever reason the regex just breaks completely in 5.3.1 when there are large bits. not sure why, but I solved it by storing the unencoded code in an array and then replacing it with a hash of that code before encoding/decoding |
# |
Apr 13th 2010, 18:54 |
savant |
lots of the code is still yucky (using a custom Model::read() function) but it looks like it works and can be refactored |
# |
Apr 13th 2010, 18:54 |
savant |
I have gotten it to the point where most (all?) public actions work. I haven't tested commenting, but theoretically that works as well |
# |
Apr 13th 2010, 18:53 |
savant |
im just trying to stay away from building custom components or using outside plugins |
# |
Apr 13th 2010, 18:50 |
savant |
unfortunately this is not available in 1.2.x or 1.3 |
# |
Apr 13th 2010, 18:50 |
savant |
and then tell the AuthComponent to use that whenever it tries to Authenticate a user |
# |
Apr 13th 2010, 18:50 |
savant |
ideally, i could specify a function in my User model, say User::login() |
# |
Apr 13th 2010, 18:49 |
savant |
which is okay, but the AuthComponent doesn't allow one to override HOW the user is found |
# |
Apr 13th 2010, 18:49 |
savant |
well the way the bakery works, it pulls in data from related models |
# |
Apr 13th 2010, 18:48 |
PhpNut |
savant: you talking about return $this->Session->read('User'); ? |
# |
Apr 13th 2010, 18:48 |
savant |
im just hesitant to use plugins outside of the CakePHP core, like Authsome instead of AuthComponent |
# |
Apr 13th 2010, 18:48 |
PhpNut |
I wrote most of the user model code |
# |
Apr 13th 2010, 18:48 |
savant |
haha |
# |
Apr 13th 2010, 18:48 |
savant |
i got hacky and added in replacements to functions in the AppModel, so most of it works now (I've not touched the admin functions) but I want to remove all of it |
# |
Apr 13th 2010, 18:48 |
PhpNut |
btw I did not write that code :) |
# |
Apr 13th 2010, 18:48 |
Predominant |
Sorry about the delay there |
# |
Apr 13th 2010, 18:48 |
Predominant |
savant: I'll get this stuff together for you now. |
# |
Apr 13th 2010, 18:47 |
savant |
but it breaks all over the place in 1.3 |
# |
Apr 13th 2010, 18:47 |
savant |
the bakery runs mostly fine in 1.2.x |
# |
Apr 13th 2010, 18:47 |
savant |
PhpNut: yeah I saw. it took me a while to realize that |
# |
Apr 13th 2010, 18:46 |
PhpNut |
there are different levels of users in the bakery |
# |
Apr 13th 2010, 18:46 |
Predominant |
Perhaps your frustrations / issues, savant, could be channeled into productive discussion about architecture, rather than bitching about it on Twitter. |
# |
Apr 13th 2010, 18:45 |
savant |
feel free to do so, my code is in the remaster branch at github.com/josegonzalez/bakery |
# |
Apr 13th 2010, 18:45 |
PhpNut |
auth was not in 1.0 ;) |
# |
Apr 13th 2010, 18:45 |
savant |
yes no problem |
# |
Apr 13th 2010, 18:45 |
PhpNut |
I might just take time to review some of your current code and release my anguish of it on twitter, you like that idea? :) |
# |
Apr 13th 2010, 18:44 |
savant |
sorry |
# |
Apr 13th 2010, 18:44 |
PhpNut |
So I take your bashing on twitter a little personal |
# |
Apr 13th 2010, 18:44 |
savant |
oh well |
# |
Apr 13th 2010, 18:44 |
savant |
if only it were more similar to how AuthComponent works |
# |
Apr 13th 2010, 18:43 |
savant |
hahahah |
# |
Apr 13th 2010, 18:43 |
savant |
refactoring it to use AuthComponent is proving to be a pain |
# |
Apr 13th 2010, 18:43 |
PhpNut |
and FYI I wrote _checkPerms if I remember correctly |
# |
Apr 13th 2010, 18:43 |
savant |
thats a long time ago |
# |
Apr 13th 2010, 18:43 |
PhpNut |
yes |
# |
Apr 13th 2010, 18:43 |
savant |
damn |
# |
Apr 13th 2010, 18:43 |
savant |
oh shit really |
# |
Apr 13th 2010, 18:43 |
PhpNut |
savant you do realize the bakery code was wrote before 1.0 was stable right? |
# |
Apr 13th 2010, 00:37 |
savant |
haha okay |
# |
Apr 13th 2010, 00:36 |
Predominant |
Need some merge action |
# |
Apr 13th 2010, 00:36 |
Predominant |
I have some on my iPad, and some on my macbook here |