Jump to content
Sign in to follow this  
FWR Media

[Contribution] Independent SEO URL Validation

Recommended Posts

i am sorry when i was wasting your time, but for me its still a OScommerce 2.2-MS2 with Header Tags SEO and Ultimate SEO URL like it comes from my hoster.

 

in my first post i wrote, im a totally novice, so calm down.

 

in the end i found the solution on my own.

 

thanks anyway.

Share this post


Link to post
Share on other sites
i am sorry when i was wasting your time, but for me its still a OScommerce 2.2-MS2 with Header Tags SEO and Ultimate SEO URL like it comes from my hoster.

 

in my first post i wrote, im a totally novice, so calm down.

 

in the end i found the solution on my own.

 

thanks anyway.

 

Well, I apologise if I sounded harsh but it is pointless me going over my code to find out why it isn't working when it was never going to work because of modifications to the core configuration system.

 

osC is a steep learning curve so good luck and use these forums as it is a mine of useful information.

 

A quick tip for you is that the search system doesn't work here, if you are looking for something Google it using the search..

site:oscommerce.com <what I'm looking for>

 

Leave out the < >

Edited by FWR Media

Share this post


Link to post
Share on other sites

Hi Robert,

 

First i would like to thank you for this contrib, as for the past 2 weeks i m working hard while using "remove urls" tool in google webmaster along with the disallow command in the robots.txt.

 

I have tried to install your contrib but i get a 404. I have checked for the comment out the "ValidateName" per your instructions but its not in the SEO.class.php file.

 

I am using a 2.1 version of ultimate seo.

 

Below is the HTCCESS file (wit the domain removed...) can this be the problem?

# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
#   AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers

<IfModule mod_setenvif.c>
 <IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
		 nokeepalive ssl-unclean-shutdown \
		 downgrade-1.0 force-response-1.0
 </IfDefine>
</IfModule>

# If Search Engine Friendly URLs do not work, try enabling the
# following Apache configuration parameter
#
# AcceptPathInfo On

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)
#
#<IfModule mod_php4.c>
#  php_value session.use_trans_sid 0
#  php_value register_globals 1
#</IfModule>

# Ultimate SEO URLs BEGIN
Options +FollowSymLinks
RewriteEngine On 
RewriteBase /1234

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}
# Ultimate SEO URLs END

#Options +FollowSymlinks
#RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/1234/$1 [r=301,nc]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html
RewriteRule ^index\.html$ http://www.domain.com/1234/ [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php
RewriteRule ^index\.php$ http://www.domain.com/1234/ [R=301,L]

RewriteCond %{HTTP_USER_AGENT} ^Mozilla
RewriteCond %{HTTP_USER_AGENT} !(Slurp|surfsafely)
RewriteRule ^robots\.txt$ /index.php [L]

ErrorDocument 404 /oops.php
ErrorDocument 401 /oops.php

 

I'd appreciate your help a lot!

 

Thanks

Edited by sukarya

Installed contributions:

Ultimate_SEO, Article Manager 1.5, Dynamic SiteMap 2.0, Infopages, Google SiteMap XMl w/admin 2.1, HeaderTagControler 2.6.1, FCKosc 2.21, X-sell 2.3, Google Analytics Modul, All Products, Page Cache 1.5, EasyPopulate2.7d, Multi Product Manager 2.5, Define Main Page, and probably few others...

Share this post


Link to post
Share on other sites

Thanks for this contribution, it's very handy.

For my site I've noticed the following is possible, can anyone confirm or is it just me?

 

mystore.com/my-product-name-p-123.html

 

mystore.com/my-product-name-p-123blahblahblah.html

Share this post


Link to post
Share on other sites
Hi Robert,

 

First i would like to thank you for this contrib, as for the past 2 weeks i m working hard while using "remove urls" tool in google webmaster along with the disallow command in the robots.txt.

 

I have tried to install your contrib but i get a 404. I have checked for the comment out the "ValidateName" per your instructions but its not in the SEO.class.php file.

 

I am using a 2.1 version of ultimate seo.

 

Below is the HTCCESS file (wit the domain removed...) can this be the problem?

# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
#   AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers

<IfModule mod_setenvif.c>
 <IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
		 nokeepalive ssl-unclean-shutdown \
		 downgrade-1.0 force-response-1.0
 </IfDefine>
</IfModule>

# If Search Engine Friendly URLs do not work, try enabling the
# following Apache configuration parameter
#
# AcceptPathInfo On

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)
#
#<IfModule mod_php4.c>
#  php_value session.use_trans_sid 0
#  php_value register_globals 1
#</IfModule>

# Ultimate SEO URLs BEGIN
Options +FollowSymLinks
RewriteEngine On 
RewriteBase /1234

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}
# Ultimate SEO URLs END

#Options +FollowSymlinks
#RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/1234/$1 [r=301,nc]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html
RewriteRule ^index\.html$ http://www.domain.com/1234/ [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php
RewriteRule ^index\.php$ http://www.domain.com/1234/ [R=301,L]

RewriteCond %{HTTP_USER_AGENT} ^Mozilla
RewriteCond %{HTTP_USER_AGENT} !(Slurp|surfsafely)
RewriteRule ^robots\.txt$ /index.php [L]

ErrorDocument 404 /oops.php
ErrorDocument 401 /oops.php

 

I'd appreciate your help a lot!

 

Thanks

 

I suggest you use version 2.1d updated and ensure that ..

 

RewriteBase /1234/

 

NOT

 

RewriteBase /1234

Share this post


Link to post
Share on other sites
I suggest you use version 2.1d updated and ensure that ..

 

RewriteBase /1234/

 

NOT

 

RewriteBase /1234

 

Thanks.

Done both, Still the same error: "The page isn't redirecting properly".

 

Any other suggestions?


Installed contributions:

Ultimate_SEO, Article Manager 1.5, Dynamic SiteMap 2.0, Infopages, Google SiteMap XMl w/admin 2.1, HeaderTagControler 2.6.1, FCKosc 2.21, X-sell 2.3, Google Analytics Modul, All Products, Page Cache 1.5, EasyPopulate2.7d, Multi Product Manager 2.5, Define Main Page, and probably few others...

Share this post


Link to post
Share on other sites
More info please . .what happens if you turn the mod off in admin for example?

Hi there, I have exacty the same problem. When I turn off the mod it works i.e. I can view my categories. I have 2.1d installed. Regards Elroy

Share this post


Link to post
Share on other sites
Hi there, I have exacty the same problem. When I turn off the mod it works i.e. I can view my categories. I have 2.1d installed. Regards Elroy

 

I haven't a clue what your problem is Elroy.

Share this post


Link to post
Share on other sites
Thanks.

Done both, Still the same error: "The page isn't redirecting properly".

 

Any other suggestions?

 

Remove all the .htaccess rules except for that required by USU and report back what happens.

Share this post


Link to post
Share on other sites
Remove all the .htaccess rules except for that required by USU and report back what happens.

 

 

 

Same thing, its not working: when ISUV is on - all required redirections are not working.

 

: (

 

# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
#   AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers

<IfModule mod_setenvif.c>
 <IfDefine SSL>
#   SetEnvIf User-Agent ".*MSIE.*" \
  #		  nokeepalive ssl-unclean-shutdown \
 #		downgrade-1.0 force-response-1.0
 </IfDefine>
</IfModule>

# If Search Engine Friendly URLs do not work, try enabling the
# following Apache configuration parameter
#
# AcceptPathInfo On

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)
#
#<IfModule mod_php4.c>
#  php_value session.use_trans_sid 0
#  php_value register_globals 1
#</IfModule>

# Ultimate SEO URLs BEGIN
Options +FollowSymLinks
RewriteEngine On 
RewriteBase /1234/

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-([0-9]+).html$ infopages.php?info_id=$2&%{QUERY_STRING}
# Ultimate SEO URLs END

#Options +FollowSymlinks
#RewriteEngine on
#rewritecond %{http_host} ^DOMAIN.com [nc]
#rewriterule ^(.*)$ http://www.DOMAIN.com/1234/$1 [r=301,nc]

#RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html
#RewriteRule ^index\.html$ http://www.DOMAIN.com/1234/ [R=301,L]

#RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php
#RewriteRule ^index\.php$ http://www.DOMAIN.com/1234/ [R=301,L]

#RewriteCond %{HTTP_USER_AGENT} ^Mozilla
#RewriteCond %{HTTP_USER_AGENT} !(Slurp|surfsafely)
#RewriteRule ^robots\.txt$ /index.php [L]

#ErrorDocument 404 /ooops.php
#ErrorDocument 401 /ooops.php

Edited by sukarya

Installed contributions:

Ultimate_SEO, Article Manager 1.5, Dynamic SiteMap 2.0, Infopages, Google SiteMap XMl w/admin 2.1, HeaderTagControler 2.6.1, FCKosc 2.21, X-sell 2.3, Google Analytics Modul, All Products, Page Cache 1.5, EasyPopulate2.7d, Multi Product Manager 2.5, Define Main Page, and probably few others...

Share this post


Link to post
Share on other sites

@sukarya

 

How does USU work when validation is off?

Share this post


Link to post
Share on other sites
@sukarya

 

How does USU work when validation is off?

 

I wasnt clear enough:

 

After installing the "Independent SEO URL Valid." contrib we now have the "Ultimate SEO Configuration" and yours (your is with only ON/OFF).

When "Independent SEO URL Valid." contrib is marked "ON" I get the error discussed...

 

I dont mind drilling down to the code if you have ideas.

 

Thanks!


Installed contributions:

Ultimate_SEO, Article Manager 1.5, Dynamic SiteMap 2.0, Infopages, Google SiteMap XMl w/admin 2.1, HeaderTagControler 2.6.1, FCKosc 2.21, X-sell 2.3, Google Analytics Modul, All Products, Page Cache 1.5, EasyPopulate2.7d, Multi Product Manager 2.5, Define Main Page, and probably few others...

Share this post


Link to post
Share on other sites
I wasnt clear enough:

 

After installing the "Independent SEO URL Valid." contrib we now have the "Ultimate SEO Configuration" and yours (your is with only ON/OFF).

When "Independent SEO URL Valid." contrib is marked "ON" I get the error discussed...

 

I dont mind drilling down to the code if you have ideas.

 

Thanks!

 

I haven't a clue, this is not a problem with anyone else or with any of the sites I have put it on. I'm not aware of any issues with

this contrib other than one installer issue.

 

I can only suggest that you have some add code in your site or have installed something incorrectly.

 

All this contribution does is takes the incoming url and compares it to a new url generated by seo.class.php if they are the same it let's it through, if the product doesn't exist it 404s if the product exists but with different link text it 301s .. simple.

Share this post


Link to post
Share on other sites
I haven't a clue, this is not a problem with anyone else or with any of the sites I have put it on. I'm not aware of any issues with

this contrib other than one installer issue.

 

I can only suggest that you have some add code in your site or have installed something incorrectly.

 

All this contribution does is takes the incoming url and compares it to a new url generated by seo.class.php if they are the same it let's it through, if the product doesn't exist it 404s if the product exists but with different link text it 301s .. simple.

 

 

Thanks. I'll go through the ultimate contrib again.

For any changes will le you know


Installed contributions:

Ultimate_SEO, Article Manager 1.5, Dynamic SiteMap 2.0, Infopages, Google SiteMap XMl w/admin 2.1, HeaderTagControler 2.6.1, FCKosc 2.21, X-sell 2.3, Google Analytics Modul, All Products, Page Cache 1.5, EasyPopulate2.7d, Multi Product Manager 2.5, Define Main Page, and probably few others...

Share this post


Link to post
Share on other sites

Hi

 

I'm stuck with a problem. Have install SEO Validation with SEO_URL 2.1d.

 

Whenever I click on categories it gives me a 404 error. By disabling the Validator, I can view the categories again.

 

Please assist.

 

Regards

 

Elroy

Share this post


Link to post
Share on other sites
Hi

 

I'm stuck with a problem. Have install SEO Validation with SEO_URL 2.1d.

 

Whenever I click on categories it gives me a 404 error. By disabling the Validator, I can view the categories again.

 

Please assist.

 

Regards

 

Elroy

 

Can you post a link please.

Share this post


Link to post
Share on other sites
Hi

 

I'm stuck with a problem. Have install SEO Validation with SEO_URL 2.1d.

 

Whenever I click on categories it gives me a 404 error. By disabling the Validator, I can view the categories again.

 

Please assist.

 

Regards

 

Elroy

 

Although it is validation that is throwing the 404 error it is not a validation issue .. I'll explain why ..

 

Your categories are showing links like ..

 

http://www.myshop.com/-c-112.html

 

Where they are meant to be ..

 

http://www.myshop.com/MY-GREAT-CATEGORY-c-112.html

 

Therefore USU cannot find the category/cat name OR you have neglected to clear the USU cache and categories are showing old links from when it was broken.

 

The validation code knows that when USU returns a link like http://www.myshop.com/-c-112.html that the category does not exist .. it therefore throws a 404 header.

 

Try the following code in phpmyadmin and post back the results ..

 

SELECT categories_name as cName 
FROM categories_description 
WHERE categories_id='112' 
AND language_id='1'

Edited by FWR Media

Share this post


Link to post
Share on other sites
Although it is validation that is throwing the 404 error it is not a validation issue .. I'll explain why ..

 

Try the following code in phpmyadmin and post back the results ..

 

SELECT categories_name as cName 
FROM categories_description 
WHERE categories_id='112' 
AND language_id='1'

 

Hi, unfortunately the results are still the same.

 

Regards

 

Elroy

Share this post


Link to post
Share on other sites
Hi, unfortunately the results are still the same.

 

Regards

 

Elroy

 

What?

 

I meant run the code in phpmyadmin and tell me what it returns.

Share this post


Link to post
Share on other sites
What?

 

I meant run the code in phpmyadmin and tell me what it returns.

Showing rows 0 - 0 (1 total, Query took 0.0001 sec)

SQL query:

SELECT categories_name AS cName

FROM categories_description

WHERE categories_id = '112'

AND language_id = '1'

LIMIT 0 , 30

Share this post


Link to post
Share on other sites
Showing rows 0 - 0 (1 total, Query took 0.0001 sec)

SQL query:

SELECT categories_name AS cName

FROM categories_description

WHERE categories_id = '112'

AND language_id = '1'

LIMIT 0 , 30

 

Sigh

 

And what was the 1 total?

Edited by FWR Media

Share this post


Link to post
Share on other sites
Sigh

 

And what was the 1 total?

cName

Power Supply

 

In my defence I must say the record was displayed right at the bottom between the other parametres, usually I look at screens full of data.

Share this post


Link to post
Share on other sites
cName

Power Supply

 

In my defence I must say the record was displayed right at the bottom between the other parametres, usually I look at screens full of data.

 

catalog/includes/application_top.php

 

Find ..

// Ultimate SEO URLs v2.1
include_once(DIR_WS_CLASSES . 'seo.class.php');

 

Replace TEMPORARILY with ..

// REMOVE ME
 echo '$languages_id = ' . $languages_id . '<br />';
// REMOVE ME
// Ultimate SEO URLs v2.1
include_once(DIR_WS_CLASSES . 'seo.class.php');

 

What does it print?

Share this post


Link to post
Share on other sites
catalog/includes/application_top.php

 

Find ..

// Ultimate SEO URLs v2.1
include_once(DIR_WS_CLASSES . 'seo.class.php');

 

Replace TEMPORARILY with ..

// REMOVE ME
 echo '$languages_id = ' . $languages_id . '<br />';
// REMOVE ME
// Ultimate SEO URLs v2.1
include_once(DIR_WS_CLASSES . 'seo.class.php');

 

What does it print?

$languages_id = 1

Share this post


Link to post
Share on other sites
$languages_id = 1

I had problems installing the seo_url entries in my database so it was amended to the following:

 

class SEO_URL_INSTALLER{

/**

* The default_config array has all the default settings which should be all that is needed to make the base class work.

* @var array

*/

var $default_config;

/**

* Database object

* @var object

*/

var $DB;

/**

* $attributes array holds information about this instance

* @var array

*/

var $attributes;

 

/**

* SEO_URL_INSTALLER class constructor

* @author Bobby Easland

* @version 1.1

*/

function SEO_URL_INSTALLER(){

 

$this->attributes = array();

 

$x = 0;

$this->default_config = array();

$this->default_config['SEO_ENABLED'] = array('DEFAULT' => 'true',

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('Enable SEO URLs?', 'SEO_ENABLED', 'true', 'Enable the SEO URLs? This is a global setting and will turn them off completely.', GROUP_INSERT_ID, ".$x.", NOW(), NOW(), NULL, 'tep_cfg_select_option(array(''true'', ''false''),')"

);

$x++;

$this->default_config['SEO_ADD_CPATH_TO_PRODUCT_URLS'] = array('DEFAULT' => 'false',

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('Add cPath to product URLs?', 'SEO_ADD_CPATH_TO_PRODUCT_URLS', 'false', 'This setting will append the cPath to the end of product URLs (i.e. - some-product-p-1.html?cPath=xx).', GROUP_INSERT_ID, ".$x.", NOW(), NOW(), NULL, 'tep_cfg_select_option(array(''true'', ''false''),')"

);

$x++;

$this->default_config['SEO_ADD_CAT_PARENT'] = array('DEFAULT' => 'true',

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('Add category parent to begining of URLs?', 'SEO_ADD_CAT_PARENT', 'true', 'This setting will add the category parent name to the beginning of the category URLs (i.e. - parent-category-c-1.html).', GROUP_INSERT_ID, ".$x.", NOW(), NOW(), NULL, 'tep_cfg_select_option(array(''true'', ''false''),')"

);

$x++;

$this->default_config['SEO_URLS_FILTER_SHORT_WORDS'] = array('DEFAULT' => '3',

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('Filter Short Words', 'SEO_URLS_FILTER_SHORT_WORDS', '3', 'This setting will filter words less than or equal to the value from the URL.', GROUP_INSERT_ID, ".$x.", NOW(), NOW(), NULL, NULL)"

);

$x++;

$this->default_config['SEO_URLS_USE_W3C_VALID'] = array('DEFAULT' => 'true',

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('Output W3C valid URLs (parameter string)?', 'SEO_URLS_USE_W3C_VALID', 'true', 'This setting will output W3C valid URLs.', GROUP_INSERT_ID, ".$x.", NOW(), NOW(), NULL, 'tep_cfg_select_option(array(''true'', ''false''),')"

);

$x++;

$this->default_config['USE_SEO_CACHE_GLOBAL'] = array('DEFAULT' => 'true',

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('Enable SEO cache to save queries?', 'USE_SEO_CACHE_GLOBAL', 'true', 'This is a global setting and will turn off caching completely.', GROUP_INSERT_ID, ".$x.", NOW(), NOW(), NULL, 'tep_cfg_select_option(array(''true'', ''false''),')"

);

$x++;

$this->default_config['USE_SEO_CACHE_PRODUCTS'] = array('DEFAULT' => 'true',

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ( 'Enable product cache?', 'USE_SEO_CACHE_PRODUCTS', 'true', 'This will turn off caching for the products.', GROUP_INSERT_ID, ".$x.", NOW(), NOW(), NULL, 'tep_cfg_select_option(array(''true'', ''false''),')"

);

$x++;

$this->default_config['USE_SEO_CACHE_CATEGORIES'] = array('DEFAULT' => 'true',

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ( 'Enable categories cache?', 'USE_SEO_CACHE_CATEGORIES', 'true', 'This will turn off caching for the categories.', GROUP_INSERT_ID, ".$x.", NOW(), NOW(), NULL, 'tep_cfg_select_option(array(''true'', ''false''),')"

);

 

$x++;

$this->default_config['USE_SEO_CACHE_MANUFACTURERS'] = array('DEFAULT' => 'true',

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ( 'Enable manufacturers cache?', 'USE_SEO_CACHE_MANUFACTURERS', 'true', 'This will turn off caching for the manufacturers.', GROUP_INSERT_ID, ".$x.", NOW(), NOW(), NULL, 'tep_cfg_select_option(array(''true'', ''false''),')"

);

 

$x++;

$this->default_config['USE_SEO_CACHE_ARTICLES'] = array('DEFAULT' => 'true',

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ( 'Enable articles cache?', 'USE_SEO_CACHE_ARTICLES', 'true', 'This will turn off caching for the articles.', GROUP_INSERT_ID, ".$x.", NOW(), NOW(), NULL, 'tep_cfg_select_option(array(''true'', ''false''),')"

);

$x++;

$this->default_config['USE_SEO_CACHE_TOPICS'] = array('DEFAULT' => 'true',

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ( 'Enable topics cache?', 'USE_SEO_CACHE_TOPICS', 'true', 'This will turn off caching for the article topics.', GROUP_INSERT_ID, ".$x.", NOW(), NOW(), NULL, 'tep_cfg_select_option(array(''true'', ''false''),')"

);

$x++;

$this->default_config['USE_SEO_CACHE_INFO_PAGES'] = array('DEFAULT' => 'true',

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ( 'Enable information cache?', 'USE_SEO_CACHE_INFO_PAGES', 'true', 'This will turn off caching for the information pages.', GROUP_INSERT_ID, ".$x.", NOW(), NOW(), NULL, 'tep_cfg_select_option(array(''true'', ''false''),')"

);

//ojp b

$x++;

$this->default_config['USE_SEO_CACHE_LINKS'] = array('DEFAULT' => 'true',

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ( 'Enable link directory cache?', 'USE_SEO_CACHE_LINKS', 'true', 'This will turn off caching for the link category pages.', GROUP_INSERT_ID, ".$x.", NOW(), NOW(), NULL, 'tep_cfg_select_option(array(''true'', ''false''),')"

);

//ojp e

$x++;

$this->default_config['USE_SEO_REDIRECT'] = array('DEFAULT' => 'true',

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ( 'Enable automatic redirects?', 'USE_SEO_REDIRECT', 'true', 'This will activate the automatic redirect code and send 301 headers for old to new URLs.', GROUP_INSERT_ID, ".$x.", NOW(), NOW(), NULL, 'tep_cfg_select_option(array(''true'', ''false''),')"

);

$x++;

$this->default_config['SEO_REWRITE_TYPE'] = array('DEFAULT' => 'Rewrite',

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ( 'Choose URL Rewrite Type', 'SEO_REWRITE_TYPE', 'Rewrite', 'Choose which SEO URL format to use.', GROUP_INSERT_ID, ".$x.", NOW(), NOW(), NULL, 'tep_cfg_select_option(array(''Rewrite''),')"

);

$x++;

$this->default_config['SEO_CHAR_CONVERT_SET'] = array('DEFAULT' => '',

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('Enter special character conversions', 'SEO_CHAR_CONVERT_SET', '', 'This setting will convert characters.<br><br>The format <b>MUST</b> be in the form: <b>char=>conv,char2=>conv2</b>', GROUP_INSERT_ID, ".$x.", NOW(), NOW(), NULL, NULL)"

);

$x++;

$this->default_config['SEO_REMOVE_ALL_SPEC_CHARS'] = array('DEFAULT' => 'false',

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('Remove all non-alphanumeric characters?', 'SEO_REMOVE_ALL_SPEC_CHARS', 'false', 'This will remove all non-letters and non-numbers. This should be handy to remove all special characters with 1 setting.', GROUP_INSERT_ID, ".$x.", NOW(), NOW(), NULL, 'tep_cfg_select_option(array(''true'', ''false''),')"

);

$x++;

$this->default_config['SEO_URLS_CACHE_RESET'] = array('DEFAULT' => 'false',

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ( 'Reset SEO URLs Cache', 'SEO_URLS_CACHE_RESET', 'false', 'This will reset the cache data for SEO', GROUP_INSERT_ID, ".$x.", NOW(), NOW(), 'tep_reset_cache_data_seo_urls', 'tep_cfg_select_option(array(''reset'', ''false''),')"

);

 

 

$this->init();

} # end class constructor

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×