View Single Post
Old 12-24-2012, 01:45 PM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,307
Quote:
Originally Posted by TheSenator View Post
Another great feature to add:

Would be to disable pop-up from certain domains.

Enable certain pop-ups when it comes from a certain domain.


Code:
    <!-- mfunc 

$ref=getenv('HTTP_REFERER');
if (strpos($ref,'bing.com')>0) 
{
    echo 'hello Bing';

}
else if (strpos($ref, 'Google.com')>0)
{
	echo "hello Google";
}
else
{
    echo "<script src='http://www.yourdomina.com/js/popup.js' type='text/javascript'></script>";
};
-->
<!-- /mfunc -->
never echo script tags in wp, do it the proper way, it will avoid conflicts with other scripts by doing so.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote