News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SimpleSEF 2.0 (SMF 1.1.x and SMF 2.0)

Started by SlammedDime, December 05, 2009, 10:08:40 PM

Previous topic - Next topic

SlammedDime

Link to Mod
SimpleSEF





This mod creates content filled URLs for your forum.

Examples:
http://www.yourboard.com/index.php?board=1.0 =>> http://www.yourboard.com/general_discussion/
http://www.yourboard.com/index.php?topic=1.0 =>> http://www.yourboard.com/general_discussion/welcome_smf_1.0.html
http://www.yourboard.com/index.php?action=profile =>> http://www.yourboard.com/profile

Latest Version: 2.0

Features of SimpleSEF:
- Makes no core code changes to SMF (SMF 2.0) other than an admin interface to control the mod (SMF 1.1)
- Works with Apache (mod_rewrite required) or IIS7 (Microsoft URL Rewrite module required + web.config files in your directory)
- Very low overhead to each page load - Average database query count per page load - 2 (with caching enabled, 3 without)
- 'Simple' mode, puts just the words 'board', 'topic' or 'user' into the url, instead of content filled urls
- Removes user specified words and characters from board and topic and usernames (thinks like ! $ &, etc, and short words, like 'the', 'at', 'and', etc.  These are customizable in the admin panel.
- Smart - when you add mods with new actions/subactions to your board, SimpleSEF readily recognizes the new ones and accounts for them without any interaction from you
- Specify the 'space' character in the URL (ie: general_discussion, general-discussion, general.discussion, etc)
- UTF-8 compatible, changes non-ASCII characters to their closes US-ASCII equivilant.

Post-Install Notes:
Please ensure your .htaccess or web.config file contains the proper information for this mod to work.  Visit the admin panel and click on the [Help] link at the end of the bolded text in the page description for more information.



Change Log:
v 2.0
+ OOP based construction
+ Uses more integration hooks in SMF 2.0, now makes zero code changes

v 1.1.1
! Bug on 404

v 1.1
+ Added ability for custom extensions for actions (http://www.mattzuba.com/2010/10/custom-action-handling-with-smf-and-simplesef/)
! 404 capability for actions that don't exist (which could really be files or folders too)
! Error when newly created board isn't in cache yet

v 1.0.3
! Code cleanup
! Did away with areas/subactions (fixes a few bugs)
! Visual Verification wouldn't display on refresh
! Fix quick moderation icon issues
! Add 'User Actions' array to admin panel
! OpenID didn't play well due to periods in the variable names in URIs
! Better capture URLs in the output buffer

v 1.0.2
! Kept better track of which actions have a 'user' parameter
! Fixed an endless loop causing load spikes depending on the formatted URL
+ Added support for SMF 1.1
! Fixed issue with ?theme=xx and ?language=xx support (Thanks Feline)

v 1.0.1
! Fixed bug that would not properly transliterate non ISO-8859-1 or UTF-8 languages

v 1.0.0
+ Initial Release




FAQ:
Q: I check the box to enable, but when the page reloads after saving, the box is unchecked again.  Why?
A: I've built in a safe guard to avoid making your forum unavailable.  If the above happens, verify that you have a .htaccess or web.config file (depending on your web server) in your main SMF directory that contains the right information shown by clicking the [Help] link above the settings for SimpleSEF in your admin panel.

Q: I renamed/created one of my boards but SimpleSEF didn't recognize the change.
A: As board renames/creations aren't common, the board names are cached for 1 hour to reduce the queries needed by the mod.  Simple empty the SMF file cache and this will resolve the issue as the new name will be cached.  (Admin Panel > Maintenance > Forum Maintenance > Routine > Empty File Cache)
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

JBlaze

Congrats and awesome mod!
Jason Clemons
Former Team Member 2009 - 2012

Arantor

Congrats, this is a nice mod.

Yağız...

Nice one SlammedDime but there is a problem with Turkish characters, they aren't shown in the url.
Topic name: ŞşĞğİıÖöÜü
URL: http://localhost/smf2/main-forum/-14.msg24.html
Encoding: ISO-8859-9

SlammedDime

I was afraid I might have issues with Turkish... should be an easy fix, I just need to update the database for those types of characters... got any links where I can find a 'turkish alphabet'?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     


SlammedDime

Thx, I'll have to check the different encodings used on SMF and account for them.  I wrongly assumed it was either ISO-8859-1 or UTF8.  Didn't know we had others.  Until I can get that corrected, unfortunately the mod is only compatible with those encodings.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

islam2hamy


Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Arantor

islam2hamy: do you run using UTF-8? If so it should automatically deal with that. It's only Arabic without UTF-8 that there may be problems.

islam2hamy

Quote from: Arantor on December 06, 2009, 12:02:03 AM
islam2hamy: do you run using UTF-8? If so it should automatically deal with that. It's only Arabic without UTF-8 that there may be problems.

yes , i am using UTF-8

Linux not supported ?!

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





SlammedDime

Yagiz - what is your collation on the smf_messages database table?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

SlammedDime

Quote from: islam2hamy on December 06, 2009, 12:08:08 AM
Quote from: Arantor on December 06, 2009, 12:02:03 AM
islam2hamy: do you run using UTF-8? If so it should automatically deal with that. It's only Arabic without UTF-8 that there may be problems.

yes , i am using UTF-8

Linux not supported ?!
This mod is not operating system dependent... it is web server dependent (Apache or similar with mod_rewrite capability and .htaccess files, or IIS7 on Windows).
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Sudhakar Arjunan

Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Liam.

Excellent mod! I'm gonna have to change from PURLS to this ASAP. :D

Antes

Yes ! Finally ... Thx for release Awsome mod
and
m8 be a translit addon ... does this job
$char['<final letter>'] = '<convert From>';

Daniel15

Great mod, looks very good.  :D
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

islam2hamy

QuoteInternal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, ***** and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8l DAV/2 mod_auth_passthrough/2.1 FrontPage/5.0.2.2635 Server at www.smfarabic.com Port 80

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Arantor

islam2hamy: What mods are you using?

islam2hamy

Aeva ~ Auto-Embed Video & Audio
Downloads System
Share This Topic
EmailValidator
Sitemap
Contact Page
Google Analytics Code
Custom Copyright
Welcome Back
More Spiders
Ad Managment
Left-To-Right and Right-To-Left BBcode Buttons
Related Topics
RSS Feed Icon
Quran Flash

".htaccess" file :

   RewriteEngine on
   RewriteRule ^sitemap.xml$ /index.php?action=sitemap;xml
 
   RewriteCond %{HTTP_USER_AGENT} !FeedBurner
   RewriteRule ^sitemap.xml$ http://feeds2.feedburner.com/smfarabic  [R,L

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Arantor

Is there a missing ] at the end of [R,L] ?

Advertisement: