Support Forums


Go Back   68 Classifieds Forums > General > HTML, CSS, and Design Help

 
LinkBack Thread Tools Display Modes
Old 10-10-2008, 04:02 AM   #1
Junior Member
 
Join Date: Oct 2008
Posts: 7
Rep Power: 0
EugenusMaximus is on a distinguished road
Default New to 68 Classifieds templating - Some hints needed

Hello 68 Classifieds Community,

I've just started with my first 68 Classifieds website. I'm relatively experienced in Joomla Templates as I did a couple already in the last few years. Still, my knowledge about PHP and Smarty is quite basic.

That's why I have a few questions and requests about hints to get started. Of course I checked the stickys of the forum already just as I tried the forums search function to get as many questions answered as possible.

My first milestones will be:
- Reconstructing the main page
- Adding a couple of fields to the search function
- Taking some of search fields to the main page

First of all I have to say that the HTML/CSS part is not a problem at all. Nor is it a problem to move already existing smartys included into the default template to other positions.
Right now, my biggest question is how to integrate extra fields into the search function.
Of course I've created them already in the backend. Even though I had some results on the search function I still have some very basic questions:

- What files have to be touched to finally get an extra field in to the search.tpl?
- What would be an example syntax for search field "square meters" (Drop Down)?

To have these questions answered would already be of great help for me.

Thanks in advance,
EugenusMaximus

EDIT:


OK, I just noticed that the Extra Fields I've set up now appear when I select an assigned category. Responsible for this seem to be the functions ajxresponse and optResponse... Anyway, this is not what I want.

- First of all I want the extra fields to appear right from the start, not just when I select a certain category.
- In second I want to be able to place each extra field individually just as it is possible with the standard fields which are already included.

So one again to my main questions:

- What files have to be touched to do so?
- What would be an example syntax for search field "square meters" (Drop Down)?

Last edited by EugenusMaximus; 10-10-2008 at 09:19 AM.
EugenusMaximus is offline   Reply With Quote
Old 10-10-2008, 10:08 AM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,767
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

Hi,

I think you need to make this modification to search.tpl:
http://www.68classifieds.com/forums/...ry-search.html

Quote:
- In second I want to be able to place each extra field individually just as it is possible with the standard fields which are already included.
Do you mean on the viewlisting page?
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is online now   Reply With Quote
Old 10-10-2008, 10:26 AM   #3
Moderator
 
 
Join Date: Mar 2006
Posts: 4,108
Rep Power: 100
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by EugenusMaximus View Post
- First of all I want the extra fields to appear right from the start, not just when I select a certain category.
- In second I want to be able to place each extra field individually just as it is possible with the standard fields which are already included.
There is a very good reason why the extra fields do not show up until a category is selected and that is because you can have categories that have specifis extra fields that only that category uses.

For example lets say I have a general web site and I sell autos and homes. In autos I have extra fields for engine size, fuel type and color and for homes I have a yes/no dropdown to say if the home comes with appliances.

Now, if I displayed a search field with ALL of the above extra fields and I am looking for a car why would I want to see extra fields that dont pertain to a car? Furthermore, what if I accidentally selected one of them? That may mean that I dont get ANY cars returned because I specified a value in an extra field that doesnt apply to autos.

Another reason is that some very large sites may have 50+ categories and each and every one of them may have 5 extra fields that are all different from the other categories. Now that means that the search page would have 250 fields on it for a user to specify specifics on and if searching in a given category only 5 of them apply, so why display the other 245 fields as search options?
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 10-10-2008, 10:50 AM   #4
Junior Member
 
Join Date: Oct 2008
Posts: 7
Rep Power: 0
EugenusMaximus is on a distinguished road
Default

First of all thanks for the answers.

Quote:
Originally Posted by Eric Barnes View Post
Hi,

I think you need to make this modification to search.tpl:
http://www.68classifieds.com/forums/...ry-search.html
I saw this post already. And it's not completely what I'm looking for. I want the extra fields to appear also if no category is pre-selected

Quote:
Do you mean on the viewlisting page?
No, I want to add them statically to the search.tpl and later a few of them to my home.tpl. (once I found out how to do so)

Quote:
Originally Posted by Lhotch View Post
There is a very good reason why the extra fields do not show up until a category is selected and that is because you can have categories that have specifis extra fields that only that category uses.

For example lets say I have a general web site and I sell autos and homes. In autos I have extra fields for engine size, fuel type and color and for homes I have a yes/no dropdown to say if the home comes with appliances.

Now, if I displayed a search field with ALL of the above extra fields and I am looking for a car why would I want to see extra fields that dont pertain to a car? Furthermore, what if I accidentally selected one of them? That may mean that I dont get ANY cars returned because I specified a value in an extra field that doesnt apply to autos.

Another reason is that some very large sites may have 50+ categories and each and every one of them may have 5 extra fields that are all different from the other categories. Now that means that the search page would have 250 fields on it for a user to specify specifics on and if searching in a given category only 5 of them apply, so why display the other 245 fields as search options?
My search demands are not comparable to Autos. I agree with you, that my demands do not make sense with your example but my business requires this. There are certain search terms which will fit to all my categories. I need these so my clients are able to filter what they see independent from the category.

Last edited by EugenusMaximus; 10-10-2008 at 10:56 AM.
EugenusMaximus is offline   Reply With Quote
Old 10-10-2008, 10:57 AM   #5
Moderator
 
 
Join Date: Mar 2006
Posts: 4,108
Rep Power: 100
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by EugenusMaximus View Post
My search demands are not comparable to Autos. I agree with you, that my demands do not make sense with your example but my business requires this. There are certain search terms which will fit to all my categories. I need these so my clients are able to filter what they see independent from the category.
I can appreciate that. I just wanted to share the reason why the search works the way it does.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 10-10-2008, 11:06 AM   #6
Junior Member
 
Join Date: Oct 2008
Posts: 7
Rep Power: 0
EugenusMaximus is on a distinguished road
Default

Quote:
Originally Posted by Lhotch View Post
I can appreciate that. I just wanted to share the reason why the search works the way it does.
And I will use this function in the way it was built for for other things exactly in the way you posted it. But I'll need this workaround for my other demands.
EugenusMaximus is offline   Reply With Quote
Old 10-10-2008, 11:21 AM   #7
Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,328
Rep Power: 39
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

Quote:
Originally Posted by EugenusMaximus View Post
And I will use this function in the way it was built for for other things exactly in the way you posted it. But I'll need this workaround for my other demands.
"Demands" is a VERY strong word.

I do see an issue with your statement. If you are going to hard code the common extra fields into your search AS WELL AS use the search in the normal functionality, when a user enters the search and then selects a category, you will then have duplicate extra search fields.

Just something to think about.

-Mike
__________________
Mike-N-Tosh
v3.1.10 Developer IndianaPC.org - A community website
Sandbox v4.0.9, 4.1
Templates, Mods & Docs for sale | My blog with much content for 68 Classifieds.
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 10-10-2008, 11:42 AM   #8
Junior Member
 
Join Date: Oct 2008
Posts: 7
Rep Power: 0
EugenusMaximus is on a distinguished road
Default

Hmm? Well, basically the extra fields I want to hard code won't be classic extra fields anymore anyway. I will not assign them to any category but to all so they shouldn't appear twice?

Anyway, I appreciate your concerns about the sense of this request as I also would love to find this problem solved by the core features itself (would save a lot of work for me) but as I explained, it will be hard to solve this just with the core features.

I would prefer to get closer to a solution to be honest. It sounds like what I want to do is not so easy with 68 Classifieds. Can you give me some Information what needs to be done (which files have to be touched)?
EugenusMaximus is offline   Reply With Quote
Old 10-10-2008, 12:04 PM   #9
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,767
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

I am not sure if I am still following however here is what I am thinking.

- Works in Firefox.

If you want to include static extra fields why not go to the search page and select the category so the extra fields are then pulled out. Next select that whole selection with your mouse and right click and "view selection source" after that you will have the html needed to add these extra fields where ever you want.
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is online now   Reply With Quote
Old 10-10-2008, 12:07 PM   #10
Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,328
Rep Power: 39
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

I'm not a php coder myself, but do understand the logic. My best guess would be that within the search.tpl you would need to either add in an sql query to the database to pull the extra fields directly. (the "fields" table and get the fid, fname at a minimum) or do this as a smarty plugin and then include the smarty function in your search.tpl file. The smarty function would be the route that I would explore.

You may want to take a look at the smarty featured listings files to get an idea of what and how this works.

-Mike
__________________
Mike-N-Tosh
v3.1.10 Developer IndianaPC.org - A community website
Sandbox v4.0.9, 4.1
Templates, Mods & Docs for sale | My blog with much content for 68 Classifieds.
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed breadcrumb suresh v4 Questions & Support 1 10-02-2008 08:24 AM
How do I automatically feed a new classifieds site ads from major classifieds sites j890432m v4 Modules / Modifications 4 06-23-2008 07:53 PM
What I needed :o( Unregistered Pre Sales Questions 1 09-12-2007 09:13 PM


All times are GMT -4. The time now is 03:28 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0