68 Classifieds Forums
Go Back   68 Classifieds Forums > v3.1.x Help & Support > v3.1 Modifications > modifying display of one category
v3.1 Modifications Questions on modifying 68 Classifieds. Please note these are not supported by 68 Classifieds, and may make future updates more difficult.

 
Thread Tools Display Modes
(#1)
Old
dawyatt dawyatt is offline
Senior Member
dawyatt is on a distinguished road
 
Posts: 241
Join Date: Mar 2006
Location: Sandusky, OH
Default modifying display of one category - 08-26-2006, 08:10 PM

Okay I hope I explain this correctly....

I want to change how one category is displayed if a user clicks on it...

Here goes:
when a user clicks on the category "garage sales" (111) on my site, I want to bypass the next screen that displays all the sub-cats (where the parent id =111) under it. What I want it is to display all the current listings that fall under garage sales regardless of sub-category...

I only want to do this for one category: GARAGE SALES... I think it would be best to create or copy the current category.php file to be linked to this...

I copied the category.php file and named it listall111.php...

I started by making this change on line 53, I hard coded the parent_id to "111"
PHP Code:
$sSQL = "SELECT id,parent_id,name,description,image,allowads,cKeywords,cPromo FROM ".PREFIX."categories WHERE parent_id = "111" ORDER BY cORDER DESC, name ASC";
Now... I am going through the rest of the code and think I want to bypass a lot of the coding, but i am getting a bit confused...

Basically, I want to display all the GARAGE SALES, bypassing the sub-category step...

Hope this makes sense...
Hope someone can gently move me in the right direction either way... meaning this is a simple change or will take longer than you think....

thanks...



The Boss!
____________________________________
Current Version: V3.1.5 - Developer
____________________________________
Reply With Quote
(#2)
Old
gregbatch gregbatch is offline
Senior Member
gregbatch is on a distinguished road
 
Posts: 169
Join Date: Jun 2006
Default 08-27-2006, 01:08 PM

No need to do all of that. Just go to edit categories and make a category link for Garage Sales to search on that parent category:

http://www.buckeye-classifieds.com/s...s.php?type=111


Greg
3.1.4 Designer
www.valleywantads.com
Reply With Quote
(#3)
Old
dawyatt dawyatt is offline
Senior Member
dawyatt is on a distinguished road
 
Posts: 241
Join Date: Mar 2006
Location: Sandusky, OH
Default 08-27-2006, 03:38 PM

thanks gregbatch.... Okay... I thought I tried that yesterday before my post, but for some reason it did not work.... I am sure I did something wrong... I will try it again...

BUT... I kind of want to take it a little further and change what gets displayed... I would like to show each gararage sale listed, along with the the long description... or details...

I have had some dial-up customers request a complete listing of all the garage sales via one-click instead of having to go back and forth between lisings, which I am sure is very, very slow for the anyone who still uses dial-up... but for the time being, I want to keep the few users I have coming back!

I will make the new link available for now and I am gonna plug away at the rest...any other suggestions would be great...

thanks!


The Boss!
____________________________________
Current Version: V3.1.5 - Developer
____________________________________
Reply With Quote
(#4)
Old
juven14 juven14 is offline
Moderator
juven14 has a spectacular aura about
 
Posts: 1,797
Join Date: Mar 2006
Location: NJ/NYC Area
Default 08-27-2006, 04:21 PM

You could create a page that calls and displays your category listings via RSS. Then just point to that page with the category url.

These could have images, descriptions, etc.

Also, you could point it to the category page and then just define the showlistings to display the shortdescription style based on the category number.


Regards,

John
mods.auscity.com
v3.1.7 Developer

�By perseverance, study, and eternal desire, any man can become great.� George S. Patton

Last edited by juven14 : 08-27-2006 at 04:23 PM.
Reply With Quote
(#5)
Old
gregbatch gregbatch is offline
Senior Member
gregbatch is on a distinguished road
 
Posts: 169
Join Date: Jun 2006
Default 08-27-2006, 05:18 PM

I display the long description on my showlistings page, though I truncate it there to just give a little teaser info, you could do it without. Since you have developer, why not make a dupe the searchresults.php file and have it call a modified template to show all you need to show. You can call it with the URL as before.


Greg
3.1.4 Designer
www.valleywantads.com
Reply With Quote


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding 'category' to 'new listings' display Chaslie v3.1 Modifications 4 10-28-2006 08:58 PM
Category problem dawyatt v3.1 Questions & Support 2 05-24-2006 03:58 PM
Browse Category Display dawyatt v3.1 Questions & Support 5 05-17-2006 01:06 PM
Category fields in view list Lagniappe v3.0 Questions & Support 2 04-19-2006 09:09 AM
Ad won't display in category newone v3.0 Questions & Support 6 04-03-2006 10:19 PM



Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com