Web Programming Assignment #4: Searching & Notification due 12/14/2010
description
Transcript of Web Programming Assignment #4: Searching & Notification due 12/14/2010
![Page 1: Web Programming Assignment #4: Searching & Notification due 12/14/2010](https://reader036.fdocuments.in/reader036/viewer/2022062519/568154bd550346895dc2c39a/html5/thumbnails/1.jpg)
Web Programming
Assignment #4: Searching & Notification
due 12/14/2010
Old Dominion UniversityDepartment of Computer Science
CS 418/518 Fall 2010
Martin Klein <[email protected]>
![Page 2: Web Programming Assignment #4: Searching & Notification due 12/14/2010](https://reader036.fdocuments.in/reader036/viewer/2022062519/568154bd550346895dc2c39a/html5/thumbnails/2.jpg)
Requirements - Searching
• Provide search capability:– Search for keywords in:
• all forums
• single forum
– Search for all posts by a particular user• can be free text search, or pull down menu / pick box, or…
• also provide choice between all forums or single forum
– With full MySQL boolean operators (+,-,””, etc)
– Show “where” result found (breadcrumbs, hierarchy,…)
– Populate your BBS!!!
![Page 3: Web Programming Assignment #4: Searching & Notification due 12/14/2010](https://reader036.fdocuments.in/reader036/viewer/2022062519/568154bd550346895dc2c39a/html5/thumbnails/3.jpg)
Requirements - Notification
• Allow users to specify “notification” preferences. – user specifies to receive an email when:
• a post with a certain set of keywords is made (full boolean operators)
• any post is made by a certain user
– BBS sends the email, along with a description of the condition that was met, and a link to the “location of interest” in the BBS
![Page 4: Web Programming Assignment #4: Searching & Notification due 12/14/2010](https://reader036.fdocuments.in/reader036/viewer/2022062519/568154bd550346895dc2c39a/html5/thumbnails/4.jpg)
Requirements - reCAPTCHA
• Registering users must solve a reCAPTCHA (see lecture week 11) in addition to the email confirmation process used in A3
• The reCAPTCHA can occur anywhere in the registration process, but it is probably best to put it at the front end.
![Page 5: Web Programming Assignment #4: Searching & Notification due 12/14/2010](https://reader036.fdocuments.in/reader036/viewer/2022062519/568154bd550346895dc2c39a/html5/thumbnails/5.jpg)
Picture Upload• Most BBSs allow
users to upload pictures with their postings
• You frequently have to be registered at the BBS to see the pictures, so here is a screen shot from lateral-g.net:
• Clicking on a thumbnail will reveal the original, full-size picture
![Page 6: Web Programming Assignment #4: Searching & Notification due 12/14/2010](https://reader036.fdocuments.in/reader036/viewer/2022062519/568154bd550346895dc2c39a/html5/thumbnails/6.jpg)
Same Page, Not Logged In
• User not logged in
• Clicking on a thumbnail will bring up a page prompting the user to log in.
![Page 7: Web Programming Assignment #4: Searching & Notification due 12/14/2010](https://reader036.fdocuments.in/reader036/viewer/2022062519/568154bd550346895dc2c39a/html5/thumbnails/7.jpg)
Requirements - Upload
• Allow users to upload multiple pictures with their postings– # of pictures per message allowed is set by the admin– Make user earn increasing number of pictures according to status
(e.g. freshman = 2; junior = 5, senior = max)
• If the user (reader) is logged in:– Show thumbnails of the images– clicking on a thumbnail brings up the full size image in a separate
window
• If the user (reader) is not logged in:– Show some indicator that thumbnails exist– Clicking on a thumbnail “placeholder” brings up a log-in page in
the same window
![Page 8: Web Programming Assignment #4: Searching & Notification due 12/14/2010](https://reader036.fdocuments.in/reader036/viewer/2022062519/568154bd550346895dc2c39a/html5/thumbnails/8.jpg)
Requirements - Upload
• If your system does not allow reading of posts w/o being logged in:– Make user earn increasing number of pictures according to status – Start with NULL
(e.g. freshman = 0; sophomore = 2, junior = 5, senior = max)
![Page 9: Web Programming Assignment #4: Searching & Notification due 12/14/2010](https://reader036.fdocuments.in/reader036/viewer/2022062519/568154bd550346895dc2c39a/html5/thumbnails/9.jpg)
baseURL for Submission
• http://mln-web.cs.odu.edu/~username/a4/
• These URLs will be valid for all students
– If you are in a group, only 1 URL will have the actual PHP
– The “other” URL will auto-redirect to the “right” URL
![Page 10: Web Programming Assignment #4: Searching & Notification due 12/14/2010](https://reader036.fdocuments.in/reader036/viewer/2022062519/568154bd550346895dc2c39a/html5/thumbnails/10.jpg)
Recommendations
• Debug within your group first, then ask for other groups to help debug your operations
• Your status report on 11/30/2010 is for your benefit and the benefit of your peers!
• Not for me…
• It is not optional
On demand:voluntary status/problem report and/or FAQ session on 12/07/2010
![Page 11: Web Programming Assignment #4: Searching & Notification due 12/14/2010](https://reader036.fdocuments.in/reader036/viewer/2022062519/568154bd550346895dc2c39a/html5/thumbnails/11.jpg)
Grading
• There will be an in-class demo on 12/14/2010• Nitin will assign 17 points based on a detailed examination after
the class– Do not edit the files after midnight!– Late penalty: 3pts for every 24hrs
• Each group will grade the aesthetic appearance of the other groups’ BBSs
• Email Nitin and cc me a score of 0-3• Each group will receive the average value (same rounding
principle)– If you do not send your grades in within 24 hours, your group will lose 3 points from your
assignment
• Grades should be available within a couple of days
![Page 12: Web Programming Assignment #4: Searching & Notification due 12/14/2010](https://reader036.fdocuments.in/reader036/viewer/2022062519/568154bd550346895dc2c39a/html5/thumbnails/12.jpg)
START NOW!!!
Image taken from: http://www.businessinsider.com/apple-itv-metered-broadband-2010-8