display rating and disable choosing root category - Page 2 - eSyndiCat User Forums
eSyndiCat User Forums esyndicat directory software esyndicat support

Go Back   eSyndiCat User Forums > eSyndiCat Directory Software [FREE] > Modifications

Modifications Simple to complex modifications, made by users or by our team, applied to logic or presentation, all kinds of modifications are discussed and requested here.

Reply
 
Thread Tools Display Modes
Old 03-26-2008   #11
Banzai
 
Join Date: Feb 2008
Posts: 27
Banzai is on a distinguished road
Default

I know I'm new to this, but either this is done diferently now or I must be really missing something here....

I just can't seem to find the the link-display.tpl file... Could you guys point me in the right direction?
Banzai is offline   Reply With Quote
Old 03-26-2008   #12
Greg
Super Moderator
 
Greg's Avatar
 
Join Date: Oct 2005
Location: Phoenix,Arizona (Valley of the Sun)
Posts: 5,362
Greg is a jewel in the roughGreg is a jewel in the roughGreg is a jewel in the roughGreg is a jewel in the rough
Default

Quote:
Originally Posted by Banzai View Post
I know I'm new to this, but either this is done diferently now or I must be really missing something here....

I just can't seem to find the the link-display.tpl file... Could you guys point me in the right direction?
Hi

Look in folder of the "template" you are using.
__________________
Please don't ask me about script questions or sales issues through "Private Messages". Thanks!
Greg is offline   Reply With Quote
Old 03-27-2008   #13
Vasily B.
Administrator
 
Vasily B.'s Avatar
 
Join Date: Sep 2005
Posts: 9,299
Vasily B. is on a distinguished roadVasily B. is on a distinguished roadVasily B. is on a distinguished roadVasily B. is on a distinguished roadVasily B. is on a distinguished roadVasily B. is on a distinguished road
Default

Hi Banzai

I suppose it can be also called now 'listing-display.tpl'. It depends on the version you use
__________________
Subrion CMS - free open source php content management system
Business Directory Script - powerful php business directory software, Yellow Pages Script - the most advanced yellow pages php software
Vasily B. is offline   Reply With Quote
Old 06-06-2008   #14
eumark
 
Join Date: May 2008
Posts: 4
eumark is on a distinguished road
Default display rating in regular-listing-display.tpl

How do I display the rating in 2.3 Full version.

I want this info to be shown on regular-listing-display.tpl <strong>{$aCurrentRating}</strong>/{$_units}&nbsp;({$aTotalVotes}&nbsp;{$_tense})&nbs p;
eumark is offline   Reply With Quote
Old 06-06-2008   #15
kbeaty
 
Join Date: May 2007
Posts: 28
kbeaty is on a distinguished road
Default

Does this code work for the Pro 2.2.xxx version? I seem not to find the link-display.tpl but the listing-display.tpl and the only codes there are:

{esynHooker name="beforeListingDisplay"}
{if $listing.sponsored}
{include file="sponsored-listing-display.tpl"}
{elseif $listing.partner}
{include file="partner-listing-display.tpl"}
{elseif $listing.featured}
{include file="featured-listing-display.tpl"}
{else}
{include file="regular-listing-display.tpl"}
{/if}

Last edited by kbeaty; 06-06-2008 at 07:12 PM.
kbeaty is offline   Reply With Quote
Old 06-06-2008   #16
kbeaty
 
Join Date: May 2007
Posts: 28
kbeaty is on a distinguished road
Default

Does this code work for the Pro 2.2.xxx version? I seem not to find the link-display.tpl but the listing-display.tpl

{esynHooker name="beforeListingDisplay"}
{if $listing.sponsored}
{include file="sponsored-listing-display.tpl"}
{elseif $listing.partner}
{include file="partner-listing-display.tpl"}
{elseif $listing.featured}
{include file="featured-listing-display.tpl"}
{else}
{include file="regular-listing-display.tpl"}
{/if}
kbeaty is offline   Reply With Quote
Old 06-06-2008   #17
Greg
Super Moderator
 
Greg's Avatar
 
Join Date: Oct 2005
Location: Phoenix,Arizona (Valley of the Sun)
Posts: 5,362
Greg is a jewel in the roughGreg is a jewel in the roughGreg is a jewel in the roughGreg is a jewel in the rough
Default

Quote:
Originally Posted by kbeaty View Post
Does this code work for the Pro 2.2.xxx version? I seem not to find the link-display.tpl but the listing-display.tpl

{esynHooker name="beforeListingDisplay"}
{if $listing.sponsored}
{include file="sponsored-listing-display.tpl"}
{elseif $listing.partner}
{include file="partner-listing-display.tpl"}
{elseif $listing.featured}
{include file="featured-listing-display.tpl"}
{else}
{include file="regular-listing-display.tpl"}
{/if}
Do you want what was posted in post #! ?
If so, I can take a look at it later (busy now)
__________________
Please don't ask me about script questions or sales issues through "Private Messages". Thanks!
Greg is offline   Reply With Quote
Old 10-11-2008   #18
sotos68
 
Join Date: Feb 2007
Posts: 63
sotos68 is on a distinguished road
Default

find in regular-listing-display.tpl

Quote:
{section name=star loop=$listing.rank}<img src="{$img}star.png" alt="" />{/section}
and replace it with

Quote:
{section name=star loop=$listing.rating}<img src="{$img}star.png" alt="" />{/section}
simple!
sotos68 is offline   Reply With Quote
Old 12-23-2008   #19
Crystal
Pro Ver 2.2.06
 
Crystal's Avatar
 
Join Date: Mar 2007
Posts: 73
Crystal is on a distinguished road
Thumbs up Display Rating Stars in 2.2.06

Quote:
Originally Posted by bustherh View Post
This is really cool. just what I needed. I like to show the stars:
Code:
{if $link.rating}{print_stars value=$link.rating|string_format:"%.1f"}{else}0{/if}
instead of the rating number:
Code:
{$link.rating|string_format:"%.2f"}/10
Is there a mod for this in 2.2.06?

Thanks!

-Crystal
Crystal is offline   Reply With Quote
Old 02-16-2009   #20
sdedman1
 
Join Date: Jan 2007
Posts: 129
sdedman1 is on a distinguished road
Default

I'm using 2.2.06 and the following works for me. It still displays the small 'rank' size stars rather than the larger 'rating' ones but it is displaying the rating value (and not the rank)

Quote:
{section name=star loop=$listing.rating}<img src="{$img}star.png" alt="" />{/section}
| {$lang.rating}: {$listing.rating|string_format:"%.1f"}/5 ({$lang.rating_num} {$listing.num_votes})
I don't display rank as I do not use it, so I have replaced listing.rank with listing.rating. But I guess you could have 2 sets of stars (might be confusing)
sdedman1 is offline   Reply With Quote
Reply

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
Forum Jump


All times are GMT. The time now is 09:38 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Testimonials | Articles | Support | Documentation | Privacy Policy | License | Affiliates | Contact Us