Advertisement:

Author Topic: SimpleSEF 2.0 (SMF 1.1.x and SMF 2.0)  (Read 325306 times)

Offline SlammedDime

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,280
  • School of Air Ride
    • matt.zuba on Facebook
    • @mattzuba on Twitter
    • ZubaFitness
SimpleSEF 2.0 (SMF 1.1.x and SMF 2.0)
« on: December 05, 2009, 10:08:40 PM »
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)
« Last Edit: April 11, 2011, 04:01:56 PM by SlammedDime »
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Offline JBlaze

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,159
  • Gender: Male
    • @fragicide on Twitter
Re: SimpleSEF
« Reply #1 on: December 05, 2009, 10:20:47 PM »
Congrats and awesome mod!
Jason Clemons
Former Lead Customizer/Support Specialist
Twitter | Facebook | Instagram

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,609
    • StoryBB/StoryBB on GitHub
Re: SimpleSEF
« Reply #2 on: December 05, 2009, 10:22:04 PM »
Congrats, this is a nice mod.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Yağız...

  • SMF Super Hero
  • *******
  • Posts: 10,811
  • Gender: Male
    • MMO Browser
Re: SimpleSEF
« Reply #3 on: December 05, 2009, 11:09:29 PM »
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

Offline SlammedDime

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,280
  • School of Air Ride
    • matt.zuba on Facebook
    • @mattzuba on Twitter
    • ZubaFitness
Re: SimpleSEF
« Reply #4 on: December 05, 2009, 11:15:44 PM »
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...
                     

Offline Yağız...

  • SMF Super Hero
  • *******
  • Posts: 10,811
  • Gender: Male
    • MMO Browser
Re: SimpleSEF
« Reply #5 on: December 05, 2009, 11:17:28 PM »

Offline SlammedDime

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,280
  • School of Air Ride
    • matt.zuba on Facebook
    • @mattzuba on Twitter
    • ZubaFitness
Re: SimpleSEF
« Reply #6 on: December 05, 2009, 11:24:04 PM »
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...
                     

Offline islam2hamy

  • Sophist Member
  • *****
  • Posts: 1,364
  • Gender: Male
  • SMF أنا بحب
    • First Arabic Support Site For SMF
Re: SimpleSEF
« Reply #7 on: December 06, 2009, 12:00:46 AM »
Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,609
    • StoryBB/StoryBB on GitHub
Re: SimpleSEF
« Reply #8 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.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline islam2hamy

  • Sophist Member
  • *****
  • Posts: 1,364
  • Gender: Male
  • SMF أنا بحب
    • First Arabic Support Site For SMF
Re: SimpleSEF
« Reply #9 on: December 06, 2009, 12:08:08 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





Offline SlammedDime

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,280
  • School of Air Ride
    • matt.zuba on Facebook
    • @mattzuba on Twitter
    • ZubaFitness
Re: SimpleSEF
« Reply #10 on: December 06, 2009, 02:43:23 AM »
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...
                     

Offline SlammedDime

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,280
  • School of Air Ride
    • matt.zuba on Facebook
    • @mattzuba on Twitter
    • ZubaFitness
Re: SimpleSEF
« Reply #11 on: December 06, 2009, 02:44:35 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...
                     

Offline Sudhakar Arjunan

  • Sophist Member
  • *****
  • Posts: 1,227
  • Gender: Male
  • SMF is the best forum tool
    • IT Acumens - Webdesigning & Webhositing services in Chennai
Re: SimpleSEF
« Reply #12 on: December 06, 2009, 03:55:34 AM »
Excellent work.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Offline Liam.

  • SMF Hero
  • ******
  • Posts: 2,240
  • Gender: Male
Re: SimpleSEF
« Reply #13 on: December 06, 2009, 06:09:47 AM »
Excellent mod! I'm gonna have to change from PURLS to this ASAP. :D

Offline Antes

  • Evil Black Cat
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,951
  • Gender: Male
  • Black cat rulz!
    • Antes on GitHub
    • merta on LinkedIn
    • @XinYenFon on Twitter
    • WoWSnips
Re: SimpleSEF
« Reply #14 on: December 06, 2009, 06:26:57 AM »
Yes ! Finally ... Thx for release Awsome mod
and
m8 be a translit addon ... does this job
Code: [Select]
$char['<final letter>'] = '<convert From>';
You can support me directly via Patreon

In Catnip We Trust.
The solution is Catnip!
Vote for Catnip!

Current Project(s): [ WoWSnips ]
Past Project(s): [ ezPortal ] # [ Lunarfall ] # [ RDD (HTML5) ]

Offline Daniel15

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,222
  • Gender: Male
  • http://dan.cx/
    • daaniel on Facebook
    • Daniel15 on GitHub
    • daniel15 on LinkedIn
    • @Daniel15 on Twitter
    • Daniel15
Re: SimpleSEF
« Reply #15 on: December 06, 2009, 08:39:42 AM »
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!

Offline islam2hamy

  • Sophist Member
  • *****
  • Posts: 1,364
  • Gender: Male
  • SMF أنا بحب
    • First Arabic Support Site For SMF
Re: SimpleSEF
« Reply #16 on: December 06, 2009, 10:43:08 AM »
Quote
Internal 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





Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,609
    • StoryBB/StoryBB on GitHub
Re: SimpleSEF
« Reply #17 on: December 06, 2009, 11:07:08 AM »
islam2hamy: What mods are you using?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline islam2hamy

  • Sophist Member
  • *****
  • Posts: 1,364
  • Gender: Male
  • SMF أنا بحب
    • First Arabic Support Site For SMF
Re: SimpleSEF
« Reply #18 on: December 06, 2009, 12:12:58 PM »
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





Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,609
    • StoryBB/StoryBB on GitHub
Re: SimpleSEF
« Reply #19 on: December 06, 2009, 12:39:50 PM »
Is there a missing ] at the end of [R,L] ?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.