[DEV] Photo Gallery

MOD Authors: Discuss and post updates on new MODs in development for phpBB3, Receive feedback and Feature requests for MODs in development.

To submit your MOD or style, go to the STG MOD Manager
Forum rules
go to the STG MOD Manager to post your MOD in development.
Discuss and receive feedback for any MOD in development for phpBB3.
Suggest features for MODs in development.

No Support or MOD Requests
-- exceptions for MODs only posted here as Beta or Alpha.
Support requests for a MOD should be requested in the respective MOD topic.

[DEV] Photo Gallery

Postby Handyman » 19 Dec 2006, 11:14

0.1.0 Released
This topic is now locked.
New topic can be found here: t3139-beta-photo-gallery-0-1-0-.html
Last edited by Handyman on 19 Jul 2007, 10:54, edited 18 times in total.
Reason: Update Progress Report
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7456
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: [DEV] Photo Gallery

Postby Aden » 19 Dec 2006, 12:09

Adding comments to images.
Adding Favourites.
Image
User avatar
Aden
Lieutenant
Lieutenant
 
Posts: 336
Joined: 17 Sep 2006, 02:26
Gender: Male

Re: [DEV] Photo Gallery

Postby Handyman » 19 Dec 2006, 13:01

Awesome! I forgot about those Think
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7456
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

Re: [DEV] Photo Gallery

Postby Shadow of Wishes » 19 Dec 2006, 13:49

I guess that a rating system it would be something nice, for each picture Smile
Image
PHPBB3DB Portal: Community Portal
Developer Portal: Your PHPBB3DB Community

Shadow of Wishes    
Translator
Translator
 
Posts: 382
Joined: 18 May 2006, 13:56
Location: All around the world....why, do you miss me? :D
Favorite Team: The one i choose
Gender: Male
phpBB Knowledge: 5

Re: [DEV] Photo Gallery

Postby Belak » 19 Dec 2006, 14:13

I'm currently working on a photo gallery, too, and i guess i got some interesting ideas as for the implementation.

my problem was, that i want to add several galleries.... a photo-gallery, a mp3-gallery and some other stuff... i didnt want to write every single gallery from the ground up as i don't have much time, so i had to find solution were i was able to make use of the similarities in structure.... let me shortly sum up what i did, maybe it can help you save some time Smile

the most striking similarity is that all galleries will have categories, so i decided to make use of the functions already implemented in index.php and viewforum.php... i simply added another col named "gallery_type" to the "phpbb_forums" table. this gallery_type can be set in the admin panel to "forum", "photo", "mp3" or whatever you need. so if i add a "?mode=photo" to the index.php i will only see those forums that i marked as photo-gallery-type and BAM, the categories are finished Smile . now i only have to add a couple of lines to the posting.php, so that the "add new topic"-case is handled as needed in a specific gallery....so if you start a new topic in a photo-gallery-forum, you will see an upload script whereas in a normal "forum-forum" ( Blink ) you will see the usual post-form... as "replies" are handled in a different way, i don't need to change one line of code to get a "comment-function" for posted pictures or mp3's....

hopefully, this may help you when you start developing.... i will probably not be able to release my version as a mod... and before i forget, i'm sorry for my bad spelling Grin
User avatar
Belak
Supporter
Supporter
 
Posts: 145
Joined: 17 Dec 2006, 15:16
Location: Kaiserslautern, Germany
Gender: Male

Re: [DEV] Photo Gallery

Postby Handyman » 19 Dec 2006, 14:41

Hey Belak,

Welcome to StarTrekGuide Hello

The spelling was not bad (at least that I noticed) I just didn't understand half of the post... though I'm going to be doing things a little different... I'm going to create dedicated pages for this mod so that when phpBB releases another version, this will be a piece of cake to upgrade with it.

Believe me, this mod will be extremely easy to create after what I've been working on.
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7456
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

Re: [DEV] Photo Gallery

Postby Belak » 19 Dec 2006, 15:10

[quote="Handyman":f190a]
The spelling was not bad (at least that I noticed) I just didn't understand half of the post...
[/quote:f190a]

So then my spelling's okay and I simply don't know how to express myself in english Laughing

[quote="Handyman":f190a]
I'm going to create dedicated pages for this mod so that when phpBB releases another version, this will be a piece of cake to upgrade with it.
[/quote:f190a]

I did think about that one, too. but the changes i made were so little that i guess the update-tool will be able to cope with it... at least i hope so Smile
User avatar
Belak
Supporter
Supporter
 
Posts: 145
Joined: 17 Dec 2006, 15:16
Location: Kaiserslautern, Germany
Gender: Male

Re: [DEV] Photo Gallery

Postby Highway of Life » 19 Dec 2006, 15:19

Hi Belak! Wave

Thanks for joining us.

I like your idea, it's very unique, and that is certainly one way to do it, the update tool is supposed to be able to handle some/most modifications, but it's easy to mess up if you have a lot of changes in a file, and the tool is not perfect.
So although your idea would go very well on a Gold board, it *might* not work on a Beta or RC since when it comes time to upgrade there is a possibility that it won't be update cleanly.

That said, even if you went with separate pages, you could still use (duplicate) the functions from the viewforum pages to create their own section. That way, interference with the upgrade script will be minimal.

Now, knowing Handyman, he'll draw this baby up from scratch with his own unique implementation. Smile

BTW, have you completed your Gallery to a point where we could sneak a peek? Smile
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: [DEV] Photo Gallery

Postby Belak » 19 Dec 2006, 15:37

[quote="Highway of Life"]
I like your idea, it's very unique, and that is certainly one way to do it, the update tool is supposed to be able to handle some/most modifications, but it's easy to mess up if you have a lot of changes in a file, and the tool is not perfect.
So although your idea would go very well on a Gold board, it *might* not work on a Beta or RC since when it comes time to upgrade there is a possibility that it won't be update cleanly.
[/quote]

that's one of the reasons why i won't release it as a mod.... and if i encounter problems on my own board, i guess my php skill is sufficient to handle that...

[quote="Highway of Life"]
BTW, have you completed your Gallery to a point where we could sneak a peek?
[/quote]

i will hopefully finish the mp3 gallery this week, then i might post some screenshots... the board currently runs only on my localhost... but it will be uploaded this year... then i may post a little link Smile
User avatar
Belak
Supporter
Supporter
 
Posts: 145
Joined: 17 Dec 2006, 15:16
Location: Kaiserslautern, Germany
Gender: Male

Re: [DEV] Photo Gallery

Postby Highway of Life » 19 Dec 2006, 15:53

[quote="Belak"]
that's one of the reasons why i won't release it as a mod.... and if i encounter problems on my own board, i guess my php skill is sufficient to handle that...
[/quote] Nothing wrong with that. Smile
I have/am doing plenty of that myself. Wink
[quote="Belak"]
i will hopefully finish the mp3 gallery this week, then i might post some screenshots... the board currently runs only on my localhost... but it will be uploaded this year... then i may post a little link Smile
[/quote]
Cool!! Yahoo
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Next

Return to MODs in Development

Who is online

Users browsing this forum: Python Google Robot and 11 guests