2009-06-24, 10:36 AM
I want to create custom page with referral link. I'm using {$post['uid']} at the end of link but it shows me nothing (no number at end).
I've created zapros.php page with this code
Then I've created template zapros with this code:
What did I wrong? how can I make referral link in custom page? Please help.
I've created zapros.php page with this code
<?php
define("IN_MYBB", 1);
define("KILL_GLOBALS", 1);
require "global.php";
add_breadcrumb("ZaproĊ znajomych", "zapros.php");
eval("\$zapros= \"".$templates->get("zapros")."\";");
output_page($zapros);
?>
Then I've created template zapros with this code:
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow1" valign="top">
<div style="padding: 5px 0 5px 0;">
<div class="codeblock">
<div class="title">$lang->code</div>
<div class="body" dir="ltr">
<code>http://my-site.com/index.php?referrer={$post['uid']}</code>
</div>
</div><br>
</div>
</td>
</tr>
</table>
{$footer}
</body>
</html>
What did I wrong? how can I make referral link in custom page? Please help.