Evening guys,
Often I log into my G2 install wanting to just quickly upload an image without surfing to my album, clicking "add new items", etc., I'm sure my users would like this option as well.
I've decided to try to create a module for the task that would work as follows:
1) Register a link somewhere visible that, when clicked, would open a page (small pop-up box, I was thinking) that would just let the user browse for a pic on their harddrive and maybe enter a caption for it. (Only logged-in users will see this link or have access to the page).
2) Upon hitting "upload", the module would find the user's album (similar to the way the "Your Album" link works), check that they have permissions to upload (obviously) and use G2s API to upload the pic/item.
3) After the upload is complete, the page will redirect to that photo/item (or in case of error, can error out there).
From what I see, it shouldn't be that hard to do - I'm planning to draft up some code tonight but I'll definitely need the assistance of the devs with the more indepth API interactions.
What do you think?
Posts: 239
Scrap the pop-up idea, that is probably bad news, but overall it shouldn't be too bad to make a "quick upload" link in one of the menu's, then use the logic from "Your Album" to have the link send you to the add items form for that album.
Posts: 36
Did anyone ever get this to work?
I'm trying to do the same thing
Joomla! 1.0.11
G2 Bridge 2.0.13
Gallery version = 2.1.2 core 1.1.0.2
PHP version = 4.4.4 cgi
Webserver = Apache/1.3.37 (Unix) mod_fastcgi/2.4.2 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 Ope