Elxis CMS Forum

Extensions => Components => Topic started by: Davide on April 25, 2012, 01:34:42

Title: change Seo Pro rewrite
Post by: Davide on April 25, 2012, 01:34:42
HolĂ !

i was thinking to change the rewritten seopro path.

http://www.petbooking.it/reservations/vicenza/von-casa-falco-a-vicenza.html

i'd like to change /reservations/ into > what is defined into "accomodation type" after > translation.

I was thinking that the solution was changing on seopro.com_reservations.php

Code: [Select]
line 31-45
if (!defined('IOSRESBASE')) {

global $_VERSION;

if ($_VERSION->RELEASE > '2008') {

define('IOSRESBASE', 'reservations');

} else {

define('IOSRESBASE', 'com_reservations');

}

}

where is written reservation, I initially put only $accid but this is only a category without an unique id accomodation type defined in the database and is not mentioned that before has to be translated.

Next i was thinking to use something similar to:

Code: [Select]
$resmaster->lng->ACCOMMTYPES.'/'.$resmaster->lng->accid;
defining it first into "any_language.php" with

Code: [Select]
public $ACCOMMTYPES = 'Pensione%20Per%20Cani%20e/o%20Gatti';
and finally using

Code: [Select]
if (!defined('IOSRESBASE')) {

global $_VERSION;

if ($_VERSION->RELEASE > '2008') {

define('IOSRESBASE', 'ACCOMMTYPES');

} else {

define('IOSRESBASE', 'com_reservations');

}

}

yes... is not working... any suggestion?
Title: Re: change Seo Pro rewrite
Post by: webgift on April 25, 2012, 12:21:29
Just take a look to this relative message : here (https://forum.elxis.org/index.php?topic=5278.msg35860#msg35860) for eblog component.
Important: Don't use a space character for this new seo base. For example : change 'accomodation type' to 'accomodation-type'
Title: Re: change Seo Pro rewrite
Post by: datahell on April 30, 2012, 13:27:20
The SEO PRO base name should contain only alphanumeric latin characters without spaces and only the symbols - and _ are allowed. Also your code is wrong. You use a PHP variable as PHP constant. Don't change SEO PRO base name depending on the language. You may end up with unexpected results!
Title: Re: change Seo Pro rewrite
Post by: Davide on May 01, 2012, 23:29:35
Don't change SEO PRO base name depending on the language. You may end up with unexpected results!

don't you think that would be better indexed if you see sitename.xx/kind-of-accomodation/location? The system will be also obliged to create multiple page.

What would be a bad result from your point of view?

Thank you for your suggest and reply..  ;)
Title: Re: change Seo Pro rewrite
Post by: datahell on May 02, 2012, 20:19:15
Inexperienced users can create bad results from very simple things. You may end with non-resolving URLs, URLs overlapping, confusion in Elxis SEO resolver and validator, multiple URLs for the same page, payment gateways and redirection issues and many many more. URLs should be solid and unique, yours are not. If you do it properly it will work. But most probably we will surely forget to update something. Elxis has 6500 files! You can do what ever you want, it is your choice, but I warned you...
Title: Re: change Seo Pro rewrite
Post by: Davide on May 02, 2012, 23:52:35
Elxis has 6500 files! You can do what ever you want, it is your choice, but I warned you...

okok you win! i don't have enough time in my life... ;)