
Originally Posted by
conor
Hi,
This thread has been brought to my attention and although I haven't used WOZ before I'll try it out, identify and fix any issues.. I don't want people to have to modify core files to get any of our software to work with other modules!
I'll post back here as soon as I can with whatever I find out and the necessary information about how to avoid/fix any problems so that text files with instructions on how to modify this or that line aren't being bandied about, that's not a good situation for anyone!
This goes for the Ceon URI Mapping module as well of course.. there should
never be any need to modify its files to get it to work with another module, so I'll identify and fix any issues there as well.
All the best..
Conor
ceon
Thank you.
When they did a permanent link of WordPress besides a default, the following file editing has been necessary.
I am happy if I have you scan it.
/includes/init_includes/init_ceon_uri_mapping.php
Add the new lines shown, around approx line 115:
Code:
$uri_to_match = preg_replace('/[^a-zA-Z0-9_\-\.\/%]/', '', $request_uri);
// for WordPress On ZenCart BOF
$woz_uri_query = "
SELECT
um.language_id,
um.uri
FROM
" . TABLE_CEON_URI_MAPPINGS . " um
WHERE
um.main_page = '" . FILENAME_WORDPRESS . "'
ORDER BY
BIT_LENGTH(um.uri) DESC;";
$woz_uri_result = $db->Execute($woz_uri_query);
$woz_uri = '';
while (!$woz_uri_result->EOF) {
$woz_uri = $woz_uri_result->fields['uri'];
if(ereg("^$woz_uri", $uri_to_match)){
if(ereg("/comments/feed/", $uri_to_match)){
$_GET['feed'] = 'comments-rss2';
}else if(ereg("/feed/", $uri_to_match)){
$_GET['feed'] = 'rss2';
}
$uri_to_match = $woz_uri;
break;
}
$woz_uri_result->MoveNext();
}
// for WordPress On ZenCart EOF
if (substr($uri_to_match, -1) == '/') {
Bookmarks