|
|
#1 |
|
Moderator
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 723
Rep Power: 27 ![]() |
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 |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Oct 2006
Posts: 134
Rep Power: 12 ![]() |
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 |
|
|
|
|
|
#3 | |
|
Moderator
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 723
Rep Power: 27 ![]() |
No worries - simply copy and paste this into layout.tpl.php anywhere you wish.
Quote:
__________________
Chaslie V4.1 dev 68 Classifieds Important Links Customer Area | Issue Tracker | User Manuals & Documentation HTML Help W3 Schools |
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 723
Rep Power: 27 ![]() |
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 |
|
|
|
|
|
#5 |
|
Moderator
|
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.
|
|
|
|
|
|
#6 | |
|
Senior Member
Join Date: Jan 2008
Posts: 124
Rep Power: 7 ![]() |
Quote:
Code:
There are {total_users} Registered users<br /> and a total of {total_listings} entries.
__________________
~~ 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.... |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |