Member
Member
typenerd   30-09-2008, 20:17
#1

Hi there, I'm trying to create a custom page so others can tag and describe photos, but I'm not exactly sure how to go about this. When I made edits to the admin pages and took out fields I noticed they started to be saved as null values in mysql.

How can I setup a custom admin page that would allow for a simplified set of fields that wouldn't create empty values in the db. Should I just use hidden fields in HTML?

Member
Member
sbillard   30-09-2008, 20:30
#2

Are you well versed in PHP coding? If not just stop right here.

If you are, then you can copy the "POST" handling code and the form code from the appropriate places in admin into your own script and give your users access to that script.

Member
Member
typenerd   03-10-2008, 15:05
#3

Hi there, yeah I can handle that. I'll give it a shot today and see how it goes, thanks!

Member
Member
typenerd   03-10-2008, 15:39
#4

*edit: nevermind, I needed to comment out: //genAlbumUploadList($mcr_albumlist)

--

OK, so I've got the edit code from admin.php page=edit, and I've got a loop that contains 611 images, but when it comes to output the form I get an error:

Fatal error: Call to a member function getAlbums() on a non-object in /var/www/apache2-default/ee/photodrop/zp-core/admin-functions.php on line 470

What could cause the getAlbums function to behave this way? My tagging.php page isn't even calling getAlbums() anywhere.

Administrator
Administrator
acrylian   03-10-2008, 15:51
#5

getAlbums is a class method, you need to use it with an object. You probably did something wrong on your tagging.php page..:-)

Member
Member
typenerd   03-10-2008, 18:07
#6

How can I replace $image->getThumb with something that will reference the same thumbnail I'm using on my album.php page?

My album.php uses this for thumbnails:
printCustomSizedImage(null, 220, 220);

And I can pass a custom value in my tagging.php like:
$image->getSizedImage(220);

But it recreates the file instead of using a cached version. What's up? How can I just use the same cached image in the tagging.php file?

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.