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.
Mycroft, you would get better responce time from Viart if you use the Support System.
Open up a ticket.:)
fusionbooks
1 Jan 2008 11:58 PM
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
2 Jan 2008 7:45 AM
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
Ned
2 Jan 2008 9:53 AM
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
2 Jan 2008 10:17 PM
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)
9 Jan 2008 11:05 PM
simple is best thanks 8th..
SajMalik
10 Jan 2008 8:18 AM
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)
14 Jan 2008 2:35 PM
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
14 Jan 2008 4:00 PM
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.
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
21 Jan 2008 8:11 PM
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.
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
19 Oct 2009 10:15 AM
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