Erstelle eine php-Datei
"backlink.php" mit folgenden Code:
Code:
<?php
require_once 'init.php';
$path = array ();
$path[] = array ('ID' => '0', 'TITLE' => _L(SITE_NAME) , 'TITLE_URL' => DOC_ROOT, 'DESCRIPTION' => SITE_DESC);
$path[] = array ('ID' => '0', 'TITLE' => _L('Reciprocal Websites'), 'TITLE_URL' => '' , 'DESCRIPTION' => _L('No authorisation'));
$tpl->assign('path', $path);
//Clean whitespace
$tpl->load_filter('output', 'trimwhitespace');
//Compress output for faster loading
if (COMPRESS_OUTPUT == 1)
$tpl->load_filter('output', 'CompressOutput');
$recip_page = $db->GetAll("SELECT * FROM `{$tables['link']['name']}` WHERE `STATUS` = '2' AND `RECPR_REQUIRED` != '0' {$expire_where} {$user_where} ORDER BY RAND() LIMIT 0, 5000");
$tpl->assign('recip_page', $recip_page);
//Make output
echo $tpl->fetch('backlink.tpl');
?>
Erstelle nun eine Template
"backlink.tpl" mit diesem Code:
Code:
{capture name="title"} - {l}Unsere Backlink - Einträge{/l}{/capture}
{capture assign="in_page_title"}{l}Unsere Backlink - Einträge{/l}{/capture}
{capture assign="description"}{l}Backlink Eintrag {/l}{/capture}
{include file="header.tpl"}
{include file="top_bar.tpl"}
{strip}
{foreach from=$recip_page item=link name=recip_page}
{include file="link.tpl" link=$link}
{/foreach}
{include file="footer.tpl"}
{/strip}
Der Template-Code muß an Euer Template angepasst werden.