Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 02 Jan 2012, 06:22
twiforum twiforum is offline
 
Join Date: Jan 2011
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View 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...
Reply With Quote
  #2  
Old 07 Jan 2012, 15:28
del Drago's Avatar
del Drago del Drago is offline
 
Join Date: Dec 2010
Real name: Antonio
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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
Reply With Quote
  #3  
Old 23 May 2012, 16:34
xlguy's Avatar
xlguy xlguy is offline
 
Join Date: Feb 2004
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
Reply With Quote
  #4  
Old 23 May 2012, 22:49
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by xlguy View Post
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?
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.
Reply With Quote
  #5  
Old 24 May 2012, 10:13
xlguy's Avatar
xlguy xlguy is offline
 
Join Date: Feb 2004
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In my templates, to call an ad (for example) 160sky, I put:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Any ideas? Thanks
__________________
xlguy
Reply With Quote
  #6  
Old 25 May 2012, 01:54
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
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.
Reply With Quote
Reply


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 17:24.

Layout Options | Width: Wide Color: