Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google setting the rules for the Internet?


GraphicsGuy

Recommended Posts

Posted

ah you are very wise enigma1 :D

how difficult would it be for me to have the link manager contribution link to flat url's, instead of redirects?

Posted

well open the catalog\includes\functions\links.php find this code:

 

////
// Return the links url, based on whether click count is turned on/off
 function tep_get_links_url($identifier) {
$links_query = tep_db_query("select links_id, links_url from " . TABLE_LINKS . " where links_id = '" . (int)$identifier . "'");

$link = tep_db_fetch_array($links_query);

if (ENABLE_LINKS_COUNT == 'True') {
  if (ENABLE_SPIDER_FRIENDLY_LINKS == 'True') {
	$user_agent = strtolower(getenv('HTTP_USER_AGENT'));
	$spider_flag = false;

	if (tep_not_null($user_agent)) {
	  $spiders = file(DIR_WS_INCLUDES . 'spiders.txt');

	  for ($i=0, $n=sizeof($spiders); $i<$n; $i++) {
		if (tep_not_null($spiders[$i])) {
		  if (is_integer(strpos($user_agent, trim($spiders[$i])))) {
			$spider_flag = true;
			break;
		  }
		}
	  }
	}

	if ($spider_flag == true) {
	  $links_string = $link['links_url'];
	} else {
	  $links_string = tep_href_link(FILENAME_REDIRECT, 'action=links&goto=' . $link['links_id']);
	}
  } else {
	  $links_string = tep_href_link(FILENAME_REDIRECT, 'action=links&goto=' . $link['links_id']);
  }
} else {
  $links_string = $link['links_url'];
}

return $links_string;
 }

 

replace it with this:

 

////
// Return the static links url
 function tep_get_links_url($identifier) {
$links_query = tep_db_query("select links_id, links_url from " . TABLE_LINKS . " where links_id = '" . (int)$identifier . "'");

$link = tep_db_fetch_array($links_query);
return $link['links_url'];
 }

 

This should always return the static link

  • 2 months later...
  • 3 weeks later...
Posted

Hello,

 

I want to use the links manager without the category prechoice page; just plain links on the link page.

Is that what the coding change above is about?

The right thread which concerns my question is hard to find, if this is the wrong one .. can somebody PLEASE tell me where to look?

TIA

Posted

Jack has PM me telling me that my question has been discussed elswhere.

I cannot find neither the discussion nor the answer >_<

What I want is :

 

1/ Sure : the links manager, beatiful contrib!

2/ NO CATEGORIES or ALL LINKS in one category

3/ ALL links shown directly on http://www.porteveil.com/catalog/links.php

 

How can I arrang this?

I can change coding but am reluctant when I see that all the programming loops are based on categories!

TIA

Posted
Jack has PM me telling me that my question has been discussed elswhere.

I cannot find neither the discussion nor the answer >_<

What I want is :

 

1/ Sure : the links manager, beatiful contrib!

2/ NO CATEGORIES or ALL LINKS in one category

3/ ALL links shown directly on http://www.porteveil.com/catalog/links.php

 

How can I arrang this?

I can change coding but am reluctant when I see that all the programming loops are based on categories!

TIA

 

use a pricelist contribution, gives you 1 page with links to all categories and all products

Treasurer MFC

Posted
Jack has PM me telling me that my question has been discussed elswhere.

I cannot find neither the discussion nor the answer >_<

What I want is :

 

1/ Sure : the links manager, beatiful contrib!

2/ NO CATEGORIES or ALL LINKS in one category

3/ ALL links shown directly on http://www.porteveil.com/catalog/links.php

 

How can I arrang this?

I can change coding but am reluctant when I see that all the programming loops are based on categories!

TIA

You can't do it without changing the coding. That is not how the contribution was designed.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...