Monday, April 28, 2008

found cds map

i added the found cds map menu item to the site. the link will bring up a google map with all the found cds on it.

lat lon info in the mixcd table

added the lat lon info to the mixcd table. this should speed up the find and findcds modules since we don't have to query google every time to get the lat lon info. (we get the info when someone submits a mixcd). when you update your local svn copy, you'll have to run the drupal update script at /update.php to get the new tables.

Friday, April 25, 2008

site's live

so with the site live, i think we should all post a link to it on our blogs. that way, search engines will have an easier time indexing it (and finding it since a lot of the spiders out there index pages by following links...). so here's a link to the site:

Track This Mix!

Right now registration is open only to UNM students but as soon as all the little bugs are gone we'll open it to everyone.

site's running nice

i think the site is running pretty nice now. i added a block to the header of logged in users that hopefully fixes the logout problem for everyone. i think the problem has to do with caching. we have caching turned on to help load pages faster but it seems like it's caching the logout page also. i added some php code to not cache the logout page and so far it seems to be working for me.

i'm not sure if the proximity search is working as it should. if you go to the page and search a 10 mile radius starting at 1 university blvd, it returns all the albuquerque cds including the ones that are obviously more than 10 miles away.

Thursday, April 24, 2008

findcds.module

well, the findcds module is pretty much done. those changes i made can be applied to the find module too. i put the findcds module in the trunk and loaded it on the site. to access it, you can find a link in the search menu. or, the link is just findcds.

hopefully everything works. i had to escape the single and double quotes to be able to cleanly pass the info into the javascript function that creates the markers. that reminded me that we should check to make sure our database inserts are sanitized. we don't want any sql injection attacks!

i updated the mixcd module to provide a default title field (Untitled) in case someone forgets to name their mix. since dynamic_subforms breaks drupal validation, this was the easiest way to somewhat fix the problem without modifying the dynamic_subforms source.

emmanuel said next week he'll bring a cd spindle so we can burn some mixes and get the site up and running. i'll bring some paper sleeves to put the cds into.

it's getting late, i need some sleep.

find branch

the find.module in the branches directory is now fully functional (i think). feel free to reference the code in there to modify the trunk version.

now we need to finish the simpletest modules. we need one for each of the modules we are using in our site (mixcd.module, searchid.module, find.module). i think if we look at some of the example code that came with simpletest, we can use it to our advantage (especially the node test for mixcd, etc).

maps

got the maps partially working. need to find a way to pass the title and description variables to the anonymous function. at least it will map the points now though!