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

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

Previous topic - Next topic

SlammedDime

Quote from: adamdidthis on May 01, 2007, 12:12:50 AM
Hi Matt, me again.

How do you manage to get Full freindly URL's to appear for the forum. e.g.:

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

instead of

http://www.mlmotorsport.com/ml_forum/board-7.0/
In the configuration, change the 'simple' value from true, to false.  I did test that while I was on your forum and it does work, fyi.  :)  Good luck, feel free to IM, PM or post up here with questions.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

adamdidthis

Thats perfect.

Now all I have to do is wait for your sit mate mod.

majohnst

Thanks for the great mod, unfortunately, I can't get it running. I have Joomla 1.0.12, bridge 1.1.7 and openSEF 2.0.5RC2. I do have openSEF and SMF installed and working correctly. I've installed the sef_ext.php and sef_fixed.php as per the README. Whenever I load my joomla or SMF pages, none of the SMF urls are converted. I created the openSEF alias as mentioned in the README and named it "boards". When I go to hxxp:mysite.com/boards [nonactive], SMF displays, but all the SMF links are still using the Joomla SEF style. I checked the sef_ext.php file just to make sure, and I do have  $config['enabled'] = true; I also have $config['simple'] = true; so the database shouldn't be an issue.

Anyone have ideas on why my urls aren't converting?


majohnst

I changed to simple=false, and that didn't do anything.

SlammedDime

What versions of OpenSEF and SMF do you have?  Can I see a url?

Also, try this... in your components/com_sef folder, there is a file sef.php.  Look for a line that says

'      OR $component_name == 'com_smf''

and change it to
'//      OR $component_name == 'com_smf''

and see what happens...

Also, you did put the sef_ext.php file in the com_smf directory, right?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

majohnst

changed sef.php as mentioned, and no difference. The two files sef_ext.php and sef_fix.php are in /path/to/website/components/com_smf/

Versions:
joomla 1.0.12
OpenSEF 2.0.0-RC5_SP2
bridge 1.1.7
php 4.3.9

The site is at hxxp:www.primetimetiki.com [nonactive] I made an alias in openSMF to point to the SMF component. This url is hxxp:www.primetimetiki.com/smf-forum/ [nonactive]

SlammedDime

It appears that your main menu item for the forum doesn't use the Component-SMF Bridge... it looks like its a link that you created.

You also have an extra / in your url... may want to change your URL in your Joomla admin as well to get rid of that.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

majohnst

I'm new to Joomla, so hopefully I haven't missed an easy step. The menu items for the forum are of the type "Component - SMF Bridge". I adjusted the openSEF setttings and the extra / is now gone.

SlammedDime

Something isn't right because your login module has links with an Itemid of 0, which I believe indicates an issue with databases not having access to each other.  If you don't mind, you can pm me admin access to joomla and I can take a look at your settings and see if something isn't set right.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

SlammedDime

Ok, I've fixed your issue.  The problem lay in the fact that you had a few trashed menu items that were messing up the bridge component, and thus the SEF.  As chadness discovered with his discussbot, and pointed out to Orstio, this is a small bug in the bridge, but also with users not emptying their trash (if they even know it exists).  It normally isn't an issue if you aren't trying to use this extension, but apparently with this extension it is.  I deleted your trash and all is now well and you have SEF urls.  Happy web building sir. :)  You can delete that account now.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

majohnst

Great! thanks for all your help. You've made a wonderful mod for everyone to use.

willi1

Hello,

thanks for this great "extension".

I have installed it and it works fine  :), there is just one little "problem": the german language
includes ä,ö,ü,ß and in the URL they are shown as %e4, %f6, %fc, %df. How can I make to show ä as  ae, ö as oe, ü as ue, ß as ss ?

have you any suggestions for me ?

best regards
willi1


SlammedDime

In your OpenSEF configuration, there is a section for 'replacements'... put your original characters in there, and the replacements (ae, oe, etc, etc) in the other box, and that should take care of that.  If that doesn't work, let me know, I'll do some testing to see what I can come up with for you.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

willi1

thanks for your reply,

we have found the solution

open the sef_ext.php and found the line

$string = urlencode($string);

after that line paste

$string = eregi_replace("%D6", "oe", $string);
      $string = eregi_replace("%DC", "ue", $string);
      $string = eregi_replace("%E4", "ae", $string);
      $string = eregi_replace("%F6", "oe", $string);
      $string = eregi_replace("%FC", "ue", $string);

now it works  :) great

best regards
willi1

SlammedDime

Quote from: willi1 on May 14, 2007, 02:43:36 AM
thanks for your reply,

we have found the solution

open the sef_ext.php and found the line

$string = urlencode($string);

after that line paste

$string = eregi_replace("%D6", "oe", $string);
      $string = eregi_replace("%DC", "ue", $string);
      $string = eregi_replace("%E4", "ae", $string);
      $string = eregi_replace("%F6", "oe", $string);
      $string = eregi_replace("%FC", "ue", $string);

now it works  :) great

best regards
willi1
rather than use eregi_replace, str_replace would be sufficient, and I believe faster if I remember right...
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

willi1

Hello,

thank you for your reply. We use the login Modul, but the login and register link don't work
the url looks like so

http://www.alko-hohl.de/http://www.alko-hohl.de/forum/login/
http://www.alko-hohl.de/http://www.alko-hohl.de/forum/register/

the link password forgotten looks right

http://www.alko-hohl.de/reminder

have you any suggestions for me

best regards
willi1

SlammedDime

Quote from: willi1 on May 14, 2007, 05:50:46 AM
Hello,

thank you for your reply. We use the login Modul, but the login and register link don't work
the url looks like so

http://www.alko-hohl.de/http://www.alko-hohl.de/forum/login/
http://www.alko-hohl.de/http://www.alko-hohl.de/forum/register/

the link password forgotten looks right

http://www.alko-hohl.de/reminder

have you any suggestions for me

best regards
willi1
I just went to your site and all of the links look fine to me.  Can you point me to a specific page where they are wrong?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

willi1

working the whole night I found a solution ...  ;)

I changed a line in the language.php - I replaced the variable link to a fixed one as you see below

$txt['welcome_guest'] = 'Noch kein Benutzerkonto?< br/><a href="http://www.alko-hohl.de/forum/register">&raqou; registrieren</a>';

kind regards
willi1

SlammedDime

Thats not really a solution, but a workaround, but if you're okay with it, then its fine by me. :)
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Advertisement: