add banner after initial post - "vectra-mods"

Support for PhpBB3.
Post here to get help with any phpBB3 related issue
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
If not your topic may be ignored or locked!
No Avatar
TekEss Offline
BBCoder I
BBCoder I
Posts: 4
Joined: 06 Apr 2010, 00:39
Local time: 06 Sep 2025 12:32
Last active: -

add banner after initial post - "vectra-mods"

Post by TekEss »

Tried posting this in the redsteel developers forum, but he deleted everything in the forum including users...and I have been waiting for an actiavtin email since this morning.

Anyway, I am trying to ad a banner using openx after every initial post. PHPBB tells me to do this, and I have without success http://www.phpbb.com/community/viewtopi ... &t=1842045

The problem appears to be with redsteel style

Can anyone offer any help with this?

Many Thanks in advance

Here is a copy of openx code

Code: Select all

<!--/* OpenX Javascript Tag v2.8.3 */-->

<!--/*
  * The backup image section of this tag has been generated for use on a
  * non-SSL page. If this tag is to be placed on an SSL page, change the
  *   'http://bbqtalk.ca/openx/www/delivery/...'
  * to
  *   'https://bbqtalk.ca/openx/www/delivery/...'
  *
  * This noscript section of this tag only shows image banners. There
  * is no width or height in these banners, so if you want these tags to
  * allocate space for the ad before it shows, you will need to add this
  * information to the <img> tag.
  *
  * If you do not want to deal with the intricities of the noscript
  * section, delete the tag (from <noscript>... to </noscript>). On
  * average, the noscript tag is called from less than 1% of internet
  * users.
  */-->

<script type='text/javascript'><!--//<![CDATA[
   var m3_u = (location.protocol=='https:'?'https://bbqtalk.ca/openx/www/delivery/ajs.php':'http://bbqtalk.ca/openx/www/delivery/ajs.php');
   var m3_r = Math.floor(Math.random()*99999999999);
   if (!document.MAX_used) document.MAX_used = ',';
   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
   document.write ("?zoneid=4");
   document.write ('&cb=' + m3_r);
   if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used);
   document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : ''));
   document.write ("&loc=" + escape(window.location));
   if (document.referrer) document.write ("&referer=" + escape(document.referrer));
   if (document.context) document.write ("&context=" + escape(document.context));
   if (document.mmm_fo) document.write ("&mmm_fo=1");
   document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href='http://bbqtalk.ca/openx/www/delivery/ck.php?n=ab21921c&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://bbqtalk.ca/openx/www/delivery/avw.php?zoneid=4&cb=INSERT_RANDOM_NUMBER_HERE&n=ab21921c' border='0' alt='' /></a></noscript>
User avatar
Stoker Online
Site Admin
Site Admin
Posts: 4,560
Joined: 12 May 2008, 21:26
Local time: 06 Sep 2025 19:32
Last active: -
Favourite EXT: Forum Goal
Location: Denmark
Contact:

Re: add banner after initial post - "vectra-mods"

Post by Stoker »

Open styles/redsteel/template/viewtopic_body.html
Find:

Code: Select all

<!-- END postrow -->
Add before:

Code: Select all

<!-- IF postrow.S_FIRST_ROW -->
insert your code here
   <hr class="divider" />
<!-- ENDIF -->
Sorry for not being vectra :oops:
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
cisco007 Offline
BBCoder VI
BBCoder VI
Posts: 1,055
Joined: 16 Mar 2010, 16:14
Local time: 06 Sep 2025 13:32
Last active: -
Location: Don't really know!

Re: add banner after initial post - "vectra-mods"

Post by cisco007 »

never mind beat to it by Stoker!
Last edited by cisco007 on 06 Apr 2010, 04:59, edited 1 time in total.
Reason: solution already posted!
No Avatar
TekEss Offline
BBCoder I
BBCoder I
Posts: 4
Joined: 06 Apr 2010, 00:39
Local time: 06 Sep 2025 12:32
Last active: -

Re: add banner after initial post - "vectra-mods"

Post by TekEss »

Thanks for the reply. I have changed the code to whats posted above, but the banner is not showing.
http://bbqtalk.ca/forums/viewtopic.php?f=27&t=5138

Something else I have to change?
User avatar
Stoker Online
Site Admin
Site Admin
Posts: 4,560
Joined: 12 May 2008, 21:26
Local time: 06 Sep 2025 19:32
Last active: -
Favourite EXT: Forum Goal
Location: Denmark
Contact:

Re: add banner after initial post - "vectra-mods"

Post by Stoker »

Try an image or text instead.
Maybe the script cant run?
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
cisco007 Offline
BBCoder VI
BBCoder VI
Posts: 1,055
Joined: 16 Mar 2010, 16:14
Local time: 06 Sep 2025 13:32
Last active: -
Location: Don't really know!

Re: add banner after initial post - "vectra-mods"

Post by cisco007 »

i can run, i have it working perfectly here!

http://ciscoasite.zapto.org/307/viewtop ... &f=19&t=47

did you refresh the template in the ACP!?
No Avatar
TekEss Offline
BBCoder I
BBCoder I
Posts: 4
Joined: 06 Apr 2010, 00:39
Local time: 06 Sep 2025 12:32
Last active: -

Re: add banner after initial post - "vectra-mods"

Post by TekEss »

cisco007 » 06 Apr 2010, 18:41 wrote:i can run, i have it working perfectly here!

http://ciscoasite.zapto.org/307/viewtop ... &f=19&t=47

did you refresh the template in the ACP!?
Crap!!!! That was the problem...Im sorry im an idiot.

Thanks!
User avatar
cisco007 Offline
BBCoder VI
BBCoder VI
Posts: 1,055
Joined: 16 Mar 2010, 16:14
Local time: 06 Sep 2025 13:32
Last active: -
Location: Don't really know!

Re: add banner after initial post - "vectra-mods"

Post by cisco007 »

no problem, just remember anytime you do any changes to template files, refresh them in the ACP!
User avatar
Fire-Fox Offline
BBCoder IV
BBCoder IV
Posts: 275
Joined: 22 Mar 2010, 11:24
Local time: 06 Sep 2025 18:32
Last active: -
Location: Denmark

Re: add banner after initial post - "vectra-mods"

Post by Fire-Fox »

Maybe a stupid question. Will this give the same result like google ads or do i need something els?
User avatar
cisco007 Offline
BBCoder VI
BBCoder VI
Posts: 1,055
Joined: 16 Mar 2010, 16:14
Local time: 06 Sep 2025 13:32
Last active: -
Location: Don't really know!

Re: add banner after initial post - "vectra-mods"

Post by cisco007 »

I, personally have never heard of openx ads so, i don't know!
Post Reply