You are here:  » first install problems

Support Forum



first install problems

Submitted by presentguy on Fri, 2012-02-03 20:27 in

1
Although I've build in a pricetapestrytemplates template, I presume it's hidden in a script somewhere : it's the word 'Navigation', shows up in the middle left of my template, together with the menu parts, mentioned in the topbar.

Any idea where I can find this word to tranlate ?

2
I want to add the sentence 'rel="nofollow" on the productpage, where the merchants-link is displayed in order to meet the guideliness of Google.
I presume in product.php something like :
$priceProduct["merchant"])." rel=\"nofollow\">" ?
In fact every place where I see 'tapestry_buyURL' ... :-)
but in most cases customers want to click also on an image, possible ?

3
I don't see in htaccess a line in case of notfound going to a 404 page
where should I look ?

Submitted by support on Sat, 2012-02-04 08:55

Hi presentguy,

I know you've been a user for a couple of years now but I assume you're starting a new site with the latest distribution;

Re:1
If the word "Navigation" displays on every page then you will almost certainly find it in the html/header.php. If you open that file in your text editor and search for the word you can then translate as required in place...

Re:2
To add rel='nofollow' to Buy URL links, looks for the following code beginning at line 83 in includes/tapestry.php

    if ($config_useTracking)
    {
      return $config_baseHREF."jump.php?id=".$product["id"];
    }
    else
    {
      return $product["buy_url"];
    }

...and REPLACE with:

    if ($config_useTracking)
    {
      $retval = $config_baseHREF."jump.php?id=".$product["id"];
    }
    else
    {
      $retval = $product["buy_url"];
    }
    return $retval."' rel='nofollow";

(although the last line above looks like a typo that's actually what is required as the calling function appends the closing ' to the link!)

Re:3
Because it's difficult to distribute a file beginning with full stop (which means hidden on most operating systems) it is actually in the distribution as htaccess.txt. If you have enabled clean URLs by setting $config_useRewrite to TRUE in your config.php (line 8) then to complete the setup, using your FTP program right-click on htaccess.txt in the remote window and use the Rename.. function to rename to .htaccess

Regarding your admin login, if that's still not working as expected it sounds like the login cookie may not be getting set. If you could try using a simple test password by changing line 2 in config.advanced.php to

  $config_adminPassword = "password";

...and then just browse to /admin/ it should redirect to login.php, enter password and click Login and that should access the admin area home page. If that's still not working, if you could possibly email me a link to your installation and attach a copy of your config.advanced.php I'll check it out for you...

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by bat on Sat, 2013-03-16 13:39

Hi David
The only code that looks similar to what you've posted for the NOFOLLOW attribute to be added is this. I'm using 12/10B. How would I implement the NOFOLLOW please to the below code but to keep my event logging. Is it possible?

 function tapestry_buyURL($product)
  {
    global $config_baseHREF;
    global $config_useTracking;
    if ($config_useTracking)
    {
      $href = $config_baseHREF."jump.php?id=".$product["id"];
    }
    else
    {
      $href = $product["buy_url"];
    }
    $href .= "' onClick=\"recordOutboundLink(this, 'Outgoing', '".urlencode($product["merchant"])."', '".urlencode($product["name"])."');window.open(this.href);return false;
\"";
    return $href;
  }

Submitted by support on Sat, 2013-03-16 15:26

Hi bat,

Have a go with:

  function tapestry_buyURL($product)
  {
    global $config_baseHREF;
    global $config_useTracking;
    if ($config_useTracking)
    {
      $href = $config_baseHREF."jump.php?id=".$product["id"];
    }
    else
    {
      $href = $product["buy_url"];
    }
    $href .= "' rel='nofollow' onClick=\"recordOutboundLink(this, 'Outgoing', '".urlencode($product["merchant"])."', '".urlencode($product["name"])."');window.open(this.href);return false;
\"";
    return $href;
  }

Cheers,
David.
--
PriceTapestry.com