Support Forums

Old 10-26-2006, 09:59 PM   #1
Moderator
 
Chaslie's Avatar
 
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 723
Rep Power: 27
Chaslie will become famous soon enough
Default Adding 'category' to 'new listings' display

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
V4.1 dev


68 Classifieds Important Links
Customer Area | Issue Tracker | User Manuals & Documentation

HTML Help
W3 Schools
Chaslie is offline   Reply With Quote
Old 10-27-2006, 01:03 AM   #2
Senior Member
 
Join Date: Oct 2006
Posts: 134
Rep Power: 12
manilaboy is on a distinguished road
Default

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
manilaboy is offline   Reply With Quote
Old 10-27-2006, 02:21 AM   #3
Moderator
 
Chaslie's Avatar
 
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 723
Rep Power: 27
Chaslie will become famous soon enough
Default

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
V4.1 dev


68 Classifieds Important Links
Customer Area | Issue Tracker | User Manuals & Documentation

HTML Help
W3 Schools
Chaslie is offline   Reply With Quote
Old 10-28-2006, 06:28 PM   #4
Moderator
 
Chaslie's Avatar
 
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 723
Rep Power: 27
Chaslie will become famous soon enough
Default

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
V4.1 dev


68 Classifieds Important Links
Customer Area | Issue Tracker | User Manuals & Documentation

HTML Help
W3 Schools
Chaslie is offline   Reply With Quote
Old 10-28-2006, 08:58 PM   #5
Moderator
 
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,162
Rep Power: 59
juven14 is a jewel in the rough
Default

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.
__________________
TemplateCodes.com
juven14 is offline   Reply With Quote
Old 01-31-2008, 03:31 PM   #6
Senior Member
 
 
Join Date: Jan 2008
Posts: 124
Rep Power: 7
Soleiltan is on a distinguished road
Default

Quote:
Originally Posted by Chaslie View Post
No worries - simply copy and paste this into layout.tpl.php anywhere you wish.
Code:
There are {total_users} Registered users<br /> and a total of {total_listings} entries.
Tried doing this, it just brings up a blank page .....
__________________
~~ Lorren

Any advice is always appreciated.

v 3.1.10 Developer; v 4 Developer

Last edited by Soleiltan; 01-31-2008 at 03:33 PM. Reason: Forgot code....
Soleiltan 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
modifying display of one category dawyatt v3.1 Modules & 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 Eric Barnes v3.0 Questions & Support 2 03-30-2006 02:29 PM


All times are GMT -4. The time now is 12:51 AM.


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