PDA

View Full Version : Werbung nach jedem 10. Link - 3.2 und 3.1


Mary
05-31-2007, 06:08 PM
Hallo,

Version 3.1 UND 3.2

ich hab gesucht aber leider noch nichts hier im Forum gefunden.
Nach jedem 10. Link würde ich gerne Werbung einbauen.

Weiß jemand wie das in den genannten Version eingebaut wird?

thompson
06-01-2007, 11:53 AM
interessant, würde mich auch interessieren.

Maverick1976
06-02-2007, 11:31 AM
würde mich auch interessieren, vor allem für V3.2

BoraAydin
06-02-2007, 03:57 PM
Jo, sowas überlegte ich mir genauso, weißt jemand zufällig, wie es geht...?

Imothop
06-05-2007, 06:28 PM
daran hätte ich auch interesse.

Elfenwald
06-05-2007, 06:51 PM
...und noch einer, der auf einen PHP-Kundigen wartet, der es uns Dummbeuteln erklärt, wie wir unsere Besucher etwas gezielter mit Werbung konfrontieren können... ;-)

regg
06-05-2007, 10:07 PM
Naja für 6 leute und jetzt 7 schaue ich mir das doch mal morgen an ;)

fredofredo
06-07-2007, 12:59 PM
8 danke im voraus

Mary
06-07-2007, 01:06 PM
Das wäre wirklich ganz nett von dir, denn es ist immer noch aktuell bei mir und es käme ja in 2 Katalogen von mir :-)

MikeK
06-12-2007, 10:45 PM
So, hier ist eine Lösung. Dafür hätte ich gerne 10% Eurer Werbeeinnahmen! :D

Nagut, Okay okay! Ich würde mich auch schon über einen netten Backlink auf meinen Webkatalog freuen: http://webkatalog.xantiva.de/

Geht in die main.tpl und sucht nach:
<div id="links">
{foreach from=$links item=link name=links}
{include file="link.tpl" link=$link}
{/foreach}
</div>
Das ersetzt Ihr mir dem folgenden Code, in den Ihr nur noch Eure Werbung einbauen müsst:
<div id="links">
{assign var="linkcounter" value="0"}
{foreach from=$links item=link name=links}
{assign var="linkcounter" value=$linkcounter+1}
{include file="link.tpl" link=$link}
{if $linkcounter==10}
{assign var="linkcounter" value="0"}
{* Hier kommt Eure Werbung rein! *}
{/if}
{/foreach}
</div>
Denkt daran, dass z. B. Adsense den STRIP - Tag überhaupt nicht mag. :rolleyes:

Ciao,
Mike

regg
06-13-2007, 07:30 AM
@ MikeK
Da warst du wohl schneller als ich :D wollte grad meine Lösung possten

thompson
06-13-2007, 08:03 AM
ich werde es die naechten tage mal testen. danke mike.

pragent
06-13-2007, 08:04 AM
Dann poste auch mal Deine Lösung .....
Ich habe hier noch ein älteres WBB-MOD .... mal schauen, ob man diesen auch umsetzen kann.;)

Mary
06-13-2007, 11:07 AM
Hallo,

vielen Dank! Code schon eingebaut und es funktioniert :D

MikeK
06-13-2007, 09:03 PM
Das freut mich! Und für solch' nette Kataloge wäre gegen einen Backlink auch noch Platz in meinem Katalog. :) Die Kategorieseite hat z. Zt. einen PR 3 ...

http://webkatalog.xantiva.de/computer/webkatalog-webverzeichnis/themen-webkataloge/

Ciao,
Mike

thompson
06-13-2007, 09:07 PM
ist das evtl. so machbar, dass ich dies pro kategorie ein-oder ausschalten könnte ? google mag ja nicht die werbung in allen kategorien (bsp. poker, glücksspiele etc.)

regg
06-13-2007, 09:14 PM
ist das evtl. so machbar, dass ich dies pro kategorie ein-oder ausschalten könnte ? google mag ja nicht die werbung in allen kategorien (bsp. poker, glücksspiele etc.)

Schau mal hier vorbei:
http://www.phplinkdirectory.com/kb/Design/page_1/Making_Template_Changes_to_the_Front_Page_Only.htm l

fredofredo
06-13-2007, 09:21 PM
danke sehr!

raimond
06-14-2007, 10:12 AM
@thompson
guck mal hier (http://www.phplinkdirectory.com/forum/showthread.php?t=11160) vorbei, könnte passen. Post 5 von Bobby

sniper09
12-02-2007, 11:06 AM
HI


wenn ich den code bei mir ein baue wird das design zerrissen
<div id="links">
{assign var="linkcounter" value="0"}
{foreach from=$links item=link name=links}
{assign var="linkcounter" value=$linkcounter+1}
{include file="link.tpl" link=$link}
{if $linkcounter==10}
{assign var="linkcounter" value="0"}
{include file="google-ads1.tpl}
{/if}
{/foreach}
</div>wie kann ich das verhindern

so sieht mein Code ohne werbung aus
<p>
{l}Regular Links{/l}
</p>
</div>
{foreach from=$links item=link name=links}
<div class="table_link">{include file="link.tpl" link=$link}</div>

{/foreach}
{/if}mfg
sniper09

PL_90
12-02-2007, 01:56 PM
Ist doch klar, wenn du das nicht an dein Design anpasst...
Hier..


{assign var="linkcounter" value="0"}
{foreach from=$links item=link name=links}
{assign var="linkcounter" value=$linkcounter+1}
<div class="table_link">{include file="link.tpl" link=$link}</div>
{if $linkcounter==10}
{assign var="linkcounter" value="0"}
<div class="table_link">{include file="google-ads1.tpl}</div>
{/if}
{/foreach}

sniper09
12-02-2007, 02:34 PM
Hallo

habe deine code mal ausprobiert aber siehe selbst anhand des screen
http://img5.myimg.de/fehler1ec91c_thumb.jpg (http://www.myimg.de/?img=fehler1ec91c.jpg)

hier ist ein screen wie es dann aussehen sollte

http://img5.myimg.de/fehler24e268_thumb.jpg (http://www.myimg.de/?img=fehler24e268.jpg)


mfg
sniper09
Ist doch klar, wenn du das nicht an dein Design anpasst...
Hier..

PL_90
12-02-2007, 02:42 PM
weil du den code falsch ersetzt.. zeig mal deine komplette main.tpl

sniper09
12-02-2007, 03:35 PM
Hi

hier ist der ganze code von der main.tpl
{* Calculate title from path *}
{capture name="title"}
{if count($path) > 1} - {/if}
{foreach from=$path item=category name=path}
{if $smarty.foreach.path.iteration gt 2}
&gt;
{/if}
{if not $smarty.foreach.path.first}
{$category.TITLE}
{/if}
{/foreach}
{/capture}

{strip}
{if $title_prefix}
{assign var="in_page_title" value=$title_prefix|cat:$category.TITLE}
{else}
{assign var="in_page_title" value=$category.TITLE}
{/if}
{assign var="description" value=$category.DESCRIPTION}

{include file="header.tpl"}

{include file="top_bar.tpl"}


{* Calculate the number of categories per row *}
{php}
$this->assign('cats_per_col', ceil(count($this->get_template_vars('categs')) / CATS_PER_ROW));
{/php}

{if $cats_per_col > 15}
{php}
$this->assign('cats_per_col', ceil(count($this->get_template_vars('categs')) / (CATS_PER_ROW + 1)));
{/php}
{/if}






{* Show category search results *}
{if $search_category}
{$search_category}
{/if}

{* Show article search results *}
{if $search_article}
{$search_article}
{/if}

{if isset($have_search_results) and $have_search_results == 0}
<div>
<p>{l}Sorry, no records found that match your keyword(s){/l}: "{$search|escape|wordwrap:200:"\n":true}"</p>
<p>{l}Suggestions{/l}:</p>
<p>
<ul>
<li>{l}Make sure all words are spelled correctly{/l}.</li>
<li>{l}Try different keywords{/l}.</li>
<li>{l}Try more general keywords{/l}.</li>
</ul>
</p>
</div>
{/if}
{if isset($category.ID) and $category.ID eq 0 and !$list and !$search and !$uid}<div id="container">
<center><font color="#FF6600"><B>

<BR>

<Center><P>Bitte beachten!</Center>
<Center><P>Erst Kategorie waehlen, dann erscheint der Anmeldelink (links oben)</Center>




</P></font>
</center>
{/if}</div>


<center><br>
{literal}<script type="text/javascript"><!--
google_ad_client = "pub-5792705399387952";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "CCCCCC";
google_color_text = "666666";
google_color_url = "808080";
//-->
</script>{/literal}
{literal}<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>{/literal}<br><br>



</center>



{* Categories *}
{if !empty($categs)}
{if !empty($category.ID)}
<div id="bar_down">{$in_page_title}<br>
</div>
{/if}

{* Categories *}
{if $category.ID==0}<br />{/if}

<table align="center" border="0" cellpadding="0" cellspacing="0" width="94%">
<tr>
{foreach from=$categs item=cat name=categs}
{if ($smarty.foreach.categs.iteration mod $cats_per_col eq 1 and $cats_per_col gt 1) or $smarty.foreach.categs.first}<td valign="top">{/if}

{* Start Categories Modifications By Maxlinks *}
<table width="100%" border="0" cellspacing="4" cellpadding="0">
<tr>
{if empty($category.ID)}<td width="50"><img src="{$smarty.const.DOC_ROOT}/images/cat/{$cat.ID}.png" border="0" alt="{$cat.TITLE}">
</td><td valign="top">
<div class="cat2"><a title="{$cat.TITLE}" href="{$smarty.const.DOC_ROOT}/{$cat.CACHE_URL|escape}">{$cat.TITLE}</a>{if $smarty.const.CATS_COUNT} <span class="count">({$cat.COUNT})</span>{/if}{if $admin eq true}&nbsp;&nbsp;<a href="{$smarty.const.DOC_ROOT}/admin/dir_categs_edit.php?s=0&action=E:{$cat.ID}" target="_blank"><img src="{$smarty.const.DOC_ROOT}/admin/images/page_edit.png" width="16" height="13" border="0" alt="Edit" /></a><a href="javascript:if(confirm ('Are you sure you want to delete the link?'))window.location.href='{$smarty.const.DOC_R OOT}/admin/dir_categs_edit.php?action=D:{$cat.ID}';"><img src="{$smarty.const.DOC_ROOT}/admin/images/page_delete.png" width="16" height="13" border="0" alt="Delete" /></a>{/if}</div>
{else}
<td>
<div class="cat"><a title="{$cat.TITLE}" href="{if $smarty.const.ENABLE_REWRITE}{$cat.TITLE_URL}/{else}index.php?c={$cat.ID}{/if}">{$cat.TITLE}</a>{if $smarty.const.CATS_COUNT} <span class="count">({$cat.COUNT})</span>{/if}{if $admin eq true}&nbsp;&nbsp;<a title="{$cat.TITLE}" href="{$smarty.const.DOC_ROOT}/admin/dir_categs_edit.php?s=0&action=E:{$cat.ID}" target="_blank"><img src="{$smarty.const.DOC_ROOT}/admin/images/page_edit.png" width="16" height="13" border="0" alt="Edit" /></a><a href="javascript:if(confirm ('Are you sure you want to delete the link?'))window.location.href='{$smarty.const.DOC_R OOT}/admin/dir_categs_edit.php?action=D:{$cat.ID}';"><img src="{$smarty.const.DOC_ROOT}/admin/images/page_delete.png" width="16" height="13" border="0" alt="Delete" /></a>{/if}</div>

{/if}
{* Display subcategories *}

{if !empty($cat.SUBCATS)}

{foreach from=$cat.SUBCATS item=scat name=scategs}
<a class="subcat" title="{$scat.TITLE}" href="{$smarty.const.DOC_ROOT}/{$cat.CACHE_URL|escape}{$scat.TITLE_URL|escape}/">
{$scat.TITLE|escape}</a>, {/foreach}

{/if}</td></tr>
</table>
{* End Categories Modifications By Maxlinks*}

{if ($smarty.foreach.categs.iteration mod $cats_per_col eq 0 and $cats_per_col gt 1) or $smarty.foreach.categs.last}</td>{/if}
{/foreach}
</tr></table><div class="break"></div>
{if $category.ID==0}<br />{/if}
{/if}

{if isset($category.ID) and $category.ID eq 0 and !$list and !$search and !$uid}
<center>Steigern Sie Ihren PR mit einem Eintrag in unseren Webkatalog<br>
<br>

</center>
{/if}
<center>{$tagclouds|trim}</center><br>
{if $smarty.const.FTR_ENABLE == 1 and !empty($feat_links)}
<div id="bar">{l}Featured links{/l}</div>
{foreach from=$feat_links item=link name=links}
<div class="table_link">{include file="ftr.tpl" link=$link}</div>
{/foreach}
{/if}





{* Articles heading *}
{if !empty($articles) and !$uid and !$search}
<h3>{l}Kategorie - Artikel{/l}</h3>

<div class="table_link">
{foreach from=$articles item=article name=name}
{include file="articlelink.tpl" link=$article}
{/foreach}</div>
{/if}





{* Links heading and sorting*}
{if ($uid || $search || !empty($category.ID) || $list || $letter) && !empty($links)}


<div id="bar">
<p class="shorting">
{if not $list}{l}Sort by{/l}:
{if $smarty.const.ENABLE_PAGERANK and $smarty.const.SHOW_PAGERANK}{if $sort eq 'P'}<span class="sort"> {l}PageRank{/l}</span>{else}<a href="?s=P{if not $smarty.const.ENABLE_REWRITE}&amp;c={$category.ID}{/if}{if $search}&amp;search={$search}{/if}{if $uid}&amp;uid={$uid}{/if}{if !empty($p)}&amp;p={$p}{/if}"> {l}PageRank{/l}</a>{/if} |{/if}
{if $sort eq 'H'} <span class="sort">{l}Hits{/l}</span>{else} <a href="?s=H{if not $smarty.const.ENABLE_REWRITE}&amp;c={$category.ID}{/if}{if $search}&amp;search={$search}{/if}{if $uid}&amp;uid={$uid}{/if}{if !empty($p)}&amp;p={$p}{/if}">{l}Hits{/l}</a>{/if}
{if $sort eq 'A'} | <span class="sort">{l}Alphabetical{/l}</span>{else} | <a href="?s=A{if not $smarty.const.ENABLE_REWRITE}&amp;c={$category.ID}{/if}{if $search}&amp;search={$search}{/if}{if $uid}&amp;uid={$uid}{/if}{if !empty($p)}&amp;p={$p}{/if}">{l}Alphabetical{/l}</a>{/if}
{if $sort eq 'D'} | <span class="sort">{l}Date Added{/l}</span>{else} | <a href="?s=D{if not $smarty.const.ENABLE_REWRITE}&amp;c={$category.ID}{/if}{if $search}&amp;search={$search}{/if}{if $uid}&amp;uid={$uid}{/if}{if !empty($p)}&amp;p={$p}{/if}">{l}Date Added{/l}</a>{/if}
{/if}
</p>
<p>
{l}Regular Links{/l}
</p>
</div>
{foreach from=$links item=link name=links}
<div class="table_link">{include file="link.tpl" link=$link}</div>

{/foreach}
{/if}

{if count($links) eq 0 and count($feat_links) eq 0 and (!empty($category.ID) or empty($p) or $list)}
{if $smarty.const.FTR_ENABLE == 1 and !empty($feat_links)}


<br />






<br />
{/if}




{/if}
{* Javascript for tracking link clicks *}
{if $StopLinkHits eq 0}





<script type="text/javascript">
/* <![CDATA[ */
var root = '{$smarty.const.DOC_ROOT}';
{literal}
var a = document.getElementsByTagName("a");
for(i = 0; i< a.length; i++)
if(a[i].id != '')
a[i].onclick = count_link;
function count_link() {
i = new Image();
i.src= root+'/cl.php?id='+this.id;
return true;
}
{/literal}
/* ]]> */
</script>
{/if}



{include file="footer.tpl"}


{/strip}



mfg
sniper09

weil du den code falsch ersetzt.. zeig mal deine komplette main.tpl

PL_90
12-02-2007, 03:41 PM
{* Calculate title from path *}
{capture name="title"}
{if count($path) > 1} - {/if}
{foreach from=$path item=category name=path}
{if $smarty.foreach.path.iteration gt 2}
&gt;
{/if}
{if not $smarty.foreach.path.first}
{$category.TITLE}
{/if}
{/foreach}
{/capture}

{strip}
{if $title_prefix}
{assign var="in_page_title" value=$title_prefix|cat:$category.TITLE}
{else}
{assign var="in_page_title" value=$category.TITLE}
{/if}
{assign var="description" value=$category.DESCRIPTION}

{include file="header.tpl"}

{include file="top_bar.tpl"}


{* Calculate the number of categories per row *}
{php}
$this->assign('cats_per_col', ceil(count($this->get_template_vars('categs')) / CATS_PER_ROW));
{/php}

{if $cats_per_col > 15}
{php}
$this->assign('cats_per_col', ceil(count($this->get_template_vars('categs')) / (CATS_PER_ROW + 1)));
{/php}
{/if}






{* Show category search results *}
{if $search_category}
{$search_category}
{/if}

{* Show article search results *}
{if $search_article}
{$search_article}
{/if}

{if isset($have_search_results) and $have_search_results == 0}
<div>
<p>{l}Sorry, no records found that match your keyword(s){/l}: "{$search|escape|wordwrap:200:"\n":true}"</p>
<p>{l}Suggestions{/l}:</p>
<p>
<ul>
<li>{l}Make sure all words are spelled correctly{/l}.</li>
<li>{l}Try different keywords{/l}.</li>
<li>{l}Try more general keywords{/l}.</li>
</ul>
</p>
</div>
{/if}
{if isset($category.ID) and $category.ID eq 0 and !$list and !$search and !$uid}<div id="container">
<center><font color="#FF6600"><B>

<BR>

<Center><P>Bitte beachten!</Center>
<Center><P>Erst Kategorie waehlen, dann erscheint der Anmeldelink (links oben)</Center>




</P></font>
</center>
{/if}</div>


<center><br>
{literal}<script type="text/javascript"><!--
google_ad_client = "pub-5792705399387952";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "CCCCCC";
google_color_text = "666666";
google_color_url = "808080";
//-->
</script>{/literal}
{literal}<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>{/literal}<br><br>



</center>



{* Categories *}
{if !empty($categs)}
{if !empty($category.ID)}
<div id="bar_down">{$in_page_title}<br>
</div>
{/if}

{* Categories *}
{if $category.ID==0}<br />{/if}

<table align="center" border="0" cellpadding="0" cellspacing="0" width="94%">
<tr>
{foreach from=$categs item=cat name=categs}
{if ($smarty.foreach.categs.iteration mod $cats_per_col eq 1 and $cats_per_col gt 1) or $smarty.foreach.categs.first}<td valign="top">{/if}

{* Start Categories Modifications By Maxlinks *}
<table width="100%" border="0" cellspacing="4" cellpadding="0">
<tr>
{if empty($category.ID)}<td width="50"><img src="{$smarty.const.DOC_ROOT}/images/cat/{$cat.ID}.png" border="0" alt="{$cat.TITLE}">
</td><td valign="top">
<div class="cat2"><a title="{$cat.TITLE}" href="{$smarty.const.DOC_ROOT}/{$cat.CACHE_URL|escape}">{$cat.TITLE}</a>{if $smarty.const.CATS_COUNT} <span class="count">({$cat.COUNT})</span>{/if}{if $admin eq true}&nbsp;&nbsp;<a href="{$smarty.const.DOC_ROOT}/admin/dir_categs_edit.php?s=0&action=E:{$cat.ID}" target="_blank"><img src="{$smarty.const.DOC_ROOT}/admin/images/page_edit.png" width="16" height="13" border="0" alt="Edit" /></a><a href="javascript:if(confirm ('Are you sure you want to delete the link?'))window.location.href='{$smarty.const.DOC_R OOT}/admin/dir_categs_edit.php?action=D:{$cat.ID}';"><img src="{$smarty.const.DOC_ROOT}/admin/images/page_delete.png" width="16" height="13" border="0" alt="Delete" /></a>{/if}</div>
{else}
<td>
<div class="cat"><a title="{$cat.TITLE}" href="{if $smarty.const.ENABLE_REWRITE}{$cat.TITLE_URL}/{else}index.php?c={$cat.ID}{/if}">{$cat.TITLE}</a>{if $smarty.const.CATS_COUNT} <span class="count">({$cat.COUNT})</span>{/if}{if $admin eq true}&nbsp;&nbsp;<a title="{$cat.TITLE}" href="{$smarty.const.DOC_ROOT}/admin/dir_categs_edit.php?s=0&action=E:{$cat.ID}" target="_blank"><img src="{$smarty.const.DOC_ROOT}/admin/images/page_edit.png" width="16" height="13" border="0" alt="Edit" /></a><a href="javascript:if(confirm ('Are you sure you want to delete the link?'))window.location.href='{$smarty.const.DOC_R OOT}/admin/dir_categs_edit.php?action=D:{$cat.ID}';"><img src="{$smarty.const.DOC_ROOT}/admin/images/page_delete.png" width="16" height="13" border="0" alt="Delete" /></a>{/if}</div>

{/if}
{* Display subcategories *}

{if !empty($cat.SUBCATS)}

{foreach from=$cat.SUBCATS item=scat name=scategs}
<a class="subcat" title="{$scat.TITLE}" href="{$smarty.const.DOC_ROOT}/{$cat.CACHE_URL|escape}{$scat.TITLE_URL|escape}/">
{$scat.TITLE|escape}</a>, {/foreach}

{/if}</td></tr>
</table>
{* End Categories Modifications By Maxlinks*}

{if ($smarty.foreach.categs.iteration mod $cats_per_col eq 0 and $cats_per_col gt 1) or $smarty.foreach.categs.last}</td>{/if}
{/foreach}
</tr></table><div class="break"></div>
{if $category.ID==0}<br />{/if}
{/if}

{if isset($category.ID) and $category.ID eq 0 and !$list and !$search and !$uid}
<center>Steigern Sie Ihren PR mit einem Eintrag in unseren Webkatalog<br>
<br>

</center>
{/if}
<center>{$tagclouds|trim}</center><br>
{if $smarty.const.FTR_ENABLE == 1 and !empty($feat_links)}
<div id="bar">{l}Featured links{/l}</div>
{foreach from=$feat_links item=link name=links}
<div class="table_link">{include file="ftr.tpl" link=$link}</div>
{/foreach}
{/if}





{* Articles heading *}
{if !empty($articles) and !$uid and !$search}
<h3>{l}Kategorie - Artikel{/l}</h3>

<div class="table_link">
{foreach from=$articles item=article name=name}
{include file="articlelink.tpl" link=$article}
{/foreach}</div>
{/if}





{* Links heading and sorting*}
{if ($uid || $search || !empty($category.ID) || $list || $letter) && !empty($links)}


<div id="bar">
<p class="shorting">
{if not $list}{l}Sort by{/l}:
{if $smarty.const.ENABLE_PAGERANK and $smarty.const.SHOW_PAGERANK}{if $sort eq 'P'}<span class="sort"> {l}PageRank{/l}</span>{else}<a href="?s=P{if not $smarty.const.ENABLE_REWRITE}&amp;c={$category.ID}{/if}{if $search}&amp;search={$search}{/if}{if $uid}&amp;uid={$uid}{/if}{if !empty($p)}&amp;p={$p}{/if}"> {l}PageRank{/l}</a>{/if} |{/if}
{if $sort eq 'H'} <span class="sort">{l}Hits{/l}</span>{else} <a href="?s=H{if not $smarty.const.ENABLE_REWRITE}&amp;c={$category.ID}{/if}{if $search}&amp;search={$search}{/if}{if $uid}&amp;uid={$uid}{/if}{if !empty($p)}&amp;p={$p}{/if}">{l}Hits{/l}</a>{/if}
{if $sort eq 'A'} | <span class="sort">{l}Alphabetical{/l}</span>{else} | <a href="?s=A{if not $smarty.const.ENABLE_REWRITE}&amp;c={$category.ID}{/if}{if $search}&amp;search={$search}{/if}{if $uid}&amp;uid={$uid}{/if}{if !empty($p)}&amp;p={$p}{/if}">{l}Alphabetical{/l}</a>{/if}
{if $sort eq 'D'} | <span class="sort">{l}Date Added{/l}</span>{else} | <a href="?s=D{if not $smarty.const.ENABLE_REWRITE}&amp;c={$category.ID}{/if}{if $search}&amp;search={$search}{/if}{if $uid}&amp;uid={$uid}{/if}{if !empty($p)}&amp;p={$p}{/if}">{l}Date Added{/l}</a>{/if}
{/if}
</p>
<p>
{l}Regular Links{/l}
</p>
</div>
{assign var="linkcounter" value="0"}
{foreach from=$links item=link name=links}
{assign var="linkcounter" value=$linkcounter+1}
<div class="table_link">{include file="link.tpl" link=$link}</div>
{if $linkcounter==10}
{assign var="linkcounter" value="0"}
<div class="table_link">{include file="google-ads1.tpl}</div>
{/if}
{/foreach}
{/if}

{if count($links) eq 0 and count($feat_links) eq 0 and (!empty($category.ID) or empty($p) or $list)}
{if $smarty.const.FTR_ENABLE == 1 and !empty($feat_links)}


<br />






<br />
{/if}




{/if}
{* Javascript for tracking link clicks *}
{if $StopLinkHits eq 0}





<script type="text/javascript">
/* <![CDATA[ */
var root = '{$smarty.const.DOC_ROOT}';
{literal}
var a = document.getElementsByTagName("a");
for(i = 0; i< a.length; i++)
if(a[i].id != '')
a[i].onclick = count_link;
function count_link() {
i = new Image();
i.src= root+'/cl.php?id='+this.id;
return true;
}
{/literal}
/* ]]> */
</script>
{/if}



{include file="footer.tpl"}


{/strip}

sniper09
12-02-2007, 03:47 PM
Hi

habe den code eingebaut und es geht nicht siehe selbst
der rahmen ist weg

link (http://www.link-drin.de/index.php?list=latest)


mfg
sniper09

PL_90
12-02-2007, 04:39 PM
{* Calculate title from path *}
{capture name="title"}
{if count($path) > 1} - {/if}
{foreach from=$path item=category name=path}
{if $smarty.foreach.path.iteration gt 2}
&gt;
{/if}
{if not $smarty.foreach.path.first}
{$category.TITLE}
{/if}
{/foreach}
{/capture}

{strip}
{if $title_prefix}
{assign var="in_page_title" value=$title_prefix|cat:$category.TITLE}
{else}
{assign var="in_page_title" value=$category.TITLE}
{/if}
{assign var="description" value=$category.DESCRIPTION}

{include file="header.tpl"}

{include file="top_bar.tpl"}


{* Calculate the number of categories per row *}
{php}
$this->assign('cats_per_col', ceil(count($this->get_template_vars('categs')) / CATS_PER_ROW));
{/php}

{if $cats_per_col > 15}
{php}
$this->assign('cats_per_col', ceil(count($this->get_template_vars('categs')) / (CATS_PER_ROW + 1)));
{/php}
{/if}






{* Show category search results *}
{if $search_category}
{$search_category}
{/if}

{* Show article search results *}
{if $search_article}
{$search_article}
{/if}

{if isset($have_search_results) and $have_search_results == 0}
<div>
<p>{l}Sorry, no records found that match your keyword(s){/l}: "{$search|escape|wordwrap:200:"\n":true}"</p>
<p>{l}Suggestions{/l}:</p>
<p>
<ul>
<li>{l}Make sure all words are spelled correctly{/l}.</li>
<li>{l}Try different keywords{/l}.</li>
<li>{l}Try more general keywords{/l}.</li>
</ul>
</p>
</div>
{/if}
{if isset($category.ID) and $category.ID eq 0 and !$list and !$search and !$uid}<div id="container">
<center><font color="#FF6600"><B>

<BR>

<Center><P>Bitte beachten!</Center>
<Center><P>Erst Kategorie waehlen, dann erscheint der Anmeldelink (links oben)</Center>




</P></font>
</center>
{/if}</div>


<center><br>
{literal}<script type="text/javascript"><!--
google_ad_client = "pub-5792705399387952";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "CCCCCC";
google_color_text = "666666";
google_color_url = "808080";
//-->
</script>{/literal}
{literal}<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>{/literal}<br><br>



</center>



{* Categories *}
{if !empty($categs)}
{if !empty($category.ID)}
<div id="bar_down">{$in_page_title}<br>
</div>
{/if}

{* Categories *}
{if $category.ID==0}<br />{/if}

<table align="center" border="0" cellpadding="0" cellspacing="0" width="94%">
<tr>
{foreach from=$categs item=cat name=categs}
{if ($smarty.foreach.categs.iteration mod $cats_per_col eq 1 and $cats_per_col gt 1) or $smarty.foreach.categs.first}<td valign="top">{/if}

{* Start Categories Modifications By Maxlinks *}
<table width="100%" border="0" cellspacing="4" cellpadding="0">
<tr>
{if empty($category.ID)}<td width="50"><img src="{$smarty.const.DOC_ROOT}/images/cat/{$cat.ID}.png" border="0" alt="{$cat.TITLE}">
</td><td valign="top">
<div class="cat2"><a title="{$cat.TITLE}" href="{$smarty.const.DOC_ROOT}/{$cat.CACHE_URL|escape}">{$cat.TITLE}</a>{if $smarty.const.CATS_COUNT} <span class="count">({$cat.COUNT})</span>{/if}{if $admin eq true}&nbsp;&nbsp;<a href="{$smarty.const.DOC_ROOT}/admin/dir_categs_edit.php?s=0&action=E:{$cat.ID}" target="_blank"><img src="{$smarty.const.DOC_ROOT}/admin/images/page_edit.png" width="16" height="13" border="0" alt="Edit" /></a><a href="javascript:if(confirm ('Are you sure you want to delete the link?'))window.location.href='{$smarty.const.DOC_R OOT}/admin/dir_categs_edit.php?action=D:{$cat.ID}';"><img src="{$smarty.const.DOC_ROOT}/admin/images/page_delete.png" width="16" height="13" border="0" alt="Delete" /></a>{/if}</div>
{else}
<td>
<div class="cat"><a title="{$cat.TITLE}" href="{if $smarty.const.ENABLE_REWRITE}{$cat.TITLE_URL}/{else}index.php?c={$cat.ID}{/if}">{$cat.TITLE}</a>{if $smarty.const.CATS_COUNT} <span class="count">({$cat.COUNT})</span>{/if}{if $admin eq true}&nbsp;&nbsp;<a title="{$cat.TITLE}" href="{$smarty.const.DOC_ROOT}/admin/dir_categs_edit.php?s=0&action=E:{$cat.ID}" target="_blank"><img src="{$smarty.const.DOC_ROOT}/admin/images/page_edit.png" width="16" height="13" border="0" alt="Edit" /></a><a href="javascript:if(confirm ('Are you sure you want to delete the link?'))window.location.href='{$smarty.const.DOC_R OOT}/admin/dir_categs_edit.php?action=D:{$cat.ID}';"><img src="{$smarty.const.DOC_ROOT}/admin/images/page_delete.png" width="16" height="13" border="0" alt="Delete" /></a>{/if}</div>

{/if}
{* Display subcategories *}

{if !empty($cat.SUBCATS)}

{foreach from=$cat.SUBCATS item=scat name=scategs}
<a class="subcat" title="{$scat.TITLE}" href="{$smarty.const.DOC_ROOT}/{$cat.CACHE_URL|escape}{$scat.TITLE_URL|escape}/">
{$scat.TITLE|escape}</a>, {/foreach}

{/if}</td></tr>
</table>
{* End Categories Modifications By Maxlinks*}

{if ($smarty.foreach.categs.iteration mod $cats_per_col eq 0 and $cats_per_col gt 1) or $smarty.foreach.categs.last}</td>{/if}
{/foreach}
</tr></table><div class="break"></div>
{if $category.ID==0}<br />{/if}
{/if}

{if isset($category.ID) and $category.ID eq 0 and !$list and !$search and !$uid}
<center>Steigern Sie Ihren PR mit einem Eintrag in unseren Webkatalog<br>
<br>

</center>
{/if}
<center>{$tagclouds|trim}</center><br>
{if $smarty.const.FTR_ENABLE == 1 and !empty($feat_links)}
<div id="bar">{l}Featured links{/l}</div>
{foreach from=$feat_links item=link name=links}
<div class="table_link">{include file="ftr.tpl" link=$link}</div>
{/foreach}
{/if}





{* Articles heading *}
{if !empty($articles) and !$uid and !$search}
<h3>{l}Kategorie - Artikel{/l}</h3>

<div class="table_link">
{foreach from=$articles item=article name=name}
{include file="articlelink.tpl" link=$article}
{/foreach}</div>
{/if}





{* Links heading and sorting*}
{if ($uid || $search || !empty($category.ID) || $list || $letter) && !empty($links)}


<div id="bar">
<p class="shorting">
{if not $list}{l}Sort by{/l}:
{if $smarty.const.ENABLE_PAGERANK and $smarty.const.SHOW_PAGERANK}{if $sort eq 'P'}<span class="sort"> {l}PageRank{/l}</span>{else}<a href="?s=P{if not $smarty.const.ENABLE_REWRITE}&amp;c={$category.ID}{/if}{if $search}&amp;search={$search}{/if}{if $uid}&amp;uid={$uid}{/if}{if !empty($p)}&amp;p={$p}{/if}"> {l}PageRank{/l}</a>{/if} |{/if}
{if $sort eq 'H'} <span class="sort">{l}Hits{/l}</span>{else} <a href="?s=H{if not $smarty.const.ENABLE_REWRITE}&amp;c={$category.ID}{/if}{if $search}&amp;search={$search}{/if}{if $uid}&amp;uid={$uid}{/if}{if !empty($p)}&amp;p={$p}{/if}">{l}Hits{/l}</a>{/if}
{if $sort eq 'A'} | <span class="sort">{l}Alphabetical{/l}</span>{else} | <a href="?s=A{if not $smarty.const.ENABLE_REWRITE}&amp;c={$category.ID}{/if}{if $search}&amp;search={$search}{/if}{if $uid}&amp;uid={$uid}{/if}{if !empty($p)}&amp;p={$p}{/if}">{l}Alphabetical{/l}</a>{/if}
{if $sort eq 'D'} | <span class="sort">{l}Date Added{/l}</span>{else} | <a href="?s=D{if not $smarty.const.ENABLE_REWRITE}&amp;c={$category.ID}{/if}{if $search}&amp;search={$search}{/if}{if $uid}&amp;uid={$uid}{/if}{if !empty($p)}&amp;p={$p}{/if}">{l}Date Added{/l}</a>{/if}
{/if}
</p>
<p>
{l}Regular Links{/l}
</p>
</div>
{assign var="linkcounter" value="0"}
{foreach from=$links item=link name=links}
{assign var="linkcounter" value=$linkcounter+1}
<div class="table_link">{include file="link.tpl" link=$link}</div>
{if $linkcounter==10}
{assign var="linkcounter" value="0"}
<div class="table_link">{include file="google-ads1.tpl"}</div>
{/if}
{/foreach}
{/if}

{if count($links) eq 0 and count($feat_links) eq 0 and (!empty($category.ID) or empty($p) or $list)}
{if $smarty.const.FTR_ENABLE == 1 and !empty($feat_links)}


<br />






<br />
{/if}




{/if}
{* Javascript for tracking link clicks *}
{if $StopLinkHits eq 0}





<script type="text/javascript">
/* <![CDATA[ */
var root = '{$smarty.const.DOC_ROOT}';
{literal}
var a = document.getElementsByTagName("a");
for(i = 0; i< a.length; i++)
if(a[i].id != '')
a[i].onclick = count_link;
function count_link() {
i = new Image();
i.src= root+'/cl.php?id='+this.id;
return true;
}
{/literal}
/* ]]> */
</script>
{/if}



{include file="footer.tpl"}


{/strip}



Hab da nen Fehler entdeckt... em.. versuchs mal so, wenn es nicht geht dann poste mal deine google-ads1.tpl ...

sniper09
12-02-2007, 05:05 PM
hi
habe den code eingebaut jetzt wird der rahmen wieder angezeigt aber die google werbung erscheint nicht

hier ist der code aus der google-ads1.tpl
{strip} {literal} <script type="text/javascript"><!--
google_ad_client = "pub-5792705399387952";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
//2007-06-17: Webkatalog
google_ad_channel = "6403339690";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "5B762F";
google_color_text = "646464";
google_color_url = "000000";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script> {/literal} {/strip}

Hab da nen Fehler entdeckt... em.. versuchs mal so, wenn es nicht geht dann poste mal deine google-ads1.tpl ...

PL_90
12-02-2007, 05:38 PM
hi
habe den code eingebaut jetzt wird der rahmen wieder angezeigt aber die google werbung erscheint nicht

hier ist der code aus der google-ads1.tpl
<script type="text/javascript">
google_ad_client = "pub-5792705399387952";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel = "6403339690";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "5B762F";
google_color_text = "646464";
google_color_url = "000000";
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Deine Google Werbung macht alles kaputt.. ;)

sniper09
12-02-2007, 05:45 PM
mhh

gibt es da ne lösung das es auch mit der werbung klappt ??



Deine Google Werbung macht alles kaputt.. ;)


mfg
sniper09

PL_90
12-02-2007, 06:03 PM
hab doch oben den code geschrieben..

nochmal:


<script type="text/javascript">
google_ad_client = "pub-5792705399387952";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel = "6403339690";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "5B762F";
google_color_text = "646464";
google_color_url = "000000";
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

sniper09
12-02-2007, 08:08 PM
Hi

habe es auch mit dem code versucht aber es bleibt alles beim alten
der rahmen wird nicht angezeigt

mfg
sniper09

pragent
12-02-2007, 09:22 PM
Mach einfach einen 468er rein und gut ist

{literal}<script type="text/javascript"><!--
google_ad_client = "pub-5792705399387952";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "CCCCCC";
google_color_text = "666666";
google_color_url = "808080";
//-->
</script>{/literal}
{literal}<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>{/literal}<br>

sniper09
12-03-2007, 07:06 AM
hi

jetzt hat es funktioniert

1000 mal danke für eure hilfe

mfg
sniper09

wellnessexclusiv
12-03-2007, 10:36 AM
Hallo Leute,

bei mir klappts nicht. Bekomme Internal server error:

Hier der Original-Code:


{foreach from=$links item=link name=links}
{include file="link.tpl" link=$link}
{/foreach}




Und so hatte ich´s geändert (so aber error):

{assign var="linkcounter" value="0"}
{foreach from=$links item=link name=links}
{assign var="linkcounter" value=$linkcounter+1}
{include file="link.tpl" link=$link}
{if $linkcounter==10}
{assign var="linkcounter" value="0"}
{litaral}
<!-- Website-Code Begin ADNET.de - www.dagis-net-tipps.de, 468 x 60 -->
<iframe src=http://ad.adnet.de/adneti-i.php?s=3488&amp;w=468&amp;h=60&amp;t=_blank marginwidth=”0” marginheight=”0” frameborder=”0” scrolling=”no” width=”468” height=”60”>
<a href="http://ad.adnet.de/adnetc.php?s=3488&amp;w=468&amp;h=60&amp;t=_blank" target="_blank"><img src=http://ad.adnet.de/adneti.php?s=3488&amp;w=468&amp;h=60&amp;t=_blank width=”468” height=”60” border=”0” /></a>
</iframe>
<!-- Website-Code Ende ADNET 2.1.0.pro -->
{/literal}
{/foreach}



Wer weiß Rat?

PL_90
12-03-2007, 08:17 PM
Smarty mag die Kommentare (<!-- und -->) nicht so gerne.. ;)
@ sniper09
auf deiner Seite unter Neue Links hast du 5 x Adsense! Willst du, dass Google dich sperrt?

sniper09
12-03-2007, 09:26 PM
Hi

ist geändert jetzt ist es 2 mal vorhanden

thx

lg
sniper09

Smarty mag die Kommentare (<!-- und -->) nicht so gerne.. ;)
@ sniper09
auf deiner Seite unter Neue Links hast du 5 x Adsense! Willst du, dass Google dich sperrt?

wellnessexclusiv
12-04-2007, 07:50 AM
Smarty mag die Kommentare (<!-- und -->) nicht so gerne.. ;)
......


Hatte die Kommentare komplett rausgenommen und bekam trotzdem einen
"500 Seite kann nicht angezeigt werden"
:(

Selbst die "Home" wird dann nicht mehr angezeigt.

PL_90
12-04-2007, 02:27 PM
Hatte die Kommentare komplett rausgenommen und bekam trotzdem einen
"500 Seite kann nicht angezeigt werden"
:(

Selbst die "Home" wird dann nicht mehr angezeigt.


aber erst nachdem du den Code reingemacht hast oder?

wellnessexclusiv
12-04-2007, 03:28 PM
Die Seite wird ohne Code normal angezeigt.

Baue ich ihn ein (egal ob mit oder ohne Kommentare) wird die Home
und die Linkseiten nicht mehr angezeigt.

PL_90
12-04-2007, 08:02 PM
Irgendwie bekommst du fast bei jeder Sache nen 500.. wie ich es sehe.. Bei welchen Hoster bist du?

wellnessexclusiv
12-04-2007, 09:08 PM
Irgendwie bekommst du fast bei jeder Sache nen 500.. wie ich es sehe.. Bei welchen Hoster bist du?

:rolleyes: Ja das stimmt wohl - domain-go.de