Support Forums

Old 04-30-2006, 08:57 AM   #1
Senior Member
 
free2take's Avatar
 
Join Date: Mar 2006
Location: Ireland
Posts: 228
Rep Power: 19
free2take is a jewel in the rough
Default Additional ViewListing Info based on category

Hi there,

I'd like to display an extra field 'Info' underneath the views field in a category called Services. I wanted the value of this to be a string indicating that the services aren't endorsed by the site and users need to exercise their own discretion when using.

I've been trying to do it using the following code
PHP Code:
            {* Now remind people to take care if responding to or using advertised services*}
            {foreach 
from=$breadcrumb item="entry"}
                {if 
$entry=="Services"}
                    <
td><strong>"Info:"</strong></td>
                    <
td>"We do not endorse any services advertised and
                    Users are required to exercise their own discretion when 
                    responding or using"
</td>
                 {/if}
            {/foreach} 
while I don't get any errors I still don't see the info appear when viewing an adin the services category.

Any ideas why ?

Thanks,
Mully
__________________
v4.08
free2take is offline  
Old 04-30-2006, 10:36 AM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,087
Rep Power: 117
Eric Barnes is a jewel in the rough
Default

Mully,

I think I need a little more information from you.

Is this in the showlistings template or viewlistings?
__________________
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 offline  
Old 04-30-2006, 11:55 AM   #3
Senior Member
 
free2take's Avatar
 
Join Date: Mar 2006
Location: Ireland
Posts: 228
Rep Power: 19
free2take is a jewel in the rough
Default

Hi Eric,

I was planning on adding this in the viewlistings.tpl file just after the code

PHP Code:
{if $description<>""}
            <
tr
                <
td colspan="2"><strong>{$smarty.const.LANG_DESCRIPTION}: </strong><br />{$description}</td>
            </
tr>
            {/if} 
Thought I could use the Category text from the bread crumb at the top of the page to identify that the parent category was indeed Services.

Thanks,
Mully
__________________
v4.08
free2take is offline  
Old 05-03-2006, 08:49 AM   #4
Senior Member
 
free2take's Avatar
 
Join Date: Mar 2006
Location: Ireland
Posts: 228
Rep Power: 19
free2take is a jewel in the rough
Default

Hi Eric,

Any ideas on this one ?

Thanks in advance,
Mully
__________________
v4.08
free2take is offline  
Old 05-03-2006, 09:02 AM   #5
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 2,216
Rep Power: 61
juven14 is a jewel in the rough
Default

Do this at the template level (viewlistings.tpl.php):

{if $listingsection=="some section #"}Some Message{else}some other message{/if}
__________________
John Snyder
PHP Developer
juven14 is offline  
Old 05-03-2006, 05:36 PM   #6
Senior Member
 
free2take's Avatar
 
Join Date: Mar 2006
Location: Ireland
Posts: 228
Rep Power: 19
free2take is a jewel in the rough
Default

Thanks John.

Worked perfectly.

Mully
__________________
v4.08
free2take is offline  
 

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
Show name of category in viewlisting HotAir v3.1 Questions & Support 4 01-08-2007 03:59 PM


All times are GMT -4. The time now is 08:26 PM.


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