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

vicram10

hi, SlammedDime , I use the simpleself and the "Site integration mod", it's compatible?
Because, I created two folders, "demos" and "descargas".

The simpleself mod change the action index.php?action=demos for this url_my_site/demos/

but it's not work fine, because generate Page Error (not found), but, if I add one thing

url_my_site/demos/

Replace

url_my_site/demos/demos/

work fine...

any idea?

SMF Version = 2.0 RC2

PS.: my hosting is GoDaddy = windows server

SlammedDime

Because of the way the mod works, you cannot have any folders which are also the name of an action on your board.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

vicram10

Quote from: SlammedDime on January 28, 2010, 11:50:14 AM
Because of the way the mod works, you cannot have any folders which are also the name of an action on your board.

Thanks, SlammedDime , but, in APACHE, work fine with this config... but in Windows Server (GoDaddy) appears this problem

vicram10

sorry for the doble post..

solved the problem, rename the file.php...

Old = demos/demos.php
Now = demos/demo-site.php

Thanks SlammedDime 

atfosan

Hello! I tested both redirection mods: PrettyURLs and SimpleSEF.
I select SimpleSEF for my site, but I wish some changes in redirection rules...

For example instead "/topic_id.msgID.html#msgID" be better "/board_id/topic_id.html#msgID" (same as PrettyURLs). I use PortaMx and for me perfectly be better "/forum/board_id/topic_id.html#msgID". Could you add this option in future realease?



Do you need in Russian and Russian-utf8 translations? I haven't so much free time to read all pages of topic, that's why I don't know is there or no...
my SMF project - school site: forum with PortaMx and SimpleSEF mods


Arantor

Quote from: atfosan on January 31, 2010, 09:04:29 AM
For example instead "/topic_id.msgID.html#msgID" be better "/board_id/topic_id.html#msgID" (same as PrettyURLs). I use PortaMx and for me perfectly be better "/forum/board_id/topic_id.html#msgID". Could you add this option in future realease?

I doubt it, since that breaks the ability then to actually go to any message directly where the message is not on the first page. The .msgID.html is what tells SMF what page to go to within the topic.
Holder of controversial views, all of which my own.


atfosan

Quote from: Arantor on January 31, 2010, 11:16:25 AM
Quote from: atfosan on January 31, 2010, 09:04:29 AM
For example instead "/topic_id.msgID.html#msgID" be better "/board_id/topic_id.html#msgID" (same as PrettyURLs). I use PortaMx and for me perfectly be better "/forum/board_id/topic_id.html#msgID". Could you add this option in future realease?

I doubt it, since that breaks the ability then to actually go to any message directly where the message is not on the first page. The .msgID.html is what tells SMF what page to go to within the topic.

Yes, that's right... but basic idea is actual yet.
Another ways: "/forum/board_id/topic_id/msgID.html" or simple "/forum/board_id/msgID.html".
my SMF project - school site: forum with PortaMx and SimpleSEF mods

Arantor

I don't think the mod actually would support such a construction though.
Holder of controversial views, all of which my own.


KensonPlays

Installs correctly, but there is no text in the admin settings!!

Owner of Mesozoic Haven

SlammedDime

Arantor pretty much summed up why eliminating one of the msgxxxxxx is not doable, sorry, it's just the way I've chosen to construct the urls.

Kcmartz - not to sound rude, but haven't you had enough of a hard time installing mods by this point that you should at least know where to start troubleshooting the issues you're having?  No text strings means they aren't in your Modifications.english.php, OR you're using a language other than English (perhaps English-UTF8) and the language strings aren't in that file either.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

KensonPlays

Only English, no UTF-8 at all!

Should I try reinstalling it?

Owner of Mesozoic Haven

KensonPlays

Also this is pasted above the site:

$txt['simplesef'] = 'SimpleSEF'; $txt['simplesef_desc'] = 'This section allows you to edit the options for SimpleSEF.

Note: If you enable this and start receiving 404 errors on your board, it is likely because .htaccess or web.config was not created, or your host does not have the mod_rewrite or Microsoft Url Rewrite module installed on the web server and you will not be able to use this mod. [Help] If you have an Apache webserver, or one that uses .htaccess and has mod_rewrite functionality, you need a .htaccess file in your main SMF directory with the following: Code: RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
If you have a IIS7 webserver, you need a web.config file in your main SMF directory with the following: Code: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="SimpleSEF">
<match url="(.*)" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" pattern="" ignoreCase="false" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
If you have Lighttpd v1.4.23 or less, you will need the following in your Lighttpd config file, normally at /etc/lighttpd/lighttpd.conf (thanks to Daniel15). $HTTP["host"] =~ "(www.)?example.com" {
url.rewrite-once += (
# Allow all normal files
"^/forum/.*\.(js|ico|gif|jpg|png|swf|css|htm|php)(\?.*)?$" => "$0",
# Rewrite everything else
"^/forum/.*$" => "/smf_2-0-rc2_sqlite/index.php"
)
} '; $txt['simplesef_enable'] = 'Enable SimpleSEF'; $txt['simplesef_enable_desc'] = 'Requires mod_rewrite support or Url Rewrite/web.config (IIS7) support.'; $txt['simplesef_simple'] = 'Create Simple URLs'; $txt['simplesef_simple_desc'] = 'Urls will look like /forum/board-1/, or /forum/topic-3.html instead of content filled.'; $txt['simplesef_space'] = 'Space'; $txt['simplesef_space_desc'] = 'Character to be used for spaces in the url. Typically _ or -.'; $txt['simplesef_suffix'] = 'Topic Extension'; $txt['simplesef_suffix_desc'] = 'URL extension to use on topics (ie: html, php).'; $txt['simplesef_suffix_required'] = 'An extension is required'; $txt['simplesef_strip_words'] = 'Words to strip'; $txt['simplesef_strip_words_desc'] = 'These are words that will be stripped out of urls. This creates shorter, yet still readable urls. The words you wish to strip should be seperated by a comma (no spaces).'; $txt['simplesef_strip_chars'] = 'Characters to strip'; $txt['simplesef_strip_chars_desc'] = 'These are characters that will be stripped out of urls. This creates shorter, yet still readable urls. The characters you wish to strip should be seperated by a comma (no spaces).'; $txt['simplesef_lowercase'] = 'Lowercase URLs'; $txt['simplesef_lowercase_desc'] = 'Use this option to convert all urls to lower case letters.'; $txt['simplesef_action_title'] = 'Actions, Subactions and Areas'; $txt['simplesef_action_desc'] = 'These are all of the actions, subactions and areas 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. [Edit]'; $txt['simplesef_actions'] = 'Actions'; $txt['simplesef_subactions'] = 'Subactions'; $txt['simplesef_areas'] = 'Areas'; $txt['simplesef_adds'] = 'SimpleSEF adds';

Owner of Mesozoic Haven

SlammedDime

So check your modifications.english.php and you'll probably find that the ?> is ABOVE all of that text... you'll need to move it below all of the text.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

KensonPlays

Well, there must be one above and below, as I didn't paste the "?>" at the end, as that is a whole seperate error...

Owner of Mesozoic Haven

KensonPlays

What do I do now? (will check back in third period, going to first now...)

Owner of Mesozoic Haven

SlammedDime

There should only be one ?> and it should be at the very end of the file.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

KensonPlays


Owner of Mesozoic Haven

Arantor

Quote from: SlammedDime on January 22, 2010, 07:02:43 PM
Aranter, there's gotta be a mod somewhere conflicting with it... I'm able to send PM's okay on my test site.  In any case, the next version will have some more admin config options to address this.

Any idea when that's gonna be? We have a very small list of mods and to be frank it's getting irritating that we can't send PMs. The only mod of any substance is Project Tools, which we definitely can't go without and it's increasingly looking like we're going to have to do without SSEF since we don't have the resources to debug it more (SleePy has already been debugging it this week to deal with extra /'s in the URLs)
Holder of controversial views, all of which my own.


SlammedDime

I decided against adding admin options and will instead be dropping the shortening of area/sa... so instead of /pm/send/... you'll now see /pm/sa,send/

Quote from: SlammedDime on January 23, 2010, 03:28:22 PMSo here's what I'm thinking.... I'm thinking of removing the 'rewriting' of the area/sa part... only because with SMF 2.0 and so many people using sa and areas for their mods that it will cause conflicts.... so what does this mean?

instead of http://www.myforum.com/profile/settings/ it would look like http://www.myforum.com/profile/area,settings/

This will make it indistinguishable as to what is an area call and what is a subaction call.

I already gave sleepy the fix for this... as simple as commenting out some code in the create_sef_url function.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Advertisement: