Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Is there a Image upload mod like this?

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Integration » phpBB3 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
WizardOfZo
Supporting Member
Guru
Guru


Joined: Sep 24, 2008
Posts: 55

PostPosted: Fri Dec 12, 2008 1:39 pm    Post subject: Is there a Image upload mod like this? Reply with quote

One mod that would round out the phpBB3 Gallery2 integration for me would be something like this:

When a member posts on phpBB3 and wants to include a image (or other Gallery2 compatible file)...

Instead of using the standard "attach file" method that leaves the image in the phpBB3 files directory,
There would be a bbcode button that brings up a popup window like g2img does.

This window would do 2 functions;
First it would allow you to upload a image from the members computer to that members Gallery2 directory tree (or some other directory specified by the admin)
Second, it would allow the member to choose how to display the image in phpBB3 post (as g2img does)

After many years of running various boards, I always have someone come ask me to "Find me my photo I posted back whenever" And of course, I dont have the time to open the archives and search.

With this mod, I think it would encourage people to use the Gallery for their photos worth preserving, and images that are of a temporary nature could be put in a gallery directory that would be cleaned out periodically.

I assume this is not out there as a mod yet.
How hard would it be to do this?
and would anyone else find this useful for their site?
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Is there a Image upload mod like this?  

Back to top
WizardOfZo
Supporting Member
Guru
Guru


Joined: Sep 24, 2008
Posts: 55

PostPosted: Thu Dec 18, 2008 5:04 am    Post subject: Re: Is there a Image upload mod like this? Reply with quote

I am hoping someone can figure this out.
I could probably kludge something together if I knew how to do this code, but I also wonder if the pieces are already out there to do this.

1) create a BBcode button to open a pop up window with Gallery2 -upload image from Browser (in a pre-chosen gallery).

2) When that window closes a new one comes up with g2Img, (if possible in that gallery, with th uploaded image pre-selected)

Could this be done?

Is there a easier way already available?
Back to top
Offline View user's profile Send private message
PoPoutdoor

Wizard
Wizard


Joined: Jan 20, 2006
Posts: 129

PostPosted: Thu Dec 18, 2008 3:54 pm    Post subject: Re: Is there a Image upload mod like this? Reply with quote

Seems you want to manage all users' upload from Gallery2.

The question is: Is that better(easier) to manage photo uploads with G2 than phpbb?

What you wanted can be done with G2 integration, with user album module enabled and disable phpbb3 file attachments(assumed file types are supported in both). All user uploads will be in G2 user album, and be managed by the user, if the G2 permissions settings are right.

If you want 1) above, create a BBcode button is the easy part, but using G2 to process the uploads is the hard part. You needed to add new functions into current integration package to make this works.

For part 2), It can be done without calling G2IS. It will be easier handled by the upload routine.
Maybe you can named this G2IU - Gallery2 Image Uploads Wink

Study the G2 API document first, I can tell this can be done with some hard works.
Back to top
Offline View user's profile Send private message
WizardOfZo
Supporting Member
Guru
Guru


Joined: Sep 24, 2008
Posts: 55

PostPosted: Sat Dec 20, 2008 6:46 am    Post subject: Re: Is there a Image upload mod like this? Reply with quote

It is looking like this is way beyond my skill level.

I would assume a mod like this would be invaluable for anyone who wants to archive searchable images with descriptions that are posted, long after the threads are deleted.
Unless there is a easy way to move phpBB3 attachments to the Gallery, uploads are useless once the post is deleted.

The best I can come up with (withut getting fancy) is adding a link to g2is.html like this:

Code: › <a href="http://my.site/gallery2.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=211&g2_return=%2Fgallery2.php%3Fg2_itemId%3D211" target="_parent">Upload Image </a>
<br>


Clicking the Upload Image link overwrites the G2Img popup window with the upload window in Gallery2 pointing to a special gallery for posted images.
It is very klutzy because once you have uploaded the image to G2 then you need to reopen the G2Img window to add it to the post.
Also the last image posted is at the end of the list, not the top.
(I am posting that problem in another thread)
Back to top
Offline View user's profile Send private message
WizardOfZo
Supporting Member
Guru
Guru


Joined: Sep 24, 2008
Posts: 55

PostPosted: Sun Dec 21, 2008 8:00 am    Post subject: Re: Is there a Image upload mod like this? Reply with quote

I refined my "Hack" and it can use some edits to make it a bit more elegant with proper links and such, but it works well enough:
1) Copy gallery2.php to gallery2upload.php
and change this:

Code: › $template->set_filenames(array(
   'body' => 'gallery2.html')
);

to this:
Code: › $template->set_filenames(array(
   'body' => 'gallery2upload.html')
);

2) Edit g2is.php:
Code: › $template->set_filenames(array(
   'body' => 'g2is.html')
)

to this
Code: › $template->set_filenames(array(
   'body' => 'g2isUp.html')
)


3) In styles/prosilver/template copy g2is.html to g2isUp.html and add the following code just under
Quote: › <!-- INCLUDE simple_header.html -->

Code: › <a href="#"onClick="MyWindow=window.open('http://your.website/gallery2upload.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=211&g2_return=%2Fgallery2.php%3Fg2_itemId%3D211','MyWindow1','toolbar=no,location=no,directories=no, status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=700,left=50,top=50'); return false;">Upload Image to Gallery</A>
<p></p>


4) You will have to adjust the the link for gallery2upload.php for your site and for the default gallery you intend to upload to.

Like I said, it aint pretty, but it works. It still needs to have the g2img display the thumbnails in the order of last loaded display first to make it more convenient, but I am sure someone knows how to do that.
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Integration » phpBB3 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationDedicated Web HostingWeb Design New YorkCompare VoIPseo packagesSEO CompanyNew York Yellow PagesFind LocationsVOIP Phone ServiceNeckermannOnline internetSEORestaurant Locator • Get great HP coupons from CouponSnapshot • Search for great dell coupons at CouponSnapshot.com.au • Graduation DressesAndroid TabletSEO IndiaBuy Phen375fuel filter

8th year online! 2003-2011
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia