Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Link Bait on the Fly | SEO Marketing

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 06-05-2007, 02:24 PM
  HWT's Avatar 
HWT HWT is offline
 

eXpert
  
Join Date: Jan 2005
Location: Massachusetts, USA
Posts: 392
 

Default Re: Link Bait on the Fly | SEO Marketing

David,

Could you post the pieces that deal with the image. I'm not proficient enough to write this stuff, but I'm persistent enough and catch just enough to beat around until I find a solution.

Thanks!
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10
Reply With Quote
  #12  
Old 06-05-2007, 02:33 PM
  HWT's Avatar 
HWT HWT is offline
 

eXpert
  
Join Date: Jan 2005
Location: Massachusetts, USA
Posts: 392
 

Default Re: Link Bait on the Fly | SEO Marketing

vtonya,

you may want to change the link wording from "Available from Your Link Output Keywords" to "Available from MedsMarket"

You'll find that here:

Code:
//------------------------------------------------------------------------------ // Create output string //------------------------------------------------------------------------------ $output = ""; if($image_URL!=="") $output .= "<a href='$link_URL' target='_top'><img src='$image_URL' alt='$product' style='border: 0px;' /></a><p>"; $output .= "<a href='$link_URL' target='_top'>$product</a><p>"; $output .= "Available from <a href='http://www.yoursite.com/' target='_top'>Your Link Output Keywords</a><p>"; ?>

Also, mine outputs the name of the product, and yours does not. ???

Have a look: http://www.heritagetoys.com/Boston-Red-Sox-Toy-Chest-pr-19598.html
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10
Reply With Quote
  #13  
Old 06-05-2007, 02:42 PM
  vtonya's Avatar 
vtonya vtonya is offline
 

Advanced Member
  
Join Date: Apr 2007
Posts: 61
 

Default Re: Link Bait on the Fly | SEO Marketing

Thanks HWT, i did changes and fogot to paste my site name. Thank you.

Ys, we have the same problem, hope we will solve it soon.
__________________
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
Reply With Quote
  #14  
Old 06-06-2007, 08:03 AM
  davidsaldana's Avatar 
davidsaldana davidsaldana is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 187
 

Default Re: Link Bait on the Fly | SEO Marketing

Just my two cents. I would take a look at this line of code:

Code:
if(isset($_GET["tmbn_url"])) $tmbn_url = $_GET['tmbn_url'];

The 4.1.8 program could have changed the name of the tumbnail. Check in your database to see what it is called. It seems to be grabing the rest of the information.

Good Luck

-DS
__________________
4.4
Code:
Hello World
Reply With Quote
  #15  
Old 06-06-2007, 08:21 AM
  vtonya's Avatar 
vtonya vtonya is offline
 

Advanced Member
  
Join Date: Apr 2007
Posts: 61
 

Default Re: Link Bait on the Fly | SEO Marketing

In x-cart 4.1.7 in product_thubmnail.tpl there is the following code:

Quote:
{if $config.Appearance.show_thumbnails eq "Y"}<img{if $id ne ''} id="{$id}"{/if} src="{if $tmbn_url}{$tmbn_url}{else}{if $full_url}{$http_location}{else}{$xcart_web_dir}{/if}/image.php?type={$type|default:"T"}&amp;id={$produc tid}{/if}"{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if} alt="{$product|escape}" />{/if}
__________________
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
Reply With Quote
  #16  
Old 06-06-2007, 08:25 AM
  davidsaldana's Avatar 
davidsaldana davidsaldana is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 187
 

Default Re: Link Bait on the Fly | SEO Marketing

That seems to be the same.

The problem could be with the following code:

Code:
if($image_URL==""){ // Extract product image URL $match_string = "/<A href=\"#productdetail\"\>[^\>]*>/iX"; preg_match($match_string,$html,$matches); $match_string = "/src=[\"']([^(\"|')]*)/iX"; preg_match_all($match_string,$matches[0],$matches); $image_URL = trim($matches[1][0], "\"' ");
__________________
4.4
Code:
Hello World
Reply With Quote
  #17  
Old 06-06-2007, 08:28 AM
  vtonya's Avatar 
vtonya vtonya is offline
 

Advanced Member
  
Join Date: Apr 2007
Posts: 61
 

Default Re: Link Bait on the Fly | SEO Marketing

Problem can be anywhere, the question is how to find it...
__________________
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
Reply With Quote
  #18  
Old 11-18-2008, 10:12 AM
  pig@pp's Avatar 
pig@pp pig@pp is offline
 

Advanced Member
  
Join Date: Mar 2006
Location: San Luis Obispo, CA
Posts: 38
 

Default Re: Link Bait on the Fly | SEO Marketing

I got this to work correctly on our site by changing the "Link to this" code that is to be placed in product.tpl

Replaced this.

<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>

With this.

<P><A class="LinkToThis" href="javascript:void(0)" onClick="window.open('http://www.yoursite.com/store/linktothis.php?linkto=http://www.yoursite.com/store/product.php?productid={$product.productid}&tmbn_ur l={$product.tmbn_url}&product={$product.product|ur lencode|default:'#no_string_value_found'}','','wid th=800,height=400,resizeable=true')">Link to this</a></P>
__________________
http://www.polyperformance.com/
4.1.9 Gold (x7)
Hosting by EWDHosting.com
Reply With Quote
  #19  
Old 11-20-2008, 05:12 PM
  davidsaldana's Avatar 
davidsaldana davidsaldana is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 187
 

Default Re: Link Bait on the Fly | SEO Marketing

Quote:
Originally Posted by pig@pp
I got this to work correctly on our site by changing the "Link to this" code that is to be placed in product.tpl

Replaced this.

<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>

With this.

<P><A class="LinkToThis" href="javascript:void(0)" onClick="window.open('http://www.yoursite.com/store/linktothis.php?linkto=http://www.yoursite.com/store/product.php?productid={$product.productid}&tmbn_ur l={$product.tmbn_url}&product={$product.product|ur lencode|default:'#no_string_value_found'}','','wid th=800,height=400,resizeable=true')">Link to this</a></P>

Nice Work.......I totally forgot about this post......Thanks for resurecting it..........I hope people get full use of it. Its a damn cool mod (especially for products geared towards a younger crowd)

-ds
__________________
4.4
Code:
Hello World
Reply With Quote
  #20  
Old 11-20-2008, 06:01 PM
  davidsaldana's Avatar 
davidsaldana davidsaldana is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 187
 

Default Re: Link Bait on the Fly | SEO Marketing

FYI, I doubt this will now work on 4.1.11, since they changed the call to the thumbnail.....I am assuming the code will need to be altered.
__________________
4.4
Code:
Hello World
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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


All times are GMT -8. The time now is 02:49 PM.

   

 
X-Cart forums © 2001-2020