Post by crazydog2401 » Fri Jul 24, 2009 12:00 pm

crazydog2401 wrote:Hi, all.
New code is very better..., don't scan all link on site. :) :)
I'm has been patch 3 file for SEO...
demo : http://timmuaban.com/may-vi-tinh/may-ti ... 24ghz.html

I'm test with my site 1 languague latin....

1. ;D ;D open file /admin/config.php to add a function sanitize_title.

Code: Select all

function sanitize_title($title) {
// Preserve escaped octets.
  $title=preg_replace('|%([a-fA-F0-9][a-fA-F0-9])|','---$1---',$title);
// Remove percent signs that are not part of an octet.
  $title=str_replace('%','',$title);
// Restore octets.
  $title=preg_replace('|---([a-fA-F0-9][a-fA-F0-9])---|','%$1',$title);
  $title=strtolower($title);
  $title=preg_replace('/&.+?;/','',$title);
// kill entities
  $title=preg_replace('/[^%a-z0-9 _-]/','',$title);
  $title=preg_replace('/\s+/','-',$title);
  $title=preg_replace('|-+|','-',$title);
  $title=trim($title,'-');
  return $title;
}
and open file attchment

website: www.webcongty.net
IT Manager / Linux / MAC / Windows
Web Developments with PHP & MySQL
Webmaster / Search Engine Optimization


User avatar
Newbie

Posts

Joined
Sun Jul 12, 2009 4:58 am

Post by blueantz » Sun Aug 02, 2009 4:53 am

Keep getting errors when trying to save this in /admin/config.php file. Is this correct file? For v1.2.9, you inserted into admin/model/tool/seo_url.php file.

Need clarification on which file to enter function sanitize_title.
Afterwards, If I understood correctly, you just replace admin/model/catalog/product.php and category.php files with the code from patch opencart.rtf attachment.

Any help appreciated.

Newbie

Posts

Joined
Sun Aug 02, 2009 4:42 am

Post by crazydog2401 » Sat Oct 31, 2009 5:36 am

My update this topic with version lastest

http://forum.opencart.com/viewtopic.php ... 110#p35110

website: www.webcongty.net
IT Manager / Linux / MAC / Windows
Web Developments with PHP & MySQL
Webmaster / Search Engine Optimization


User avatar
Newbie

Posts

Joined
Sun Jul 12, 2009 4:58 am

Post by adelaida » Fri Feb 19, 2010 8:42 pm

Thanks!
Another one useful file helped me a bit

opencart shopping saved lots of time for me!
thank you! just another situk mind (c)
simply clear uk granny dating website


Newbie

Posts

Joined
Fri Feb 19, 2010 8:17 pm
Who is online

Users browsing this forum: Majestic-12 [Bot] and 18 guests