PDA

View Full Version : Modify the DBSV3-3 template


rabanata
12-06-2008, 10:27 PM
Please help,
I need help to modify a DBSV3-3 template. Want to remove the article view at the top of the sidebar-right.tpl. I've tried to modify the file myself, but with no good result. Someone who can provide with some good advice

The site is, weblinks.no



Regards
Einar Langøen

David
12-06-2008, 11:18 PM
After you do the update, make sure you clear the cache. Sometimes changes don't appear until after this is done, either by clearing it in admin, or by waiting until it does this automatically (usually in an hour).

rabanata
12-10-2008, 01:57 PM
Still no good, I've tried to remove: <div class="sidebar-top2">Articles</div> to <div class="sidebar-bg2">. But the I get a Smarty error, and the page is very messy.

Any one?

James
12-10-2008, 03:53 PM
you have way more than that to remove if you want to remove all of the article part.

Please paste the tpl code here

rabanata
12-10-2008, 08:30 PM
The sidebar-right.tpl code is as follow:

<div class="sidebar-bg2">
<div class="sidebar-top2">Articles</div>
<div class="scontent3">
{if !empty($articles)}
{section name=i loop=$articles}
<a class="SponsoredArticleTitle" href="{$smarty.const.DOC_ROOT}/{if $smarty.const.ENABLE_REWRITE}articles/article-{$articles[i].ID}.html{else}article.php?id={$articles[i].ID}{/if}" title="{$articles[i].TITLE|escape|trim}">
{$articles[i].TITLE|escape|trim}
</a>
<br/>


{if !$smarty.section.i.last}<hr />{/if}
{/section}
{else}
{section name=i loop=$latest_art max=0}
<a class="SponsoredArticleTitle" href="{$smarty.const.DOC_ROOT}/{if $smarty.const.ENABLE_REWRITE}articles/article-{$latest_art[i].ID}.html{else}article.php?id={$latest_art[i].ID}{/if}" title="{$latest_art[i].TITLE|escape|trim}">
{$latest_art[i].TITLE|escape|trim}
</a>
<br/>
{$latest_art[i].DESCRIPTION|escape|trim}
{if !$smarty.section.i.last}<hr />{/if}
{/section}
{/if}
</div>
</div>

{if $pages}
<div class="sidebar-bg2">
<div class="sidebar-top2">Resources</div>
<div class="scontent">
{foreach from=$pages item=page name=pages}
{if $page.PRIVACY == 1 && empty($regular_user_details)}
{else}
<a href="{$smarty.const.DOC_ROOT}/{if $smarty.const.ENABLE_REWRITE}{$page.SEO_NAME}{else }page.php?name={$page.NAME}{/if}" title="{l}{$page.NAME}{/l}">{l}{$page.NAME}{/l}</a>
{/if}
{/foreach}
</div>
{/if}
<div class="sidebar-bg2">
<div class="sidebar-top2">Banner</div>
<div class="scontent2">
<script type="text/javascript"><!--
google_ad_client = "pub-4621798371032000";
/* 160x600, opprettet 23.11.08 */
google_ad_slot = "9314192898";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>

</div>
<div class="sidebar-bg2">
<div class="sidebar-top2">XHMTL Valid</div>
<div class="scontent2">
<a href="http://validator.w3.org/check?uri=referer"><img class="validator" src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
</div>
</div>

James
12-10-2008, 09:50 PM
remove this

Content visible to registered users only.

rabanata
12-10-2008, 10:04 PM
Thank you very much