Quote:
|
Originally Posted by twysm Hey if you want bookmarks and simpleboard components to be compatible with this sef only add this code bellow switch($option){...(line 338 aprox.)
bookmarks: PHP Code: case 'com_bookmarks':
$title = getMeuuTitle($option, @$task);
if (preg_match("/catid=([0-9]*)/",$uri[1],$thisId)) {
$catid = end($thisId);
if ($debug) echo "CATID=$catid:";
$database->setQuery('SELECT name FROM #__bookmarks_categories WHERE id = "'.$catid.'"' );
$rows = @$database->loadObjectList( );
if ($database->getErrorNum()) {
die( $database->stderr());
}elseif( @count( $rows ) > 0 ){
if( !empty( $rows[0]->name ) ){
$title[] = $rows[0]->name;
}
}
}
$string=sefGetLocation($string, $title);
break;
simpleboard: PHP Code: case 'com_simpleboard':
$title = getMeuuTitle($option, @$task);
if (preg_match("/catid=([0-9]*)/",$uri[1],$thisId)) {
$catid = end($thisId);
if ($debug) echo "CATID=$catid:";
$database->setQuery('SELECT name FROM #__sb_categories WHERE id = "'.$catid.'"' );
$rows = @$database->loadObjectList( );
if ($database->getErrorNum()) {
die( $database->stderr());
}elseif( @count( $rows ) > 0 ){
if( !empty( $rows[0]->name ) ){
$title[] = $rows[0]->name;
}
}
}
$string=sefGetLocation($string, $title);
break;
With this you'll have nice URLs. Hope you like it.  |
Hiya
I am having trouble with my com_bookmarks to work with SEF404 and im not sure how to fix/ debug this! pls help ;-)
I read the above post ...but which file does this code actually need to go into ? Soz for my noobies!
The actual error i get when i turn sef404 on is a timeout error ..
when i set "$debug=1;" in function sefRelToAbs( $string ) {
i get this output from my menu link
NDEX=index.php:BASE=/:STRING=index.php?option=com_bookmarks&Itemid=118:
Array
(
[option] => com_bookmarks
[Itemid] => 118
)
and i getthis output on the actual bookmarks page
[INDEX=index.php:BASE=/:STRING=index.php?option=com_bookmarks&Itemid=118& mode=2&catid=-1&search=*:
Array
(
[option] => com_bookmarks
[Itemid] => 118
[mode] => 2
[catid] => -1
[search] => *
)
CATID=-1
my htaccess file looks like this >
# Mambo is Free Software
##
#
# mod_rewrite in use
#
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physival file paths.
# Update YourMamboDirectory (just / for root)
# RewriteBase /YourMamboDirectory
#RewriteBase /
#
# Rules
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) /index.php
im my SEF config in the admin under "Advanced Component ....." i dont have
com_bookmarks listed ...athough i do have several others such as com_yanc , com_akocomment
#########################
im really stumped, i dont know what im missing or where to start to get this to integrate ....
pls let me know if u need any further info ....
btw ..im using 4.5.1a
v2.5_4b (2004-12-28)
and 404 SEF for Mambo 4.5.1 Updated: 2004-11-13 ( dont know the version)
also normal SEF support on this page works ok and produces putput such as this /component/option,com_bookmarks/Itemid,118/
thanku for reading this!
-S