Hi Everybody,
I decided that once completed this development, i will make a tutorial out of it, Using the reference in this topic (contribution from other user will be credited.
Ok back to the development.
For those who just jumped in the topic, go to my original post if you dont know what we are talking about :-)
Ok Jim,
This is what i have come up with as for tables. I wanted to practise so i created the tables in mysql.
So here is the functionality that i want to implement:
the Tutorial Section: section that holds tutorials of course that comes with Video file, Images and Graphics. Each Tutorial have its own set of video,image and graphic.
quick fictive situation for global example:
member points:
50 pts cost 2$
100 pts cost 4$
250 pts cost 5$
video :
Tutorial video cost 3 pts
Trick video cost 5 pts
Functionality i would like to develop :
after the logon of the member and he lands on the tutorial section
#1 - Display a list at the tutorial home page of the tutorial available (present in the db at the current time).
#2 - After the member choose one tutorial to view, it display that specific tutorial on a display page. The tutorial will come with informative content ( text ), and icons that represent ; video, images and graphic. The cost / point it takes to view will be displayed as well.
#3 - When the member clicks on images to see the tutorial images or graphic to see the graphic, it will be displayed without costing anything. When the member click the video icon/link of the video file related to the specific tutorial i want to check in the db , first if the member is registered (would be a double check), if not send him to the login page, if he is a member check how many points is in the member account.
#4 - Check to see if the member has seen that video already. If YES ,
Count the number of time the user has viewed that specific video, display the video without deducting points to their account. If NO,
check to see if the member have sufficient points to view the video file. If YES, display the video in a popup window (can be displayed on same page if it cause prob the popup). If NO, display a page or message to the member that there was not enough points in the member account to view the video.
From that situation, i would like to give the member the opportunity to either purchase more points or go back to the tutorial page.
#5 - If the member choose to purchase more points and has not seen the video file already. Display the procedure to buy more.
#6- buying procedure, add points to user account.
#7 once points added, the user will be brought back to the tutorial page he was viewing (if possible) and will be able to click the video and view it.
#8 verify that the video is beeing streamed with no problem.
#9 protect the video from beeing downloaded directly or saved on the users computer (not sure if possible)
#10 verify that the member did view completely the video.
#11 deduct from the member account the points used for the video.
#12 increase the number of time the current member has seen the video by 1 (can be used for stats purpose)
#13 Get Time and Date, IP, Username of the current Member
#14 Store the information in a table for the videoviews and table video
The trick section will work the same way.
Now after writing that down, i practise myself trying to sketch tables for this.
i came up with this on my sheet of paper.
Table Video :
id
Video Number
Video Name
Video Category
Video Cost
Number of Views (in general)
Table Video Views
id
Video id
Video Name
Number of View
Username
IP
Date
Time
Table User
id
First Name
Last Name
Username
Password
email
Date of subscribtion
Date of Activation
Last Login
Subcrisption IP
Activation IP
Last login IP
Tutorial video Viewed
Trick video Viewed
member points
banned
I have to figure out now to get this to live in perfect harmony :-)
i am really starting to enjoy php a lot and i have learned how to build a CMS and started to build it for this development as well.
The tutorial part of the CMS works now , and i get the info about the tutorial displayed. but no video section in it so far. I guess that too i will have to make some modification. But its not my main focus right now.
I hope i am not too complicated to understand.
What i have learned by writting my stuff on paper first. Its just like when u design. Its always better to get it on paper first and think about all the situation possible :-) it reduce the modifications at the end
Sincerely
Smilin