Auto templates

By keith_s - August 10, 2010

I purchased the Auto templates last week and have designed a website using them (with the CMS software).

We just launched the website, http://www.southwindford.com.

During the design, the website owner alerted me of a problem. The "listed by" field in the "listings.php"  and "ListingsDetail.php" files weren't pulling in the person's name that created the listing, but rather were pulling in the last person listed on the Home Pages editor (I've renamed my editor to "Staff").

Looking into the code, I saw that there was no mechanism that ties listings to staff, or even to the "user", on either of these pages.  I believe this is a flaw in the template. Can you please confirm this to me?

I believe that there needs to be some sort of modification, possibly to the "listings" table that allows the person making a new listing to select the desired person from the Home Pages (staff, in my case), table.

It will probably be somewhat simple for you guys to do, but for me, when "joins" are included in the mysql queries, I get lost.

I programmed some work-arounds for this, but am not completely happy with the way I "fixed" it.

Would you please look into this and if you confirm what I'm saying, let me know what the corrections are either by posting them here or sending updated files?

Thanks,
Keith D Sellars
WebGraffix Media Solutions, LLC

Re: [Jason] Auto templates

By keith_s - August 11, 2010

Jason,

I actually had already implemented one of your solutions partially. I did indeed create a dropdown from the Staff page. However, the issue that I had was not all of the Staff members were set up as "users". As a result, what I wound up doing was setting up user accounts with the exact same name as what exists for the staff members. This was what I had to do in order to pull in the createdBy field as well as all of the information located on the staff page (name, phone, email, etc.).

I know what I did is not the truest way that it should be done, but it works. If I do another car dealership in the future, I would prefer to get you to help me get the code be the cleanest it can be. There are one or 2 things that I didn't do because of this issue, but they were minor things that didn't really matter.

Overall, I'm very pleased with the result - http://www.southwindford.com. My main reason for posting this was to let you guys know that I think the templates themselves need some slight modification so that they work completely as they should "out of the box".