Support Forums


Go Back   68 Classifieds Forums > Help & Support > Modules / Plugins / Modifications

Notices

 
LinkBack Thread Tools Display Modes
Old 06-01-2009, 04:09 PM   #11
Senior Member
 
 
Join Date: Jan 2007
Posts: 365
Rep Power: 19
michael is a jewel in the rough
Default

Quote:
Originally Posted by Eric Barnes View Post
For the rss link change it to:
<a href="external.php?cat={$smarty.get.cat}">RSS FEED</a>
Sorry mate, that's giving me links like this MKClassifieds

Still not category specific.

__________________
M Michael
V4.1.3 Developer - 3 Column Default Template


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
michael is offline   Reply With Quote
Old 06-01-2009, 04:32 PM   #12
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,020
Rep Power: 116
Eric Barnes is a jewel in the rough
Default

Ok I am confused. I thought you only wanted this on the categories page and not on the actual viewlisting page.

To add it to the viewlisting template you will need to use: {$section}
__________________
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   Reply With Quote
Old 06-01-2009, 04:41 PM   #13
Senior Member
 
 
Join Date: Jan 2007
Posts: 365
Rep Power: 19
michael is a jewel in the rough
Default

Eric, thanks. Sorry to sound thick but where precisely would I put that?
__________________
M Michael
V4.1.3 Developer - 3 Column Default Template


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
michael is offline   Reply With Quote
Old 06-01-2009, 05:20 PM   #14
Senior Member
 
 
Join Date: Jan 2007
Posts: 365
Rep Power: 19
michael is a jewel in the rough
Default

Never mind, the thicko worked it out . .

Thanks again.
__________________
M Michael
V4.1.3 Developer - 3 Column Default Template


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
michael is offline   Reply With Quote
Old 06-17-2009, 05:50 AM   #15
Senior Member
 
 
Join Date: Jan 2007
Posts: 365
Rep Power: 19
michael is a jewel in the rough
Default

One more request to tighten up this useful mod. Let's say I have the following categories;

Top Level > Sub Level 1 > Ad' Level

With the mod' as it functions now we will have an RSS link in the breadcrumb on every level. If the top two levels do not permit ad's then the RSS link may be an unneccesary distraction.

Is it possible to ensure that the RSS link only shows on categories where ad's are permitted?

Many thanks
__________________
M Michael
V4.1.3 Developer - 3 Column Default Template


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
michael is offline   Reply With Quote
Old 06-17-2009, 08:31 AM   #16
Coder
 
Join Date: Mar 2006
Posts: 4,419
Rep Power: 108
Lhotch is just really niceLhotch is just really nice
Default

In the smarty multidimentional array called data it has values for categories and key-> vallue for allowing ads for the category. You could incorporate that into the logic an selectivly display the rss icon.
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 06-17-2009, 08:51 AM   #17
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 1,039
Rep Power: 27
seymourjames has a spectacular aura about
Default

Just an idea (not sure that this is quite the ticket) but if you are using showlistngs (you mean category listings and not viewlisting) why not put your test on the variable {$results} being empty. I think this will work.
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote
Old 06-17-2009, 11:10 AM   #18
Senior Member
 
 
Join Date: Jan 2007
Posts: 365
Rep Power: 19
michael is a jewel in the rough
Default

Larry and Seymour, thank you both. Unfortunately your advice is a bit over my head.

The following is from my categories/breadcrumb.tpl Could you point out the changes I need to make to get the desired results in my category listings?

Thanks, I really appreciate your help.

<p class="breadcrumb">
<a href="category.php" class="breadcrumb">{$smarty.const.LANG_BROWSE_CATE GORIES}</a>
{foreach from=$breadcrumb item="entry"}
{$smarty.const.LANG_CAT_SEPERATOR} {$entry}
{/foreach}
. . . . <a href="{$smarty.const.URL}/external.php?category={$catID}">RSS Feed</a> <a href="{$smarty.const.URL}/external.php?category={$catID}"><img src="templates/{$smarty.const.MAIN_TEMPLATE}/images/rss2.png" alt="RSS Feed" /></a>
</p>
__________________
M Michael
V4.1.3 Developer - 3 Column Default Template


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
michael is offline   Reply With Quote
Old 06-18-2009, 01:29 AM   #19
Senior Member
 
 
Join Date: Jan 2007
Posts: 365
Rep Power: 19
michael is a jewel in the rough
Default

waves hand sheepishly . . . .
__________________
M Michael
V4.1.3 Developer - 3 Column Default Template


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
michael is offline   Reply With Quote
Old 06-19-2009, 08:48 AM   #20
Coder
 
Join Date: Mar 2006
Posts: 4,419
Rep Power: 108
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by michael View Post
Larry and Seymour, thank you both. Unfortunately your advice is a bit over my head.

The following is from my categories/breadcrumb.tpl Could you point out the changes I need to make to get the desired results in my category listings?

Thanks, I really appreciate your help.

<p class="breadcrumb">
<a href="category.php" class="breadcrumb">{$smarty.const.LANG_BROWSE_CATE GORIES}</a>
{foreach from=$breadcrumb item="entry"}
{$smarty.const.LANG_CAT_SEPERATOR} {$entry}
{/foreach}
. . . . <a href="{$smarty.const.URL}/external.php?category={$catID}">RSS Feed</a> <a href="{$smarty.const.URL}/external.php?category={$catID}"><img src="templates/{$smarty.const.MAIN_TEMPLATE}/images/rss2.png" alt="RSS Feed" /></a>
</p>
Using Davids idea would be easier and would go like this...

<p class="breadcrumb">
<a href="category.php" class="breadcrumb">{$smarty.const.LANG_BROWSE_CATE GORIES}</a>
{foreach from=$breadcrumb item="entry"}
{$smarty.const.LANG_CAT_SEPERATOR} {$entry}
{/foreach}

{if isset($results)}
. . . . <a href="{$smarty.const.URL}/external.php?category={$catID}">RSS Feed</a> <a href="{$smarty.const.URL}/external.php?category={$catID}"><img src="templates/{$smarty.const.MAIN_TEMPLATE}/images/rss2.png" alt="RSS Feed" /></a>
{/if}
</p>


that methods shortcoming is that if the category does alow ads but there just arent any they wont get an rss link. Which could make it more difficult for them to save the feed for later reference.
__________________
Larry.
Lhotch 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
Category specific RSS feeds. michael v4 Questions & Support 9 12-01-2008 02:50 PM
Hide a category on public pages? HotAir v3.1 Questions & Support 6 12-05-2007 10:17 AM
Display Banner in one Category BABBSELA v3.1 Questions & Support 3 02-10-2007 02:22 PM
Branding each Category BABBSELA v3.1 Modules & Modifications 0 02-10-2007 01:17 PM
Category problem dawyatt v3.1 Questions & Support 2 05-24-2006 03:58 PM


All times are GMT -4. The time now is 06:34 PM.


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