Hi there,
Does anyone else use this?
Can you you let me know the PHP code that I need to insert into the page to get it working?
Cheers,
Hi there,
Does anyone else use this?
Can you you let me know the PHP code that I need to insert into the page to get it working?
Cheers,
The Affiliate Life <<-- My Affiliate Blog. Feel free to drop by - would welcome your thoughts/comments
Latest Post: How to set up a Branded YouTube channel & your thoughts on my videos
Are you talking about my plugin?
Yes, I guess I am!![]()
The Affiliate Life <<-- My Affiliate Blog. Feel free to drop by - would welcome your thoughts/comments
Latest Post: How to set up a Branded YouTube channel & your thoughts on my videos
Well, to use in a template, do something like this:
This, of course, would work with any country that you wanted to target. Let's say you wanted to show one banner to Americans (in dollars), one to UK visitors (in pounds), and one in Euros (to everyone else). You would do something like this:PHP Code:<?php if($country=='US') : ?>
US CONTENT HERE
<?php else : ?>
EVERY OTHER COUNTRY HERE
<?php endif; ?>
Hope this helps.PHP Code:<?php if($country=='US') : ?>
US CONTENT HERE
<?php elseif($country=='UK') : ?>
UK CONTENT HERE
<?php else : ?>
EVERY OTHER COUNTRY HERE
<?php endif; ?>
Brilliant - thanks Mike!
The Affiliate Life <<-- My Affiliate Blog. Feel free to drop by - would welcome your thoughts/comments
Latest Post: How to set up a Branded YouTube channel & your thoughts on my videos
Where can I get my grubby little paws on this plugin?
(a search for "Easy Geo Wordpress" was unsuccessful)
Yeah, the plugin has been in beta forever. I use it on all of my sites but I haven't really received any feedback from some of the PAP (r.i.p.) members who I sent this to months ago.
The plugin allows for both template geotargeting, as well as in content geotargeting via the use of country tags. I'll be more than happy to give it any member here as long as they realize it's in beta and give me some feedback when using it.
There are other options for doing this without the in content part, also.
Hi Mike,
Just to follow up on this, I've activated the plugin, and used the PHP that you mentioned above, but it doesn't look as though the $country variable is being populated.
I'm not quite sure why ...
The Affiliate Life <<-- My Affiliate Blog. Feel free to drop by - would welcome your thoughts/comments
Latest Post: How to set up a Branded YouTube channel & your thoughts on my videos
Try replacing this code
With this codePHP Code:<?php if($country=='US') : ?>
PHP Code:<?php global $country; if($country=='US') : ?>
Still the same problem I'm afraid.
If you look at bestpokerbonus.co.uk, I've used an echo command above the first table on the left.
It should echo ("Country:".$country);
As you can see, the string comes out fine but it still looks as though the $country variable isn't being populated.
The Affiliate Life <<-- My Affiliate Blog. Feel free to drop by - would welcome your thoughts/comments
Latest Post: How to set up a Branded YouTube channel & your thoughts on my videos
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks