Does anyone have a code to create a affilates box
like this:

And it will attach to my info centre.
You can simply add a tiny table to your index template. Something similar to this:
<table>
<tr class="catbg">
<td>Affiliates</td>
</tr>
<tr>
<td class="windowbg" >"your affiliates"</td>
</tr></table>
You will need to tweak with the attributes though to make it match your theme.
// Load the users online today.
$midnight = ((date("U") - (date("H") * 3600)) - (date("i") * 60));
<table>
<tr class="catbg">
<td>Affiliates</td>
</tr>
<tr>
<td class="windowbg" >"your affiliates"</td>
</tr></table>
// Chat Stats
echo '
<tr>
<td class="catbg" colspan="2">', $txt['chatStats'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=chat">
<img src="', $settings['images_url'], '/chatIcon.gif" alt="', $txt['chatAlt'], '" border="0" /></a>
</td>
<td class="windowbg2" width="100%">
There are currently <script src="http://www.everywherechat.com/users.asp?room=', $modSettings['chatRoomName'], '"></script> people talking in the chat room.<BR>
<script src="http://www.everywherechat.com/members.asp?room=', $modSettings['chatRoomName'], '"></script>
<span class="smalltext">';
//ShoutBox
echo '
<tr>
<td colspan="2" class="catbg">ShoutBox</td>
</tr>
<tr>
<td colspan="2" class="windowbg2">',smfshout(),'</td>
</tr>';
And I get Template Parse Error?
Lainaus käyttäjältä: Fanta - tammikuu 16, 2005, 10:18:54 AP
// Load the users online today.
$midnight = ((date("U") - (date("H") * 3600)) - (date("i") * 60));
<table>
<tr class="catbg">
<td>Affiliates</td>
</tr>
<tr>
<td class="windowbg" >"your affiliates"</td>
</tr></table>
// Chat Stats
echo '
<tr>
<td class="catbg" colspan="2">', $txt['chatStats'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=chat">
<img src="', $settings['images_url'], '/chatIcon.gif" alt="', $txt['chatAlt'], '" border="0" /></a>
</td>
<td class="windowbg2" width="100%">
There are currently <script src="http://www.everywherechat.com/users.asp?room=', $modSettings['chatRoomName'], '"></script> people talking in the chat room.<BR>
<script src="http://www.everywherechat.com/members.asp?room=', $modSettings['chatRoomName'], '"></script>
<span class="smalltext">';
//ShoutBox
echo '
<tr>
<td colspan="2" class="catbg">ShoutBox</td>
</tr>
<tr>
<td colspan="2" class="windowbg2">',smfshout(),'</td>
</tr>';
And I get Template Parse Error?
Try:
// Load the users online today.
$midnight = ((date("U") - (date("H") * 3600)) - (date("i") * 60));
echo '<table>
<tr class="catbg">
<td>Affiliates</td>
</tr>
<tr>
<td class="windowbg" >"your affiliates"</td>
</tr></table>';
// Chat Stats
echo '
<tr>
<td class="catbg" colspan="2">', $txt['chatStats'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=chat">
<img src="', $settings['images_url'], '/chatIcon.gif" alt="', $txt['chatAlt'], '" border="0" /></a>
</td>
<td class="windowbg2" width="100%">
There are currently <script src="http://www.everywherechat.com/users.asp?room=', $modSettings['chatRoomName'], '"></script> people talking in the chat room.<BR>
<script src="http://www.everywherechat.com/members.asp?room=', $modSettings['chatRoomName'], '"></script>
<span class="smalltext">';
//ShoutBox
echo '
<tr>
<td colspan="2" class="catbg">ShoutBox</td>
</tr>
<tr>
<td colspan="2" class="windowbg2">',smfshout(),'</td>
</tr>';
:)
Tried that and I still get the Template Parse Error.
Lainaus käyttäjältä: Fanta - tammikuu 16, 2005, 10:28:52 AP
Tried that and I still get the Template Parse Error.
$midnight = ((date("U") - (date("H") * 3600)) - (date("i") * 60));It might be a problem with that... There's too many brackets I think.
$midnight = ( date("U") - date("H") * 3600 ) - ( date("i") * 60 );Try that.
That made a huge brown rectangle down the right side of my forum and made a tiny affilates box. ;)
Any other ideas?
the first 1 worked 4 me
where can i get the affiliate box?
How can I tweak the code for the affilates box to fit my forum? (http://www.habbohood.co.uk/harrypotter/)
I think I am allowed to bump this...