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

feline

Quote from: SlammedDime on March 10, 2010, 04:21:47 PM
Fel - I forgot about that one... as it's not of the utmost importance, I will add to my to-do list for the next version.
No problem .. I can add that to the 1.0.3 ..
Just installed and up to now it seems to work as well ...

Thanks for your work
Fel

KensonPlays

Quote from: cryingsoul on March 07, 2010, 11:59:10 AM
i cant  Enable SimpleSEF, everytime i try to check the box and save, it becomes unchecked again ???

Useing SMF Version 2.0 RC
Look near the beginning of this topic, you need to go to the admin page of the mod, then it has information telling you something about .htaccess. Open the popup and copy those four lines and make a new file called: ".htaccess" (Exactly like that, that is the filename), and paste those four lines and save that file to your SMF's root folder.

Then try enabling it!

Owner of Mesozoic Haven

Am'

hi

why the mod add a number after url, example Community/Board/welcome_1516.0 ?

and how add new translation ? (text, Words to strip, actions, subaction, areas ...)

thx
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Arantor

The number after it is so that you get a reference back to the thread, otherwise if you have two threads called "Help", it won't know which to choose.

It's unavoidable, and it's not going to change.

As for adding a new translation, look in the package itself (it's a regular zip file IIRC), for references to $txt. You'll see stuff like $txt['blah'] = 'moreblah'.

If you can find those, then translate the moreblah and post it here, SlammedDime will be able to add it to the next version for you.
Holder of controversial views, all of which my own.


Am'

ok i will translate this words (not all) to french utf8 and arabic utf8

// List settings here in the format: setting_key => default_value.  Escape any "s. (" => \")
$mod_settings = array(
'simplesef_enable' => '0',
'simplesef_simple' => '0',
'simplesef_space' => '_',
'simplesef_suffix' => 'html',
'simplesef_lowercase' => '1',
'simplesef_strip_words' => 'a,about,above,across,after,along,around,at,before,behind,below,beneath,beside,between,but,by,down,during,except,for,from,in,inside,into,like,near,of,off,on,onto,out,outside,over,since,through,the,till,to,toward,under,until,up,upon,with,within,without',
'simplesef_actions' => 'activate,admin,announce,attachapprove,buddy,calendar,clock,collapse,coppa,credits,deletemsg,display,dlattach,editpoll,editpoll2,emailuser,findmember,groups,help,helpadmin,im,jseditor,jsmodify,jsoption,lock,lockvoting,login,login2,logout,markasread,mergetopics,mlist,moderate,modifycat,modifykarma,movetopic,movetopic2,notify,notifyboard,openidreturn,pm,post,post2,printpage,profile,quotefast,quickmod,quickmod2,recent,register,register2,reminder,removepoll,removetopic2,reporttm,requestmembers,restoretopic,search,search2,sendtopic,smstats,suggest,spellcheck,splittopics,stats,sticky,theme,trackip,about:mozilla,about:unknown,unread,unreadreplies,verificationcode,viewprofile,vote,viewquery,viewsmfile,who,.xml,xmlhttp',
'simplesef_useractions' => 'profile,pm',
);
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Arantor

No, not $modSettings.

$txt contains the language strings.
Holder of controversial views, all of which my own.


Am'

Quote from: Arantor on March 10, 2010, 05:34:03 PM
No, not $modSettings.

$txt contains the language strings.

but simplesef rewrite urls to this : /board/moderate

in french it is should be : Forum/moderer

no ?

اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Arantor

No it shouldn't.

Because it's rewriting index.php?action=moderate to /moderate/ as it should be. If you rename that, you also have to modify SMF internally as well. It's possible but it should NOT be done in the mod as standard.
Holder of controversial views, all of which my own.


SlammedDime

Quote from: Am' on March 10, 2010, 05:33:10 PM
ok i will translate this words (not all) to french utf8 and arabic utf8

// List settings here in the format: setting_key => default_value.  Escape any "s. (" => \")
$mod_settings = array(
'simplesef_enable' => '0',
'simplesef_simple' => '0',
'simplesef_space' => '_',
'simplesef_suffix' => 'html',
'simplesef_lowercase' => '1',
'simplesef_strip_words' => 'a,about,above,across,after,along,around,at,before,behind,below,beneath,beside,between,but,by,down,during,except,for,from,in,inside,into,like,near,of,off,on,onto,out,outside,over,since,through,the,till,to,toward,under,until,up,upon,with,within,without',
'simplesef_actions' => 'activate,admin,announce,attachapprove,buddy,calendar,clock,collapse,coppa,credits,deletemsg,display,dlattach,editpoll,editpoll2,emailuser,findmember,groups,help,helpadmin,im,jseditor,jsmodify,jsoption,lock,lockvoting,login,login2,logout,markasread,mergetopics,mlist,moderate,modifycat,modifykarma,movetopic,movetopic2,notify,notifyboard,openidreturn,pm,post,post2,printpage,profile,quotefast,quickmod,quickmod2,recent,register,register2,reminder,removepoll,removetopic2,reporttm,requestmembers,restoretopic,search,search2,sendtopic,smstats,suggest,spellcheck,splittopics,stats,sticky,theme,trackip,about:mozilla,about:unknown,unread,unreadreplies,verificationcode,viewprofile,vote,viewquery,viewsmfile,who,.xml,xmlhttp',
'simplesef_useractions' => 'profile,pm',
);

The actions and useractions are NOT translatable... do not do it or you will break your board.

If you wish to translate the strip_words, do so in the admin panel settings for SimpleSEF.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Am'

ok just one question: why did you rewrite the urls that robots can not access, eg : moderation, pm .....
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

SlammedDime

Because it was much much easier to include everything rather than write exceptions for lots of things
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Am'

ah ok

before I was on pretty now simplesef

it will not affect my SEO, especially since Google has already indexed my links
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Am'

#472
translation french utf-8



$txt['simplesef'] = 'SimpleSEF';
$txt['simplesef_desc'] = 'Cette section vous permettra de modifier les options pour SimpleSEF. <br /> <br />
<strong> Note: Si après avoir activer cette option vous commencez à avoir des erreurs 404 sur votre forum, il est probable que votre .htaccess ou Web.config n\'est pas créé, ou que votre hôte n\'a pas le mod_rewrite ou le module Microsoft Url rewrite installé, donc vous ne serez pas en mesure d\'utiliser SimpleSEF. </strong> [<a href="#" onclick="showSimpleSEFHelp(); return false;">Aide</a>]

<span style="display:block;" id="simplesef_help"> Si vous avez un serveur web Apache, ou un autre qui utilise .htaccess avec la fonctionnalité mod_rewrite, vous aurez besoin d\'un fichier .htaccess dans votre répertoire SMF principal avec le texte suivant:
<span style="display:block;" class="codeheader">Code:</span>
<code>RewriteEngine On<br />RewriteCond %{REQUEST_FILENAME} !-f<br />RewriteCond %{REQUEST_FILENAME} !-d<br />RewriteRule (.*) index.php</code>
<br />
Si vous avez un serveur web IIS7, vous aurez besoin d\'un fichier Web.config dans le répertoire SMF principal avec le texte suivant:
<span style="display:block;" class="codeheader">Code:</span>
<code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />&lt;configuration&gt;<br />    &lt;system.webServer&gt;<br />        &lt;rewrite&gt;<br />            &lt;rules&gt;<br />                &lt;rule name=&quot;SimpleSEF&quot;&gt;<br />                    &lt;match url=&quot;(.*)&quot; ignoreCase=&quot;false&quot; /&gt;<br />                    &lt;conditions logicalGrouping=&quot;MatchAll&quot;&gt;<br />                        &lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsFile&quot; negate=&quot;true&quot; pattern=&quot;&quot; ignoreCase=&quot;false&quot; /&gt;<br />                        &lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsDirectory&quot; negate=&quot;true&quot; pattern=&quot;&quot; ignoreCase=&quot;false&quot; /&gt;<br />                    &lt;/conditions&gt;<br />                    &lt;action type=&quot;Rewrite&quot; url=&quot;index.php&quot; /&gt;<br />                &lt;/rule&gt;<br />            &lt;/rules&gt;<br />        &lt;/rewrite&gt;<br />    &lt;/system.webServer&gt;<br />&lt;/configuration&gt;</code>
<br />
Si vous avez Lighttpd v1.4.23 ou moins, vous aurez besoin du code suivant dans votre fichier de configuration Lighttpd, normalement dans /etc/lighttpd/lighttpd.conf (merci à <a href="http://www.simplemachines.org/community/index.php?action=profile;u=9547">Daniel15</a>).
<span style="display:block;" class="codeheader">Code:</span>
<code>$HTTP[&quot;host&quot;] =~ &quot;(www.)?example.com&quot; {<br />   url.rewrite-once += (<br />      # Allow all normal files<br />      &quot;^/forum/.*\.(js|ico|gif|jpg|png|swf|css|htm|php)(\?.*)?$&quot; =&gt; &quot;$0&quot;,<br />      # Rewrite everything else<br />      &quot;^/forum/.*$&quot; =&gt; &quot;/smf_2-0-rc2_sqlite/index.php&quot;<br />   )<br />}</code>
</span>
<script type="text/javascript"><!-- // --><!' . '[CDATA[
document.getElementById("simplesef_help").style.display = "none";
function showSimpleSEFHelp()
{
   document.getElementById("simplesef_help").style.display = "block";
}
// ]]' . '></script>';
$txt['simplesef_enable'] = 'Activer SimpleSEF';
$txt['simplesef_enable_desc'] = 'Votre serveur doit supporter le mod_rewrite ou URL Rewrite/web.config (IIS7)';
$txt['simplesef_simple'] = 'Créer des URL simples';
$txt['simplesef_simple_desc'] = 'Les URL ressembleront à /forum/board-1/ ou /forum/topic-3.html';
$txt['simplesef_space'] = 'Espace';
$txt['simplesef_space_desc'] = 'Caractère à utiliser pour remplacer les espaces dans les URL. Typiquement _ ou -. ';
$txt['simplesef_suffix'] = 'Extension du sujet';
$txt['simplesef_suffix_desc'] = 'extension de l\'URL à utiliser pour les sujets (ex.: HTML, PHP). ';
$txt['simplesef_suffix_required'] = 'Une extension est nécessaire';
$txt['simplesef_strip_words'] = 'Mots à ignorer';
$txt['simplesef_strip_words_desc'] = 'Ce sont des mots qui ne seront pas pris en compte par les URL. Cela créera des URL plus lisibles. Les mots que vous souhaitez ignorer doivent être séparés par une virgule (sans espaces).';
$txt['simplesef_strip_chars'] = 'Caractères à ignorer';
$txt['simplesef_strip_chars_desc'] = 'Ce sont des caractères qui ne seront pas prises en compte par les URL. Cela créera des URL plus lisibles. Les caractères que vous souhaitez ignorer doivent être séparées par une virgule (sans espaces). ';
$txt['simplesef_lowercase'] = 'URL en minuscule';
$txt['simplesef_lowercase_desc'] = 'Utilisez cette option pour convertir toutes les URL à des lettres minuscules.';
$txt['simplesef_action_title'] = 'Actions, Sous-Actions et les domaines';
$txt['simplesef_action_desc'] = 'Ce sont toutes des actions de votre Forum. Vous n\'avez normalement pas besoin de modifier cette liste. En fait, si vous modifiez cette liste, cela peut provoquer des erreurs sur votre forum qu\'il peut ne pas fonctionner temporairement. Je les fournis ici pour les modifier seulement dans le cas où quelque chose tournerait mal. [<a href="#" onclick="return editAreas();">Modifier</a>]';
$txt['simplesef_actions'] = 'Actions';
$txt['simplesef_subactions'] = 'Sous-Actions';
$txt['simplesef_areas'] = 'Domaines';
$txt['simplesef_useractions'] = 'Actions des utilisateurs';
$txt['simplesef_adds'] = '<a href="http://www.mattzuba.com">SimpleSEF</a> ajoute';



(tested)

hey sd : in english, after daniel link add this :
<span style="display:block;" class="codeheader">Code:</span>
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

escorta.biz

I tested 1.0.3 and most of the issues were solved.
Though, the problem with adding polls to existing topics still exists; i receive an error (more info here).
Thanks!

mirahalo

Quote from: Am' on March 11, 2010, 03:53:39 AM
ah ok

before I was on pretty now simplesef

it will not affect my SEO, especially since Google has already indexed my links


it will take some time for google to re-index your pages, it isn't that bad, if you respect all the "google rules" your site will be indexed in no time.



many thanks SlammedDime   I will install the new version :)

SlammedDime

Quote from: escorta.biz on March 11, 2010, 10:30:14 AM
I tested 1.0.3 and most of the issues were solved.
Though, the problem with adding polls to existing topics still exists; i receive an error (more info here).
Thanks!
copy and paste the following code into a file named 'fix.php' and upload it to your SMF root folder ( the same place that SSI.php is) and then navigate to it: http://myforum.com/fix.php

<?php
require('SSI.php');

$fix = array(
'simplesef_areas' => '',
'simplesef_subactions' => '',
);

updateSettings($fix);

unlink(__FILE__);

?>


That should fix the issue.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Am'

SlammedDime : you saw my translation fr-utf8? you'll add to simplesef ? if you want I'm ready to translate your other modules
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

SlammedDime

I'm putting together some language packs... feel free to post the translations to the topics and I'll be adding them shortly.  Thanks for your help :D
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     


KensonPlays

It is a nice mod!

I just remembered, I have a issue when members try to log in sometimes, it takes almost all 5 trys to log in! (login security mod) I took off login, login2, and register, and register2, and it seems to work!

Owner of Mesozoic Haven

Advertisement: