The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Auto-Linker

Geek Auto-Linker GAL automatically links keywords that users type in posts to advertising hover pop-ups.

Advertisement
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 04-03-2006, 07:39 PM
himerus himerus is offline
Junior Member
 
Join Date: Feb 2006
Posts: 10
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder 
Question Javascript in GAL Descriptions...

I'm looking for a simple addition for the firefox and adsense keywords, using the google adsense referral codes...

When I insert the code, it isn't showing up in the popup window...
HTML Code:
<center>
<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXXXXXXX";
google_ad_width = 180;
google_ad_height = 60;
google_ad_format = "180x60_as_rimg";
google_cpa_choice = "CAAQ4fqy0gEaCPI0fZSM10VxKL3D93M";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>
I've tried escaping the "s in the code, but still with no effect....

How can GAL handle javascript in the $description body?
Reply With Quote
  #2  
Old 04-04-2006, 06:49 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Hi there,

I would suspect that it SHOULD work other than its getting called from another JS function which google may trap against.

Whats the cached regexp?
Reply With Quote
  #3  
Old 04-04-2006, 10:17 PM
himerus himerus is offline
Junior Member
 
Join Date: Feb 2006
Posts: 10
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder 
Default

Quote:
Originally Posted by The Geek
Hi there,

I would suspect that it SHOULD work other than its getting called from another JS function which google may trap against.

Whats the cached regexp?
Code:
<a href='http://www.google.com/adsense' target='_blank' class='gal' onmouseover='GAL_popup(this,"1", 0, "style=\"border: 1pt solid #000000;\"", "<!--GAL-->

<center><script <!--GAL-->type=\"text/javascript\">google_ad_client <!--GAL-->= <!--GAL-->\"pub-5665913358376947\";google_ad_width <!--GAL-->= <!--GAL-->180;google_ad_height <!--GAL-->= <!--GAL-->60;google_ad_format <!--GAL-->= <!--GAL-->\"180x60_as_rimg\";google_cpa_choice <!--GAL-->= <!--GAL-->\"CAAQ4fqy0gEaCPI0fZSM10VxKL3D93M\";</script>
<script <!--GAL-->type=\"text/javascript\" <!--GAL-->src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\"></script></center>", "style=\"background: #FFFFCC;background-image: url(http://www.vbhacking.com/forum/images/gal/search.gif);background-repeat: no-repeat;background-position: bottom right;padding: 2px;font-size: 10px;\"", "&nbsp;Paid Advertisements", "style=\"background: #5C7099 url(http://www.vbhacking.com/forum/images/gradients/gradient_thead.gif) repeat-x top left;font-size:11px;color:#FFFFFF;font-family:tahoma, verdana, geneva, lucida, arial, helvetica, sans-serif;text-align:left;height:18px;font-weight:bold;vertical-align: middle;padding:3px;\"");' onmouseout='GAL_hidepopup();'><!--GAL-->$1</a>
This is without the quotes escaped...

I get a parse error if I escape quotes with a \...

I'm stumped... but I haven't looked over how the javascript is excecuted for GAL yet, maybe I'll find something there if I get some time... thanks!
Reply With Quote
  #4  
Old 04-05-2006, 07:26 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

try changing the " to ' and escaping them?
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I use javascript banners? atcNick Geek Advertising Banner System 1 08-17-2006 08:45 AM
Category descriptions are not showing concepts GeekMart 13 12-04-2005 08:26 PM


All times are GMT. The time now is 04:47 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.