| Joomla! http://forum.joomla.org/ |
|
| CoreSEF Hack for Joomla 1.0.4 http://forum.joomla.org/viewtopic.php?f=178&t=11428 |
Page 1 of 6 |
| Author: | Predator [ Mon Oct 10, 2005 1:37 pm ] |
| Post subject: | CoreSEF Hack for Joomla 1.0.4 |
CoreSEF Hack for Joomla 1.0.2 As discussed in this thread: http://forum.joomla.org/index.php/topic,427.0.html i'm pleased to announce the Release of an Core Hack to give you extended SEF URLS without using a component for it. The Hack also supports the sef_ext.php files for SEF Advance. Demo: http://www.joomladeveloping.org/ Download here Beware this is a Corehack and not an official Core Addon. Just overwrite the files in your Joomla 1.0.2 installation with the files contained in the zip folder, go to your Global Configuration and change the needed values. This only works if the "normal" Coresef" has worked before. |
|
| Author: | bluesaze [ Mon Oct 10, 2005 1:55 pm ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
wow predator those URLs looks awesome. I gonna give it a shot.
|
|
| Author: | guilliam [ Mon Oct 10, 2005 2:10 pm ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
very great! is this a preliminary for the openSEF project?
|
|
| Author: | bigodines [ Mon Oct 10, 2005 2:42 pm ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
awesome!!! this hack rox |
|
| Author: | Predator [ Mon Oct 10, 2005 3:25 pm ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
guilliam wrote: very great! is this a preliminary for the openSEF project? ![]() We are still waiting for Arto so i made this for my personal amusement
|
|
| Author: | Ottobufonto [ Mon Oct 10, 2005 3:32 pm ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
Wow, that is fantastic. thanks for the hard work. I assume from the title that this hack requires Joomla 1.0.2 and won't work with 1.0.1 and 1.0, right. But you know what kind of questions will be coming next.... - I don't want to have /component/ in the path - Will it work with SEF, Gallery2, Coppermine, and all the other non core components... - lots of whining.... Otto |
|
| Author: | Predator [ Mon Oct 10, 2005 3:42 pm ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
Ottobufonto wrote: Wow, that is fantastic. thanks for the hard work. I assume from the title that this hack requires Joomla 1.0.2 and won't work with 1.0.1 and 1.0, right. It will work with all Versions including Mambo, but for Joomla you have to check the changes in the administrator/components/com_config to make them also available for the lower versions, for Mambo the same with one extra editing: in the includes/sef.php after: Code: // no direct access defined( '_VALID_MOS' ) or die( 'Restricted access' ); You have to add: Code: $database = new database( $mosConfig_host, $mosConfig_user, $mosConfig_password, $mosConfig_db, $mosConfig_dbprefix ); Quote: But you know what kind of questions will be coming next.... - I don't want to have /component/ in the path - Will it work with SEF, Gallery2, Coppermine, and all the other non core components... - lots of whining.... Otto You can change the alias look at the image. The other Components need a sef_ext.php so they also can use this, i'm currently also working on some sef_ext.php i.e. for the SMF, but at least the component developers are in duty to make their components available for SEF URL's ( simple SEF URL's as used in the normal Core SEF file, which is also supported by this hack ) or by creating sef_ext.php for advanced SEF URL's. |
|
| Author: | Ottobufonto [ Mon Oct 10, 2005 3:57 pm ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
thanks Predator. Quote: You can change the alias look at the image. I did, but looking at your test site confused me - i see a URL like this. http://www.joomladeveloping.org/component/contact/ Can I ommit the /component/ part altogether and create a URL like this (my leaving the component alia blank ?) http://www.joomladeveloping.org/contact/ otto |
|
| Author: | Predator [ Mon Oct 10, 2005 5:22 pm ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
Ottobufonto wrote: thanks Predator. Quote: You can change the alias look at the image. I did, but looking at your test site confused me - i see a URL like this. http://www.joomladeveloping.org/component/contact/ Can I ommit the /component/ part altogether and create a URL like this (my leaving the component alia blank ?) http://www.joomladeveloping.org/contact/ otto See what you mean, i have changed it, files are updated so please download again. You can check it on the demosite. |
|
| Author: | scubaguy [ Mon Oct 10, 2005 5:46 pm ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
Great work. Thank you! |
|
| Author: | Ottobufonto [ Mon Oct 10, 2005 6:37 pm ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
loving it.. Thanks for quick reply. |
|
| Author: | Puck [ Mon Oct 10, 2005 9:32 pm ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
Wow, this is great, thanks! This is exactly the functionality Joomla has needed! Trying it out now! Edit: Tried it out. The /blogsection/0.html link ignores the menu's display settings (Leading/Intro/Columns). I have mine set to 4 Leading, 0 Intro, 1 Column and all I get what appears to be 2 columns of 6 entries (they don't appear to be Intros)). Also, when I click it I don't get the Category submenus appearing. |
|
| Author: | scubaguy [ Tue Oct 11, 2005 1:00 am ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
Loading this brought up an error in mamblog for the user name links. To fix it I commented out a couple of lines in the _cleanupString function on line 47 of mamblog's sef_ext.php to look like this: Code: function _cleanupString( $string ) { global $lowercase, $longurl, $url_replace; //$string = strtr( $string, " ", _SEF_SPACE ); //$string = strtr( $string, $url_replace ); $string = $string; if ( $lowercase > 0 ) $string = strtolower( $string ); return $string; } Does anyone have a better solution? It seems to work just fine now. |
|
| Author: | Predator [ Tue Oct 11, 2005 1:14 am ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
scubaguy wrote: Loading this brought up an error in mamblog for the user name links. To fix it I commented out a couple of lines in the _cleanupString function on line 47 of mamblog's sef_ext.php to look like this: Code: function _cleanupString( $string ) { global $lowercase, $longurl, $url_replace; //$string = strtr( $string, " ", _SEF_SPACE ); //$string = strtr( $string, $url_replace ); $string = $string; if ( $lowercase > 0 ) $string = strtolower( $string ); return $string; } Does anyone have a better solution? It seems to work just fine now. Did you tried this way? Code: function _cleanupString( $string ) { global $mosConfig_sef_lowercase, $longurl, $url_replace, $mosConfig_sef_space; $string = strtr( $string, " ", $mosConfig_sef_space ); $string = strtr( $string, $url_replace ); $string = $string; if ($mosConfig_sef_lowercase > 0 ) $string = strtolower( $string ); return $string; } Any other issues found? I guess to make it 100% compatible to the sef_ext.php for SEF Advance i have to rename if a sef_ext.php exist the config values i.e. $lowercase = $mosConfig_sef_lowercase; But only if an sef_ext.php is used. |
|
| Author: | scubaguy [ Tue Oct 11, 2005 1:35 am ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
I changed the function as you suggested and I get the same link errors as before I removed the lines. http://www.mysite.com/%3Cbr%20/%3E%3Cb% ... 0%20strtr():%20The%20second%20argument%20is%20not%20an%20array.%20in%20%3Cb%3E/home/business/public_html/components/com_mamblog/sef_ext.php%3C/b%3E%20on%20line%20%3Cb%3E50%3C/b%3E%3Cbr%20/%3Ehttp://www.mysite.com/component/mamblog/user// |
|
| Author: | Predator [ Tue Oct 11, 2005 1:45 am ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
Did this sef_ext.php file works before with an other SEF component, or is it your first run with this? Well if the deleted lines didn't mess anything up it should be ok, wil check if this an issue of the sef_ext.php or my hack. |
|
| Author: | Predator [ Tue Oct 11, 2005 1:55 am ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
Ah i found this here: http://forum.mamboserver.com/showpost.p ... ostcount=1 there is an issue with the sef_ext.php file. Quote: function _cleanupString( $string ) { global $lowercase, $longurl, $url_replace; $string = strtr( $string, " ", _SEF_SPACE ); //$string = strtr( $string, $url_replace ); <-- this line. if ( $lowercase > 0 ) $string = strtolower( $string ); return $string; } so maybe this should work: Code: function _cleanupString( $string ) {
global $mosConfig_sef_lowercase, $longurl, $url_replace, $mosConfig_sef_space; $string = strtr( $string, " ", $mosConfig_sef_space ); if ($mosConfig_sef_lowercase > 0 ) $string = strtolower( $string ); return $string; } |
|
| Author: | scubaguy [ Tue Oct 11, 2005 3:56 am ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
Thanks again! That did the trick.
|
|
| Author: | Casey Lee [ Tue Oct 11, 2005 5:42 am ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
That's one way to kick in your welcome to the team ![]() Now you gonna owe Emir some serious cash for that one! I'm sure you just won the hearts of many though. great work! THANKS! |
|
| Author: | stingrey [ Tue Oct 11, 2005 5:49 am ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
Predator wrote: Beware this is a Corehack and not an official Core Addon. The reason that Marko states this is a Core Hack is that it will not be the method adopted to extend SEF within the Core in the future. Although this approach enables some flexibility, it is not extensible for 3rd Party Addons and a better method (which we have discussed already with Marko) will be utilised within the core in the future - which will see the introductioon of SEFBot mambots [something that was already in teh pipeline even before Marko's addition to the team]. |
|
| Author: | Predator [ Tue Oct 11, 2005 1:32 pm ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
Puck wrote: Wow, this is great, thanks! This is exactly the functionality Joomla has needed! Trying it out now! Edit: Tried it out. The /blogsection/0.html link ignores the menu's display settings (Leading/Intro/Columns). I have mine set to 4 Leading, 0 Intro, 1 Column and all I get what appears to be 2 columns of 6 entries (they don't appear to be Intros)). Also, when I click it I don't get the Category submenus appearing. Overread your Update, yes i have notice it also now, will check where the issue is and will fixed it, guess this is the last issue which i found also. |
|
| Author: | bluesaze [ Fri Oct 14, 2005 11:46 am ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
Hi predator will this now work for joomla 1.0.3 ? Just did the update and lost the Sef URls
|
|
| Author: | Predator [ Fri Oct 14, 2005 12:04 pm ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
bluesaze wrote: Hi predator will this now work for joomla 1.0.3 ? Just did the update and lost the Sef URlsNew Version for 1.0.3 Download here |
|
| Author: | bluesaze [ Fri Oct 14, 2005 12:06 pm ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
Predator wrote: New Version for 1.0.3 Thanks........must be a headache for you to do this evertime they release a Stablity version |
|
| Author: | Predator [ Fri Oct 14, 2005 12:08 pm ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
bluesaze wrote: Predator wrote: New Version for 1.0.3 Thanks........must be a headache for you to do this evertime they release a Stablity version No not really just toke me 2 minutes to have it Joomla 1.0.3 ready
|
|
| Author: | DeanMarshall [ Sun Oct 16, 2005 12:08 am ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
Hi, Thanks for this - it looks like it will be a marvellous addition to Joomla. In an effort to 'give back' and in the interests of clarity I have made the following observations / recommendations related to the wording of options and explanations on the SEO tab in global config. I hope no-one takes offence, I am aware that many people here don't use English as their primary language and I am in awe of anyone who works in any language other than their own. Cheers Dean Marshall These observations are related to the 1.0.3 version - which I am currently putting through its paces. SEF Mode: Current description: Compact is the known Joomla way of generating URLs. Advanced makes long URLs but maybe cause some performance. The options below are for the advanced mode My amendment: Compact generates URLs using Joomla\'s standard SEF method. Advanced creates human readable URLs but might cause a loss of performance. The remaining options below only apply to the advanced mode Length of URLs?: Current: No Yes Shorter URLs (by title), longer URLs (by name) (No Yes - this doesn't seem the right choice) Short Long - perhaps? Not sure about Shorter = title, longer = name - is this the right way around. (is it the name, or the title alias?) Lower-Case All URLs?: I would reword this option as 'Force lower case URLs?' Home menu URL: Reword question as 'Home URL = / (root)' alias for components: In the alias for components section the 'overlib' descriptions all contain 'do not use underscore of hyphen do avoid confusion. the 'do' should be 'to' - to avoid confusion. |
|
| Author: | Predator [ Sun Oct 16, 2005 11:12 am ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
DeanMarshall wrote: Hi, Thanks for this - it looks like it will be a marvellous addition to Joomla. In an effort to 'give back' and in the interests of clarity I have made the following observations / recommendations related to the wording of options and explanations on the SEO tab in global config. I hope no-one takes offence, I am aware that many people here don't use English as their primary language and I am in awe of anyone who works in any language other than their own. Cheers Dean Marshall These observations are related to the 1.0.3 version - which I am currently putting through its paces. SEF Mode: Current description: Compact is the known Joomla way of generating URLs. Advanced makes long URLs but maybe cause some performance. The options below are for the advanced mode My amendment: Compact generates URLs using Joomla\'s standard SEF method. Advanced creates human readable URLs but might cause a loss of performance. The remaining options below only apply to the advanced mode Length of URLs?: Current: No Yes Shorter URLs (by title), longer URLs (by name) (No Yes - this doesn't seem the right choice) Short Long - perhaps? Not sure about Shorter = title, longer = name - is this the right way around. (is it the name, or the title alias?) Lower-Case All URLs?: I would reword this option as 'Force lower case URLs?' Home menu URL: Reword question as 'Home URL = / (root)' alias for components: In the alias for components section the 'overlib' descriptions all contain 'do not use underscore of hyphen do avoid confusion. the 'do' should be 'to' - to avoid confusion. Thanks for the hint with the overlib descriptions, forgot to change them with short / long it means title and title alias of course will change this to avoid confusion.
|
|
| Author: | hotnuts21 [ Mon Oct 17, 2005 3:20 pm ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
Anywhere I can get a copy of well documented sef_ext.php file? I need to add one to a component im building/testing, and as you know my php is not great. I havent decided if I am going to use the hack, Open sef, advanced SEf or 404sef. Can anyone give a pros and cons list of which works best? |
|
| Author: | scubaguy [ Thu Oct 20, 2005 3:32 pm ] |
| Post subject: | Re: CoreSEF Hack for Joomla 1.0.2 |
There is a problem with the hack and Joomlaboard. When I click on a post to read it I get: An invalid post id was requested. \n With Advanced URLs the link looks like this: http://www.mysite.com/component/option, ... ,2/id,1#1/ and I get the error message. With Simple URLs the link looks exactly the same: http://www.mysite.com/component/option, ... ,2/id,1#1/ but it works as it should. Any ideas or solutions? |
|
| Author: | kenmcd [ Thu Oct 20, 2005 4:58 pm ] |
| Post subject: | sef_ext.php samples |
hotnuts21 wrote: Anywhere I can get a copy of well documented sef_ext.php file? Sample sef_ext.php files: MamBlog 1.0 RC2 sef_ext.php http://opensef.org/component/option,com ... opic,720.0 Bookmarks sef_ext.php http://opensef.org/component/option,com ... opic,699.0 Well documented? - You're funny.
|
|
| Page 1 of 6 | All times are UTC |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|