Webmaster Blog

Webmaster Resources

Adtoll Peel Adverts: Hide if Flash is not installed

Well I wanted to try out Adtoll Peel Ads, that are those corner ads that are pretty neat.
As soon as I implemented it I noticed that it was asking me to install the Flash Player, this might be pretty annoying if you don’t want your visitors to install flash just for an advert.

 

Here is the solution, you can simply add before the tag.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
<SCRIPT LANGUAGE="JavaScript">
<!-- use this comment tag to hide the enclosed code from old browsers.
 
if ((navigator.appName == "Microsoft Internet Explorer" &&
    navigator.appVersion.indexOf("Mac") == -1 
     &&   navigator.appVersion.indexOf("3.1") == -1) ||
 
    (navigator.plugins && navigator.plugins["Shockwave Flash"])
                       || navigator.plugins["Shockwave Flash 2.0"]){
 
</SCRIPT>
 
 
<!-- START ADTOLL.COM CODE V1.0 -->
<SCRIPT src="XXXXX YOUR ADTOLL URL XXXXX" type="text/javascript"></SCRIPT>
<!-- END ADTOLL.COM CODE V1.0 -->
 
 
<SCRIPT LANGUAGE="JavaScript">	
}
// Close the comment tag. -->
</SCRIPT>

Managing Cronjobs via Crontab

To manage your cronjobs it is good to know that you can easily manage them via crontab instead of adding them cron.d

crontab -l will show you your currently set up cron jobs on the server.
crontab -r will delete your current cron jobs.
crontab -e will allow you to add or edit your current cron jobs by using your default text editor to edit your “crontab file”.

Source: http://drupal.org/node/31548

To execute some commands just create a file with the extension .ssh, add #!/bin/sh at the first line, chmod it to 711 and add this cron to your crontab using the command above.