MyBB Community Forums

Full Version: Full Page Ads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Specifically...??
i add the code(full page ad):
<!-- Begin: AdBrite, Generated: 2008-11-27 5:41:29 -->
<script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=939409&br=1></script>
<!-- End: AdBrite -->

to the header template, it sometimes popups, but... everything disapeared apart from the header and welcome black.
I have replied to the PM you have sent me a while ago...

For the problem you're still having, please copy all the contents of the template you have added the code to, wrap them between code or php tags and paste them here.
ok, these codes are all on my test theme which is currently active on my forum. In the index i added the full page code near the top. But nothing is appearing, no fullpage adds etc.
Index:
<html><head><title>{$mybb->settings['bbname']}</title>{$headerinclude}<!-- Begin: AdBrite, Generated: 2008-11-27 6:58:26 --><script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=939409&br=1></script><!-- End: AdBrite --><script type="text/javascript"><!--	lang.no_new_posts = "{$lang->no_new_posts}";	lang.click_mark_read = "{$lang->click_mark_read}";// --></script></head><body>{$header}<center><!-- Begin: AdBrite, Generated: 2008-11-27 5:21:26 --><script type="text/javascript">var AdBrite_Title_Color = '0000FF';var AdBrite_Text_Color = '000000';var AdBrite_Background_Color = 'FFFFFF';var AdBrite_Border_Color = 'CCCCCC';var AdBrite_URL_Color = '008000';try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}</script><span style="white-space:nowrap;"><script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=940091&zs=3732385f3930&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=940091&afsid=1"><img src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-leaderboard.gif" style="background-color:#CCCCCC;border:none;padding:0;margin:0;" alt="Your Ad Here" width="14" height="90" border="0" /></a></span><!-- End: AdBrite --></center>{$overview}{$forums}{$boardstats}<!-- Begin: AdBrite, Generated: 2008-11-26 11:47:05 --><script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=937760&br=1></script><!-- End: AdBrite --><dl class="forum_legend smalltext">	<dt><img src="{$theme['imgdir']}/on.gif" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>	<dd>{$lang->new_posts}</dd>	<dt><img src="{$theme['imgdir']}/off.gif" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>	<dd>{$lang->no_new_posts}</dd>	<dt><img src="{$theme['imgdir']}/offlock.gif" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" /></dt>	<dd>{$lang->forum_locked}</dd></dl><br style="clear: both" />{$footer}</body></html>
#

I was told to add it to the header template, it worked i saw random full page ads, but the forum screwed up. Sometimes the forums dissapear or the header does.
Header:
<!-- Begin: AdBrite, Generated: 2008-11-27 6:58:26 --><script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=939409&br=1></script><!-- End: AdBrite --><a name="top" id="top"></a>    <div align="left" style="margin: 0px;" class="logo">			<div class="logo">					<tr>						<td valign="top" width="407">						<a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" /></a></td>						<td width="100%"> </td>						<td valign="top" height="102" width="160">						<img border="0" src="{$mybb->settings['bburl']}/{$theme['imgdir']}/header_right.gif"></td>					</tr>				</table>				</div>			</div><div id="container">		<div id="header">			<hr class="hidden" />			<div id="panel"><br />				{$welcomeblock}			</div>		</div>		<hr class="hidden" />		<div id="content">			{$bannedwarning} {$bbclosedwarning} {$unreadreports}
I said to put it in the headerinclude template, does that work??
sorry forgot to post the code for headerinclude Confused and same with the index template nothing appears.
HeaderInclude:
<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" /><link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" /><meta http-equiv="Content-Type" content="text/html; charset={$charset}" /><meta http-equiv="Content-Script-Type" content="text/javascript" /><!-- Begin: AdBrite, Generated: 2008-11-27 6:58:26 --><script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=939409&br=1></script><!-- End: AdBrite --><script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1400"></script><script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1400"></script><script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1400"></script>{$stylesheets}<script type="text/javascript"><!--	var cookieDomain = "{$mybb->settings['cookiedomain']}";	var cookiePath = "{$mybb->settings['cookiepath']}";	var cookiePrefix = "{$mybb->settings['cookieprefix']}";	var deleteevent_confirm = "{$lang->deleteevent_confirm}";	var removeattach_confirm = "{$lang->removeattach_confirm}";	var loading_text = '{$lang->ajax_loading}';	var saving_changes = '{$lang->saving_changes}';	var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";	var my_post_key = "{$mybb->post_code}";	var imagepath = "{$theme['imgdir']}";// --></script>{$newpmmsg}
Look, there is a whole template called 'headerinclude'.

1. Go to: Themes and Styles > Templates > Your theme's templates > Ungrouped templates > headerinclude.
2. Add the Adbrite code to this one. That will basically show the full page ads on all pages.
3. Revert the index and the header templates to original for now. We only want the headerinclude template.

Now just to be on the same track. What you want is to show full page ads throughout the whole forum, right? If yes, then the above steps should end your problem.
yeah, i have added it to headerinclude but it hasnt worked. But ill try it on a different theme see if it works.
Oh and your added adbrite code should be at the end of the headerinclude template. That's how it works for me. Add the code after the last last in the template which contains:
{$newpmmsg}
(2008-11-27, 12:25 PM)youssef93 Wrote: [ -> ]your added adbrite code should be at the end of the headerinclude template

I think that's what's causing it.
Pages: 1 2 3