Featured links and partner links - eSyndiCat User Forums
eSyndiCat User Forums esyndicat directory software esyndicat support

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

User interface Discuss eSyndiCat templates here. All the questions regarding eSyndiCat [FREE] Front end

Reply
 
Thread Tools Display Modes
Old 10-27-2006   #1
easydesigngroup
 
Join Date: Oct 2006
Posts: 52
easydesigngroup is on a distinguished road
Default Featured links and partner links

How can I setup that Future and partner links to appear only on homepage?


Thank you.
easydesigngroup is offline   Reply With Quote
Old 10-27-2006   #2
Sergey Ten
eSyndiCat Lead Developer
 
Sergey Ten's Avatar
 
Join Date: Apr 2006
Location: Kyrgyzstan, Bishkek
Posts: 6,596
Sergey Ten is a jewel in the roughSergey Ten is a jewel in the roughSergey Ten is a jewel in the roughSergey Ten is a jewel in the rough
Default

Hello easydesigngroup,

Follow the directives:

*** Open your footer.tpl ***
*** Find 24 line ***

Code:
{if $featured_links && $config.featured_box}
*** Replace with ***

Code:
{if $featured_links && $config.featured_box && $category.id eq 0}
*** Save change ***


*** Open your index.tpl ***
*** Find 130 line ***

Code:
{if $partner_links}
*** Replace with ***

Code:
{if $partner_links && $category.id eq 0}
*** Save change ***
Sergey Ten is offline   Reply With Quote
Old 10-27-2006   #3
easydesigngroup
 
Join Date: Oct 2006
Posts: 52
easydesigngroup is on a distinguished road
Default Thank you!

Sergei, thank you, it was so easy.



I have one more question:

I would like to disable the news functionality, and in the place where the news should be I'd like to place a few sentences.

But, i don't want the same sentences to be all across my web directory. I would like to have the possibility to ad these sentences related to each category and subcategory.

Ex: If Category = 0 show "this text"

or... if category =0 and subcat =3 show "other text"

You catched the idea?

Thank you.
easydesigngroup is offline   Reply With Quote
Old 10-27-2006   #4
Sergey Ten
eSyndiCat Lead Developer
 
Sergey Ten's Avatar
 
Join Date: Apr 2006
Location: Kyrgyzstan, Bishkek
Posts: 6,596
Sergey Ten is a jewel in the roughSergey Ten is a jewel in the roughSergey Ten is a jewel in the roughSergey Ten is a jewel in the rough
Default

easydesigngroup,

I think you could use the description of categories.

*** Open your index.tpl ***
*** Find this code and delete or comment it ***

Code:
{if $category.description}
	<div class="box" style="border: none;">{$category.description}</div>
{/if}
*** Save change ***


*** Open your header.tpl ***
*** Find such code ***

Code:
{if $news && $config.news}
<div class="box">
	<div class="box-caption2-right">
		<div class="box-caption2-left">
			<div class="box-caption2">{$lang.news}</div>
		</div>
	</div>
		<div class="box-content">
			<div class="links">
{foreach from=$news item=one_news}
	<div class="news-title">
{if $config.mod_rewrite}
	<a href="{$config.base}{$config.dir}news/{convert_str string=$one_news.title}-n{$one_news.id}.html" id="news{$one_news.id}">{$one_news.title}</a></div>
{else}
	<a href="{$config.base}{$config.dir}news.php?id={$one_news.id}" id="news{$one_news.id}">{$one_news.title}</a></div>
{/if}
	<div class="news-body">{$one_news.body|truncate:$config.news_max:"..."}</div>
	<div class="news-date">{$one_news.date|date_format:$config.date_format}</div>
{/foreach}
			</div>
		</div>
	</div>
{/if}
*** After add this code ***

Code:
{if $category.description}
<div class="box">
	<div class="box-caption-right">
		<div class="box-caption-left">
			<div class="box-caption">{$lang.sentences}</div>
		</div>
	</div>	
	<div class="box-content">
		<div class="links">
			<div class="box" style="border: none;">{$category.description}</div>
		</div>
	</div>
</div>
{/if}
*** Save change ***


*** Open your English.php ***
*** And add this code to language file ***

Code:
'sentences' => 'Sentences',
*** Save change ***
Sergey Ten is offline   Reply With Quote
Old 10-27-2006   #5
easydesigngroup
 
Join Date: Oct 2006
Posts: 52
easydesigngroup is on a distinguished road
Default

Yes it's working.

You service are awasome.

One more thing (the last one) :P

Do you have any idea how to create a style which enter a <br> after eacy sentence.

Whithout that the description looks too compact and i don't think that I can use html source.


Thanks.
easydesigngroup is offline   Reply With Quote
Old 10-27-2006   #6
Sergey Ten
eSyndiCat Lead Developer
 
Sergey Ten's Avatar
 
Join Date: Apr 2006
Location: Kyrgyzstan, Bishkek
Posts: 6,596
Sergey Ten is a jewel in the roughSergey Ten is a jewel in the roughSergey Ten is a jewel in the roughSergey Ten is a jewel in the rough
Default

easydesigngroup,

No, you could use HTML tags in the description.
Sergey Ten 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 04:56 AM.


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