News:

Who uses forums anymore?

Main Menu

OSPAP2 -- Beta test

Started by iago, September 30, 2007, 06:57:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

iago

Quote from: Blaze on October 02, 2007, 11:24:14 PM
I found another bug.  I think you forgot to update your database table for the new registration values.

exception 'Exception' with message 'MySQL Error: Unknown column 'user_show_empty' in 'field list': INSERT INTO `tbl_user` (`user_id`,`user_username`,`user_email`,`user_is_advanced`,`user_show_empty`,`user_remember_filter`,`user_realname`,`user_location`,`user_password`) VALUES ('','Blaze','ian@maide.ca','1','1','1','Ian','Ontario, Canada','Censored Password');' in /home/ron/public_html/ospap2/cls/clsDB.php:601
Stack trace:
#0 /home/ron/public_html/ospap2/cls/clsDB.php(585): clsDB::query('INSERT INTO `<<...')
#1 /home/ron/public_html/ospap2/cls/clsDB.php(666): clsDB::insertQuery('INSERT INTO `<<...')
#2 /home/ron/public_html/ospap2/cls/clsUser.php(69): clsDB->save()
#3 /home/ron/public_html/ospap2/pages/members.php(98): clsUser->attemptCreate()
#4 /home/ron/public_html/ospap2/cls/clsTemplate.php(71): require('/home/ron/publi...')
#5 /home/ron/public_html/ospap2/index.php(121): clsTemplate->get()
#6 {main}
Should be fixed. Give 'er a go.

iago

Quote from: wires on October 02, 2007, 11:45:47 PM
http://www.javaop.com/~ron/ospap2/index.php?action=albums
Quote
Fatal error: Call to a member function get() on a non-object in /home/ron/public_html/ospap2/pages/albums.php on line 42
Fixed. Thanks!

iago

Quote from: rabbit on October 03, 2007, 12:00:21 AM
Add a "I forgot my password" link.  I forgot my password  >:(
Haha, nice one. I may do that tonight. For now, want me to just delete your account/reset your password?

rabbit

That would be great.  Make my password "password", and make my access code "access code" (:D)

iago

All right, your password should now be "password". I have no idea what you're talking about for the access code, though. :P

rabbit

It's from RvB :'(

Also, maybe display how many pictures are in each album on the Album List page http://www.javaop.com/~ron/ospap2/index.php?action=albums

iago

Quote from: rabbit on October 03, 2007, 09:10:51 PM
It's from RvB :'(
I still don't know what you're talking about, although RLB are my initials. :)

Quote from: rabbit on October 03, 2007, 09:10:51 PM
Also, maybe display how many pictures are in each album on the Album List page http://www.javaop.com/~ron/ospap2/index.php?action=albums
It already does, if you have JavaScript enabled and you click the little "+". If you have JavaScript disabled, then cute little features like that won't work but the site itself will. :)

Sidoh

Quote from: iago on October 03, 2007, 10:26:14 PM
I still don't know what you're talking about, although RLB are my initials. :)

Red vs. Blue.  It was some weekly (?) video enacted with characters from the first Halo game.

iago

Quote from: Sidoh on October 03, 2007, 10:55:13 PM
Quote from: iago on October 03, 2007, 10:26:14 PM
I still don't know what you're talking about, although RLB are my initials. :)

Red vs. Blue.  It was some weekly (?) video enacted with characters from the first Halo game.

Haha ok. I have no idea what that is, and I really don't know anything about Halo (other than that I didn't like it). Ohwell. :)

iago

#39
So I rolled out the new version, build 2. I've made a lot of suggested changes (all of them posted here, I think?), the most major ones being:

  • Added the ability to automatically upgrade the database from any lower version to the current version. Doesn't really affect users, but it helps me out a lot.
  • Added "Forgot password" functionality, which emails you a temporary password.
  • You can now upload pictures from the main page, but you have to select the album manually (of course).
  • You can now upload a .zip file, if the php version on the server supports it.

    Right now, my server doesn't support .zip uploading, but that should change within the hour.

    As usual, comments are appreciated! Try out the new stuff and tell me what you think.


    <edit> Server has been recompiled, .zip files can now be uploaded.

rabbit

Add tar support if you can.

iago

I'm not sure whether or not PHP supports that. Anybody know?

Sidoh

Quote from: iago on October 12, 2007, 03:15:27 AM
I'm not sure whether or not PHP supports that. Anybody know?

I'm not sure, but isn't the format of a tar file pretty straightforward?

rabbit

SMF's webinstall.php file seems to be able to decompress and open tar(.gz) files just fine, and I remember doing something with tars.

iago

So from what I can find, there is gzip and rar compression built into PHP, but not tar. Although tar is simple enough, the only library I could find is standard GPL, which is no good to me.

I could use commandline tools, but that sounds like trouble/exploits waiting to happen.

I don't think it's a big enough deal, really. Most Linux systems come with a zip utility (infozip, I think?). Of course, if there's a way to convert a tgz to a zip on the fly, then I could just do that on the server end into a temp file, if the right programs are available.