![]() |
Link Bait on the Fly | SEO Marketing
This program creates "link bait on the fly", to each specific product. The html snippets will open in a new window.
Create linktothis.php in the xcart dir. (wherever the "yoursite" appears, you will need to change to your site) linktothis.php: Code:
Wherever you want the "link to this link" place the following code on product.tpl in your skin1/customer/main folder Code:
<P><A class="LinkToThis" href="javascript:void(0)" onClick="window.open('http://www.yoursite.com/store/linktothis.php?linkto='+escape(window.location.href),'','width=800,height=400,resizeable=true')">Link to this</a><!-- { $product.tmbn_url } --></P> |
Re: Link Bait on the Fly | SEO Marketing
it just seems to be linking to my homepage.
also, how does the image link work? check it out here: http://www.audiolines.com/product.php?productid=15530&cat=0&page=1 |
Re: Link Bait on the Fly | SEO Marketing
You have to change these lines of code inside the text:
$output .= "Available from <a href='http://www.yoursite.com/' target='_top'>Your Link Output Keywords</a><p>"; <LINK rel="stylesheet" href="http://yoursite.com//store/skin1/skin1.css"> <LINK rel="stylesheet" href="http://yoursite.com//store/skin1/tabs.css"> <center> <h1 style="background-image:url(http://www.yoursite.com/store/skin1/images/dialog_bg_n.gif)">Link to <?php echo $product; ?></h1> </center> Basically anywhere where it says "yoursite", needs to be modified You can see working version of this mod on our site (right above the save 15%): http://www.mailboxixchange.com/store/product.php?productid=18674&cat=0&page=1 |
Re: Link Bait on the Fly | SEO Marketing
Quick question. I get pushed to my 404 page when I click on the "link to this" text link. Any ideas why?
|
Re: Link Bait on the Fly | SEO Marketing
You have to change the text in the link to this link:
<P><A class="LinkToThis" href="javascript:void(0)" onClick="window.open('http://www.yoursite.com/store/linktothis.php?linkto='+escape(window.location.hre f),'','width=800,height=400,resizeable=true')">Lin k to this</a><!-- { $product.tmbn_url } --></P> Make sure your site is in the text and that you do need to have the "store" directory -DS |
Re: Link Bait on the Fly | SEO Marketing
1 Attachment(s)
Quote:
No. I get a quick glimpse of what looks like the proper url in the title bar, and then it pushes into the 404. Perhaps I messed up the linktothis.php file? Attachment 423 |
Re: Link Bait on the Fly | SEO Marketing
I would make sure you need to have the /store/ directory. I am running this mod on 4.0.18 with no modification to the URL's. It will work for both the dynamic site and the html catalog.
|
Re: Link Bait on the Fly | SEO Marketing
Quote:
It's always the simple things that trip you up when you're moving too fast. root dir installs need to get rid of the "/store" in the linktothis.php and url. thanks. Next I have to get it to display the images properly in 4.1.7. |
Re: Link Bait on the Fly | SEO Marketing
thank you for this mod David, but i have the same problem in x-cart 4.1.7
you can check it here under product image http://www.medsmarket.net/product.php?productid=46&cat=0&page=1&featured |
Re: Link Bait on the Fly | SEO Marketing
I am sorry, but I dont have 4.1.7. The only program I have is 4.0.18. I am sure it can be modified, but someone else will have to do it.
Hopefully they will post the changes!! -David |
All times are GMT -8. The time now is 05:51 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.