| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Link Bait on the Fly | SEO Marketing | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
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:
__________________
4.4 Code:
|
|||||||||
#2
|
|||||||
|
|||||||
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
__________________
version 4.0.17 |
|||||||
#3
|
|||||||||
|
|||||||||
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
__________________
4.4 Code:
|
|||||||||
#4
|
|||||||||
|
|||||||||
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?
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10 |
|||||||||
#5
|
|||||||||
|
|||||||||
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
__________________
4.4 Code:
|
|||||||||
#6
|
|||||||||
|
|||||||||
Re: Link Bait on the Fly | SEO Marketing
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? linktothis.php
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10 |
|||||||||
#7
|
|||||||||
|
|||||||||
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.
__________________
4.4 Code:
|
|||||||||
#8
|
|||||||||
|
|||||||||
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.
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10 |
|||||||||
#9
|
|||||||||
|
|||||||||
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
__________________
X-card Gold 4.1.7 Batch Order Mod/Order Processing Detailed Order Management Mod Order Audit/Profit reports Advanced Product Search Ajax Username Checker Direct Product Enquiry Form FAQ Manager Social Bookmarking Tabs Mod v3 MagneticOne.com All-IN-ONE X-Cart Export Show Referrer Information on Order Details Page www.medsmarket.net |
|||||||||
#10
|
|||||||||
|
|||||||||
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
__________________
4.4 Code:
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|