It was suggested on a different forum for me to replace the include line with this:
<php> include ("sponsors.htm"); </php>
Which I did. That caused the banners (8 square jpg images) to appear at the top of the page no matter where I placed the code within the template. Any help would be much appriciated.
Entire template with code I'm trying to add:
{parse js_module="rating"}
{parse template="include_lightbox" group="global" params=""}
{parse template="include_highlighter" group="global" params="1"}
<div class='ipsBox clear'>
<div class='<if test="fileUnapprovedClass:|:!$file['file_open']">moderated<else />ipsBox_container</if> ipsPad'>
<div class='ipsLayout ipsLayout_withright ipsLayout_bigright clearfix'>
<div class='ipsLayout_right'>
<h3 class='bar'>{$this->lang->words['submitter']}</h3>
<div class='ipsPad clearfix ipsSideBlock' id='submitter_info'>
<if test="hasPhoto:|:$file['pp_main_photo']">
<a href='{parse url="showuser={$file['member_id']}" template="showuser" seotitle="{$file['members_seo_name']}" base="public"}' class='ipsUserPhotoLink left'>
{IPSMember::buildProfilePhoto($file, 'small' )}
</a>
<else />
<div class='left'>{IPSMember::buildNoPhoto(0, 'small' )}</div>
</if>
<span class='ipsType_subtitle ipsPad'>
<if test="guestsubmitter:|:$file['file_submitter'] == 0 OR !$file['members_display_name']">{$this->lang->words['global_guestname']}<else />{IPSMember::makeProfileLink($file['members_display_name'], $file['member_id'], $file['members_seo_name'])}</if>
<if test="canchangeauthor:|:$this->registry->getClass('idmFunctions')->checkPerms( $file, 'modchangeauthor' )">
<a href='#' id='change_author' rel='{$file['file_id']}' title='{$this->lang->words['change_author']}'><img src='{$this->settings['img_url']}/display_name.png' alt='' title='{$this->lang->words['change_author']}' /></a>
</if>
</span>
<if test="filesearchauthor:|:$file['file_submitter']">
<br /><a class='ipsPad' href='{parse url="app=core&module=search&do=user_activity&search_app=downloads&mid={$file['file_submitter']}" base="public"}'>{$this->lang->words['viewmember_other_files']}</a>
</if>
</div>
<if test="canchangeauthorform:|:$this->registry->getClass('idmFunctions')->checkPerms( $file, 'modchangeauthor' )">
<div class='pad clearfix' id='change_author_box' style='display: none'>
<form style='display:inline;' action='{parse url="app=downloads&module=moderate&section=moderate&do=updateAuthor&id={$file['file_id']}" base="public"}' method='post'>
<label for="change_author_input"><strong>{$this->lang->words['change_author_name']}</strong></label>
<input type='text' class='input_text' name='change_author_input' id='change_author_input' />
<input type='submit' class='input_submit' value='{$this->lang->words['change_author_submit']}' />
</form>
</div>
</if>
<h3 class='bar'>
<if test="filehastopic:|:$category['coptions']['opt_topice'] && $file['file_topicid']">
<span class='right'>
<a href='{parse url="showtopic={$file['file_topicid']}" base="public" template="showtopic" seotitle="{$file['file_topicseoname']}"}' data-tooltip="{$this->lang->words['file_support_tooltip']}">
<span class='ipsBadge ipsBadge_grey'>{$this->lang->words['file_support']}</span>
</a>
</span>
</if>
{$this->lang->words['file_information']}
</h3>
<div class='ipsPad ipsSideBlock'>
<ul class='ipsList_data'>
<li>
<strong class='title'>{$this->lang->words['submittedon']}:</strong>
{parse date="$file['file_submitted']" format="short"}
</li>
<li>
<strong class='title'>{$this->lang->words['lastupdated']}:</strong>
{parse date="$file['file_updated']" format="short"}
</li>
<li>
<strong class='title'>{$this->lang->words['filesize']}:</strong>
<if test="hasSize:|:$file['file_size']">{IPSLib::sizeFormat( $file['file_size'] )}<else />{$this->lang->words['filesize_unknown']}</if>
</li>
<li>
<strong class='title'>{$this->lang->words['fileviews']}:</strong>
{$file['file_views']}
</li>
<if test="hasNexus:|:IPSLib::appIsInstalled('nexus') && $this->settings['idm_nexus_on'] && $file['file_cost']">
<li>
<strong class='title'>{$this->lang->words['filepurchases']}:</strong>
{$file['file_purchases']}
</li>
</if>
<li>
<strong class='title'>{$this->lang->words['filedownloads']}:</strong>
<if test="fileviewdownloads:|:$this->settings['idm_logalldownloads'] AND $this->memberData['idm_view_downloads']"><a href='{parse url="app=downloads&module=display&section=downloaders&id={$file['file_id']}" base="public"}' class='view-downloads' id='view-downloads-{$file['file_id']}'></if>
{parse format_number="$file['file_downloads']"}
<if test="fileviewdownloadsclose:|:$this->settings['idm_logalldownloads'] AND $this->memberData['idm_view_downloads']"></a></if>
</li>
<if test="fileshowapprover:|:$this->settings['idm_show_approver'] OR $permissions['can_approve']">
<if test="filehasapprover:|:$file['file_approver']">
<li>
<strong class='title'>{$this->lang->words['file_approvedby']}:</strong>
{IPSMember::makeProfileLink($file['approver_name'], $file['file_approver'], $file['file_approver_seoname'])}
</li>
<li>
<strong class='title'>{$this->lang->words['file_approvedon']}:</strong>
{parse date="$file['file_approvedon']" format="long"}
</li>
</if>
</if>
<if test="filecustomfields:|:count($file['custom_fields'])">
<foreach loop="cfields:$file['custom_fields'] as $data">
<li>
<strong class='title'>{$data['title']}:</strong>
{$data['data']}
</li>
</foreach>
</if>
</ul>
</div>
<!--START of Additional content to display Sponsor Banners-->
<div class="ipsBox table_wrap">
<h3 class='bar'>Our Sponsors</h3>
<div class="ipsBox_container">
<table class='ipb_table'>
<tr>
<td class='row2'>
<php> include ("sponsors.htm"); </php>
</td>
</tr>
</table>
</div>
</div>
<br />
<!--END of Additional content to display Sponsor Banners-->
<if test="fileversions:|:$this->settings['idm_versioning'] && is_array($old_versions) && count($old_versions)">
<h3 class='bar'>{$this->lang->words['previous_versions']}</h3>
<div class='ipsPad ipsSideBlock'>
<ul class='ipsList_data' id='versions'>
<foreach loop="file_rows:$old_versions as $data">
<li<if test="fileversionhidden:|:$data['b_hidden']"> class='moderated'</if>>
<span class='desc right'>{parse date="$data['b_updated']" format="date"}</span>
<span class='version_control right'>
<a href='{parse url="app=downloads&module=display&section=download&do=version_download&id={$data['b_id']}" base="public"}' title='{$this->lang->words['bversion_alt_download']}'><img src='{$this->settings['img_url']}/downloads/idm_down.png' alt='{$this->lang->words['bversion_alt_download']}' /></a>
<if test="versionscandelete:|:$permissions['can_delete']==1">
<a href='{parse url="app=downloads&module=moderate&section=moderate&do=versions&id={$data['b_fileid']}&process=restore&rid={$data['b_id']}" base="public"}' title='{$this->lang->words['bversion_alt_restore']}'><img src='{$this->settings['img_url']}/downloads/idm_refresh.png' alt='{$this->lang->words['bversion_alt_restore']}' /></a>
<a href='{parse url="app=downloads&module=moderate&section=moderate&do=versions&id={$data['b_fileid']}&process=delete&rid={$data['b_id']}" base="public"}' title='{$this->lang->words['bversion_alt_delete']}' onclick='return confirm("{$this->lang->words['revision_delete_confirm']}");'><img src='{$this->settings['img_url']}/downloads/idm_delete.png' alt='{$this->lang->words['bversion_alt_delete']}' /></a>
</if>
<if test="versionscanapp:|:$permissions['can_approve']">
<if test="versionshidden:|:$data['b_hidden']==1">
<a href='{parse url="app=downloads&module=moderate&section=moderate&do=versions&id={$data['b_fileid']}&process=unhide&rid={$data['b_id']}" base="public"}' title='{$this->lang->words['bversion_alt_unhide']}'><img src='{$this->settings['img_url']}/downloads/idm_unhide.png' alt='{$this->lang->words['bversion_alt_unhide']}' /></a>
<else />
<a href='{parse url="app=downloads&module=moderate&section=moderate&do=versions&id={$data['b_fileid']}&process=hide&rid={$data['b_id']}" base="public"}' title='{$this->lang->words['bversion_alt_hide']}'><img src='{$this->settings['img_url']}/downloads/idm_hide.png' alt='{$this->lang->words['bversion_alt_hide']}' /></a>
</if>
</if>
</span>
<strong>{$data['b_filetitle']} <if test="previousversion:|:$data['b_version']">{$data['b_version']}</if></strong>
</foreach>
</ul>
</div>
</if>
</div>
<div class='ipsLayout_content'>
<if test="fileisbroke:|:$file['file_broken']">
<php>
$brokenInfo = explode( "|", $file['file_broken_info'] );
$date = "{parse date="$brokenInfo[2]" format="short"}";
</php>
<div class='message error'>
<h3>{$this->lang->words['file_broken_text']}: {$file['file_broken_reason']}</h3>
<if test="filetestbroken:|:$permissions['can_broken']">
{parse expression="sprintf( $this->lang->words['file_broken_info'], IPSMember::makeProfileLink( $brokenInfo[1], $brokenInfo[0] ), $date )"}
</if>
</div>
<br class='clear' />
</if>
<h1 class='ipsType_pagetitle'>
<if test="( $file['file_cost'] or $file['file_nexus'] ) AND $purchased == 'EXPIRED'">
<a href='{parse url="app=nexus&module=clients" base="public""}' class='download_button rounded right'>{$this->lang->words['file_renew']}</a>
<else />
<if test="($file['file_cost'] or $file['file_nexus']) AND $purchased != 'ACTIVE' AND !$this->memberData['idm_bypass_paid']">
<a href='{parse url="app=downloads&module=display&section=download&do=buy&id={$file['file_id']}" base="public"}' class='download_button rounded right'>
{$this->lang->words['dpage_buy']}
</a>
<if test="$file['file_cost']">
<span class='purchase_price right'>
{parse expression="ipsRegistry::getClass('class_localization')->formatMoney( $file['file_cost'], false )"}
<if test="$renewal_terms">
( {$renewal_terms} )
</if>
</span>
</if>
<else />
<if test="($file['file_cost'] or $file['file_nexus']) && $this->memberData['idm_bypass_paid']">
<a href='{parse url="app=downloads&module=display&section=download&do=buy&id={$file['file_id']}" base="public"}' class='download_button rounded right'>
{$this->lang->words['dpage_buy']}
<if test="$file['file_cost']">
( {parse expression="ipsRegistry::getClass('class_localization')->formatMoney( $file['file_cost'], false )"}
<if test="$renewal_terms">
- {$renewal_terms}
</if> )
</if>
</a>
</if>
<if test="$this->settings['idm_dynamic_urls']">
<a href='{parse url="app=downloads&module=display&section=download&do=confirm_download&hash={$hash}" base="public" template="idmdd" seotitle="{$file['file_name_furl']}"}' class='download_button rounded right'>
<else />
<a href='{parse url="app=downloads&module=display&section=download&do=confirm_download&id={$file['file_id']}" base="public" template="idmdownload" seotitle="{$file['file_name_furl']}"}' class='download_button rounded right'>
</if>
{$this->lang->words['dpage_button_short']}
</a>
</if>
</if>
{$file['file_name']} <if test="hasversion:|:$file['file_version']">{$file['file_version']}</if>
</h1>
<if test="canRate:|:$this->registry->getClass('categories')->cat_lookup[ $category['cid'] ]['perm_6']">
<foreach loop="filerateCycle:array(1,2,3,4,5) as $_rating">
<if test="memberRateStart:|:$this->memberData['member_id']">
<a href='{parse url="app=downloads&module=ajax&section=rate&id={$file['file_id']}&rating={$_rating}&secure_key={$this->member->form_hash}" base="public"}' id='file_rate_{$_rating}' title='{$this->lang->words['rate_file_'.$_rating]}'>
</if>
<if test="filerate:|:$file['file_rating'] >= $_rating">
{parse replacement="rate_on"}
<else />
{parse replacement="rate_off"}
</if>
<if test="memberRateEnd:|:$this->memberData['member_id']">
</a>
</if>
</foreach>
<span id='rating_text' class='desc'>
<if test="filevotes:|:$file['_rate_cnt'] > 0">{$file['_rate_cnt']} {$this->lang->words['votes_cnt']}</if>
<if test="fileyourvote:|:$file['_rating_value']">({$this->lang->words['you_voted']} {$file['_rating_value']})</if>
</span>
<if test="checkGuestRate:|:$this->memberData['member_id']">
<script type='text/javascript'>
rating = new ipb.rating( 'file_rate_', {
url: '{parse url="app=downloads&module=ajax&section=rate&id={$file['file_id']}&xml=1" base="public"}&md5check=' + ipb.vars['secure_hash'],
cur_rating: {$file['file_rating']},
rated: <if test="filejsvotes:|:$file['_rating_value']">1<else />0</if>,
allow_rate: <if test="filejsallowvote:|:in_array( $category['cid'], $this->registry->getClass('categories')->member_access['rate'] )">1<else />0</if>
} );
</script>
</if>
</if>
<br class='clear' />
{$like}
<br class='clear' />
<br /><br />
<if test="$category['coptions']['opt_allowss']">
<if test="count($screenshots)">
<foreach loop="p_eachscreenshot:$screenshots as $screenshot">
<if test="p_findprimary:|:$screenshot['record_default']">
<if test="p_ssupload:|:$screenshot['record_type'] == 'ssupload'">
<a class='screenshot primary' href='{parse url="app=downloads&module=display&section=screenshot&full=1&id={$screenshot['record_file_id']}&record={$screenshot['record_id']}" base="public"}' <if test="p_fileinfolightbox:|:$this->settings['idm_ss_popup'] == 'l'">rel='lightbox[screenshot]'<else />rel='external'</if>><img src='{parse url="app=downloads&module=display&section=screenshot&id={$screenshot['record_file_id']}&record={$screenshot['record_id']}" base="public"}' alt='{$this->lang->words['filescreenshot']}' /></a>
<else />
<if test="p_getremotesize:|:$ssurl = @getimagesize($screenshot['record_location']) AND $category['coptions']['opt_thumb_x'] AND $ssurl[0] > $category['coptions']['opt_thumb_x']">
<a class='screenshot primary' href='{$screenshot['record_location']}' <if test="p_fileinfolightbox2:|:$this->settings['idm_ss_popup'] == 'l'">rel='lightbox[screenshot]'<else />rel='external'</if>><img src='{$screenshot['record_location']}' width='{$category['coptions']['opt_thumb_x']}' alt='{$this->lang->words['filescreenshot']}' /></a>
<else />
<if test="p_getremotesize:|:$ssurl = @getimagesize($screenshot['record_location']) AND !$category['coptions']['opt_thumb_x'] AND $ssurl[0] > $this->settings['idm_default_dimensions']">
<a class='screenshot primary' href='{$screenshot['record_location']}' <if test="p_fileinfolightbox2:|:$this->settings['idm_ss_popup'] == 'l'">rel='lightbox[screenshot]'<else />rel='external'</if>><img src='{$screenshot['record_location']}' width='{$this->settings['idm_default_dimensions']}' alt='{$this->lang->words['filescreenshot']}' /></a>
<else />
<a class='screenshot primary' href='{$screenshot['record_location']}' <if test="p_fileinfolightbox4:|:$this->settings['idm_ss_popup'] == 'l'">rel='lightbox[screenshot]'<else />rel='external'</if>><img src='{$screenshot['record_location']}' alt='{$this->lang->words['filescreenshot']}' /></a>
</if>
</if>
</if>
</if>
</foreach>
</if>
</if>
<div class='ipsType_textblock ipsPad_half'>
{$file['file_desc']}
</div>
<br />
<if test="haschangelog:|:$file['file_changelog']">
<php>$this->_whatsnew = explode( "\n", $file['file_changelog'] );</php>
<if test="haschanges:|:is_array($this->_whatsnew) AND count($this->_whatsnew)">
<if test="changelogversion:|:$file['file_version']"><h3>{$this->lang->words['whats_new_in_v']} {$file['file_version']} (<a href='{parse url="app=downloads&module=display&section=changelog&file={$file['file_id']}" base="public"}' id='full-changelog'>{$this->lang->words['see_full_changelog']}</a>)</h3><else /><h3>{$this->lang->words['changelog']} (<a href='{parse url="app=downloads&module=display&section=changelog&file={$file['file_id']}" base="public"}' id='full-changelog'>{$this->lang->words['see_full_changelog']}</a>)</h3></if>
<div class='description'>
<ul class='bullets'>
<foreach loop="changes:$this->_whatsnew as $_new">
<if test="hasChangelog:|:$_new"><li>{$_new}</li></if>
</foreach>
</ul>
</div>
<br />
</if>
</if>
<br />
<if test="$category['coptions']['opt_allowss']">
<if test="count($screenshots) > 1">
<h3>{$this->lang->words['filescreenshot']}</h3>
<div id='file_screenshots'>
<foreach loop="eachscreenshot:$screenshots as $screenshot">
<if test="notPrimary:|:!$screenshot['record_default']">
<if test="ssupload:|:$screenshot['record_type'] == 'ssupload'">
<a class='screenshot' href='{parse url="app=downloads&module=display&section=screenshot&full=1&id={$screenshot['record_file_id']}&record={$screenshot['record_id']}" base="public"}' <if test="fileinfolightbox:|:$this->settings['idm_ss_popup'] == 'l'">rel='lightbox[screenshot]'<else />rel='external'</if>><img src='{parse url="app=downloads&module=display&section=screenshot&id={$screenshot['record_file_id']}&record={$screenshot['record_id']}" base="public"}' alt='{$this->lang->words['filescreenshot']}' /></a>
<else />
<if test="getremotesize:|:$ssurl = @getimagesize($screenshot['record_location']) AND $category['coptions']['opt_thumb_x'] AND $ssurl[0] > $category['coptions']['opt_thumb_x']">
<a class='screenshot' href='{$screenshot['record_location']}' <if test="fileinfolightbox2:|:$this->settings['idm_ss_popup'] == 'l'">rel='lightbox[screenshot]'<else />rel='external'</if>><img src='{$screenshot['record_location']}' width='{$category['coptions']['opt_thumb_x']}' alt='{$this->lang->words['filescreenshot']}' /></a>
<else />
<if test="getremotesize:|:$ssurl = @getimagesize($screenshot['record_location']) AND !$category['coptions']['opt_thumb_x'] AND $ssurl[0] > $this->settings['idm_default_dimensions']">
<a class='screenshot' href='{$screenshot['record_location']}' <if test="fileinfolightbox2:|:$this->settings['idm_ss_popup'] == 'l'">rel='lightbox[screenshot]'<else />rel='external'</if>><img src='{$screenshot['record_location']}' width='{$this->settings['idm_default_dimensions']}' alt='{$this->lang->words['filescreenshot']}' /></a>
<else />
<a class='screenshot' href='{$screenshot['record_location']}' <if test="fileinfolightbox4:|:$this->settings['idm_ss_popup'] == 'l'">rel='lightbox[screenshot]'<else />rel='external'</if>><img src='{$screenshot['record_location']}' alt='{$this->lang->words['filescreenshot']}' /></a>
</if>
</if>
</if>
</if>
</foreach>
</div>
</if>
</if>
<br />
<if test="hasmemberid:|:$this->memberData['member_id']">
<br /><br />
<ul class='post_controls'>
<!--<if test="filenotbroken:|:!$file['file_broken'] AND $this->memberData['idm_report_files']">
<li class='report'><a href='{parse url="app=downloads&module=moderate&section=moderate&do=broken&id={$file['file_id']}&secure_key={$this->member->form_hash}" base="public"}'>{$this->lang->words['reportbroken']}</a></li>
</if>-->
<if test="filerestorelink:|:$permissions['can_delete'] AND $this->settings['idm_versioning'] AND $file['_last_revision']">
<li class='post_del'><a href='{parse url="app=downloads&module=moderate&section=moderate&do=versions&id={$file['file_id']}&process=restore&rid={$file['_last_revision']['b_id']}" base="public"}'>{$this->lang->words['restorefile']}</a></li>
</if>
<if test="fileeditlink:|:$permissions['can_edit']">
<li class='post_edit'><a href='#' onclick='editLink( "{parse url="app=downloads&module=post&section=submit&do=edit_main&id={$file['file_id']}" base="public"}" );'>{$this->lang->words['newversion']}</a></li>
<if test="norevision:|:$this->memberData['idm_bypass_revision']">
<li class='post_edit'><a href='#' onclick='editLink( "{parse url="app=downloads&module=post&section=submit&do=edit_main&id={$file['file_id']}&bypass_revision=1" base="public"}" );'>{$this->lang->words['editfile']}</a></li>
</if>
</if>
<if test="filedeletelink:|:$permissions['can_delete']">
<li class='post_del'><a class='delete_link' href='{parse url="app=downloads&module=moderate&section=moderate&do=delete&return=1&id={$file['file_id']}" base="public"}'>{$this->lang->words['deletefile']}</a></li>
</if>
<if test="fileapprovelink:|:$permissions['can_approve'] AND $file['file_open']">
<li class='post_toggle'><a href='{parse url="app=downloads&module=moderate&section=moderate&do=togglefile&return=1&id={$file['file_id']}" base="public"}'>{$this->lang->words['unnapprovefile']}</a></li>
<else />
<if test="fileunapprovelink:|:$permissions['can_approve'] AND !$file['file_open']">
<li class='post_toggle'><a href='{parse url="app=downloads&module=moderate&section=moderate&do=togglefile&return=1&id={$file['file_id']}" base="public"}'>{$this->lang->words['approvefile']}</a></li>
</if>
</if>
<if test="filepinlink:|:$permissions['can_pin'] AND $file['file_pinned']">
<li class='post_toggle'><a href='{parse url="app=downloads&module=moderate&section=moderate&do=unpin&id={$file['file_id']}" base="public"}'>{$this->lang->words['unpin_file']}</a></li>
<else />
<if test="fileunpinlink:|:$permissions['can_pin'] AND !$file['file_pinned']">
<li class='post_toggle'><a href='{parse url="app=downloads&module=moderate&section=moderate&do=pin&id={$file['file_id']}" base="public"}'>{$this->lang->words['pin_file']}</a></li>
</if>
</if>
<if test="filefeature:|:$permissions['can_feature'] AND $this->settings['idm_use_portal']">
<if test="fileisfeatured:|:$file['file_featured']">
<li class='post_toggle'><a href='{parse url="app=downloads&module=moderate&section=moderate&do=setFeatured&id={$file['file_id']}" base="public"}'>{$this->lang->words['unset_featured_file']}</a></li>
<else />
<li class='post_toggle'><a href='{parse url="app=downloads&module=moderate&section=moderate&do=setFeatured&id={$file['file_id']}" base="public"}'>{$this->lang->words['set_featured_file']}</a></li>
</if>
</if>
<if test="fileunbreak:|:$permissions['can_broken'] AND $file['file_broken']">
<li class='report'><a href='{parse url="app=downloads&module=moderate&section=moderate&do=notbroken&id={$file['file_id']}" base="public"}'>{$this->lang->words['unreportbroken']}</a></li>
</if>
</ul>
</if>
</div>
</div>
</div>
</div>
<if test="hasShareLinks:|:$this->settings['sl_enable']">
<div class='ipsPad'>
{IPSLib::shareLinks( $file['file_name'] )}
</div>
</if>
<if test="$category['coptions']['opt_comments']">
{$comments['html']}
</if>
{parse template="include_highlighter" group="global" params=""}
<script type='text/javascript'>
var editClicked = false;
function editLink( target )
{
// Since this can sometimes take a while, show a laoding graphic and stop people clicking the link more than once
if ( editClicked == false )
{
editClicked = true;
$('ipboard_body').insert( ipb.templates['ajax_loading'] );
window.location = target;
}
}
</script>
Mark
Edited by markr, 22 October 2011 - 08:56 PM.