68 Classifieds Forums
Go Back   68 Classifieds Forums > v3.1.x Help & Support > v3.1 Modifications > Adding 'category' to 'new listings' display
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
Chaslie Chaslie is offline
Moderator
Chaslie is on a distinguished road
 
Posts: 552
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Default Adding 'category' to 'new listings' display - 10-26-2006, 09:59 PM

On the front page of our site, I am using 'function.new_listings.php' to generate a display on new listings.

I'm looking to add a 'category' field (column) to that display.

Have worked out the field name 'section' will generate the category ID. Now I need to convert that ID into the actual name of the category. A hyperlink is not required - just the category name only.

Any ideas guys?


Chaslie
V3.1.7 dev
mods.auscity.com
AUSCITY
Reply With Quote
(#2)
Old
manilaboy manilaboy is offline
Member
manilaboy is on a distinguished road
 
Posts: 65
Join Date: Oct 2006
Default 10-27-2006, 01:03 AM

Sorry Chaslie I am not a techie but I like the total of members and entries display on your site.

Is that a code I can easily get from one of the tech guys here?

Thanks,
Mike D.
Designer 3.1.5
Reply With Quote
(#3)
Old
Chaslie Chaslie is offline
Moderator
Chaslie is on a distinguished road
 
Posts: 552
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Default 10-27-2006, 02:21 AM

No worries - simply copy and paste this into layout.tpl.php anywhere you wish.

Quote:
There are {total_users} Registered users<br /> and a total of {total_listings} entries.


Chaslie
V3.1.7 dev
mods.auscity.com
AUSCITY
Reply With Quote
(#4)
Old
Chaslie Chaslie is offline
Moderator
Chaslie is on a distinguished road
 
Posts: 552
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Default 10-28-2006, 06:28 PM

bump - anyone have an idea how?

[quote]On the front page of our site, I am using 'function.new_listings.php' to generate a display on new listings.

I'm looking to add a 'category' field (column) to that display.

Have worked out the field name 'section' will generate the category ID. Now I need to convert that ID into the actual name of the category. A hyperlink is not required - just the category name only.

Any ideas guys?


Chaslie
V3.1.7 dev
mods.auscity.com
AUSCITY
Reply With Quote
(#5)
Old
juven14 juven14 is offline
Moderator
juven14 has a spectacular aura about
 
Posts: 1,798
Join Date: Mar 2006
Location: NJ/NYC Area
Default 10-28-2006, 08:58 PM

Yes, you have to edit the new listings plugin and then fetch the category name. I've edited the file, let me know and I'll send it via email.


Regards,

John
mods.auscity.com
v3.1.7 Developer

�By perseverance, study, and eternal desire, any man can become great.� George S. Patton
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
modifying display of one category dawyatt v3.1 Modifications 4 08-27-2006 05:18 PM
Adding a heading to the Featured Listings sporthorsebreeder v3.1 Questions & Support 2 07-21-2006 12:04 PM
Browse Category Display dawyatt v3.1 Questions & Support 5 05-17-2006 01:06 PM
Displaying extra field in Search and category listings Bucketman v3.0 Questions & Support 3 04-26-2006 09:48 AM
Display Total Number of Listings suzkaw v3.0 Modifications 2 03-30-2006 02:29 PM



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