Go Back   Poker Affiliate Programs - Affiliate Community for Poker Affiliates > Poker Affiliate Programs - Discussions for Poker Affiliates > Web Design Q&A
Register VBay [0] FAQ Members List Calendar Search Today's Posts Mark Forums Read

Web Design Q&A Use this forum to discuss any web design questions or issues you may be having

Reply
 
Social Bookmarking Thread Tools Display Modes
  #1 ()  
Old 03-28-2008, 10:11 AM
mypokercorner's Avatar
mypokercorner mypokercorner is offline
Post Whore
 
Join Date: Dec 2007
Location: Canada eh?
Posts: 678
Thanks: 0
Thanked 15 Times in 9 Posts
Default quick web design tip

Most of you probably already use this approach, but I figure I may as well right about it in case newer affiliates/webmasters don't know about it. It's so much web design in terms of interface a but rather in terms of file management/structure.

Everyone once in a while, there's always some poker room that decides to change their links. Then, it's a pain in the arse to go back and change every single text link and banner link you've ever created. The solution to this problem is simple. Create a redirect page in php format for each of your poker rooms. Then, when you setup your poker links and banners, link to the redirect page instead.

Eample: I have a folder called "Redirects" which contains a php file called "pokerstars.php". That file contains a redirect to the pokerstarts page, using my affiliate code.

On my site, I create a pokerstarts banner but modify the default linking text by removing the affiliate link and pointing to mysite/redirects/pokerstars.php. I repeat the process for all my pokerstars links. Should pokerstar ever decide to change their link format (like UB and PA recently did), then I simply need to edit my pokerstars.php and every single pokerstars link is automatically updated. This takes 2 minutes instead of hours and hours of extremely boring work.

Just quick tip if anyone is interested.

Here is how the php file should be written. Just stick this in notepad, update the link and save as yourpokerroomname.php:

<?php
header("Location: http://youraffiliatelinkgoeshere");
?>
__________________
Learn how to play poker, read about online poker strategy, get poker hands PDFs and play at the top poker site. Find PKR bonus codes that work for you!

Last edited by mypokercorner : 03-28-2008 at 02:04 PM.
Reply With Quote
  #2 ()  
Old 03-29-2008, 06:59 PM
addaminsane's Avatar
addaminsane addaminsane is offline
Corn Bread Fed
 
Join Date: Jan 2007
Location: USA
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i just looked at an ap link on your ap page and it wasn't using redirect. Isn't a con to this the simple fact that it extremely slows down the time of getting to the room page?
__________________
Need a Tight Poker Site Design? I'm your Man
The Major Sports - Football - Basketball - Baseball

Reply With Quote
  #3 ()  
Old 03-29-2008, 10:13 PM
mypokercorner's Avatar
mypokercorner mypokercorner is offline
Post Whore
 
Join Date: Dec 2007
Location: Canada eh?
Posts: 678
Thanks: 0
Thanked 15 Times in 9 Posts
Default

Yeah, that link doesn't use the php file. I'm still in the process of updating them. If you look at my online poker rooms page, you will see good examples. Just hover any of the 120x60 images of a room and look at the URL on the bottom of your browser. Then click it and see how it redirects transparently.

There is no delay with the PHP redirect. This method does not slow down anything because the redirect is instantanious. If you experience a delay, that is actually caused by the poker room URL itself which is loging the click (and many of them have redirects of their own).
__________________
Learn how to play poker, read about online poker strategy, get poker hands PDFs and play at the top poker site. Find PKR bonus codes that work for you!
Reply With Quote
  #4 ()  
Old 03-30-2008, 07:20 AM
TheShortStack's Avatar
TheShortStack TheShortStack is offline
Climbing into the saddle
 
Join Date: Jan 2008
Location: London
Posts: 435
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to TheShortStack
Default

I've just implemented this too - I also get the script to send me an email when a link gets clicked on.

You could also record the click in the database if you wanted to ...
Reply With Quote
  #5 ()  
Old 03-30-2008, 09:05 AM
mypokercorner's Avatar
mypokercorner mypokercorner is offline
Post Whore
 
Join Date: Dec 2007
Location: Canada eh?
Posts: 678
Thanks: 0
Thanked 15 Times in 9 Posts
Default

Quote:
Originally Posted by TheShortStack View Post
You could also record the click in the database if you wanted to ...
Instructions please!
__________________
Learn how to play poker, read about online poker strategy, get poker hands PDFs and play at the top poker site. Find PKR bonus codes that work for you!
Reply With Quote
  #6 ()  
Old 03-30-2008, 11:19 AM
TheShortStack's Avatar
TheShortStack TheShortStack is offline
Climbing into the saddle
 
Join Date: Jan 2008
Location: London
Posts: 435
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to TheShortStack
Default

Depends how you want to go about it. If all you want to do is just record how many clicks each of your links are getting you could insert something like this into your php script

PHP Code:
$update mysql_query("UPDATE clicks SET 'count'='count'+1 WHERE ref='chan'"); 
You'd need a table called clicks set up in your database. That table would need two fields in it called 'count' and 'ref' (containing the list of poker rooms you're promoting).

Then, the only thing you'd need to change then is the bit in red above. The example code would be good if you were looking to record clicks for chan poker ... but if you wanted to record clicks for Bodog, then the bit in red would need to change to match whatever you've entered into the "ref" field for the Bodog Poker Room.

So the code may look something like this:
PHP Code:
$update mysql_query("UPDATE poker_room SET 'count'='count'+1 WHERE ref='bodog'"); 
That's probably the simplest way of keeping a track of how many clicks each of your poker rooms are getting. Give me a shout if I haven't explained it very well though!
Reply With Quote
  #7 ()  
Old 03-30-2008, 11:28 AM
Jeremy Jeremy is offline
Member
 
Join Date: Jan 2005
Location: Chicago
Posts: 6,482
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to Jeremy
Default

This is the best way to link out aff. links on a big site. Thanks for posting this mypokercorner.

Even if you're not familiar with php. This is so simple to do. Just put the code in text file and save as partypoker.php for example. Then place the new php file in a folder in your ftp and your good to go.

For example yoursite.com/out/partypoker.php.

To take it a step further with this method, you can also add a no follow tag so that you are not giving up link juice.
Reply With Quote
  #8 ()  
Old 03-30-2008, 11:34 AM
TheShortStack's Avatar
TheShortStack TheShortStack is offline
Climbing into the saddle
 
Join Date: Jan 2008
Location: London
Posts: 435
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to TheShortStack
Default

Quote:
Originally Posted by Jeremy View Post

To take it a step further with this method, you can also add a no follow tag so that you are not giving up link juice.

Yeah, totally agree with this. If you're going to start keeping track of clicks, then you're going to get much more accurate records if you stick a no follow tag on the folder containing your links
Reply With Quote
  #9 ()  
Old 03-30-2008, 02:13 PM
mypokercorner's Avatar
mypokercorner mypokercorner is offline
Post Whore
 
Join Date: Dec 2007
Location: Canada eh?
Posts: 678
Thanks: 0
Thanked 15 Times in 9 Posts
Default

Perfect, that's easy enough to setup. Thanks for the info shortstack.

Now I have a question. Instead of using your method above where you increase a counter, if I wanted to create a new record each time an affiliate is clicked and wanted to track which php file was clicked and from which of my webpage it was clicked I assume I would use something like:

$update = mysql_query("INSERT INTO clicks (date, page_url, room) VALUES ( getdate(), 'variable to pick up my page URL','variable to track which poker_room.php file was used'");

Now, how can I define the "page_url" variable and the "room" variable?

The reason I woudl want to do this is that I could then build a pivot table in Excel and measure which of my pages performs better for each poker room. Thanks!
__________________
Learn how to play poker, read about online poker strategy, get poker hands PDFs and play at the top poker site. Find PKR bonus codes that work for you!

Last edited by mypokercorner : 03-30-2008 at 02:24 PM.
Reply With Quote
  #10 ()  
Old 03-30-2008, 02:26 PM
mypokercorner's Avatar
mypokercorner mypokercorner is offline
Post Whore
 
Join Date: Dec 2007
Location: Canada eh?
Posts: 678
Thanks: 0
Thanked 15 Times in 9 Posts
Default

Quote:
Originally Posted by Jeremy View Post
To take it a step further with this method, you can also add a no follow tag so that you are not giving up link juice.
Would you add the no follow tag when linking to your php redirect file, or within the php redirect file. Or does it matter?
__________________
Learn how to play poker, read about online poker strategy, get poker hands PDFs and play at the top poker site. Find PKR bonus codes that work for you!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Want to build my design portfolio - Cheap CMS Design For You addaminsane Web Design Service & Coding 14 05-03-2008 05:24 AM
Does design matter? Mosey New Affiliate Q&A - Site Reviews 4 12-10-2007 08:42 PM
Site design stolen again - what to do? dbirider General Poker Affiliate Discussion 14 01-04-2007 05:06 AM
Quick Logo Design Needed Jeremy The Poker Affiliate Exchange 1 06-29-2006 03:42 PM
How much to pay for Professional Web Site Design? GoodKarmaKid General Poker Affiliate Discussion 18 09-07-2005 11:33 AM


All times are GMT -5. The time now is 06:51 AM.


Copyright 2008 PokerAffiliatePrograms.com


SEO by vBSEO 3.2.0