Elxis CMS Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: EDC: Download extensions for Elxis 4.x
 
Pages: [1]
  Print  
Author Topic: change Seo Pro rewrite  (Read 1062 times)
Davide
Full Member
***
Offline Offline

Posts: 116


Do yuo know that everything come from Source?


WWW
« on: April 25, 2012, 00: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:
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:
$resmaster->lng->ACCOMMTYPES.'/'.$resmaster->lng->accid;

defining it first into "any_language.php" with

Code:
public $ACCOMMTYPES = 'Pensione%20Per%20Cani%20e/o%20Gatti';

and finally using

Code:
if (!defined('IOSRESBASE')) {

global $_VERSION;

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

define('IOSRESBASE', 'ACCOMMTYPES');

} else {

define('IOSRESBASE', 'com_reservations');

}

}

yes... is not working... any suggestion?
Logged

webgift
Elxis Team
Hero Member
*****
Offline Offline

Posts: 3293



WWW
« Reply #1 on: April 25, 2012, 11:21:29 »

Just take a look to this relative message : here for eblog component.
Important: Don't use a space character for this new seo base. For example : change 'accomodation type' to 'accomodation-type'
Logged

datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7682



WWW
« Reply #2 on: April 30, 2012, 12: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!
Logged

Davide
Full Member
***
Offline Offline

Posts: 116


Do yuo know that everything come from Source?


WWW
« Reply #3 on: May 01, 2012, 22: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..  Wink
Logged

datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7682



WWW
« Reply #4 on: May 02, 2012, 19: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...
« Last Edit: May 02, 2012, 19:22:17 by datahell » Logged

Davide
Full Member
***
Offline Offline

Posts: 116


Do yuo know that everything come from Source?


WWW
« Reply #5 on: May 02, 2012, 22: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... Wink
Logged

Pages: [1]
  Print  
 
Jump to: