Closed

Show Ads To Search Engine Visitors Only (Wordpress)

I'm trying to make this code work on my block without success...

What is does...it knows if the Visitors came from a search engine.. #1 and shows the ADS.. #2 but it also saves a cookie on their computer to show the same ad..for every page they visit inside the website (for 1 hour)..

this is the code ..

First, the you need to add some code to [url removed, login to view] in your theme’s folder (wp-content/themes/yourtheme folder, where yourtheme is the name of your theme). The following should be added immediately before the ?> at the bottom of the file:

********the code is already done..i know is a simple mistake..but can't find it..dont expect to charge too much for this favor.

$ref = $_SERVER['HTTP_REFERER'];

$SE = array('/search?', 'images.google.', '[url removed, login to view]', 'search.', '[url removed, login to view]', '[url removed, login to view]', '/search/', '.yahoo.');

foreach ($SE as $source) {

if (strpos($ref,$source)!==false) {

setcookie("sevisitor", 1, time()+3600, "/", ".[url removed, login to view]");

$sevisitor=true;

}

}

function fromasearchengine(){

global $sevisitor;

if ($sevisitor==true || $_COOKIE["sevisitor"]==1) {

return true;

}

return false;

}

CALL THE FUNCTION FROM ANY PHP PART OF YOUR SITE ..LIKE [url removed, login to view]

<?php if (function_exists('fromasearchengine')) {

if (fromasearchengine()) { ?>

INSERT YOUR AD CODE HERE

<?php } } ?>

Skills: PHP, WordPress

See more: yahoo search engine, wp engine , wp content wordpress, wordpress info, web search images, search here, make google my search engine, google web search engine, google com search web, first search, find wordpress themes, find theme wordpress, find and search in php code, engine theme wordpress, add website in search engine, yahoo search page, to search, global computer, yahoo web search, search yahoo, google web search google search, web search engine, visitors, soso, show the content

About the Employer:
( 10 reviews ) Union City, Dominican Republic

Project ID: #1115800

5 freelancers are bidding on average $54 for this job

AtlanticSoft

Hi please check pmb for details

$100 USD in 2 days
(182 Reviews)
7.9
evgendob

Please, check PM

$40 USD in 1 day
(243 Reviews)
7.2
deydod

Hi I can fix this. Thanks Deyan

$32 USD in 1 day
(139 Reviews)
6.7
DrTech76

Hi!

$30 USD in 0 days
(289 Reviews)
6.6
aghoshx

Hi, Please see PMB for more details

$50 USD in 0 days
(19 Reviews)
5.0
mmadi

Hi, please check your PM

$50 USD in 5 days
(14 Reviews)
4.8