TGP Tutorials & Articles
Clever way to offer reciprocal buttons
by TGPFactory Staff, October 27 2006
For those of you submitting galleries to TGPs by hand, here's a clever trick to offer a unique reciprocal button for unlimited sites without editing the HTML file every time. With this handy script the reciprocal button is set by the gallery's URL and you need only upload each reciprocal button image and name it appropriately. First, paste this small PHP snippet in your page wherever you plan to display the reciprocal button:
<?PHP echo("<a href='http://www.$source'><IMG SRC='recip/$source.gif' border=0 alt='$source'></A>"); ?>That line of code assumes that the source variable ($source, in this example set to thehun.com) is also the link URL and image path for the reciprocal button. So for example, setting source= to thehun.com will provide a link back to http://www.thehun.com using the reciprocal button source of /recip/thehun.com.gif. If you provided a different value (ie. gallery.php?source=bunnyteens.com) the script would update the link to http://www.bunnyteens.com using the image source /recip/bunnyteens.com.gif.
Now submit your gallery URL (including the source URL) by entering:
http://www.yourdomain.com/gallery.php?source=site-you-are-submitting-to.com

































