Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Biology Forums on October 31, 2007, 09:35:32 PM

Title: Advance SEF URLs
Post by: Biology Forums on October 31, 2007, 09:35:32 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=986)

                
Advance SEF URLs 1.2.9
                      
Author:
                   
SleePy
                      
Developer:
                   
Masterd



Thank you for Using Advance SEF URLs
This Mod creates and allows you do do some More SEF Options while using the default SMF SEF Urls.
You can have action urls be SEF Friendly, Page urls (from Tinyportal), and even Single Category urls be SEF friendly.
As well you can also choose to use /? or /index instead of /index.php as your scripturl string.

All options come with a shutoff that you can add to your Settings.php incase enabling one of these options causes  your server to fail. Just add the following to your Settings.php if your site fails to load or work after changing SEF options to disable them.
$disable_sef = true;

Version 1.3.0
! Updated for SMF 1.1.13 SMF 2.0 RC5

Version 1.2.9
! Fixed a bug with double questions when using Question mark URLs

Version 1.2.8
! Updated for SMF 2.0 RC4

Version 1.2.7
! Updated for SMF 2.0 RC3

Version 1.2.6
! Updated for SMF 2.0 RC2

Version 1.2.5
! Updated for SMF 2.0 RC1

Version 1.2.4
! Added support for no file at all (SMF 2.0+)
! Have install attempt to create a ".htaccess" with some code to better allow the SEF url options. (SMF 2.0+)
! Play nicer with debug urls (SMF 2.0+)
! Updated Support for of only SMF 2.0 Beta 4

Version 1.2.3
! Added Support for SMF 2.0 Beta 3 Public
! Dropped Support for old versions of SMF 2.0 Betas

Version 1.2.2
! Added SMF 2.0 Beta 2.1 Support
! Fixed a issue with captcha and SEF urls

Version 1.2.1
! $smfFunc no longer esists.

Version 1.2
! Added 2.0 Beta 2 Support

Version 1.1
! Sometimes redirection caused double questions when using Question mark urls (UNTESTED!)
! Removed orphaned ending operation.

Version 1.0
! Release
Title: Re: Advance SEF Urls
Post by: SleePy on November 02, 2007, 06:26:15 PM
I believe those come from the redirectexit function.
Are you sure that there was no errors while installing?

There is no good configuration really, its just a mater of what you prefer.
Title: Re: Advance SEF Urls
Post by: SleePy on November 02, 2007, 11:25:40 PM
Does it still work? At the moment I lost my test server due to a upgrade on my computer so I can't perform the tests at the moment.

The only thing I can think of is a str_replace is failing in either the QueryString.php where the urls are written or the Subs.php where redirectexit is.
Title: Re: Advance SEF Urls
Post by: SleePy on November 03, 2007, 03:03:02 PM
Can you attach your Subs.php?

Right now I am having issues re-setting up my local test site again as the folder still exists and even my root login or booting off another cd wont delete it. So this is a pain :(

? as the url works on most because apache finds the index file and uses it. Though on some hosts and configurations it wont accept post method correctly so you can't login, posts, etc.
Title: Re: Advance SEF Urls
Post by: SleePy on November 04, 2007, 12:59:42 AM
Lets try this.

Find:
// We send a Refresh header only in special cases because Location looks better. (and is quicker...)

Before that code add this

if(!empty($modSettings['enableUseQuestion']) && empty($disable_sef))
$setLocation = str_replace('??', '?', $setLocation);


that should hopefully fix up the url as I suspect its the redirectactions doing this.
Title: Re: Advance SEF Urls
Post by: SleePy on November 05, 2007, 07:37:23 PM
Cool, Will add that in so it comes in another update of the mod
Title: Re: Advance SEF Urls
Post by: WWMax on November 15, 2007, 02:33:42 AM
After installing I tried to change options to see how it's going to look but for some reason I am uneble to change anything...

I tried disable SEF url's and even uninstall this mod but nothing is happening.

Can it be related to TinyPortal I have installed?

Thanks
Title: Re: Advance SEF Urls
Post by: Smasher on November 15, 2007, 09:18:04 AM
Man is this a headache....

I installed this and decided to click all 5 options on to how the site would look with this... and what absolute craziness...

As soon as I went to go edit a TP article I kept getting thrown to the homepage... so I tried going into the settings and clicking off one of the features to see if it would work without that... then when I click save it will not let me save it... again pops me to the main site page.... next I try to uninstall it... end result is I wind up back at the home page...

Guess this is a good reason to back up everything before you install things.... glad my site is not a live site....

Title: Re: Advance SEF Urls
Post by: Smasher on November 15, 2007, 10:08:30 AM
Quote from: dannbass on November 15, 2007, 09:56:13 AM
But it is very easy to go back to original... just copy the $disable_sef = true; into the settings.php and that should be it... after that go to admin and deselect whatever is the problem and then delete the line from the settings.php upload and enjoy...

The mod works for me and I have TinyPortal installed, is just a matter of getting to know each function and what is best for you.

Hope it helps, this is a great mod!!

Ok I did this and I am now able to get around my site again... which boxes should I not check if I am using TP?

So now that I have this back to normal I go remove that line from settings.php??

and thank you very much....
Title: Re: Advance SEF Urls
Post by: SleePy on November 15, 2007, 12:04:33 PM
Yes you can remove the line if you think you fixed the settings.

Did you choose the option to just do index/ for the urls?
Even though on some servers this works, it doesn't send the post method correctly to submit the pages. I can't figure out why at the moment but its just a thing some servers do.
Title: Re: Advance SEF Urls
Post by: Kleidi on January 20, 2008, 05:14:14 PM
!   D:\Documents and Settings\Administrator\Desktop\AdvanceSEFurls.xml.tar.gz: The archive is corrupt


Can you upload it again , please?
Title: Re: Advance SEF Urls
Post by: SleePy on January 20, 2008, 09:52:27 PM
I will be reuploading this later on tonight since 2.0 beta 2 was released to charter members.
Title: Re: Advance SEF Urls
Post by: SleePy on January 20, 2008, 10:35:27 PM
I have updated this mod now, it should work correctly.
Title: Re: Advance SEF Urls
Post by: digit on January 27, 2008, 07:48:55 AM
GREAT mod.  Thanks!
Title: Re: Advance SEF Urls
Post by: digit on January 27, 2008, 08:35:00 AM
I am using winrules Custom Action mod.  Would it be possible to make the sub-action URL's SEF?
Title: Re: Advance SEF Urls
Post by: SleePy on January 28, 2008, 12:57:49 AM
What do the urls look like?
Title: Re: Advance SEF Urls
Post by: digit on January 28, 2008, 04:35:46 PM
http://mysite.yoursite.com/index.php?action=newsletters;sa=200801
Title: Re: Advance SEF Urls
Post by: SleePy on January 28, 2008, 10:04:52 PM
Well as a dirty fix you can do this:

QueryString.php and Subs.php (same code used in both places).
Find:
    if(!empty($modSettings['enableActionurls']) && empty($disable_sef))
        $sef_urls[] = 'action';


Replace:
    if(!empty($modSettings['enableActionurls']) && empty($disable_sef))
    {
        $sef_urls[] = 'action';
        $sef_urls[] = 'sa';
    }


I will do a proper update of it when another release of SMF occurs :)
Title: Re: Advance SEF Urls
Post by: digit on January 29, 2008, 08:25:59 AM
I actually had to uninstall this - I had QUITE a few people reporting they were getting logged out every 5-7 minutes - any idea why?  >:(
Title: Re: Advance SEF Urls
Post by: SleePy on January 29, 2008, 10:13:14 PM
I never had an issue with this, what are you settings at?
Title: Re: Advance SEF Urls
Post by: digit on January 30, 2008, 02:38:08 PM
Well, now that it's uninstalled, I don't know - it seems like the top and bottom (2 out of the 4) checkboxes were checked.  I am not using tinyportal. I never had a problem, but at least 4 users reported the problem.  :(
Title: Re: Advance SEF Urls
Post by: SleePy on January 30, 2008, 10:27:54 PM
Use index instead of index.php (Doesn't work on all servers, use "$disable_sef = true;" in your Settings.php if enabling this breaks your site)




So this was checked? Not all servers may handle this correctly. Not much can be done about that, its just some setups will work without requireing the file extension. Others may work but anything sent through post files and yet even others just fail with a 404.
Title: Re: Advance SEF Urls
Post by: digit on January 31, 2008, 12:17:48 AM
Quote from: SleePy on January 30, 2008, 10:27:54 PM
Use index instead of index.php (Doesn't work on all servers, use "$disable_sef = true;" in your Settings.php if enabling this breaks your site)




So this was checked? Not all servers may handle this correctly. Not much can be done about that, its just some setups will work without requireing the file extension. Others may work but anything sent through post files and yet even others just fail with a 404.



I WAS using index instead of index.php.  Hmm, odd only SOME users were reporting problems.  It was working great for me.  I will give this a try again in a couple of days.  THANKS!
Title: Re: Advance SEF Urls
Post by: Aileen on April 12, 2008, 08:41:55 PM
 Hi there, any demo for this? thanks
Title: Re: Advance SEF Urls
Post by: SleePy on April 12, 2008, 08:54:38 PM
I run an example at my site.
The default SMF SEF will not do actions, and I have mine to do SEF on actions.
Title: Re: Advance SEF Urls
Post by: digit on May 11, 2008, 07:50:01 AM
I tried installing this again.  THIS time, I had a weird error with PM's...

When composing a new message in the inbox, by clicking on "New Message"....  and trying to enter ANYONE's username, it would autofill the field with MY, the admin's username!

I uninstalled it again.  :(

I suspect it had to do with....



<file name="$themedir/Post.template.php">
<operation>
<search position="replace"><![CDATA[ getXMLDocument("', $scripturl, '?action=quotefast;quote=" + messageid + ";sesc=', $context['session_id'], ';xml", onDocReceived);
else
reqWin("', $scripturl, '?action=quotefast;quote=" + messageid + ";sesc=', $context['session_id'], '", 240, 90);
]]></search>
<add><![CDATA[ getXMLDocument("?action=quotefast;quote=" + messageid + ";sesc=', $context['session_id'], ';xml", onDocReceived);
else
reqWin("?action=quotefast;quote=" + messageid + ";sesc=', $context['session_id'], '", 240, 90);
]]></add>



Title: Re: Advance SEF Urls
Post by: SleePy on May 11, 2008, 11:02:29 AM
Well it shouldn't break that.
That is only on the post template as well. Sending a PM uses its own template.

Was this in SMF 2.0?
I haven't thought about the auto search that it does for the username.
Title: Re: Advance SEF Urls
Post by: mikemikemike on June 04, 2008, 06:15:42 AM
Hi Sleepy,

I have installed advance SEF Urls, i'm very happy with it.
There's one problem with my felblog (blog by feline).
I have install 24 mods and Sef works very good on it, only at on page of felblog there is a problem with the Urls.

When i activate friendly urls ( (?) in sort of index.php) form de mod Advance SEF Urls mij one page of felblog can not reload. When ik click in the felblog adminpage on save (for the settings), my page do nothing, it give not an error too. Its a page to activate a blog (on/off).

When i deactivate the mod mod Advance SEF URLs felblog works correctly.

I don't no what the problem is.

Can you help me?

PS i'm sorry for my english
Title: Re: Advance SEF Urls
Post by: SleePy on June 04, 2008, 09:58:19 PM
Could I have a link to your site? What isn't working though? Just postings?

Its hard to say what could be causing it. This mod actually just changes the way urls are handled. It sounds like felblog doesn't like the urls that are being used.
Title: Re: Advance SEF Urls
Post by: mikemikemike on June 05, 2008, 06:59:16 AM
Hi Sleepy,

Can i send it to an email, for my privacy.
And i wil send you a login code.

Thanx a Lot
Title: Re: Advance SEF Urls
Post by: SleePy on June 05, 2008, 09:58:57 PM
You can send it in a pm.

The creator of Felblog may have more details as well why SEF urls are not playing nicely.
The only thing I could think of is FelBlog may not use the cleanRequest() function in SMF (though it would have to be outside of SMF) and thus isn't getting the url fixes for when SEF urls are detected.
Title: Re: Advance SEF Urls
Post by: mikemikemike on June 06, 2008, 02:45:33 AM
Hi Sleepy,

I have tell the mod maker (felblog) but she says i must ask to you because felblog works on a normal on a normal installation. The treu, but i have tell her that i have 24 mods en it works great with Advance SEF Urls only one felblog page not.

I have send a pm to you, thanx a lot Sleepy for your support.
Title: Re: Advance SEF Urls
Post by: SleePy on June 06, 2008, 10:03:42 PM
Well firefox tells me it enters an infinite loop.

I tried with just the index.php and it worked fine. It did redirect to the main page with just a ? instead of what it should of had.
I don't have the source of felblog to look at it, but for some reason I am assuming its doing a different method of redirecting the user and catching itself in a loop from not being able to detect the url right.
Title: Re: Advance SEF Urls
Post by: mikemikemike on June 06, 2008, 11:47:01 PM
Hai Sleepy,

I have look in Firefox too. When i fill in an index.php instead of ? he brings me to the homepage of my site. Normaly it must redirect me tot the same page with the new settings.

I have send you in the PM a link for a download file of the page (source).
I hope so you can find what the problem is.

It's very strange when i deactivate te URLs mod it work normal, en when i activate it it works not (link is not correct).

I hope so you can fix it.. im asking a lot of people for help with it and nobody can't find the problem.

Title: Re: Advance SEF Urls
Post by: webdzinez on July 22, 2008, 12:14:19 PM
I enabled this mod .. but dont see any change anywhere? Does it include new settings ?

I do see some checkboxes below Search Engine Friendly URL setting ... but all of them are blank ... no text to show what they stand for.
Title: Re: Advance SEF Urls
Post by: SleePy on July 23, 2008, 03:49:38 AM
If they are blank (meaning no descriptions to the strings) then that most likely means that you are using a non English language.

You would need to enable the settings after you have their descriptions. This won't change anything until the settings are enabled (to help prevent issues incase a setting breaks the forum from working)
Title: Re: Advance SEF Urls
Post by: webdzinez on July 23, 2008, 04:00:58 AM
But I am using English - http://openalternatives.org/forums/
I double checked the default language available to my board is only English.
Title: Re: Advance SEF Urls
Post by: SleePy on July 23, 2008, 04:09:32 AM
Are you using UTF-8?
Title: Re: Advance SEF Urls
Post by: webdzinez on July 23, 2008, 08:53:05 AM
yes ... I am using UTF-8 ....
Title: Re: Advance SEF Urls
Post by: SleePy on July 24, 2008, 12:25:16 AM
You will need to copy the language strings it added into Modification.english.php to Modifications.english-utf8.php.
These file are located in /Themes/default/languages
Title: Re: Advance SEF Urls
Post by: Voltaic Shock on August 05, 2008, 02:32:14 PM
I am getting this while trying to install this mod:

2.     Execute Modification     .\Sources/QueryString.php     Test failed
Title: Re: Advance SEF Urls
Post by: SleePy on August 05, 2008, 05:00:38 PM
Do you have any other mods installed?
Title: Re: Advance SEF Urls
Post by: shelzmike on August 07, 2008, 11:16:27 PM
I am admin of the site with Voltaic Shock, and yes we have other mods installed:

AdSense Section Targeting Mod 1.0 
Ad Managment 2.3     
Auto Embed Video/Audio Clips 3.1.2     
Avatars at Index Mod 1.5   
cbi, 1.0 1.0     
Clickable Avatars 1.0.1   
Contact Page 1.1   
Expand Pages Mod 1.0 
Google Tagged 1.4     
View Single PM 1.3     
TinyPortal 1.052   
Ultimate Profile 0.8.5   

I wish it would actually tell me WHY the error happens. Thanks for the help!

Mike

Title: Re: Advance SEF Urls
Post by: SleePy on August 08, 2008, 01:35:36 AM
Hmm, I can't find the "Ultimate Profile" mod.. Is it under a different name on the mod site or is not released there?

It may be easier if you attached your QueryString.php though. That would tell me what is up exactly.
Title: Re: Advance SEF Urls
Post by: digit on August 08, 2008, 01:45:00 AM
Quote from: SleePy on August 08, 2008, 01:35:36 AM
Hmm, I can't find the "Ultimate Profile" mod.. Is it under a different name on the mod site or is not released there?

It may be easier if you attached your QueryString.php though. That would tell me what is up exactly.

http://www.simplemachines.org/community/index.php?topic=183574.0
Title: Re: Advance SEF Urls
Post by: SleePy on August 08, 2008, 01:54:09 AM
That would explain why I couldn't find it :P
I didn't see that mod editing the QueryString.php

Could you attach your QueryString.php? I will take a look at it and compare it to what my mod is wanting to edit and see if something is different.
Title: Re: Advance SEF Urls
Post by: shelzmike on August 08, 2008, 09:33:16 AM
Sure. The only thing I could think of is that not too long ago we had installed another mod that was supposed to do something with the URLs (do not remember what it was called offhand). It dudn't work, so I uninstalled it.

Here is the QueryString.php
Title: Re: Advance SEF Urls
Post by: SleePy on August 08, 2008, 02:30:36 PM
Give this one a try:
There was some code in there preventing it from finding it what it needed. Most likely in relation to the mod you said was supposed to change stuff with the urls.
Title: Re: Advance SEF Urls
Post by: shelzmike on August 08, 2008, 02:39:41 PM
So should I replace the old file with this one, and THEN install the mod? I am assuming so, but just wanted to be sure.

Mike
Title: Re: Advance SEF Urls
Post by: SleePy on August 08, 2008, 02:46:11 PM
Yes,
I removed the changes and it should now pass the test for QueryString.php if you replace this file :)
Title: Re: Advance SEF Urls
Post by: shelzmike on August 09, 2008, 12:10:07 AM
Well, I tried it and I still get package error on the same file. I will double check the permissions. Also, I noticed that there is a temp ~QueryString.php which probably means it is working off of that file since it has been open since 8/1. I am guessing I may need to reset the forum? Not sure how to do this. I am secondary admin and the main admin who owns the site has it hosted on GoDaddy. I would know how to restart it if it were on my box, so it is no, so therefore I need to figure out what to do there.

Thanks again for the help.

Mike
Title: Re: Advance SEF Urls
Post by: SleePy on August 09, 2008, 12:22:26 PM
This one work?
Title: Re: Advance SEF Urls
Post by: shelzmike on August 09, 2008, 12:54:32 PM
I won't have time this weekend, but will try it on Monday and report the results.

Mike
Title: Re: Advance SEF Urls
Post by: OfficeDude on August 29, 2008, 03:29:21 PM
The automatic install doesn't include the Theme I'm using, it just updates the default theme.  Any idea on what I can do to ensure it updates my theme?  Thanks.
Title: Re: Advance SEF Urls
Post by: SleePy on August 30, 2008, 01:41:53 AM
Does your custom theme have a Post.template.php?
I don't think very many themes do, but if it does, then you just need to apply the edits manually.

These edits in the Post.template.php just fix issues with clicking insert quote to quote somebody from the topic summary.
Title: Re: Advance SEF Urls
Post by: TechPrince on October 20, 2008, 08:54:48 AM
After enabling the Advance SEF URLs, the relative paths of css images becomes invalid.

If Image is linked to an image in a folder in which css resides then the baord produces 404 Errors considering image path is on the root directory.

Ex.
url(images/abc.jpg)

Will Produce 404 Error
File not found (http://boardname/images/abc.jpg)

Where the original path is "http://boardname/themename/images/abc.jpg"

How can we solve this relative path problem?
Title: Re: Advance SEF Urls
Post by: SleePy on October 23, 2008, 11:48:52 AM
What settings do you have? Are you using a subdomain?
This only modifies SMF, so it can be possible some urls can break if they are not correctly linked.

How did you setup your .htaccess for the urls if you are using things like no index.php at all?
Title: Re: Advance SEF Urls
Post by: TechPrince on October 24, 2008, 05:21:22 AM
Just by enabling the the action and subaction SEF urls, some image links brakes.
By disabling it no 404 errors. The CSS files are located in themes directory and after enabling SEF Urls, that path becomes invalid and the image path becomes like this "sitename/images" or "sitename/imagefilename" producing 404 errors.

No i am not using subdomain.

default .htaccess file. No changes made.
Title: Re: Advance SEF Urls
Post by: SleePy on October 24, 2008, 05:46:46 PM
Can I have a link to your site?
Title: Re: Advance SEF Urls
Post by: TechPrince on November 02, 2008, 05:51:52 AM
The problems are in linked images. Those images are without scripturl.
Title: Re: Advance SEF Urls
Post by: che1959 on November 17, 2008, 09:14:29 AM
This mod sucks, or at the very least the documentation sucks. How can I say that? Well, I installed the mod on my board and there is no trace of where I can access the options. I can't even say that the mod even works because nothing changed when I installed it and after installing it, I can't even find a trace of it ANYWHERE in the menus.

If you are going to make a mod, at least give the link to the control panel to it so that users don't have to spend 30 minutes(as I did) trying to find a seemingly non existent panel.
Title: Re: Advance SEF Urls
Post by: SleePy on November 17, 2008, 07:42:30 PM
Did you find the menu?

In 1.1 and 2.0 it is in Features and Options. Although for 2.0, I really should move it do the modifications section :P
It does not enable things by default, incase your host doesn't support any of the settings, I wouldn't want to break your forum on installtion of this mod. ;)
Title: Re: Advance SEF Urls
Post by: uncajesse on November 28, 2008, 05:05:42 AM
Quote from: SleePy on November 17, 2008, 07:42:30 PM
Did you find the menu?

In 1.1 and 2.0 it is in Features and Options. Although for 2.0, I really should move it do the modifications section :P
It does not enable things by default, incase your host doesn't support any of the settings, I wouldn't want to break your forum on installtion of this mod. ;)

I installed it just now too, 2.0 Beta 4, and it's not anywhere in Features & Options section.
@_o
And yes, test installation came up OK, no errors.
Title: Re: Advance SEF Urls
Post by: SleePy on November 29, 2008, 11:55:12 AM
Hmm, its installing into the Security and moderation settings on 2.0..

I will need to find time to look into that and fix it.
Title: Re: Advance SEF Urls
Post by: crishicks on November 30, 2008, 01:31:30 PM
After installing the mod , there were no changes made to my Querystring.php .
If I enable the mod I do not get the search friendly urls . I get this

http://www.tattootutorials.com/index.php/board,1.0.html

What do I need to do to my querystring.php file . I tried to follow the manual install instr. but I cant find the code you tell me to look for in the file.
Need some help. Should be a good mod once I get it up .
Title: Re: Advance SEF Urls
Post by: crishicks on November 30, 2008, 01:32:54 PM
BTW using TinyPortal and SMF 1.1.7
Title: Re: Advance SEF Urls
Post by: SleePy on December 01, 2008, 08:15:16 AM
Quote from: crishicks on November 30, 2008, 01:31:30 PM
After installing the mod , there were no changes made to my Querystring.php .
If I enable the mod I do not get the search friendly urls . I get this

http://www.tattootutorials.com/index.php/board,1.0.html

What do I need to do to my querystring.php file . I tried to follow the manual install instr. but I cant find the code you tell me to look for in the file.
Need some help. Should be a good mod once I get it up .

That is working then.
This is how SMF does SEF urls and this just alters some things that on some servers may operate such as removing the index.php totally.
Title: Re: Advance SEF Urls
Post by: uncajesse on January 03, 2009, 09:59:23 PM
another cool option would be to decide what index.php is replaced with.  like, something besides a question mark which isn't the most SEO friendly.

A period would work nicely.  Anyways, nice mod.  I've put it onto a few friend's forums already.
Title: Re: Advance SEF Urls
Post by: SleePy on January 04, 2009, 05:14:25 PM
That easily could be done in the code, but as far as making it work is a little more trickier. The server would need to know that name is to actual to go to the index.php.

In which cases, you could even remove the index.php totally if you modify your .htaccess (Only for apache servers) to know to redirect everything that doesn't exist as a file/folder to index.php.

Title: Re: Advance SEF Urls
Post by: apadong.net on February 01, 2009, 07:44:33 PM
i've tried to install this mod to my forum, but nothing hapened.

i use smf 1.1.7 with my own theme and latest tinyportal installed. but even i've changed into  the default one with english language it's still no different. where's the setting menu?
Title: Re: Advance SEF Urls
Post by: SleePy on February 02, 2009, 11:50:24 PM
In Admin -> Features and Options
Title: Re: Advance SEF Urls
Post by: F4r4Zm0In on February 22, 2009, 05:48:51 AM
I am using 2.0 RC1, failed to find the settings for this mod

Tried searching it everywhere (also in admin>features & options)

What's the path to settings ?
Title: Re: Advance SEF Urls
Post by: baijianpeng on March 07, 2009, 10:50:05 AM
I tested this Advanced SEF URLs Mod today with my SMF 2.0 RC1 installation on localhost testing server. It worked very well!

Thanks to the author!

I have several suggestions to improve this Mod, could you please consider to :

1)  copy a .htaccess file if there is no one

By default, SMF does NOT has a .htaccess file in the root folder. Since this Mod needs such a file to work, why not just put it in the package and copy it to the root when installing this Mod?

2) strip the action part from the URL

For example, this Mod may generate URLs containing the word action, why not just strip it out?

3)use dash instead of the comma in the URLs

When enable this Mod and choose to hide index.php, the default topic in SMF has a following URL:

http://localhost/smf2/topic,1.0.html

How about change the comma in the URL to a dash? Such as:

http://localhost/smf2/topic-1.0.html

If someone like the comma more, can you give us an option in the settings page to choose dash?

Thanks.
Title: Re: Advance SEF Urls
Post by: Roke on March 10, 2009, 03:41:57 PM
Hi there,
I just installed the mod and tried the different options. Result is, that I can't access my Forum anymore. I managed to get to the start page. From there I receive only 404 errors. I just read something about a .htaccess file which is needed but not part of the mod. Would that do the trick?
Here is the link, if it helps to help me:
http://5-elemente.org/Forum/index
Thanks
Roger
Title: Re: Advance SEF Urls
Post by: CreatorFFM on March 11, 2009, 02:09:15 PM
Hi Roke,
Just add this line:
$disable_sef = true;
to your "Settings.php" in your forum root directory. Then you will have access again. ;)

Cheers
Dave
Title: Re: Advance SEF Urls
Post by: Roke on March 11, 2009, 02:47:13 PM
Thanks Dave! You made my day...
Title: Re: Advance SEF Urls
Post by: BuxarNET on April 01, 2009, 06:31:34 PM
Than this mod differs from Pretty URLs ?
And what is better?
Excuse for my English
Title: Re: Advance SEF Urls
Post by: .Vapor on June 01, 2009, 10:16:46 AM
Sleepy, compatible with 1.1.9 ?

Ahh...wth...i will see if i can go break my forums and let you know.
Title: Re: Advance SEF Urls
Post by: .Vapor on June 01, 2009, 10:30:20 AM
SMF Version 1.1.9
TP Version 1.0 Beta 4

I get this at install:

1.     Execute Modification     ./Sources/ModSettings.php     Test successful
2.    Execute Modification    ./Sources/QueryString.php    Test failed
3.    Execute Modification    ./Sources/Subs.php    Test successful
4.    Execute Modification    ./Themes/default/Post.template.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/Modifications.english_utf8.php    Skipping file
Title: Re: Advance SEF Urls
Post by: feras80 on June 16, 2009, 10:52:26 PM
Hello
am running SMF 2.0 RC1-1. it looks like the latest version of advanced SEF is compatible with my current SMF installation. however, i got the following error while trying to install it:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
any suggestions?
thank you
Fred
Title: Re: Advance SEF Urls
Post by: SleePy on August 22, 2009, 12:13:35 PM
V@PO,
Do you have any other mods installed?

feras80,
Have you tried to use version emulation? I haven't updated my mods to say 2.0 RC1.2 in them yet, although they should support those versions.
                        
Title: Re: Advance SEF Urls
Post by: Guldstrand on September 25, 2009, 08:03:30 PM
Will this work with SMF 1.1.10?
Title: Re: Advance SEF Urls
Post by: digit on September 27, 2009, 04:02:34 PM
I just installed it with 1.1.10 - no problems...  although I had to add $disable_sef = true; to my Settings.php file.

Thanks Sleepy.  8)
Title: Re: Advance SEF Urls
Post by: Guldstrand on September 27, 2009, 04:48:15 PM
Quote from: digit on September 27, 2009, 04:02:34 PM
I just installed it with 1.1.10 - no problems...  although I had to add $disable_sef = true; to my Settings.php file.

Thanks Sleepy.  8)
Great! Good to know.
Thanks for your reply.
Title: Re: Advance SEF Urls
Post by: sneakers on October 23, 2009, 08:38:52 PM
I use 1.1.10, during installation is error:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

help me. :(

Title: Re: Advance SEF Urls
Post by: by rallier on December 12, 2009, 06:17:36 AM
i installed this mod.and i enabled advanced sef url.But not active ?
forum.stylemo.net ? only working "Nothing instead of index.php "
i want to topic.html category/topic/ etc.
Title: Re: Advance SEF Urls
Post by: purnenduchauhan on January 10, 2010, 01:49:02 PM
installed it...

It skipped two file during insstallation.

added the code to settings.php.

But no results

Any help please
Title: Re: Advance SEF Urls
Post by: Afro on January 21, 2010, 02:01:26 PM
is this mod still supported ?
Title: Re: Advance SEF Urls
Post by: EricTheRed on February 12, 2010, 12:37:51 AM
Mine failed on ManageSettings.php. Any ideas?
Title: Re: Advance SEF Urls
Post by: Fisch.666 on April 28, 2010, 06:23:34 PM
Hi!

First thanks for this mod, works without a problem at my 2.0 rc3 forum. The only problem is, that now submitting scores into smf arcade won't work. Are there any chances to disable sef for the arcade pages?

Thanks in advance for a reply.
Title: Re: Advance SEF Urls
Post by: ken123 on May 02, 2010, 04:25:50 PM
How is this mod different from Pretty Urls?
Title: Re: Advance SEF Urls
Post by: Arantor on May 02, 2010, 05:20:22 PM
This mod is nothing like Pretty URLs, it just changes the in-built SMF one to use a slightly different format. If you want the URL to include topic names or whatever, you'll need Pretty URLs or SimpleSEF.
Title: Re: Advance SEF Urls
Post by: Raffoz on May 06, 2010, 04:08:06 AM
it gives me error in installation...
ichecked the code and i found that the package searches for this code
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?(?:' . SID . '(?:;|&|&amp;))((?:board|topic)=[^#]+?)(#[^"]*?)?$/e', "\$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2?' . SID", $setLocation);
else
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?$/e', "\$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2'", $setLocation);


but in the original file the code is
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?(?:' . SID . '(?:;|&|&amp;))((?:board|topic|page)=[^#]+?)(#[^"]*?)?$/e', "\$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2?' . SID", $setLocation);
else
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic|page)=[^#"]+?)(#[^"]*?)?$/e', "\$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2'", $setLocation);


i noticed that in the original one there's a "|page" more...
what i have to do? why i have that "page"... is a bug odf the mod or something different?

thanks to anyone!!!
Title: Re: Advance SEF Urls
Post by: Arantor on May 06, 2010, 04:08:46 AM
No, you have a mod that affects URL handling, a pages or portal mod perhaps.
Title: Re: Advance SEF Urls
Post by: Raffoz on May 08, 2010, 01:05:08 PM
Quote from: Arantor on May 06, 2010, 04:08:46 AM
No, you have a mod that affects URL handling, a pages or portal mod perhaps.

yes, it's simpleportal... :)

so if i preserve the |page should all work, isn't it?
Title: Re: Advance SEF Urls
Post by: Arantor on May 08, 2010, 01:55:35 PM
Yes, it should.
Title: Re: Advance SEF Urls
Post by: Apllicmz on May 15, 2010, 06:34:13 AM
when update dont forget
Portuguese

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['enableActionurls'] = 'Activar Ac&ccedil;&atilde;o SEF URLS';
$txt['enableSubActionurls'] = 'Activar Sub Ac&ccedil;&atilde;o SEF URLS';
$txt['enableCurls'] = 'Activar Categoria SEF URLS (Para a categoria Single Mod)';
$txt['enablePageurls'] = 'Activar P&aacute;gina SEF URLS (Para P&aacute;ginas Tinyportal)';
$txt['enableUseQuestion'] = 'Use um ponto de interroga&ccedil;&atilde;o (?) Ao inv&eacute;s de index.php';
$txt['enableNoIndex'] = 'Use o &iacute;ndice em vez de index.php <span class="smalltext">(N&atilde;o funciona em todos os servidores, use "$disable_sef = true;" em seu Settings.php permitindo que este se rompe seu site)</span>';
$txt['enableNoFile'] = 'Use Nada em vez de index.php <span class="smalltext">(N&atilde;o funciona em todos os servidores, use "$disable_sef = true;" em seu Settings.php se aceitar vaie romper o seu site)</span>';
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['enableActionurls'] = 'Activar Ac&ccedil;&atilde;o SEF URLS';
$txt['enableSubActionurls'] = 'Activar Sub Ac&ccedil;&atilde;o SEF URLS';
$txt['enableCurls'] = 'Activar Categoria SEF URLS (Para a categoria Single Mod)';
$txt['enablePageurls'] = 'Activar P&aacute;gina SEF URLS (Para P&aacute;ginas Tinyportal)';
$txt['enableUseQuestion'] = 'Use um ponto de interroga&ccedil;&atilde;o (?) Ao inv&eacute;s de index.php';
$txt['enableNoIndex'] = 'Use o &iacute;ndice em vez de index.php <span class="smalltext">(N&atilde;o funciona em todos os servidores, use "$disable_sef = true;" em seu Settings.php permitindo que este se rompe seu site)</span>';
$txt['enableNoFile'] = 'Use Nada em vez de index.php <span class="smalltext">(N&atilde;o funciona em todos os servidores, use "$disable_sef = true;" em seu Settings.php se aceitar vaie romper o seu site)</span>';
]]></add>
        </operation>
    </file>
Title: Re: Advance SEF Urls
Post by: aakashif on July 19, 2010, 08:05:52 AM
I cannot login to my forum as admin.
I keep getting thrown to the home page.

Tried disable_sef thing.
Still nothing, please help quick.
Title: Re: Advance SEF Urls
Post by: Astral God on August 21, 2010, 08:02:08 AM
Hello.

Sorry about this question, but this mod displays the URLs like this ?

/the-category-tittle/the-topic-tittle-512.0.html

or

/index.php/topic,2.0.html
Title: Re: Advance SEF URLs
Post by: Masterd on December 15, 2010, 02:45:18 PM
Version 1.2.9 is released!

Bug with double questions is finally fixed! 
Title: Re: Advance SEF URLs
Post by: briggz5d on January 21, 2011, 07:16:55 AM
I installed this mod on my 1.1.12 - English - the options didn't show, just check boxes. checked the last box and..that was my greatest nightmare lol. took me bout an hour to figure out the settings.php reset thing. I was sooo pissed. and u guys know what down time does to forums tryin to grow.

anyways.. i think this mod has way too many issues to be tried by Noobs like me. a warning sign should be showed.. other mods that mess up my site gives me the option of theme reset. this mode hmm. think i'll test the tiny or pretty url mods. Keep up the good work and let me know when it works without Hitches lol
Title: Re: Advance SEF URLs
Post by: Masterd on January 21, 2011, 11:25:10 AM
Well, this mod won't work on every server. But, as you found out, you can easily disable it with $disable_sef = true;. Also, did you checked the language strings?   
Title: Re: Advance SEF URLs
Post by: impreza on January 21, 2011, 12:54:07 PM
An interesting add-on, works ok
Title: Re: Advance SEF URLs
Post by: Masterd on February 12, 2011, 07:13:19 AM
Updated for SMF 1.1.13 and SMF 2.0 RC5!
Title: Re: Advance SEF URLs
Post by: fr3aker on February 12, 2011, 10:07:04 AM
thanks for this mod, i really like it :)

but seems the update hasnt been uploaded correctly (obviously caused by the server performance issues). Would be nice to get this fixed.
Title: Re: Advance SEF URLs
Post by: Masterd on February 12, 2011, 10:46:05 AM
I know that. This site is under low level DDOS attack for some time and in that moment I was unable to upload the package. It's fixed now. I'm glad because you like this mod.
Title: Re: Advance SEF URLs
Post by: Apllicmz on May 31, 2011, 11:23:41 PM
thank you
when make Update plaese dont forget portuguese linguage files

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['enableActionurls'] = 'Activar A&ccedil;&atilde;o do SEF URLS';
$txt['enableSubActionurls'] = 'Activar sub A&ccedil;&atilde;o do SEF URLS';
$txt['enableCurls'] = 'Activar a Categoria do SEF URLS (Para a &uacute;nica categoria do Mod)';
$txt['enablePageurls'] = 'Activar a P&aacute;gina do SEF URLS (Em P&aacute;ginas do TinyPortal)';
$txt['enableUseQuestion'] = 'Use um ponto de interroga&ccedil;&atilde;o (?) Em vez de index.php';
$txt['enableNoIndex'] = 'Usar &iacute;ndice em vez do index.php <span class="smalltext">(N&atilde;o funciona em todos os servidores, o uso "$disable_sef = true;" no seu Settings.php Se activar quebrara o seu site)</span>';
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['enableActionurls'] = 'Activar A&ccedil;&atilde;o do SEF URLS';
$txt['enableSubActionurls'] = 'Activar sub A&ccedil;&atilde;o do SEF URLS';
$txt['enableCurls'] = 'Activar a Categoria do SEF URLS (Para a &uacute;nica categoria do Mod)';
$txt['enablePageurls'] = 'Activar a P&aacute;gina do SEF URLS (Em P&aacute;ginas do TinyPortal)';
$txt['enableUseQuestion'] = 'Use um ponto de interroga&ccedil;&atilde;o (?) Em vez de index.php';
$txt['enableNoIndex'] = 'Usar &iacute;ndice em vez do index.php <span class="smalltext">(N&atilde;o funciona em todos os servidores, o uso "$disable_sef = true;" no seu Settings.php Se activar quebrara o seu site)</span>';
]]></add>
        </operation>
    </file>

Title: Re: Advance SEF URLs
Post by: Masterd on June 01, 2011, 06:44:47 AM
Thanks, I will add it.
Title: Re: Advance SEF URLs
Post by: More-to-life on July 16, 2011, 12:35:37 PM
Hi

Any updates due soon for SMF 2.0 Gold?

Thanks
Title: Re: Advance SEF URLs
Post by: Masterd on July 18, 2011, 12:57:30 PM
Sorry, I was on vacation. I will do it as soon as possible. But it should work with version emulation.
Title: Re: Advance SEF URLs
Post by: PatrickForum on May 24, 2012, 09:01:31 AM
We tried to install this "advanced SEF URLs" SEO mod on our SMF forum. At the testing proces, we got an error that SMF was unable to replace this:

global $board, $topic, $boardurl, $scripturl, $modSettings, $smcFunc;

with this:

global $board, $topic, $boardurl, $scripturl, $modSettings, $smcFunc, $disable_sef;
   

We thought that this was not an huge issue and can do it ourselfs, so we proceed with installation.

After the mod was installed, we tried to find the code in the /sources/QueryString.php file, but couldn't find the code.

What can we do to install or replace the above code?
Title: Re: Advance SEF URLs
Post by: Biology Forums on May 24, 2012, 10:01:34 AM
Quote from: PatrickForum on May 24, 2012, 09:01:31 AM
We tried to install this "advanced SEF URLs" SEO mod on our SMF forum. At the testing proces, we got an error that SMF was unable to replace this:

global $board, $topic, $boardurl, $scripturl, $modSettings, $smcFunc;

with this:

global $board, $topic, $boardurl, $scripturl, $modSettings, $smcFunc, $disable_sef;
   

We thought that this was not an huge issue and can do it ourselfs, so we proceed with installation.

After the mod was installed, we tried to find the code in the /sources/QueryString.php file, but couldn't find the code.

What can we do to install or replace the above code?

Is your forum down as a result of this?
Title: Re: Advance SEF URLs
Post by: bukharifaran on October 19, 2012, 11:54:09 AM
Hi,

I have installed this mod. But it did't worked for me. I have 2.0 version of SMF. By clicking the last option of show nothing in place of index.php my forum goes down. i unchecked that option, but no changes were visible in my URL. there were not Search Engine Friendly.

I want the URL pattern like this: .com/forum/[category-name]/[forum-name]/[thread-title]-[post-number]

my forum is www.apkatv.com/forum
Title: Re: Advance SEF URLs
Post by: -Rock Lee- on March 01, 2018, 08:11:21 AM
Looking for something similar to simpleef I came across this ... and how the author is still active. My question is do not you plan to update it? why I think it's a good option ...


Regards!

ADD: Excuse me if I revive an old topĂ­c...