Quote:
Originally Posted by DZaidle
I don't know if this will help you, but here is the sidebar code I use to place ads and external links in the left sidebar. The code is the complete Header template as modified.
Code:
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else /> </if>
</td>
</tr>
</table>
<!-- /logo -->
<!-- SIDEBAR CODE ADDED -->
<table width="$stylevar[outertablewidth]" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="150" valign="top" class="page" style="padding: $stylevar[cellpadding]px;">
<! ADVERTISEMENT CODE HERE >
<! -CONTEXTUAL AD PLACEMENT- >
<script type="text/javascript">
var forumnumber="$foruminfo[forumid]";
// -HUNTING
if (forumnumber=="5") document.write("<a href='http://www.tinks69.com/' target='_blank'><img src='images/TFG_ADS/TEST_ADS/HUNTING/left_side1.jpg' width='180'/></a>");
else if (forumnumber=="7") document.write("<a href='http://www.excaliburcrossbows.com/' target='_blank'><img src='images/TFG_ADS/TEST_ADS/HUNTING/left_side3.jpg' height='460' width='180'/></a>");
else if (forumnumber=="11") document.write("<a href='http://www.cz-usa.com/' target='_blank'><img src='images/TFG_ADS/TEST_ADS/HUNTING/left_side2.jpg' width='180'/></a>");
// -FISHING
else if (forumnumber=="4") document.write("<a href='http://www.coveharbormarina.com/' target='_blank'><img src='images/TFG_ADS/TEST_ADS/FISHING/left_side1.jpg' width='180'/></a>");
else if (forumnumber=="3") document.write("<a href='http://www.huffmarine1955.com/' target='_blank'><img src='images/TFG_ADS/TEST_ADS/FISHING/left_side2.jpg' width='180'/></a>");
else if (forumnumber=="19") document.write("<a href='http://www.lmcboats.com/' target='_blank'><img src='images/TFG_ADS/TEST_ADS/FISHING/left_side3.jpg' width='180'/></a>");
// -GENERAL
else document.write("<a href='http://www.arcticcat.com/' target='_blank'><img src='images/TFG_ADS/TEST_ADS/left_side1.jpg' width='180'/></a>");
</script>
<! /-CONTEXTUAL AD PLACEMENT- >
* * *
<!-- LINKS -->
<table border="1"; frame="box"; width="180">
<tr>
<th style="font-size:14pt; family:Veranda; color:green">Links</th>
</tr>
<tr><td align="center"><a href="http://www.tpwd.state.tx.us" target="_blank"; style="color:blue; font-size:10pt; font-family:'Franklin Gothic Demi';">Texas Parks & Wildlife Dept.</a></td></tr>
<tr><td align="center"><a href="http://www.fws.gov" target="_blank"; style="color:blue; font-size:10pt; font-family:'Franklin Gothic Demi';">U.S. Fish & Wildlife Service</a></td></tr>
<tr><td align="center"><a href="http://www.noaa.gov" target="_blank"; style="color:blue; font-size:10pt; font-family:'Franklin Gothic Demi'">NOAA</a></td></tr>
</table>
<!-- /LINKS -->
<! /ADVERTISEMENT CODE HERE >
</td>
<td valign="top">
<!-- /SIDEBAR CODE ADDED -->
<!-- content table -->
$spacer_open
$_phpinclude_output
$ad_location[ad_header_end]
|
Thanks for the response. I've got everything working except getting the upcoming events to display as it's not part of this plugin. Pretty new to vB and the million different templates is just frustrating.
Thanks though!