GetAFreelancer.com
 
Find projectsSearch
Sign Up | Log in | Top Rated Users | Browse projects | Post Project | RSS feeds | Articles
 

Change List Order in PHP

   Click here to post similar project

Change List Order in PHP is project number 121936 posted at GetAFreelancer.com. Click here to post your own project.

Status: Closed (Selected Service Provider)
Selected Providers: selected service provider sitesound
Budget: $30-100
Created: 01/29/2007 at 11:58 EST
Bidding Ends: 02/01/2007 at 11:58 EST
Project Creator: sethnick99 View PM Post PM
Buyer Rating: 9.89/109.89/109.89/109.89/109.89/109.89/109.89/109.89/109.89/109.89/10
(19 reviews)
Description: Basically I want to make some minor tweaks to the backend design and add the drag and drop functionality of script.aculo.us to reorder my listings.
Will give a bonus of up to $50 for completing this quickly and well.
Here are some tutorial links that explain how to do this:
http://www.phpriot.com/d/articles/client-side/sortable-lists-with-php-and-ajax/index.html
http://ryan.cfwebtools.com/2006/12/31/drag-and-drop-sort-order-with-scriptaculous/
http://www.cyberdummy.co.uk/2005/07/13/multi-list-drag-and-drop/
and this is the clearest one I've seen yet
http://wiseguysonly.com/2006/08/11/drag-and-drop-reordering-of-database-fields-with-ajax/


Existing System Screen Shots:
catorder.jpg Category Editor
adminlistings.jpg Current Listing Editor View

Please see attached image: reordercategoryitems.jpg
I want to add the ability to reorder listing items within a category via drag and drop using the http://script.aculo.us/ drag and drop reordering script.
I also want you to be able to reorder by clicking on up and down arrows, as shown in the image.
To see this in action go to: http://wiki.script.aculo.us/scriptaculous/page/print/GhostlySortableDemo

even better if you could have it work like this:
http://demo.script.aculo.us/ajax/sortable_elements

So when you hover over any non-link on this section it will show the move cursor (with the 4 arrow heads), if you hover over the move up/down link or edit listing link it will show the regular and with pointer finger cursor. Look at the image I created - it has a border around the section being moved - I would like the border to be coded on there as well.

The relavent code for this section is in the file ../include/listing_editor.inc.php starting at line #1139.
Possible logic:
Add a field to the database to specify listing order, probably on the table default_classlistingsdb call it something like "listingorder"

Since each item is assigned to a category there are a couple options for the listingorder sorting.
The first is you can have repeated values per category so within each category you can have a listingorder value of 1 - X. Or you could have the listingorder actually be unique regardless of category, in this case when you're making the process to change the order you'll have to actually give the original listing the "listingorder" value of the listing you are moving. This can get to be a somewhat tricky sql operation when you are using the drag and drop ordering system and have to update all of the other listings' "listingorder" value at the same time. Also please notice the few visual changes I made on this and make these as well.



Category Editor Changes:
See catreorder.jpg
Pretty much the same changes as above in terms of drag and drop functioning.
I also want this to be adjusted to match the way the listing editor looks - as shown in the jpeg. Where the category title is actually a hyperlink to modify it, and the rows are shaded differently.


Edit Images Changes:
Please see imageorder.jpg
The only difference here is the portion with the thumbnails at the top.
This should be the easiest to do as it's not dealing with multiple categories and such. This also already has an image order function built in. I basically want the drag and drop ordering to integrate with the existing image ordering method, as pictured. One Portion which I didn't put into the jpeg that I would like is a "featured photo" function that allows you to select one image to show up as the first large image on the front end. I'm picturing something like a "Feature this Photo" link right above the link to delete the image - by default the first photo in any listing will be the featured photo. You can only have one featured photo, and if a photo is featured it will say "Featured Photo" in place of the "Feature this Photo" link.





Additional files submitted:
adminlistings.jpg
catorder.jpg
reordercategoryitems.jpg
catreorder.jpg
imageorder.jpg
Report violation
Job Type:
  • PHP
Database: MySQL
Operating system: Linux
Bid count: 1
Average bid: $ 60

 

Related project
 
Nonpublic project #328263 Featured Nonpublic
login to view
 

FREE Trial project for new buyers!

 

View Project Message Board     Post Message on Project Message Board
Messages Posted: 0

If you are the project creator or one of the bidders Log in as project creator or bidder for more options

Bid on This Project

Service Providers PMB Bid Delivery Within Time of Bid Provider Rating
sitesound
View PM Post PM
$ 60 2 days 01-30-2007 06:47 EST 10.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/10
(2 reviews)
I have been writing AJAX style applications for several years before someone coined the term and the development pattern became popular. Fast turn around time. Resume available.
Bid on This Project

 

[ Freelance ] [ Join GAF Free ] [ Post Project Free ] [ Web Forms ]

What is GetAFreelancer.com? ( Read about the company )

Outsource projects and save a lot of money. Getting affordable freelance work, freelance programming and custom web design done for your website has never been easier. Web Development doesn't have to be expensive. Outsourcing will cut your expenses by more than 50%. Would you like to outsource your next project? Would you like to make money as a freelancer? Click Sign Up to start!

Buy services with help from our secure escrow system. GetAFreelancer.com is one of the largest sites of its kind. We have earned a good reputation and you can trust us. If you never tried to contract work to another part of the world you have your chance today. Sign up free! A freelancer is an independent worker, not on salary, hired instead on a project basis.

Find Webmaster Resources and Webmaster Forum. Take a look at Search Engine Submission.