(Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF

Started by SlammedDime, March 20, 2007, 04:19:23 AM

Previous topic - Next topic

aceat64

Be sure that you have SEF disabled in SMF, as we don't want to use SMF's version, we're using it through the bridge (and this ext). What's odd is that your links show like this:

http://www.mlmotorsport.com/ml_forum/board-7.0/


Where a normally working site, with OpenSEF, bridge, ext and all should look like this:

http://www.mlmotorsport.com/ml_forum/workshop-woes

SlammedDime

#61
Quote from: adamdidthis on April 24, 2007, 04:01:03 AM
yep the link is here:

http://www.mlmotorsport.com/ml_forum

I have to be carefull as the forum is live so I cant leave it like that for long.
K, it seems to be parsing the simple urls for boards into topics... I'll take a look at it...

See below for why...
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

SlammedDime

Quote from: aceat64 on April 24, 2007, 04:31:34 AM
Be sure that you have SEF disabled in SMF, as we don't want to use SMF's version, we're using it through the bridge (and this ext). What's odd is that your links show like this:

http://www.mlmotorsport.com/ml_forum/board-7.0/


Where a normally working site, with OpenSEF, bridge, ext and all should look like this:

http://www.mlmotorsport.com/ml_forum/workshop-woes

This SEF extension allows for simple urls, which is what he has enabled in the extension configuration.

The issue is because he is using a suffix of '/'.  You cannot do this.  It must be something other than that, like .html, or .htm, or whatever.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

adamdidthis

SEF is disabled in SMF and here is the code form the config file:

/*** Start Editing Here ***/
$config['enabled'] = true;

$config['db_name'] = "mlmotor_phpb1";

$config['db_prefix'] = "smf_";

$config['simple'] = true;

$config['custom_actions'] = array( );

$config['custom_subactions'] = array( );

$config['board_pagination'] = 20;

$config['strip_words'] = "a,about,above,across,after,against,along,among,around,
at,before,behind,below,beneath,beside,between,beyond,but,
by,despite,down,during,except,for,from,in,inside,into,
like,near,of,off,on,onto,out,outside,over,past,since,through,the,
throughout,till,to,toward,under,underneath,until,up,upon,
with,within,without";

$config['strip_chars'] = array("&quot", "&amp", "&lt", "&gt", "`", "~", "!", "@",
"#", "$", "%", "^", "&", "*", "(", ")", "-", "_", "=",
"+", "[", "{", "]", "}", ";", ":", "'", ",", "<", ".",
">", "/", "?", "\\", "|");

$config['suffix'] = '.html';

$config['space'] = $sefConfig->encode_space_char;

$config['lowercase'] = $sefConfig->encode_lowercase;

$config['spec_chars'] = $sefConfig->spec_chars;

$config['spec_chars_d'] = $sefConfig->spec_chars_d;
/*** Stop Editing Here ***/

SlammedDime

#64
Quote from: adamdidthis on April 24, 2007, 05:23:04 AM
SEF is disabled in SMF and here is the code form the config file:

/*** Start Editing Here ***/
$config['enabled'] = true;

$config['db_name'] = "mlmotor_phpb1";

$config['db_prefix'] = "smf_";

$config['simple'] = true;

$config['custom_actions'] = array( );

$config['custom_subactions'] = array( );

$config['board_pagination'] = 20;

$config['strip_words'] = "a,about,above,across,after,against,along,among,around,
at,before,behind,below,beneath,beside,between,beyond,but,
by,despite,down,during,except,for,from,in,inside,into,
like,near,of,off,on,onto,out,outside,over,past,since,through,the,
throughout,till,to,toward,under,underneath,until,up,upon,
with,within,without";

$config['strip_chars'] = array("&quot", "&amp", "&lt", "&gt", "`", "~", "!", "@",
"#", "%body%quot;, "%", "^", "&", "*", "(", ")", "-", "_", "=",
"+", "[", "{", "]", "}", ";", ":", "'", ",", "<", ".",
">", "/", "?", "\\", "|");

$config['suffix'] = '.html';

$config['space'] = $sefConfig->encode_space_char;

$config['lowercase'] = $sefConfig->encode_lowercase;

$config['spec_chars'] = $sefConfig->spec_chars;

$config['spec_chars_d'] = $sefConfig->spec_chars_d;
/*** Stop Editing Here ***/

Everything appears to be inorder there.  When I visited your site, I didn't have the .html on the topics when I hovered over them, which is why i said what I did above.  I can't even seem to duplicate the issue. :/  Let me ponder on this overnight.

If there's any chance of you creating a backup in a seperate directory and enabling sef there that I can look at and play with, that'd be awesome, but I'm not sure of your skills.  It would be as 'simple' as copying the database to a new one, and changing the settings in joomla and smf and the bridge to reflect the database and directory changes.  If its possible, great, if not, I'll still ponder on it.

Do you have any errors in your forum error log from sef_ext.php?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

adamdidthis

yep just checked, they all relate to sef_fix.php

http://www.mlmotorsport.com/forum/index.php?option=com_smf&amp;Itemid=26&amp;amp;topic=661.msg3466;topicseen 
8: Undefined offset: 18
File: /home/mlmotor/public_html/components/com_smf/sef_fix.php
Line: 62

SlammedDime

Quote from: adamdidthis on April 24, 2007, 06:05:53 AM
yep just checked, they all relate to sef_fix.php

http://www.mlmotorsport.com/forum/index.php?option=com_smf&amp;Itemid=26&amp;amp;topic=661.msg3466;topicseen 
8: Undefined offset: 18
File: /home/mlmotor/public_html/components/com_smf/sef_fix.php
Line: 62

That error wont affect the problem that youre having.  Ill fix sef_fix in the next one i release, but on line 61, youll see a <= comparison in the if statement, just remove the = and that will fix that error.  Then run through with sef on again and see if any errors pop up.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

adamdidthis

I have made the change above and still have the same error, if I give you the login info can you take a look at it please?

SlammedDime

Quote from: adamdidthis on April 25, 2007, 01:08:42 AM
I have made the change above and still have the same error, if I give you the login info can you take a look at it please?
This may sound stupid, but I must ask first, did you delete all of the errors first in the error log, then browse the forum for a few pages, the check the error log again?  And that still popped up?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

adamdidthis

OK i trashed the log and the error isnt appearing any more. but am still having problems with the links being formed.

SlammedDime

Updated first post with newest version, adding some subactions and fixing an error when using simple urls.

adamdidthis: I still can't figure out your error.  check your PM's and perhaps we can work out a time when I can look at your forum and we can discuss it via instant messaging.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

RebeldeLatino

Matt @ ARTcom:

I am find another error... When exist two or more, forums with the repeat name but in diferent Categories, the Bridge-SEF not found, and only redirect to first forum.

I.E: I'm create the forum name "General Forum" in "Community" categority, after i'm created the "General Forum" in "Trash" category... but only found with one forum. The links found with only one forum.

PD: Please andd the "colapse" and "expand" y the next version, or document this.

Thanks for your community work!!

SlammedDime

Quote from: RebeldeLatino on April 29, 2007, 04:07:32 AM
Matt @ ARTcom:

I am find another error... When exist two or more, forums with the repeat name but in diferent Categories, the Bridge-SEF not found, and only redirect to first forum.

I.E: I'm create the forum name "General Forum" in "Community" categority, after i'm created the "General Forum" in "Trash" category... but only found with one forum. The links found with only one forum.

PD: Please andd the "colapse" and "expand" y the next version, or document this.

Thanks for your community work!!
I mentioned your first issue in a PM to you awhile back.  Of course this won't work because board numbers are not in the URL, only the name, so by making two boards with the same name, you will always only get the first board created (by numerical order of board id).  As for collapse and expand, I have added them to version 1.5.2 in the first post.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

SlammedDime

Thanks to adamdidthis for allowing me to browse his site and figure out his bug.  strrpos didn't do as I expected in PHP4 (I use PHP5), which was use the needle as it was passed, be it character, or string.  It used the first character of any string passed as the needle.  This caused the error in adam's case, and with simple urls.  I would recommend that anyone using PHP4 upgrade to version 1.5.3 in the first post.  (Sorry about all of the versions, but its better than posting bug fixes in the first post, and really its not difficult to reset the configuration as the normal user only needs to configure the first two or three values).
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

chadness

Quote from: Matt @ ARTcom on April 29, 2007, 05:21:31 AM
I mentioned your first issue in a PM to you awhile back.  Of course this won't work because board numbers are not in the URL, only the name, so by making two boards with the same name, you will always only get the first board created (by numerical order of board id). 
I have no idea if this is easy, but you might consider using the board ID in the generated URL.  Have it be something like BoardID:Board name, or vice versa.  I know that's how they're going to do it in Joomla to avoid duplicates.  So, then he might have 23:General Forum, and 84:General Forum.  Should still be just as good from a SEO perspective.

joejackson

Matt @ ARTcom, love the enthusiasm.
Where is the best place for someone to begin learning PHP coding?

SlammedDime

Quote from: joejackson on April 30, 2007, 12:21:22 PM
Matt @ ARTcom, love the enthusiasm.
Where is the best place for someone to begin learning PHP coding?
I learned by doing, searching google, and I'm also a software engineering student, so coding comes easily for me, however the best place I've found as of late is right here at Simple Machines.  There is a PHP Coding help forum with many tutorials to get you started.  php.net (the home of php) is also an invaluable resource.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

RebeldeLatino

 :(

error?

... I am use the option that the users activate account with click in the link of email for activation, but with the SEF this option not found and my users can't activate  :'(

SlammedDime

Quote from: RebeldeLatino on April 30, 2007, 02:31:30 PM
:(

error?

... I am use the option that the users activate account with click in the link of email for activation, but with the SEF this option not found and my users can't activate  :'(
Try and explain it a little better please.  I just registered on your site and you don't have the option for email activation turned on.  It automatically activates upon registration.  If you don't see that option in your SMF settings, then you have done something to cause that.  This extension doesn't remove anything from SMF or Joomla.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

adamdidthis


Advertisement: