![]() |
|
|
Thread Tools |
|
#1
|
||||
|
||||
|
Question about ntegrating Google DFP asynchronous tags
I'm trying to integrate DFP Google publisher asynchronous tags on our installation; which requires the following header code:
I've tried adding this code to headerinclude at the end. The first block of javascript shows up in the page source when added, but the second block doesn't show up and I get an "unclosed curly brace expression" error. I've tried enclosed the entire code block in <vb:literal> tags. I've tried enclosing first one block and then the other. But nothing I can do will get that second block to show up. Any advice/suggestions would be greatly appreciated... No members have liked this post.
|
||||
|
#2
|
||||
|
||||
|
I'm having the same issue. Any help would be appreciated.
Thanks. --------------- Added 07 Jan 2012 at 16:20 --------------- Okay, I think that I figured out the issue. Perhaps this will help someone else. First, to avoid the "unclosed curly brace expression" error, the code added to the header must be enclosed in <vb:literal> tags as such:
Now for me, the reason that the second ad wasn't showing was because I had generated new tag codes after inserting the first ad. Apparently every time that you generate tags, all of the header codes change. So... if you should generate new tags for any reason, you need to go into the headerinclude template and completely replace the header code from before. I hope that this is helpful to someone.
__________________
Fantasy Writing Forum - Mythic Scribes Community No members have liked this post.
|
||||
|
#3
|
||||
|
||||
|
Is there a similar way of getting this to work on 3.8? Is there a literal tag, or any easy way of creating the same effect?
__________________
xlguy No members have liked this post.
|
|
#4
|
||||
|
||||
|
Originally Posted by xlguy
Try escaping each single quote...
Basically use a text editor and do a find/replace find: ' replace: \' paste the new code into the template and try again.
__________________
-Joe Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods" You can PM me if you want but be warned I do not read them often. No members have liked this post.
|
|
#5
|
||||||||
|
||||||||
|
Hi, thanks for that but unfortunately it's not that simple (I did try after your suggestion).
I think it's to do with the {} or perhaps the fact this code uses function names? In headerinclude I'm putting:
In my templates, to call an ad (for example) 160sky, I put:
Any ideas? Thanks
__________________
xlguy No members have liked this post.
|
||||||||
|
#6
|
||||
|
||||
|
Maybe just put the javascript in an external file and call it the usual way?
http://www.tizag.com/javascriptT/javascriptexternal.php
__________________
-Joe Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods" You can PM me if you want but be warned I do not read them often. No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Innovative Google Analytics - Asynchronous Version | TheLastSuperman | vBulletin 4.x Add-ons | 60 | 26 Apr 2013 18:23 |
| Google Doubleclick For Publishers (DFP) Integration | ThorstenA | vBulletin 4.x Add-ons | 10 | 08 Aug 2012 18:12 |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Thread Tools | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 17:24.




