Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Post Ad troubles
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Post Ad troubles

 Post Reply Post Reply
Author
Sanne View Drop Down
Newbie
Newbie


Joined: 20 April 2017
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sanne Quote  Post ReplyReply Direct Link To This Post Topic: Post Ad troubles
    Posted: 20 April 2017 at 4:12pm
Hello!

I've added a script to my forum that shows rotating banners in the header. When I wanted to get these rotating ads to show in the ad space between the first and second post of forum topics, they wouldn't show up.

I used this code: https://gist.github.com/danielhaim1/e1012f6cf3aaffd2b9cc and pasting

<layer id="placeholderlayer"></layer>
<div id="placeholderdiv"></div>

in the Custom Header text box worked fine. When I added the same code to the text box for Post Ads it didn't work. Any idea why?

Thanks for any help!
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 21 April 2017 at 7:25am
Do you not also need to include the javascript in the custom header for the place holders to work?
Back to Top
Sanne View Drop Down
Newbie
Newbie


Joined: 20 April 2017
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sanne Quote  Post ReplyReply Direct Link To This Post Posted: 21 April 2017 at 8:10am
I put the javascript code in the /includes/header.asp so it would be added in the <head> of every page. The place holders work in the custom header field, but not in the post ad field. I tried adding the javascript code to the post ad field as well as the place holder code but that didn't work either..
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 21 April 2017 at 2:30pm
Javascript can be placed within the head of the page using the custom headers within the admin area of the forum.
Back to Top
Sanne View Drop Down
Newbie
Newbie


Joined: 20 April 2017
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sanne Quote  Post ReplyReply Direct Link To This Post Posted: 24 April 2017 at 9:01am
Ok, but the javascript code works fine for me for the custom header. I have the rotating banners on top of every page. The problem is the ad space between the first and second posts in forum topics. When I paste the placeholders in that text field, it doesn't work. And I don't really understand why the code would work in one place, but not in another. Any ideas?
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.