News:

Want to get involved in developing SMF, then why not lend a hand on our github!

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

kolorom

Hello SlammedDime
Can you help me  to do this
from
http://site.com/profile/admin_1/
to

http://site.com/profile/admin/


PS: I know about non english letter  ;)

Quote from: SlammedDime on September 03, 2010, 02:52:14 PM
I don't see how .htaccess could help out at all here.  It may not be the prettiest solution, but this isn't 'Pretty Urls'... the purpose of this mod is to keep it simple (hence the name) and part of the simplicity is very few database queries and overhead to make it work.  The other pitfall of not having the id's and only using usernames are when users have special characters or utf-8 characters in their name.  Then the overhead work of trying to find the actual user(name) from a mashed up version of it becomes a lot of extra and unneeded work and support.

I prefer to keep my mods as stable as possible... creates a better user experience, requires less work from me on the support front, and allows me to concentrate on making other things.  I always try not introduce things into my mods that create ambiguity and and problems for the end user or forum admins.  As far as this goes, or even with topic names having the id and message id in them, it is easier for everyone involved to just leave them there, which is what I plan to do.

THX

SlammedDime

Sorry kolorom, it's not possible to do at this time
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Chen Zhen

Quote from: SlammedDime on September 29, 2010, 06:33:33 PM
Yes, this is a caveat of the way redirects are handled by the mod... any real file or folder will be served up before SMF will be invoked.

I notice in the settings menu there is a box to add allowed actions to the array.
Editing this doesn't seem to work for me or perhaps I misunderstand the allowed actions here.

Anyhow, it is easy to manually edit to allow other actions and subactions.

Thanks for this nice mod and support.
 

My SMF Mods & Plug-Ins

WebDev

SMF support staff should be shaping a positive community experience & not provoking an argument or emotional reaction.

SlammedDime

As the description states: "These are all of the actions of the board.  You normally do not need to edit this list.  Infact, if you do edit these lists, it can cause parts of your board not to function temporarily.  I provide this here only in case they must be edited in case something goes wrong."

I have deliberately not explained what that box is used for so that people will not assume anything and will ask before editing.  It doesn't 'allow' or 'disallow' actions or subactions from being parsed by the mod.  If you remove an item from that box, it will likely show back up on it's own (the list is automatically maintained by the mod).
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Chen Zhen

Ok. Thanks.

What I meant was any needed actions or subactions (with full urls) are easily added by editing the:  Sources / SimpleSEF.php file.
I was able to get smf arcade 2.5 and its save types working easily enough.

Why not put in an option to add actions that circumvent the url change?



My SMF Mods & Plug-Ins

WebDev

SMF support staff should be shaping a positive community experience & not provoking an argument or emotional reaction.

kolorom

I see one problem in Listen to the letters link

http://www.site.com/verificationcode/vid,register/rand=487958e81ca2053a6b46293896a83887/sound/

open just picture

http://www.site.com/index.php?action=verificationcode;vid=register;rand=05ece7b5a5ac9821f7d17867f813c1f9;sound

play sound


PS: links in notify mail can be changed to view like on forum or not  ;)

THX

frantic

Hey SD, with the help of Underdog over at the SMF Arcade forums, he was able to get the arcade and Simple SEF to work togther.  Here were the code edits in case anyone  else has problems submitting scores.  Again we appreciate everything.  Thanks you guys, you really give SMF a good name.

http://www.smfarcade.info/forum/index.php?topic=7175.0

apashi

Hello!

I am using now SMF 2.0RC3, SimpleSEF 1.0.3 and Aeva Media 1.4

now my media links to album folder look like this:
http://www.vorbareti.ro/media/sa,album/in,69/ [nofollow]
and links to item like this:
http://www.vorbareti.ro/media/sa,item/in,1458/ [nofollow]

can I make link look like this:
for albums:
http://www.vorbareti.ro/media/ [nofollow]AlbumName
and for items:
http://www.vorbareti.ro/media/ [nofollow]AlbumName/ItemName

Thanks!

SlammedDime

At this time it's not possible to add custom URL schemes.  Maybe in a future version... I have some ideas on how to implement it, but I will have to play with it...
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Awilum

#849
How to resolve this problems ?


PROBLEM 1 - September 07, 2010
Оn my forum have a user PHP his id 115
http://webdevart.ru/profile/php-115
If I login then i see my own administrator profile, not php-115 If not then error User does not exist.
it's strange not working http://webdevart.ru/profile/php-115  and http://webdevart.ru/profile/phpblabla-115/ are already working
PHP forbidden word or what?

PROBLEM 2 - The second problem is solved
And one more problem I found today.
This:
http://webdevart.ru/template-cms/
http://webdevart.ru/templatecms-20/ - Second page url is wrong!



Web Development Art - Programming :: Design :: SEO
| My web projects |

Masterd

Can this mod work with Simple .htaccess cache mod?

SlammedDime

Quote from: Awilum on October 10, 2010, 03:27:35 AM
How to resolve this problems ?


PROBLEM 1 - September 07, 2010
Оn my forum have a user PHP his id 115
http://webdevart.ru/profile/php-115
If I login then i see my own administrator profile, not php-115 If not then error User does not exist.
it's strange not working http://webdevart.ru/profile/php-115  and http://webdevart.ru/profile/phpblabla-115/ are already working
PHP forbidden word or what?

PROBLEM 2 - The second problem is solved
And one more problem I found today.
This:
http://webdevart.ru/template-cms/
http://webdevart.ru/templatecms-20/ - Second page url is wrong!




I wasn't able to replicate either issue, and I tested the second one on your site itself and didn't encounter that, it worked as it should...


Quote from: Masterd on October 14, 2010, 11:36:03 AM
Can this mod work with Simple .htaccess cache mod?
It should...
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     


SlammedDime

Did you make sure the proper code is in your .htaccess file?  Can you define 'not working'?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     


SlammedDime

From the FAQ on the first page...

QuoteQ: 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.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Masterd


SlammedDime

Ok, and what is the contents of your .htaccess file?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Masterd

#Simple .htaccess Cache Mod
<IfModule mod_deflate.c>
   AddOutputFilterByType DEFLATE text/css
   AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript text/x-js text/ecmascript application/ecmascript text/vbscript text/fluffscript
   AddOutputFilterByType DEFLATE image/svg+xml application/x-font-ttf application/x-font font/opentype font/otf font/ttf application/x-font-truetype application/x-font-opentype application/vnd.ms-fontobject application/vnd.oasis.opendocument.formula-template
   AddOutputFilterByType DEFLATE text/xml application/xml
</IfModule>
<IfModule mod_expires.c>
<FilesMatch "\.(ico|gif|jpg|JPG|jpeg|png|PNG|swf|css|js|html?|xml|txt)$">
ExpiresActive On
ExpiresDefault "access plus 1 month"
</FilesMatch>
</IfModule>
<ifModule mod_gzip.c>
  mod_gzip_on Yes
  mod_gzip_dechunk Yes
  mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
  mod_gzip_item_include handler ^cgi-script$
  mod_gzip_item_include mime ^text/.*
  mod_gzip_item_include mime ^application/x-javascript.*
  mod_gzip_item_exclude mime ^image/.*
  mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
#Simple .htaccess Cache Mod


SlammedDime

Okay, it's missing all of the code required for this mod to work... please re-read the help section and add the appropriate information to your .htaccess file.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Advertisement: