ozegreatdeals
11-11-2006, 09:24 AM
Hi,
I have asked a couple of mates to help me with this but so far they have not been able to get it to work.
I need to add the following code to my site to display some text adverts which a advertiser has purchased:
<?php
$fp = @fsockopen("www.linkworth.com", "80",$errno, $errstr, $timeout="5");
if($fp)
{
require 'http://www.linkworth.com/act/partner/rotating_ads/inclusion_links.php?prt_website_id=852&prt_website_link_placement_location=3&prt_website_link_placement_id=2143&link_format=1';
}
?>
Here is what is currently in the top_bar.tpl file:
{strip}
<div id="nav">
<ul>
<li><a href="{$smarty.const.DOC_ROOT}/index.php">{l}Homepage{/l}</a></li>
<li><a href="{$smarty.const.DOC_ROOT}/submit.php">{l}Suggest URL{/l}</a></li>
<li><a href="{$smarty.const.DOC_ROOT}/index.php?p=d">{l}Latest Links{/l}</a></li>
<li><a href="{$smarty.const.DOC_ROOT}/index.php?p=h">{l}Top Hits{/l}</a></li>
</ul>
</div>
{* Left(!!) part of the top bar *}
<div id="location">
{* Display current path *}
{assign var="current_path" value=""}
{foreach from=$path item=cat name=path}
{assign var="current_path" value="`$current_path``$cat.TITLE_URL`/"}
{if not $smarty.foreach.path.first} » {/if}
{if not $smarty.foreach.path.last}
<a href="{if $smarty.const.ENABLE_REWRITE}{$current_path}{else} index.php?c={$cat.ID}{/if}">{$cat.TITLE}</a>
{else}
{$cat.TITLE}
{/if}
{/foreach}
</div>
{literal}
<?php
$fp = @fsockopen("www.linkworth.com", "80",$errno, $errstr, $timeout="5");
if($fp)
{
require 'http://www.linkworth.com/act/partner/rotating_ads/inclusion_links.php?prt_website_id=852&prt_website_link_placement_location=3&prt_website_link_placement_id=2143&link_format=1';
}
?>
{/literal}
{/strip}
Does anyone have any ideas on how to place the code so it will work?
Drew.
I have asked a couple of mates to help me with this but so far they have not been able to get it to work.
I need to add the following code to my site to display some text adverts which a advertiser has purchased:
<?php
$fp = @fsockopen("www.linkworth.com", "80",$errno, $errstr, $timeout="5");
if($fp)
{
require 'http://www.linkworth.com/act/partner/rotating_ads/inclusion_links.php?prt_website_id=852&prt_website_link_placement_location=3&prt_website_link_placement_id=2143&link_format=1';
}
?>
Here is what is currently in the top_bar.tpl file:
{strip}
<div id="nav">
<ul>
<li><a href="{$smarty.const.DOC_ROOT}/index.php">{l}Homepage{/l}</a></li>
<li><a href="{$smarty.const.DOC_ROOT}/submit.php">{l}Suggest URL{/l}</a></li>
<li><a href="{$smarty.const.DOC_ROOT}/index.php?p=d">{l}Latest Links{/l}</a></li>
<li><a href="{$smarty.const.DOC_ROOT}/index.php?p=h">{l}Top Hits{/l}</a></li>
</ul>
</div>
{* Left(!!) part of the top bar *}
<div id="location">
{* Display current path *}
{assign var="current_path" value=""}
{foreach from=$path item=cat name=path}
{assign var="current_path" value="`$current_path``$cat.TITLE_URL`/"}
{if not $smarty.foreach.path.first} » {/if}
{if not $smarty.foreach.path.last}
<a href="{if $smarty.const.ENABLE_REWRITE}{$current_path}{else} index.php?c={$cat.ID}{/if}">{$cat.TITLE}</a>
{else}
{$cat.TITLE}
{/if}
{/foreach}
</div>
{literal}
<?php
$fp = @fsockopen("www.linkworth.com", "80",$errno, $errstr, $timeout="5");
if($fp)
{
require 'http://www.linkworth.com/act/partner/rotating_ads/inclusion_links.php?prt_website_id=852&prt_website_link_placement_location=3&prt_website_link_placement_id=2143&link_format=1';
}
?>
{/literal}
{/strip}
Does anyone have any ideas on how to place the code so it will work?
Drew.