Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Joomla Bridge Support => Topic started by: SlammedDime on March 20, 2007, 04:19:23 AM

Title: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on March 20, 2007, 04:19:23 AM
Ok, over the past few weeks, I've been pounding this out, mainly for fun, but also because I wanted content filled urls on my forum as well as on my Joomla site.  What I have here is a SEF Extension file for use with OpenSEF 2.0.0RC5 SP2.  I think I've made it much more user friendly over the past week or so, and the readme that is included explains everything I think, as well as a change log for those interested.  I was going to release this as a beta version, but I'm pretty confident (last words, right?) in its ability.

A modification/addition is needed to your smf.php file, which is also explained in the readme.  Before running this live, I HIGHLY recommend that you test it locally or on a test site first.  I can't be held accountable for anything that this may (which it shouldn't anyway) destroy.

I can't attach files here, but I can link to them, so here is a link to a zip file containing the extension and all the information.  PLEASE PLEASE PLEASE, before asking questions, READ the entire readme.html file.

While this isn't a Beta version of sorts, it should still be heavily tested on any test site before going live.  I will continue to test it as well to find errors and if anyone finds some themselves, please point them out.

>> Click Here for version 1.5.3 (http://www.airridetalk.com/component/option,com_doqment/Itemid,58/) <<

* 4/29/2007 - Updated link for version 1.5.3 *

Change log:
v1.5.3 - 04/29/2007
   » Error with strrpos... php4 didn't do what php5 does, and I didn't realize that.  More info in readme.html

See readme.html for full Change Log

Any questions, ask here.

And in case anyone wants to see a live version, I always have the latest version running at http://www.airridetalk.com.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: KGIII on March 20, 2007, 04:43:51 AM
Have you considered submitting the modification for review?

At risk of offending (please don't be offended but rather realize that I must do this) I want to add: Downloading unapproved modifications and using them is not the best idea. Please do not do so and, if you must, know that you put yourself at great risk and your forum's stability and security are potentially impacted.

That being said...

I have no doubts that this is well intentioned, coded well, and has been researched. I just need to ensure that people know the risks that they take when they download unapproved mods from third party sites.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on March 20, 2007, 04:50:34 AM
Quote from: KGIII on March 20, 2007, 04:43:51 AM
Have you considered submitting the modification for review?

At risk of offending (please don't be offended but rather realize that I must do this) I want to add: Downloading unapproved modifications and using them is not the best idea. Please do not do so and, if you must, know that you put yourself at great risk and your forum's stability and security are potentially impacted.

That being said...

I have no doubts that this is well intentioned, coded well, and has been researched. I just need to ensure that people know the risks that they take when they download unapproved mods from third party sites.
My apologies.  Not too familiar with the process of modifications around here, mostly just watch this particular forum for updates.  How would I go about submitting it for review? (First post edited for time being)

Edit: Keep in mind also, that this is not really a mod for SMF, but really for Joomla!, but ties into the SMF bridge from orstio.  No SMF files are modified/changed/added, not that it makes it any better from your standpoint, but just to point it out.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: KGIII on March 20, 2007, 05:02:54 AM
As a general rule it seems we don't make people remove links. Though I have seen some where we have in the past but not always. To submit a modification for review (and this one MAY be an interesting case as this appears to deal specifically with bridging so I am going to point someone who's been on the team longer than I over here shortly) just click on downloads, at the top of this page, and then on modifications and it will be off on the right near the SDK. Just submit, comment, etc... Someone will review it (in time) and approve it or contact you to let you know if it adheres to the coding guidelines. (That is a big thing - adherence to the guidelines...)

The process is there to hopefully ensure that nothing untoward is done and that all mods meet a certain level of quality prior to being used by thousands of forums.

A simple example:

I wrote one mod that I loved and really needed for my forum. It basically garbles any URLs posted. It took a month and a half for approval but my other one was approved in just a short time. The second was simplistic and, frankly, of no value to me at all. Yet it has been downloaded over 1000 times already and the first one that I wrote has nowhere near as many downloads. These, some of them for the oddest reasons, get a lot of use on a wide variety of servers and with a wide variety of mods. Thus checking to see that a standard in code and in quality is maintained is important.

This being your first I would ask you (I do not know) if there is a way you can check to ensure that Joomla is installed prior to the mod being installed? If so that might be a good idea.

In the mean-time what I would also recommend is changing your first post's title to something about [testing] and then re-link it. I will poke one of the bridging gurus and maybe they will have some insight. It is not that anyone here assumes that you would write a mod that would be malicious but, rather, there is an approval process which will get your mod approved and distributed. But, yeah, in the mean-time I would certainly go ahead and change the topic JUST to make sure that people know they are testing and I would go ahead and re-link your mod.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on March 20, 2007, 05:08:23 AM
Thanks for the explanation and insight.  I'll do as you suggested.  I suppose getting feedback from the masses who wish to test this couldn't hurt until I take a more formal approach to this that I unfortunately wasn't aware of before hand.  Thanks again. :)
Title: Re: [TESTING] (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: KGIII on March 20, 2007, 05:23:05 AM
Not a problem and because I am actually fairly new to the team and am abysmal with the bridging system (I have done a total of two and only for other people) I have asked that someone else step in and take a peek. I am sorry if you felt you had to remove the link, though I am glad you respected the post enough to do so, but rather the post wasn't really directed at you other than the question about submitting it - it was just to ensure that people don't come back and yell at you and claim you hosed their forum on them.
Title: Re: [TESTING] (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: Orstio on March 20, 2007, 06:38:43 AM
KGIII:  This isn't a mod (modification) to SMF.  It can't be installed as a package in the Package Manager, and never will be able to be installed that way.  It doesn't need to fall under any of the provisions we have set out for mods to SMF.

What AirRideTalk has done is provided a Joomla SEF extension file, and instructions on how to modify the bridge to make this work with OpenSEF, which is a third party SEF component for Joomla.  This is acceptable within the terms of the SMF license.

I think distributing this on our SMF mod site would cause confusion.
Title: Re: [TESTING] (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: KGIII on March 20, 2007, 06:43:20 AM
Thanks Orstio. :) I knew I had better call in the gurus.  
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: Orstio on March 20, 2007, 06:12:43 PM
AirRideTalk:

If I add this to the bridge:

// Fix Javascript if sef_ext.php file is present (well, the one from AirRideTalk anyway)
if(class_exists('sef_smf')){
     include_once($mosConfig_absolute_path . '/components/com_smf/sef_fix.php');
     sef_fix($buffer);
}


Can you put the sef_fix function in a file named sef_fix.php and add appropriate globals, and then we won't need people to hack their bridge?

(This would only be available in the next release, not in 1.1.7, obviously.)
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: dogood on March 21, 2007, 04:49:34 AM
hello AirRideTalk and orstio

Whao, great patch you did there! thanks! I'm just managing to get it running along with OpenSef on my joomla! 1.0.12 site, with smf 1.1.2. I read everything in your nice readme.html. After configuring the sef_ext.php file, I just uploaded it in the right place, but when I go to OpenSef config, I do not see the component for smf...

I was wondering if OpenSef *has* to be activated for this to work, while mine here is still not activated...

Any idea?

Thanks again for the great work!

:)
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: DanielTulp on March 21, 2007, 05:48:01 AM
you should be careful with implementations like these, OpenSEF can cause a heavy CPU load on sites with high traffic, and make your site run slow, so be aware that this might happen
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on March 21, 2007, 06:12:23 AM
Quote from: Orstio on March 20, 2007, 06:12:43 PM
AirRideTalk:

If I add this to the bridge:

// Fix Javascript if sef_ext.php file is present (well, the one from AirRideTalk anyway)
if(class_exists('sef_smf')){
     include_once($mosConfig_absolute_path . '/components/com_smf/sef_fix.php');
     sef_fix($buffer);
}


Can you put the sef_fix function in a file named sef_fix.php and add appropriate globals, and then we won't need people to hack their bridge?

(This would only be available in the next release, not in 1.1.7, obviously.)
I will definately do that.  Thanks for the tip.  I've already gone ahead and made the change and will re-test later today to make sure everything still works and will update the first post with the new version/changes.

dogood, You must have Orstios bridge installed for the component to show up in your "Components" section of OpenSEF configuration.  If you have the bridge installed, be sure (not that it would make a difference I dont think, but I havent tested it) you have a proper main menu item pointing to the bridged forum.  If OpenSEF is turned off, and Joomla! SEF is on, your forum should have normal Joomla SEF urls.

DanielTulp - Thanks for the tip.  I'll keep an eye on server loads.  The simple queries here aren't really intensive, and there are only sql queries if boards, topics, or users are in the links are in the strings to be parsed.  So while there may be a lot of links on a SMF page, most may not even cause database queries, such as admin panel pages.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: dogood on March 21, 2007, 06:32:21 AM
Quotedogood, You must have Orstios bridge installed for the component to show up in your "Components" section of OpenSEF configuration.  If you have the bridge installed, be sure (not that it would make a difference I dont think, but I havent tested it) you have a proper main menu item pointing to the bridged forum.

thanks for the fast answer!
I have Orstio's bridge installed, latest version always, and everything is going better and better with it! I've been using this bridge for a long time now :) And I have of course a menu item pointing to the component, that is to say, the bridged forum, which is *not* wrapped.

QuoteIf OpenSEF is turned off, and Joomla! SEF is on, your forum should have normal Joomla SEF urls.

This is exactly the case! But I still can't see the Component SMF in OpenSef configuration...

well, thinking about it while answering: shouldn't we put your patch in the admin smf component directory? If this is the case, it would be good to mention it in the readme.html :) I'll try this right now!

edit: well, it stilldoesn't show in the opensef config

@+
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: Chriss Cohn on March 21, 2007, 01:35:50 PM
Well i have to say: Great work for a "not-so-great" joomla-component (OpenSEF).
People who use this extension and have much Forum topics/boards should not wonder if their server-loads getting very very high. Well this is a big big problem with Open-Sef and much content(and yes now Forum topics/boards are "content" too!), so ,my descision a few months ago, was to throw Open-Sef away and install the best payed ones (SefAdvance). Anyway it seems that Predator(dev. of that component) doesnt continue to develop it. Last Year in November he anounced that he will bring out a beta 6 of Open-SEF RC2 shortly, but till today nothing has happen........

So if you want working SEF-URLS and another cool SEO-Stuff for your bridged Form and if you willing to pay some "little" money(40€), then use SefAdvance and the great MOD: Seo4SMF.

Regards Christian
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on March 21, 2007, 02:04:25 PM
Quote from: g-c on March 21, 2007, 01:35:50 PM
Well i have to say: Great work for a "not-so-great" joomla-component (OpenSEF).
People who use this extension and have much Forum topics/boards should not wonder if their server-loads getting very very high. Well this is a big big problem with Open-Sef and much content(and yes now Forum topics/boards are "content" too!), so ,my descision a few months ago, was to throw Open-Sef away and install the best payed ones (SefAdvance). Anyway it seems that Predator(dev. of that component) doesnt continue to develop it. Last Year in November he anounced that he will bring out a beta 6 of Open-SEF RC2 shortly, but till today nothing has happen........

So if you want working SEF-URLS and another cool SEO-Stuff for your bridged Form and if you willing to pay some "little" money(40€), then use SefAdvance and the great MOD: Seo4SMF.

Regards Christian

Thanks for your 'input' Christian.  You do realize that OpenSEF does not store urls from components (ie: com_smf) in the database, right?  They are created and parsed 'on the go'.  OpenSEF does not derive them from stored database entries like it does for content items in Joomla.  While OpenSEF has its pitfalls, so does any software, and I merely created a simple alternative for those who wish to have SEF urls without hacking away at core and template files in either Joomla! or SMF.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: DanielTulp on March 21, 2007, 02:32:28 PM
I don't think it was an attack on your work AirRideTalk, just a more elaborate explanation of what I had said before, chill and keep coding under the GNU/ GPL or other free license  ;D
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on March 21, 2007, 02:42:13 PM
Quote from: DanielTulp on March 21, 2007, 02:32:28 PM
I don't think it was an attack on your work AirRideTalk, just a more elaborate explanation of what I had said before, chill and keep coding under the GNU/ GPL or other free license  ;D
Will do  8)
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: thinkarcade on April 02, 2007, 09:27:44 PM
I am getting this error after installation.  Using Joomla 1.0.12, SMF 1.1.2, 2.0.0-RC5_SP2 and Bridge 1.1.7. I followed all of the instructions yet I still cant get this one to work.  When I enabled it through OpenSEF it seems like it was working right as when I hovered over the links they displayed as human readable but when i clicked on them it just stays on the index page and give me this error:

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/xxx/xxx/xxx/administrator/components/com_smf/sef_ext.php on line 440

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/xxx/xxx/xxx/administrator/components/com_smf/sef_ext.php on line 447

Any help would be greatly appreciated as I would love to use this mod. 

Thanks
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: thinkarcade on April 02, 2007, 10:28:05 PM
Geez I feel stupid. :-[  Had a typo in the DB name.  This mod seems to be working GREAT!   
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 03, 2007, 04:46:53 AM
Quote from: thinkarcade on April 02, 2007, 10:28:05 PM
Geez I feel stupid. :-[  Had a typo in the DB name.  This mod seems to be working GREAT!   
I was gonna suggest you check the db name.  Glad its working for you!
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: thinkarcade on April 03, 2007, 11:32:25 AM
It seems that after I installed this mod(at least I think it was this one) I can no longer send PMS.  I was also not able to log in to the forum via mod_smf_login cause I kept getting a 404 error which I managed to fix myself.  I would imagine that the PM issue is related but I cant figure it out at all.  When you send a PM it appears that It sent, no errors or anything.  However, when you look in the outbox (or inbox for the user you sent the PM to) it isn't there.  When I log in to the forums bypassing the bridge it works fine and I am able to send PMs with no problems so it can't be related to any SMF mods I have installed.  When I log in through the bridge and try to manually go to the URL http://www.arcadewebmasters.com/forum/pm/send2, which I think is the URL the PM form submits to  it takes me to the PM index instead. However, http://www.arcadewebmasters.com/forum/pm/send take me to the correct page.  Can anyone help me on this?

My forum is at www.arcadewebmasters.com

Thanks
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 03, 2007, 01:14:07 PM
Quote from: thinkarcade on April 03, 2007, 11:32:25 AM
It seems that after I installed this mod(at least I think it was this one) I can no longer send PMS.  I was also not able to log in to the forum via mod_smf_login cause I kept getting a 404 error which I managed to fix myself.  I would imagine that the PM issue is related but I cant figure it out at all.  When you send a PM it appears that It sent, no errors or anything.  However, when you look in the outbox (or inbox for the user you sent the PM to) it isn't there.  When I log in to the forums bypassing the bridge it works fine and I am able to send PMs with no problems so it can't be related to any SMF mods I have installed.  When I log in through the bridge and try to manually go to the URL http://www.arcadewebmasters.com/forum/pm/send2, which I think is the URL the PM form submits to  it takes me to the PM index instead. However, http://www.arcadewebmasters.com/forum/pm/send take me to the correct page.  Can anyone help me on this?

My forum is at www.arcadewebmasters.com

Thanks
Damn it.  Hrm.  Let me take a look at the code and see what I can find.  I tested this and came up with the same issue, so its not just you.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: thinkarcade on April 03, 2007, 03:03:23 PM
I appreciate it.  This mod is exactly what I was looking for aside from this little setback.  They way I hacked the mod_smf_login was to just use the normal joomla link instead of the SEF one if that helps any.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 03, 2007, 04:30:02 PM
Okay, I'm not sure about your issue with the login module.  If you could post up or pm me what you changed, I'll look into it.  As for the PM issue, I forgot to include the subaction 'send2' in the array when the url is parsed, thus the problem.  I've updated the first post for version 1.4.1.  All you have to do is replace the sef_ext.php file and change the database information again and enable it, and you should be set.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: thinkarcade on April 03, 2007, 06:38:32 PM
Worked like a charm.  Thanks.   
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: thinkarcade on April 03, 2007, 11:01:53 PM
I think I have found another bug when trying to install any packages through the package manager.  Not a problem as I can just bypass the bridge and install the package anyways but I thought I would let you know of the bug.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 04, 2007, 12:15:15 AM
Quote from: thinkarcade on April 03, 2007, 11:01:53 PM
I think I have found another bug when trying to install any packages through the package manager.  Not a problem as I can just bypass the bridge and install the package anyways but I thought I would let you know of the bug.
Could be the same issue, left out a subaction (they were pretty difficult to find and gather), but I'll take a look at it in the morning.  Thanks for the heads up on it. :)

Edit: Yea, thats the issue, just looked real quick.  In your sef_ext file, in the configuration section, look for the custom subactions configuration, and add "upload" (with quotes) between the parenthesis of the array and give it a shot.

Edit: Well apparently when I searched the SMF files for subactions, I forgot the ones with numbers in them, like send2 above.  Upon further searching, I found 24 other subactions that I didn't get the first time around.  I've updated the first post with version 1.4.2 which has 127 sub actions in it now, rather than the 103 it had.  Oye!
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: thinkarcade on April 05, 2007, 09:57:29 AM
Hmmm are you sure you uploaded the right file?  The sef_ext file was just about the same size...only a few bytes bigger and I am still not able to apply any packages.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 05, 2007, 12:59:21 PM
Yea, the sef_ext file thats in the 1.4.2 package is around 300 bytes larger than 1.4.1, which is about right.  When you go to upload a package, does it just take you back to the main package page?  And if so, what does the URL look like?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: thinkarcade on April 05, 2007, 02:29:26 PM
I am trying to install the SMF Trader package. When I hover over the Apply Mod link I can see the URL as http://www.arcadewebmasters.com/forum/packages/install/package/smftrader.zip/ however when I click on it I am just taken back to http://www.arcadewebmasters.com/forum/packages/install/package/
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 05, 2007, 03:28:50 PM
Damn sub actions.  These will haunt me till the day I die... haha. 

the subaction "install2" is missing from the array.  I'll upload a new version :-/ 

Sorry, although I really do appreciate you taking the time to point these things out to me. :)

Edit: I just looked at the SMF Trader code, and to save you some headache, I'll let you know that you'll need to add some subactions to the custom sub action array in the configuration for this mod to work properly.  You'll want to change
      $config['custom_subactions'] = array( );
to
      $config['custom_subactions'] = array( "main", "report", "report2", "submit", "detail", "delete", delete2", "submit2" );

and
      $config['custom_actions'] = array( );
to
      $config['custom_actions'] = array( "trader" );

Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: thinkarcade on April 07, 2007, 12:26:10 AM
Wow thanks for looking in to that mod for me. Is there a simple way you search the files to find the actions and subactions?  There are a few other mods I plan to install.  I installed the RSS feed poster mod and I think I managed to find all the actions and subactions just by trial and error.  If anyone else is interested they are:

action = "feedsadmin"
subactions = "addfeed", "addfeed2", "editfeed", "editfeed2", "admin", "saveset", "delfeed"
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 07, 2007, 06:08:24 AM
Quote from: thinkarcade on April 07, 2007, 12:26:10 AM
Wow thanks for looking in to that mod for me. Is there a simple way you search the files to find the actions and subactions?  There are a few other mods I plan to install.  I installed the RSS feed poster mod and I think I managed to find all the actions and subactions just by trial and error.  If anyone else is interested they are:

action = "feedsadmin"
subactions = "addfeed", "addfeed2", "editfeed", "editfeed2", "admin", "saveset", "delfeed"
I wish there was a simple way.  Actions are easy though, as they're all in the index.php file in your root directory.  Subactions are the challenging ones, but the easiest way is to search for sa= in any mod and see if it has subactions.  Unfortunately, I don't believe there is a way to compile them all without creating a database entry that accumulates them as they parsed.  Maybe I'll look into that..

Edit:  I found around 10 more subactions that I didn't have in the array, and thus have changed the version to 1.4.4.  As for an easy way to find them, I guess there is one that I missed from the get go.  Look in the files in the sources directory.  Most of them that use subactions have a subaction array in which all of the subactions are listed, similar to that of the SMF Trader mod.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: Brakdûr on April 16, 2007, 07:44:37 AM
Hello,

first of all let me thank you for the work you did!
But I have a little problem. First the SEF URls worked fine, but now, I don't know why, I can't login with OPenSEF Urls enable.
Configuration I'm using is:
Joomla 1.0.12
SMF 1.1.2
OpenSEF 2.0.0 RC5
Your latest sef_ext.php 1.4.5 (downloaded it fresh from the side to eliminate errors due to an older php file)
Installation of Joomla is in /, the board is in /Forum/, its´alias is "board".
When I'm trying to log in it leads me to: "http://www.xxxxxx.info/board/login2/", which isn't reachable (404 Not Found)
Any Idea?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 16, 2007, 11:10:51 AM
Quote from: Brakdûr on April 16, 2007, 07:44:37 AM
Hello,

first of all let me thank you for the work you did!
But I have a little problem. First the SEF URls worked fine, but now, I don't know why, I can't login with OPenSEF Urls enable.
Configuration I'm using is:
Joomla 1.0.12
SMF 1.1.2
OpenSEF 2.0.0 RC5
Your latest sef_ext.php 1.4.5 (downloaded it fresh from the side to eliminate errors due to an older php file)
Installation of Joomla is in /, the board is in /Forum/, its´alias is "board".
When I'm trying to log in it leads me to: "http://www.xxxxxx.info/board/login2/", which isn't reachable (404 Not Found)
Any Idea?
I'll look into this.  I just discovered this on my test site, but I can't replicate it on my live site.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: RebeldeLatino on April 16, 2007, 01:13:05 PM
AirRideTalk very thanks for you community work.

(HI all, sorry for my "machine english" i not talk english as native language.)

I'm have installed the "SEF Extension for SMF/Joomla! Bridge and OpenSEF 1.4.5":

Joomla! 1.0.11 Stable
OpenSEF 2.0.0-RC5_SP2
SMF Bridge (Official) 1.1.7
SMF 1.1 RC3

Problem: When i'm activate the "sef_ext" (forum alias in OpenSEF) the "Quote Button" and "Edit in line icon" they ARE BROKEN
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 16, 2007, 06:02:11 PM
Did you read the readme and make the change to smf.php as prescribed?

Can I see a URL?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: RebeldeLatino on April 16, 2007, 09:56:59 PM
I no make changes in SMF.php (is com_smf/smf.php? )

i will to change and post here the result's.

Thanks

Update:

Hooooo very thanks... Sorry i not understand that Orstio bridge is "Official Bridge"...

Thanks!! Good work.... for the moment work excellent.

:D:D
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: aceat64 on April 17, 2007, 04:13:07 AM
I've gotten it to (mostly) work, but I'm also experiencing the issue where users are unable to login. Any attempts to login send you to a page that says "We're sorry but the page you requested could not be found. Error 404". The URL in the address bar is shown as "http://teammaelstrom.com/forums/login2/", but here's where it becomes weird. If you go to "http://teammaelstrom.com/forums/login2/" without submitting a form (no POST data), it shows up perfectly fine! Now if you login from THAT page, it works....  >:(

Oh ya, and if you don't have the redirect for login/logout hard set to forums or front page, you get a nice error that reads:
QuoteThe page you are trying to access does not exist.
Please select a page from the main menu.
The URL is also weird, it's "http://teammaelstrom.com/component/option,com_/Itemid,0/&/" but it does let you login and out!

I just recently figured out what I was doing wrong and got SEF to work on my server, I'd love to be able to use your great sef extension.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 17, 2007, 04:20:05 AM
aceat64 -
The first issue is resolved, not sure why, by going into mod_smf_login.php and removing the hidden form field for 'option'.  I have to do more testing on this, but this resolved the error.  I'm not sure why Orstio has coded those particular hidden values into the login, but again, I'll have to do more testing and research.

As for the second issue.  It is present regardless of if you have this sef_ext.php file or not and you try to login from the home page.  If you login from any other page, login redirect takes you to the page where you came from (assuming thats the option you have setup in the Login module).  Again, I have to look at the code for this to figure it out.  From what I can tell, the return url seems to be run through sefReltoAbs three times before the redirect actually occurs, and I believe that is what is messing it up.

Edit: After some non-extensive testing, here's the change that I made to mod_smf_login.php to get this to work properly...

Change <input type="hidden" name="hash_passwrd" value="" />
<input type="hidden" name="op2" value="login" />
<input type="hidden" name="option" value="com_smf" />
<input type="hidden" name="Itemid" value="', $menu_item['id'], '" />
<input type="hidden" name="action" value="login2" />
<input type="hidden" name="returnurl" value="', $params->get('login'), '" />
<input type="hidden" name="lang" value="', $mosConfig_lang, '" />
<input type="hidden" name="return" value="', $mosConfig_sef=='1' ? sefReltoAbs(basename($_SERVER['PHP_SELF']) . '?' . $_SERVER['QUERY_STRING']) : $mosConfig_live_site . '/' . basename($_SERVER['PHP_SELF']) . '?' . $_SERVER['QUERY_STRING'], '" />
<input type="hidden" name="message" value="', $message_login, '" />


to

<input type="hidden" name="hash_passwrd" value="" />
<input type="hidden" name="op2" value="login" />
<input type="hidden" name="Itemid" value="', $menu_item['id'], '" />
<input type="hidden" name="action" value="login2" />
<input type="hidden" name="returnurl" value="', $params->get('login'), '" />
<input type="hidden" name="lang" value="', $mosConfig_lang, '" />
<input type="hidden" name="return" value="', $mosConfig_sef=='1' ? ($_SERVER['QUERY_STRING'] != '' ? sefReltoAbs(basename($_SERVER['PHP_SELF']) . '?' . $_SERVER['QUERY_STRING']): $mosConfig_live_site) : $mosConfig_live_site . '/' . basename($_SERVER['PHP_SELF']) . '?' . $_SERVER['QUERY_STRING'], '" />
<input type="hidden" name="message" value="', $message_login, '" />


Those two changes allow it to work properly.  I'm not sure if this bugs anything else, as I'll have to do some testing, but that seems to cure at least these two issues.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: aceat64 on April 17, 2007, 04:38:49 AM
AirRideTalk you beat me to it, I was just about to post how commenting out the option line made things automagically work.  :D

Now I guess all that needs to be done is figure out a better way of generating the "return" value.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 17, 2007, 05:04:32 AM
Quote from: aceat64 on April 17, 2007, 04:38:49 AM
AirRideTalk you beat me to it, I was just about to post how commenting out the option line made things automagically work.  :D

Now I guess all that needs to be done is figure out a better way of generating the "return" value.
Check out my edited post above  8)
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: Benson on April 17, 2007, 04:02:41 PM
Good work!  :)

Two problems: If you have a space in a baord name, you can't browse it. E.g. i have a baord called "Testboard 1" - the url generated is /testboard-1, if i click on it i stay on the same page, even the url in the browser changes to the boards name...

Second one: if i want to login via orstio's smf-login-module, i get the joomla 404 error page (the requested url couldn't be found)...

cheers,
Benson
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 17, 2007, 04:39:39 PM
Quote from: Benson on April 17, 2007, 04:02:41 PM
Good work!  :)

Two problems: If you have a space in a baord name, you can't browse it. E.g. i have a baord called "Testboard 1" - the url generated is /testboard-1, if i click on it i stay on the same page, even the url in the browser changes to the boards name...

Second one: if i want to login via orstio's smf-login-module, i get the joomla 404 error page (the requested url couldn't be found)...

cheers,
Benson
Benson, the first issue is due to the way I coded the file to handle board pages.  Rather than suffixing the board name with something like Testboard-1-page-2, it is simply suffixed by a number, so /testboard-1 is going to look for a category or board named Testboard, and go to page 1 on it.  Of course, this won't lead you to the correct place as you found.  With that said, at this time, its not possible for board to end in numbers and use this sef_ext file unless you choose the simple url option.  Perhaps in the next version I can do some checking to test if a valid board is found before testing to see if the url has a page number in it.

Your second issue is resolved a few posts up.  The 'option' hidden form tag needs to be removed from mod_smf_login.php.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: RebeldeLatino on April 17, 2007, 04:41:28 PM
Quote from: aceat64 on April 17, 2007, 04:13:07 AM
I've gotten it to (mostly) work, but I'm also experiencing the issue where users are unable to login. Any attempts to login send you to a page that says "We're sorry but the page you requested could not be found. Error 404". The URL in the address bar is shown as "http://teammaelstrom.com/forums/login2/", but here's where it becomes weird. If you go to "http://teammaelstrom.com/forums/login2/" without submitting a form (no POST data), it shows up perfectly fine! Now if you login from THAT page, it works....  >:(

Oh ya, and if you don't have the redirect for login/logout hard set to forums or front page, you get a nice error that reads:
QuoteThe page you are trying to access does not exist.
Please select a page from the main menu.
The URL is also weird, it's "http://teammaelstrom.com/component/option,com_/Itemid,0/&/" but it does let you login and out!

I just recently figured out what I was doing wrong and got SEF to work on my server, I'd love to be able to use your great sef extension.

I also have exactly such problems.

I'm fixed the "/&" with Redirect in httaccess...

Update!

I am make changes in mod_smf_login.php, and the LOGIN break, in the Forum and Frontpage... redirect me to Frontpage, witout login :S

when i'm remove the <input type="hidden" name="option" value="com_smf" /> the module/mod_smf_login.php, can't login and redirect to homepage url. :(

¿Solution?
I can  FIXED, manipulating ".htaccess" ...  add:
Redirect /component/option,com_/Itemid,0/&/ http://www.YOUR-SERVER.com/YOUR-FORUM-ALIAS

Temporal solution: (Only for Joomla Module, break the forum logins :( )

Change in the "modules/mod_smf_login.php"

change
<form action="', sefReltoAbs($scripturl . 'action=login2'), '"
to
<form action="/(YOUR-FORUM-ALIAS)/index.php?action=login2"
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: aceat64 on April 18, 2007, 12:00:14 AM
Ok, now everything works except the on logout the return URL is still messed up, it's an easy fix though, I used the same code that Matt posted for fixing the login redirect.

Near about line 255 change this:

if ($params->get('logout')=="2")
  $_SESSION['return'] = $mosConfig_sef=='1' ? sefReltoAbs(basename($_SERVER['PHP_SELF']) . '?' . $_SERVER['QUERY_STRING']) : $mosConfig_live_site . '/' . basename($_SERVER['PHP_SELF']) . '?' . $_SERVER['QUERY_STRING'];


To this:

if ($params->get('logout')=="2")
  $_SESSION['return'] = $mosConfig_sef=='1' ? ($_SERVER['QUERY_STRING'] != '' ? sefReltoAbs(basename($_SERVER['PHP_SELF']) . '?' . $_SERVER['QUERY_STRING']): $mosConfig_live_site) : $mosConfig_live_site . '/' . basename($_SERVER['PHP_SELF']) . '?' . $_SERVER['QUERY_STRING'];


That should be the last tweak (for now) that needs to be done, everything else looks like it's working without issue now.  :D
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: RebeldeLatino on April 18, 2007, 01:12:52 AM
aceat64 in modules/mod_smf_login.php ?




My problem is caused by a conflict alias of OpenSEF and my site.

The fix's work fine. Thanks!
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: aceat64 on April 18, 2007, 01:33:46 AM
Quote from: RebeldeLatino on April 18, 2007, 01:12:52 AM
aceat64 in modules/mod_smf_login.php ?




My problem is caused by a conflict alias of OpenSEF and my site.

The fix's work fine. Thanks!

Yes, in modules/mod_smf_login.php, sorry for the confusion.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 18, 2007, 05:32:22 AM
Ok, I'll update to version 1.5 now.  Support was added for those that have numeric suffixes on board names, like Forum 362, or Board 3, etc, etc.  In version 1.4.5 and below, 362 or 3 in the previous examples were treated as page numbers.  Now the extension checks to see if they are valid board names first, and if not then treats the numbers as page numbers.

Also changed is the readme file to reflect changes needed to mod_smf_login.php.  Unless Orstio points out why the corrections outlined here are bad in the long run, I see the need to do them to prevent 404 errors and allow proper redirection upon login and logout.

aceat64 - there is one more change needed around line 332 that you can probably figure out without looking at the readme (same change as what you pointed out above as well).  I tested these three changes to my virgin install of these softwares/components and everything seems to work as advertised and well.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: RebeldeLatino on April 18, 2007, 03:23:36 PM
Matt @ ARTcom:

Very thanks from Latin américa and Argentina. :D

It would be good that rename the zip to "JSMF_sef_ext_v1.5.0.zip".

Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 18, 2007, 04:14:30 PM
Quote from: RebeldeLatino on April 18, 2007, 03:23:36 PM
Matt @ ARTcom:

Very thanks from Latin américa and Argentina. :D

It would be good that rename the zip for "JSMF_sef_ext_v1.5.0.zip".

  • And add the "¡" (sign of admiration of the Castilian), in the smf_ext.php.

  • In Adminstration panel, and save DB backup... the url is not found "http://server.com/(ForumAlias)?data=on&compress=gzip&action=dumpdb&sesc=e9e728de0f3adac1529a71bc6e53928c
Thank you for that last find.  Not sure what you mean by the first comment.  To fix the database backup issue, open up version 1.5.1 (now in the first post) and replace your sef_fix.php file with the one in the zip file and you should be good to go.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: thinkarcade on April 19, 2007, 11:37:17 PM
Not sure if I found another error or not but can anyone else use the collapsible feature on the forum categories?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: RebeldeLatino on April 20, 2007, 04:29:43 AM
Other error:

Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 20, 2007, 06:14:43 AM
Quote from: thinkarcade on April 19, 2007, 11:37:17 PM
Not sure if I found another error or not but can anyone else use the collapsible feature on the forum categories?
haha... [holds gun to own head]... damn sub actions.... add "collapse" and "expand" to the custom subaction array and see what happens... arggggggggggg

And again, I really really really do appreciate you guys helping with this and finding bugs.  At least they are small things that don't crash the forum...

RebeldeLatino... I realize your first issue.  I still have yet to find a way to correct it.  It is because of the issues with the way email messages are parsed by the bridge component and sef urls generated.  It should happen without this extension as well.  I will look over the weekend more indepth at the code for the bridge and see if I can figure out why (or maybe orstio can help?).

For your second issue..... I can't replicate it.  What package are you trying to install?  I have tried uploading and installing zip, tgz, and tar.gz files and all have uploaded and installed without issue.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: adamdidthis on April 20, 2007, 08:02:45 AM
OK I have made all of the changes you specifiy in the readme but everything works except the forum. when i open a thread for the forum it does not form the url correctly and it looks like http://www.mlmotorsport.com/Item.....etc so none of the forum can be read.

any ideas?

And I am using SMF 1.1.2, bridge 1.1.7, OpenSEF 2.0.0-RC5_SP2 and joomla 1.0.12
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 20, 2007, 03:40:52 PM
Quote from: adamdidthis on April 20, 2007, 08:02:45 AM
OK I have made all of the changes you specifiy in the readme but everything works except the forum. when i open a thread for the forum it does not form the url correctly and it looks like http://www.mlmotorsport.com/Item.....etc so none of the forum can be read.

any ideas?

And I am using SMF 1.1.2, bridge 1.1.7, OpenSEF 2.0.0-RC5_SP2 and joomla 1.0.12
What is the alias you have setup in OpenSEF for your forum component?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: adamdidthis on April 23, 2007, 01:11:22 AM
ml_forum
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: adamdidthis on April 23, 2007, 02:18:49 AM
OK upgraded to the latest version of your extension and it now uses the alias, but when you click on a board it takes you to the first thread instead of the board index.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 23, 2007, 04:34:41 AM
Quote from: adamdidthis on April 23, 2007, 02:18:49 AM
OK upgraded to the latest version of your extension and it now uses the alias, but when you click on a board it takes you to the first thread instead of the board index.
Got a link I can see?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: 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.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: 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
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 24, 2007, 04:41:50 AM
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...
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 24, 2007, 04:43:30 AM
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.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: 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", "`", "~", "!", "@",
"#", "$", "%", "^", "&", "*", "(", ")", "-", "_", "=",
"+", "[", "{", "]", "}", ";", ":", "'", ",", "<", ".",
">", "/", "?", "\\", "|");

$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 ***/
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 24, 2007, 05:43:17 AM
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?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: 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
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 24, 2007, 04:18:21 PM
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.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: 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?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 25, 2007, 05:07:41 AM
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?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: adamdidthis on April 25, 2007, 05:18:27 AM
OK i trashed the log and the error isnt appearing any more. but am still having problems with the links being formed.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 28, 2007, 04:47:06 AM
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.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: 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!!
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 29, 2007, 05:21:31 AM
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.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 30, 2007, 12:16:32 AM
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).
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: chadness on April 30, 2007, 10:47:45 AM
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.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: 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?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 30, 2007, 02:20:44 PM
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.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: 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  :'(
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on April 30, 2007, 02:44:23 PM
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.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: 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/
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on May 01, 2007, 03:59:04 AM
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.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: adamdidthis on May 01, 2007, 04:19:43 PM
Thats perfect.

Now all I have to do is wait for your sit mate mod.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: majohnst on May 08, 2007, 03:01:00 PM
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 mysite.com/boards, 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?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: adamdidthis on May 08, 2007, 03:26:14 PM
Set simple to false
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: majohnst on May 08, 2007, 03:50:19 PM
I changed to simple=false, and that didn't do anything.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on May 08, 2007, 03:53:48 PM
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?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: majohnst on May 08, 2007, 04:29:00 PM
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 www.primetimetiki.com (http://www.primetimetiki.com) I made an alias in openSMF to point to the SMF component. This url is http://www.primetimetiki.com/smf-forum/ (http://www.primetimetiki.com/smf-forum/)
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on May 08, 2007, 04:31:55 PM
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.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: majohnst on May 08, 2007, 04:45:30 PM
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.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on May 08, 2007, 05:24:25 PM
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.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on May 09, 2007, 06:53:59 AM
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.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: majohnst on May 09, 2007, 07:28:51 AM
Great! thanks for all your help. You've made a wonderful mod for everyone to use.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: willi1 on May 13, 2007, 05:49:01 AM
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

Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on May 13, 2007, 02:15:25 PM
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.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: 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
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on May 14, 2007, 03:46:38 AM
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...
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: 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
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on May 14, 2007, 01:42:26 PM
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?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: willi1 on May 15, 2007, 01:37:51 PM
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
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on May 15, 2007, 05:08:44 PM
Thats not really a solution, but a workaround, but if you're okay with it, then its fine by me. :)
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: riffster on May 15, 2007, 11:02:18 PM
Hey, how do I get this SEF Extention file ?

The >> Click Here for version 1.5.3 << at the top of this thread seems to have a problem, or am I missing something?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: riffster on May 16, 2007, 09:38:48 PM
I have read the readme and so far everything on my site looks good and friendly with the exeption to this -

1. Logging into SMF from Joomla 404's out with "We're sorry but the page you requested could not be found." Logging out is not a problem from that location

2. The sitemap link when selected shows only the home page of the forum, not the list with the XML link. I was able to replicate this problem on another site too. Any ideas?

http://slidemeister.com/forums

note added: Do I have to make the 1.1.7 Bridge changes to fix this problem? Also, if yes, will this fix the Sitemap XML mentioned problem as well?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on May 16, 2007, 10:02:36 PM
I thought issue 1 was corrected by editing the mod_login as instructed in the readme... I'll take a closer look.

As for the sitemap... in the config section of the extension, you have to add "sitemap" to the custom actions array.  There is a small amount of information in the readme about it.  I really do think that the next version will add some information to the database to keep track of actions and subactions so users don't have to worry about keeping track of them.   But at this point, they have to be added by hand.

Edit:  You edited as I was typing a reply.... yes, you need to make the changes to the bridge specified in the readme.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: riffster on May 16, 2007, 11:55:48 PM
Cool beans. Got the addition of "sitemap" to the custom array and the XML link works now. Thanks.

The 404 login error, just so you know happens here http://slidemeister.com/forums/login2/ from the Joomla SMF login area.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on May 17, 2007, 10:16:50 AM
Quote from: riffster on May 16, 2007, 11:55:48 PM
Cool beans. Got the addition of "sitemap" to the custom array and the XML link works now. Thanks.

The 404 login error, just so you know happens here http://slidemeister.com/forums/login2/ from the Joomla SMF login area.
I just went to your site and signed up, and I logged in and was redirected to the forum as you had setup in the login module.  It worked just as it should have.  I didn't get a 404 error.  It seems you've made all of the changes as directed in the readme and all seems to be working well.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: riffster on May 17, 2007, 10:33:25 AM
I'm good now Matt, I made the login changes and all is well. I see that you were checking. It appears that with the login changes, the site runs a but faster. Anyway, this appears to be an excellent solution to the never ending google indexing problem. Looking forward to good search results. Next for me is to find a urllist solution. Good work, good support - you like dark beer?  :)
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on May 17, 2007, 10:44:41 AM
Its funny you mention urllist.... as I was contemplating adding that in a future release of the sitemap mod (perhaps the next release)....
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: riffster on May 17, 2007, 04:03:29 PM
OK one final question about the XML. After all this, how would you submit your XML sitemap to google? I have tried a few ways to no avail.

-in google site-
site-  .../forums
saved out & uploaded to, submitted .../forums/sitemap.xml?

that doesn't seem to work for me.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on May 17, 2007, 06:38:30 PM
At the bottom of the sitemap there is an XML link... copy that link and submit that link to google in the Google Webmaster tools section.  You cannot use the SEF URL, as google will not accept it because it won't appear to be in the root directory.

This link: http://slidemeister.com/index.php?option=com_smf&Itemid=39&action=sitemap;xml is the one that you need to submit to google.  You don't need to download the xml file or anything.  If you don't have a google account, create one, then look for the webmaster tools section.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: riffster on May 17, 2007, 10:35:53 PM
Thanks Matt. So you're saying that my link that you mentioned needs to be a submitted sitemap under the root (slidemeister.com) not /forums? That does make sense to me as it is a bridged deal. The problem is though is that I currently already have a sitemap submitted for the root that I have been tweaking through OpenSef.

If the only way to submit the forums links is by using the root domain name, then how do you submit the Joomla portion to Google? Because in the mentioned xml file there are no listings for Joomla links, like contacts, downloads, resources, etc. How does one do this in a bridged system? Excuse my ignorance if it's obvious.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on May 17, 2007, 11:00:57 PM
You can submit more than one sitemap to Google's sitemaps in the Google Webmaster tools.  I have two... one for OpenSEF like you, and then the other similar to what is linked above.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: riffster on May 18, 2007, 01:01:30 PM
Thanks again, it submitted nicely.

I was just notified that the topic preview function is not working - I get "fetching preview". It was working before. I can't seem to get the change to the Fix Javascript part of the mod right. Everytime I do it, it my forum displays nothing. Do you think that because I haven't completed this change is the reason I'm getting the "fetching preview" problem? If yes, then can you show me exactly how you join that edit?

Note I have updated all my .js files.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on May 18, 2007, 11:12:46 PM
Did you copy sef_fix.php into the same directory as smf.php and sef_ext.php?  It doesn't look like you did based on the source code on your site.  The fixes that sef_fix.php applies are not showing.  That, and the added code that you need to insert to smf.php are the reason for this.

Post a copy of the function ob_mambofix() from smf.php between [.code] [./code] tags (without the periods) and I'll take a look at where you've tried to add it and I'll see whats wrong.  Be sure to post a copy that you've tried to modify, so I can show you where its wrong, or what the issue is.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: RebeldeLatino on May 29, 2007, 06:54:44 PM
Matt in the SMF Recover Password fuction, the email envoy generate a corrupt link:

"/forum/reminder/setpassword/user_232/code/81bbce708e"
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on May 30, 2007, 05:14:12 AM
I just tested this on my site and on my test install here locally and it worked on both.  How is it corrupt?

In smf.php, copy your function integrate_outgoing_email() here in code tags so I can see it.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: RebeldeLatino on June 03, 2007, 01:07:10 PM
I desactivate the "e-mail verifcation" for new registers... And fix the the error.

But, all SMF send e-mail fuctions gerate corrupts links.. Example "/forum/blablabla"

The links are  they are generated cut and without "http://www."
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on June 03, 2007, 03:00:13 PM
Quote from: Matt @ ARTcom on May 30, 2007, 05:14:12 AMIn smf.php, copy your function integrate_outgoing_email() here in code tags so I can see it.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: RebeldeLatino on June 04, 2007, 02:51:44 AM
Thanks,

Another error? ... The WhoIS/SearchIP fuction not found...
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on June 04, 2007, 06:34:50 AM
RebeldeLatino, again, please post a copy of function integrate_outgoing_email() from smf.php in your Joomla SMF Component folder.

Can you elaborate on the function not being found?
Which version of the extension are you using?
What is the error message if any?
What happens when you try and do a IP search?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: willi1 on June 04, 2007, 09:04:24 AM
Hello Matt,

is this possible to create sef urls in the mod recent topics modul?

you can look on my frontpage here (http://www.alko-hohl.de)

kind regards
willi1
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: RebeldeLatino on June 05, 2007, 08:13:33 AM
Version 1.5.3 -  SMF 1.1 RC3



function integrate_outgoing_email($subject, &$message, $headers)
{
global $boardurl, $mosConfig_live_site, $Itemid, $scripturl, $mosConfig_sef, $modSettings, $Itemid, $hotmail_fix;

//First, we need to set up the email so that ob_mambofix knows what to do with it
$message = str_replace ($scripturl, '"="' . $scripturl, $message);
//Next, let's make sure that URLs with # and . characters don't get mashed up
$message = str_replace ('#new', '"#new', $message);
$message = preg_replace ('/(\.[0-9])/', '"$1', $message);
$message .= '"="';
$message = ob_mambofix($message);
//Now we need to undo those changes so the email looks normal again
$message = str_replace ('"="', ' ', $message);
$message = str_replace ('"#new', '#new', $message);
$message = str_replace ('".', '.', $message);
//This is an email, after all, so let's make sure entities and special characters are text, not HTML
$message = trim($message);
    $message = html_entity_decode($message);
$message = un_htmlspecialchars($message);
//No idea why sefReltoAbs does this, but....
$message = str_replace ('____', '
', $message ); //yes, it looks ridiculous, but it works :P
$message = substr($message, 0, -1);
$hotmail_fix = false;
return true;



The SearchIP now found O.o
But the Collapse-Expand with the sef_ext not found... :S



Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on June 05, 2007, 04:37:51 PM
Ok, change your integrate_outgoing_email() function to this...

function integrate_outgoing_email($subject, &$message, $headers)
{
global $boardurl, $mosConfig_live_site, $Itemid, $scripturl, $mosConfig_sef, $modSettings, $Itemid, $hotmail_fix;

//First, we need to set up the email so that ob_mambofix knows what to do with it
$message = str_replace ($scripturl, '="' . $scripturl, $message);
$message = preg_replace ('/(http.+)(\b)/', '$1"', $message);
$message = ob_mambofix($message);
//Now we need to undo those changes so the email looks normal again
$message = str_replace ('="', '', $message);
$message = preg_replace ('/(http.+)(")/', '$1', $message);
//THis is an email, after all, so let's make sure entities and special characters are text, not HTML
$message = trim($message);
    $message = html_entity_decode($message);
$message = un_htmlspecialchars($message);
$hotmail_fix = false;
return true;
}


Also, are you sure you're using version 1.5.3?  I had forgot to include the collapse and expand options in 1.5.1, and added it 1.5.2 if I remember right.  But as I said in the first post as well, I cannot promise that this will work on any SMF version less than 1.1.2.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: willi1 on June 06, 2007, 01:08:44 AM
Hello Matt,

really great work  :)
can you explain me how can i make friendly urls in the recent topics modul?

i have see it on your site it is great

kind regards
willi1

Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on June 06, 2007, 01:14:06 AM
The module needs to be modified quite a bit... after I get off work tomorrow, I'll package up what I have and host it so you can download it.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: willi1 on June 06, 2007, 01:18:05 AM
thank you very much  :)

I'm very happy

kind regards
willi1
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on June 06, 2007, 04:31:21 PM
willi1 - check out the third one down... http://www.airridetalk.com/component/option,com_doqment/Itemid,58/
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: adamdidthis on June 07, 2007, 12:41:14 AM
Hi Matt,

Have you had any thoughts on intergrating with joomap?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on June 07, 2007, 12:58:10 AM
Haven't yet had a chance to play with it.  I'll try and take a look into it next week sometime.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: willi1 on June 07, 2007, 01:43:30 AM
Hello Matt,

Quotewilli1 - check out the third one down... http://www.airridetalk.com/component/option,com_doqment/Itemid,58/

it works great, thanks a lot for your great work  :)

kind regards

Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: willi1 on June 07, 2007, 01:51:08 PM
Hello Matt,

I have three questions:

1.In the recent topics modul now I miss the "Re:" on  the topics. I don't see the "Re:"




   

2.In the Forum the Info-center "newest Posts"  I click on a link and the link looks like so:

/topicseen/topicseen
http://www.alko-hohl.de/forum/topicseen/topicseen/user-stellen-sich-vor/

3.can you explain me this "hallo-236.msg2481.html#msg2481" what makes the # ?
and this "msg2481" is double is this correct?

sorry for my english, i hope you understand me

kind regards
willi1
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on June 07, 2007, 04:33:09 PM
1) The reason you don't see a 'Re' like in the info center is because this is a recent topics module, not a recent posts module.  Therefore it shows the topic title.  For example, if the last 5 posts were in one thread, you will only have one entry for that thread in the module.

2) That link is how its supposed to look.  If you were to look at a NON-SEF url, it would look something like http://www.myurl.com/index.php?option=com_smf&Itemid=1&topic=236.msg2481&topicseen

In order for the SEF urls to work properly, any single variables in the url, like topicseen above, need to be repeated so the SEF parser picks them up properly.  Its normal.

3)The double is correct.  The #msg2481 tells your browser what message to go to in that specific topic.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: willi1 on June 08, 2007, 02:08:07 AM
Hello Matt,

thank you very much now I understand better.

Is that possible that you can modified the recent posts modul too? I can't becuase I'm a php newbie  ;)

kind regards
willi1
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on June 10, 2007, 05:38:02 AM
I look into it, but it may be another week or so.  I'm moving into a new house this week, and on top of work, its a bit hectic
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: willi1 on June 10, 2007, 08:52:58 AM
Matt, thank yo very much  :)

it's great

kind regards

willi1
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: Benson on June 11, 2007, 02:55:35 PM
Matt, i tested your modules (recent topics and who's online) which are great, but for some reason i'm not able to get a list of users who are online with a link to their profile or with the message icon, i only get the overview how many admins, guests etc are online. I configured the module so seems like there's a problem - or isn't it yet supposed to display a complete list of users who are online?

cheers,
Benson
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on June 11, 2007, 03:05:48 PM
While the option was probably there in the setup of the module, the person that requested it didn't need that option, so i never adjusted the module for it.  The original that Kindred made, it can be found in the FAQ sticky if you need the list of online users.  It doesn't, however, compute the number of each users.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: willi1 on June 30, 2007, 01:42:33 PM
Hello Matt,

have you a lot more of time? to create the recent posts modul? ;-)
and work all with the 1.1.3?

kind regards
willi1
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: webgyrl on July 02, 2007, 09:31:51 AM
Hi Matt,

I was just wondering if you are going to continue to develop this bridge in light of the Joomla fiasco with 3rd party components etc. I'd like to try it, but I just want to know if you are gonna be around... thanks!
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: Kindred on July 02, 2007, 12:40:30 PM
webgyrl,

What matt has done is not a bridge, but an add-in for the OpenSEF component to allow the bridge to work corretcly.

However, I think OpenSEF is leaving Joomla as well.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on July 02, 2007, 01:36:49 PM
If OpenSEF chooses to update to RC6, then I'll make the necessary adjustments if needed.  It may work just fine without any adjustments at all.  If/when a bridge for Joomla 1.5 is released, I've already talked with Orstio about creating a file that will use Joomlas native SEF, which is similar to OpenSEF now.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: Aravot on July 04, 2007, 02:43:17 AM
Don't mean to hijack, but how about sh404SEF (http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,2380/Itemid,35/) support
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on July 04, 2007, 08:55:43 AM
If I have some free time, I'll take a look at it and see what needs to be done for it.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: webgyrl on July 05, 2007, 06:02:15 AM
Quote from: Kindred on July 02, 2007, 12:40:30 PM
webgyrl,

What matt has done is not a bridge, but an add-in for the OpenSEF component to allow the bridge to work corretcly.

However, I think OpenSEF is leaving Joomla as well.


Oh I see!

OpenSEF did leave, but it is now re-named and taken up for production by a new team:
http://joomlacode.org/gf/project/nusef/
It's called nuSEF
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: ormuz on July 10, 2007, 12:51:27 PM
Hi Matt nice work in this!

Can u explain me how can I add this mod with your sef modification?

http://www.simplemachines.org/community/index.php?topic=174132.0
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on July 10, 2007, 03:02:33 PM
Install that mod, then in Profile.template.php, find:

Code (find) Select
<tr><td colspan="2" style="text-align:center;">'.$scripturl.'?referredby='. $context['member']['id'] .'</td>


and replace it with

Code (replace) Select
<tr><td colspan="2" style="text-align:center;"><a href="'.$scripturl.'?referredby='. $context['member']['id'] .'">Right click and copy link/shortcut</a></td>


That should be it from what I can see...

However, because that mod is still in beta testing, I would wait.   I installed on my local test server and funny things started happening.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: ormuz on July 10, 2007, 03:30:14 PM
Thanks for the fast reply!

Ok, that works to the link in the profile page, but I think I have to change the entire $scripturl string in the mod? Otherwise I think the mod just counts the referral Link hits...

Look in the stats... aoposte.com/comunidade


EDIT: Work just fine ;) !


EDIT: Just work by proxy, in normal connections don't work! why?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on July 11, 2007, 04:18:40 AM
Which doesn't work, this or the referral mod?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: ormuz on July 11, 2007, 08:14:38 AM
Matt, your hack is working just fine!

Put mods to work with it, that's the problem man!

For exemple in my case:

If u join in the site by the link community/referredby/ID and then click on the register button, nothing happens... if u use the link community/register/referredby/ID the mod works!

I know this is not the support thread for this, but I think that u are the right guy to help me! If u can take a look on this I will appreciate that! thnks
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: ormuz on July 11, 2007, 08:58:32 PM
Ok, one more question (forget the question above)!

for example: wxw.dot.com/community/notícias don´t work, because that is a no english character, how to correct?

Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: genbilim on December 07, 2007, 09:33:24 PM
Hey Guys,

I have a little problem in the forum for adding trailing slash to URL fragment. I use SMF 1.1 RC2 and joomla 1.08. I also have enabled OpenSEF 2.0.0-RC5_SP2.

OpenSEF work like a charm in any place of mywebsite except SMF Forum. I have Last 10 post module in the home page of the website and it works very well. I also have same module in the forum page, it works fine.

The URL looks like this for modules:

http://www.genbilim.com/forumlar/topic,112.msg3863/#new

Here is the problem:

When I am in the forum page and try to access to a board it gives me this for instance:

http://www.genbilim.com/forumlar/board,1.0

If I can add a trailing slash to URL fragment it will look like this and my problem is going to be solved:

http://www.genbilim.com/forumlar/board,1.0/

I also have exact same problem for accessing topics.

It gives me this:

http://www.genbilim.com/forumlar/topic,3.0

but suppose to be like this:

http://www.genbilim.com/forumlar/topic,3.0/

I hope I explained as clearly as possible.

Main directory for forum is www.genbilim.com/forum but I use it for alias www.genbilim.com/forumlar

By the way I don't have your sef_ext_v1.5.3 modification installed.
My Joomla-SMF Integration version is 1.1 RC1 (joomlahacks.com)

.htaccess file:

## OpenSEF Simplified htaccess File

## Can be commented out if causes errors
Options +FollowSymLinks

## enable mod_rewrite engine
RewriteEngine On

## If Joomla is installed in the web server root
## RewriteBase /
## If Joomla is installed in a sub-directory
## RewriteBase /directory_name_here
RewriteBase /

## Begin 3rd-Party or OpenSEF Section
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]  ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
## End 3rd-Party or OpenSEF Section

## Joomla Security Section (has nothing to do with SEF/SEO)
## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
## End - Rewrite rules to block out some common exploits


Thank You Very Much
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: Orstio on December 08, 2007, 08:11:55 AM
QuoteMy Joomla-SMF Integration version is 1.1 RC1 (joomlahacks.com)

You'll find better support for that at joomlahacks.com.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: Kindred on December 08, 2007, 08:24:24 AM
and you ***REALLY*** need to update both SMF and joomla.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: omidkosari on December 24, 2007, 12:17:28 PM
Dear programmers specially SlammedDime

Is it hard to implement a feature which do the AUTO REDIRECT the old urls to new ones ?

I think this is a good feature  ;D
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on December 25, 2007, 10:50:23 PM
That is a feature you'd need to suggest to the OpenSEF (or whoever they are these days) Developers.  All this does is parse and create SEF urls for SMF/OpenSEF, it does nothing more.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: omidkosari on December 27, 2007, 04:43:51 AM
maybe friends can suggest some htaccess rules to do the AUTOREDIRECT until opensef do this .
i think it is good seo optimization for every sites use this extension.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on December 27, 2007, 03:35:58 PM
It wouldn't be possible to use redirect rules for topics and boards, only for actions, so it really would be pointless.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: pakpenyo on April 12, 2008, 02:47:01 PM
Hi all....

Im use Joomla 1.0.12, SMF 1.1.4, Orstio Brdige 1.1.7 which running in WRAPPED MODE and installed com_opensef_2.0.0-RC5_SP2 at my Joomla. And i change sef_ext for SMF with airRideTalk Mod. I follow step by step tutorial  (readme.html at sef_ext_v1.5.3.zip).  But after use this mod, i've got much error in smf error log:



8: Trying to get property of non-object
File: C:\xampp\htdocs\padhang\administrator\components\com_sef\core\sef.rewriter.php
Line: 219

8: Trying to get property of non-object
File: C:\xampp\htdocs\padhang\administrator\components\com_sef\core\sef.rewriter.php
Line: 187

8: Trying to get property of non-object
File: C:\xampp\htdocs\padhang\administrator\components\com_sef\core\sef.rewriter.php
Line: 184

8: Trying to get property of non-object
File: C:\xampp\htdocs\padhang\administrator\components\com_sef\core\sef.rewriter.php
Line: 124

8: Trying to get property of non-object
File: C:\xampp\htdocs\padhang\components\com_smf\sef_ext.php
Line: 40

8: Trying to get property of non-object
File: C:\xampp\htdocs\padhang\components\com_smf\sef_ext.php
Line: 39

8: Trying to get property of non-object
File: C:\xampp\htdocs\padhang\components\com_smf\sef_ext.php
Line: 38

8: Trying to get property of non-object
File: C:\xampp\htdocs\padhang\components\com_smf\sef_ext.php
Line: 37



And this is my .htaccess file:


##  Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
RewriteEngine On
RewriteBase /padhang

########## Begin - Joomla! core SEF Section
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End - Joomla! core SEF Section

########## Begin - 3rd Party SEF Section
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End - 3rd Party SEF Section

########## Begin - Rewrite rules to block out some common exploits
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits



I also cannot find
$mainframe->addMetaTag( 'robots', 'index, follow' ); which should be commented in /includes/frontend.php in my Joomla! installation.

And i use many set from Orstio and Kindred at
Mambo/Joomla <-> SMF Bridge (Combined Readme) [UPDATED for 1.1.7] link in this forum.

Can you help me?

Thanks a lot and sorry about my english.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: Apllicmz on May 01, 2008, 02:47:05 AM
The page you are trying to access does not exist.
Please select a page from the main menu.
This is from page404.php

WHERE CAN FINDER FILE
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on May 01, 2008, 10:08:08 PM
I no longer off the file as the bridge for Joomla has been discontinued and I no longer use Joomla to support or futher develop it.
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: Apllicmz on May 06, 2008, 12:58:04 AM
thank you
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: kai920 on May 30, 2008, 06:24:37 AM
Quote from: SlammedDime on May 01, 2008, 10:08:08 PM
I no longer off the file as the bridge for Joomla has been discontinued and I no longer use Joomla to support or futher develop it.

Are you still developing this for Mambo?
Title: Re: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF
Post by: SlammedDime on May 30, 2008, 04:11:25 PM
Yes, please see the topic link in my signature.  I'll re-pickup development on it soon.