Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 186
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 189
Total: 189

Author Topic: Ad Not Displaying Properly  (Read 4409 times)

0 Members and 1 Guest are viewing this topic.

Offline qs12345

  • Menu Editor Pro Customer
  • Member
  • *****
  • Posts: 16
    • View Profile
Ad Not Displaying Properly
« on: August 30, 2014, 04:01:39 pm »
I bought Ad Seller Pro and inserted the following code from Epom and when I checked if it was working I found the banner area displayed "); //]]> instead of the actual ad. All of the other codes have inserted fine just this one was giving me problems and this code worked fine when I tried inserting it into one of the SimplePortal blocks so I'm confused as to why it's not working with Ad Seller Pro. Help Pls?

Code: [Select]
<!-- BEGIN TAG - DO NOT MODIFY -->
<script type="text/javascript">
//<![CDATA[
epom_key = "3fc4e0de7a600b8bc73d080c5386ee21";
epom_channel = "";
epom_code_format = "ads-sync.js";
epom_ads_host = "//www.adshost2.com";
epom_click = "";
epom_custom_params = {};

document.write("<script type='text\/javascript' src='"+(location.protocol == 'https:' ? 'https:' : 'http:') + "//www.adshost2.com\/js/show_ads.js'><\/script>");
//]]>
</script>
<!-- END TAG -->

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Ad Not Displaying Properly
« Reply #1 on: August 30, 2014, 10:05:51 pm »
Tested on my test forum SMF 1.1.x was ok code looked the same.

Is the code not appearing at all is the code supposed to look like what you have above? I copied that code into my test forum.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline qs12345

  • Menu Editor Pro Customer
  • Member
  • *****
  • Posts: 16
    • View Profile
Re: Ad Not Displaying Properly
« Reply #2 on: August 31, 2014, 03:45:46 am »
The code is suppose to display a 728x90 graphic banner ad on my site but instead it is showing: "); //]]>

Can't figure out why at all.  I'm using SMF 2.0.8, would that make any difference?

Offline phumler

  • Member
  • *
  • Posts: 17
    • View Profile
Re: Ad Not Displaying Properly
« Reply #3 on: August 31, 2014, 07:00:31 am »
Shot in the dark here, but it seems some backslashes are escaped and others are not.  To be consistent I would think that this:

document.write("<script type='text\/javascript' src='"+(location.protocol == 'https:' ? 'https:' : 'http:') + "//www.adshost2.com\/js/show_ads.js'><\/script>");

Should be this:

document.write("<script type='text\/javascript' src='"+(location.protocol == 'https:' ? 'https:' : 'http:') + "\/\/www.adshost2.com\/js\/show_ads.js'><\/script>");

Offline qs12345

  • Menu Editor Pro Customer
  • Member
  • *****
  • Posts: 16
    • View Profile
Re: Ad Not Displaying Properly
« Reply #4 on: August 31, 2014, 07:14:44 pm »
I'm not sure if that's it but now that you mention it I did notice something different from the code I was given and the code I inserted into the mod after I saved.

The code I was given was this:

Code: [Select]
document.write("<script type='text\/javascript' src='"+(location.protocol == 'https:' ? 'https:' : 'http:') + "//www.adshost2.com\/js/show_ads.js'><\/script>");


And the code after I saved it in the mod looks like this:

Code: [Select]
document.write("<script type='text/javascript' src='"+(location.protocol == 'https:' ? 'https:' : 'http:') + "//www.adshost2.com/js/show_ads.js'></script>");

For some reason it's stripping the \ from the code after I click save. Is there a way I can fix this?
« Last Edit: August 31, 2014, 07:17:33 pm by qs12345 »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Ad Not Displaying Properly
« Reply #5 on: August 31, 2014, 07:28:07 pm »
Copy this file to your sources folder and let me know if it helps
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline qs12345

  • Menu Editor Pro Customer
  • Member
  • *****
  • Posts: 16
    • View Profile
Re: Ad Not Displaying Properly
« Reply #6 on: August 31, 2014, 09:19:19 pm »
Working perfectly now  :D

Thanks!!!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Ad Not Displaying Properly
« Reply #7 on: August 31, 2014, 09:40:44 pm »
Glad to help.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
6711 Views
Last post August 05, 2007, 01:40:57 pm
by rumboogy
2 Replies
4071 Views
Last post July 05, 2008, 11:27:08 am
by Kalphiter
4 Replies
4176 Views
Last post March 15, 2010, 08:38:12 am
by mandomercs
7 Replies
10829 Views
Last post May 26, 2015, 11:50:53 am
by Mike66
4 Replies
6046 Views
Last post April 28, 2016, 02:53:14 pm
by Labradoodle-360

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal