TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-27-2008, 04:06 PM   #1 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default This project has begun!

Description and Purpose
Phlox is an image gallery for designers to register and show off their designs, much like an art gallery. People can browse, rate and comment on pictures. Each member can make galleries and add pictures to their gallery. Features will include:
  • Free registration
    • Image verification
    • Email validation
  • Gallery/Image Management
    • Add/Delete Photos
    • Add/Delete Tags on Photo
    • Modify description
    • Delete Comments on a Photo
    • Disable Comments and Ratings
    • Watermark Images
  • Customizable Public Access
    • Allow or deny the public from commenting, rating, or even browsing galleries.
  • Full Admin Access
    • Administrators can browse images as the owner would see them and edit anything as the owner could.
  • Admin Control Panel
    • Add/Delete/Ban user
    • Set limits
      • Max file size
      • Max resolution
      • Max images per gallery
      • Max galleries per user
    • Search by
      • Tags
      • Description
  • Templating system (smarty)

External Resources

Source control: SVN. I recommend tortoiseSVN
PHP Framework: None.
JS Framework: We use JS frameworks as we need them.
Other: We will figure any other requirements out as we need them.


Coding Standards
Basic Style: Allman style.
Other: Avoid shorthand if's, no single line if or loops.


What we need to get started
PM me if you want to code, include your experience and what you are good at. Here are the tasks that we should get done first, I will accept peoples existing code:
  • Database design (the first thing that should happen)
  • SQL Class
  • User class
  • Image class (Upload, verify ownership of image, watemark)
Communication
Via this board and a chat room I will set up.
__________________


Last edited by Village Idiot : 12-27-2008 at 07:36 PM.
Village Idiot is offline  
Reply With Quote
Old 12-27-2008, 07:20 PM   #2 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

SVN Repo set up at http://code.google.com/p/talkphp/ you need to create a google account, then I can add people so that they can have commit permissions.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Old 12-27-2008, 07:35 PM   #3 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Could you please join me on, my account is village.idiot@sbcglobal.net , please make me admin.
__________________

Village Idiot is offline  
Reply With Quote
Old 12-27-2008, 07:49 PM   #4 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

There you go m8, I've added you as a project owner.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Old 12-27-2008, 09:07 PM   #5 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Here is a quick mockup of what the database could look like (there is no perticular reason that one is highlighted)
http://www.imagewasp.com/uploads/8052.png
__________________

Village Idiot is offline  
Reply With Quote
Old 12-27-2008, 10:50 PM   #6 (permalink)
The Frequenter
 
Join Date: Dec 2007
Location: In my basement
Posts: 386
Thanks: 47
Aaron is on a distinguished road
Default

My thread got jacked!


(edited out the rest...)
__________________
Signatures are nothing but incriminating.

Last edited by Aaron : 01-02-2009 at 05:47 PM.
Send a message via MSN to Aaron
Aaron is offline  
Reply With Quote
Old 12-28-2008, 12:00 AM   #7 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

admin or member?

That DB design seems good.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)

Last edited by sketchMedia : 12-28-2008 at 02:16 AM. Reason: good ok? sigh i need to L2 use keyboard
sketchMedia is offline  
Reply With Quote
Old 12-28-2008, 12:04 AM   #8 (permalink)
The Addict
Upcoming Programmer Top Contributor 
 
Rendair's Avatar
 
Join Date: Nov 2007
Location: UK
Posts: 319
Thanks: 18
Rendair is on a distinguished road
Default

djm53@kent.ac.uk - is currently my main one so feel free to add me also :P
__________________
www.jooney.co.uk - the online portfolio
Send a message via MSN to Rendair
Rendair is offline  
Reply With Quote
Old 12-28-2008, 12:18 AM   #9 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

It says that user doesn't exist, you will need to register it with google:
http://www.google.com/accounts/NewAccount
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Old 12-28-2008, 12:23 AM   #10 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

A few features that could be added to the list!
How about subscriptions?

Friendslist which would be catagolized like:
The member can create "groups" where they can put different friends in, for example some might want a "Family" or "Business" or "Design", etc.
Also allow them to "subscribe" to their friends' which would basicly make a subscriptions for new images added by that friend. Meaning that you can have someone on your friendslist without having to be subscribed to him/her.

How does that sound?
__________________
Tanax is offline  
Reply With Quote
Old 12-28-2008, 12:50 AM   #11 (permalink)
The Wanderer
 
Join Date: Jul 2008
Posts: 5
Thanks: 0
Crazymik3 is on a distinguished road
Default

I'd love to help it in some way, but my PHP skills are greatly lacking.
Hope to see something awesome come out of this!
Crazymik3 is offline  
Reply With Quote
Old 12-28-2008, 12:57 AM   #12 (permalink)
The Addict
Upcoming Programmer Top Contributor 
 
Rendair's Avatar
 
Join Date: Nov 2007
Location: UK
Posts: 319
Thanks: 18
Rendair is on a distinguished road
Default

dalejamesmooney@gmail.com

Use this email then :P
__________________
www.jooney.co.uk - the online portfolio
Send a message via MSN to Rendair
Rendair is offline  
Reply With Quote
Old 12-28-2008, 12:58 AM   #13 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

consider yourself added sir!
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Old 12-28-2008, 02:51 AM   #14 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by Tanax View Post
A few features that could be added to the list!
How about subscriptions?

Friendslist which would be catagolized like:
The member can create "groups" where they can put different friends in, for example some might want a "Family" or "Business" or "Design", etc.
Also allow them to "subscribe" to their friends' which would basicly make a subscriptions for new images added by that friend. Meaning that you can have someone on your friendslist without having to be subscribed to him/her.

How does that sound?
I don't understand the first part. But I like subscribing to a user.

I am getting a more accurate database design up.
__________________

Village Idiot is offline  
Reply With Quote
Old 12-28-2008, 03:00 AM   #15 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

Do we have a project directory structure in mind?

Looking forward to the improved DB design .
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Old 12-28-2008, 03:07 AM   #16 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Not at the moment, no. But if you have one I would love to see it.
__________________

Village Idiot is offline  
Reply With Quote
Old 12-28-2008, 03:22 AM   #17 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Items:


Users:


Gallery:
__________________

Village Idiot is offline  
Reply With Quote
Old 12-28-2008, 03:22 AM   #18 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Items:




Users:




Gallery:


Options/Templates:


Configs I can name off the top of my head (will be a place to add more):
ActiveTemplate
ImageDir
ResLimitX
ResLimitY
SizeLimit
AllowUnregInIndex
AllowUnregInSearch
AllowUnregInGallery
AllowUnregInItem
AllowUnregToComment
AllowUnregToRate
__________________


Last edited by Village Idiot : 12-28-2008 at 03:56 AM.
Village Idiot is offline  
Reply With Quote
Old 12-28-2008, 03:26 AM   #19 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

Well i usually use a structure loosly based round the zend framework structure:

Code:
application/
    config/ 
    controllers/ 
    models/ 
    views/ 
        Partials/
        Actions/
            index/
            etc....
        Layouts/
    lib/ 
        DB/
        Registry/
        etc....
    bootstrap.php
public/
    css/ 
    js/ 
    images/ 
    index.php
    .htaccess
How well it will translate to this project I dunno, think it may be alittle too complex for a relatively simple project.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Old 12-28-2008, 03:44 AM   #20 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

That is probably going to be too complex, we are not using most of the things provided in that structure. I was thinking something more like this:
Code:
Main Dir
/Core /src /templates /implementation /images (below webroot? We have to process them one way or another)
-Core is our class functions and deeper logic. Absolutely no implementation or design elements are to be here.
-Src is our script related images, javascript, ect.
-Templates is our templates, each one will have a sub directory.
-Implementation is where the stuff actually happens, where the commands are actually called and ran on the server. This is almost exclusively inline code.
-Main Dir is where our front pages are called which call the templates.
-Images is where we store the images for the users, we will mod_rewrite a file to load and process them. It might be ideal to put it below the webroot. This filename would be a config.

Lets say a user submits an image. He is taken to main/submit.php. This file loads its implementation file which actually submits the image. The implementation files deal with the classes to utilize them, they almost completely inline code. The main file after getting the response from its implementation file then displays the template and all the effects it needs to.

This gives good abscraction from the classes, implementation, and displaying. It is also fairly simple and straight forward.

I would like this confirmed with other programmers before I actually do it though.
__________________


Last edited by Village Idiot : 12-29-2008 at 04:53 PM.
Village Idiot is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tips to Improve Your Coding and Projects Village Idiot Tips & Tricks 45 12-03-2012 07:46 AM
Where would i start to make... Patriotfan Absolute Beginners 15 07-27-2008 09:36 PM
Coding Standards Ross TalkPHP Developer Team 18 07-20-2008 12:40 PM
where to start when wanting to learn how to make a content management system sarmenhb General 8 02-05-2008 05:06 PM
[Help needed] How to start building an OOP script? maZtah General 9 10-12-2007 12:20 PM


All times are GMT. The time now is 09:32 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design