Re: [Phpslash-devel] problem with submission block and user errors...
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2003-02-24 14:44:19
|
On Sun, Feb 23, 2003 at 02:51:47PM -0800, Ajay Sharma wrote: > > Hey, > > I'm starting to play around with the phpslash 0.7 series and I'm > noticing that when I log into the site there's a list of all the > submissiosn... nice! Problem is that the 'next' button doesn't work on > the submission block. The '$first' variable isn't being set in > Block_render_submission.class::submissions so I threw in a: > > $first = $_GET['next']; > > at the top of the method and it now works fine. This is kind of a hack > way to do it, I wasn't sure if the GET variables were supposed to be > pulled in via the $block_info var or what. A lot of code in this method > is just copied from Submission.class::listSubmission? Is that a good > idea? I think it we should be trying to reuse the code from the > Submission class in the block instead of having it set in two different > places... > I'm not surprised at this. Yes, it was a hack and should have used the method from the submission class. > Also, I was playing around with the user account stuff. So I registered > me a new account. I could log in a stuff but I couldn't change any of > my user settings. The only way I could change stuff (like the url, > quote, etc...) was to logout, login as an admin, then change it throught > the author interface. > I can tell you how this happened to me too. I was testing the skins that Peter submitted. The authorProfile.tpl in that skin does this and I've forgotten why. Using the authorProfile.tpl from the basic skin does not have this problem. I've got a work in progress of these skins up on phpslash.org. I'll post what I was able to get done to the patch manager so maybe they can get cleaned up some more. I like the "home" one quite a bit. Joe > later, > ajay > > -------------------------------------------------------------------- > Satyajot (Ajay) Sharma > ss...@od... > -------------------------------------------------------------------- > |