Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
Mycroft
Mycroft
Greetings, ViArt folks.
 
I utilize Google Adsense for most of my ads/banners. After wrestling with the ViArt banners and block control panels, I have reached the unfortunate conclusion that Google's standard AdSense code (a sample pasted in below) doesn't seem to peacefully cohabit with the cart's internals.
 
Any assistance would be appreciated.
 
---
<script type="text/javascript"><!--
google_ad_client = "pub-6504120162935035";
//Parkway graphic skyscraper
google_ad_slot = "6040493598";
google_ad_width = 160;
google_ad_height = 600;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
 
Ibn Saeed
Ibn Saeed
Hello
 
Mycroft, you would get better responce time from Viart if you use the Support System.
 
Open up a ticket.:)
 
fusionbooks
fusionbooks
One of the problems with Viart is that rather than actually answering questions everyone says "Send in a ticket".
 
All this does is overload the support staff with requests that could (in many cases) be handled more quickly and simply if someone just answered the bloody question!
 
So, since I have the same question, has anyone had any success with integrating adsense into their viart applications?
 
Thanks,
Robert
www.fusionbooks.org
 
SajMalik
SajMalik
I agree with fusionbooks - I often advocate a ticket when the problem is critical or user specific.
But when the answer will also benefit many users there is real value in having the question here.
I hope you get an answer Mycroft so that we can all see how to do this Broad grin
 
Ned
Ned
If you insert the code directly into a block creation window as html the editor parser will probably mangle it as it stores it in the database as it deals with a very simple set of html.
 
Could you create a text file with the above code, then create a custom block pointing to the text file as a source?
This should allow the script to be placed as a block in the block control panels on the pages you want it.
 
8thSinCoffee
8thSinCoffee
Just go to your System Global settings, and add the Google script code to the Footer Body. I used to modify the html templates but found that it's much easier to put it in the footer and forget about it. Works great.
 
eyestrain (Guest)
eyestrain (Guest)
simple is best thanks 8th..
 
SajMalik
SajMalik
8thSinCoffee —— I have a small problem with this.
 
I have been having problems with my checkout.
 
I was advised by support that:
" We can advise you not to use javascript anywhere you have the secure pages settings applied.
Your javascripts themselves generate errors that are permitted for mozilla but hardly prohibited in the IE7 browser, because it supposes they are viruses invasion or something like that. "
 
Google script is js - putting it in the footer means that it will appear in checkout? ... do you not have problems?
 
Chris
 
inQuizitive (Guest)
inQuizitive (Guest)
That's a bit strange I think.
 
the user>header.html has
<script type="text/javascript" src="js/menu.js"></script>
and user>footer.html has
<script language="JavaScript">
<!--
{footer_js}
//-->
</script>
 
..... so Viart has javascript in the files - and these are used in checkout arent they??
 
tony
tony
Greetings
 
Try this - When adding Google Adsense code, or any other javascript, place the code between literal tags. Since I
unable highlight the word "LITERAL" read the document carefully.
 
EXAMPLE:
 
{literal}<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXXXXXXXX";
google_ad_width = 120;
google_ad_height = 240;
google_ad_format = "120x240_as";
google_ad_channel ="";
google_ad_type = "text_image";
google_color_border = "FFCC00";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "000000";
google_color_text = "FF9900";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>{/literal}
 
Tony From
HolleyLand.com
 
fusionbooks
fusionbooks
Sorry Tony,
The literal tags didn't do anything.
I DID have some limited success by creating an adsense BLOCK and adding the block to the side of the page.
 
It would work but ONLY if I inserted the same adsense code into the footer. However, it messed up the design of the page.
 
Adsense is so prevalent and so many of us use it that it seems utterly stupid that a high end (and very expensive) program such as Viart doesn't make it available.
 
This is a big enough problem that I may have to restructure my entire catalog in order to use Adsense. I'm one of those people who has been able to start developing the passive income from Adsense so it is something that HAS to be enabled on our system.
 
fusionbooks
fusionbooks
NED'S IDEA WORKED!
 
1. Cut and paste the adsense code into a text file (I used notepad) and upload that to your server.
 
2. Create a CUSTOM BLOCK and in the blank "Get Content from File" put the URL for the text file.
 
3. Under "Site Layout" place your custom block.
 
You can see this in action at http://www.fusionbooks.org
 
Thanks Ned! :)
 
Robert
 
Dodi79 (Guest)
Dodi79 (Guest)
This doesn't work under Viart Ver. 3.4.7 - I've tried both Tony's method, as well as Neds and unfortunately the script doesn't run any adsense ad's on the site - is there an updated solution to this?
 
Much appreciated.
 
Dodi
 
hcanning
hcanning
This worked for me. Within the custom block create a 1 row 2 col table. Paste adsense script in rightmost cell and save. Below is a test i used
 
<META name=GENERATOR content="Microsoft FrontPage 5.0">
<META name=ProgId content=FrontPage.Editor.Document>
<TABLE style="BORDER-COLLAPSE: collapse" id=AutoNumber1 border=1 cellSpacing=0 borderColor=#ffffff cellPadding=0 width="100%">
<TBODY>
<TR>
<TD width="6%"> </TD>
<TD width="94%"> 
<SCRIPT type=text/javascript><!--
google_ad_client = "pub-###mycode#######";
/* 728x90, created 19/10/09 */
google_ad_slot = "####mycode######";
google_ad_width = 728;
google_ad_height = 90;
//-->
</SCRIPT>
 
<SCRIPT type=text/javascript src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</SCRIPT>
</TD></TR></TBODY></TABLE>
 
CRAIG (Guest)
CRAIG (Guest)
All you need to do is put the google code between to paragraph html tags: <p> Your google code </p>