Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: qd-race - lokakuu 17, 2006, 04:50:10 AP

Otsikko: How to "Include" file
Kirjoitti: qd-race - lokakuu 17, 2006, 04:50:10 AP
I want to add affiliate link at the bottom of the page without using the database. This Affiliate maybe will change from time to time, so I think better to use Include file as below code in qd-race.com server:

affiliate.php (in replica2u.com server)

<html>
<body>
<small>Altered and Moded by <a href="http://www.qd-race.com" target="_blank"><b>Rosdi Bin Ahmad</b>.<br></a>
Affiliate: <a href="http://www.qd-race.com" target="_blank">Qd-race.com</a>&nbsp;
|&nbsp; <a href="http://www.replica2u.com" target="_blank">Replica2u.com</a>&nbsp;
|&nbsp; <a href="http://www.steamyx.net" target="_blank">Steamyx.net</a>&nbsp;
|&nbsp; <a href="http://hazlina.ui2u.com" target="_blank">Uptrend2u.com</a></small>


index.template.php (Beginning on line 238)

after:

', theme_copyright(), '<br />

I insert

<?php Include ("http://www.replica2u.com/affiliate.php"); ?>

Nothing happen when running. Any error for the above code? Please help.

Thanks.