Header code help

Started by Upalnite, September 29, 2008, 02:20:47 PM

Previous topic - Next topic

Upalnite

Yo guys,

im trying to add some links and code to the boards overall header, just under the logo, but all i get is errors on the page after adding the code.
Please can someonr rewrite this code so it would fit into a smf board:-

<div id="menubar">
<center>
<table width="100%" cellspacing="0">
<tr>
<td class="genmed" align="center">

<font size="2">

<a href="/">:: HOME :: </a>&nbsp; &nbsp;
<a href="http://www.dontstayin.com/parties/vlu">:: VLU DSI :: </a>&nbsp; &nbsp;
<a href="/guestbook/">:: GUESTBOOK :: </a>&nbsp; &nbsp;
<a href="/events/">:: EVENTS :: </a>&nbsp; &nbsp;
<a href="/forum/arcade.php">:: ARCADE :: </a>&nbsp; &nbsp;
<a href="/forum/calendar.php">:: CALENDAR :: </a>&nbsp; &nbsp;
<a href="/rules/">:: SITE RULES :: </a>&nbsp; &nbsp;
<a href="/tellfriend/">:: RECOMMEND US :: </a>&nbsp; &nbsp;
<a href="/forum/ucp.php?mode=register">:: REGISTER :: </a>&nbsp; &nbsp;

<br />

<a href="/radiocenter/">:: RADIO CENTER :: </a>&nbsp; &nbsp;
<a href="/forum/chat/">:: CHAT ROOM :: </a>&nbsp; &nbsp;
<a href="/forum/">:: FORUM :: </a>&nbsp; &nbsp;
<a href="/gallery/">:: GALLERY :: </a>&nbsp; &nbsp;
<a href="/download/">:: MIX DOWNLOADS :: </a>&nbsp; &nbsp;
<a href="/uploader/">:: MIX UPLOADER :: </a>&nbsp; &nbsp;
<a href="/blog/">:: BLOG SECTION :: </a>&nbsp; &nbsp;
<a href="/forum/smartfeed_url.php">:: RSS FEED :: </a>&nbsp; &nbsp;

</font>

</td>
</tr>
</table></center>
</div>

<table class="headerbar" width="100%" cellspacing="1">
    <tr>
         <td><iframe src="/radiocenter/phpscript/radio_stats.php" width="100%" height="50" frameborder="0" scrolling="no"></iframe></div></td>
<td>
<div align="right">
<a href="http://kfb-host.co.uk/castcontrol/playlist.php?port=9086&type=pls" target="_blank"><img src="/images/footer/winamp.png" alt="WINAMP" title="WINAMP" /></a>
<a href="http://kfb-host.co.uk/castcontrol/playlist.php?port=9086&type=pls" target="_blank"><img src="/images/footer/itunes.png" alt="ITUNES" title="ITUNES" /></a>
<a href="http://kfb-host.co.uk/castcontrol/playlist.php?port=9086&type=ram" target="_blank"><img src="/images/footer/real.png" alt="REAL PLAYER" title="REAL PLAYER" /></a>
<a href="http://kfb-host.co.uk/castcontrol/playlist.php?port=9086&type=asx" target="_blank"><img src="/images/footer/wmp.png" alt="WINDOWS MEDIA" title="WINDOWS MEDIA" /></a>
<a href="/radiocenter/links/LiveStream.html" onClick="return popup(this, 'notes')"><img valign='middle' src='/radiocenter/images/livestream.png' alt="LIVE STREAM" title="LIVE STREAM"></a>
<a href="/flashplayer/flscplayer.php" target="_blank"><img src="/images/footer/flash2.png" alt="VLU FLASH PLAYER" title="VLU FLASH PLAYER" /></a>
</div>
</td>
    </tr>
    </table>
<hr>
<div align="right"><b><font color="#FFFFFF" size="2">Dj's Click Here:-</font></b> <a href="" rel="MainContentArea" >Dj Panel</a> &nbsp; &nbsp;
<b><font color="#FFFFFF" size="2">Radio Staff Click Here:-</font></b> <a href="" rel="MainContentArea" >Staff Panel</a> &nbsp; &nbsp;
<b><font color="#FFFFFF" size="2">Click Here To View Schedule:-</font></b> <a href="/radiocenter/timetable.php" rel="MainContentArea" >Radio Timetable</a> &nbsp; &nbsp;</div>
<hr>

<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=320,height=70,scrollbars=no');
return false;
}
//-->
</SCRIPT>
<br />

[SiNaN]

Welcome Upalnite. :)

You can use these codes:

echo '
   <div id="menubar">
   <center>
   <table width="100%" cellspacing="0">
   <tr>
   <td class="genmed" align="center">

<font size="2">

<a href="/">:: HOME :: </a>&nbsp; &nbsp;
<a href="http://www.dontstayin.com/parties/vlu">:: VLU DSI :: </a>&nbsp; &nbsp;           
<a href="/guestbook/">:: GUESTBOOK :: </a>&nbsp; &nbsp;
<a href="/events/">:: EVENTS :: </a>&nbsp; &nbsp;           
<a href="/forum/arcade.php">:: ARCADE :: </a>&nbsp; &nbsp;
<a href="/forum/calendar.php">:: CALENDAR :: </a>&nbsp; &nbsp;           
<a href="/rules/">:: SITE RULES :: </a>&nbsp; &nbsp;
<a href="/tellfriend/">:: RECOMMEND US :: </a>&nbsp; &nbsp;
<a href="/forum/ucp.php?mode=register">:: REGISTER :: </a>&nbsp; &nbsp;

<br />

<a href="/radiocenter/">:: RADIO CENTER :: </a>&nbsp; &nbsp;
<a href="/forum/chat/">:: CHAT ROOM :: </a>&nbsp; &nbsp;
<a href="/forum/">:: FORUM :: </a>&nbsp; &nbsp;
<a href="/gallery/">:: GALLERY :: </a>&nbsp; &nbsp;
<a href="/download/">:: MIX DOWNLOADS :: </a>&nbsp; &nbsp;
<a href="/uploader/">:: MIX UPLOADER :: </a>&nbsp; &nbsp;
<a href="/blog/">:: BLOG SECTION :: </a>&nbsp; &nbsp;
<a href="/forum/smartfeed_url.php">:: RSS FEED :: </a>&nbsp; &nbsp;

</font>
           
            </td>     
            </tr>     
            </table></center>   
            </div>

   <table class="headerbar" width="100%" cellspacing="1">
    <tr>
         <td><iframe src="/radiocenter/phpscript/radio_stats.php" width="100%" height="50" frameborder="0" scrolling="no"></iframe></div></td>
       <td>
<div align="right">     
<a href="http://kfb-host.co.uk/castcontrol/playlist.php?port=9086&type=pls" target="_blank"><img src="/images/footer/winamp.png" alt="WINAMP" title="WINAMP" /></a>
<a href="http://kfb-host.co.uk/castcontrol/playlist.php?port=9086&type=pls" target="_blank"><img src="/images/footer/itunes.png" alt="ITUNES" title="ITUNES" /></a>
<a href="http://kfb-host.co.uk/castcontrol/playlist.php?port=9086&type=ram" target="_blank"><img src="/images/footer/real.png" alt="REAL PLAYER" title="REAL PLAYER" /></a>
<a href="http://kfb-host.co.uk/castcontrol/playlist.php?port=9086&type=asx" target="_blank"><img src="/images/footer/wmp.png" alt="WINDOWS MEDIA" title="WINDOWS MEDIA" /></a>
<a href="/radiocenter/links/LiveStream.html" onClick="return popup(this, \'notes\')"><img valign=\'middle\' src=\'/radiocenter/images/livestream.png\' alt="LIVE STREAM" title="LIVE STREAM"></a>
<a href="/flashplayer/flscplayer.php" target="_blank"><img src="/images/footer/flash2.png" alt="VLU FLASH PLAYER" title="VLU FLASH PLAYER" /></a>   
</div>
       </td>
    </tr>
    </table>
   <hr>
<div align="right"><b><font color="#FFFFFF" size="2">Dj\'s Click Here:-</font></b> <a href="" rel="MainContentArea" >Dj Panel</a> &nbsp; &nbsp;
<b><font color="#FFFFFF" size="2">Radio Staff Click Here:-</font></b> <a href="" rel="MainContentArea" >Staff Panel</a> &nbsp; &nbsp;
<b><font color="#FFFFFF" size="2">Click Here To View Schedule:-</font></b> <a href="/radiocenter/timetable.php" rel="MainContentArea" >Radio Timetable</a> &nbsp; &nbsp;</div>
<hr>   

<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == \'string\')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, \'width=320,height=70,scrollbars=no\');
return false;
}
//-->
</SCRIPT>
<br />';


Make sure that you put these outside an echo.

As a note; to output information as HTML, you can use echo in PHP.

Example:

<?php

echo 'Welcome Upalnite!';

?>


This php file will show the text between echo.

An important point is that, you shoul replace single quotes (') with, slash+single quotes (\') in the codes you put between echo.

For example:

// Wrong
echo 'How're you?';


// Correct
echo 'How\'re you?';
Former SMF Core Developer | My Mods | SimplePortal

Upalnite

thank you for that mate, now it works and looks spot on, cheers fella :):):)

[SiNaN]

You're welcome. Marked as solved.
Former SMF Core Developer | My Mods | SimplePortal

Advertisement: