View Full Version : a few things like new blocks, etc
pandha
10-20-2006, 11:31 AM
hi. i have just installed esyndicat 1.5 [free version] and like to change a few things. hope you can help me.
first of all, in the index page, above the block with categories, i'd like to have a new one, where i could write a few sentences about my directory.
second, the Featured Links are displayed as a right block only on main page [index]. can i have it on all pages?
then, can i add a new right block, where i could put my private links plus for example a 120x600 google adsense advert?
is it possible to have paid links in free version of your script?
i would like to have last added websites and featured links on my other website. i heard i can use rss feed, but have no idea how.
thanks for your help.
John Turner
10-20-2006, 11:43 AM
Hi pandha,
Welcome to our support forum.
Provide me with your FTP/CPanel/AdminPanel credentials on email Jturner[at]esyndicat.com. Could you describe in more details your goal in email.
I will try to help you.
Dave Baker
10-20-2006, 10:11 PM
Hello pandha and welcome,
1) ***Open index.tpl and find***
<h1>{$header}</h1>
***Below this code add***
{if $category.id eq 0}
<div class="box">
<div class="box-caption">{$lang.yourBlock}</div>
<div class="box-content">Your Content</div>
</div>
{/if}
***Open YourLanguage.php and add
'yourBlock' => 'your Block',
2)***Open Dir.php and find function getFeaturedLinks
function getFeaturedLinks($aCategory = 0, $aStart =0, $aLimit = 0)
***In this function coment out (//) code***
$sql .= $aCategory ? "WHERE t2.`id_category` <> '{$aCategory}' " : '';
3)***Open footer.tpl and find code***
{if $featured_links && $config.featured_box}
<div class="box">
<div class="box-caption">{$lang.featured_links}</div>
<div class="box-content">
<div class="links">
{foreach from=$featured_links item=link}
<div class="featured-link"><a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{$link.title}</a></div>
{/foreach}
</div>
</div>
</div>
{/if}
***Below this code add***
<div class="box">
<div class="box-caption">{$lang.yourBlock}</div>
<div class="box-content">
<div class="links">
Your Link
</div>
</div>
</div>
***Add in yourLanguge.php***
'yourBlock' => 'your Block',
4) paid links available only in Pro version
5) rss available in Pro version
ciocgun
11-23-2006, 05:52 PM
tks..but how can i separe a box for index and a box for every category?
Dave Baker
11-23-2006, 06:06 PM
For example:
{if $category.id eq 0}
<div class="box">
<div class="box-caption">{$lang.yourBlock}</div>
<div class="box-content">Your Content</div>
</div>
{/if}
Will be appear in index.
{if $category.id neq 0}
<div class="box">
<div class="box-caption">{$lang.yourBlock}</div>
<div class="box-content">Your Content</div>
</div>
{/if}
Will be appear in every category except index.
ciocgun
11-23-2006, 06:15 PM
tks a lot...
Dave Baker
11-23-2006, 06:57 PM
You're welcome
Holger Veith
11-25-2006, 02:36 AM
first of all, in the index page, above the block with categories, i'd like to have a new one, where i could write a few sentences about my directory.
Hello pandha and welcome,
1) ***Open index.tpl and find***
<h1>{$header}</h1>
***Below this code add***
{if $category.id eq 0}
<div class="box">
<div class="box-caption">{$lang.yourBlock}</div>
<div class="box-content">Your Content</div>
</div>
{/if}
***Open YourLanguage.php and add
'yourBlock' => 'your Block',
2)***Open Dir.php and find function getFeaturedLinks
function getFeaturedLinks($aCategory = 0, $aStart =0, $aLimit = 0)
***In this function coment out (//) code***
$sql .= $aCategory ? "WHERE t2.`id_category` <> '{$aCategory}' " : '';
3)***Open footer.tpl and find code***
{if $featured_links && $config.featured_box}
<div class="box">
<div class="box-caption">{$lang.featured_links}</div>
<div class="box-content">
<div class="links">
{foreach from=$featured_links item=link}
<div class="featured-link"><a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{$link.title}</a></div>
{/foreach}
</div>
</div>
</div>
{/if}
***Below this code add***
<div class="box">
<div class="box-caption">{$lang.yourBlock}</div>
<div class="box-content">
<div class="links">
Your Link
</div>
</div>
</div>
***Add in yourLanguge.php***
'yourBlock' => 'your Block',
I use the Pro2 Version, can i solve this easier - or i have to chance this Code?
Holger
Dave Baker
11-25-2006, 06:18 PM
Hello Holger,
You can use these modifications only for version Free 1.5.
Please describe what you want to make and specify your template.
Holger Veith
11-25-2006, 06:50 PM
Hello Holger,
You can use these modifications only for version Free 1.5.
Please describe what you want to make and specify your template.
Hi Dave,
Template: GreenLeaves V.2Pro
please click to see what i mean
http://www.bilder-speicher.de/Erinna988769.vollbild.html
Dave Baker
11-25-2006, 07:34 PM
***Open templates/GreenLeaves/header.tpl and find code (bottom of file)***
{if {$config.banners}
{include file="banner.tpl" banner=$top_banner}
{/if}
***Below this code add***
<div class="box">
<div class="box-caption-right">
<div class="box-caption-left">
<div class="box-caption">Name of your block</div>
</div>
</div>
I want to place some text here
</div>
***Save file***
Holger Veith
11-25-2006, 10:10 PM
Hi Dave,
itīs working. But it is possible to to place the Text >only< on the start page not in all subcategories.
Dave Baker
11-25-2006, 10:28 PM
Ok,
Remove the previous changes from header.tpl
***Open templates/GreenLeaves/index.tpl and find code (top of file)***
{include file="header.tpl"}
***Below this line add***
{if $category.id eq 0}
<div class="box">
<div class="box-caption-right">
<div class="box-caption-left">
<div class="box-caption">Name of your block</div>
</div>
</div>
I want to place some text here
</div>
{/if}
***Save file***
Holger Veith
11-26-2006, 01:09 PM
working 100%, thx Dave :)
Dave Baker
11-27-2006, 06:50 PM
You're welcome!
morty
01-02-2007, 06:17 PM
That was very helpfull and works fine!
I would like to change the position of the menu. How can I put it in the block on the right? (version Free 1.5.)
morty
01-10-2007, 02:12 PM
Ok, I figured it out! I just had to place {$menu} in the block!
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.