Posted: Jun 13 | Filed under: Javascript
No worries, I won’t add any popunder to this site. However, a pop under is still a good marketing strategy for some sites where you want to make sure that visitors don’t miss that very special offer!
Most of the scripts you will find on the net are blocked automatically by Firefox and IE7+8.
It’s a bit sneaky to be honest and I recommend to use it rarely and only if you are sure that visitors don’t know what popunders are. This script will send out a welcome message your visitor has to close. When the visitor does that he allows the browser to load the pop under beneath the current windows. Smart, eh?
I’ve found the script on this site:
http://www.guysindex.com/
(more…)
Posted: Jun 11 | Filed under: Aweber, Javascript
I’ve been using Aweber for a while and they are definetly a must have nowadays for any real webmaster.
However, I think Aweber is doing their best to loose as many clients as possible.
First of all they increased the price to ridiculous high amounts. Any smart person knows that there are Aweber PLR sites, which still offer the old price e.g. Profollow (ProSender sucks they have the new price).
Then today I noticed a major flaw (I almost freaked out). Your fancy aweber scripts makes the internet explorer crash. Can you even imagine that? They are in business for 10 years+ and they make your sites crash. Ridiculous. Sorry, but I’m very disappointed. It was sheer luck that I noticed it and I already lost tons of visitors because of that.
Errors:
Javascript error: “Object not found”. (IE8)
Javascript error: Internet Explorer Cannot Open the Internet Site Operation Aborted. (IE7) – Some sources say Kontera has the same problem.
Luckily, I do not give up that easily. I found a workaround for the second error.
Add this to your javascript code:
defer="defer"
It could look like this now:
<script type="text/javascript" src="http://forms.profollow.com/form/xx/xxxx.js" defer="defer"></script>
What is Javascript “defer”? Defer explained
Posted: Jun 09 | Filed under: SSH
Some of you will use GeoIP for geotargeting (a tutorial about this will follow).
One of the few things you’d have to manually if there was no cronjob, is to update the GeoIP.dat regularly.
Put this little sh script into cron.daily and it will be updated automatically:
#!/bin/bash UNGZIPPED_FILE=GeoIP.dat GZIP_FILE=GeoIP.dat.gz REMOTE_PATH=http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/ LOCAL_PATH=/tmp/ LOCAL_FINAL_PATH=/www/vhtdocs/geo_ip/ #update this to your directory of choice cd $LOCAL_PATH wget -N -q $REMOTE_PATH$GZIP_FILE gunzip $GZIP_FILE cp -f $UNGZIPPED_FILE $LOCAL_FINAL_PATH$UNGZIPPED_FILE exit
Posted: Jun 05 | Filed under: ModRewrite
Well, sometimes this becomes a REAL problem. As soon as your site becomes popular people will start to hotlink your stuff, copy it, post it wherever they can.
Most likely you will even find your stuff on sites like mininova, piratebay and other torrent sites.
Worst of all, they even direct link to your downloads and images and make your bandwitdh go up dramatically.
So this time, we want to take a closer look on the htaccess file and fight!
Actually, many solutions out there are very very limited. Most people will only explain you how to prevent access to a file/folder completely or their solution does not work at all.
I was looking for a solution that would only allow direct access if the visitor would come from my own site and show up another image if they embed one of mine on their site.
RewriteEngine on RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mymainurl.net [NC] RewriteRule \.(jpg|jpeg|png|gif)$ http://mymainurl.net/angryman.gif [NC,R,L] SetEnvIfNoCase Referer "^http://(www.)?url1.net" spam_ref=1 SetEnvIfNoCase Referer "^http://(www.)?url2.com" spam_ref=2 SetEnvIfNoCase Referer "^http://(www.)?google.com" spam_ref=3 <filesmatch "(.rar)"> order deny,allow deny from all allow from env=spam_ref </filesmatch>
This is it, the best working solution to prevent hotlinking. It will only give access to vistors from google or your own site, plus show an image of your choice when someone tried to put one of your images on their website.
You will have to modify it a bit. Simply add the file extensions to
Also change the referrers that are allowed to hotlink “SetEnvIfNoCase Referer”.
Make sure to create an image called “angryman.gif” that will show up on other sites. It should contain your URL and a funny line to make the user enter the URL and leave the current website.
Posted: May 26 | Filed under: Wordpress
Here’s the fix:
Simply replace your old logout link with:
<?php echo wp_logout_url(); ?>
Yup that’s it. Wasn’t too difficult, eh?
Posted: May 21 | Filed under: VBulletin
Well, it’s pretty hard to find a working solution.
If you have a VBulletin license you can download it here.
That will allow you to hide bbcodes such as [URL] from guests.
You should also get a mod to add a new group for spiders thou.
Update:
Install this to assign spiders to a usergroup:
http://www.vbulletin.org/forum/showthread.php?t=196418


