Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2288)
(https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif) (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3751784)
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/ (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)
Congrats and awesome mod!
Congrats, this is a nice mod.
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
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'?
Yes: http://en.wikipedia.org/wiki/Turkish_alphabet :)
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.
Nice mod
What about Arabic ??
http://en.wikipedia.org/wiki/Arabic_alphabet
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.
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 ?!
Yagiz - what is your collation on the smf_messages database table?
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).
Excellent work.
Excellent mod! I'm gonna have to change from PURLS to this ASAP. :D
Yes ! Finally ... Thx for release Awsome mod
and
m8 be a translit addon ... does this job
$char['<final letter>'] = '<convert From>';
Great mod, looks very good. :D
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 (http://www.smfarabic.com/) Port 80
islam2hamy: What mods are you using?
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
Is there a missing ] at the end of [R,L] ?
no no,it is from me
error 500 wen the ".htaccess" file is :
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]
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php
Your .htaccess file isn't formatted properly... please see the help section in the SimpleSEF settings and format the rewrite conditions to have the proper line spacing.
Please port this over to 1.1.11 :)
Be great for SMF 1.1.x. Also note you can probably get this to work with IIS6 if you have http://www.isapirewrite.com which supports .htaccess for IIS6
Quote from: SlammedDime on December 06, 2009, 01:58:49 PM
Your .htaccess file isn't formatted properly... please see the help section in the SimpleSEF settings and format the rewrite conditions to have the proper line spacing.
can you please formate it correct for me
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
Quote from: SlammedDime on December 06, 2009, 02:43:23 AM
Yagiz - what is your collation on the smf_messages database table?
latin1_swedish_ci
I'm workin on the Turkish issue... I tried setting up a Turkish test site but everything I post in Turkish just shows as ? marks after I post. Still workin that.
Quote from: SlammedDime on December 06, 2009, 02:51:49 PM
I'm workin on the Turkish issue... I tried setting up a Turkish test site but everything I post in Turkish just shows as ? marks after I post. Still workin that.
changes not effecting SimpleSEF :/ ,
eg : Forum Name > /forum-name/
if i change it to Other Forum Name , it still /forum-name/
The board names are cached for up to 1 hour, as it's not something that happens regularly... empty your file cache in the SMF admin panel and that will fix the issue.
I've added this bit to the FAQ on the first page.
Quote from: Yağız... 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
I believe I've solved this issue now. I'd like to send you a revised SimpleSEF.php file to test before I publish it if I may. If that's okay, please PM me your email address.
Thanks for the great mod, just gave it a try. One problem I would like to report is that when there are 2 boards with the same name it doesn't seem to use an alternate alias for the other boards with the same name.
This is a "dirty" version of a nginx rewrite config. Ideally one would use try_files but this will work at least. It assumes your forum location is in /forum/
location @forum_missing {
rewrite ^(.*)$ /forum/index.php last;
}
location /forum/ {
error_page 404 = @forum_missing;
}
Then remove the following code from the bottom of ManageSettings.php
// We don't want to break boards, so we'll make sure .htaccess or web.config exists with the right info before enabling
if (!empty($_POST['simplesef_enable']))
{
if (strpos($_SERVER['SERVER_SOFTWARE'], 'IIS') !== false && file_exists($boarddir . '/web.config'))
$_POST['simplesef_enable'] = strpos(implode('', file($boarddir . '/web.config')), '<action type="Rewrite" url="index.php" />') !== false ? 1 : 0;
elseif (strpos($_SERVER['SERVER_SOFTWARE'], 'IIS') === false && file_exists($boarddir . '/.htaccess'))
$_POST['simplesef_enable'] = strpos(implode('', file($boarddir . '/.htaccess')), 'RewriteRule (.*) index.php') !== false ? 1 : 0;
else
$_POST['simplesef_enable'] = 0;
}
Quote from: raing3 on December 07, 2009, 01:22:33 AM
Thanks for the great mod, just gave it a try. One problem I would like to report is that when there are 2 boards with the same name it doesn't seem to use an alternate alias for the other boards with the same name.
Yea, this is a known 'issue' of sorts... I'm thinking of implementing a workaround that adds a number to the boardname if it already exists, or maybe it's parent name... haven't quite decided which avenue to go down yet.
Ensiferous - Thanks for that. :)
Quote from: SlammedDime on December 06, 2009, 11:52:06 PM
Quote from: Yağız... 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
I believe I've solved this issue now. I'd like to send you a revised SimpleSEF.php file to test before I publish it if I may. If that's okay, please PM me your email address.
Of course, you can send it :)
I tried to install the mod - everything was fine until I've tried to activate it.
When I try to put the check and push the save button, nothing happens - the checkbox is empty again and the mod is not active. I've checked all the files by hand - what should be installed was installed. Do you have any idea why this happens?
Is it supposed to happen when there is no Microsoft URL Rewrite or mod_rewrite running on the server or there could be another reason?
and the major differences between this and the pretty mod is ?
Less code changes, probably faster too.
Pretty URLs modifies a lot of code from what I remember - this doesn't make any edits to SMF at all, I believe, other than the admin panel.
thanx it is perfect mod :o
Quote from: Boby_ on December 07, 2009, 06:20:22 AM
I tried to install the mod - everything was fine until I've tried to activate it.
When I try to put the check and push the save button, nothing happens - the checkbox is empty again and the mod is not active. I've checked all the files by hand - what should be installed was installed. Do you have any idea why this happens?
Is it supposed to happen when there is no Microsoft URL Rewrite or mod_rewrite running on the server or there could be another reason?
There is a failsafe that will disable the mod if your server has not created a web.config or .htaccess file (depending on your server software). You will have to manually create either file using the readme in the Admin section for the mod.
is there any process with the turkish issue??
Quote from: Boby_ on December 07, 2009, 06:20:22 AM
I tried to install the mod - everything was fine until I've tried to activate it.
When I try to put the check and push the save button, nothing happens - the checkbox is empty again and the mod is not active. I've checked all the files by hand - what should be installed was installed. Do you have any idea why this happens?
Is it supposed to happen when there is no Microsoft URL Rewrite or mod_rewrite running on the server or there could be another reason?
The way the code block works is like this:
If you have IIS installed, it checks to see if you have a web.config file with the proper information. If you do, it enables it. If you don't have IIS, then it checks to see that .htaccess exists and has the right information. If you do, then it enables it. If not, then it does not allow you to enable it.
If you have an apache, litespeed or Lighttpd server, make sure that .htaccess exists and has the proper information shown in the SimpleSEF configuration panel by clicking the little [Help] link in the description.
Quote from: underfire on December 07, 2009, 12:27:21 PM
is there any process with the turkish issue??
I believe I have a solution for it... I'm just waiting for Yagiz to PM me his email address so I can send him a copy to test. :)
Quote from: SlammedDime on December 07, 2009, 02:26:09 PM
Quote from: underfire on December 07, 2009, 12:27:21 PM
is there any process with the turkish issue??
I believe I have a solution for it... I'm just waiting for Yagiz to PM me his email address so I can send him a copy to test. :)
Oops sorry :) Pm'ed ^^
No worries, I've sent the email... please reply back here or via PM and let me know how it goes :)
Hi SlammedDime,
nice mod !
Well, I have some problems in the Admin/Forum Maintenance/Routine/Check all files against current versions
area.
If you want to see, if all SMF Files versus current onces,
it only shows ??
ALso sometimes, when I just want to go into a board,
it just say: the topic does not exist...
Maybe this is somecaching issue ?
I am using it on a PortaMX enabled site.
I must test this some more and let you know.
Many thanks.
Regards, Stefan.
I've updated the mod to v1.0.1 which should fix any issues with character sets and the issue Yagiz was having. The mod should now work with any character set that SMF works with.
Stefan - I haven't had any issues with the version check, works okay on my test sites. I haven't used PortaMX, but that shouldn't make a difference.
Great mod, but why isn't redirecting with 301 from the old link to the new link? That means, if you don't start from zero with a forum that has this mod installed, all the links google indexed and all backlinks will not be available. Am I right?
Hi,
How does one update best from:
Version: 1.0.0 to Version: 1.0.1 ?
Just via the package manager ?
Or do I have to deinstall Version: 1.0.0 first ?
By the way, when I set my forum to German language as the default,
SimpleSEF Version: 1.0.0 did not show any settings inside its admin panel...
So do I need to copy all the values from the English admin panel
into the German admin panel settings ?
Quote from: shumilica on December 07, 2009, 05:07:14 PM
Great mod, but why isn't redirecting with 301 from the old link to the new link? That means, if you don't start from zero with a forum that has this mod installed, all the links google indexed and all backlinks will not be available. Am I right?
It does, and should, 301 redirect from ?topic=1.0 to /general_discussion/my_topic_1.html. It does on my test site. See the screenshot with the Firebug output...
Stefan - Sorry, I forgot to include the upgrade instruction in the mod package. I'll upload a new one momentarily that allows 'upgrade'.
ETA: Uploaded revised package.
great mod ;) if you accept translations, heres spanish_es/spanish_latin with utf8 version:
$txt['simplesef'] = 'SimpleSEF';
$txt['simplesef_desc'] = 'Esta sección te permite editar la configuración de el mod SimpleSEF.<br /><br />
<strong>Nota: Si al habilitar este mod empiezas a tener errores tipo 404 en tu foro, es muy probable que tu servidor no haya creado al archivo .htaccess o web.config , o tu hosting no tiene el mod_rewrite o Microsoft Url Rewrite module instalados y no podrás usar este mod.</strong> [<a href="#" onclick="showSimpleSEFHelp(); return false;">Ayuda</a>] (en inglés)
<span style="display:block;" id="simplesef_help">si tienes un servidor Apache, o alguno que use archivos .htaccess y tiene mod_rewrite funcionando, necesitas crear un archivo .htaccess en el directorio raíz de tu foro SMF con lo siguiente:
<span style="display:block;" class="codeheader">Código:</span>
<code>RewriteEngine On
<br />RewriteCond %{REQUEST_FILENAME} !-f
<br />RewriteCond %{REQUEST_FILENAME} !-d
<br />RewriteRule (.*) index.php</code>
<br />
Si tienes un servidor IIS7 (windows), necesitas un archivo web.config en el directorio raíz de tu foro con lo siguiente:
<span style="display:block;" class="codeheader">Código:</span>
<code><?xml version="1.0" encoding="UTF-8"?>
<br /><configuration>
<br /> <system.webServer>
<br /> <rewrite>
<br /> <rules>
<br /> <rule name="SimpleSEF">
<br /> <match url="(.*)" ignoreCase="false" />
<br /> <conditions logicalGrouping="MatchAll">
<br /> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" />
<br /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" pattern="" ignoreCase="false" />
<br /> </conditions>
<br /> <action type="Rewrite" url="index.php" />
<br /> </rule>
<br /> </rules>
<br /> </rewrite>
<br /> </system.webServer>
<br /></configuration>
</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'] = 'Habilitar SimpleSEF';
$txt['simplesef_enable_desc'] = 'Requiere el tener instalado el mod_rewrite o Rewrite/web.config (IIS7).';
$txt['simplesef_simple'] = 'Crear Direcciones simples';
$txt['simplesef_simple_desc'] = 'Las direcciones se verán así /forum/board-1/, o así /forum/topic-3.html.';
$txt['simplesef_space'] = 'Espacio';
$txt['simplesef_space_desc'] = 'Caracter que será usado en lugar de el espacio en las direcciones. lo normal sería _ o -.';
$txt['simplesef_suffix'] = 'Extención del tema';
$txt['simplesef_suffix_desc'] = 'Extención que será usada en los temas, por ejemplo (html, php).';
$txt['simplesef_suffix_required'] = 'Se requiere una extención';
$txt['simplesef_strip_words'] = 'Palabras no incluidas';
$txt['simplesef_strip_words_desc'] = 'Estas palabras no se mostrarán en los enlaces. Esto crea enlaces más cortos, pero siguen siendo entendibles. las palabras que desees quitar deberán separarse por comas ( , ) (no espacios).';
$txt['simplesef_strip_chars'] = 'Caracteres a quitar';
$txt['simplesef_strip_chars_desc'] = 'Estos caracteres no se mostrarán en los enlaces. Esto crea enlaces más cortos, pero siguen siendo entendibles. las palabras que desees quitar deberán separarse por comas ( , ) (no espacios).';
$txt['simplesef_lowercase'] = 'Direcciones con letras minúsculas';
$txt['simplesef_lowercase_desc'] = 'Usa esta opción para convertir todas las direcciones a letras minusculas.';
$txt['simplesef_action_title'] = 'Acciones, Subacciones y Áreas';
$txt['simplesef_action_desc'] = 'Estas son todas las acciones, Subacciones y áreas de el foro. Normalmente, no necesitas editar esta lista. de hecho, si editas esta lista, puedes hacer que partes de tu foro no funcionen bien de manera temporal. Pongo esta lista solo en caso de que algo haya salido mal y necesite ser editado. [<a href="#" onclick="return editAreas();">Editar</a>]';
$txt['simplesef_actions'] = 'Acciones';
$txt['simplesef_subactions'] = 'Subacciones';
$txt['simplesef_areas'] = 'Áreas';
$txt['simplesef_adds'] = '<a href="http://www.mattzuba.com">SimpleSEF</a> adds';
utf8 version:
$txt['simplesef'] = 'SimpleSEF';
$txt['simplesef_desc'] = 'Esta sección te permite editar la configuración de el mod SimpleSEF.<br /><br />
<strong>Nota: Si al habilitar este mod empiezas a tener errores tipo 404 en tu foro, es muy probable que tu servidor no haya creado al archivo .htaccess o web.config , o tu hosting no tiene el mod_rewrite o Microsoft Url Rewrite module instalados y no podráss usar este mod.</strong> [<a href="#" onclick="showSimpleSEFHelp(); return false;">Ayuda</a>] (en inglés)
<span style="display:block;" id="simplesef_help">si tienes un servidor Apache, o alguno que use archivos .htaccess y tiene mod_rewrite funcionando, necesitas crear un archivo .htaccess en el directorio raíz de tu foro SMF con lo siguiente:
<span style="display:block;" class="codeheader">Código:</span>
<code>RewriteEngine On
<br />RewriteCond %{REQUEST_FILENAME} !-f
<br />RewriteCond %{REQUEST_FILENAME} !-d
<br />RewriteRule (.*) index.php</code>
<br />
Si tienes un servidor IIS7 (windows), necesitas un archivo web.config en el directorio raíz de tu foro con lo siguiente:
<span style="display:block;" class="codeheader">Código:</span>
<code><?xml version="1.0" encoding="UTF-8"?>
<br /><configuration>
<br /> <system.webServer>
<br /> <rewrite>
<br /> <rules>
<br /> <rule name="SimpleSEF">
<br /> <match url="(.*)" ignoreCase="false" />
<br /> <conditions logicalGrouping="MatchAll">
<br /> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" />
<br /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" pattern="" ignoreCase="false" />
<br /> </conditions>
<br /> <action type="Rewrite" url="index.php" />
<br /> </rule>
<br /> </rules>
<br /> </rewrite>
<br /> </system.webServer>
<br /></configuration>
</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'] = 'Habilitar SimpleSEF';
$txt['simplesef_enable_desc'] = 'Requiere el tener instalado el mod_rewrite o Rewrite/web.config (IIS7).';
$txt['simplesef_simple'] = 'Crear Direcciones simples';
$txt['simplesef_simple_desc'] = 'Las direcciones se verán así /forum/board-1/, o así /forum/topic-3.html.';
$txt['simplesef_space'] = 'Espacio';
$txt['simplesef_space_desc'] = 'Caracter que será usado en lugar de el espacio en las direcciones. lo normal sería _ o -.';
$txt['simplesef_suffix'] = 'Extención del tema';
$txt['simplesef_suffix_desc'] = 'Extención que será usada en los temas, por ejemplo (html, php).';
$txt['simplesef_suffix_required'] = 'Se requiere una extención';
$txt['simplesef_strip_words'] = 'Palabras no incluidas';
$txt['simplesef_strip_words_desc'] = 'Estas palabras no se mostrarán en los enlaces. Esto crea enlaces más cortos, pero siguen siendo entendibles. las palabras que desees quitar deberán separarse por comas ( , ) (no espacios).';
$txt['simplesef_strip_chars'] = 'Caracteres a quitar';
$txt['simplesef_strip_chars_desc'] = 'Estos caracteres no se mostrarán en los enlaces. Esto crea enlaces más cortos, pero siguen siendo entendibles. las palabras que desees quitar deberán separarse por comas ( , ) (no espacios).';
$txt['simplesef_lowercase'] = 'Direcciones con letras minúsculas';
$txt['simplesef_lowercase_desc'] = 'Usa esta opción para convertir todas las direcciones a letras minusculas.';
$txt['simplesef_action_title'] = 'Acciones, Subacciones y Áreas';
$txt['simplesef_action_desc'] = 'Estas son todas las acciones, Subacciones y áreas de el foro. Normalmente, no necesitas editar esta lista. de hecho, si editas esta lista, puedes hacer que partes de tu foro no funcionen bien de manera temporal. Pongo esta lista solo en caso de que algo haya salido mal y necesite ser editado. [<a href="#" onclick="return editAreas();">Editar</a>]';
$txt['simplesef_actions'] = 'Acciones';
$txt['simplesef_subactions'] = 'Subacciones';
$txt['simplesef_areas'] = 'Áreas';
$txt['simplesef_adds'] = '<a href="http://www.mattzuba.com">SimpleSEF</a> adds';
greetings!
Quote from: SlammedDime on December 07, 2009, 06:06:40 PM
Stefan - Sorry, I forgot to include the upgrade instruction in the mod package. I'll upload a new one momentarily that allows 'upgrade'.
ETA: Uploaded revised package.
Well,I just deinstalled the old 1.0.0 version and installed the new
1.0.1 version
and the error with it not showing the latest file versions is still there.
When I disable SimpleSEF fromits admin panel,
the latest file versions are again there.
So maybe this is an issue, cause I also have installed the latest PortaMX ?
Here is a screenshot, that it does not show the file versions.
When I disable SimpleSEF it does show the file versions again.
Thank you 130860, I'll create a Spanish Language Pack shortly.
Stefan - I'd need to log in to your board and see what the issue is. If you can PM me an admin login, I'll take a look at it. Before that though, have you tested on the Default Curve theme to see if the issue still happens there?
Okay, I will email you an admin password.
I am only using the default Curve theme.
I am only using:
1. SimpleSEF 1.0.1
2. Sitemap 2.1.0
3. Ad Managment 2.3.6
4. PortaMx v0.971-1 upgrade 0.971-1
5. PortaMx v0.971 0.971
6. RSS Feeder 1.1.4
Regards, Stefan.
Quote from: SlammedDime on December 07, 2009, 06:06:40 PM
It does, and should, 301 redirect from ?topic=1.0 to /general_discussion/my_topic_1.html. It does on my test site. See the screenshot with the Firebug output...
Curios, mine it says like this:
Moved Permanently
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] 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 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
This is my .htaccess (it's exactly what it says in the help link you provide in the mod):
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
Why on earth it would redirect to a 404 instead of 301? :O
It didn't redirect to a 404... it redirected to a Server error page. the part about the 404 just means that your server doesn't have a 404 error handler setup so it threw a generic and let you know about it.
As for the error, as it says, more information is available in the Server Error log... any errors in there?
Stefan - Looks like it has to do with gzip compression. I'll have to play with it locally to see if I can reproduce it and find a fix for it. For the time being, you can either disable gzip compression in SMF and have the functionality, or keep it enabled and just wait it out until I can find time to see what is happening.
Many thanks.
Where do I enable or disable GZIP compression ?
This is what it's saying in the error log when i try to go to forum/index.php or any other former known topic url:
[Tue Dec 08 00:45:19 2009] [error] [client ip] File does not exist: /home/fcrpro/public_html/500.shtml
It's a mistery...
May the new version help with something?
Unlikely, the only thing the newer version fixes is an issue with character sets and languages. I have to go to work, but I'll give you a change for the .htaccess file tomorrow to test out. I have to do a bit of research first though.
If you do a search in the admin panel for 'Enable compressed output', the result will have the link to the setting in it.
Okay, thanks for the hint with the GZIP compression.
I disabled it for now.
2. Could it be, that the Mod redirects all
calls to
domain.com
instead of
www.domain.com ?
So do I have to set in Google Webmastertools the preferred domainname
to:
domain.com
instead of
www.domain.com ?
Many thanks.
P.S: Does it also change the RSS Feed URL ?
What is the valid RSS Feed URL now, if I want to submit it now
to RSS-Feed sites ?
And the Sitemap MOD URL ?
What is the valid Sitemap URL,
which I should submit to Google Webmastertools ?
I don't know off the top of my head what the right urls would be... You can use either the old url, or find the new on by looking in the HTML source code... as for the sitemap... again, you'd have to click the XML link in the Sitemap to see what it gets rewritten to.
As for the www. vs lack thereof, I don't really understand. Whatever you have set for your $boardurl in Settings.php is what the mod uses.
isn't this the same kind of mod as the Pretty URLs mod ?????
Quote from: kingkingston on December 07, 2009, 09:50:26 PM
isn't this the same kind of mod as the Pretty URLs mod ?????
Kinda. It has the same functionality but a less of a performance hit on the forum. It also does not modify any SMF code except the admin stuff.
Nothing wrong with a little competition kingkingston :)
Here's instructions for other popular web servers (well, one for now :P). SlammedDime, if you want to, feel free to add these modifications to your package, and add the instructions to the readme (mention me if you want :))
Lighttpd
In ManageSettings.php, find:
else
$_POST['simplesef_enable'] = 0;
Add before:
elseif (strpos($_SERVER['SERVER_SOFTWARE'], 'lighttpd') !== false)
$_POST['simplesef_enable'] = 1;
Now, in your Lighttpd config file (often /etc/lighttpd/lighttpd.conf), add the following to the bottom:
$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"
)
}
Replace example.com with your forum's hostname, and forum with the directory your forum is installed in. Unfortunately, support for disabling rewriting based on the existance of files (what "%{REQUEST_FILENAME} !-f" in Apache does) is not available until Lighttpd 1.4.24, which is a newer release that a lot of people might not have installed. So, my rules explicitly disallow rewriting of normal files. This seems to work alright. :)
I'll post some configuration instructions for Cherokee, once I get the rewriting working properly (having some little problems right now).
@SlammedDime, in ManageSettings.php, I'd suggest changing the use of implode('', file(...)) to file_get_contents, it looks nicer (and is more efficient, but it doesn't really matter on small files) :)
Thanks for the above on Lighttpd daniel... I'll add that info so when I have to release a new version (because I'm sure more bugs will be found), it'll be in there.
As for the implode('', file()) thing... as you said, on the small files it didn't make a difference... in the benchmark I did, the time difference over 10000 iterations was very very small. It's also not something that is called very often... Believe me, I spent almost a week building in as many optimizations into SimpleSEF.php as I could to reduce load times... :)
QuoteAs for the implode('', file()) thing... as you said, on the small files it didn't make a difference... in the benchmark I did, the time difference over 10000 iterations was very very small. It's also not something that is called very often...
I see. I always cringe when I see implode('', file()), since it's quite often used as a hack for PHP 4 compatibility. I can imagine it uses more memory and being slower than file_get_contents since it reads a whole file, splits it into an array (one element per line of the file), then sticks that array back together. It's got the unnecessary overhead of splitting a file and then sticking it back together (practically the same as implode("\n", explode("\n", $file_contents)) :P)
Alright, here's a tutorial for Cherokee. It looks long but things are actually really easy to configure for Cherokee, since the entire administration is done via a GUI. This was tested on Cherokee 0.99.28, which is available as a Debian package in Debian Testing (the version in Lenny/stable is very very old, so I wouldn't suggest using it :P)
CherokeeNote: This doesn't cover setting up PHP, as it assumes you already have SMF working on a Cherokee install. It assumes you have basic knowledge of Cherokee setup.
In Sources/ManageSettings.php, find:
else
$_POST['simplesef_enable'] = 0;
Add before:
elseif (strpos($_SERVER['SERVER_SOFTWARE'], 'Cherokee') !== false)
$_POST['simplesef_enable'] = 1;
Now, to configure Cherokee. Run
cherokee-admin, open it, and go to Virtual Servers --> The vserver containing your domain ("default" if you haven't added any custom vservers). Click on the "Behaviour" tab. We need to add three rules:
1. Under
Add new rule, choose "
Full Path", and for the
Full Path, enter the path to your forum (for example,
/forum/).
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fss.d15.biz%2F2009.12.08-21.24.59.png&hash=633cf823c5f99c9111566252b4fb1d0916674176)
Press TAB to save and go into the configuration for this rule. On the
Handler tab, set
Handler to
List & Send. Now, this rule is done, so click on the vserver name at the top of the page to go back to the main configuration.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fss.d15.biz%2F2009.12.08-21.27.53.png&hash=7f0c1c10f1d4ed9e734a8af5d155786e8f37091e)
Go back to the "Behaviour" tab
2. Under
Add new rule, choose "
Directory", and for the
Web Directory, enter the
web directory your forum is in. Quite often, this will be /.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fss.d15.biz%2F2009.12.08-21.40.48.png&hash=fb077efe68ad17e3d4f3bb8230bb2d8cdcac0d69)
On the
Rule tab, click the "And" button. In the bottom dropdown box, choose "File Exists", and tick "
Match any file" and "
Use I/O cache":
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fss.d15.biz%2F2009.12.08-21.41.22.png&hash=2c3f5d3c420e30dc41787e4e9e1df3b97d17b52c)
On the
Handler tab, set the
handler setting to
Static content. Once again, go back to the "Behaviour" tab of the main configuration for the vserver.
3. Under
Add new rule, choose "
Regular Expression", and for the
Full Path, enter the path to your forum followed by (.+) (for example,
/forum/(.+)).
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fss.d15.biz%2F2009.12.08-21.31.04.png&hash=616092be2a01ccc93c98fe191a9b3032cbc601b4)
Set the following options:
Handler tab
- Handler: Redirection
Under "Add new rule":
- Show: Internal
- Substitution:
/forum/index.php (change "forum" to your forum's path)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fss.d15.biz%2F2009.12.08-21.33.09.png&hash=d9555efde605b05358f79462f143b2cc264b06ed)
After adding, it should look like:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fss.d15.biz%2F2009.12.08-21.33.36.png&hash=a6dc1a4adfd89ce13abf395816d986cad5c7e720)
Go back to the "Behaviour" tab of the main configuration for the vserver.
Rearrange the rules so they're in this order:
1. php
2. Fullpath rule
3. "Complex" rule (the one set in the second step above)
4. Regular expression rule
Make sure 2, 3, and 4 have the "Final" tickbox checked. It might look something like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fss.d15.biz%2F2009.12.08-21.43.52.png&hash=84b3a238c968792e6cef1c6a317fa4148da75b61)
Click the "Save" button on the left of the page, and everything should work :)
Hope this helps :D
Hi,
there is a problem im 1.0.0
with the attachments.
When I click an attachment picture in a posting,
it comes up with the error message:
Numeric request keys are invalid.
This happens in German as also on English language as the
forum default language.
I attached 7 JPEG pictures to a posting and the links
to it seems also wrong.
Sometimes also this error message comes up:
Fatal error: Call to undefined function getTemplateLayer() in /...xxx../..xxx../ruhleben/Sources/Subs.php on line 3405
(I edited the real path to it due to public security)
Also in Version 1.0.1
this error is there.
In:
http://www.ruhleben.com/index.php?topic=8.0
(this is again the normal link, cause I have disabled the MOD now..)
When I click the attachment link:
http://www.ruhleben.com/dlattach/attach/1/schloss_ruhleben/karten_und_stadtplan_vom_schloss_ruhleben_8.0.html
it comes up with
Numeric request keys are invalid.
Also when I use the short URL like:
http://www.ruhleben.com/dlattach/attach/1/topic_8.0.html
it comes up with the same error message.
I will now disable again the MOD until a fix is here.
Regards, Stefan.
Ok I'm having some problems and looking for a work-around.
I have Dreamhost and apparently there is a few issues with it. mod_rewrite is always installed by default, but I think the script has conflicts with Dreamhost's Fast-CGI. A google took me to this: http://www.webmasterstalks.com/seo-4-smf/i-have-a-big-bug-t837.0.html;msg4679#msg4679
I tried changing the "QueryString.php" as suggested in that file, but it doesn't work. The other workaround with the php.ini I don't have access to, unless I install my own version of php, which I can't figure out how to do and Dreamhost doesn't offer support on how to do that.
Xarcell - What problem are you having exactly? That fix for Querystring.php won't work for this mod, two totally different beasts.
Stefan - open SimpleSEF.php and do the following:
if (!empty($url_array) && (in_array($querystring['action'], array('stats','unread')) === false) && in_array($url_array[0], explode(',', $modSettings['simplesef_subactions'])))
and if (!empty($url_array) && (in_array($querystring['action'], array('stats','unread', 'dlattach')) === false) && in_array($url_array[0], explode(',', $modSettings['simplesef_subactions'])))
Hi, I installed this mod to my forum. Got worked. (Turkish forum, ISO-8859-9)
But there are some problems and thing I'd like to do.
Avatars don't show due to dlattach action. Is there a way to disable actions to be converted as SEF url? I just want my boards and topics to be converted as SEF.
I delete all of the actions in settings, but they're just keeping show up again.
See the post right above yours for the dlattach fix and let me know if it works for you.
As the description above the actions, areas and subactions states, you should NOT remove or change any of those unless you know what you are doing. Deleting any of them will not help anything, and in most cases can only HURT your forum.
No, there isn't a way to disable actions to be converted. This is an all or nothing, hence the name, 'Simple'SEF. :)
Ok, it works :)
Thanks for the mod, it's great!
btw, what about boards with same name :\
As for boards with the same name - I'll work up something so that board names might be prefixed with their category name, or maybe a number. I'll find some way to work it out that doesn't reduce overhead too much.
Few issues I have discovered so far:
- Read PM tab doesn't work for me, but it seems to work for everyone else, so there's something that's blocking me from reading PMs. The annoying thing is I cannot replicate this on an empty forum so I'll need to create a full-copy.
- Quoting a post for quick-reply will not work.
Getting any errors when trying to read PM's?
I'm at work now, but will test the quick-reply issue a bit later when I get home.
Nothing of consequence, just a white page. I'm currently doing a copy of my database and will test this more thoroughly when it's done.
My only guess would be that you have a PM that contains something that might be causing an issue when trying to parse links. Seems odd though.
hi there... i have a problem :( i installed the package and enabled it..
but,
when i click on a category on my forum, the adress looks like that; "www.mysite.com//" and when i click a topic, it looks like that "www.mysite.com//_371.0.html"
as you can see, no category name, no topic title... what can i do?
Quote from: SlammedDime on December 08, 2009, 07:28:41 PM
As for boards with the same name - I'll work up something so that board names might be prefixed with their category name, or maybe a number. I'll find some way to work it out that doesn't reduce overhead too much.
While it's definitely a rare occurrence, there could be two boards with the same name in the same category :P
Perhaps use the board ID in a URL like
board-name_id?
Quote from: JBlaze on December 07, 2009, 10:43:18 AM
There is a failsafe that will disable the mod if your server has not created a web.config or .htaccess file (depending on your server software). You will have to manually create either file using the readme in the Admin section for the mod.
Thanks a lot! SimpleSEF is working now.
I've got another problem with it yet - the old links inside the topics are not substituted with the new ones as example this one:
http://www.aquaportal.bg/forum/index.php/topic,1245.0.htm
leads straight to the forum index instead to the topic itself.
Boby_ I didn't take into account urls that were rewritten using SMF's queryless urls... I'll have to fix that.
Quote from: underfire on December 09, 2009, 06:31:05 AM
hi there... i have a problem :( i installed the package and enabled it..
but,
when i click on a category on my forum, the adress looks like that; "www.mysite.com//" and when i click a topic, it looks like that "www.mysite.com//_371.0.html"
as you can see, no category name, no topic title... what can i do?
I'll need a link to your site, as well as what language your forum is in, and if you're using UTF-8 or not.
Daniel15 - Yea, that's why I'll probably do the 'postfix' system and just postpend a number to the board name
Quote from: Ensiferous on December 09, 2009, 01:39:19 AM
Nothing of consequence, just a white page. I'm currently doing a copy of my database and will test this more thoroughly when it's done.
I didn't have any issues quoting posts for quick reply... I'd need a link and test account on your site to test it out with Firebug and see what's happening.
Are you going to release a new version still today with all the fixes ?
Otherwise I will wait for a new version, until I reenable it.
[offtopic] Also, will you soon also update the Ajax Recent Topic mod for RC2 ?
Many thanks.
There is also a bug from SMF with the
meta tag robots=noindex
Please have a look here:
http://www.simplemachines.org/community/index.php?topic=353072.0
Maybe you can also fix this, so Google is
again crawling the forum again ?
Many thanks.
I installed now additionally
the Meta Data Mod:
http://custom.simplemachines.org/mods/index.php?mod=1871
Which fixes the problem with the robots Meta Tag.
Maybe you can make sure, that this will
also work together with SimpleSEF.
That would be great !
Many thanks for your hard work.
Regards, Stefan.
Quote from: SlammedDime on December 09, 2009, 03:14:43 PM
Quote from: underfire on December 09, 2009, 06:31:05 AM
hi there... i have a problem :( i installed the package and enabled it..
but,
when i click on a category on my forum, the adress looks like that; "www.mysite.com//" and when i click a topic, it looks like that "www.mysite.com//_371.0.html"
as you can see, no category name, no topic title... what can i do?
I'll need a link to your site, as well as what language your forum is in, and if you're using UTF-8 or not.
my site link is: www.weborjin.com language is turkish, i am not using utf-8
Better always use UTF-8 if you don´t use just English as your main language !
Otherwise it is all too uncompatible !
Stefan - there is no issue with the robots meta tag in SMF. In a fresh copy of SMF, it works exactly how it should and there is no SMF bug in it. As Feline said in your other topic, it is a PortaMX bug.
Underfire, I'll try and check on this tomorrow. Are you using version 1.0.1?
Hmm,
I am not sure now,
if I should enable the
Meta Data Mod:
http://custom.simplemachines.org/mods/index.php?mod=1871
and use the Meta Tag robots=index,follow
in it ?
Or should I disable that tag in it and leave it for
SMF to set this ?
Many thanks.
The default action IS index,follow, even if the tag isn't there, it's implied by search engines. SMF properly handles the noindex.
If I use the
Meta Data Mod:
http://custom.simplemachines.org/mods/index.php?mod=1871
and disable in it the robots tag,
it does not display anymore any robots meta tag.
So SMF does not handle anymore this meta tag...
So what should I do ?
Deinstall this mod again ?
But it has other useful meta tags in it too..
Hmm...
SlammedDime,
The mod doesn't work at all for me. No errors or anything, it just doesn't work. I'm also positive mod_rewrite is installed, and I can enabled friendly URLs in my admin area of the site.
Quote from: Xarcell on December 09, 2009, 09:46:53 PM
SlammedDime,
The mod doesn't work at all for me. No errors or anything, it just doesn't work. I'm also positive mod_rewrite is installed, and I can enabled friendly URLs in my admin area of the site.
In what sense doesn't it work? Does it not rewrite urls? Will it not enable? Does it throw 404 error messages when you try to access parts of your board?
Update on my issues: Quote thing was unrelated and the PM giving a white page seems to be as well, The request never even hits my rewrite, which is absurdly weird.
Thanks for the update.
Here's an update of my own. I'll be backporting this to SMF 1.1.x. It'll be quite easy to do after reviewing the code. I'll update the mod with the dlattach bug fix at the same time I update it for 1.1.x.
Actually, I get this error:
Wrong value type sent to the database. Integer expected. (member)
Function: getUserName
Apply Filter: Only show the errors from this file
File: /home/entrom/public_html/forum3/Sources/SimpleSEF.php
Line: 526
When I try to view the PM page, so it must reach the forum... The reason I thought it was unrelated was because doing echo 'hi'; in index.php didn't cause any output. Doing a die() did though.
Quote from: SlammedDime on December 09, 2009, 08:14:25 PM
Underfire, I'll try and check on this tomorrow. Are you using version 1.0.1?
yes i am using 1.0.1
Another update.
The quote thing is because the link goes to
?action=quotefast;quote=501579;foo=bar;xml
instead of
index.php?action=quotefast;quote=501579;foo=bar;xml
If I disable SimpleSEF then the former provides the proper XML output. I'm not sure if this is my nginx rewrite or not, it really just transfer all query arguments as-is.
Might be because of your 'Default Document' setting in nginx. If 'Default Document' has .html or .htm before .php in the order, and you happen to have one of those files as well (index.), that could be why. I'll put a fix in not to change the smf_scripturl variable in the javascript so this doesn't happen.
Quote from: Ensiferous on December 10, 2009, 04:15:12 AM
Actually, I get this error:
Wrong value type sent to the database. Integer expected. (member)
Function: getUserName
Apply Filter: Only show the errors from this file
File: /home/entrom/public_html/forum3/Sources/SimpleSEF.php
Line: 526
When I try to view the PM page, so it must reach the forum... The reason I thought it was unrelated was because doing echo 'hi'; in index.php didn't cause any output. Doing a die() did though.
Interesting... I thought I did some checks to prevent that... I'll have to revisit that.
I just want to say that I successfully went from pretty urls mod ( thanks Daniel15 for that awesome mod too ;) ) to simpleSEF, all went smoothly, SimplePortal works great with it, also ディン1031's Thank-O-Matic mod, the sitemap shows the new urls without doing nothing ;) so, I just wanna say thank you SlammedDime for this mod ;D
ok, maybe too early to celebrate ;) my users are having problems, they can´t give thank you in the post, when they click on the thank you link, then an entire page appears, heres an example: h**p://oharascans.com/foro/thankyou/msg/4462/noticias/ares_26_.por_ohara_team._1424.0.html
Hi SlammedDime, i have installed the mod in www.clublgmobile.com/foro/ [nofollow], all appear to work fine, but after 4 hourser, my hosting provided has sended an email that my forum is consuming a lot of resoucer from the server, and the problemas was the mod. after disable the mod, the resources are normal.
They tell me that is not a 20% 40% more of resources, is a 2000% more.
what can be the problem?
This is part of my error_log
[Fri Dec 11 15:37:11 2009] [error] [client 217.216.95.30] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 178
[Fri Dec 11 15:37:11 2009] [error] [client 72.14.199.46] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:37:12 2009] [error] [client 217.216.95.30] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:37:36 2009] [error] [client 88.16.25.130] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:37:42 2009] [error] [client 217.216.95.30] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 178
[Fri Dec 11 15:38:10 2009] [error] [client 88.16.25.130] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:39:13 2009] [error] [client 88.16.25.130] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 178
[Fri Dec 11 15:39:59 2009] [error] [client 66.249.71.58] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 178
[Fri Dec 11 15:40:25 2009] [error] [client 88.16.25.130] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:40:32 2009] [error] [client 83.41.5.39] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:40:34 2009] [error] [client 83.41.5.39] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 178
[Fri Dec 11 15:41:40 2009] [error] [client 213.60.73.93] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 178
[Fri Dec 11 15:41:49 2009] [error] [client 66.249.71.58] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:41:59 2009] [error] [client 213.60.73.93] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 178
[Fri Dec 11 15:42:08 2009] [error] [client 84.124.220.230] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 178
[Fri Dec 11 15:42:19 2009] [error] [client 88.16.25.130] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:42:24 2009] [error] [client 84.124.220.230] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:43:00 2009] [error] [client 84.120.178.75] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:43:01 2009] [error] [client 88.16.25.130] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
SlammedDime, can you write a rule for Seo4SMF redirections? We have more than 103k links on Google, and all of them are with Seo4SMF. Now, we have installed SimpleSEF, and everything is gone.
I see how those errors could happen, though they shouldn't under normal circumstances... I'd have to see the access logs as well to see what URL is causing that.
In anycase, I'll fix up the code so it can't happen. Essentially it's entering into a neverending while loop.
130860 - I'll have to install that mod and investigate.
Yagiz - I'll take a look, but I can't promise anything.
130860 - I installed 2.0RC1 of the Thank-o-matic mod and didn't have any issues with the mod and SimpleSEF.
would you like to see it in my forum? I can gladly send you a demo account if you want it.
I don't think an account would help. Are there any errors in your error log in your forum?
What I can do is this: I can make a modified SimpleSEF file for your board that will spit out some logging information into a file that will allow me to debug the mod. Alternatively you can PM me FTP access to your board and I can do it that way, so we don't have to keep emailing files back and forth to each other, and it will be quicker too.
Ok, so I go to "Administration Center » Features and Options » SimpleSEF", and I click "Enable SimpleSEF". The page reloads and the "Enable SimpeSEF" is un-ticked. Which I thought I read in an earlier post that was normal.
The URL's remain the same and they are not being re-written. There are no errors in my log. No 404 errors...
Although, I noticed that there is no .htaccess file in my SMF root. Is there supposed to be one? I tried creating one, but my FTP program(FileZilla) does not see it on my PC, but it can see hidden files in my SMF installation. So I can't figure out how to upload one with the info supplied with your "help" link of SimpleSEF.
EDIT: http://inspireromance.com/phpinfo.php
Read the first post.
Quote from: Yağız... on December 12, 2009, 09:31:35 AM
Read the first post.
Darn, I skimmed right over that part. My bad.
I also noticed something else. I kept getting SMF was unable to connect to the database. Once I removed the mod, I quit getting that error. At first I thought it was my host, but now I'm not so sure...
what the difference with pretty ?
http://custom.simplemachines.org/mods/index.php?mod=636
this mod stock the new url in new table in database ?
I believe Pretty URLs does, this one doesn't AFAIK.
Hi,
when will you have the new version with all the latest bug fixes out ?
Will I loose all my Google indexed pages, when I switch later
to this MOD and earlier now only all
URLs are in Google like index.php?topic=xxx
?
Please SlammedDime let us know.
I need to setup a new domain and want to use
SimpleSEF for this.
Many thanks.
Quote from: Am' on December 15, 2009, 11:53:06 AM
this mod stock the new url in new table in database ?
no, no urls are cached in the database. this is not, however, a performance hit for this mod.
Quote from: hartiberlin on December 15, 2009, 02:38:21 PM
Hi,
when will you have the new version with all the latest bug fixes out ?
Will I loose all my Google indexed pages, when I switch later
to this MOD and earlier now only all
URLs are in Google like index.php?topic=xxx
?
Please SlammedDime let us know.
I need to setup a new domain and want to use
SimpleSEF for this.
Many thanks.
i'm working on it. I'm getting aversion for smf 1.1.x ready to release at the same time.
Hmm,
better just concentrate on RC2,
who is still using the old 1.1 anyway ??
Well, too bad, Feline just posted, that PortaMX is not supporting
or working fully with SimpleSEF.
http://portamx.com/index.php/topic,1373.0.html
Please can you try to optimize it , so it will work fully
with PortaMX ?
The problem is probably still only mostly in the single pages
URLs from PortaMX and a few other redirects, so it should it be easy to resolve
I guess.
Many thanks in advance.
Regards, Stefan.
Quote from: hartiberlin on December 15, 2009, 04:53:59 PM
who is still using the old 1.1 anyway ??
Given that it's been around for 3 years in a stable version and we are not pushing 2.0 as ready for production sites, I'd say quite a few people, especially given the response to the recent 1.1.11 upgrade.
Quote
Hmm,
better just concentrate on RC2,
who is still using the old 1.1 anyway ??
A lot more people use 1.1.x than 2.0 right now. Even when 2.0 final is released, people will opt not to switch over right away till any unforeseen bugs has been fixed.
1.1.x is still very very very popular compared to 2.0.
As for PortaMx, I really don't care for the portal system all that much, I'm much more partial to SimplePortal and TinyPortal, but if Feline wants to post specific information in this topic as to what doesn't work so I can try to replicate and adjust my mod as needed.
I know you're working on a new version with bug fixes, does that version include any fix for my issues or you couldn't find any fix or any issues for that matter :P
I think SimpleSEF brokes auto suggest. I can't use it on my 2 sites.
Follow errors I found
1. url's like ?theme=1 or ?language=langname don't work and run in error.
2. dot in url's like ?cat.article don't work. the dot is replaced by underline.
3. url's without index.php (like url/?anytext) not handled.
Fel
Whats wrong with simple urls? I love portalMX! I tried this mod once and decided to go back to simpleURL, I forgot why I went back, was a month ago (I think).
Quote from: mohd7590 on December 16, 2009, 04:58:45 PM
Whats wrong with simple urls? I love portalMX! I tried this mod once and decided to go back to simpleURL, I forgot why I went back, was a month ago (I think).
You mean Pretty Urls? This mod hasn't even been out for a month yet. I never said anything was wrong with it. This simply addresses the issue from a different angle.
Any advise how I can fix the errors I describe?
And Pretty URL RC1 works perfect .. also with PortaMx
Fel
Quote from: Yağız... on December 16, 2009, 11:39:13 AM
I think SimpleSEF brokes auto suggest. I can't use it on my 2 sites.
Seems to work okay for me... although I am putting in a change for how this mod adjusts the smf_scripturl javascript variable, so that might solve your issue.
Quote from: feline on December 16, 2009, 03:40:37 PM
Follow errors I found
1. url's like ?theme=1 or ?language=langname don't work and run in error.
2. dot in url's like ?cat.article don't work. the dot is replaced by underline.
3. url's without index.php (like url/?anytext) not handled.
Fel
1) Easy fix, thanks
2) Can you give me a full example of how the url looks before the mod, and how it looks after? (full url with http and all)
3)Will be fixed due to my fixing (1).
Quote from: 130860 on December 15, 2009, 06:17:40 PM
I know you're working on a new version with bug fixes, does that version include any fix for my issues or you couldn't find any fix or any issues for that matter :P
I'm looking at your issue as I type this... I just got my baby down for a nap so I have a free hour (I hope) to play with it.
oh, thank you so much :)
to 2)
Original url: myurl/index.php?catname.articlename or myurl/?catname.articlename
Changed url: myurl/catname_articlename/catname_articlename/
Must have: myurl/catname.articlename/
Because the theme=nn don't work I can't test the redirect in this.
I use as example: url?index.php?theme=1;redir=?admin|area=xyz|sa=xyz
The redir url part is encoded with Javascript:
var curpage = new String(window.location);
encodeURIComponent(curpage.replace(/\;/g, "|"))
Fel
Does it support UTF-8 Greek characters? Is there a test forum somewhere?
spiros, it should. I don't have a test forum for this up yet... I may turn my site into utf8 and install this mod there, but haven't had time yet.
Fel, thanks for the info, I'll look into it. As a suggestion though, you may want to base64_encode your redir=, and then decode it on the PHP side.
Ok .. I have get it to work, with small changes.
1.. fixed shorturl like myurl/?querystring
2.. fixed dot in querystrings like myurl/index.php?dot.query
Changes on SimpleSEF.php
find (line 102)
$current_value = array_pop($url_array);
replace with
// fix for shorturl like myurl/?request
$current_value = strtr(array_pop($url_array), array('?' => ''));
find (line 198)
@ini_set('memory_limit', '64M');
Add after:
// fix for shorturl like myurl/?request
$buffer = str_replace('/?', '/index.php?', $buffer);
find (line 345)
parse_str(!empty($url_parts['query']) ? $url_parts['query'] : '', $params);
Replace with:
// fix for dot in querystrings like myurl/dot.request
parse_str(!empty($url_parts['query']) ? strtr($url_parts['query'], '.', '|') : '', $params);
$params = str_replace('|', '.', $params);
Find (line 384)
foreach ($params as $key => $value)
{
if ($value == '')
$sefstring3 .= $key . '/' . $key . '/';
Repace with:
// fix for dot in querystrings like myurl/dot.request and shorturl like /?
$key = strtr($key, array('?' => '', '|' => '.'));
if ($value == '')
$sefstring3 .= $key .'/';
Done.
The PortaMx side run SimpleSEF and above changes.
Fel
Hmmm .. I see that the querystring theme=# is automatic added to the action array. But in this case that don't work and run in a error.
I fixed that with this
if (!empty($params['action']))
{
if(!in_array($params['action'], $simpleSEF['actions']) && $params['action'] != 'theme')
$simpleSEF['actions'][] = $params['action'];
Fel
Hi Feline,
I am so happy, that you are are helping here with it to get it to work,
cause I was always too afraid to install PrettyURL and SimpleSEF seems
much easier to get it to work and seems to change nothing in the database.
I hope SlammedDime will release soon a new version with all the fixes,
so it runs now perfect with PortaMX.
Many thanks to all the developers who work so hard.
Regards, Stefan.
Thx for the tips feline... I won't use them all, but they will come in handy in coding solutions.
Quote from: feline on December 17, 2009, 03:57:39 PM
Ok .. I have get it to work, with small changes.
1.. fixed shorturl like myurl/?querystring
2.. fixed dot in querystrings like myurl/index.php?dot.query
1) You shouldn't be using 'shorturls' like this in any of your files. The urls should have index.php in them. Lets suppose a user has a index.html and index.php file in his/her SMF Directory, with the index.html file being a simple 'under construction' page that the user forgot to remove when installing SMF. If their server is configured to look for index.html files before index.php files in the 'Default Document' structure, the 'shorturl' will load up index.html instead of index.php. I won't be including any type of support for this 'style' of url because it is incorrect.
2) Please read PHP: Predefined Variables (http://us2.php.net/manual/en/language.variables.external.php). PHP by it's nature does this replacement because to PHP, '.''s are invalid in a variable name when passed via POST or GET. This is something you should address in PortaMX, it's not a bug in this mod. Reason PHP does this is that if register_globals is turned on, a variable name with a . is not a valid variable name, as variable names can only contain letters, numbers and underscores (PHP: Basics (http://www.php.net/manual/en/language.variables.basics.php)).
ie:
This is okay in a php url: index.php?mycat=category.3
This is not: index.php?my.cat=category3
That said... I have addressed this issue with using ?theme= or ?language=, as well as duplicate keys in the url (this was originally done on purpose, but I've revised how they are 'encoded/decoded' on creation and parsing.
130860 - I see you've uninstalled the mod for the time being.. Can you please reinstall it so I can take a look again? I apologize for the delay, my free time during the day is limited due to being a 'semi-at-home' dad taking care of my 2 month old (I work nights).
oh, sorry, its just my users complains about it :P I re-enable it ;) and again I apologize to you, I know you're busy taking care of your baby, and I truly appreciate that you spend your time in my issue, thanks again :)
I think this mod worths for waiting ;)
130860 - I'm not quite sure what is causing your issue... I know it has something to do with the 301 redirect, but I don't know what exactly... I'll have to do some research into PHP as a cgi module in apache...
Quote from: Tanshaydar on December 18, 2009, 08:00:36 PM
I think this mod worths for waiting ;)
+1
;) :)
I saw you fixed a lot of things and I appreciate that, all the ajax is working :) thank you, I'll wait ;D
Quote from: 130860 on December 18, 2009, 08:55:53 PM
Quote from: Tanshaydar on December 18, 2009, 08:00:36 PM
I think this mod worths for waiting ;)
+1
;) :)
I saw you fixed a lot of things and I appreciate that, all the ajax is working :) thank you, I'll wait ;D
I updated you to the latest version of the mod (the great thing about the mod, only gotta replace the Source file to upgrade)... so that should take care of most things for now... the ThankYou stuff still isn't working, and I got an error when trying to activate my account on your board (was able to do manually, just not through the email link)...
Quote from: SlammedDime on December 18, 2009, 06:25:04 PM
1) You shouldn't be using 'shorturls' like this in any of your files. The urls should have index.php in them. Lets suppose a user has a index.html and index.php file in his/her SMF Directory, with the index.html file being a simple 'under construction' page that the user forgot to remove when installing SMF. If their server is configured to look for index.html files before index.php files in the 'Default Document' structure, the 'shorturl' will load up index.html instead of index.php. I won't be including any type of support for this 'style' of url because it is incorrect.
What may not be, can not be. Great logic. A good programmer will take account of the same.
Quote from: SlammedDime
2) Please read PHP: Predefined Variables (http://us2.php.net/manual/en/language.variables.external.php). PHP by it's nature does this replacement because to PHP, '.''s are invalid in a variable name when passed via POST or GET. This is something you should address in PortaMX, it's not a bug in this mod. Reason PHP does this is that if register_globals is turned on, a variable name with a . is not a valid variable name, as variable names can only contain letters, numbers and underscores (PHP: Basics (http://www.php.net/manual/en/language.variables.basics.php)).
Oh .. You want to seriously explain to me how to work with php?
Have you studied computer science? How many years of practical experience do you have?
For your information, first of all it's a completely legitimate url. And how is processed, selects the program code. You can use GET, POST, REQUEST, but there are other possibilities.
Quote from: SlammedDime
ie:
This is okay in a php url: index.php?mycat=category.3
This is not: index.php?my.cat=category3
Again, just for you;
We make no allocation in this style, we use
index.php?my.catFrom what you give here for the best, we see that you are not willing to adapt your software accordingly.
We have to push our user tries to reach an agreement, but this is probably a failure.
Feline,
CO PortaMx corp.
Quote from: feline on December 19, 2009, 08:39:12 AMWhat may not be, can not be. Great logic. A good programmer will take account of the same.
No, it's acceptance of a reality that we as engineers dislike but have to accept. Plenty of hosts do not have their servers configured the way you seem to think all servers are.
QuoteOh .. You want to seriously explain to me how to work with php?
Have you studied computer science? How many years of practical experience do you have?
For your information, first of all it's a completely legitimate url. And how is processed, selects the program code. You can use GET, POST, REQUEST, but there are other possibilities.
Legitimate URL on its own, yes. Legitimate PHP variable, NO, entirely as stated. PHP does build some variables on some configurations where register_globals is on. This is enabled on way way way too many hosts still, and this script will fail on those poorly configured hosts.
I guess it's not really an issue for you because PortaMX doesn't seem to care whether it's enabled or not. But there are strong reasons to take it into account. Like security, memory usage, performance.
Computer science is irrelevant here, btw.
(One question, I have only a basic formal education in CompSci, no commercial experience, but would you tell me I don't know what I'm talking about?)
Quote from: The Grinch on December 19, 2009, 08:59:18 AM
No, it's acceptance of a reality that we as engineers dislike but have to accept. Plenty of hosts do not have their servers configured the way you seem to think all servers are.
It is in the hand of the user, whether he works with or without the index.php. So why WE should require him what he should do or not do. It is a curiosity about whether a developer that takes into account or not. WE do it, and give the user the right to decide.
Quote from: The Grinch
Legitimate URL on its own, yes. Legitimate PHP variable, NO, entirely as stated.
Interesting. If it is because, as you claim, why then works with SMF? SMF has there a mistake? Or is it just like that, the SMF ignore it?
Quote from: The Grinch
(One question, I have only a basic formal education in CompSci, no commercial experience, but would you tell me I don't know what I'm talking about?)
I don't know...
Fel
QuoteIt is in the hand of the user, whether he works with or without the index.php. So why WE should require him what he should do or not do. It is a curiosity about whether a developer that takes into account or not. WE do it, and give the user the right to decide.
Not entirely, no. It's also down to server configuration too. This is part of the reason $scripturl forces index.php to be in there every single time.
QuoteInteresting. If it is because, as you claim, why then works with SMF? SMF has there a mistake? Or is it just like that, the SMF ignore it?
SMF doesn't use register_globals. Properly configured servers don't either. I also think SMF attempts to turn it off but I could be wrong on that.
QuoteQuote from: The Grinch
(One question, I have only a basic formal education in CompSci, no commercial experience, but would you tell me I don't know what I'm talking about?)
I don't know...
Fel
You asked SlammedDime that question. For my part, I don't have that experience, yet I take precisely the same position as SlammedDime, so the question can be directed just as equally at me.
We've said what there is to say. We have identified mistakes and tried to offer solutions.
If the developer has no interest in this application to solve the problems the shown, any further discussion is unnecessary and a waste of time.
Fel
Quote from: feline on December 19, 2009, 08:39:12 AM
What may not be, can not be. Great logic. A good programmer will take account of the same.
This has nothing to do with programming... and aside from that SMF uses index.php, not myfantasticforum.php, or iwin.php or even youlose.php... index.php, thus any mods should be made accordingly and should use the smf $scripturl variable, which properly outputs index.php. If a user decides to change index.php to myindex.php, they would also have to do so in the $scripturl variable which will not break any mods. If I changed it to myindex.php on my SMF install, your short url scheme would fail and I would get a 404 error because myindex.php is not a 'Default Document' as far as
The Webserver is concerned.
Quote from: feline on December 19, 2009, 08:39:12 AM
Oh .. You want to seriously explain to me how to work with php?
Have you studied computer science? How many years of practical experience do you have?
For your information, first of all it's a completely legitimate url. And how is processed, selects the program code. You can use GET, POST, REQUEST, but there are other possibilities.
You really want to know my qualifications? First of all, I never said it wasn't a legitimate url. I fully agree that it is, and even RFC1738 (http://www.faqs.org/rfcs/rfc1738) says it is. However as far as PHP is concerned, using . in a variable name (and per your example my.cat
IS turned into a variable once it reaches server side), it is NOT valid. You're absolutely right, it is how it is processed, and like I said, if a server as Register Globals turned on, this would cause a PHP issue. Now while Register Globals is bad, some stupid hosts still have it enabled for whatever reason, so until PHP 6 is standard and . are allowed in variable names, this is not a bug in this mod and PHP is working exactly like it should.
Quote from: feline on December 19, 2009, 08:39:12 AM
Quote from: SlammedDime
ie:
This is okay in a php url: index.php?mycat=category.3
This is not: index.php?my.cat=category3
Again, just for you;
We make no allocation in this style, we use index.php?my.cat
If you don't understand that index.php?my.cat
is the same thing as index.php?my.cat=foobar when checking for $_GET['my.cat'], then you really do need to go learn PHP again.
Quote from: feline on December 19, 2009, 08:39:12 AM
From what you give here for the best, we see that you are not willing to adapt your software accordingly.
We have to push our user tries to reach an agreement, but this is probably a failure.
Feline,
CO PortaMx corp.
I've adapted my software and corrected a bug that you've found... the issues above are not bugs in my code, they are issues with yours, as these issues would only ever occur with PortaMX or a mod that incorrectly handles urls... sorry, these issues are yours to fix.
Oh, and for my qualifications, I infact do have a Bachelors Degree in Computer Science and I can assure you that Computer Science has NOTHING to do with these issues. I've also been programming in PHP for over 7 years, along with many other languages. I've been in web design for over 8 years, I've run all sorts of web server types from Apache, to IIS, to Lighttpd to Litespeed. I've designed and built multiple websites and components for those sites including Java Applets and Flash Applications. Shall I go further?
Quote from: SlammedDime on December 19, 2009, 04:07:59 PM
First of all, I never said it wasn't a legitimate url. I fully agree that it is, and even RFC1738 (http://www.faqs.org/rfcs/rfc1738) says it is.
If a legal url not handled properly in PHP, then it's the responsibility of the developer to ensure that it still works correctly. That's all I'll say on this topic.
thats bs you said alot on the topic, SD is simply proving how littrle you know ...
Quote from: SlammedDime on December 19, 2009, 01:33:39 AM
I updated you to the latest version of the mod (the great thing about the mod, only gotta replace the Source file to upgrade)... so that should take care of most things for now... the ThankYou stuff still isn't working, and I got an error when trying to activate my account on your board (was able to do manually, just not through the email link)...
@SlammedDime thanks fot letting me now about the activate account thing, I will changed to register immediately (my forum is very small, so thats ok) and the thank you mod is no that necessary for me, I will uninstall it and wait for you ;) thanks again :)
Hi guys and gals,
please calm down...
It is almost chirstmas and we really need a solution,
so SimpleSEF will work flawlessly with PortaMX.
Please just try to make it work and please don´t get heated up about
who has more programming experience.
I think you all are just great and it would be nice,
if you all could work together just to make
SMF and its MODs a very nice compatible platform.
Many thanks again to all of you and have a nice christmas.
Whether or not Christmas is ...
The developer of this modification is riding to talk about without worrying about basic things. We can not change that, and so that the whole is finished.
Fel
I do not, and will not, conform my coding to your 'standards' just to work with your Portal. I pointed out to very valid issues regarding your mod, and you get defensive. You didn't see me getting defensive when you found issues with mine. Here's a simple test script for you so you can see PHP's default behavior with .'s in request variables.
<?php
print_r($_GET);
?>
then call test.php?test.help and test.php?test.help=help
You'll see that what is output is the following:
QuoteArray ( [test_help] => )
and
QuoteArray ( [test_help] => help )
respectively. (note: this is on PHP 5.3.1)
Take it up with the PHP developers if you have an issue with it.
Enable SimpleSEF
Requires mod_rewrite support or Url Rewrite/web.config (IIS7) support.
^What does it mean? What have I to do? How?
You need to check with your host to see if they have either.
ok, for my issue with the thank you o matic mod, I realize I had the Enable AJAX (Inline) Thank You on, so I just uncheck that and now the thank you doesn't use ajax and works again, now only one thing separates me from truly joy, I have my forum in a subfolder called foro in my root in my index.php file I got this little php script:
<?php
$id=$_GET[id];
if(!$id){include("noticias.php"); // aqui el archivo que se mostrara por defecto
}
else{if(file_exists("$id.php")){include("$id.php");}else{include("error.php");
// Aqui el nombre de la pagina que aparecera cuando un link este mal o una pagina no exista
}
}
?>
and in my .htacces I have this:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*)\.html$ /index.php?id=$1
and this for the sitemap:
RewriteEngine on
RewriteRule ^sitemap.xml$ ./foro/index.php?action=sitemap;xml
so instead of showing fo example index.php?id=staff it shows staff.html but when I turn simplesef on, this stop working, the page oharascans.com/staff.html shows the content of index.php if I type index.php?id=staff it shows me a 301 moved permanently. that would be the only problem left
hi SlammedDime
ı have a problem.
How ı use simpleSef with smf arcade?
Hi SD, I hope you can find soon a solution to get your mod to work
with PortaMX and vice versa.
We really need to find a solution to get these 2 Mods compatible,
cause they are so good ! :)
Happy Christmas and holidays !
Regards, Stefan.
This Mod works great for me, except for when the regular URLs get used (anything with index.php). Is this a known bug, or possibly with just my forum? Reason being, with bookmarks and such, there are old links out there, all of which cause 301 Errors when used.
Thanks
I believe it has something to do with PHP being run as a CGI module on apache. You can check your PHPInfo and it will be at the top under the configure line. I'm in the process of setting of various apache/php configs on a spare Unix box of mine to test it out on.
can u port it for version 1.11.1 please!!! I really need it. Would be a great xmas pressent ;D
Btw, Merry Christmas!
I have the version for 1.1.x ready and will be released on the next release, I just want to figure out the CGI bug first. :)
thank you. could you also please tell me or put as a readme file ..what to put in the web.config file. I have host on IIS7 and on my host account i don't have a web.config but I can upload one and will overide the default configurations. What do I exactly need to put into it when I create it. ::) Thanks for your help. Waiting for it's release ;D
The info on what is needed for web.config is contained in the settings page for the mod once you install it.
Quote from: ოկtђ on December 23, 2009, 11:53:21 AM
hi SlammedDime
ı have a problem.
How ı use simpleSef with smf arcade?
What issues are you having with it? I can't really help without specifics.
SD -
Firstly, kudos to you for making such a great MOD. I just installed SMF two days back, and this was the 1st mod I have installed. I did try prettyurls but found simplesef way better. I have an issue though -
While my board and topic URLs are now converted to seo friendly urls, the normal forums.xyz.com/index.php has stopped working! I can still reach it at forums.xyz.com but if I type forums.xyz.com/index.php it says 301 Moved Permanently.
Moved Permanently
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.
I think the 500 Internal Server may be because 404 file is not defined on my server. But it leaves the question of 301 open.
The .htaccess that SimpleSEF created on my site is this -
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
index.php is important for me, since so many tasks on SMF go through index.php only. For ex, when a new user signs up the activation email he receives has the link
forums.xyz.com/index.php?action=activate;u=...;code=.....
Interestingly, even while I get this error; the "index.php?action=admin" continues to work (i.e, I am able to set / change settings in Admin panel)
Any ideas on how can I get the index.php to work with SimpleSEF installed? This is a brand new forum just installed with NO mods - except SimpleSEF.
Warm Regards,
Anmol.
I believe it has to do with PHP running as a CGI module in apache which I'm looking in to. Can you please post a php info page so I can confirm?
What is a phpinfo() file? (http://docs.simplemachines.org/index.php?topic=479.0)
i believe i found a bug in this mod
when enabled, the jump to menu doesn't work , only the current board is displayed,
Before I install it. How will I know the ID of the url. Some mods depend on ID for the mods to work.
Dismal Shadow, can you please be more specific? I don't understand what you're asking.
S-Ace, I've already fixed that in the next version... it was an issue with the way the var scripturl javascript variable was changed (index.php was removed from the url). Thanks :)
Quote from: SlammedDime on December 28, 2009, 12:29:29 PM
Dismal Shadow, can you please be more specific? I don't understand what you're asking.
S-Ace, I've already fixed that in the next version... it was an issue with the way the var scripturl javascript variable was changed (index.php was removed from the url). Thanks :)
Ok This is the example of AD management:
Quote from: SlammedDime on December 28, 2009, 12:29:29 PM
Dismal Shadow, can you please be more specific? I don't understand what you're asking.
S-Ace, I've already fixed that in the next version... it was an issue with the way the var scripturl javascript variable was changed (index.php was removed from the url). Thanks :)
ok then
update.
problem still persists
sample = http://soumik-ace.com/projects/forum/
I would assume that it does, considering I haven't released the next version yet.
Hi SD,
I know you are very busy,
but what is your schedule to release the new version ?
Would you also try to fix the errors for PortaMX ?
Would it help, if I would donate 20 US$ for it ?
I really need the compatibility with PortaMX.
Could you look into it ?
Many thanks in advance.
Regards, Stefan.
tl;dr Don't know if this was reported yet, but there are two undefined indexes on fresh install.
http://smfchat.com/index.php?action=admin;area=logs;sa=errorlog;desc
8: Undefined index: simplesef
File: /home/thedonmu/public_html/smfchat/Sources/Admin.php
Line: 155
http://smfchat.com/index.php?action=admin;area=featuresettings;sa=simplesef
8: Undefined index: simplesef
File: /home/thedonmu/public_html/smfchat/Sources/ManageSettings.php
Line: 2043
Just a FYI ;)
Looks like it might be an issue with language strings... perhaps the cache wasn't refreshed... I don't think it's an error in the mod, but a bug in SMF...
Disabled caching and try again on a fresh install.
Hi SlammedDime,
This mod have a bug with reminder password.Can you Interest with this bug?
Also, just checked my server logs. Found two more errors on a vanilla install.
[01-Jan-2010 16:03:54] PHP Notice: Undefined index: http://amyru in /home/thedonmu/public_html/smfchat/Sources/SimpleSEF.php on line 458
[01-Jan-2010 17:22:13] PHP Notice: Undefined index: http://217 in /home/thedonmu/public_html/smfchat/Sources/SimpleSEF.php on line 458
Also, when navigating to a site using SimpleSEF, if you add /index.php it will throw a 500 Internal Server Error
OK, last one I promise..
When setting an extension, there is no check to prevent extra "." in the extension. So say if I want .aspx extensions, and I put in .aspx instead of aspx, the result URL will be ..aspx
Quote from: JBlaze on January 01, 2010, 01:17:55 PM
Also, just checked my server logs. Found two more errors on a vanilla install.
[01-Jan-2010 16:03:54] PHP Notice: Undefined index: http://amyru in /home/thedonmu/public_html/smfchat/Sources/SimpleSEF.php on line 458
[01-Jan-2010 17:22:13] PHP Notice: Undefined index: http://217 in /home/thedonmu/public_html/smfchat/Sources/SimpleSEF.php on line 458
Also, when navigating to a site using SimpleSEF, if you add /index.php it will throw a 500 Internal Server Error
OK, last one I promise..
When setting an extension, there is no check to prevent extra "." in the extension. So say if I want .aspx extensions, and I put in .aspx instead of aspx, the result URL will be ..aspx
I'd need to know exactly which URLs caused the undefined index errors above... and I need to know how PHP is running on your server... Apache Module, CGI, FastCGI, suExec, suPHP, etc
http://smfchat.com/ofniphp.php
As for the URL's, I have no idea. I was just pruning my error logs and those were there.
Ok, I've fixed the 500 Internal Server error when having index.php in the URL...
JB's undefined index error was due to an issue with his language file... no issues there...
As for the other undefined index, can't really solve that, but I'll put in some extra checks.... should have a new version in the next couple days to release.
Quote from: SlammedDime on January 01, 2010, 06:38:49 PM
should have a new version in the next couple days to release.
First great news of 2010 to me. I hope you solved the issue about boards with same name.
Regards.
I haven't implemented it, but I'm feeling good about fixing that HTTP 500 error that I'll code in support for that too before I release...
A 1.1.x version will be released at the same time as well.
Just for my stupdity
Can someone tell me where the difference between this Mod and PrettyUrl Mod?
I used prettyurl before, but like to decide what mod will be the better choice for future
They both essentially do the same thing, just in two totally different ways.
As far as I know, Pretty Urls only works with Apache web servers... this work with Apache, Litespeed, IIS7, and Lighttpd.
This mod also only makes changes to some admin files for admin settings, otherwise no other changes are made to the core SMF code.
Only uses up to 4 database queries on each page load, on average only 2, and depending on the page, can be none.
My advice would be to test out both and see which you prefer.
thanks for answer
it sounds better to me..i will give it a try.
sometimes i need to move boards...oh what did i search to find the issue long time ago..with a stored url in settings :P
OK Dime, got another one for you :P
I'm running SimplePortal 2.3.1 along with SimpleSEF 1.0.1 and I have SimplePortal set to standalone mode. My forum is located at http://forum.mysite.net and the SimplePortal standalone page is on http://mysite.net. The problem is that when going to the standalone page, it auto redirects to the boardindex at http://forum.mysite.net
Edit: OK, this only happens when the URL is set tio http://mysite.net instead of http://www.mysite.net
Edit 2: OK, it only happens when you have index.php on the URL ;) So in other words, if you navigate to http://www.mysite.com/index.php or http://mysite.com/index.php, it will redirect to the board index. If you keep out the index.php it won't redirect.
I've never played with SP in standalone mode before, so I'll have to test it out and see whats up.
Not sure if it's been reported yet, but this mod breaks OpenID signup. The error "Numeric request keys are invalid." is shown. The OpenID return URL seems to break, it looks like:
http://rtorrentweb.com/forum/openidreturn/register2/t/1263001117/sf/***/openid_sig/***/openid_signed/assoc_handle=identity=mode=op_endpoint=response_nonce=return_to=signed=sreg.dob=sreg.email=sreg.gender=sreg.nickname/openid_sreg_dob/1990-06-01/openid_sreg_email/daniel15-test@daniel15.com/openid_sreg_gender/M/openid_sreg_nickname/daniel15-test//
QuoteAs far as I know, Pretty Urls only works with Apache web servers... this work with Apache, Litespeed, IIS7, and Lighttpd.
And Cherokee! I posted a really big tutorial for Cherokee :P
Edit: Also, I made a new board, but its URL didn't work until I cleared the cache directory. Creating a board should probably clear the cache.
Also also, the RSS feed isn't working for me. It's rewriting the URL to http://rtorrentweb.com/forum/.xml/type/rss/, which is just showing random garbage:
��u�
Edit 2: It also seems to break the SMF version checking:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fss.dan.cx%2F2010%2F01%2F09-13.09.33.png&hash=737587cb5e6a458fbd55891f7f786b88ad4e04d2)
JS files are returning the same random stuff as the RSS feed O_o
I might uninstall for now :P
Or try disabling gzipping.
Sorry, Cherokee too... haha
Edit and Edit2 should hopefully be fixed by some small changes I've already made in prep for the next release. I'll have to do a bit more playing with gzip to be sure though.
As for openId, it's probably as simple as adding a value to the subaction or area boxes in the simplesef admin panel, but I'll have to investigate which one and I'll add it to the default install as well (probably 'register2', just not sure which to add it to yet (i'm at work right now). I've also made a change as to how urls are created/parsed which may alleviate that as well (key/value pairs will be comma seperated, with keys being seperated by '/': ie: myforum.com/sesc,12kjl123kjl12jk123lkj12jl123k/poll/msg,12345/)
QuoteI've also made a change as to how urls are created/parsed which may alleviate that as well (key/value pairs will be comma seperated, with keys being seperated by '/'
Will you have redirects from old URLs to new ones? Or is that not needed?
Also, quick edit is broken with this mod, but it seems that's already been reported (and you said you'd fix it next release) :)
old > new shouldn't really be needed... it doesn't affect links to topics or boards, mostly internal type links.
Daniel - can you check your PHP setup and tell me if you have zlib.output_compression enabled or if you have output_handler set to ob_gzhandler?
You can see a phpinfo file from this particular server at http://66.79.184.68/phpinfo.php. zlib.output_compression is disabled and output_handler is not set, however, Apache's mod_deflate is enabled with the following settings in /etc/apache2/mods-enabled/deflate.conf:
<IfModule mod_deflate.c>
# these are known to be safe with MSIE 6
AddOutputFilterByType DEFLATE text/html text/plain text/xml
# everything else may cause problems with MSIE 6
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/x-javascript application/javascript application/ecmascript
AddOutputFilterByType DEFLATE application/rss+xml
</IfModule>
I can't remember if this is enabled by default, or if I enabled mod_deflate myself via a2enmod. I'm using Debian Linux and its Apache and PHP packages.
I'm assuming SimpleSEF or SMF itself might be compressing the output, then Apache is compressing the output as well, which makes it "double compressed". The SMF site had this issue on some downloads for well over a year, a while ago (only exhibited itself in certain browsers though :P)
I think I fixed the issue with the compression... seems something was a little off in the fixXMLOutput function (which got called on the javascript files because they are served from the database and obexit is called with do_header as false) which caused the issue. I reworked the function to avoid the issue now.
Thanks for that deflate config... I can add that to my apache config for one of my virtual hosts on my test box to see how it goes with that and my newly configured function. I'm running apache/php on debian as well, although custom compiled, not through apt.
QuoteI reworked the function to avoid the issue now.
Excellent! :D
QuoteThanks for that deflate config... I can add that to my apache config for one of my virtual hosts on my test box to see how it goes with that and my newly configured function. I'm running apache/php on debian as well, although custom compiled, not through apt.
Of course, if you've set it up manually, you'll have to also add a line to load the module, I guess something like:
LoadModule deflate_module /usr/local/lib/apache2/modules/mod_deflate.so
I'm curious, how come you custom compiled it instead of using apt? Is there a feature you use that's not in the default Apache packages?
mainly for the experience, but also because I'm running all three versions of apache and multiple versions of php in different vhosts on those versions of apache... in all I have around 15vhosts between the three apache versions (running php as a module, suphp, suexec, straight cgi, etc) , and to keep things sane, it was easier to compile from source and properly arrange my directories how I wanted them.
First, thanks for this great SEF modification. When the new version SimpleSEF will be relased? The new version will solve the problem in the JS, isn't it?
Thanks.
Hopefully soon... I've run into a small issue with rss feeds and I'm not sure why. That's really the only thing holding me back. And yes, the JS issue is resolved.
Hi SD,
if you will make sure, that it runs with PortaMX 0.971-3 , I will give you a donation
in February, when I will receive my new advertisement money.
Many thanks in advance.
It is highly unlikely that it will ever work properly with PortaMX until Feline corrects the issues with that mod. The remaining issues she reported are not issues with this mod, they are issues with PortaMX and she fails to understand that. I am done with the discussion on PortaMX and will not answer any more questions related to it.
Well,
then maybe Feline will fix it,
when you have released a new version.
With what other Portal will it run okay ?
Will it run without problems with ezPortal or Simpleportal ?
Which portal did you or anybody else already test to work okay
with SimpleSEF ?
Many thanks.
A VEry Weird Situation
Really Weird
Look
My Links Are Arabic
EX: برنامج
when i use this mod
it is converted to english
EX: Bernamej
Hardly weird, in fact entirely intentional:
Quote from: SlammedDime on December 05, 2009, 10:08:40 PM
- UTF-8 compatible, changes non-ASCII characters to their closes US-ASCII equivilant.
Since Arabic characters are not valid in URLs, either I replace it with blank spaces, or the closest ASCII equivalent... I believe the latter to be the better option, no?
Just to update, I've implemented support for multiple boards with the same name, and I've also fixed an issue with gzip compression causing all sorts of issues, both in the admin center and with rss feeds and XML feeds.
I'll look at the simpleportal issue that jblaze reported earlier, but as a lot of people don't run SP in standalone mode, I may release an updated version of the mod without that fixed for the time being depending on what the fix may be.
Ok, I've fixed the SP Standalone mode issue, so as far as I can tell, this mod works great with SP. Hoping that my baby sleeps for at least an hour during her nap tomorrow, I'll package up all of the changes and release the next version.
Thanks for those of you who have been patient, it is appreciated.
SimpleSEF 1.0.2 has been released, now featuring support for SMF 1.1.x
So You Mean Even This Won't Support Arabic Chars .?
Yes, and no. Arabic characters are not valid in URLs, only ascii characters and a few special characters. So this attempts to convert any non-ascii characters into ascii equivilants.
New version (1.0.2) relased! :)
ty for the update!!!! ;D ;D
Just a questions. Installed everything, enabled the mod , modified the web.config but the links still don't change?!
Why is that? Is it because rewrite mod is not enabled or should I contact host support to find out?
Hey When I Activate THis
My SP StandAlone Shows ProbLem Loading
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
* This problem can sometimes be caused by disabling or refusing to accept
cookies.
Ah
And How Can We Do That ?
I MayHelp
Quote from: SlammedDime on January 15, 2010, 05:07:04 PM
Since Arabic characters are not valid in URLs, either I replace it with blank spaces, or the closest ASCII equivalent... I believe the latter to be the better option, no?
Correct, because they're not strictly valid in URLs, so no Arabic characters.
Dime: Seems there's a bug in 1.0.2 with using sa=news in RSS feeds.
hxxp://www.example.com/index.php?action=.xml;type=rss2;sa=news;board=1 is the URL in question, it's mapped to
hxxp://www.example.com/.xml/news/type,rss2/board-name/
The board name/number part is fine, but it's not accepting the news part of it right :(
Pete - in the admin panel, click on the [Edit] link for the actions, areas and subactions and add 'news' to the end of the subaction list and see if that gives you the desired result.
SAFAD - what is your site link where you're having the standalone issue?
Dime: We tried that, still isn't working as intended. :(
Remove 'news' from the areas list
Quote from: SlammedDime on January 16, 2010, 11:30:48 AM
Remove 'news' from the areas list
That seems to have done it. Thanks. :)
NP... as the rss feeds don't even use areas, I'll be hardcoding it to skip the area check in the next release, but that should at least fix it for now for ya :)
Sounds good to me. :)
/me slaps Dime in the direction of SimpleDesk.net :P
Quote from: Nas on January 16, 2010, 11:37:07 AM
Sounds good to me. :)
/me slaps Dime in the direction of SimpleDesk.net :P
I know, I was looking at it last night... looks good with my Urls... :D
It does look very good, even though I'm well known to not be a fan of SEF in general (because I still believe there isn't an SEO benefit), I won't argue it does look nicer.
I am curious to see how well it'll work with SimpleDesk itself though, haven't had time to try it on a beta build yet but I will...
I would agree that there really isn't an SEO benefit... just nice looking urls. :)
How does this mod affect sitemap or already indexed urls ?
This mod works perfectly with my sitemap mod, and as for already indexed urls, this mod redirects them with a 301 permanent redirect to their new url which should be supported by most, if not all, search engines.
hmm, i am scared because after uninstalling my pretty URL, Google started from 1 to index my urls again.
I have already installed the mod and i am enabling it now.
edit
webmaster tools
index.php?action=sitemap;xml OK Sitemap Jan 17, 2010 indexed urls = 0
after enabling the mod. i guess its gonna start from on again . right ?
another issue. though external one. i use facebook connect. with action
url. http://www.afrowall.com/index.php?action=facebook
now this mod changed it to forum/facebook.
that means it wont load. how do i change that ?
How to create a .htaccess file in forum directory
Quote from: Afro on January 16, 2010, 04:37:07 PM
hmm, i am scared because after uninstalling my pretty URL, Google started from 1 to index my urls again.
I have already installed the mod and i am enabling it now.
edit
webmaster tools
index.php?action=sitemap;xml OK Sitemap Jan 17, 2010 indexed urls = 0
after enabling the mod. i guess its gonna start from on again . right ?
another issue. though external one. i use facebook connect. with action
url. http://www.afrowall.com/index.php?action=facebook
now this mod changed it to forum/facebook.
that means it wont load. how do i change that ?
well yes it will start back at zero because none of the new urls are indexed. As google robots visit the existing indexed pages though, they will receive the 301 redirects and update accordingly. As for your 'facebook' action, you likely will have to go into the SimpleSEF config, and in the bottom section where I say 'edit at your own risk'... click the edit button and add facebook onto the end of the action list and save.
Quote from: pawan2002 on January 17, 2010, 02:07:29 PM
How to create a .htaccess file in forum directory
You need to use a quality text editor like Textpad or Notepad++ and create a .htaccess file on your local computer with the required info (See the SimpleSEF config page in your admin panel) and then upload it to your host via FTP.
Great. it just worked. you are da bomb.
i created .htaccess and moved to my smf 2RC2 dir and worked very well but when i tried same with my smf 1.11 forum crashed.
I'll need more info then just 'crashed'... any errors in your SMF error log or in your hosting error log? Any error_log files in your smf directory that contain anything related?
why doesn't Arnator Believe Anything about SEO
you Started Making Me THink That You Are A Bot !!
Quote from: SAFAD on January 18, 2010, 07:40:38 AM
why doesn't Arnator Believe Anything about SEO
you Started Making Me THink That You Are A Bot !!
lol,,,
yea he is a great critic of seo mods.. but he could be right you know
Yes Probabely He Is OK
No, I'm a critic of the "SEF URLs = SEO" myth.
My articles mod doesnt work with this...
http://www.afrowall.com/index.php?action=articles
i added articles in the actions window but no way ?
what next ?
error
Forbidden
You don't have permission to access /articles/ on this server.
Apache/2.2.3 (CentOS) Server at www.afrowall.com Port 80
in my forum is rewriting only some actions. boards and topic are only rewrited in board _n.n and topics in topic_nnn.html http://www.alblove.com/board_17.0/
http://www.alblove.com/topic_2421.0.html
Quote from: Afro on January 18, 2010, 10:48:43 AM
My articles mod doesnt work with this...
http://www.afrowall.com/index.php?action=articles
i added articles in the actions window but no way ?
what next ?
error
Forbidden
You don't have permission to access /articles/ on this server.
Apache/2.2.3 (CentOS) Server at www.afrowall.com Port 80
Do you actually have a real folder named articles? If so, that'll be the problem... you'll need to either rename the the action in the code, or rename the folder and change any code/html that points to it.
Quote from: alblove on January 18, 2010, 12:16:51 PM
in my forum is rewriting only some actions. boards and topic are only rewrited in board _n.n and topics in topic_nnn.html http://www.alblove.com/board_17.0/
http://www.alblove.com/topic_2421.0.html
When you enabled it in the configuration, did you turn on the 'Simple' option? If so, that would be why.
QuoteDo you actually have a real folder named articles? If so, that'll be the problem... you'll need to either rename the the action in the code, or rename the folder and change any code/html that points to it.
hmm...which is the easy way out ? i dont mind doing any for them to make the mod work...
O
You Hear that Dimme ?
He Says SEF SUx
Don't Forgive Him !!
(And I Will Take His Place In The Team HEhehe)
Depends how many links you have going into that articles directory.
SAFAD:
Quote from: SlammedDime on January 16, 2010, 02:02:49 PM
I would agree that there really isn't an SEO benefit... just nice looking urls. :)
There you have it from the author of the mod. And note that I never said SimpleSEF sucked, simply that SEF (search engine friendly) URLs do not provide search engine optimisation.
Also, please note that I am not currently on the team therefore you cannot "take my place".
Quote from: Arantor on January 18, 2010, 02:26:05 PM
Depends how many links you have going into that articles directory.
SAFAD:
Quote from: SlammedDime on January 16, 2010, 02:02:49 PM
I would agree that there really isn't an SEO benefit... just nice looking urls. :)
There you have it from the author of the mod. And note that I never said SimpleSEF sucked, simply that SEF (search engine friendly) URLs do not provide search engine optimisation.
Also, please note that I am not currently on the team therefore you cannot "take my place".
I installed it today. i have only two links going in there at the moment
ARni
Don't Go Mad
Just Have The Soul Of Humor (Fun)
But
I Stil Want To Take YOur Place :p
Hi.
I installed SimpleSEF for smf 1.1.11, created the web.config file with all details in it and put it on the root of my forum, enable the mod in the admin but nothing changes!!! The links don't change. I emailed my host and they said that the server supports re-write module. I'm on IIS7.
Any idea?
Thanks!
If the links themselves don't change, then it would have nothing to do with the web.config file. After you enabled the mod then saved, did the checkbox stay checked (signifying that it is still enabled)?
Yes. The checkbox stay checked. :o
Are there any errors in your error log?
Can you check the settings table in the database and find this variable and make sure it's value points to the right file...
integrate_pre_include
or run this query in phpMyAdmin if you have it...
SELECT variable, value FROM smf_settings WHERE variable = "integrate_pre_include" LIMIT 1
The value should be the full path to SimpleSEF.php inside your Source directory.
I see that url's with a user id don't work on all situation .. specially I fond that on
action=reminder;sa=setpassword;u=31;code=xxxxxxxxx
This url is formed as:
/reminder/setpassword/user_31/code,xxxxxxxxx
But that not work, run in a error in the reminder service.
I have changed all the u=## to /u,## and all works correct.
changes:
$query_parts['user'] = getUserName($params['u']);
to:
$query_parts['u'] = getUserName($params['u']);
in the getUserName($id) change twice:
return 'user' . $modSettings['simplesef_space'] . $id;
to:
return 'u,'. $id;
Also we have developed a mod, to get SSEF 1.0.2 to work with PortaMx v0.971-2
Fel
Quote from: SlammedDime on January 18, 2010, 08:16:34 PM
Are there any errors in your error log?
Can you check the settings table in the database and find this variable and make sure it's value points to the right file...
integrate_pre_include
or run this query in phpMyAdmin if you have it...
SELECT variable, value FROM smf_settings WHERE variable = "integrate_pre_include" LIMIT 1
The value should be the full path to SimpleSEF.php inside your Source directory.
I went into my database and found the variable.
It shows like this :
integrate_pre_include D:Hosting323969html/Sources/SimpleSEF.php
This should show right?
Hmm..should I reinstall the mod?
--- i did---- ...no luck
That path isn't correct... it's missing some slashes which is probably the heart of the issue. If you look at your Settings.php file, how is $sourcedir formatted?
It should have slashes like the following...
c:\\inetpub\\wwwroot\\smf\\simplesef (this is MY setup... i'm just wanting to point out the double backslashes)
Quote from: feline on January 18, 2010, 08:18:28 PM
I see that url's with a user id don't work on all situation .. specially I fond that on
action=reminder;sa=setpassword;u=31;code=xxxxxxxxx
This url is formed as:
/reminder/setpassword/user_31/code,xxxxxxxxx
But that not work, run in a error in the reminder service.
I have changed all the u=## to /u,## and all works correct.
changes:
$query_parts['user'] = getUserName($params['u']);
to:
$query_parts['u'] = getUserName($params['u']);
in the getUserName($id) change twice:
return 'user' . $modSettings['simplesef_space'] . $id;
to:
return 'u,'. $id;
Also we have developed a mod, to get SSEF 1.0.2 to work with PortaMx v0.971-2
Fel
Code changes shouldn't be\aren't necessary... simply adding 'setpassword' to the user_action list might/should resolve the issue. Looking at the admin panel now though, I forgot to include that new array with a change I made to SimpleSEF.php, so the next version will have that extra list in the admin center. While I respect you trying to make the two mods work together, if you don't understand the code flow, please don't try to suggest changes that could only make more issues. On top of that, you're code changes above work only because you're running SimpleSEF in 'Simple' Mode... those changes would still cause the mod to fail in 'Normal' mode.
You of all people should know that the idea is that modular coding is the ideal way to go... don't do special cases, make generalizations that work for a number of things and code around that, which is exactly what keeps the code compact here. Everything you keep suggesting is making more and more special cases which really don't need to be done. Knowing so much about OOP, you should know this.
As for the issue you are having with dynamic theme and language support that you had mentioned on your site... the issue only occurs because of the way you've chosen to implement changing those items via your portal, so it is hardly fair to call it a bug in this mod, which it isn't. Since it isn't a bug in this mod, might I suggest some code changes for your javascript and PHP to make it work, not only with this mod, but with any future change that others might make to code.
In your changing function, rather than echoing the php $scripturl variable, you can (should) use the javascript variable "smf_scripturl", which is declared in the head of the page. Using this will prevent SimpleSEF from changing the URL. This will cause a 301 redirect however. You mentioned that you can't use a 301 because you are using POST data to transfer the referring URL. IMO, this is a poor way to go about that. Three better alternatives are
1) checking the $_SESSION['old_url'] variable that SMF sets that should contain the URL anyway, so there is no need to even transport it in the POST request or
2) Change for form method from POST to GET, and use the appropriate variables in your PHP code, or
3) Base 64 encode the URL in the javascript and call window.location to change the page url to change the language/theme, then decode it in the PHP source and redirect accordingly, rather than submitting a form, as form submission isn't really required here.
If it was a valid bug in this mod, I would be happy to address it, however it isn't.
Also, I gave Arantor an example last night of how your implementation of the "." in the URL is semantically incorrect.
You do a preg_match_all to capture the data from the URL and then use $match[0][0] if it exists to find the page to go to. If you look at your small block of code that sets $match[0][0], you'll notice the following issue: You do two 'unset' calls to unset the REQUEST and GET parameters. Here is the issue with it... you're possibly unsetting variables that don't even exist. If the page I am calling is my.cat, then you set your $PageReq variable to my.cat ($match[0][0]), then you try to unset($_REQUEST[$match[0][0]]). In reality, you're trying to unset $_REQUEST['my.cat'], but in practice you want to unset$_REQUEST(and $_GET)['my_cat'], as PHP transforms the '.' into '_'. Herein likes the issue. Say I make a PHP block that accepts a GET parameter or my_cat to do something. So my URL would be formatted as so:
index.php?my.cat&my_cat=4
So lets assume you make a change above to properly unset $_REQUEST/$_GET['my_cat'], well if you unset my_cat (because remember, my.cat does not exist in the GET or REQUEST arrays, it is my_cat because of what PHP does), you've just unset my my_cat variable and now my block fails because the variable is no longer there, thus a a bug in PortaMX.
Well .. a log story ;) I will get a shorter answer ..
1.. the reminder function
in this case a 'user' don't work, while the function setPassword2() make a GET['u'], the result is a 'no access' error and a error_log entry 'unknown index u'. And .. the modify from 'user_##' to 'u,##' works in 'Normal' mode as membername_##. But I will test the adding of 'setpassword' to the user_action.
2.. for the dynamic theme / language change we need no modification on SSEF, that is handled in the block code itself. Only the action 'theme' and area 'language' must be removed from SSEF settings.
3.. the modification we have made, do follow:
a) skiped not own url parsing (while this fills the apache error log extensive)
b) added conversion of existing SMF-sef urls in messages
c) added (simple) handling for PortaMx page request
A version with all these changes runs on our site without any error or problems.
You mod in not bad .. but it's need small fixes/changes. Best way to test is that what I do .. run on a productive site and check all the logs in cyles of 2 hours. And so I don't understand your reaction on my postings :(
If you need more detailed information, let us known.
Feline
Many many thanks to Feline and SlammedDime to make this compatible !
You 2 are really great programmers !
Many thanks again.
Regards, Stefan.
i have a problem with comments in aeva media gallery.
i can't add coments.
http://www.zeriyt.info/media.html;sa=comment;in=5641 (link with seo4smf - smf 1.1.11) work good
http://www.alblove.com/media/item/in,5648/ ( with simplesef - smf 2.0 RC2) dont work it redirect me in te gallery index.
pls how can i fix it ?
feline, can you please explain and elaborate on 3a and 3b
alblove - I'll have to test with the media gallery when I have some more free time
Edit: I just followed your second link above and it loads a pictures of a beautiful young lady in a black bathing suit... I don't see any issues, looks like it is working exactly as it should.
Edit2: After browsing around your site even more, I'm quite pleased at how well SMG/Aeva works with this mod.
QuoteDo you actually have a real folder named articles? If so, that'll be the problem... you'll need to either rename the the action in the code, or rename the folder and change any code/html that points to it./quote]
i am still on this.. what should i rename the folder to and where do i make the necessary changes to that effect ?
Rename the folder to anything but articles. And then rename anything points to it to point to the new name... that's all outside the scope of this mod though.
The way SimpleSEF works... when an URL is passed to your SMF directory, the .htaccess checks if that is a real path/folder or a real file... if so, that real folder or file is returned, otherwise, the entire URL is passed to SMF for SimpleSEF to parse. If you have an action=articles and a folder also named articles, the folder takes precedence.
LOL SLIME...
Please speak English.
lets say i changed the articles folder to news..
lets also assume that i have not posted any article there ,
where else needs to be renamed... ?
nothing
Ok i changed the folder to news and the articles seems to be working..that easy ?
i will be checking on it.... thanks Slamm
naw not easy... *simple* :D
yes it works very good but i can't add comments to pictures
i you want i cancrate a test user for you to try ...
Quote from: SlammedDime on January 19, 2010, 03:38:26 AM
feline, can you please explain and elaborate on 3a and 3b
3a) skipped not own urls
find:
// Parse the url
$url_parts = parse_url(str_replace($boardurl, '', $_SERVER['REQUEST_URL']));
add before:
// skip external urls
if(strpos($_SERVER['REQUEST_URL'], $boardurl) === false)
return;
3b) conversion of existing SMF-sef urls in messages
find:
$url_parts = parse_url(str_replace(array(',', '&', ';'), array('=', '&', '&'), $url));
replace:
// handle exist SMF-sef urls
$url = preg_replace('~[\d+\.]html~', '', $url);
$url_parts = parse_url(str_replace(array(',', '&', ';'), array('=', '&', '&'), str_replace($boardurl .'/index.php/', $scripturl .'?', $url)));
For the reminder problem, I have add
'reminder' to the simplesef_useractions. That worked.
Portamx page request ..
It would be very good if you can add a hook for this, so we can handle that inside pmx.
I have tested that, make fixes on Pmx and add a special call for SSF in the function
create_sef_url($url) find:
parse_str(!empty($url_parts['query']) ? $url_parts['query'] : '', $params);
replace with:
// handle PortaMx page requests
if(function_exists('portamx_ssef_parsestr'))
$params = portamx_ssef_parsestr(!empty($url_parts['query']) ? $url_parts['query'] : '');
else
parse_str(!empty($url_parts['query']) ? $url_parts['query'] : '', $params);
So all worked best I think ..
Thanks,
Fel
how about sa=connect;step.
how do i add this to the sub action window ?
connect,step, or connect_step ?
also, the /pm/send
doesnt work on my forum. so i cant send messages to members. again.
i checked the action and sub action and found the corresponding words there.
what else can be done ?
my profile account settings doesnt work also...after setting and save, it doesnt change anything
Fel - 3a should never happen... convertQueryString is only called from Load.php, so the SMF Script must have run so the URL must belong to this board. That is also a less than desirable fix because it relies on the $boardurl variable, but $boardurl is not officially set in stone until Load.php's loadTheme() function which isn't called until AFTER convertQueryString due to the forum_alias_urls modSetting. If my boardurl is http://myboard.com but I have an alias of http://yourboard.com and I navigate to http://yourboard.com/general-discussion/, then SimpleSEF will fail.
However, I just realized that I myself am using $boardurl thus a bug in SimpleSEF because it won't respect the forum_alias_urls setting... this will be fixed in the next release
3b I'll have to look at this in more detail... there should be better ways to handle this.
For portamx_ssef_parsestr - I'd like to see this function in it's entirety before making this change. I know you have likely coded it to fix your '.' issue in URLs, and while I'm not entirely happy about supporting this because I believe it to be improper URL handling with PHP, I will entertain it under the condition that all support requests that arise from it will be directed to PortaMX and if I find that it causes other issues, I will have to remove it.
Afro, for your first question, you only add 'connect'. 'step' is neither an action, subaction or area, it's simply a URL parameter that will be handled in a different way.
For PM sending, do you get any errors? I just tested sending a PM on my SSEF test board and it worked find with no errors.
Same thing with the profile account settings... I had no issues there either. Please check your error log for any possible errors.
In the next verison I'll add some debugging tools that will make this a bit easier to help troubleshoot... unfortunately a lot of issues that people may experience are site specific due to server configs or mods installed, and rather than FTP'ing into lots of sites, I'll put in a few lines of code to give debug output in the forum error log under certain conditions.
hey SlammedDime did you try to add comments in de aeva media gallery in my site ? pl is very important to fix it ...
Quote from: SlammedDime on January 19, 2010, 02:41:13 PM
For portamx_ssef_parsestr - I'd like to see this function in it's entirety before making this change. I know you have likely coded it to fix your '.' issue in URLs, and while I'm not entirely happy about supporting this because I believe it to be improper URL handling with PHP, I will entertain it under the condition that all support requests that arise from it will be directed to PortaMX and if I find that it causes other issues, I will have to remove it.
The code in PortaMx
/**
* handle SimpleSEF url's for page request
* Check the requests and return the params array.
*/
function portamx_ssef_parsestr($query)
{
$query = !empty($query) ? $query : '';
parse_str($query, $params);
// check page request
preg_match_all('/[a-zA-Z0-9\.\-\_]+/', $query, $match);
if(!empty($match) && count($match[0]) == 1)
{
parse_str($match[0][0], $match[0][1]);
list($match[0][1]) = array_keys($match[0][1]);
// legal page request?
if(empty($params[$match[0][0]]) && empty($params[$match[0][1]]))
{
unset($params);
$params[$query] = '';
}
}
return $params;
}
Fel
Quote
Afro, for your first question, you only add 'connect'. 'step' is neither an action, subaction or area, it's simply a URL parameter that will be handled in a different way.
For PM sending, do you get any errors? I just tested sending a PM on my SSEF test board and it worked find with no errors.
Same thing with the profile account settings... I had no issues there either. Please check your error log for any possible errors.
No errors..it just doesnt open the SEND PM page.
Quote from: alblove on January 19, 2010, 02:55:41 PM
hey SlammedDime did you try to add comments in de aeva media gallery in my site ? pl is very important to fix it ...
Sorry, didn't check it yet. I'll have to install it locally and test it out.
Agro - check the 'Areas' array in the admin panel and see if 'send' is in the areas. if it is, remove it. 'send' should be in the subaction array.
Quote from: SlammedDime on January 19, 2010, 04:15:54 PM
Agro - check the 'Areas' array in the admin panel and see if 'send' is in the areas. if it is, remove it. 'send' should be in the subaction array.
ok, this seems to solve the pm issues..
remains profile settings..
i can't PM :(
when i click on reply it opens me the same PM with no editor and no place to post the PM
see the post right above yours
Ok slamm...this ''send' seems to add itself back there every now and then. i remove it and it comes there again..how do we stop that ?
You must have a mod that has an area of 'send', thus it being in both. It can't be stopped, but I can't try and make a workaround for it.
which one could be doing that ?
SMF Links 2.1.2 [ Install Mod ] [ List Files ] [ Delete ]
3. SA FBConnect 0.1 RC1-2
4. SMF Articles 1.2a
5. Sitemap 2.1.0 [ Uninstall ] [ List Files ] [ Delete ]
7. SimpleSEF
8. NoFollow All Links 1.2 [ Uninstall ] [ List Files ] [ Delete ]
9. Share This Topic 1.3 [ Uninstall ] [ List Files ] [ Delete ]
12. Registered Links 2.0.1
13. Global Headers Footers 2.0
14. Reg Bar 1.0.2
15. Ad Managment 2.3.6
16. Recent Topics On Board Index
I haven't the slightest idea.... if I had to guess, I'd say Share This Topic.
In the spirit of being 'simple', it may take me a day or two to put something into the admin panel that is easy to use.
ok, i will be waiting..i like the mod a lot but it is stopping me from doing things. it will be sad for me to uninstall it...
I never added such a thing to the earlier versions of Share This Topic, so I'd say it isn't that. The FB Connect, perhaps?
Quote from: Arantor on January 21, 2010, 08:38:51 AM
I never added such a thing to the earlier versions of Share This Topic, so I'd say it isn't that. The FB Connect, perhaps?
what exactly are we looking for ?
maybe i could ask the fb connect guy .
Anything that creates and/or uses area=send.
SimpleSEF, when activated, messes up our board. It displays a few thousand lines all starting with "SimpleSEF adds" and then the next character in the expected output. Example:
SimpleSEF adds 0.0483<
SimpleSEF adds 0.0483
SimpleSEF adds 0.0483!
SimpleSEF adds 0.0483
SimpleSEF adds 0.0483D
SimpleSEF adds 0.0483
SimpleSEF adds 0.0483O
SimpleSEF adds 0.0483
SimpleSEF adds 0.0483C
SimpleSEF adds 0.0483
SimpleSEF adds 0.0483T
SimpleSEF adds 0.0483
SimpleSEF adds 0.0483Y
SimpleSEF adds 0.0483
SimpleSEF adds 0.0483P
SimpleSEF adds 0.0483
SimpleSEF adds 0.0483E
SimpleSEF adds 0.0483
SimpleSEF adds 0.0483
SimpleSEF adds 0.0483
SimpleSEF adds 0.0483h
SimpleSEF adds 0.0483
SimpleSEF adds 0.0483t
SimpleSEF adds 0.0483
SimpleSEF adds 0.0483m
As you can see, these are the first few characters in our board's source.
Is there any way to fix this?
Quote from: Arantor on January 21, 2010, 08:44:40 AM
Anything that creates and/or uses area=send.
i dont get it.. what does that mean in a simple english ?
jhaagmans: So... what version of SMF, what server configuration?
Afro: Take a look at the URLs that parts of the forum generate, especially such as the admin area. The URL contains action=admin to state it's the admin section, then has area=something in the URL for the different parts of the admin panel. You're looking for anything that uses area=send in the URL.
Quote from: Arantor on January 22, 2010, 10:58:34 AM
jhaagmans: So... what version of SMF, what server configuration?
Afro: Take a look at the URLs that parts of the forum generate, especially such as the admin area. The URL contains action=admin to state it's the admin section, then has area=something in the URL for the different parts of the admin panel. You're looking for anything that uses area=send in the URL.
ok, checking on it
Is there an advantage to using this over Pretty URL
I can't get it to enable SimpleSEF, I spoken with my host, this what they said:
"We do support mod_rewrite support on our shared serves and it is already enabled, We do not support Rewrite/web.config (IIS7) as we have Linux OS installed on our shared servers."
So SimpleSEF should work, but can't enable it everytime I check the box and save...it returned uncheck.
Quote from: bjraines on January 22, 2010, 11:49:40 AM
Is there an advantage to using this over Pretty URL
I'm a bit biased here, but I'll say yes for a number reasons...
Dannii is no longer a member here at SM.org, so it will hard to get support for Pretty Urls
This mod makes no edits to the core of SMF to actually work, only edits to the admin source files to display settings
Full UTF-8 compatibility regardless of iconv or mbstring support on your host
Supports multiple web servers due to the simplistic nature of the rewrite file
Quote from: Dismal Shadow on January 22, 2010, 01:24:29 PM
I can't get it to enable SimpleSEF, I spoken with my host, this what they said:
"We do support mod_rewrite support on our shared serves and it is already enabled, We do not support Rewrite/web.config (IIS7) as we have Linux OS installed on our shared servers."
So SimpleSEF should work, but can't enable it everytime I check the box and save...it returned uncheck.
Click the [Help] link in your admin panel settings for SimpleSEF and make sure that you have a .htaccess file in your root SMF directory that contains what is described in the help section.
cool, i will test it out this weekend!
Quote from: Arantor on January 22, 2010, 10:58:34 AM
jhaagmans: So... what version of SMF, what server configuration?
Afro: Take a look at the URLs that parts of the forum generate, especially such as the admin area. The URL contains action=admin to state it's the admin section, then has area=something in the URL for the different parts of the admin panel. You're looking for anything that uses area=send in the URL.
is there a way to change the http://www.afrowall.com/pm/send/ to another thing ? something like http://www.afrowall.com/pm/newpm
or maybe disallow the simpleSEF to modify the pm area at all ?
QuoteClick the [Help] link in your admin panel settings for SimpleSEF and make sure that you have a .htaccess file in your root SMF directory that contains what is described in the help section.
I searched for .htaccess file using the 'search function'...it's there in package folder but it's hidden somehow because it's not there. :-\
I need to take a decission about this mod slamm... its a very beautiful mod i like a lot.
just that it wont let members edit their profiles or send messages.
its driving me crazy and i have to disable it now and then to allow people edit profiles.
all this works as soon as i disable the mod.
i dont know if its conflicting with another mod or not.
the only thing i m sure about now is that i m tired.
see if there is a way to bypass somethings i the area or subaction field.
Yo, Dime, found another bug.
Trying to send a PM no work - just ignores the URL and goes back to /pm/send/ (there's area=send, methinks!!) if going to 'new message' or /pm/send/{username}-{user_id}/f,inbox/pmsg,{pm_id}/ if replying.
I have tested all function and have corrected some keyword in actions, areas, subsctions and useractions.
These params I use:
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,trackip,about:mozilla,about:unknown,unread,unreadreplies,verificationcode,viewprofile,vote,viewquery,viewsmfile,who,.xml,xmlhttp
Areas:
account,attachmod,authentication,corefeatures,featuresettings,forumprofile,groupmembership,groups,index,issuewarnings,lists,logs,mailqueue,manageattachments,manageboards,managecalendar,managesearch,modlog,modsettings,news,notice,notification,paidsubscribe,permissions,postmod,postsettings,regcenter,reports,securitysettings,sengines,serversettings,showposts,smileys,subscriptions,summary,tracking,userwatch,viewgroups,viewwarning,warnings,introduction,main_menu,board_index,message_view,topic_view,registration_screen,logging_in,password_reminders,modify_profile,posting_topics,bbcode,messages,searching,profile_summary,sending_pms,statistics,pmprefs,ignoreboards,deleteaccount,modifying_profiles,message_index
Subactions:
add,admin,agreement,all,approve,attach,attachements,attachments,attachpaths,avatars,banlog,basic,bbc,board,browse,buddies,byAge,bySize,cache,cat,censor,check,clear,closed,cookie,copy,createmsgindex,database,delete,done,download,downloadlang,edit,editholiday,editicon,editicons,editlang,edits,editsets,editsmileys,editspiders,edittrigger,errorlog,examine,execute,folder,general,hide,holidays,ignore,index,install,installed,ip,karma,killall,layout,list,loads,log,mailingcompose,mailingmembers,mailingsend,maintain,maintenance,manlabels,manrules,members,messages,method,moderation,modify,modifyset,modifysmiley,modifyuser,modlog,move,moveAvatars,options,packageget,perms,pick,pmactions,post,postmod,posts,profile,profileedit,prune,pruning,query,register,remove,removeall,repair,requests,resend,reservednames,reset,routine,search,selectgroup,selectTopics,send,sendtopic,setpassword,sig,simplesef,spam,spiderlog,spiders,splitSelection,stats,taskedit,tasklog,templateedit,templates,topics,user,view,viewsub,weights,collapse,on,topic,email,unread,tracked,picktype,setpassword2,expand,manager,setpassword,activity,unreadreplies,member,open,report,send2,settings,search2
Useractions:
profile,pm,activate,buddy,reminder
Fel
Quote from: feline on January 22, 2010, 06:39:57 PM
I have tested all function and have corrected some keyword in actions, areas, subsctions and useractions.
These params I use:
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,trackip,about:mozilla,about:unknown,unread,unreadreplies,verificationcode,viewprofile,vote,viewquery,viewsmfile,who,.xml,xmlhttp
Areas:
account,attachmod,authentication,corefeatures,featuresettings,forumprofile,groupmembership,groups,index,issuewarnings,lists,logs,mailqueue,manageattachments,manageboards,managecalendar,managesearch,modlog,modsettings,news,notice,notification,paidsubscribe,permissions,postmod,postsettings,regcenter,reports,securitysettings,sengines,serversettings,showposts,smileys,subscriptions,summary,tracking,userwatch,viewgroups,viewwarning,warnings,introduction,main_menu,board_index,message_view,topic_view,registration_screen,logging_in,password_reminders,modify_profile,posting_topics,bbcode,messages,searching,profile_summary,sending_pms,statistics,pmprefs,ignoreboards,deleteaccount,modifying_profiles,message_index
Subactions:
add,admin,agreement,all,approve,attach,attachements,attachments,attachpaths,avatars,banlog,basic,bbc,board,browse,buddies,byAge,bySize,cache,cat,censor,check,clear,closed,cookie,copy,createmsgindex,database,delete,done,download,downloadlang,edit,editholiday,editicon,editicons,editlang,edits,editsets,editsmileys,editspiders,edittrigger,errorlog,examine,execute,folder,general,hide,holidays,ignore,index,install,installed,ip,karma,killall,layout,list,loads,log,mailingcompose,mailingmembers,mailingsend,maintain,maintenance,manlabels,manrules,members,messages,method,moderation,modify,modifyset,modifysmiley,modifyuser,modlog,move,moveAvatars,options,packageget,perms,pick,pmactions,post,postmod,posts,profile,profileedit,prune,pruning,query,register,remove,removeall,repair,requests,resend,reservednames,reset,routine,search,selectgroup,selectTopics,send,sendtopic,setpassword,sig,simplesef,spam,spiderlog,spiders,splitSelection,stats,taskedit,tasklog,templateedit,templates,topics,user,view,viewsub,weights,collapse,on,topic,email,unread,tracked,picktype,setpassword2,expand,manager,setpassword,activity,unreadreplies,member,open,report,send2,settings,search2
Useractions:
profile,pm,activate,buddy,reminder
Fel
The problem with that Fel is that the mod Automatically adds to those as it finds them in URLs.
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.
Quote from: Arantor on January 22, 2010, 06:15:58 PM
Yo, Dime, found another bug.
Trying to send a PM no work - just ignores the URL and goes back to /pm/send/ (there's area=send, methinks!!) if going to 'new message' or /pm/send/{username}-{user_id}/f,inbox/pmsg,{pm_id}/ if replying.
Arantor...also check about editing your profile. it doesnt work also.
I have uninstalled for the moment until everything is fine
No, I'm able to edit my profile just fine.
then the fb connect mod is conflicting with mine
Quote from: Arantor on January 22, 2010, 10:58:34 AM
jhaagmans: So... what version of SMF, what server configuration?
SMF 1.1.11 on Apache. I'm working on a client's server, so not entirely sure about the full setup, but the "SimpleSEF adds" suggests that the problem lies somewhere in the added PHP code. Of course, disabling SEF (so not uninstalling it) makes the problem go away, but I have to do that directly in the database. It -could- be a problem with another mod interfering.
Unfortunately the Pretty URL mod won't work for us as well as it has a problem with single quotes in board names.
Never mind, I got Pretty URLs working by adding a sub for single quotes.
on more problems ...
a url like myurl/index.php?anystring;parm=value is formed to myurl/parm,value/anystring/.
I have fixed that temporary as
foreach ($params as $key => $value)
{
if ($value == '')
{
if(empty($sefstring2))
$sefstring2 .= $key . '/';
else
$sefstring3 .= $key . '/';
}
else
Now tell me, that the url is't conform with php or rfc 8)
Fel
No, that URL is fine. SMF also does it itself on more than one occasion.
Simple fact is the minute you start being clever rewriting URLs, it's going to go wrong somewhere :(
I thinks, it's a normal process .. the mod is good, but have a lot of problems.
All user they use that mod extensive can help to find all bugs ;)
For the above problems I have found a good fix:
if ($value == '')
{
if(empty($query_parts) && empty($sefstring2))
$sefstring2 .= $key . '/';
else
$sefstring3 .= $key . '/';
That will order the params correct ...
Fel
Quote from: Arantor on January 23, 2010, 09:32:13 AM
No, that URL is fine. SMF also does it itself on more than one occasion.
Simple fact is the minute you start being clever rewriting URLs, it's going to go wrong somewhere :(
you make a lot of sense here araton. lol. i totally agree
The parameters can be in any order Fel, it doesn't really make a difference as far as PHP is concerned, as long as I read them back properly on a request.
So 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.
Fel - I do appreciate your input, but it's hardly fair to say this mod has a lot of bugs... it really does not. As Pete said, when you try to get fancy rewriting urls, things crop up on non standard SMF installs. I do appreciate all of the testing though. With Dannii being unable to support Pretty Urls here, I think this mod may become more popular, so I welcome feedback.
Quote from: Dismal Shadow on January 22, 2010, 03:04:38 PM
QuoteClick the [Help] link in your admin panel settings for SimpleSEF and make sure that you have a .htaccess file in your root SMF directory that contains what is described in the help section.
I searched for .htaccess file using the 'search function'...it's there in package folder but it's hidden somehow because it's not there. :-\
I guess I had to uninstall it since it's no use to me with a hidden .htaccess file which I had no way to edit. Me think it's the host.
The .htaccess file you need to look at is the on in the main SMF directory, the same place as index.php and SSI.php. You need to use an FTP client that does not hide 'hidden' files. On Unix systems, files that begin with a '.' are considered hidden files.
Quote from: SlammedDime on January 23, 2010, 03:55:39 PM
The .htaccess file you need to look at is the on in the main SMF directory, the same place as index.php and SSI.php. You need to use an FTP client that does not hide 'hidden' files. On Unix systems, files that begin with a '.' are considered hidden files.
it's not in the SMF directory but on the root, the only hidden file I see is .ftpquota in SMF directory. Maybe I can create .htaccess using notepad and add the code there?
Yes, that's what you'll have to do. The mod attempts to create one for you, but if it can't, you need to do it on your own.
Quote from: SlammedDime on January 23, 2010, 05:24:24 PM
Yes, that's what you'll have to do. The mod attempts to create one for you, but if it can't, you need to do it on your own.
Ok so it's simple as that?
Just add the
QuoteRewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
and save it as .htaccess.txt?
No, just .htaccess
Windows doesn't like it though so you may have to upload it as .htaccess.txt and rename it over FTP.
Quote from: Arantor on January 23, 2010, 05:33:28 PM
No, just .htaccess
Windows doesn't like it though so you may have to upload it as .htaccess.txt and rename it over FTP.
uh...I'm not using Windows...I am on Mac.
....uploaded...well it crashed the forum. Guess that didn't work. Deleted .htaccess
It's back to normal.
Quote from: SlammedDime on January 23, 2010, 03:28:22 PM
The parameters can be in any order Fel, it doesn't really make a difference as far as PHP is concerned, as long as I read them back properly on a request.
Hmm .. not in all situations. when I call a SSI service, the will have parameters in a correct order, that don't not work. It's a problem for you to get the parameters in the order as requested?
Quote
Fel - I do appreciate your input, but it's hardly fair to say this mod has a lot of bugs... it really does not.
That I have not say .. I say
a lot of problems .. and that is absolutely correct, I think and I give here many informations and tips, more than any other.
Have you any problem with me or why you attack me at the time?
Fel
Thanks SlammedDime, I've installed 1.0.2 and it works properly. No bugs or problems so far. My users will give feedback if anything wrong happens.
Btw, you solved the issue about boards with same name, good to see it; but is there any way to change it? I'd like to show them not as 'boardname2' but 'boardname-2'
Unfortunately doing the way you propose will mess with which page of that board to show... if you have boards with multiple pages, look at their links and you'll understand why.
Oh, I see. It wasn't anything vital anyway.
Is there a way to not use and extension after the url, urls without .html or .php
settings were not saved
i clicked save and went back to same screen with no check box in enable SimpleSEF
Quote from: bjraines on January 25, 2010, 01:14:45 PM
Is there a way to not use and extension after the url, urls without .html or .php
Unfortunately not, it is how I determine if the link is for a topic or not.
Quote from: bjraines on January 25, 2010, 01:18:01 PM
settings were not saved
i clicked save and went back to same screen with no check box in enable SimpleSEF
Please see the second FAQ on the first post of the topic.
Quote from: SlammedDime on January 25, 2010, 01:38:14 PM
Quote from: bjraines on January 25, 2010, 01:14:45 PM
Is there a way to not use and extension after the url, urls without .html or .php
Unfortunately not, it is how I determine if the link is for a topic or not.
Thanks for the quick response. This is unfortunate as it makes a conversion from Pretty URL to your great mod undesirable, for some forums that would deindex and reindex 100s of thousand of pages.
Also the convention ever so leans towards no extension for urls these days, thanks to wordpress and other popular content management systems
SlammedDime,
Please forgive me because I assure you I am most appreciative of this mod especially considering the stance taken by the Pretty Url moderator
but I do not understand completely why the extension are necessary?
You say here: Unfortunately not, it is how I determine if the link is for a topic or not.
Why is this determination needed?
File extension are like .html and .php are just that, extensions reserved for actual server files, which database generated pages are not either, they are not files but query generated pages
SMF v1.1.11 & TP 0.9.8.3
could someone help me, i made the neccessary mods to htaccess and this is the page that is thrown up: http://ihf.lp.pl/forums/
if you don't want to follow the link this is what is thrown up and it continues for ages:
SimpleSEF adds 0.03824<
SimpleSEF adds 0.03824
SimpleSEF adds 0.03824!
SimpleSEF adds 0.03824
SimpleSEF adds 0.03824D
SimpleSEF adds 0.03824
SimpleSEF adds 0.03824O
SimpleSEF adds 0.03824
SimpleSEF adds 0.03824C
SimpleSEF adds 0.03824
SimpleSEF adds 0.03824T
any ideas what is wrong?
this is my htaccess, it is located at http://ihf.lp.pl/
AddType application/x-httpd-php .html
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
EDIT: i've had to rename "SimpleSEF.php" and "SimpleSEF--Db" in order to get my forum usable again whilst this problem is solved.
Quote from: bjraines on January 27, 2010, 09:54:43 AM
SlammedDime,
Please forgive me because I assure you I am most appreciative of this mod especially considering the stance taken by the Pretty Url moderator
but I do not understand completely why the extension are necessary?
You say here: Unfortunately not, it is how I determine if the link is for a topic or not.
Why is this determination needed?
File extension are like .html and .php are just that, extensions reserved for actual server files, which database generated pages are not either, they are not files but query generated pages
The implication of the format of the urls is to create an URL structure that is that of an actual flat file system, NOT database driven content. So yes, while this is database driven content and not real files, extensions may not 'make sense', and it really doesn't matter if they have extensions or not as far as search engines go (you could make the extension ".bjraines" if you wanted to), the idea is to simulate a flat file system. As far as the way I have coded this mod... the only way that I can tell the difference between a board, and a topic (or other pages that might have numbers on the end of them) is to throw a suffix onto the topic, which also logically makes sense if your board were a flat file system. As far as this mod is concerned, I cannot change this.
Quote from: iGate on January 27, 2010, 11:18:07 AM
SMF v1.1.11 & TP 0.9.8.3
could someone help me, i made the neccessary mods to htaccess and this is the page that is thrown up: http://ihf.lp.pl/forums/
if you don't want to follow the link this is what is thrown up and it continues for ages:
SimpleSEF adds 0.03824<
SimpleSEF adds 0.03824
SimpleSEF adds 0.03824!
SimpleSEF adds 0.03824
SimpleSEF adds 0.03824D
SimpleSEF adds 0.03824
SimpleSEF adds 0.03824O
SimpleSEF adds 0.03824
SimpleSEF adds 0.03824C
SimpleSEF adds 0.03824
SimpleSEF adds 0.03824T
any ideas what is wrong?
this is my htaccess, it is located at http://ihf.lp.pl/
AddType application/x-httpd-php .html
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
EDIT: i've had to rename "SimpleSEF.php" and "SimpleSEF--Db" in order to get my forum usable again whilst this problem is solved.
You don't have to rename the Db folder, just the PHP file would do. I'll have to look at this closer, something must not be right with the regular expression I use to inject the extra load time into the page. What version of PHP is your host running?
Edit: on second thought, it might be an issue with the language strings (actually, I'm positive that's what it is because I forgot to account for that in SMF 1.1.x)... I'll have it fixed in the next version hopefully to be released shortly.
In the mean time, you can make the following change in SimpleSEF.php:
$buffer = preg_replace('~(' . preg_quote($txt['page_created']) . '.*?' . preg_quote($txt['queries']) . ')~', '\1<br />' . $txt['simplesef_adds'] . ' ' . $simpleSEF['execTime'] . $txt['seconds_with'] . $simpleSEF['query_count'] . $txt['queries'], $buffer);
$buffer = preg_replace('~(' . preg_quote($txt['smf301']) . '.*?' . preg_quote($txt['smf302b']) . ')~', '\1<br />' . $txt['simplesef_adds'] . ' ' . $simpleSEF['execTime'] . $txt['smf302'] . $simpleSEF['query_count'] . $txt['smf302b'], $buffer);
well it has now removed those errors from appearing everywhere. but i get 404 errors. do u know any test which i can use to see if mod_rewrite is enabled?
You need to put the .htaccess file in your /forum/ directory, not your root directory. It needs to go in the same place as SSI.php.
i solved the problem, seems my mod_rewrite is not enabled. will have to get in contact with host.
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
Because of the way the mod works, you cannot have any folders which are also the name of an action on your board.
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
sorry for the doble post..
solved the problem, rename the file.php...
Old = demos/demos.php
Now = demos/demo-site.php
Thanks SlammedDime
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...
Thanks for this mod !!
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.
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".
I don't think the mod actually would support such a construction though.
Installs correctly, but there is no text in the admin settings!!
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.
Only English, no UTF-8 at all!
Should I try reinstalling it?
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';
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.
Well, there must be one above and below, as I didn't paste the "?>" at the end, as that is a whole seperate error...
What do I do now? (will check back in third period, going to first now...)
There should only be one ?> and it should be at the very end of the file.
Oh nos, I have to reupload the file!
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)
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.
Hi SlammedDime, my members are not able to send pm. When they try to send, it goes back to messages page. Is it because of some conflicts?
You'll have to go into the admin settings and remove 'send' from the area array. The next release will fix this as I mentioned in my post right before yours :)
@SlammedDime, When I tried installing it, it shows the code for the fields above the forum template on every page, and when I uninstall it it disappears...
I already told you how to fix it... in modifications.english.php, there can only be one ?> and it must be at the end of the file after everything else. If there is anything after ?> it will show at the top of your forum.
Quote from: SlammedDime on February 03, 2010, 05:03:31 PM
You'll have to go into the admin settings and remove 'send' from the area array. The next release will fix this as I mentioned in my post right before yours :)
Sorry :/
Ok, it works now. Thanks.
I looked, only one "?>" in modifications.english.php!!!!!
@Kcmartz please attach your Modifications.english.php file
After I deleted SMF and uploaded Wordpress, I noticed this folder in my FTP:
Source
When I click it, it takes me to:
SimpleSEF-db
What do I do with this folder? Do I delete it or is it related to my Wordpress.
you can delete it
This mod installed perfect but.....
I couldnt check mark to activate the mod, i manually added the rewrite code in .htaccess, then i was able to activate it and it worked.
...but, it added a bunch of question marks at the very top of my forum pages like this all the way across..
????????????????????????????????
What went wrong?
What version of SMF are you using?
I'm not quite sure why that would happen... I'm not able to replicate it on my test site.
Quote from: SlammedDime on February 06, 2010, 05:23:28 PM
I'm not quite sure why that would happen... I'm not able to replicate it on my test site.
It may be the fact that have 5 other URL's redirecting to my site. ?
Quote from: SlammedDime on February 03, 2010, 05:03:31 PM
The next release will fix this as I mentioned in my post right before yours :)
Hi SD,
is the next version soon coming out already next week ?
I have to change my main sites next week and I wanted to integrate already the new
versions with all the fixes.
Many thanks.
Regards, Stefan.
Well that works, SlammedDime expect for the PM issue simliar to Arantor's. Had to uninstall and put this on hold.
QuoteNotice: iconv() [function.iconv]: Detected an illegal character in input string in /var/www/virtual/mydomain/forum/Sources/SimpleSEF.php on line 548
Notice: iconv() [function.iconv]: Detected an illegal character in input string in /var/www/virtual/mydomain/forum/Sources/SimpleSEF.php on line 548
Notice: iconv() [function.iconv]: Detected an illegal character in input string in /var/www/virtual/mydomain/forum/Sources/SimpleSEF.php on line 548
Notice: iconv() [function.iconv]: Detected an illegal character in input string in /var/www/virtual/mydomain/forum/Sources/SimpleSEF.php on line 548
Notice: iconv() [function.iconv]: Detected an illegal character in input string in /var/www/virtual/mydomain//forum/Sources/SimpleSEF.php on line 548
Notice: iconv() [function.iconv]: Detected an illegal character in input string in /var/www/virtual/mydomain/forum/Sources/SimpleSEF.php on line 548
What about this? ;D
SMF Version 1.1.11, polish :) utf8_general_ci
Login with openid don't work .. :(
I have tested with myopenid.com .. and I found a solution ..
Change
if (strpos($_SERVER['REQUEST_URL'], 'index.php') !== false)
{
if (strpos($_SERVER['REQUEST_URL'], 'action=admin') !== false || strpos($_SERVER['REQUEST_URL'], ';xml') !== false)
return;
To:
if (strpos($_SERVER['REQUEST_URL'], 'index.php') !== false)
{
if (strpos($_SERVER['REQUEST_URL'], 'action=admin') !== false || strpos($_SERVER['REQUEST_URL'], ';xml') !== false || strpos($_SERVER['REQUEST_URL'], 'action=openidreturn') !== false)
return;
Worked ... :)
Fel
Hi, on 2.0RC2 with this mod activated users cannot save profiles. If I deactivated the mod, profiles can be saved ok. Any ideas?
Thanks!
Updated: I removed save from subactions and now profiles are saved ok. Is it safe/ok to remove save from subactions?
I'm also experiencing the send PM problem. I remove send from areas, but as one user sends a private message, it's added again to areas so it's not working again.... Any ideas?
I don't have any mod installed. ;)
Quote from: reydelanada on February 17, 2010, 04:37:56 AM
I'm also experiencing the send PM problem. I remove send from areas, but as one user sends a private message, it's added again to areas so it's not working again.... Any ideas?
a lot of post above I have post a complete set of keywords for the setting I use. You can test it ...
Fel
Thanks feline, but where do I put this:
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,trackip,about:mozilla,about:unknown,unread,unreadreplies,verificationcode,viewprofile,vote,viewquery,viewsmfile,who,.xml,xmlhttp
Areas:
account,attachmod,authentication,corefeatures,featuresettings,forumprofile,groupmembership,groups,index,issuewarnings,lists,logs,mailqueue,manageattachments,manageboards,managecalendar,managesearch,modlog,modsettings,news,notice,notification,paidsubscribe,permissions,postmod,postsettings,regcenter,reports,securitysettings,sengines,serversettings,showposts,smileys,subscriptions,summary,tracking,userwatch,viewgroups,viewwarning,warnings,introduction,main_menu,board_index,message_view,topic_view,registration_screen,logging_in,password_reminders,modify_profile,posting_topics,bbcode,messages,searching,profile_summary,sending_pms,statistics,pmprefs,ignoreboards,deleteaccount,modifying_profiles,message_index
Subactions:
add,admin,agreement,all,approve,attach,attachements,attachments,attachpaths,avatars,banlog,basic,bbc,board,browse,buddies,byAge,bySize,cache,cat,censor,check,clear,closed,cookie,copy,createmsgindex,database,delete,done,download,downloadlang,edit,editholiday,editicon,editicons,editlang,edits,editsets,editsmileys,editspiders,edittrigger,errorlog,examine,execute,folder,general,hide,holidays,ignore,index,install,installed,ip,karma,killall,layout,list,loads,log,mailingcompose,mailingmembers,mailingsend,maintain,maintenance,manlabels,manrules,members,messages,method,moderation,modify,modifyset,modifysmiley,modifyuser,modlog,move,moveAvatars,options,packageget,perms,pick,pmactions,post,postmod,posts,profile,profileedit,prune,pruning,query,register,remove,removeall,repair,requests,resend,reservednames,reset,routine,search,selectgroup,selectTopics,send,sendtopic,setpassword,sig,simplesef,spam,spiderlog,spiders,splitSelection,stats,taskedit,tasklog,templateedit,templates,topics,user,view,viewsub,weights,collapse,on,topic,email,unread,tracked,picktype,setpassword2,expand,manager,setpassword,activity,unreadreplies,member,open,report,send2,settings,search2
Useractions:
profile,pm,activate,buddy,reminder
Thanks!
The thing is I deleted "save" from Actions, subactions and areas from the admin panel, and profiles are working ok and save is not added again to the list.
But when i deleted "send" from that list (areas and subactions) PM works but just once. Once you click on sending a PM, it works first time but it adds "send" again to areas and subactions so its not working again....
:(
wait for the new version
hi is coming ^^
Quote from: reydelanada on February 17, 2010, 11:12:15 AM
The thing is I deleted "save" from Actions, subactions and areas from the admin panel, and profiles are working ok and save is not added again to the list.
But when i deleted "send" from that list (areas and subactions) PM works but just once. Once you click on sending a PM, it works first time but it adds "send" again to areas and subactions so its not working again....
:(
Yep, it goes into a loop in the PM system.
I have my "?>" problem fixed. Installed it but when I check first two check marks, only the second one saves, not the one to activate the mod! I tried like 10 times! The second one, "Create Simple URLs" does save, and all but the one to actually activate the mod doesn't!!!
Quote from: Kcmartz on February 17, 2010, 11:32:52 AM
I have my "?>" problem fixed. Installed it but when I check first two check marks, only the second one saves, not the one to activate the mod! I tried like 10 times! The second one, "Create Simple URLs" does save, and all but the one to actually activate the mod doesn't!!!
Next time read the FAQ:
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.
But, I do have a .htaccess!
AND A .htaccess.backup!
Quote from: Kcmartz on February 17, 2010, 11:43:15 AM
But, I do have a .htaccess!
AND A .htaccess.backup!
Did you click 'help' and make sure the codes are in .htaccess? Do you have Apache enabled? There's a chance your host does not support Apache.
Yes, godaddy has apache 1.3.3 I think. They won't update it tho...
EDIT: I added those lines for .htaccess, but still doesn't let me...
It had a lot of Pretty URLs, but I removed those and added those two lines to .htaccess, now those are the only two lines in it...
Quote from: Kcmartz on February 17, 2010, 11:53:41 AM
Yes, godaddy has apache 1.3.3 I think. They won't update it tho...
EDIT: I added those lines for .htaccess, but still doesn't let me...
It had a lot of Pretty URLs, but I removed those and added those two lines to .htaccess, now those are the only two lines in it...
your .htaccess should have 4 lines... you clicked [help], but you didn't scroll down the contents at all.
QuoteRewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
reydelanada - i'll be releasing a new version shortly to address the issue. i'm waiting for someone to confirm a bug fix for me
Thanks!!!
I'm using prettyURLs now as I couldn't fix that on my own... I'll try again with new version :)
Ciao!
That's wierd, it worked, then I moved forum to root and ran repair_settings, now it is back to where it is!! The old way!
Quote from: Kcmartz on February 17, 2010, 04:45:12 PM
That's wierd, it worked, then I moved forum to root and ran repair_settings, now it is back to where it is!! The old way!
disable it and then re-enable it again
Thanks!
one more bug I found today ...
original url:
index.php?action=quickmod;board=5.0;actions[1461]=sticky;a67ee297=43c10d2698cb772e68d577a86cb76a61
after SSEF converson:
/quickmod/actions%5B1461%5D,lock/a67ee297,43c10d2698cb772e68d577a86cb76a61/board_5.0/
But that don't work, the url must decuded to get back the [...]
So I add
$_SERVER['REQUEST_URL'] = urldecode($_SERVER['REQUEST_URL']);
now the url shows as:
/quickmod/actions[1461],lock/a67ee297,43c10d2698cb772e68d577a86cb76a61/board_5.0/
and all works ;)
Fel
It shouldn't even be encoded to begin with, I'll have to look at that more in depth.
After activate this mod, i get this on after the html page begining:
<?php
$utf8_db[0x00] = array(
'�','','','','','','','','',' ','
','','','
','','','','','','','','','','','','','','','','','','',' ','!','"','#','$','%','&',"'",'(',')','*','+',',','-','.','/','0','1','2','3','4','5','6','7','8','9',':',';',','=','>','?','@','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',']','\\',']','^','_','`','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','{','|','}','~','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','',' ','!','C/','PS','$?','Y=','|','SS','"','(c)','a','<<','!','','(r)','-','deg','+-','2','3',"'",'u','P','*',',','1','o','>>','1/4','1/2','3/4','?','A','A','A','A',','A','AE','C','E','E','E','E','I','I','I','I','D','N','O','O','O','O','O','x','O','U','U','U','U','U','Th','ss','a','a','a','a','a','a','ae','c','e','e','e','e','i','i','i','i','d','n','o','o','o','o','o','/','o','u','u','u','u','y','th','y',
);
On godaddy I had to use this htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.php
Basically the same almost but has a / in front of index.php
This was the only way to get it to work.
Also I am experiencing lag only on the site I have that has SimpleSEF. The other sites of mine are working fine. Don't know the problem yet though.
Hi SlammedDime,
is the new version 1.03 coming still this week ?
Feline is just waiting for you to release your new version,
as she wants to adapt it for her new PortaMX version...
So all only depends on you.
Please , please just release it now.
Many thanks.
Regards, Stefan.
P.S: Feline asked to take over this MOD,
so she could directly integrate it into PortaMX,
which would be very nice, as one would need one MOD
less to install, but she said, she will respect your decision.
But as we all are waiting to get the new PortaMX version,
all is delayed, until you release the new bugfixed SimpleSEF version.
So please just release the 1.03 version now and you could
fix further things later in 1.04 version or so.
Many thanks for your understanding.
Mod worked fine for me in SMF. But my coppermine is bridged and it would enable coppermine to work properly.. Is there any way for a work-around?!
I have installed this mod but I found an issue, when I modify the subject of a topic on the Messageindex using ajax and I change it when I try to open it I get this url:
http://www.site.com/topic_' cur_topic_id '.0.html -> http://www.site.com/topic_%27%20%20%20cur_topic_id%20%20%20%27.0.html
Hi there,
I just installed the Mod SimpleSEF and there following option
Topic Extension
URL extension to use on topics (ie: html, php).
i check for html, but noting changed with my urls, i also check the rewrite option. but noting done. How it will done???
Quote from: Jason kiDD on February 25, 2010, 08:40:15 PM
Mod worked fine for me in SMF. But my coppermine is bridged and it would enable coppermine to work properly.. Is there any way for a work-around?!
Just disable the rewrite for the folder your copper mine installation is at. Coppermine has a pretty nice SEF URL plugin of its own. ;)
I will try that when I get home later on.. And yes I know, coppermine SEO works fine when bridged but as soon as I enable the SMF SEO that is when coppermine goes into an infinite loop..
Quote from: hartiberlin on February 25, 2010, 03:35:44 PM
Hi SlammedDime,
is the new version 1.03 coming still this week ?
Feline is just waiting for you to release your new version,
as she wants to adapt it for her new PortaMX version...
So all only depends on you.
Please , please just release it now.
Many thanks.
Regards, Stefan.
P.S: Feline asked to take over this MOD,
so she could directly integrate it into PortaMX,
which would be very nice, as one would need one MOD
less to install, but she said, she will respect your decision.
But as we all are waiting to get the new PortaMX version,
all is delayed, until you release the new bugfixed SimpleSEF version.
So please just release the 1.03 version now and you could
fix further things later in 1.04 version or so.
Many thanks for your understanding.
The bad thing, what if people DON'T want portamx, and some other portal instead?
Sorry guys, I've been extremely busy this past week and haven't had the time I would have liked to visit SM.org and reply to the topics that needed replying to. I'll try to get to the questions asked tomorrow. I'm hoping to release the new version shortly.
And to be straight and to the point, I will not give up this mod to anyone else to take over.
Quote from: punjablovers on February 28, 2010, 03:17:47 PM
Hi there,
I just installed the Mod SimpleSEF and there following option
Topic Extension
URL extension to use on topics (ie: html, php).
i check for html, but noting changed with my urls, i also check the rewrite option. but noting done. How it will done???
still waiting for answer????
Quote from: punjablovers on March 02, 2010, 02:19:30 PM
Quote from: punjablovers on February 28, 2010, 03:17:47 PM
Hi there,
I just installed the Mod SimpleSEF and there following option
Topic Extension
URL extension to use on topics (ie: html, php).
i check for html, but noting changed with my urls, i also check the rewrite option. but noting done. How it will done???
still waiting for answer? ???
Check the first post for your answer as below:
Quote from: SlammedDime on December 05, 2009, 10:08:40 PM
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.
Quote from: Tanshaydar on March 02, 2010, 03:30:04 PM
Quote from: punjablovers on March 02, 2010, 02:19:30 PM
Quote from: punjablovers on February 28, 2010, 03:17:47 PM
Hi there,
I just installed the Mod SimpleSEF and there following option
Topic Extension
URL extension to use on topics (ie: html, php).
i check for html, but noting changed with my urls, i also check the rewrite option. but noting done. How it will done???
still waiting for answer? ???
Check the first post for your answer as below:
Quote from: SlammedDime on December 05, 2009, 10:08:40 PM
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.
I read the help section in SimpleSEF, but don't understand what to do..........there are some codes there,,,,,,,,
Have i need to use them or replace them, if yes, then where and how???
There is a ".htaccess" file in your root directory (I mean where your forum is installed)
Should be like this:
./Source
./Attachments
./bla bla bal
..
...
index.php
...
...
.htaccess
You should edit this file.
Hello,
Excellent mod, but i have one problem regarding the forum vs URL structure.
My forum has several boards, each having many sub-boards, something like:
Forum Structure
- Board 1
-sub-board 1; -sub-board2; sub-board3
- Board 2
-sub-board 1; -sub-board2; sub-board3
The URLs generated by SimpleSEF are:
-http://sitename/forum
-http://sitename/forum/board_1
-http://sitename/forum/sub-board_1; -http://sitename/forum/sub-board_2; -http://sitename/forum/sub-board_3;
-http://sitename/forum/board_2
-http://sitename/forum/sub-board_12; -http://sitename/forum/sub-board_22; -http://sitename/forum/sub-board_32;
I would like URLs like:
-http://sitename/forum
-http://sitename/forum/board_1
-http://sitename/forum/board_1/sub-board_1; -http://sitename/forum/board_1/sub-board_2; -http://sitename/forum/board_1/sub-board_3;
-http://sitename/forum/board_2
-http://sitename/forum/board_2/sub-board_1; -http://sitename/forum/board_2/sub-board_2; -http://sitename/forum/board_2/sub-board_3;
What i need to change in order to have the URL structure mentioned above?
Many thanks!
Hmm , hello :)
/index.php?board=1.0 =>> /general-discussion-f1/
or
/index.php?board=1.0 =>> /general-discussion-1/
that will be better coz , some mmo forums had same named sub-forums
like Server A > Market | Server B > Market etc...
Quote from: hartiberlin on February 25, 2010, 03:35:44 PM
Feline is just waiting for you to release your new version,
as she wants to adapt it for her new PortaMX version...
That's not true .. PortaMx don't have any dependents on SSEF...
Quote
P.S: Feline asked to take over this MOD,
so she could directly integrate it into PortaMX,
which would be very nice, as one would need one MOD
less to install, but she said, she will respect your decision.
That's true, and we respect the arbitration. So we don't integrate SSEF into us Portalsystem.
We use currently a modified version of SSEF 1.0.2 on our site, they works without problems...
Fel
Hi Fel,
this exactly is the problem, that you are using a modified version
of SimpleSEF.
What if SlammedDime still needs one month to release the new version ?
What are you going to do then ?
ALso wait 1 month to release your new version ?
As you both depend now very much on each other,
it is too bad, that SD does not yet release his 1.03 version,
so you can check it out on your bug fix PMX version...
So how can we get a solution soon ?
I must do a bigger update, but I want first to wait for the new
versions, cause otherwise I have to do all work twice again...
Many thanks.
Regards, Stefan.
Quote from: hartiberlin on March 06, 2010, 09:39:32 AM
this exactly is the problem, that you are using a modified version
of SimpleSEF.
I have only things fixed they not work and all these I have posted here.
But .. that have nothing to do with PortaMx.
Today I found one more Bug .. the capcha dont work, if you request a new image.
But that I have also fixed ;)
QuoteWhat if SlammedDime still needs one month to release the new version ?
I dont know ... PortaMx running perfect with my patched version :D
Fel
SlammedDime is very busy lately, now being the lead customizer and all.
/me refrains from pointing out the other things that have been going on.
If him have not enough time to make necessary fixes, then that is bad.
I have offer a takeover for this mod, but he is't willing ... it's a pity.
Fel
The SimpleDesk team has found a few bugs in the mod that I have had to resolve the last two weeks, which have now been fixed. I'm in the process of rewriting the regular expressions at the moment for capturing urls to ensure it is capturing everything that it should. And as Arantor said, I also have obligations as the Customize Team lead which have kept me busy, plus being a full time dad during the day for my 4 month old daughter, and I work a full time job at night... As much as I would like to spend every waking moment on SM.org helping the community and providing updates for my mods in a timely fashion, unfortunately that isn't possible... cut me some slack.
I have smf 1.1.11, and I'm really struggling with this or any other mod. the furthest i got is downloading it to my pc. now when i go to admin to install, it wont let me browse--Unable to connect to the server. Please try using this URL instead.--I need help
Go to Download Packages and use the last option - upload it from your PC.
i cant Enable SimpleSEF, everytime i try to check the box and save, it becomes unchecked again ???
Useing SMF Version 2.0 RC
Quote from: Arantor on March 07, 2010, 11:42:04 AM
Go to Download Packages and use the last option - upload it from your PC.
ok, but what file am i uploading? it wont let me upload the folder
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
2.0 RC1.2, 2.0 RC2 ? Probably means your server doesn't support the rewrite method.
Quote from: jtoleric on March 07, 2010, 12:01:42 PM
Quote from: Arantor on March 07, 2010, 11:42:04 AM
Go to Download Packages and use the last option - upload it from your PC.
ok, but what file am i uploading? it wont let me upload the folder
You downloaded a .zip file right? That is the file you upload, not a whole folder, just the one file.
Quote from: feline on March 07, 2010, 02:39:00 AM
QuoteWhat if SlammedDime still needs one month to release the new version ?
I dont know ... PortaMx running perfect with my patched version :D
Fel
Hmm, so you mainly wait for SD to release his new version and that
stops you now from releasing your new PortaMX version ?
Can´t you then not release also a patched version of SimpleSEF
and when SD releases his 1.03 version we must see, that PortaMX adapts to it again,
or how should this be resolved, if SD will only have very few time to work on it now and
maybe still needs a month to bring out his 1.03 version ?
Many thanks for all your work.
Regards, Stefan.
Isn't there a PortaMX topic? Or does all PortaMX really depend on SimpleSEF?
No, there is a PortaMX topic too, though I think Feline prefers providing support on portamx.com
But PortaMX and SimpleSEF don't entirely play nice.
I noticed that when i enable Simple SEF mod i cannot:
- add new Polls to existing topics (url/forum/editpoll/..../add/board's_name/topic's_name); if i try to create a new poll (url/forum/post/poll/board's_name) it's working;
- change Forum profile information (add avatar, birthday, location etc.)
- access Sitemap page (url/forum/sitemap) -> it's simply showing the main page like the sitemap URL doesn't exist.
If i disable Simple SEF (uncheck the option in mod's administration page), the above actions are working fine.
Can you please tell how can i solve this? Or maybe how can i add these actions as exceptions for Simple SEF.
Many thanks!
When adding a poll to existing topics i received "There is no poll associated with this topic" error.
The other actions doesn't show any errors ot actions; they simply don't perform any changes.
Quote from: Arantor on March 07, 2010, 07:47:26 PM
But PortaMX and SimpleSEF don't entirely play nice.
That's not true .. We have only fixed known Bugs in SSEF, and all I have posted here.
Last Bug we found, I have not posted yet, because the Author have not time. This bug is a problem with the capcha if you request a new image. That not works, because the javascript routine look to a "rand=" string, but with SSEF the string is "rand,".
Fel
fel - the captcha image issue has been fixed in the new package for a while now... SimpleDesk's Team found and reported that a couple weeks ago. I'm going through this topic to make sure I got all known bugs and hoping to make a release today.
Fel, would you be able the change your parsestr function to the following?
/**
* handle SimpleSEF url's for page request
* Check the requests and return the params array.
*/
function portamx_ssef_parsestr($query, &$params)
{
$query = !empty($query) ? $query : '';
parse_str($query, $params);
// check page request
preg_match_all('/[a-zA-Z0-9\.\-\_]+/', $query, $match);
if(!empty($match) && count($match[0]) == 1)
{
parse_str($match[0][0], $match[0][1]);
list($match[0][1]) = array_keys($match[0][1]);
// legal page request?
if(empty($params[$match[0][0]]) && empty($params[$match[0][1]]))
{
unset($params);
$params[$query] = '';
}
}
}
Thanks SlammedDime,
but we need no more special handling for single page requests.
That we have change in the coming release, so you can forgot this ;)
So I wait for the new release and hope all is works then...
Fel
Anyone kind enough to look over my issues too (http://www.simplemachines.org/community/index.php?topic=352351.msg2528236#msg2528236)? :-\
SlammedDime... ?
Most, if not all, of your issues will be fixed with the next release.
Ok, I have a new version ready to release that should address most of the larger issues brought up... I just have to roll back changes to the version for SMF 1.1.x and then I'll be posting an updated version also compatible with RC3.
Hi SlammedDime,
please make it compatible with SMF 2.0RC3.
Many thanks for your hard work.
Regards, Stefan.
Sorry, I just typed it, when you typed your message, so the postings crossed..
;D
Looking forward for your great new release.
Feline is also releasing her new PortaMX portal version probably this week
for RC3 compatibility.
Regards, Stefan.
SlammedDime, many thanks for your work!
Does the next release fix the PM issues?
Dismal - yes
how long?
Looking at today... I just finished rolling back my 2.0 version changes to 1.1.x and I'm doing testing now to make sure the discovered bugs have been fixed before releasing.
Is it coming still today ?
Feline released just her new PortaMX version for RC3 and it would
be great, if we could test now also SimpleSEF 1.03 still today for
all the compatibility...
Many thanks.
Quote from: hartiberlin on March 10, 2010, 02:49:18 PM
Is it coming still today ?
Feline released just her new PortaMX version for RC3 and it would
be great, if we could test now also SimpleSEF 1.03 still today for
all the compatibility...
Many thanks.
Geez relax, hartiberlin. Give SD some slack. What you are doing is pushing are not helping at all. He will release when he have time.
Well, SD, I just donated
20 US$ for your great Mods,
so I hope you have still today some time to release the SimpleSEF 1.03
version.
Many thanks.
Regards, Stefan.
hehe .. I have noting to with the pushing :)
Fel
* feline give SlammedDime a push *
There are a few issues with some changes made in RC3 with integration settings that caused some issues in my testing... I think I've resolved most of them... one item I will not be able to resolve right now is fixing links sent through email, they will still be the old style urls, but the mod will automatically redirect to the proper url when the user clicks the link.
Just have to test my changes on 1.1.x and i'll be all set.
Well, I would vote for just concentrate on SMF 2.0RC3 and just drop 1.11. ,
everybody who is still using this is already outdated....... ;D
Why at all bother with an old forum version..... :P
I also can´t really understand, why SMF is not droping the 1.1 version at all...
Why not just concentrate to bring 2.0 to the final version and drop all other developments
which just only wastes time...
yeahhh drop 1.11
if you want seo for 1.11 go to pretty ^^
1.1.11 is not old, in fact, is the lates SMF stable release ;) and is just as important as 2.0RC3
Quote from: 130860 on March 10, 2010, 03:35:08 PM
1.1.11 is not old, in fact, is the lates SMF stable release ;) and is just as important as 2.0RC3
It is not anymore important, if you would please upgrade to version SMF 2.0RC3.
Why develop 2 different versions at all ??
SMF 2.0RC3 is stable enough to run your sites with it !
Why would simplemachines.org run this site here with
SMF 2.0RC3 and not SMF 1.1 ??
Only because some guys are too lazy to upgrade ??
QuoteWhy develop 2 different versions at all ??
1.1.11 is not actively developed. It only receives updates for security holes, nothing more.
if SD drop 1.1.11 version for this mod, the support topic will get full of " please add 1.1.x support" post just like many other mods in here
Quote from: 130860 on March 10, 2010, 03:44:46 PM
if SD drop 1.1.11 version for this mod, the support topic will get full of " please add 1.1.x support" post just like many other mods in here
Bingo...
And without further a due, I present SimpleSEF 1.0.3 (http://custom.simplemachines.org/mods/index.php?action=download;mod=2288;id=137301)...
Changes:
! 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 output buffer for fixing
I apologize in advance if I introduced any new bugs with some of the changes I made... I tried to throughly test all of my changes as I made them.
Thanks ...
You have added the fixing of existing SMF seo URL's ? (I have posted a fix for that)
Fel
Question: Does this MOD affect negatively SEO on a forum that has already many backlinks throughout the net in "the old form"? (just checking the possible benefits/downsides by installing it)
Quote from: Paracelsus on March 10, 2010, 04:18:39 PM
Question: Does this MOD affect negatively SEO on a forum that has already many backlinks throughout the net in "the old form"? (just checking the possible benefits/downsides by installing it)
It will do 301 redirects on all old urls
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.
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
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!
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
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.
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',
);
No, not $modSettings.
$txt contains the language strings.
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 ?
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.
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.
ok just one question: why did you rewrite the urls that robots can not access, eg : moderation, pm .....
Because it was much much easier to include everything rather than write exceptions for lots of things
ah ok
before I was on pretty now simplesef
it will not affect my SEO, especially since Google has already indexed my links
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><?xml version="1.0" encoding="UTF-8"?><br /><configuration><br /> <system.webServer><br /> <rewrite><br /> <rules><br /> <rule name="SimpleSEF"><br /> <match url="(.*)" ignoreCase="false" /><br /> <conditions logicalGrouping="MatchAll"><br /> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" /><br /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" pattern="" ignoreCase="false" /><br /> </conditions><br /> <action type="Rewrite" url="index.php" /><br /> </rule><br /> </rules><br /> </rewrite><br /> </system.webServer><br /></configuration></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["host"] =~ "(www.)?example.com" {<br /> url.rewrite-once += (<br /> # Allow all normal files<br /> "^/forum/.*\.(js|ico|gif|jpg|png|swf|css|htm|php)(\?.*)?$" => "$0",<br /> # Rewrite everything else<br /> "^/forum/.*$" => "/smf_2-0-rc2_sqlite/index.php"<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>
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 (http://www.simplemachines.org/community/index.php?topic=352351.msg2528256#msg2528256)).
Thanks!
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 :)
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 (http://www.simplemachines.org/community/index.php?topic=352351.msg2528256#msg2528256)).
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 : you saw my translation fr-utf8? you'll add to simplesef ? if you want I'm ready to translate your other modules
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
It works! Excelent! :)
Thanks a lot SlammedDime!
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!
Hi SD, a user of the Turkish boards gets this error:
Notice: iconv() [function.iconv]: Detected illegal character in input string in /home/xxx/public_html/Sources/SimpleSEF.php on line 620
Do you have any idea? I searched the error, the fix is to add //IGNORE or //TRANSLIT, but //IGNORE is already added.
Without knowing exactly what the string is that contains the illegal character, it would be hard to know... I'd suggest suppressing errors from iconv by placing an @ in front of it... @iconv(blahblah)
$string = @iconv($char_set, 'UTF-8//IGNORE', $string); fixes the error. But now, he can't get SEF names on URLs.
Topic Name: "Şu An Ne Dinliyorsun.." (w/o quotes)
What he gets: topicseen/topic_3306.msg45835.html
Try this...
if (function_exists('iconv'))
$string = iconv($char_set, 'UTF-8//IGNORE', $string);
elseif (function_exists('mb_convert_encoding'))
$string = mb_convert_encoding($string, 'UTF8', $char_set);
if (function_exists('mb_convert_encoding'))
$string = mb_convert_encoding($string, 'UTF8', $char_set);
This will just bypass iconv completely and use mb_convert instead.
I found a heave problem when you use cookies if SSEF active ...
Bcause we have logical url's like myulr/help/ or myulr/board_5/ the cookies are created with the path /help/ or /board_5/ :o
The result is, that the cookies don't work anytime ...
For now, I have patched the cookie functions in the file script.js ... any other way possible?
Fel
What specific cookies are you having an issue with? The SMF Login cookie works fine for me, and the upshrink and newupshrink cookie for collapsing the header and info box also work fine for me...
all smc_toggle calls they use cookies.
The header upshrink uses theme options, not cookies !
and the login cookie have nothing to do with the smc_toggle cookies ...
Fel
Quote from: feline on March 12, 2010, 04:20:06 PM
all smc_toggle calls they use cookies.
The header upshrink uses theme options, not cookies !
and the login cookie have nothing to do with the smc_toggle cookies ...
Fel
If you look at the Javascript code in Index.template.php and BoardIndex.template.php, the toggles for these items use upshrink and newupshrink cookie names and the state of these items (shrunk or not) is kept in a cookie, not in the database (vs the category shrinkage, which IS kept in the database)
You have better to look ..
That is the code from index.template.php
// Define the upper_section toggle in JavaScript.
echo '
<script type="text/javascript"><!-- // --><![CDATA[
var oMainHeaderToggle = new smc_Toggle({
bToggleEnabled: true,
bCurrentlyCollapsed: ', empty($options['collapse_header']) ? 'false' : 'true', ',
aSwappableContainers: [
\'upper_section\'
],
aSwapImages: [
{
sId: \'upshrink\',
srcExpanded: smf_images_url + \'/upshrink.png\',
altExpanded: ', JavaScriptEscape($txt['upshrink_description']), ',
srcCollapsed: smf_images_url + \'/upshrink2.png\',
altCollapsed: ', JavaScriptEscape($txt['upshrink_description']), '
}
],
oThemeOptions: {
bUseThemeSettings: ', $context['user']['is_guest'] ? 'false' : 'true', ',
sOptionName: \'collapse_header\',
sSessionVar: ', JavaScriptEscape($context['session_var']), ',
sSessionId: ', JavaScriptEscape($context['session_id']), '
},
oCookieOptions: {
bUseCookie: ', $context['user']['is_guest'] ? 'true' : 'false', ',
sCookieName: \'upshrink\'
}
});
// ]]></script>';
and you see, that the theme option is defined. In this case, the state is set/get from the theme and not from the cookie, if the user not a guest ...
Fel
Ahh... my bad... I read the inline if statement wrong. This is a bug in SMF... the cookie functions in the script.js file are not respecting the local/global cookie settings in SMF's admin control panel. I'll verify this with the dev's first before filing a bug report.
the line: document.cookie = sKey + '=' + encodeURIComponent(sValue); needs more information to set the path and expiry information.
Hey I am having a problem with Simple SEF and E-Arcade 2.59... Upon clicking the arcade link I get sent to a blank page.. Any ideas?
Forum Version SMF 1.11
if the link is http://myforum.com/arcade, and you also have a folder named arcade in your forum directory, it won't work because the folder takes precedence. You'll either need to rename the folder, or change the action name for the arcade. Do you have a link to the arcade mod so I can look at how it's constructed?
Quote from: SlammedDime on March 12, 2010, 07:59:11 PM
the line: document.cookie = sKey + '=' + encodeURIComponent(sValue); needs more information to set the path and expiry information.
Yes that's true .. but expiry is ok. if not specific it's the end of browser session, thats correct.
For now I have changed the update cookie in script.js as follow:
// Update the cookie, if desired.
if ('oCookieOptions' in this.opt && this.opt.oCookieOptions.bUseCookie)
{
sPath = smf_scripturl.substring(smf_scripturl.indexOf(window.location.hostname) + window.location.hostname.length, smf_scripturl.lastIndexOf('/') + 1);
document.cookie = this.opt.oCookieOptions.sCookieName + '=' + encodeURIComponent(this.bCollapsed ? '1' : '0') + ';path=' + sPath;
}
Fel
Erm... Adding poll to an existed topic gives an error. Is that a known bug?
Hi,
I am using SMF 2.0RC3 and PortaMX 0.980 with Patch 0.981 and
SimpleSEF 1.03
Okay, I wanted to add a board
in
http://www.free-energy-news.com/forum/
and when I added now 2 new boards:
Solar Energy
and
Wind Energy
I can not go into these boards and can not post...
Also the links on these 2 boards are just linking to:
http://www.free-energy-news.com/
and not into these new boards...
Hmmm..
What could this be ?
I will try now to disable SSEF 1.03 and see, if this was the cause...
Maybe one should not create new boards, when SimpleSEF is enabled ??
Regards, Stefan.
Ups,
now when I want to disable SimpleSEF 1.03 from the SMF admin panel I get this error:
Warning: require(/xxxxxxx/free-energy-news.com/cache/data_0f84d2e6e8065341dc31f760734b37c1-SMF-modSettings.php) [function.require]: failed to open stream: No such file or directory in /xxxxxx/free-energy-news.com/Sources/Load.php on line 2634
Warning: require() [function.require]: Unable to access /xxxxxxx/free-energy-news.com/cache/data_0f84d2e6e8065341dc31f760734b37c1-SMF-modSettings.php in /xxxxxxx/free-energy-news.com/Sources/Load.php on line 2634
Warning: require(/xxxxxxx/free-energy-news.com/cache/data_0f84d2e6e8065341dc31f760734b37c1-SMF-modSettings.php) [function.require]: failed to open stream: No such file or directory in /xxxxxxxx/free-energy-news.com/Sources/Load.php on line 2634
Fatal error: require() [function.require]: Failed opening required '/xxxxx/free-energy-news.com/cache/data_0f84d2e6e8065341dc31f760734b37c1-SMF-modSettings.php' (include_path='.:/usr/share/php5/') in /xxxxxxx/free-energy-news.com/Sources/Load.php on line 2634
What could that be ?
Anything cache related ?
Should I better clear the cache now ?
Many thanks.
Regards, Stefan.
I have a little problem with this mod and PortaMx.
With previous versions of PortaMx (0.971-2), SimpleSEF (1.0.2) and SMF (2.0 RC2) I can go to the /contacts page instead of /index.php?contacts but now I can only go to the /spage,contacts however I try to strip words "spage", "spage," and "spage," in SimpleSEF settings...
Any suggestion to solve this problem?
That have nothing to do with SimpleSEF.
I have say you, that PortaMx use the format index.php?spage=pagename to request a Single Page. The old format (index.php?pagename) is not longer valid and supported. That you have to accept.
Fel
Quote from: Tanshaydar on March 13, 2010, 10:00:01 AM
Erm... Adding poll to an existed topic gives an error. Is that a known bug?
Quote from: SlammedDime on March 11, 2010, 11:03:39 AM
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 (http://www.simplemachines.org/community/index.php?topic=352351.msg2528256#msg2528256)).
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.
Stefan - when new boards are added, you have to clear the file cache as this mod cache's board names (they don't change very often, so caching them reduces the database queries needed). As for the errors your are getting that are cache related, looks like something is up with your cache directory... either not writeable or doesn't exist.
Hmm,
what permission must my /cache directory have ?
777 ?
Many thanks.
I just looked up,
the /cache directory only had a permission
of 755. Is this correct ?
I changed it now to 777.
Is this okay ?
Also the owner of the folder is me and NOT the webserver...
Is this right ?
Many thanks.
Stefan.
Quote// SMF Arcade
if (!empty($settings['use_arcade']))
echo '<li><a' , $current_action=='arcade' ? ' class="chosen"' : '' , ' href="', $scripturl, '?action=arcade">' , $txt['arcade'] , '</a></li>';
http://www.ericsworld.eu/
Attached folder structure so you can see the problem. Trying renaming the action but that was a no go...
Other than that works fine with everything else except coppermine, but I just disabled that bridge for now!!
Dime - interesting comment here about usernames, and a thought by Cleo (not the one about disabling) that might interest you - http://www.simpledesk.net/community/general-discussion/simplesef-likes-my-name-402.msg3915.html#msg3915
Take a look at the sef_encode function... I do much more than just //TRANSLIT a string of code... I'll have to take a look at why it's converting it to all numbers though, that definitely isn't the desired effect.
Edit: Tried on my test site... this is what I get: http://hermes/smf/simplesef/profile/acaedz_1/ which is what I would expect the conversion to do for the UTF-8 Characters (so it's not perfect, but a simple adjustment in the SimpleSEF-DB files would take care of that)...
Edit2: Looks like ya'll aren't running as UTF8... that might be the issue...
Edit3: That's it... because you guys aren't running UTF8, it's not converting properly... I'll see if this is a bug in the mod, or just the nature of the beast... you guys really should consider switching to UTF8 though...
welll, thanks for that poll thing.
What about quoting pm s?
lol, is there a limit for pm s, like one pm at a day?
What problems specifically are you having with PM's? Quoting seems to work fine for me...
Dime: SimpleSEF doesn't modify the Jump To code.
I know you weren't going to have it touch SMF own, but is there any plan to alter that? (More curious than anything)
Quote from: Arantor on March 13, 2010, 05:51:12 PM
Dime: SimpleSEF doesn't modify the Jump To code.
I know you weren't going to have it touch SMF own, but is there any plan to alter that? (More curious than anything)
No plan at this time... SimpleSEF will perform a 301 redirect and still show the SEF version to the user... unless someone actually looks at the HTML with Firebug, it should be transparent to anyone using the Jump To.
That's what I thought, just wanted to know if you were aware of it and planned to change anything (I actually find it useful that it doesn't....)
yea, when I originally used this code for my OpenSEF extension for SMF 1.1.x, I had to modify the jumpto because I didn't have the option of doing 301 redirects like I can with straight SMF.
Yeah, you had mentioned OpenSEF to me before, but is all good :)
Quote from: SlammedDime on March 13, 2010, 05:47:34 PM
What problems specifically are you having with PM's? Quoting seems to work fine for me...
When I click to a member's profile to send a pm (like "http://forum.myforum.com/pm/send/abc123_X/"), it just goes to MY PM's page. I can't reply or quote.
if needed, the site/ forum is on my signature.
Old version of SSEF there? Later versions should explicitly be adding /pm/sa,send/ in the URL not /pm/send/
QuoteWhen I click on enable simpleSEF I get the following error:
Warning: mb_convert_encoding() [function.mb-convert-encoding]: Illegal character encoding specified in .../www/forum/Sources/SimpleSEF.php on line 622
The message is repeated a dozen times.
Yet I have edited my htaccess:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
I've another problem with SSEF and/or your Sitemap mod. I can't get them work together. When I disable SSEF, Sitemap works without any problem. But when I enable it, sitemap page gives me "Unable to load the 'main_above' template." error.
Am' - Unfortunately it's almost impossible to know what character is causing the error, so the only thing you can do is comment out the mb_encoding function...
// elseif (function_exists('mb_convert_encoding'))
// $string = mb_convert_encoding($string, 'UTF8', $char_set);
Yagiz - I just installed both mods on my plain jane install of SMF and they both worked fine with each other; I was able to browse boards, topics and the XML sitemap. SSEF doesn't mess with the templates at all, so that's odd you'd get that error.
The weird thing is that there is no problem at all in Sitemap Subactions(except XML template). BTW, me too I can get them work together on localhost, but not on this server. Do you need any server informations?
Quote
- In the list of members, click 3 points to see more members, after click a number, the link is incorrect:
http://localhost/Board/mlist/sort,real_name/start,%1/$d
^^
the same problem in display.php, to see the other pages of responses
Dime you can reproduce this bug ?
First one is a small bug that can be avoided by adding those to the strip_character array...
Second one, I'll have to look further into that
Any updates on the Arcade conflict.?
Jason - There really isn't anything I can help you with on making the two work... I'd suggest talking with the author of that mod to see how it can be reworked so that the action name isn't the same as the folder name. I'm not sure how involved it would be with that mod to do.
Hello,
I am using the latest version of this module in my SMF 1.1.11 forum. Everything is working fine but when ever a users tries to retrieve their password they get an error saying
QuoteAn Error Has Occurred!
You are not allowed to access this section
" This comes after they enter the new password twice and click submit "
But my users are note getting that error if I disable Simple SEF ;)
Please help me with this issue .....
Vivek.
Hello,
Is SSEF working correct with SMFGalleryPRO, SMFStore and SMFDownloadsPRO? Did someone test this?
I ask it, because I'm using PortaMX with a lot of SMFHacks mods.
Thanks for any answer!
Regards,
Vincent Volmer
damned, I installed this mod and my host doesn't seem to support this. Now I can't access the forums and can't access the packages, as it will go to
forum/packages/
and not action=packages
entering action=packages manually doesn't work either... uhm, help?!
selmiak: SMF 1 or 2?
Quote from: Yağız... on March 14, 2010, 08:06:41 AM
I've another problem with SSEF and/or your Sitemap mod. I can't get them work together. When I disable SSEF, Sitemap works without any problem. But when I enable it, sitemap page gives me "Unable to load the 'main_above' template." error.
Any help on this? I upgraded the site to RC3, so I replaced all files and installed those two mods and the error continued...
Quote from: Vivekanand on March 16, 2010, 08:13:59 AM
Hello,
I am using the latest version of this module in my SMF 1.1.11 forum. Everything is working fine but when ever a users tries to retrieve their password they get an error saying
QuoteAn Error Has Occurred!
You are not allowed to access this section
" This comes after they enter the new password twice and click submit "
But my users are note getting that error if I disable Simple SEF ;)
Please help me with this issue .....
Vivek.
Did you upgrade the mod from a prior version? What is the exact URL that the users are getting the error on?
Quote from: Vincent Volmer on March 17, 2010, 02:25:02 PM
Hello,
Is SSEF working correct with SMFGalleryPRO, SMFStore and SMFDownloadsPRO? Did someone test this?
I ask it, because I'm using PortaMX with a lot of SMFHacks mods.
Thanks for any answer!
Regards,
Vincent Volmer
It should... feel free to test it out and report back... I'm not able to test my mod compatibility with every other mod available so I can't really answer this for you.
Quote from: selmiak on March 18, 2010, 09:02:34 AM
damned, I installed this mod and my host doesn't seem to support this. Now I can't access the forums and can't access the packages, as it will go to
forum/packages/
and not action=packages
entering action=packages manually doesn't work either... uhm, help?!
You should be able to go to action=admin, then go to action=featuresettings to get to the SimpleSEF settings and disable it, then you can navigate the forum as normal and remove the package.
Quote from: Yağız... on March 18, 2010, 09:50:18 AM
Quote from: Yağız... on March 14, 2010, 08:06:41 AM
I've another problem with SSEF and/or your Sitemap mod. I can't get them work together. When I disable SSEF, Sitemap works without any problem. But when I enable it, sitemap page gives me "Unable to load the 'main_above' template." error.
Any help on this? I upgraded the site to RC3, so I replaced all files and installed those two mods and the error continued...
This is boggling my mind... it has to be some sort of server configuration issue, but I wouldn't have the slightest clue where to start looking... what is the exact URL giving that error?
http://www.mysite.com/sitemap/
:)
Hello! How can I change the board url to "/my_board_name/" instead of "/board_id.0/"?
QuoteDid you upgrade the mod from a prior version? What is the exact URL that the users are getting the error on?
I didnt not upgrade the mod ... I have installed it for the first time ...... the URL's are given below
1) Reminder - http://www.eduworldportal.com/reminder/ (http://www.eduworldportal.com/reminder/) (This one is working, as the mails are being sent correctly to the user email ID)
2) New Password - http://www.eduworldportal.com/index.php?action=reminder;sa=setpassword;u=30;code=7b62095320 (http://www.eduworldportal.com/index.php?action=reminder;sa=setpassword;u=30;code=7b62095320) is redirected to http://www.eduworldportal.com/reminder/setpassword/ramakanth_30/code,7b62095320/ (http://www.eduworldportal.com/reminder/setpassword/ramakanth_30/code,7b62095320/) ( Here users type the new password twice and click submit )
3) Error Pagr - http://www.eduworldportal.com/reminder/setpassword2/ (http://www.eduworldportal.com/reminder/setpassword2/) ( THis is the page user get after submitting in above step, when they submit they get the following error)
QuoteAn Error Has Occurred!
You are not allowed to access this section
.
I have tried my best to tell you the scenario but if there is anything that I missed do let me know, I will give you those too. 8)
The user shown above is a test user, if that doesnt work please dont mind to create an account and test it. :)
Thanks,
Vivek.
is it possible to make urls http://www.alblove.com/suksesi_i_parfumit_te_beyonce_knowles-t7238.0.html
currently in SimpleSEF is like this http://www.alblove.com/suksesi_i_parfumit_te_beyonce_knowles_7238.0.html
becouse befor i used seo4smf wich uses this kind of URLs with -t befor te topics number.
pls i love this mod :)
Quote from: Yağız... on March 19, 2010, 05:20:49 AM
http://www.mysite.com/sitemap/
:)
I thought you were having the issue with the XML part of the sitemap? So you can't even load the normal Sitemap then?
Quote from: atfosan on March 20, 2010, 08:16:28 AM
Hello! How can I change the board url to "/my_board_name/" instead of "/board_id.0/"?
disable the 'Simple' setting in the admin panel.
Quote from: Vivekanand on March 20, 2010, 08:42:58 AM
QuoteDid you upgrade the mod from a prior version? What is the exact URL that the users are getting the error on?
I didnt not upgrade the mod ... I have installed it for the first time ...... the URL's are given below
1) Reminder - http://www.eduworldportal.com/reminder/ (http://www.eduworldportal.com/reminder/) (This one is working, as the mails are being sent correctly to the user email ID)
2) New Password - http://www.eduworldportal.com/index.php?action=reminder;sa=setpassword;u=30;code=7b62095320 (http://www.eduworldportal.com/index.php?action=reminder;sa=setpassword;u=30;code=7b62095320) is redirected to http://www.eduworldportal.com/reminder/setpassword/ramakanth_30/code,7b62095320/ (http://www.eduworldportal.com/reminder/setpassword/ramakanth_30/code,7b62095320/) ( Here users type the new password twice and click submit )
3) Error Pagr - http://www.eduworldportal.com/reminder/setpassword2/ (http://www.eduworldportal.com/reminder/setpassword2/) ( THis is the page user get after submitting in above step, when they submit they get the following error)
QuoteAn Error Has Occurred!
You are not allowed to access this section
.
I have tried my best to tell you the scenario but if there is anything that I missed do let me know, I will give you those too. 8)
The user shown above is a test user, if that doesnt work please dont mind to create an account and test it. :)
Thanks,
Vivek.
The latest version of the mod forms urls like http://hermes/smf/simplesef/reminder/admin_1/sa,setpassword/code,7b62095320/ (note the sa, before setpassword). I just checked the Source file in the download package for 1.1.x and it does indeed make the URLs to have sa, before subactions. I also just tested on my 1.1.11 site and it worked exactly as it should. If you're not using version 1.0.3, please upgrade. If you are using it, please uninstall and reinstall it (make sure that Sources/SimpleSEF.php is the same version as in the Mod Package (SimpleSEF-1.1.php)
Quote from: alblove on March 20, 2010, 10:02:46 AM
is it possible to make urls http://www.alblove.com/suksesi_i_parfumit_te_beyonce_knowles-t7238.0.html
currently in SimpleSEF is like this http://www.alblove.com/suksesi_i_parfumit_te_beyonce_knowles_7238.0.html
becouse befor i used seo4smf wich uses this kind of URLs with -t befor te topics number.
pls i love this mod :)
it would be more than a few code changes to pull that off, not something to easy i'm afraid.
Quote from: SlammedDime on March 20, 2010, 12:02:39 PM
Quote from: atfosan on March 20, 2010, 08:16:28 AM
Hello! How can I change the board url to "/my_board_name/" instead of "/board_id.0/"?
disable the 'Simple' setting in the admin panel.
I have disabled this function and I want to write my own name of board (/school/ instead of /shkola/ [школа - in Russian]).
Is it possible at all?
And can I change URLs to /forum/board/ instead of simple /board/? And topics URLs too...
Can I make any other redirects it htaccess using this module? I have tried to write some kinds but they don't work. Maybe some special kinds?
Quote from: atfosan on March 20, 2010, 12:15:23 PM
Quote from: SlammedDime on March 20, 2010, 12:02:39 PM
Quote from: atfosan on March 20, 2010, 08:16:28 AM
Hello! How can I change the board url to "/my_board_name/" instead of "/board_id.0/"?
disable the 'Simple' setting in the admin panel.
I have disabled this function and I want to write my own name of board (/school/ instead of /shkola/ [школа - in Russian]).
Is it possible at all?
And can I change URLs to /forum/board/ instead of simple /board/? And topics URLs too...
Sorry, it's currently not possible to re-rewrite urls to something of users choices, and the only way to really have /forum/ in front of it would be to move your board into a 'forum/' directory on your server
Quote from: SlammedDime on March 20, 2010, 12:02:39 PM
Quote from: Yağız... on March 19, 2010, 05:20:49 AM
http://www.mysite.com/sitemap/ (http://www.mysite.com/sitemap/)
:)
I thought you were having the issue with the XML part of the sitemap? So you can't even load the normal Sitemap then?
Yeah, I have the XML problem and template problems.
http://www.clubmusictr.com/index.php?action=sitemap (http://www.clubmusictr.com/index.php?action=sitemap)
http://www.clubmusictr.com/index.php?action=sitemap;xml (http://www.clubmusictr.com/index.php?action=sitemap;xml)
http://www.clubmusictr.com/sitemap/ (http://www.clubmusictr.com/sitemap/)
http://www.clubmusictr.com/sitemap/xml/ (http://www.clubmusictr.com/sitemap/xml/)
But my problem gets fixed after that I put any character after http://www.clubmusictr.com/sitemap/
Like: http://www.clubmusictr.com/sitemap/a
Quote
- In the list of members, click 3 points to see more members, after click a number, the link is incorrect:
http://localhost/Board/mlist/sort,real_name/start,%1/$d
^^
the same problem in display.php, to see the other pages of responses
Dime you can reproduce this bug ?
Quote from: SlammedDime on March 20, 2010, 12:17:54 PM
Quote from: atfosan on March 20, 2010, 12:15:23 PM
Quote from: SlammedDime on March 20, 2010, 12:02:39 PM
Quote from: atfosan on March 20, 2010, 08:16:28 AM
Hello! How can I change the board url to "/my_board_name/" instead of "/board_id.0/"?
disable the 'Simple' setting in the admin panel.
I have disabled this function and I want to write my own name of board (/school/ instead of /shkola/ [школа - in Russian]).
Is it possible at all?
And can I change URLs to /forum/board/ instead of simple /board/? And topics URLs too...
Sorry, it's currently not possible to re-rewrite urls to something of users choices, and the only way to really have /forum/ in front of it would be to move your board into a 'forum/' directory on your server
I use forum with portal extension that's why it would be great. Receive it as a Feature Request :)
And reread my previous message because I added couple of question to it.
Dime: Found you a new bug in SSEF 1.0.3 and SMF 2.0 RC3. If you have a board with lots of pages in it and the pageindex gets the ... in it, when you click to expand, the generated URLs are all incorrect (and invalid, I think)
Already found... :D
Quote from: Am' on March 20, 2010, 12:20:56 PM
Quote
- In the list of members, click 3 points to see more members, after click a number, the link is incorrect:
http://localhost/Board/mlist/sort,real_name/start,%1/$d
^^
the same problem in display.php, to see the other pages of responses
Dime you can reproduce this bug ?
Don't have a solution yet, haven't had a chance to look at it in detail.
Dime: Awesome, didn't read the thread in detail, only just got in, but glad you're aware of it. No doubt will also affect users using 1.1 + the Cust Team mod for this.
QuoteThe latest version of the mod forms urls like http://hermes/smf/simplesef/reminder/admin_1/sa,setpassword/code,7b62095320/ (note the sa, before setpassword). I just checked the Source file in the download package for 1.1.x and it does indeed make the URLs to have sa, before subactions. I also just tested on my 1.1.11 site and it worked exactly as it should. If you're not using version 1.0.3, please upgrade. If you are using it, please uninstall and reinstall it (make sure that Sources/SimpleSEF.php is the same version as in the Mod Package (SimpleSEF-1.1.php)
Hey thanks a lot 8) .... I uninstalled 1.0.2 and installed the newer version 1.0.3 and everything is working fine ;D thnx for your time mate ........
Quote from: SlammedDime on March 19, 2010, 12:01:56 AM
Quote from: Vincent Volmer on March 17, 2010, 02:25:02 PM
Hello,
Is SSEF working correct with SMFGalleryPRO, SMFStore and SMFDownloadsPRO? Did someone test this?
I ask it, because I'm using PortaMX with a lot of SMFHacks mods.
Thanks for any answer!
Regards,
Vincent Volmer
It should... feel free to test it out and report back... I'm not able to test my mod compatibility with every other mod available so I can't really answer this for you.
Hello SlammedDime,
I'm sorry to tell but the only thing I see when accessing the SMFGalleryPro is a white page with some small text (
Are you trying to look at the pictures of this forum???) this is some text from the Gallery I guess.
At the SMFStore the same, white page with a small text:
Nothing here to see!SMFDownloadsPro brings me back to the index of the website.
These are the links:
http://centani.nl/10/gallery/
http://centani.nl/10/store/
http://centani.nl/10/downloads/
No problem if you want to have an admin account to test...
Thanks,
Vincent
Quote from: Arantor on March 20, 2010, 06:11:27 PM
Dime: Found you a new bug in SSEF 1.0.3 and SMF 2.0 RC3. If you have a board with lots of pages in it and the pageindex gets the ... in it, when you click to expand, the generated URLs are all incorrect (and invalid, I think)
This you can simple fix .. search for:
// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'/rand,' => '/rand=',
$boardurl . '/topic/' => $scripturl . '?topic=',
'var smf_scripturl = "' . $boardurl . '/' => 'var smf_scripturl = "' . $scripturl,
);
Change to:
// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'%1/$d' => '%1$d',
'/rand,' => '/rand=',
$boardurl . '/topic/' => $scripturl . '?topic=',
'var smf_scripturl = "' . $boardurl . '/' => 'var smf_scripturl = "' . $scripturl,
);
Now the pageindex works ;)
Fel
How can I change comma (,) which replace stripped symblos to another symbol? Example "_"?
I also got an error im 1.03
the News section in the header pic was wrongly formating the links there.
What at
www.ruhleben.com
there in the header pic,
where it stated
"Neuigkeiten:" ( news)
The links there were wrongly converted to:
http://www.ruhleben.com/topic_20
what should be:
http://www.ruhleben.com/entstehung_der_siedlung_ruhleben/unfalll_1907_an_der_kreuzung_charlottenburger_chausseelehrter_eisenbahnstrecke_20.0.html
So, I changed it manually.
Before I used SimpleSEF, the link put there was probably:
http://www.ruhleben.com/index.php?topic=20
So SimpleSEF did not convert it right..
Regards, Stefan.,
Would this work on SMF 2.0 RC1.2 If I manually installed it?
It's possible but somehow I doubt it. I'd really be encouraging you to upgrade to a version that's not months and months and months old.
Quote from: Arantor on March 23, 2010, 08:09:55 PM
It's possible but somehow I doubt it. I'd really be encouraging you to upgrade to a version that's not months and months and months old.
I would but I use several mods that have not been updated for RC3 yet also my theme is for SMF2 Beta 4 and I like that theme, I Don't even know if that will work on RC3 either, sigh, I guess I will have to wait then...
I tried using this mod when it first came out. I kept getting 404 errors, and we thought it may be because of me not having my .htaccess file.
I just tried version 1.0.3 on the same site now and it works like a charm. I reckon something was changed in the mod, whatever it was, it fixed the issue with me using it on my site.
Nice work. I really love this mod.
So I run into an issue with this mod. Although there isn't anything wrong with the mod.
I have a script that runs quizzes "action=quizzes". When SimpleSEF converts the url, it breaks the script. Is there a way to add action exceptions to the URL rewrite?
No current way to add exceptions. If SSEF breaks the script, something is likely not coded right with it... is this a custom script or is it a mod that I can view the code for? How exactly does it break it?
Quote from: Xarcell on March 26, 2010, 12:29:51 PM
I have a script that runs quizzes "action=quizzes". When SimpleSEF converts the url, it breaks the script. Is there a way to add action exceptions to the URL rewrite?
Mostly this is a problem with the script itself. If you use urls in the format as SMF do, the scripts works.
So you have to look at the script, how it's handle url's ...
Fel
hey SlammedDime, nice mod but I have a few questions.
I am designing a mod myself and I have your script installed. In my script there is a edit on the index.template.php file which is a script.
<script type="text/javascript" src="'.$scripturl.'/2sichat/index.php?action=head"></script>
Well when I look at the html I see.
<script type="text/javascript" src="http://www.mywebsite.com/head/"></script>
Is there any way to fix this behavior?
I did a little work around but I prefer doing it the correct way.
<script type="text/javascript" src="'.$settings['theme_url'].'/../../2sichat/index.php?action=head"></script>
Thanks in advance. ;)
src="'.$scripturl.'/2sichat/index.php?action=head" seems like it would generate an invalid url....
it would generate something like... http://mysite.com/index.php/2sichat/index.php?action=head which isn't valid to begin with...
Quote from: SlammedDime on March 26, 2010, 11:57:33 PM
src="'.$scripturl.'/2sichat/index.php?action=head" seems like it would generate an invalid url....
it would generate something like... http://mysite.com/index.php/2sichat/index.php?action=head which isn't valid to begin with...
(slaps hand against forehead)Now I feel dumb, that is correct, $scripturl will have index.php at the end, I need $boardurl. ::)
LMAO, I can't believe a dumb mistake like that, I did that, lol.
Quote from: SlammedDime on March 26, 2010, 03:17:40 PM
No current way to add exceptions. If SSEF breaks the script, something is likely not coded right with it... is this a custom script or is it a mod that I can view the code for? How exactly does it break it?
This has been fixed. It was just an issue of how the mod worked, not necessarily any scripting errors. The mod fetched xml files from the "quizzes" directory. The action URL was action=quizzes. All that had to be done to fix it was changed the name of the directory that the files was in.
I love this mod BTW.
Just upgraded to SMF 2.0 RC3 and have installed SimpleSEF and have found if you use "Reply All" to a PM that a user sent to you and other users, it doesn't fill in any of the user names of the people you are replying to in the "To" area. If you just "Reply" to the one person that sent the PM it does put that one in. I've tried it use the default Curve theme and 3 other themes and I've tried it with Firefox and Safari on the Mac and IE8 on Windows 7. If I uninstall SimpleSEF it works and puts the user name of all recipients in the "To" area. Any ideas how to fix this?
The simple workaround for the time being is to change the 'space' character from '_' to '-' in the SSEF configuration. I'll have to play with it more and probably put an exception in as a permanent workaround.
You are talking here right? It didn't fix the issue if that is what you meant to change.
Hi. Thanx for the mod. It works perfectly. I just have a question :
I just installed Referral Mod for RC3 and now when I check my profile and give the link to someone, the link looks like this :
.com/register/referredby,1/
and it has to look like this : .com/index.php?action=register;referredby=1 in order to add the users automatically in the referred user field in the registration area.
Is there a way in which the register action link is not modified ? I tried to remove it from actions but I saw that it adds it automaticaly back in the actions list of simplesef.
Thanks for this great mod!
It shouldn't actually matter.
The referral link should still work, because the parameters should still be being passed to SMF/PHP correctly.
Well I tried the second options and it works.
The first option does not add automatically the referred user. If I start to write the name the list appears and I can choose who referred me. No problem with that. I think because the link is modified something is not working properly ::) . A solution pleasse?
Thanks ;)
Update : I found the problem .
Instead of this : .com/register/referredby,1/ I tried .com/register/referredby=1/ and it works! so instead of "," it has to be "=" .
I removed character "=" from the Characters to strip section but the link looks the same, with the "," ...Any solution to this?
Have you cleared cache?
pokerrulez: Ask the author of the referrals mod to do their job properly and use normal link handling techniques, instead of doing this.
But there isn't any way in which I can exclude an action from being modified? It will be a useful option.
If the mod's author hadn't bodged it in the first place, you wouldn't HAVE to have an exclusion.
yeah..thanks for your help......
I know this doesn't help much, since TinyPortal Beta5 hasn't been released to the public yet.
But...
SimpleSEF breaks TP, because it's automatically detects and alters the URL's. One cannot write articles, change themes through the theme box, etc.
Example URL's:
http://yoursite.comindex.php?action=tpadmin;sa=addarticle_html - works
Becomes: http://yoursite.com/tpadmin/sa,addarticle_html/ - doesn't work
Is there any information that I can pass along to Bloc, to help fix this with TP?
There's no reason why your specific example shouldn't work... but I can't give you any information to pass along without actually testing it myself to see what is wrong
Quote from: SlammedDime on March 31, 2010, 03:03:48 PM
There's no reason why your specific example shouldn't work... but I can't give you any information to pass along without actually testing it myself to see what is wrong
I'll talk to Bloc, see if we can get you a package to test.
Hello again, I tried installing again, and installed except for language strings, added them, and still no text shows!
if you modify the language strings by hand, you have to clear the cache for the changes to take effect
TP Beta 5 has been released SlammedDime if you want to take a look and test it. http://www.tinyportal.net/index.php?action=tpmod;dl=item1327
Quote from: feline on March 21, 2010, 11:07:33 AM
Quote from: Arantor on March 20, 2010, 06:11:27 PM
Dime: Found you a new bug in SSEF 1.0.3 and SMF 2.0 RC3. If you have a board with lots of pages in it and the pageindex gets the ... in it, when you click to expand, the generated URLs are all incorrect (and invalid, I think)
This you can simple fix .. search for:
// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'/rand,' => '/rand=',
$boardurl . '/topic/' => $scripturl . '?topic=',
'var smf_scripturl = "' . $boardurl . '/' => 'var smf_scripturl = "' . $scripturl,
);
Change to:
// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'%1/$d' => '%1$d',
'/rand,' => '/rand=',
$boardurl . '/topic/' => $scripturl . '?topic=',
'var smf_scripturl = "' . $boardurl . '/' => 'var smf_scripturl = "' . $scripturl,
);
Now the pageindex works ;)
Fel
it's fixed in memberlist, but not in display messages
when i click a number i have this url :
http://localhost/Forum/NameBoard/NameTopic_20195.%1.html$d
any fix please ?
Hello!
SimpleSEF does not activate.
When I check the box Enable SimpleSEF it disables it every time
Please read the FAQ in the very first post.
When I create the file . Htaccess server bug
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"
)
}
Erreur du serveur!
Le serveur a èté victime d'une erreur interne et n'a pas été capable de faire aboutir votre requête. Soit le server est surchargé soit il s'agit d'une erreur dans le script CGI.
Si vous pensez qu'il s'agit d'une erreur du serveur, veuillez contacter le gestionnaire du site.
Error 500
www.scooter-chinois-4t.com
Sun Apr 4 10:08:41 2010
Apache
Only the first 4 lines should be in the .htaccess file.
Thank you!
Urls not change, they are identical
http://www.scooter-chinois-4t.com/forum/
His works :)
Disable Should it create simple URLs
I have another problem, some menu links are in English
That's because the install of those mod's Modifications.{language}.php didn't install correctly, go to the mod's page, and parse for the Modifications.{language}.php, then they should display in your language.
@ SlammedDime
Have you had rime to look at TinyPortal, to see why SimpleSEF doesn't work properly with it?
I installed the module manually because the automatic installation failed. Htaccess file was created and modification was successfully launched in the administration, but the modification does not work.
Can you advise me what's wrong?
Rewritelog:
[www.xxx.net/sid#7d2c78][rid#aa5ac8/initial] (3) [perdir /xxx/xxx/xxxx/xxxx.net/www/] applying pattern '(.*)' to uri 'Themes/M-gray/style.css'
[www.xxx.net/sid#7d2c78][rid#aa5ac8/initial] (4) [perdir /xxx/xxx/xxxx/xxxx.net/www/] RewriteCond: input=' /xxx/xxx/xxxx/xxxx.net/www/Themes/M-gray/style.css' pattern='!-f' => not-matched
[www.xxx.net/sid#7d2c78][rid#aa5ac8/initial] (1) [perdir /xxx/xxx/xxxx/xxxx.net/www/] pass through /xxx/xxx/xxxx/xxxx.net/www/Themes/M-gray/style.css
[www.xxx.net/sid#7d2c78][rid#aadc18/initial] (3) [perdir /xxx/xxx/xxxx/xxxx.net/www/] strip per-dir prefix: /xxx/xxx/xxxx/xxxx.net/www/www/Themes/default/print.css -> Themes/default/print.css
[www.xxxx.net/sid#7d2c78][rid#aadc18/initial] (3) [perdir /xxx/xxx/xxxx/xxxx.net/www/] applying pattern '(.*)' to uri 'Themes/default/print.css'
doesn't really look like those are errors, just information messages...
Does the 'enable' checkbox in the admin panel stay checked? What is the webserver you have?
Xarcell - sorry, I haven't had a chance yet.
Quote from: SlammedDime on April 06, 2010, 07:15:15 PM
Xarcell - sorry, I haven't had a chance yet.
That's ok, whenever you get a chance. I'll check back in a week or two.
I've installed it in RC3, however it doesn't activate it goes like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi964.photobucket.com%2Falbums%2Fae126%2Frjbrevilla%2Fsimeplesef.jpg&hash=3501d6fb58f8472d16720c28e2d7cb2ce4e3d93d)
Quote from: Achilles. on April 07, 2010, 09:53:18 AM
I've installed it in RC3, however it doesn't activate it goes like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi964.photobucket.com%2Falbums%2Fae126%2Frjbrevilla%2Fsimeplesef.jpg&hash=3501d6fb58f8472d16720c28e2d7cb2ce4e3d93d)
Read the first post, FAQ
Quote from: Tanshaydar on April 07, 2010, 10:11:43 AM
Read the first post, FAQ
Thanks, so I have to choose either which if i have a apache webserver or IIS7 Webserver then? where will I paste those codes? where on my SMF Directory?
You should have a .htaccess file on your forum directory(where your forum index.php file and Source directory is) and those codes must be in it.
Quote from: Am' on April 03, 2010, 05:04:09 AM
Quote from: feline on March 21, 2010, 11:07:33 AM
Quote from: Arantor on March 20, 2010, 06:11:27 PM
Dime: Found you a new bug in SSEF 1.0.3 and SMF 2.0 RC3. If you have a board with lots of pages in it and the pageindex gets the ... in it, when you click to expand, the generated URLs are all incorrect (and invalid, I think)
This you can simple fix .. search for:
// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'/rand,' => '/rand=',
$boardurl . '/topic/' => $scripturl . '?topic=',
'var smf_scripturl = "' . $boardurl . '/' => 'var smf_scripturl = "' . $scripturl,
);
Change to:
// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'%1/$d' => '%1$d',
'/rand,' => '/rand=',
$boardurl . '/topic/' => $scripturl . '?topic=',
'var smf_scripturl = "' . $boardurl . '/' => 'var smf_scripturl = "' . $scripturl,
);
Now the pageindex works ;)
Fel
it's fixed in memberlist, but not in display messages and sitemap
when i click a number i have this url :
http://localhost/Forum/NameBoard/NameTopic_20195.%1.html$d
any fix please ?
up ;)
Hi,
I would like to know if it is possible to have non Latin urls for non English forums.
I mean, instead of
http://www.mysite.com/forum/eshe_odna_kategoriy/ieshchie_odna_provierka_welcom_putin_5.0.html
something like this
http://www.mysite.com/forum/%20%D0%BF%D1%80%D0%B8%D0%B2/%D0%B5%D1%82%20%20!%20%D0%BC%D0%B5%D0%B4%D0%B2%D0%B5%D0%B4%20%E2%84%96%20%%20:%20%D0%92%D0%BE%D1%82%20%D1%82%D0%B0%D0%BA/_5.0.html
Why on earth would you want an encoded URI rather than one that looks good and attempts at a replacement for UTF8 to ASCII translation... your second link looks horrible.
To answer your question, sure, anything is possible, but I won't support it nor direct you on how to do it. Way too much work for so little (no) benefit.
Thanks for reply.
I am going to do it not for people.
Nobody remember urls (pretty or not).
It is for bots.
If i have utf non English word in the url and i have that word on non English page i can have benefit from this.
As most of people and pages in the net are not English, i think that this is so big benefit for all of them.
If you do it, most of smf users tell you thanks.
At least it maybe optional.
I see no benefit to it, and it's not something I'll change or even make optional. Sorry.
Quote from: SlammedDime on April 14, 2010, 03:58:41 PM
I see no benefit to it, and it's not something I'll change or even make optional. Sorry.
Pity.
Wiki engines (mediawiki) use it easily.
example:
hxxp:www.seobuilding.ru/wiki/%D0%9F%D0%BE%D0%B8%D1%81%D0%BA%D0%BE%D0%B2%D0%B0%D1%8F_%D0%BE%D0%BF%D1%82%D0%B8%D0%BC%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F
It will be (Russian):
hxxp://www.seobuilding.ru/wiki/Поисковая_оптимизация
Very important for not Eglish sites (which are much more than English ones).
Hi SD, I have a problem with SSEF. When you enter the domain name (site.com without http://www (http://www)), it redirects to http://www.site.com/wwwRedirect/WIRELESS_PROTOCOL/ (http://www.site.com/wwwRedirect/WIRELESS_PROTOCOL/) and it doesn't show anything on the page, only header and footer.
how can we change rewrite to this
/<category-title>-<category-id>/
/<category-title>-<category-id>/<topic-title>-<topic-id>.html
Hi,
i have a problem, my domaine is test.mysite.com, after activate simplesef i have Internal Server Error when i click any link (http://test.mysite.com/first_board/) ....
my htacces is correct :
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
any idea please ?
Is it possible to get the SMF arcade to work with score submitting with this ENABLED? I would really like to use this!! Thanks!
Hey guys
An amazing mod - thanks for creating it, but im having a problem. After a manual install, all seems to be installed and working correctly. the urls come out perfectly, all pages are displayed properly, however the buttons to create a topic or add a reply to a thread do not work. You can click on them, but the page just refreshes and it does nothing.
Can anybody help me in understanding whats wrong? Im using SMF 2.0 RC3 and the latest version of SimpleSEF. I have had to disable the mod on my site because users cannot use the site with it enabled, but the web address none-the-less is www.cherylanncole.co.uk/forums - If anybody can help, id appreciate it very much.
Thank you
Andrew
Quote from: Yağız... on April 14, 2010, 04:41:50 PM
Hi SD, I have a problem with SSEF. When you enter the domain name (site.com without http://www (http://www)), it redirects to http://www.site.com/wwwRedirect/WIRELESS_PROTOCOL/ (http://www.site.com/wwwRedirect/WIRELESS_PROTOCOL/) and it doesn't show anything on the page, only header and footer.
I'll have to play with this some... should be a fairly easy fix.
Quote from: Antes on April 15, 2010, 10:50:25 AM
how can we change rewrite to this
/<category-title>-<category-id>/
/<category-title>-<category-id>/<topic-title>-<topic-id>.html
We can't... because of the way the mod is written, it's not possible to include the board/category id's in the urls.
Quote from: Am' on April 17, 2010, 03:22:01 PM
Hi,
i have a problem, my domaine is test.mysite.com, after activate simplesef i have Internal Server Error when i click any link (http://test.mysite.com/first_board/) ....
my htacces is correct :
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
any idea please ?
Internal Server errors normally throw a more specific error in the server error log. If you don't have access to this via cPanel, you should ask your host. Without the specific error, it's nearly impossible to diagnose.
Quote from: Kcmartz on April 17, 2010, 07:50:00 PM
Is it possible to get the SMF arcade to work with score submitting with this ENABLED? I would really like to use this!! Thanks!
Possibly... I haven't played with it to know how it doesn't work... can you elaborate?
Quote from: swiftmed on April 19, 2010, 01:22:14 PM
Hey guys
An amazing mod - thanks for creating it, but im having a problem. After a manual install, all seems to be installed and working correctly. the urls come out perfectly, all pages are displayed properly, however the buttons to create a topic or add a reply to a thread do not work. You can click on them, but the page just refreshes and it does nothing.
Can anybody help me in understanding whats wrong? Im using SMF 2.0 RC3 and the latest version of SimpleSEF. I have had to disable the mod on my site because users cannot use the site with it enabled, but the web address none-the-less is www.cherylanncole.co.uk/forums - If anybody can help, id appreciate it very much.
Thank you
Andrew
I've never had this problem myself... you're sure you're using 1.1.3 and not 1.1.2?
Well SlammedDime, I'm using Pretty URLs now and that hack worked!
Quote from: swiftmed on April 19, 2010, 01:22:14 PM
Can anybody help me in understanding whats wrong? Im using SMF 2.0 RC3 and the latest version of SimpleSEF. I have had to disable the mod on my site because users cannot use the site with it enabled, but the web address none-the-less is www.cherylanncole.co.uk/forums - If anybody can help, id appreciate it very much.
The link is't correct I think ..
Your link: xxxx://cherylanncole.co.uk/forums?action=forum
Must by change to: xxxx://cherylanncole.co.uk/forums/index.php?action=forum
Fel
Hello
¿ this mod is not compatible with e-arcade
¿ Please confirm
Regards
LOL,
This mod is compatible with E-Arcade, however there is a problem. E-Arcade and SMF-Arcade both have a Arcade.php to pass scores over to SMF for some games. But with a little help from me you can make it work.
arcade.php
<?
$_POST['action'] = 'arcade';
if (isset($_REQUEST['gamename']))
$_POST['game'] = $_REQUEST['gamename'];
$_POST['v3arcade'] = true;
if ($_REQUEST['sessdo'] == 'sessionstart')
$_POST['sa'] = 'vbSessionStart';
elseif ($_REQUEST['sessdo'] == 'permrequest')
$_POST['sa'] = 'vbPermRequest';
elseif ($_REQUEST['sessdo'] == 'burn')
$_POST['sa'] = 'vbBurn';
require_once('./index.php');
?>
Fixed :D
Hello there,
Just instlled this mod and activated it via admin panel, on version 1.1.11.
Everything works fine, but in admin panel i have few pages of this:
Quote2: ob_start() [<a href='ref.outcontrol'>ref.outcontrol</a>]: output handler 'ob_gzhandler' cannot be used twice
Datoteka: /var/www/web25/web/Sources/SimpleSEF.php
Line: 319
Can someone help me to fix this?
Feature Request : Rewrite Tags
/tags/tagid,8/ ( simple sef ) to /tags/simple-sef-8/ ?
Not really possible.
I have a subboard in the board "admins-office" that has the same name, as a Member of the board.
So the board can be reached by myboard.com/*TheMemberName*/
But it can also be reached by using myboard.com/admins-office/*TheMemberName*/
That's no problem so far since there is the canonical meta-tag for google, that displays only the first url.
But here is the problem: By typing following url:
myboard.com/profile/*TheMemberName*-613/
It shows my own profile instead of *TheMemberName*'s profile!
And the linktree on the top of the board looks like:
"myboard.com » Internal » admins office » *TheMemberName* » Profile of *MyMemberName* » Summary"
"Internal" is the category that contains the board "admins office"...
Profiles of other members(those who have no board named like them) work.
There is any way to add an exception...? Because it creates a bad url ir the Simpleportal Shoutbox when you delete a shout.
url: http://localhost/portal/sa,shoutbox/shoutbox_id,1/delete,142/cefcadfb15e,654ba2ff6266a5e8006595bbd5f8c240/quot/%20onclick=
The mod works great. Kudos to the developers. I have a problem though.
I want 404 Error Pages to show up. Now whenever someone enters a non existing url it redirects to the main page.
I have thousands of dead links indexed in google, I guess the spider sees all of them as a mirror page of my mainpage, punishing my Site for it.
I've been trying to adjust the .htaccess, but with no luck. Either the 404.shmtl shows up and does what I want, but then the mod doesnt work anymore, or the mod works, but dead links just redirect to the main page.
right now my .htaccess looks like this:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
ErrorDocument 401 /404.shtml
ErrorDocument 402 /404.shtml
ErrorDocument 403 /404.shtml
ErrorDocument 404 /404.shtml
ErrorDocument 500 /404.shtml
RewriteRule (.*) index.php
Editing the .htaccess is not going to have any effect. I had to edit my index.php. :D
Here is how.
For a default SMF installation do this.
Change This
// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}
To
// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
if ($_SERVER['REQUEST_URI'] == '/' || $_SERVER['REQUEST_URI'] == '/index.php') {
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
} else {
header("HTTP/1.0 404 Not Found");
die();
}
}
I use PortaMX so I have something like this.
// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
//-> start change PortaMx
if(WIRELESS)
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}
elseif ($_SERVER['REQUEST_URI'] == '/' || $_SERVER['REQUEST_URI'] == '/index.php') {
return 'PortaMx';
} else {
header("HTTP/1.0 404 Not Found");
die();
}
//-> end change PortaMx
}
The problem why SimpleSEF is returning the board index is because of how SimpleSEF works. If it is not in its action array the action does not get set when going to index.php. Even though a action is clearly stated in the url SMF sees it as translated to the base url, no querystrings. So a easy way to fix this is to check the $SERVER['REQUEST_URI'] to see what is actually in there. If there is more than we expected then we know there is something wrong in the url so send a 404.
In my example I have a blank 404 set.
thank you very much, this seems to work now.
But I have GoogleTagged Mod installed which doesn't seem to work anymore.
It should have no effect on most mods if they have not modified that part of the index.php. Some mods, mainly portals change this part of the code for their front page. The code will be slightly different for these portals. However I posted this as a example, not to copy and paste directly but to give an idea of how to 404 a bad page with SimpleSEF.
Basically the code above is as simple as it gets, if the url is bad then 404 if not go to the board index.
If your still having problems with this GoogleTagged mod can I suggest Google Analytics. ;)
got everything working. Thanks again.
I installed the googletag mod, because I thought it helps a bit SEO wise.
I switched from phpbb to smf a few month ago and Searchengine traffic decreased dramatically since then.
Even now a few months later there are still a lot of phpbb links indexed on google and barely any SMF Links.
Last week I've deleted the robots.txt (just used it to avoid indexing the "print" Pages).
It seems that now after I deleted the robots.txt, indexing works much better. Maybe I had some errors in it.
Anyway, so you think the googletag mod is not helping to get a better ranking in search engines?
Then I will remove it.
@nend .. with the actually version of PortaMx (0.980 + update 0.980-1) and SEF 1.0.3 this works without any change or error ...
Fel
Quote from: piplexi on April 26, 2010, 02:35:10 AM
got everything working. Thanks again.
I installed the googletag mod, because I thought it helps a bit SEO wise.
I switched from phpbb to smf a few month ago and Searchengine traffic decreased dramatically since then.
Even now a few months later there are still a lot of phpbb links indexed on google and barely any SMF Links.
Last week I've deleted the robots.txt (just used it to avoid indexing the "print" Pages).
It seems that now after I deleted the robots.txt, indexing works much better. Maybe I had some errors in it.
Anyway, so you think the googletag mod is not helping to get a better ranking in search engines?
Then I will remove it.
Lets not turn this into a SEO topic, but if don't already create a sitemap. It helps a ton. ;)
This mod doesn't have any actual ranking benefit...
Quote from: Arantor on April 26, 2010, 11:29:32 AM
This mod doesn't have any actual ranking benefit...
lol, quite agree. The mod does not do anything that third party services like Google do for free. Google Analytics gives a much better report though.
Ok so I was trying to troubleshoot some server performance issues. Will I found this article, well me not knowing much about mod-rewrite, well the article said you need to set FollowSymLinks on when you use mod-rewrite, this is a must do according to the article.
Quote from article
QuoteNOTE: Any htaccess rewrite examples should always begin with:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
Well then I did a search and found out if this setting is not on when you use mod rewrite the server will never cache the location according to this other article and will basically search for the location
Quote from article.
QuoteIf FollowSymlinks is NOT set at all, Apache has to issue some extra system calls when looking for a file. For example, if you browse to the /index.html document, Apache would look for that file in your /www, /www/htdocs, and /www/htdocs/index.html. These additional system calls will add to the latency. The system call results are not cached, so they will occur on every request.
Then I did another search and found this at the apache website.
QuoteThe rewrite engine may be used in .htaccess files. To enable the rewrite engine for these files you need to set "RewriteEngine On" and "Options FollowSymLinks" must be enabled.
So I added those three lines of code to my .htaccess right above the code that SimpleSEF uses and wow, my pages are loading under a second. I was having load times over a minute, but nothing to do with MySql or running PHP processes. I sort of pointed the finger at mod-rewrite and went to digging into the cause of the problem.
Do you think this may be the cause?
Sites
http://www.angelmonticelli.com.ar/2010/03/ultimate-htaccess-code-snippets/
http://www.maxi-pedia.com/FollowSymLinks
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
I've never had any issues without using FollowSymLinks. Good info you have there though, I'll add it to the next version as it surely won't hurt anything... I don't really see how this would cause long load times though... even without cached results.
Edit to add: most hosts, if they are smart, will already have this enabled, so in most cases it won't even be necessary and redundant.
Thanks for the nice mod.
Simple Sef converter for Pretty Urls?
Please.
Do i need to make some custom edit to the code to use simpleSEF with SimplePortal? My smf is 1.1.11
Thank a lot
update ? :P
how can i manually uninstall this from my ftp cus im locked out my website getting 404 errors first and now getting 500 errors because i didnt do the .htaccess part first and then i automatically got loged out and now i cant log back in to uninstall it or turn it off
Just rename or delete Sources/SimpleSEF.php
Does anyone know why this doesn't work with Tinyportal?
SlammedDime, I created a html block using simpleportal.
Some of those links I created within in the block takes me to homepage instead of that link when clicked.
Quote from: Xarcell on May 08, 2010, 04:38:34 PM
Does anyone know why this doesn't work with Tinyportal?
What happens if you try it with TinyPortal? I mean, does it explosively combust, or does something minor go wrong?
Sorry Xarcell, I haven't had time to play with it...
Can you (as Arantor said), explain how it 'doesnt work'?
Quote from: Dismal Shadow on May 08, 2010, 05:05:05 PM
SlammedDime, I created a html block using simpleportal.
Some of those links I created within in the block takes me to homepage instead of that link when clicked.
link to a live version? If not, what is the url in the block as you entered it, and how did the mod reformat it?
Quote from: Am' on April 08, 2010, 05:37:32 AM
Quote from: Am' on April 03, 2010, 05:04:09 AM
Quote from: feline on March 21, 2010, 11:07:33 AM
Quote from: Arantor on March 20, 2010, 06:11:27 PM
Dime: Found you a new bug in SSEF 1.0.3 and SMF 2.0 RC3. If you have a board with lots of pages in it and the pageindex gets the ... in it, when you click to expand, the generated URLs are all incorrect (and invalid, I think)
This you can simple fix .. search for:
// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'/rand,' => '/rand=',
$boardurl . '/topic/' => $scripturl . '?topic=',
'var smf_scripturl = "' . $boardurl . '/' => 'var smf_scripturl = "' . $scripturl,
);
Change to:
// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'%1/$d' => '%1$d',
'/rand,' => '/rand=',
$boardurl . '/topic/' => $scripturl . '?topic=',
'var smf_scripturl = "' . $boardurl . '/' => 'var smf_scripturl = "' . $scripturl,
);
Now the pageindex works ;)
Fel
it's fixed in memberlist, but not in display messages and sitemap
when i click a number i have this url :
http://localhost/Forum/NameBoard/NameTopic_20195.%1.html$d
any fix please ?
up ;)
Quote from: SlammedDime on May 08, 2010, 05:19:55 PM
Quote from: Dismal Shadow on May 08, 2010, 05:05:05 PM
SlammedDime, I created a html block using simpleportal.
Some of those links I created within in the block takes me to homepage instead of that link when clicked.
link to a live version? If not, what is the url in the block as you entered it, and how did the mod reformat it?
This is a example:
http://thetwoworldsforum.com/help/ (Clicking some of these links in "Introduction" redirect to homepage.)
<a href="http://thetwoworldsforum.com/index.php/topic,717.0.html"> Interesting in supporting the Community?</a>
SEF converts to:
<a href="http://thetwoworldsforum.com/ Interesting in supporting the Community?</a>
Am' - I haven't had a chance to look at that further yet
Dismal - the link you input is SMF's style of sef url... you need to use SMF's native urls...
http://thetwoworldsforum.com/index.php/topic,717.0.html
to
http://thetwoworldsforum.com/index.php?topic=717.0
Quote from: SlammedDime on May 08, 2010, 07:40:41 PM
Am' - I haven't had a chance to look at that further yet
Dismal - the link you input is SMF's style of sef url... you need to use SMF's native urls...
http://thetwoworldsforum.com/index.php/topic,717.0.html
to
http://thetwoworldsforum.com/index.php?topic=717.0
You mean I have to edit all links on the forums and remove . html?
No, just edit the links in the custom block you have.
Quote from: Arantor on May 08, 2010, 07:52:44 PM
No, just edit the links in the custom block you have.
Not all of them are in the blocks, like the "help" tab.
Sounds like you didn't make your custom help introduction tag properly... It does not look anything close to what the default SMF help page looks like, so it must be custom, which means you made the links on that page wrong.
Quote from: SlammedDime on May 08, 2010, 08:19:32 PM
Sounds like you didn't make your custom help introduction tag properly... It does not look anything close to what the default SMF help page looks like, so it must be custom, which means you made the links on that page wrong.
Yes it's custom using the Language Editor. And I haven't change any links on the help page.
HTML tag:
<p><a href="http://thetwoworldsforum.com/index.php/topic,2.0.html"><strong>Forum Guideline & Rules</strong></a></p>
This is in the help page and in the blocks as well.
Using BBcode:
[url=http://thetwoworldsforum.com/index.php/topic,2.0.html][b]Forum Guideline & Rules[/b][/url]
This is on the topic (which when using SEF enabled it will redirect to homepage while clicking that.)
Removing .html and clear cache doesn't seem to work as well.
I'm confused and you're not being entirely clear...
<p><a href="http://thetwoworldsforum.com/index.php/topic,2.0.html"><strong>Forum Guideline & Rules</strong></a></p>
Where is that at in a standard SMF help contents? My 'Introduction' page looks nothing like yours... where did yours come from? Where is the HTML where it get's it's contents? Look at even the one here at SMF (http://www.simplemachines.org/community/index.php?action=help)... it looks nothing like what you have.
Quote from: SlammedDime on May 08, 2010, 05:19:12 PM
Sorry Xarcell, I haven't had time to play with it...
Can you (as Arantor said), explain how it 'doesnt work'?
Here is the link to the original post: http://www.simplemachines.org/community/index.php?topic=352351.msg2563400#msg2563400
It says:
QuoteI know this doesn't help much, since TinyPortal Beta5 hasn't been released to the public yet.
But...
SimpleSEF breaks TP, because it's automatically detects and alters the URL's. One cannot write articles, change themes through the theme box, etc.
Example URL's:
http://yoursite.com/index.php?action=tpadmin;sa=addarticle_html - works
Becomes: http://yoursite.com/tpadmin/sa,addarticle_html/ - doesn't work
Is there any information that I can pass along to Bloc, to help fix this with TP?
Anytime a user tries clicks a link to write an article, it returns a blank page. Although viewing an article works just fine. I have a test site here: www.feyorin.com you can see the theme changer on the homepage doesn't work either.
I have a feeling the _ is what's causing issues, but I'll defer to Dime on this one.
Quote from: SlammedDime on May 08, 2010, 08:59:43 PM
I'm confused and you're not being entirely clear...
<p><a href="http://thetwoworldsforum.com/index.php/topic,2.0.html"><strong>Forum Guideline & Rules</strong></a></p>
Where is that at in a standard SMF help contents? My 'Introduction' page looks nothing like yours... where did yours come from? Where is the HTML where it get's it's contents? Look at even the one here at SMF (http://www.simplemachines.org/community/index.php?action=help)... it looks nothing like what you have.
Admin> Language >English> Manual> manual_intro_overview
and in the box I replace as my own. :P
Anyway this is not what I am talking about. Creating links in BBcode or HTML had make it redirect to homepage.
Or had replace all to homepage link instead of what's in the BBcode/HTML
So uninstalling and reinstalling many times back and forth breaks a new errors in the log:
8: Undefined index: simplesef
File: /home/user/public_html/forum.com/Sources/Admin.php
Line: 157
8: Undefined index: simplesef
File: /home/user/public_html/forum.com/Sources/ManageSettings.php
Line: 2328
Manual check all the edits in the files, seem fine and correct in place.
The links you were creating were not the links you should have been using.... you need to use standard SMF links (index.php?topic=1.0), not SMF Queryless Url links (index.php/topic,1.0.html).
As for the errors... the only guess I would have is that you don't have the language strings in the language file properly.
Quote from: SlammedDime on May 08, 2010, 11:59:19 PM
The links you were creating were not the links you should have been using.... you need to use standard SMF links (index.php?topic=1.0), not SMF Queryless Url links (index.php/topic,1.0.html).
As for the errors... the only guess I would have is that you don't have the language strings in the language file properly.
O_O', I see...now it works. But how did it covert to / and , in the first place? It edit itself somehow...Will play around more with it.
EDIT: Fixed. Everything works now as should.
One major problem...
If someone copy and paste the url from within the forums in post or whatever with SEF enabled, with SEF disabled the url doesn't work or convert to back to SMF's native url.
Ok here's what happen:
If you have Search engine friendly URLs
Apache/Lighttpd only!
enabled before installing SEF, chances are all the links posts in the forum are screwed which doesn't work with SEF. (which will redirect to the homepage)
Without "Search engine friendly URLs" enabled:
/index.php?topic=932.0
With "Search engine friendly URLs" enabled:
/index.php/topic/932.0
I have SEF disabled for now until there is a walkaround or support that link. Not sure if it's a bug but worth a look, Dime.
This isn't good especially with huge forums that have many links with "Search engine friendly URLs" and install SEF after. :-\
i installed it, but in the admin panel, near custom fields, it doesn't appear the title of the settings... i can click it but there's no title...
Quote from: Dismal Shadow on May 09, 2010, 08:20:42 AM
Without "Search engine friendly URLs" enabled:
/index.php?topic=932.0
With "Search engine friendly URLs" enabled:
/index.php/topic/932.0
That you can simple fix with follow..
Find in SimpleSEF.php (function ob_simplesef($buffer)) the string:
// Grab the topics...
$matches = array();
and add before:
// convert SMF-Seo urls..
if(preg_match_all('~' . preg_quote($scripturl) . '\/topic\,[-a-zA-Z0-9+&@#/%?=\~_|!:,.;\[\]]+~', $buffer, $matches, PREG_PATTERN_ORDER) > 0)
{
foreach($matches[0] as $link)
$buffer = str_replace($link, str_replace(array('/topic,', '.html'), array('?topic=', ''), $link), $buffer);
}
That converts exist SMF seo url's ..
Fel
Quote from: feline on May 09, 2010, 02:35:32 PM
Quote from: Dismal Shadow on May 09, 2010, 08:20:42 AM
Without "Search engine friendly URLs" enabled:
/index.php?topic=932.0
With "Search engine friendly URLs" enabled:
/index.php/topic/932.0
That you can simple fix with follow..
Find in SimpleSEF.php (function ob_simplesef($buffer)) the string:
// Grab the topics...
$matches = array();
and add before:
// convert SMF-Seo urls..
if(preg_match_all('~' . preg_quote($scripturl) . '\/topic\,[-a-zA-Z0-9+&@#/%?=\~_|!:,.;\[\]]+~', $buffer, $matches, PREG_PATTERN_ORDER) > 0)
{
foreach($matches[0] as $link)
$buffer = str_replace($link, str_replace(array('/topic,', '.html'), array('?topic=', ''), $link), $buffer);
}
That converts exist SMF seo url's ..
Fel
sorry feline,
is it for everyone to convert all the already existing links? or for that there's already the inside option?
If you have enabled "Search engine friendly URLs" in SMF before you use SimpleSEF, then this patch will convert existing urls so SimpleSEF can handle these links.
Note that the links are NOT changed in Topics/Messages, it's changed only on runtime, so you can alway disable SSEF. Also Note, that you can NOT SSEF links in topics convert back to SMF format !
Fel
Quote from: feline on May 09, 2010, 02:35:32 PM
Quote from: Dismal Shadow on May 09, 2010, 08:20:42 AM
Without "Search engine friendly URLs" enabled:
/index.php?topic=932.0
With "Search engine friendly URLs" enabled:
/index.php/topic/932.0
That you can simple fix with follow..
Find in SimpleSEF.php (function ob_simplesef($buffer)) the string:
// Grab the topics...
$matches = array();
and add before:
// convert SMF-Seo urls..
if(preg_match_all('~' . preg_quote($scripturl) . '\/topic\,[-a-zA-Z0-9+&@#/%?=\~_|!:,.;\[\]]+~', $buffer, $matches, PREG_PATTERN_ORDER) > 0)
{
foreach($matches[0] as $link)
$buffer = str_replace($link, str_replace(array('/topic,', '.html'), array('?topic=', ''), $link), $buffer);
}
That converts exist SMF seo url's ..
Fel
That finally works, thanks. :)
Please update this in the next version, Dime.
Quote from: feline on May 09, 2010, 03:02:06 PM
If you have enabled "Search engine friendly URLs" in SMF before you use SimpleSEF, then this patch will convert existing urls so SimpleSEF can handle these links.
Note that the links are NOT changed in Topics/Messages, it's changed only on runtime, so you can alway disable SSEF. Also Note, that you can NOT SSEF links in topics convert back to SMF format !
Fel
That's one con of SEF. :(
The link will not work if you paste url with SEF and disable SEF, the url doesn't work nor convert it back to SMF format. Hope there is a way.
Anything is possible, just a matter of how much time we have to invest in coming up with a solution. I might be able to come up with a reverse converter, but no promises
Quote from: SlammedDime on May 09, 2010, 11:09:36 PM
Anything is possible, just a matter of how much time we have to invest in coming up with a solution. I might be able to come up with a reverse converter, but no promises
Great, that's one thing keeping me from having this for a while. Surprised no one reported. :)
First of all, thanks for the great mod. It's the only thing SMF needed.
I have a problem, unfortunately, and I can't figure it out.
I am running SMF 2.0 RC3 and SimpleSEF 1.0.3 on two different forums on two different websites. On one website, everything works perfectly, just as I want it, i.e. myforum.com/general-discussion/.
On the other, however, the board URLs appear as myforum2.com// (the first board), myforum2.com/2/ (second board) and myforum2.com/3/, and so on. For some reason it seems to be using the board's ID as the URL instead of the title.
I'm using the latest version of SMF, as you can see, and the latest version of SimpleSEF. I have tried uninstalling all my other mods from both forums, I've tried reinstalling the mod, installing the mod using the different methods (server browser, via direct link, and upload), I've cleared the cache multiple times and all to no avail. My .htaccess file says nothing unusual. Website design and SMF customisation is nothing new to me so I don't know what's wrong.
Do you have any idea what's going wrong? I appreciate any help.
Quote from: Dismal Shadow on May 09, 2010, 11:14:14 PM
Quote from: SlammedDime on May 09, 2010, 11:09:36 PM
Anything is possible, just a matter of how much time we have to invest in coming up with a solution. I might be able to come up with a reverse converter, but no promises
Great, that's one thing keeping me from having this for a while. Surprised no one reported. :)
dismal, can u explain to me this thing?
it means that if i use simple sef, and i convert and use all new links in the new form, then if i uninstall the mod, all links will be broken?
Quote from: Raffaele1977 on May 10, 2010, 05:42:09 PM
Quote from: Dismal Shadow on May 09, 2010, 11:14:14 PM
Quote from: SlammedDime on May 09, 2010, 11:09:36 PM
Anything is possible, just a matter of how much time we have to invest in coming up with a solution. I might be able to come up with a reverse converter, but no promises
Great, that's one thing keeping me from having this for a while. Surprised no one reported. :)
dismal, can u explain to me this thing?
it means that if i use simple sef, and i convert and use all new links in the new form, then if i uninstall the mod, all links will be broken?
If you are copying and pasting links from the forums itself with SEF enabled and uninstall...yes the links will be broken.
Quote from: Dismal Shadow on May 10, 2010, 05:48:06 PM
Quote from: Raffaele1977 on May 10, 2010, 05:42:09 PM
Quote from: Dismal Shadow on May 09, 2010, 11:14:14 PM
Quote from: SlammedDime on May 09, 2010, 11:09:36 PM
Anything is possible, just a matter of how much time we have to invest in coming up with a solution. I might be able to come up with a reverse converter, but no promises
Great, that's one thing keeping me from having this for a while. Surprised no one reported. :)
dismal, can u explain to me this thing?
it means that if i use simple sef, and i convert and use all new links in the new form, then if i uninstall the mod, all links will be broken?
If you are copying and pasting links from the forums itself with SEF enabled and uninstall...yes the links will be broken.
is there another way to have a link in this way
www.domain.com/speak-about-soccer
?
kpac
Try changing the settings. Uncheck "Create Simple URLs".
Heh, thanks for the suggestion, but I've tried more than you could imagine.
With simple URLs on, the URLs look like myforum.com/board_2.0/ etc., which is the way it should look, but I still can't figure out why it doesn't work the normal way.
Disable "Create Simple URLs" option.
kpac - sorry I didn't see your post before. Normally that happens when the board names are not being cached properly (or if you have caching disabled, they are not being retrieved from the database for whatever reason. Any errors in the error log for your forum?
what's the difference between this mod and the pretty url?
they both pretty much do the same thing, but the implementations are completely different, and I aimed to make this one as simple to use as possible from an admin/user standpoint.
Great mod. But when I write a pm and put something into "To:" the name is replaced by another nick. When I uncheck "Enable SimpleSEF" it works again.
What version of SMF and what version of the mod?
SMF 1.1.11
SimpleSEF 1.0.3
I also installed
Another URL Popup 1.0
Ignore user 1.4
I'll have test this to see what is causing it
Quote from: SlammedDime on May 11, 2010, 08:34:37 PM
kpac - sorry I didn't see your post before. Normally that happens when the board names are not being cached properly (or if you have caching disabled, they are not being retrieved from the database for whatever reason. Any errors in the error log for your forum?
Level 1 caching is enabled and I couldn't find anything wrong with the database. I've a feeling it must be the remnants of some poorly uninstalled mod. Anyway, there are two different errors.
Error 1:
http://forum.webdesigntuts.net/index.php?action=helpadmin;help=db_persist
8: Undefined index: simplesef_adds
File: /home/---------/public_html/~forumsmf/Sources/SimpleSEF.php
Line: 278
Problem line:
278: $buffer = preg_replace('~(' . preg_quote($txt['page_created']) . '.*?' . preg_quote($txt['queries']) . ')~', '\1<br />' . $txt['simplesef_adds'] . ' ' . $simpleSEF['execTime'] . $txt['seconds_with'] . $simpleSEF['query_count'] . $txt['queries'], $buffer);
Error 2:
http://forum.webdesigntuts.net/index.php?http://forum.webdesigntuts.net/
8: Undefined index: 42
File: /home/---------/public_html/~forumsmf/Sources/SimpleSEF.php
Line: 455
Problem line:
455: $boardName = $simpleSEF['boardNameList'][$id];
Thanks again for any light you can shine on this.
The first one is due to the language strings not being in Modifications.english.php (or if they are, the cache needs to be cleared so that files is reloaded).
The second one is the source of the issue... it can't find the ID in the boardNameList array, which means it wasn't populated into the cache properly. The only way I could troubleshoot further is if you wanted to created an FTP account for me on your host that I could use to check the files to see what is happening.
Okay, thanks. I'll get back on this tomorrow. Schooooool. :P
Quote from: SlammedDime on May 12, 2010, 04:25:21 AM
I'll have test this to see what is causing it
Thanks a lot. Does this happen on your board, too ? Or do you have to install a SMF 1.1.11 first ?
I just sent a PM to you with all the required details. Thanks for the help. :)
In my case (name is replaced by another nick) the name is always replaced by the nick "Macy" which is the member with ID=1
Quote from: Fovist on May 02, 2010, 02:58:59 AM
Thanks for the nice mod.
Simple Sef converter for Pretty Urls?
Please.
Help, please.
i want SimpleSEF use /smf/.htaccess , how can i do this ?
Quote from: bluedevil on February 06, 2010, 02:49:12 PM
This mod installed perfect but.....
I couldnt check mark to activate the mod, i manually added the rewrite code in .htaccess, then i was able to activate it and it worked.
...but, it added a bunch of question marks at the very top of my forum pages like this all the way across..
????????????????????????????????
What went wrong?
Happens to me. 1.1.11
Something to do with the header modification:
2: Cannot modify header information - headers already sent by (output started at /home/warrior/public_html/Sources/SimpleSEF-Db/x00.php:1)
File: /home/warrior/public_html/Sources/Subs.php
Line: 3567, 3557 and 3558
That is the entry in the error log. :)
EDIT1:This only happens when SEF is enabled putting in the code of .htaccess
If you keep it installed and do nothing, it won't happen.
EDIT2:Other errors discovered:
2: Cannot modify header information - headers already sent by (output started at /home/warrior/public_html/Sources/SimpleSEF-Db/x00.php:1)
/home/warrior/public_html/Sources/Load.php
2258
2: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/warrior/public_html/Sources/SimpleSEF-Db/x00.php:1)
/home/warrior/public_html/Sources/Load.php
2254
2: Cannot modify header information - headers already sent by (output started at /home/warrior/public_html/Sources/SimpleSEF-Db/x00.php:1)
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 301
PS: This didn't happen when it was first installed. I then uninstalled it and reinstalled it. Between the gap of uninstall and reinstall, pretty URL's and AdvanceSEF were installed and uninstalled.
I hope this might give you a lead over it. :)
Sounds like the x00.php file is corrupted in some way... does it still happen after you reinstalled?
Yup, replaced all the files to test it once again. Still the same thing.
EDIT1:
Been trying pretty hard to get this mod working:
- Checked each and every code for the installation about 5 times.
- Installed it manually, ran add_settings.php manually.
- Deleted the previous database entries from smf_settings for SimpleSEF and then ran add_settings.php again
- Checked the presence of all the files.
- All the files related to this mod have the permissions of 755. (777 is not allowed)
Above process was done for a minimum of 5 times, and it still didn't resolve the question mark solution. As you said SlammedDime, something seems wrong with the files in SimpleSEF-Db. Very weird huh!
EDIT2:
- Uploaded all files in Binary, still no change.
Just to confirm, this is the .htaccess code for apache right?
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
Hey Hey Hey! ?
I'm not really sure where to go on it... can you post a copy of the x00.php file from your installation?
I did notice that the 3rd and the 4th lines come together instead of being separate at times, but I did edit it later to make it show up properly.
File attached.
Quote from: Antes on May 14, 2010, 04:33:15 PM
i want SimpleSEF use /smf/.htaccess , how can i do this ?
may i bump this ?
Thank you :)
Anything ?
Alright, I'm just confused...
QuoteWorks with Apache (mod_rewrite required) or IIS7 (Microsoft URL Rewrite module required + web.config files in your directory)
How do I do the mod_rewrite? How would I know if my website is running Apache or IIS7?
When my SimpleSef is enabled... I only get this kind of changes:
http://mywebsite.com/home/board_2.0/
http://mywebsite.com/topic_4.0.html
How will I be able to make it http://www.yourboard.com/index.php?board=1.0 =>> http://www.yourboard.com/general_discussion/?
Thanks!
unckeck Create Simple URLs
Fel
Quote from: feline on May 23, 2010, 03:19:17 PM
unckeck Create Simple URLs
Fel
When I did that it becomes: http://mywebsite.com/home//_4.0.html
Quote from: SlammedDime on May 12, 2010, 04:25:21 AM
I'll have test this to see what is causing it
Did you test it ? In my board the name is always replaced by the nick "Macy" which is the member with ID=1
Quote from: Achilles. on May 23, 2010, 12:13:56 PM
How do I do the mod_rewrite? How would I know if my website is running Apache or IIS7?
On Admin - SimpleSEF you see follow
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]
Click on Help for more info ...
If you have a linux server, then you have a apache httpd ;)
Fel
Quote from: feline on May 24, 2010, 10:28:54 AM
Quote from: Achilles. on May 23, 2010, 12:13:56 PM
How do I do the mod_rewrite? How would I know if my website is running Apache or IIS7?
On Admin - SimpleSEF you see follow
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]
Click on Help for more info ...
If you have a linux server, then you have a apache httpd ;)
Fel
Yep, it does work... However, I've got a problem regarding the mod rewriting, it gives me this link: http://mywebsite.com/home//_4.0.html not mywebsite/general_discussions and the like.
You use SMF2? I have never tested with 1.x
If you use SMF2, the cache is enabled and functionality?
What is the content of $boardurl?
You use other mods?
Fel
QuoteFAQ:
Q: Does this mod work with AJAX Chat?
A: Not at this time. I have to do some further testing to see why. I believe it has to do with the .htaccess file and some part of the AJAX Chat script not liking the redirect header.
AJAX Chat and SimpleSEF are working together just fine for me, tested on SMF 2 RC3 and SMF 1.1.11.
I know there is an issue with Pretty URL's but it's an easy fix by adding this line of code to the .htaccess
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
Quote from: Achilles. on May 24, 2010, 10:32:24 AM
Yep, it does work... However, I've got a problem regarding the mod rewriting, it gives me this link: http://mywebsite.com/home//_4.0.html not mywebsite/general_discussions and the like.
This seems to be a problem with some kinds of server configs.
See my post here, which is of a similar problem.
http://www.simplemachines.org/community/index.php?topic=352351.msg2622401#msg2622401
Quote from: kpac on May 24, 2010, 01:10:00 PM
Quote from: Achilles. on May 24, 2010, 10:32:24 AM
Yep, it does work... However, I've got a problem regarding the mod rewriting, it gives me this link: http://mywebsite.com/home//_4.0.html not mywebsite/general_discussions and the like.
This seems to be a problem with some kinds of server configs.
See my post here, which is of a similar problem.
http://www.simplemachines.org/community/index.php?topic=352351.msg2622401#msg2622401
Yeah, I think we have the same problem... But the error log gives me a different reason:
ERROR LOG:
http://mywebsite.com/home/index.php?8:
Undefined index: REQUEST_URL
File: /home/website/public_html/home/Sources/Subs.php
Line: 2879
Subs.php attached. Thanks!
I would like to have a startpage for my forum. Therefore i have a "start.php" and wrote in the .htaccess file "DirectoryIndex start.php".
Works quite fine.
Problem is, that simpleSEF rewrites the "http://forum.com/index.php" to "http://forum.com/" so everytime i try to reach the board-index i come to the startpage.
How can i handle this?
I get errors in my log
ligne 278
$buffer = preg_replace('~(' . preg_quote($txt['page_created']) . '.*?' . preg_quote($txt['queries']) . ')~', '\1<br />' . $txt['simplesef_adds'] . ' ' . $simpleSEF['execTime'] . $txt['seconds_with'] . $simpleSEF['query_count'] . $txt['queries'], $buffer);
you have translated the SimpleSEF text strings in the Modifications.english.php to your language?
Fel
thank you very much, the problem was indeed the translation
Quote from: kpac on May 24, 2010, 01:10:00 PM
Quote from: Achilles. on May 24, 2010, 10:32:24 AM
Yep, it does work... However, I've got a problem regarding the mod rewriting, it gives me this link: http://mywebsite.com/home//_4.0.html not mywebsite/general_discussions and the like.
This seems to be a problem with some kinds of server configs.
See my post here, which is of a similar problem.
http://www.simplemachines.org/community/index.php?topic=352351.msg2622401#msg2622401
I realized I never FTP'd to your site to take a look at this... If you still need some help with it, let me know and I can take a look...
Achillies - I'd need FTP access to your site and a link to your board to test it out and see what is happening.
Quote from: dagod on May 27, 2010, 07:06:16 AM
I would like to have a startpage for my forum. Therefore i have a "start.php" and wrote in the .htaccess file "DirectoryIndex start.php".
Works quite fine.
Problem is, that simpleSEF rewrites the "http://forum.com/index.php" to "http://forum.com/" so everytime i try to reach the board-index i come to the startpage.
How can i handle this?
There really isn't a way to handle this. The way this mod rewrites urls, it depends on index.php being the DirectoryIndex that apache will use.
Quote from: Antes on May 19, 2010, 11:50:36 AM
Quote from: Antes on May 14, 2010, 04:33:15 PM
i want SimpleSEF use /smf/.htaccess , how can i do this ?
may i bump this ?
Thank you :)
Sorry, I don't understand what you're asking... can you clarify?
Quote from: (F.L.A.M.E.R) on May 23, 2010, 10:52:42 AM
Anything ?
I'm dumbfounded... You do not want to edit the x00.php file at all... it is formatted a specific way for a reason (and uploading it via FTP could easily cause it be become corrupted if NOT done using binary).
Quote from: truhe on May 24, 2010, 04:59:58 AM
Quote from: SlammedDime on May 12, 2010, 04:25:21 AM
I'll have test this to see what is causing it
Did you test it ? In my board the name is always replaced by the nick "Macy" which is the member with ID=1
Ok, figured this one out, will update in the next release... in the mean time you can apply this fix...
In Sources/SimpleSEF.php
// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'/rand,' => '/rand=',
$boardurl . '/topic/' => $scripturl . '?topic=',
'var smf_scripturl = "' . $boardurl . '/' => 'var smf_scripturl = "' . $scripturl,
);
$buffer = str_replace(array_keys($extra_replacements), array_values($extra_replacements), $buffer);
// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'~/rand,~' => '/rand=',
'~' . preg_quote($boardurl) . '/topic/~' => $scripturl . '?topic=',
'~' . preg_quote('var smf_scripturl = "' . $boardurl) . '/~' => 'var smf_scripturl = "' . $scripturl,
'~((?:to|bbc)Complete\.source.*?)/search/~' => '\\1/search,',
);
$buffer = preg_replace(array_keys($extra_replacements), array_values($extra_replacements), $buffer);
it seems simpleSEF does not work well with advance reputation system on RC3, when a user give reputation the message to confirm does not appear then the reputation was never give.
no errors on error log, just the message wont appear
this are the two edits that advance reputation does to show the message when a usar gives reputation
./Themes/default/Xml.template.php
function template_reputation()
{
global $context, $settings, $options, $txt;
echo '<', '?xml version="1.0" encoding="', $context['character_set'], '"?', '>
<smf>';
if($context['error_txt'] == "")
echo '
<result>', cleanXml($txt['reputation_sent']), '</result>';
else
echo '
<error>', cleanXml($context['error_txt']), '</error>';
echo '
</smf>';
}
./Themes/default/scripts/script.js
var disappeardelay = 30 * 1000; // karma box hide display time, in milliseconds
var vertical_offset = "0px"; // vertical offset of karma box from image
var horizontal_offset = "-3px"; // horizontal offset of karma box from image
function getposOffset(what, offsettype)
{
var totaloffset = (offsettype=="left") ? what.offsetLeft : what.offsetTop;
var parentEl = what.offsetParent;
while (parentEl!=null)
{
totaloffset = (offsettype == "left") ? totaloffset + parentEl.offsetLeft : totaloffset + parentEl.offsetTop;
parentEl = parentEl.offsetParent;
}
return totaloffset;
}
function showhiderep(obj, e)
{
rep_box.style.left = rep_box.style.top = -500;
rep_box.widthobj = rep_box.style;
rep_box.widthobj.width = '300px';
if (obj.visibility == "visible"){
obj.visibility = "hidden";
obj.display = "none";
}
else
{
obj.visibility = "visible";
obj.display = "block";
}
}
function reputationForm(rep_contents, member_name, obj, e)
{
if(window.event)
event.cancelBubble = true;
else if(e.stopPropagation)
e.stopPropagation();
clearhidebox();
rep_box = document.getElementById("reputation_menu");
rep_fields = document.getElementById("reputation_fields");
rep_name = document.getElementById("reputation_name");
setInnerHTML(rep_fields, getInnerHTML(document.getElementById(rep_contents)));
setInnerHTML(rep_name, member_name);
showhiderep(rep_box.style, e);
rep_box.x = getposOffset(obj, "left");
rep_box.y = getposOffset(obj, "top");
rep_box.style.left = rep_box.x + "px";
rep_box.style.top = rep_box.y + obj.offsetHeight + "px";
delayhidebox();
}
function hidebox(e)
{
if(typeof rep_box != "undefined")
rep_box.style.visibility = "hidden";
}
function delayhidebox()
{
delayhide = setTimeout("hidebox()", disappeardelay);
}
function clearhidebox()
{
if(typeof delayhide != "undefined")
clearTimeout(delayhide);
}
var aReputation = new Array();
// *** Reputation object.
function Reputation(oOptions)
{
if (!this.isXmlHttpCapable())
return;
this.opt = oOptions;
this.funcParent = this;
}
// Determine whether the quick modify can actually be used.
Reputation.prototype.isXmlHttpCapable = function ()
{
if (typeof(window.XMLHttpRequest) == 'undefined')
return false;
// Opera didn't always support POST requests. So test it first.
if (typeof(window.opera) != 'undefined')
{
var test = new XMLHttpRequest();
if (typeof(test.setRequestHeader) != 'function')
return false;
}
return true;
}
// The function called after a user wants to save his precious message.
Reputation.prototype.sendRep = function (sSessionId)
{
var i, x = new Array();
var form = document.forms.reputation_form.elements;
x[x.length] = 'reputation_comment=' + escape(form['reputation_comment'].value.replace(/&#/g, "&#").php_to8bit()).replace(/\+/g, "%2B");
x[x.length] = 'topic=' + parseInt(form['topic'].value);
x[x.length] = 'uid=' + parseInt(form['uid'].value);
x[x.length] = 'm=' + parseInt(form['m'].value);
x[x.length] = 'type=' + (form['type'][0].checked ? form['type'][0].value : form['type'][1].value);
x[x.length] = document.getElementById('sessionid').name + '=' + document.getElementById('sessionid').value;
// Happy Easter!
if(form['reputation_comment'].value == "about:reputation"){
alert("Version 1.7, for SMF 2.0 RC1. Code by Fustrate (http://www.fustrate.com/), who is pretty awesome.");
return;
}
// Send in the XMLhttp request and let's hope for the best.
ajax_indicator(true);
sendXMLDocument.call(this, smf_prepareScriptUrl(this.opt.sScriptUrl) + "action=xmlhttp;sa=reputation;xml", x.join("&"), this.onRepDone);
return false;
}
// Callback function of the XMLhttp request sending the modified message.
Reputation.prototype.onRepDone = function (XMLDoc)
{
// We've finished the loading stuff.
ajax_indicator(false);
hidebox();
// If we didn't get a valid document, just cancel.
if (!XMLDoc || !XMLDoc.getElementsByTagName('smf')[0])
return;
var result = XMLDoc.getElementsByTagName('smf')[0].getElementsByTagName('result')[0];
var error = XMLDoc.getElementsByTagName('smf')[0].getElementsByTagName('error')[0];
if (result)
{
alert(result.childNodes[0].nodeValue);
document.getElementById('repicon').style.display = 'none';
document.getElementById('repicon').style.visibility = 'hidden';
}
else if (error)
alert(error.childNodes[0].nodeValue);
}
oh! I think I found a Easter! "about:reputation" ;D
Quote from: SlammedDime on May 28, 2010, 02:24:28 PM
Quote from: truhe on May 24, 2010, 04:59:58 AM
Quote from: SlammedDime on May 12, 2010, 04:25:21 AM
I'll have test this to see what is causing it
Did you test it ? In my board the name is always replaced by the nick "Macy" which is the member with ID=1
Ok, figured this one out, will update in the next release... in the mean time you can apply this fix...
In Sources/Sitemap.php
// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'/rand,' => '/rand=',
$boardurl . '/topic/' => $scripturl . '?topic=',
'var smf_scripturl = "' . $boardurl . '/' => 'var smf_scripturl = "' . $scripturl,
);
$buffer = str_replace(array_keys($extra_replacements), array_values($extra_replacements), $buffer);
// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'~/rand,~' => '/rand=',
'~' . preg_quote($boardurl) . '/topic/~' => $scripturl . '?topic=',
'~' . preg_quote('var smf_scripturl = "' . $boardurl) . '/~' => 'var smf_scripturl = "' . $scripturl,
'~((?:to|bbc)Complete\.source.*?)/search/~' => '\\1/search,',
);
$buffer = preg_replace(array_keys($extra_replacements), array_values($extra_replacements), $buffer);
Thanks a lot.
I can't find Sources/Sitemap.php
do you mean Sources/SimpleSEF.php ?
haha... yea, sorry. Been coding too much the last few days, getting my files and mods mixed up.
Quote from: SlammedDime on May 28, 2010, 02:07:17 PM
I realized I never FTP'd to your site to take a look at this... If you still need some help with it, let me know and I can take a look...
Thanks, but "Create Simple URLs" actually does the job perfectly anyway. :)
Hi, this mod is perfect. Pretty URLs would give me a redirect error.
One question, is there a way to redirect the old standard URLs to the new urls? I have links from other places that on longer work (goes to the forum index).
Thanks!
I think, you mean the SMF seo urls?
Then this can help ...
http://www.simplemachines.org/community/index.php?topic=352351.msg2620586#msg2620586
Fel
Quote from: SlammedDime on May 28, 2010, 02:07:17 PM
Quote from: kpac on May 24, 2010, 01:10:00 PM
Quote from: Achilles. on May 24, 2010, 10:32:24 AM
Yep, it does work... However, I've got a problem regarding the mod rewriting, it gives me this link: http://mywebsite.com/home//_4.0.html not mywebsite/general_discussions and the like.
This seems to be a problem with some kinds of server configs.
See my post here, which is of a similar problem.
http://www.simplemachines.org/community/index.php?topic=352351.msg2622401#msg2622401
I realized I never FTP'd to your site to take a look at this... If you still need some help with it, let me know and I can take a look...
Achillies - I'd need FTP access to your site and a link to your board to test it out and see what is happening.
Hey, sorry for the delayed reply. Can we have a chat on MSN, so that we can communicate faster? If not it's okay, I'll send you the FTP account via PM. Thanks!
Love this mod! I used pretty URLs for quite some time...i recently uninstalled due to redirect errors all over...A+ to the developer...check your beer money = )
I've been using Pretty URL, is this mod better? What's the pros and cons over Pretty url?
i tried out this mod, it doesn't put any keywords on the url, pretty url does that. Am I missing something?
Quote from: petecheng on June 04, 2010, 10:52:13 AM
i tried out this mod, it doesn't put any keywords on the url, pretty url does that. Am I missing something?
this mod has nothing to do with keyboards nor modified keyboards
Quote from: 130860 on June 04, 2010, 12:30:14 PM
Quote from: petecheng on June 04, 2010, 10:52:13 AM
i tried out this mod, it doesn't put any keywords on the url, pretty url does that. Am I missing something?
this mod has nothing to do with keyboards nor modified keyboards
I hate people who thinks keywords actually help SEO. IT DOESN'T NOT.
Hey guys,
I've been trying to get SimpleSEF to work with SMF Archive.
However no luck, I couldn't get the "full version" URL on top to show SSEF address. It keeps showing the standart SMF URLs.
I'm using SMF 2.0 RC3, any help will be great!
Maybe your hosting doesn't have URL rewrite?
Works perfectly here: http://battleplanes.info
Royal - read his post a bit more carefully...
Quote from: Phoestre on June 04, 2010, 04:01:27 PM
Hey guys,
I've been trying to get SimpleSEF to work with SMF Archive.
However no luck, I couldn't get the "full version" URL on top to show SSEF address. It keeps showing the standart SMF URLs.
I'm using SMF 2.0, any help will be great!
I've never used SMF Archive, so I don't know how it works... link to the mod?
Its one of vbgamer's mods here is the url:
http://custom.simplemachines.org/mods/index.php?mod=339
Also I'm my very own host so there is no such thing is as my host doesn't provide something ;)
I remember there were some other Archive mods out there but now when I search in modifications portal there is only one.
As I understand it shows the SMF's standart search engine friendly(which is not :)) urls, anyways I hope to hear back from you.
try this...
in archive2.php
mysql_select_db($db_name, $db_connection);
ob_start('ob_simplesef');
It will not change any links that show http://myurl.com/archive2.php?topic= or board=... because these are not SMF links... you would have to use a mod that used SMF's style of urls... ie: http://myurl.com/index.php?action=archive;topic=xxxx ... not sure if there is one for SMF that does that or not though.
i use simple portal, is this mod compatible to that mod ? ???
It should be... I haven't had anyone tell me it didn't work with Simple Portal.
Simple SEF Compatible with Simple Portal. Confirm!!
Quote from: SlammedDime on June 05, 2010, 05:42:56 PM
try this...
in archive2.php
mysql_select_db($db_name, $db_connection);
ob_start('ob_simplesef');
It will not change any links that show http://myurl.com/archive2.php?topic= or board=... because these are not SMF links... you would have to use a mod that used SMF's style of urls... ie: http://myurl.com/index.php?action=archive;topic=xxxx ... not sure if there is one for SMF that does that or not though.
It works great! I'm not so experienced with SimpleSEF, I used the *famous* SEO mod in past. Thank you.
Quote from: gisfreak on June 06, 2010, 12:40:13 AM
i use simple portal, is this mod compatible to that mod ? ???
Its totally compatible, there would be no problems however there are 2 minor issues I have noticed.
1) If you go to "domain.com", it sends you to "www.domain.com" as expected however you go to /wwwREDIRECT/WIRELESS_CONNECTION page or something like that, it causes blocks on left and right to disappear, only the articles stay in center(if you have them enabled). However this can be easily fixed by putting the following code in bottom of your htaccess file:
RewriteCond %{HTTP_HOST} ^domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
SearchEngine-wise, it would help I think because it also makes a "permanent redirect" so any search engine that sees your "domain.com" and "www.domain.com" as two seperate identities would fix their records. Althought this was my poor solve, there maybe more professional and better solves, some people don't like editing htacccess. Of course its a personal preference to select www.domain.com over domain.com or vice-versa.
2) If you go to a page that doesn't exit (ie: "http://www.domain.com/testnosuchpage"), you'll find yourself back at your SimplePortal front page with one diffrence, all the blocks are gone! If you have SP in Portal Mode and blocks are set to show in only portal, thats gonna happen. If you set the blocks to show in everywhere, there is no such problem, its just that if they are set to only portal they don't appear when SSEF redirects you to homepage if you go for an unexisting page, althought your articles in homepage stays. I'm trying to find a workaround for myself or be sure source of the problem before I actually report it, but just FYI. Maybe sending unexisting pages to an error document would be a good solve?(not sure if thats possible?)
However there would be no visible problem for your visitors.
any way to have a custom startpage on www.myboard.com/ while using this mod?
assuming you're using SSI.php included somewhere...
require_once('path/to/SSI.php');
ob_start('ob_simplesef');
Hey SlammedDime,
There is a bug with SimpleSEF + Advanced Reputation System setup. I believe that the problem isn't in SimpleSEF, but in Advanced Reputation System but it only happens when SimpleSEF is active. However I have posted this message there 2 times(a week between them) and again another week has passed but no, no reply from anybody regarding this, it seems Ha
2 is LOA so nobody there to help at the moment. I hope you can show me a workaround to fix this.
Quote from: Phoestre on June 13, 2010, 07:32:36 AMHello guys,
I've been testing this mod with SimpleSEF and it seems they aren't meant to work together at the moment.
I installed both of them with no errors however when you try to give rep to someone, it seems like working, you get to write in the reason for your action. However when you send the form, the ajax thingy above("Loading...") works fine but you get no "Reputation sent successfully."(or something like that) and nothing happens to reputation stats.
You get reputation when you post new topics/posts and lose when they are deleted, but there is no way for users to give reputation to others at the moment.
I said SimpleSEF may be the reason because when I unthick the "Enable SimpleSEF" option, you can successfully give reputation to people but when I enable SimpleSEF, it doesn't work.
I believe the problem is about one of the last calls by Advanced Reputation System when giving rep, if it refers to a file or uses a relative path, or the reputation giving action is diffrent than the standart one, so it may not recognize Advanced Reputation System and the URL rewrite may be a problem.
I'm using SMF 2.0 RC3.
BTW great mod, I hope to get it working.
Would need to have a link to your site and username/password to use to test it out and see what is hanging it up.
Quote from: SlammedDime on June 17, 2010, 03:59:51 AM
Would need to have a link to your site and username/password to use to test it out and see what is hanging it up.
Just PM'd you! ;)
The problem is because of the way the sScriptUrl variable is setup in the javascript when the page is loaded... I'm not sure where in the templates it would be, but search for something like sScriptUrl: "' . $scripturl . '" and change it to sScriptUrl: smf_scripturl
SlammedDime, I must say, you are like an F-16 on legs! It just solved the problem.
For those who are having problem in getting SimpleSEF and Advanced Reputation System working together, I'll post the step by step solve here and inform owner of Advanced Reputation System about the fix.
I checked which files the reputation mod changes in install.xml and looked for sscripturl there. I found it was display.template.php so here is what you should do.
First, take a backup of your display.template.php just in case. (It is in your theme's folder)
sScriptUrl: "' . $scripturl . '"
Then replace it with the following:
sScriptUrl: smf_scripturl
It looks weird because of the missing "' but its how its meant to be. Also do NOT change any other $scripturl in this php file or another, only change this one. There are two sScriptUrl:s in my display.template.php, the one to replace is the first one as the second one already has smf_scripturl. For those who may ask, sscripturl in my display.template.php was at line 46, note that I've MANY mods and it is probably diffrent in your setup.
Please, add 1) a stricting of "sa=", "area=", "spage=", "in=" from paths. This words are absolutely useless and makes paths ugly!
2) possibility for admins to see forum without SimpleSEF's urls.
1) Can't do this, you'll have to live with it. The mod was originally coded without these, but it caused too many issues because SMF does not standardize how they are used.
2) Nice idea
I have been thinking if its possible to have 404(and other) errors. That would mean a lot of work to detect the unexisting page but I think its possible in theory. Have you tried something like this? My main reason is, search engines are going to unexisting pages and indexing them lol. I've SimplePortal and those unexisting pages show a corrupt version of SimplePortal's frontpage (blocks are missing). Not something urgent but it would be nice if a workaround is possible. I thought about setting error documents in htaccess but I believe it requires work more than this since it looks like SimpleSEF processes every single request.
SlammedDime
I see that "index.php?action=" is stricted from the paths... I can't understand why it is not possible to strict the same part "index.php?anything="!.. Only some symbols are differing. It's pity.
Maybe there is a way with copy of pieces of code and paste these with replace "action" to "anything"? It is only my logic. I can't sleep without it! :)
If it is not for public version of mod, try to make test version or patch only for some people as me, please! :)
Read the first many pages of the topic to see all of the issues that it caused on smf 2. I also had plenty of logic in there to avoid collisions and it still caused issues. Actions are easy because they are easy to determine and an action always precedes a subaction or area, but SMF has no standardization as to how subactions and areas are used.
Ok, understand.
Answer, please, to a couple of question that I have already asked in this topic but nobody answered.
1) http://www.simplemachines.org/community/index.php?topic=352351.msg2550627#msg2550627
How can I change comma (,) which replace stripped symblos to another symbol? Example "_"?
2) http://www.simplemachines.org/community/index.php?topic=352351.msg2547571#msg2547571
Can I make any other redirects in .htaccess using this module? I have tried to write some kinds but they don't work. Maybe some special kinds?
Quote from: Phoestre on June 18, 2010, 03:16:04 PM
SlammedDime, I must say, you are like an F-16 on legs! It just solved the problem.
For those who are having problem in getting SimpleSEF and Advanced Reputation System working together, I'll post the step by step solve here and inform owner of Advanced Reputation System about the fix.
I checked which files the reputation mod changes in install.xml and looked for sscripturl there. I found it was display.template.php so here is what you should do.
First, take a backup of your display.template.php just in case. (It is in your theme's folder)
sScriptUrl: "' . $scripturl . '"
Then replace it with the following:
sScriptUrl: smf_scripturl
It looks weird because of the missing "' but its how its meant to be. Also do NOT change any other $scripturl in this php file or another, only change this one. There are two sScriptUrl:s in my display.template.php, the one to replace is the first one as the second one already has smf_scripturl. For those who may ask, sscripturl in my display.template.php was at line 46, note that I've MANY mods and it is probably diffrent in your setup.
many thanks SlammedDime and Phoestre worked great!
SlammedDime,
Could you please check http://rc.web.id/forum , simpleSEF enabled, but link only shows topic ID, not its title
thanks
Your site times out and never loads for me.
ok, here is my settings:
- Enable SimpleSEF : enabled
- Create Simple URLs : disabled
- Forum language : english
sample output URLs (using default theme or others) :
Thread: http://rc.web.id/forum/6/_11412.0.html
Board: http://rc.web.id/forum/19/
thanks
Quote from: oktosoma on June 24, 2010, 08:57:45 PM
ok, here is my settings:
- Enable SimpleSEF : enabled
- Create Simple URLs : disabled
- Forum language : english
sample output URLs (using default theme or others) :
Thread: http://rc.web.id/forum/6/_11412.0.html
Board: http://rc.web.id/forum/19/
thanks
I have same problem.
Doesn't help me much... I need a link to your site to troubleshoot.
Quote from: atfosan on June 21, 2010, 02:20:45 AM
Ok, understand.
Answer, please, to a couple of question that I have already asked in this topic but nobody answered.
1) http://www.simplemachines.org/community/index.php?topic=352351.msg2550627#msg2550627
How can I change comma (,) which replace stripped symblos to another symbol? Example "_"?
2) http://www.simplemachines.org/community/index.php?topic=352351.msg2547571#msg2547571
Can I make any other redirects in .htaccess using this module? I have tried to write some kinds but they don't work. Maybe some special kinds?
SlammedDime, why don't you answer? :'(
because hes extremely busy?
you have to understand, this is a free mod, the author provides support solely on his free time, if he had little or no free time at all, chances are we all not gonna get support, but be patient, Im sure he just missed your post.
QuoteCan I make any other redirects in .htaccess using this module? I have tried to write some kinds but they don't work. Maybe some special kinds?
will help a lot if you provided the code you're trying to use.
I understand, that author is not obliged to give support and that he has not much free time, but he answered some other question in topic and simply ignore (as I think) my questions. I would better get answer "I don't want to answer your question" than don't get answer at all.
Long time ago I had tried a lot of variants with my .htaccess
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
RewriteRule ^(.*)$ index.php?spage=$1 [L,QSA]
something like that doesn't work. I don't know directives of htaccess very well but I have tried so many combinations that I think, it is impossible to use any other directives with directives of SimpleSEF modules. Is it right?
well where do you have your forum? is it in a sub folder or in the root, because I have it on a sub folder and Im using a .htaccess file in my root and using simpleseff on my forum without problems.
Quote from: 130860 on June 28, 2010, 01:49:48 PM
well where do you have your forum? is it in a sub folder or in the root, because I have it on a sub folder and Im using a .htaccess file in my root and using simpleseff on my forum without problems.
My forum is in root directory (and sole script) on the host but it isn't important for solving problem, I think.
1) A comma doesn't replace stripped symbols... stripped symbols are simply erased from the output. A comma is used to seperate arguments and can't be changed.
2) It is possible to do other redirects, but I'm not that hot on .htaccess so I probably can't help there... knowing exactly what you want to do and why would help.
Quote from: oktosoma on June 24, 2010, 08:57:45 PM
ok, here is my settings:
- Enable SimpleSEF : enabled
- Create Simple URLs : disabled
- Forum language : english
sample output URLs (using default theme or others) :
Thread: http://rc.web.id/forum/6/_11412.0.html
Board: http://rc.web.id/forum/19/
thanks
I can't access too, timeout problem.
Quote from: SlammedDime on June 28, 2010, 02:43:41 PM
1) A comma doesn't replace stripped symbols... stripped symbols are simply erased from the output. A comma is used to seperate arguments and can't be changed.
2) It is possible to do other redirects, but I'm not that hot on .htaccess so I probably can't help there... knowing exactly what you want to do and why would help.
SimpleSEF slaughters .htaccess redirects while activated. ;D I'm pretty sure it is possible to make manual redirects by changing the code(they would be handled by SimpleSEF) however I don't think just a simple change would let .htaccess redirects to work(they would be handled by Apache itself directly), mod may need to be rewritten, which is absolutly hell of a work.
While still its possible to redirect a host, I can't get just a single file or folder be redirected. Thats not so important at the moment but I think someday custom redirects may be in the package :) Any spoilers SlammedDime? or its currently feature-frozen?
Also atfosan, I see you are trying to rewrite something thats already rewritten by SimpleSEF. Its not gonna work if you don't remove the part thats put in by SimpleSEF, in that case if you do so, your forum will become inaccessible.
What are you trying to redirect? If you are using SimplePortal in example, if you make a custom page, the SimpleSEF URL becomes like this yoursite.com/page,$PAGEID/ where $PAGEID is the ID you write while creating that page in SimplePortal. It can be a number or even a sentence :) You may want to try yoursite.com/spage,1/ that may be how SimpleSEF rewrites the page you made. I feel like you are trying to make an error page(like 404) by routing "(.*)" which means everything. If you state what you are trying to make, maybe we know another way?
Hi, getting tons of errors with this line (1559 of them so far), but the mod works.
Apply Filter: Only show the errors with the same message
8: Undefined index: 34
Apply Filter: Only show the errors from this file
File: .../Sources/SimpleSEF.php
Line: 455
=>455: $boardName = $simpleSEF['boardNameList'][$id];
I have same problem with arcade, I added it to actions and user actions list, it still shows as http://www.kcmartz.com/arcade, I want arcade to work so I need it at: http://www.kcmartz.com/index.php?action=arcade
thanks again in advance!
oh, and there is no directory named "arcade" or anything like it!
Phoestre thanks for your comment.
I had used PortaMx mod version 0.970 with its single pages' address "/index.php?pagename" that were rewrited easy to "/pagename" by SimpleSEF. Some links not only on my site point to "/pagename". But since new version 0.980 PortaMx having new format of addresses "/index.php?spage=pagename" that are rewrited to ugly "/spage,pagename". Visitors of my site who came clicking on link to "/pagename" see only main page.
I want to make redirects from "/pagename" to "/spage,pagename" or even if from "/pagename.html" to new address. (But I'd better strict "spage" from addresses at all! ::))
And error page also would be great! :)
Quote from: atfosan on June 30, 2010, 03:34:30 AM
Phoestre thanks for your comment.
I had used PortaMx mod version 0.970 with its single pages' address "/index.php?pagename" that were rewrited easy to "/pagename" by SimpleSEF. Some links not only on my site point to "/pagename". But since new version 0.980 PortaMx having new format of addresses "/index.php?spage=pagename" that are rewrited to ugly "/spage,pagename". Visitors of my site who came clicking on link to "/pagename" see only main page.
I want to make redirects from "/pagename" to "/spage,pagename" or even if from "/pagename.html" to new address. (But I'd better strict "spage" from addresses at all! ::))
If you try to access an unexisting page, SimpleSEF sends you to the index, thats why calls to the /pagename are being sent to the main page. You need to make a custom rewrite, not possible with htaccess at the moment. If SlammedDime tells us how to make custom rewrites in SimpleSEF, that would help the process a lot. However he is responible for many mods and thats definitly overwhelming.
Quote from: atfosan on June 30, 2010, 03:34:30 AM
And error page also would be great! :)
I wish I could create gold too! I'm trying to make error pages too, its not possible with htaccess at the moment, I need to reread SimpleSEF code, I'm not too familiar with URL rewriting.
I'm sure its something easy once we found how to add custom/manual rewrites/redirects to SimpleSEF code, but we need to find first where and how, then specific redirects(like /pagename to /spage,pagename or /sitemap.xml to /sitemap/xml) can be made by us.
Quote from: Phoestre on June 30, 2010, 12:17:53 PM
I'm sure its something easy once we found how to add custom/manual rewrites/redirects to SimpleSEF code, but we need to find first where and how, then specific redirects(like /pagename to /spage,pagename or /sitemap.xml to /sitemap/xml) can be made by us.
Hm... If SlammedDime, creator of mod, do not insert custom redirect feature to the mod, may be it is not so easy...
And why do you need to rewrite your XML-sitemap address? You can write to the robots.txt or to the Google Webmasters' Tools "http://example.com/index.php?action=sitemap;xml" at all (as I made :) ).
I suppose I could add an error handler to throw a 404 if the requested action isn't found, shouldn't be too hard.
As for the custom rewrite... you can add as many rewrites/redirects to .htaccess as you want, but they all have to come before the SimpleSEF rewrite...
For the 'mypagename', you would need to copy/paste that rule for each page you want to redirect and change 'mypagename' appropriately. (this should work, but it's untested).
ie:
RewriteRule ^(mypagename)$ index.php?spage=$1 [R,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
Unbelievable... It works! But I'm remembering I had tested this variant early and it doesn't work... May be somthing went wrong...
And error page function we are waiting. :)
Quote from: atfosan on June 30, 2010, 02:30:57 PM
Quote from: Phoestre on June 30, 2010, 12:17:53 PM
I'm sure its something easy once we found how to add custom/manual rewrites/redirects to SimpleSEF code, but we need to find first where and how, then specific redirects(like /pagename to /spage,pagename or /sitemap.xml to /sitemap/xml) can be made by us.
Hm... If SlammedDime, creator of mod, do not insert custom redirect feature to the mod, may be it is not so easy...
And why do you need to rewrite your XML-sitemap address? You can write to the robots.txt or to the Google Webmasters' Tools "http://example.com/index.php?action=sitemap;xml" at all (as I made :) ).
A total feature is not needed, just knowing how to make it would be enough :) which is answered by him after your post.
Quote from: SlammedDime on June 30, 2010, 02:47:47 PM
I suppose I could add an error handler to throw a 404 if the requested action isn't found, shouldn't be too hard.
As for the custom rewrite... you can add as many rewrites/redirects to .htaccess as you want, but they all have to come before the SimpleSEF rewrite...
For the 'mypagename', you would need to copy/paste that rule for each page you want to redirect and change 'mypagename' appropriately. (this should work, but it's untested).
ie:
RewriteRule ^(mypagename)$ index.php?spage=$1 [R,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
I checked it but its giving a wrong redirection error(an indefinite redirection started etc..)
RewriteRule ^(sitemap.xml)$ index.php?action=sitemap;xml$1 [R,L]
This is what I tried, I placed before your rewrites. This may be only me, not sure if thats the situation for everybody.
About the error handler, this would be like the finalizing brush on a painting :) Its something really needed but I understand it isn't priority for everybody.
Phoestre
RewriteRule ^(sitemap.xml)$ index.php?action=sitemap;xml [R,L]
try that.
SlammedDime
And what is the future of mod? Do you have any TODO list? Or you only stabilize SimpleSEF without developing new feature?
Quote from: atfosan on June 30, 2010, 03:10:25 PM
Phoestre
RewriteRule ^(sitemap.xml)$ index.php?action=sitemap;xml [R,L]
try that.
...
I tried that before but just to be sure I just retried still the indefinite loop error. I see the diffrence between what I posted and what you posted you removed the "$1" I tried with and without it too, result is same.
The only thing that has a diffrent result is
QuoteRewriteRule ^(sitemap.xml)$ /sitemap/xml/ [R,L]
This results in www.test.com/sitemap.xml being sent to www.test.com/sitemap/xml/ address. I want the www.test.com/sitemap.xml address to stay. Anyways its not much important, I can live with that ;D
Quote from: Phoestre on June 30, 2010, 03:34:44 PM
This results in www.test.com/sitemap.xml being sent to www.test.com/sitemap/xml/ address. I want the www.test.com/sitemap.xml address to stay. Anyways its not much important, I can live with that ;D
I want too. If you find the way to realize that PM me please!
I was finding a few but don't get result...
Get rid of the 'r'...
RewriteRule ^(sitemap.xml)$ /sitemap/xml/ [L]
The 'R' tells apache to redirect, rather than just rewrite.
Quote from: SlammedDime on June 30, 2010, 04:08:40 PM
Get rid of the 'r'...
RewriteRule ^(sitemap.xml)$ /sitemap/xml/ [L]
The 'R' tells apache to redirect, rather than just rewrite.
Doesn't work for me...
And what about TODO list?
Quote from: SlammedDime on June 30, 2010, 04:08:40 PM
Get rid of the 'r'...
RewriteRule ^(sitemap.xml)$ /sitemap/xml/ [L]
The 'R' tells apache to redirect, rather than just rewrite.
This results in a broken version of SimplePortal's frontpage(articles are in the center but all other portal blocks are missing). This is also the case with unexisting pages, thats why I asked for an error handling feature.
im getting this error when I try to create a new board:
8: Undefined index: 60
Archivo: path_to/forum/Sources/SimpleSEF.php
Líne: 455
it does create the board but the link to the new board shows only mysite.com/foro when it should be myforum/forum/my_new_board
around line 455 theres this function getBoardName()
function getBoardName($id)
{
global $modSettings, $simpleSEF;
if (!empty($modSettings['simplesef_simple']))
$boardName = 'board' . $modSettings['simplesef_space'] . $id;
else
{
if (stripos($id, '.') !== false )
{
$page = substr($id, stripos($id, '.') + 1);
$id = substr($id, 0, stripos($id, '.'));
}
$boardName = $simpleSEF['boardNameList'][$id];
if (isset($page) && ($page > 0))
$boardName = $boardName . $modSettings['simplesef_space'] . $page;
}
return $boardName;
}
by the way, 60 is the id of the board I created.
greetings.
Clear your forum file cache. Board names are cached, so when a new one is created or modified, the cache needs to be cleared.
duh! silly me....
thanks!
Im running SMF 2.0 RC 3. I got a problem with SimpleSEF.
I cant get this plugin to work as it should. My URLs look like "http://www.xxxx.se/2/_970.0.html". Shouldn't it look more like: "http://www.xxxx.se/2/some_random_topic_970.0.html"?
Edit:
I dont use English as standard language, do I need to edit my "Modifications.swedish-utf8.php" file?
When SimpleSEF activated, I'm getting this error on top of the page when entering any forum: Warning: sef_strrpos(): Offset not contained in string. in /home/lasaldig/public_html/Sources/SimpleSEF.php on line 755
And the url looks like: h t t p://mysite/ / <--- no forum name, just a blank space between bars...
I'm getting a weird problem with 2.0 RC3 running Simple Portal with SimpleSEF.
In the Actions field in the admin SimpleSEF configuration, it lists this:
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,page,vancouvernews,page,vancouverevents,media ....
After that ,page,vancouvernews,page,vancouverevents, (the SimpleSEF pages) repeat over and over countless times.
I've erased the duplicates but they always come back.
Yea .. SimpleSEF will change the action list continuing, I think that is a heave bug.
You can comment out these code part in the file /Sources/SimpleSEF.php ..
Find:
// Check to see if we need to update the actions lists
$changeArray = array();
$possibleChanges = array('actions', 'useractions');
foreach ($possibleChanges as $change)
if (empty($modSettings['simplesef_' . $change]) || (substr_count($modSettings['simplesef_' . $change], ',') + 1) != count($simpleSEF[$change]))
$changeArray['simplesef_' . $change] = implode(',', $simpleSEF[$change]);
if (!empty($changeArray))
{
updateSettings($changeArray);
$simpleSEF['query_count']++;
}
Add a /* before the first code line and a */ after the last code line to comment out this part.
Fel
Odd that just those repeat themselves... do you have the custom action mod or did you make those pages yourself?
I just made them through Simple Portal.
i have this problem with this mod.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi28.tinypic.com%2F4t7pg8.png&hash=0040fe6f6f861768f76951b565a311463e3c32b2)
I uninstall the pretty urls, delete the tables and the .htaccess, then i installed the simplesef, but with the error seen in the image.
thanks in advice for your answer
Looks like one of the SimpleSEF-Db files is missing it's opening PHP tags... I'll have to run through them a little bit later on
this is my error log
2: Cannot modify header information - headers already sent by (output started at /home3/vago/public_htfile, ml/foro/Sources/SimpleSEF-Db/x00.php:1)
Archivo: /home3/vago/public_html/foro/Sources/Subs.php
Línea: 3409
I replace that file x00.php ,and reinstaled the mod, but the same problem
when i replace the file x00.php, part of the code is missing, so i put the code directly in the file and problem resolved
Quote from: Phoestre on June 30, 2010, 04:22:43 PM
Quote from: SlammedDime on June 30, 2010, 04:08:40 PM
Get rid of the 'r'...
RewriteRule ^(sitemap.xml)$ /sitemap/xml/ [L]
The 'R' tells apache to redirect, rather than just rewrite.
This results in a broken version of SimplePortal's frontpage(articles are in the center but all other portal blocks are missing). This is also the case with unexisting pages, thats why I asked for an error handling feature.
doesn't work for me, need some help :-\
Can I get some 404 pages?
My site is informationtechsysforum.com (http://informationtechsysforum.com) and if an older post is no longer there I sill get spiders trying to index that page, and it just shows the main index. (So they index the page) For example informationtechsysforum.com/nothing (http://informationtechsysforum.com/nothing)
will just show a main index page... and nothing else
How can I get some 404 pages to solve this issue..
Thanks
Ryan
well /nothing is not a post or topic, it would be an action... topics and boards would still throw the appropriate error messages. As for 404 on actions... It shouldn't be too hard to add though.
This is a rough hack for it that you can try out...
Open Sources/SimpleSEF.php
// handle unknown variables
elseif (strpos($url_array[0], ',') === false)
{
header('HTTP/1.0 404 Not Found');
fatal_lang_error('simplesef_404', false);
}
// handle unknown variables
Open Themes/default/languages/Errors.english.php
?>
$txt['simplesef_404'] = 'The page you requested could not be found.';
Alright,
So far so good,
I want to make sure I did this right this is the new sources/SimpleSEF.php file
}
// handle unknown variables
elseif (strpos($url_array[0], ',') === false)
{
header('HTTP/1.0 404 Not Found');
fatal_lang_error('simplesef_404', false);
}
}
return $querystring;
}
Please let me know if I did something wrong..
Also other errors will still remain on the site right?
Thanks Ryan
EDIT: I did notice one thing whenever the HTTP 404 page is displayed I get an error in the error log,
All it says is this:
Guest Today at 03:53:50 PM
http://informationtechsysforum.com/index.php
Not really a huge problem, becuase nobody should just be typing random letters..at the URL
Anything that could be done to solve that issue?
You didn't do the edit correct... please review the find/replace and find/add before more carefully.
Ok sorry about that... :(
Misread it,
This is now what I have in the sources/SimpleSEF.php
// User
if (!empty($url_array) && (in_array($querystring['action'], $simpleSEF['useractions']) !== false) && ($index = sef_strrpos($url_array[0], $modSettings['simplesef_space'])) !== false)
{
$user = substr($url_array[0], $index + 1);
if (is_numeric($user))
$querystring['u'] = intval($user);
else
$querystring['user'] = $user;
array_shift($url_array);
}
}
elseif (strpos($url_array[0], ',') === false)
{
header('HTTP/1.0 404 Not Found');
fatal_lang_error('simplesef_404', false);
}
// handle unknown variables
$temp = array();
foreach ($url_array as $part)
{
if (strpos($part, ',') !== false)
$part = substr_replace($part, '=', strpos($part, ','), 1);
parse_str($part, $temp);
$querystring += $temp;
}
}
return $querystring;
}
Let me know if I did something wrong again... :-[
I am still getting that error in the error log..however everything seems to be working..
Thanks for your time,
Ryan
Yea, that looks right... what error are you getting in the error log though? Did you add the language string to the Errors.english.php file?
The error I am getting is
Guest Today at 04:25:38 PM
http://informationtechsysforum.com/index.php
I get this error when I type something random like /404error
I did add the language string at the bottom of file, before the ?>
.....
$txt['visual_verification_failed'] = 'The letters you typed don\'t match the letters that were shown in the picture.';
$txt['simplesef_404'] = 'The page you requested could not be found.';
?>
EDIT: I found another issue, (same one) but I do have Simple Portal installed and I can't click on the recent topics, or posts (I get the 404 error and the same error in the error log)
EDIT: I found that anything with /topicseen (simpleportal) I get an 404 error...
Thanks Ryan
hrm... forgot about those... I'll have to work some more then on how to work around it... I have one idea but it's not pretty... add a comma after topicseen and see what that does... /topicseen,/
The comma idea did work...
What do you got in mind?
Hello
I have a question. Why links are
http://site.com/profile/awilum_1/
How do
http://site.com/profile/awilum/
its possible ?
Not possible the way the mod is designed. The number is there so a database query is not needed to go to the right profile.
its not prety username_1 or username_7897
may be its posible from .htaccess to delete this _7877 ?
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.
where can I edit the Russian transliteration? because he did not correctly
I have: priedlozhieniia_po_usoviershienstvovaniiu_templatecms_3.0.html
Must: predlojeniya_po_usovershenstvovaniyu_templatecms_3.0.html
Russian translit must
$patern = array(
"А"=>"A","Б"=>"B","В"=>"V","Г"=>"G",
"Д"=>"D","Е"=>"E","Ж"=>"J","З"=>"Z","И"=>"I",
"Й"=>"Y","К"=>"K","Л"=>"L","М"=>"M","Н"=>"N",
"О"=>"O","П"=>"P","Р"=>"R","С"=>"S","Т"=>"T",
"У"=>"U","Ф"=>"F","Х"=>"H","Ц"=>"TS","Ч"=>"CH",
"Ш"=>"SH","Щ"=>"SCH","Ъ"=>"","Ы"=>"YI","Ь"=>"",
"Э"=>"E","Ю"=>"YU","Я"=>"YA","а"=>"a","б"=>"b",
"в"=>"v","г"=>"g","д"=>"d","е"=>"e","ж"=>"j",
"з"=>"z","и"=>"i","й"=>"y","к"=>"k","л"=>"l",
"м"=>"m","н"=>"n","о"=>"o","п"=>"p","р"=>"r",
"с"=>"s","т"=>"t","у"=>"u","ф"=>"f","х"=>"h",
"ц"=>"ts","ч"=>"ch","ш"=>"sh","щ"=>"sch","ъ"=>"y",
"ї"=>"i", "Ї"=>"Yi", "є"=>"ie", "Є"=>"Ye",
"ы"=>"yi","ь"=>"","э"=>"e","ю"=>"yu","я"=>"ya"
);
Okey I solved this problem so
function translitIt($str)
{
$patern = array(
"А"=>"A","Б"=>"B","В"=>"V","Г"=>"G",
"Д"=>"D","Е"=>"E","Ж"=>"J","З"=>"Z","И"=>"I",
"Й"=>"Y","К"=>"K","Л"=>"L","М"=>"M","Н"=>"N",
"О"=>"O","П"=>"P","Р"=>"R","С"=>"S","Т"=>"T",
"У"=>"U","Ф"=>"F","Х"=>"H","Ц"=>"TS","Ч"=>"CH",
"Ш"=>"SH","Щ"=>"SCH","Ъ"=>"","Ы"=>"YI","Ь"=>"",
"Э"=>"E","Ю"=>"YU","Я"=>"YA","а"=>"a","б"=>"b",
"в"=>"v","г"=>"g","д"=>"d","е"=>"e","ж"=>"j",
"з"=>"z","и"=>"i","й"=>"y","к"=>"k","л"=>"l",
"м"=>"m","н"=>"n","о"=>"o","п"=>"p","р"=>"r",
"с"=>"s","т"=>"t","у"=>"u","ф"=>"f","х"=>"h",
"ц"=>"ts","ч"=>"ch","ш"=>"sh","щ"=>"sch","ъ"=>"y",
"ї"=>"i", "Ї"=>"Yi", "є"=>"ie", "Є"=>"Ye",
"ы"=>"yi","ь"=>"","э"=>"e","ю"=>"yu","я"=>"ya"
);
return strtr($str,$patern);
}
.....
.....
.....
.....
function sef_encode($string)
{
global $modSettings, $sourcedir, $simpleSEF, $txt;
static $utf8_db = array();
if (empty($string))
return '';
// A way to track/store the current character
$character = 0;
// Gotta return something...
$result = '';
$string = translitIt($string);
$string = str_replace($simpleSEF['strip_chars'], '', $string);
$string = implode(' ', array_diff(explode(' ', $string), $simpleSEF['strip_words']));
$string = trim($string, " $modSettings[simplesef_space]");
$string = urlencode($string);
$string = str_replace('%2F', '', $string);
$string = str_replace($modSettings['simplesef_space'], '+', $string);
$string = preg_replace('~(\+)+~', $modSettings['simplesef_space'], $string);
if (!empty($modSettings['simplesef_lowercase']))
$string = strtolower($string);
return $string;
}
and i have this: predlojeniya_po_usovershenstvovaniyu_templatecms_2.0.html - correct url
hm..
this mod does not work if I create a new board. There is simply no reference to it.
UPD
its was problem with cache.
See the FAQ in the very first post...
As for the Russion translation, this is what I currently have, located in SimpleSEF-Db/x04.php
array (
'А' => 'A', 'Б' => 'B', 'В' => 'V', 'Г' => 'G', 'Д' => 'D',
'Е' => 'Ie', 'Ж' => 'Zh', 'З' => 'Z', 'И' => 'I', 'Й' => 'I',
'К' => 'K', 'Л' => 'L', 'М' => 'M', 'Н' => 'N', 'О' => 'O',
'П' => 'P', 'Р' => 'R', 'С' => 'S', 'Т' => 'T', 'У' => 'U',
'Ф' => 'F', 'Х' => 'Kh', 'Ц' => 'Ts', 'Ч' => 'Ch', 'Ш' => 'Sh',
'Щ' => 'Shch', 'Ъ' => '', 'Ы' => 'Y', 'Ь' => '\'', 'Э' => 'E',
'Ю' => 'Iu', 'Я' => 'Ia', 'а' => 'a', 'б' => 'b', 'в' => 'v',
'г' => 'gh', 'д' => 'd', 'е' => 'ie', 'ж' => 'zh', 'з' => 'z',
'и' => 'i', 'й' => 'i', 'к' => 'k', 'л' => 'l', 'м' => 'm',
'н' => 'n', 'о' => 'o', 'п' => 'p', 'р' => 'r', 'с' => 's',
'т' => 't', 'у' => 'u', 'ф' => 'f', 'х' => 'kh', 'ц' => 'ts',
'ч' => 'ch', 'ш' => 'sh', 'щ' => 'shch', 'ъ' => '', 'ї' => 'yi',
'Ї' => 'Yi', 'є' => 'ie', 'Є' => 'Ie', 'ы' => 'y', 'ь' => '\'',
'э' => 'e', 'ю' => 'iu', 'я' => 'ia',
)
The ones that are different are:
array ( 'Е' => 'Ie', 'Ж' => 'Zh', 'Й' => 'I', 'Х' => 'Kh', 'Ц' => 'Ts', 'Ч' => 'Ch', 'Ш' => 'Sh', 'Щ' => 'Shch', 'Ы' => 'Y', 'Ь' => '\'', 'Ю' => 'Iu', 'Я' => 'Ia', 'г' => 'gh', 'е' => 'ie', 'ж' => 'zh', 'й' => 'i', 'х' => 'kh', 'щ' => 'shch', 'ъ' => '', 'ї' => 'yi', 'Є' => 'Ie', 'ы' => 'y', 'ь' => '\'', 'ю' => 'iu', 'я' => 'ia', )
If you can find others that agree this should be changed, I will make the change for the next release. I can't, however, go off the word of just one person.
Hey SlammedDime,
I was wondering if you could just give me a time line of when you think you can get to this issue:
http://www.simplemachines.org/community/index.php?topic=352351.msg2771443#msg2771443
Thanks for taking your time to look into this issue, I really do appreciate it :)
One more thing is that I am getting alot of these errors but can't tell if they are from other things They say the same thing as the errors in the previous post besides different times..
Ryan
PS. If this issue is too complicated let me know and I just put the old php back.
The error doesn't contain any information, so I have no idea where to even start looking. Does it only occur when you go to a non-existant page? Has it always been occurring or only since I gave you the 404 code?
As for as I know, it started when we put that newer code in (More than likely it is that code)..which is fine as long as its only the 404 error, which I think only happends when somebody goes to a non-existant page. I have no problem with that.
Did you get a chance to look at the topicseen issue? (With Simpleportal)
What you said earlier did work by just putting a comma in after /topicseen,/
What would I do to get the comma put in automatically after topicseen?
Thanks again,
Ryan
In SimpleSEF.php:
if ($value == '')
$sefstring3 .= $key . '/';
if ($value == '')
$sefstring3 .= $key . ',/';
I'll have to play a bit with the 404 code to see why it's throwing the error.
Ok that fixed most of the issue,
This may help you find why the 404 is putting that error up..
I also noticed that when I now click on any board or topic, it seems like I get that same error.. as the 404 error
Guest Today at 05:07:13 PM
http://informationtechsysforum.com/index.php
Sorry I did not notice this before, As I am almost positive that this was happening before I added that new code in the SimpleSEF.php file
If there is anything I can do to help you solve this error let me know.
Thanks,
Ryan
Can you remove that extra 404 code and see if the error still occurs? You don't have to remove the language string, just the elseif statement from SimplSEF.php
I a bit lost, sorry...
I first just get rid of the elseif and tired it.. (that did not work I got an error)
I then removed the whole line that elseif was on and that also did not work (I got a blank page)
Tell me what to remove and I'll try it out..
Ryan
EDIT: I'll be playing around with the code...
Remove the whole edit I gave you before...
elseif (strpos($url_array[0], ',') === false)
{
header('HTTP/1.0 404 Not Found');
fatal_lang_error('simplesef_404', false);
}
Alright, Gone...
I also have no errors..
But I also now am unable to get the 404 error..(which you probably know)
Hardcoded text:
// Intermezzo
if($needle_length == 0)
{
trigger_error(__FUNCTION__.'(): Empty delimiter.', E_USER_WARNING);
return false;
}
if($offset < 0)
{
$haystack = substr($haystack, -$offset);
$offset = 0;
}
elseif($offset >= $haystack_length)
{
trigger_error(__FUNCTION__.'(): Offset not contained in string.', E_USER_WARNING);
return false;
}
Quote from: Bugo on September 05, 2010, 10:13:43 AM
Hardcoded text:
// Intermezzo
if($needle_length == 0)
{
trigger_error(__FUNCTION__.'(): Empty delimiter.', E_USER_WARNING);
return false;
}
if($offset < 0)
{
$haystack = substr($haystack, -$offset);
$offset = 0;
}
elseif($offset >= $haystack_length)
{
trigger_error(__FUNCTION__.'(): Offset not contained in string.', E_USER_WARNING);
return false;
}
Is this code for me? or is this another issue?
I looked at my SimpleSEF (Just to if this code is in there and it is)
So I'm guessing this is another issue.
Ryan
This is to author of mod :)
It has to be hardcoded, it uses the trigger_error function, not one of SMF's error functions, because it is a PHP error, not a SMF error, and also it's possible SMF's language files may have not been loaded yet when it runs. Thanks for the concern though :)
even through?
global $txt;
trigger_error(__FUNCTION__.'(): '.$txt['any_variable'], E_USER_WARNING);
This is what I would like to have, because if I put a non URL page (/something/random) all I get is the blank board index and since it shows the meta and keywords google still indexes my site at those fake URL pages.
http://www.simplemachines.org/community/index.php?topic=352351.msg2600405#msg2600405
I have looked and added the code but it does not want to work? So I put back the original code back. I do have Simple Portal install as well.
Any ideas?
Thanks Ryan
Quote from: Bugo on September 06, 2010, 04:58:20 AM
even through?
global $txt;
trigger_error(__FUNCTION__.'(): '.$txt['any_variable'], E_USER_WARNING);
Quotealso it's possible SMF's language files may have not been loaded yet when it runs
If SMF's langauge files haven't been loaded, I can't call any $txt variables.
Installed this perfectly, everything works expect my forums stats page. It'll just take me to my host provider stats page. I've tested this on all my sites with or without this mod. If i type the stats in any of my sites i think my hosting provider redirects you to its stat page when i just want smf's stats page. I beleive my hosting provider redirects you to their pages on certain keywords to be a quick shortcut. I tried stripping the words stats but it didn't have any effect, it still redirects me right away. Any ideas on how to get around this?
Оne more problem.
О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?
I looked at the option "Words to strip" there is no php
another SMF Arcade & SimpleSef problem. Is their a fix to get the scores to post. It just takes me to page that says too many redirects.
I am having an issue with the Stats page within my forum...
The URL is /stats and I get an actual 404 error from my host. (How does that get a 404 and other non pages don't I have no idea? :o)
I upgraded to 2.0RC3 and I can't remember if this was working in 1.1.11..
Let me know SlammedDime,
EDIT: I turned off the mod just to make sure nothing else was causing this problem and it works I was able to get to /index.php?action=stats
So I believe this mod has something to do with it.
EDIT: This issue has been resolved, the problem was my host? For some reason it would throw up a custom 404 (which was not in the .htaccess) So when I deleted the 404.shtml file it started working again..
Thanks for your support,
Ryan
Quote from: SlammedDime on June 30, 2010, 02:47:47 PM
I suppose I could add an error handler to throw a 404 if the requested action isn't found, shouldn't be too hard.
As for the custom rewrite... you can add as many rewrites/redirects to .htaccess as you want, but they all have to come before the SimpleSEF rewrite...
For the 'mypagename', you would need to copy/paste that rule for each page you want to redirect and change 'mypagename' appropriately. (this should work, but it's untested).
ie:
RewriteRule ^(mypagename)$ index.php?spage=$1 [R,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
Hey slamdim, i think this is going fix my stats page problem. Only thing i'm trying to do is rewrite the stats page to say "mystats" as not to trigger my hosting provider's redirect funtion (/stats).
I tried this but its not working, can you go more indepth on how exactly to change it
The Code i tried...didn't work. Running SMF 2.0 RC3
QuoteRewriteRule ^(mystats)$ index.php?action=stats [R,L]
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
An actual link to your site would be most helpful.
Sorry Slamdime its
www.gadgetank.com
if you go to the stats page at the bottom of the forums the server will redirect you to my host provider as "stats" is a quick link to them which they can't change on their end. Any help would be soo appreciated.
i have enabled simpleSEF and every link is fine.
i created a new board but its url is just the main link of the site... and it redirects to the site homepage when clicked..
what to do now?
ukhalik2 - you've gotta empty out your forum cache or wait a couple hours becuase the rewrite thingy hasn't picked up your new board yet. Its under forum maintence in the admin panel. See the last part of the first post of this thread for more info.
frantic - I don't see how your host couldn't change it, unless they have it as a server wide thing, but I don't think there will be an easy way to do it without putting some custom code in SimpleSEF.php
In the admin panel, add 'mystats' to the SimpleSEF Actions list, then make the following change in the code in SimpleSEF.php
$querystring['action'] = $url_array[0];
$querystring['action'] = $url_array[0] == 'mystats' ? 'stats' : $url_array[0];
hey slamdime, you would be correct. My host provider has a global wide setting that does the redirect. The problem is that they can turn it off but at midnight their server just resets the settings which apparently can't be changed.
I made the code changes to my sources/simplesef.php file and added the "mystats" to the sef actions list. when i hover my stats link it still gives me /stats and not /mystats as the rewrite at my test site which triggers the redirect. is their anything else i can do? I do appreciate you taking the time to try and help me.
Yea, there's one other change we can make, but I don't have my code in front of me at the moment... I'll look at it when I get home from work and post back then.
Thanks Slamdime, i appreciate it.
Quote from: frantic on September 25, 2010, 04:36:40 AM
ukhalik2 - you've gotta empty out your forum cache or wait a couple hours becuase the rewrite thingy hasn't picked up your new board yet. Its under forum maintence in the admin panel. See the last part of the first post of this thread for more info.
yes.. got that now.. thanks for the help..!
Quote from: frantic on September 25, 2010, 10:33:24 PM
Thanks Slamdime, i appreciate it.
Try this...
if (!empty($params['u']))
if ($query_parts['action'] == 'stats')
$query_parts['action'] = 'mystats';
thanks slammeddime. I acutally kept some poor tech guy at my hosting company on the phone for an hour yesterday until he could firgure out a work around for us. If it does reset then im going to give this a go. I'll let you know my results on my test site either way as soon as i get home.
SimpleSEF doesn't work in SSI.php, ssi_examples.php, and all files included of SSI.php? What should we do to fix this?
Thanks.
Add ob_exit(); at the end of your script.
Hey Slamdimme, can confirm that fix works perfect on my test site. Really great job and i'm sure it i will help whoever needs it in the future.
For people that are lost you need to go to the sources/simple_sef.php file. If my site acciendtly gets changed back to the redirect again then i'm sure to employ it.
I do have one more question for you. Is it possible to have Simple SEF ignore the acrade. When my members try to submit their scores they get this error.
QuoteThis webpage has a redirect loop.
The webpage at http://gadgetank.com/arcade/sa,play/game,1/index.php?action=arcade has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
The mod is SMF Arcade 2.5
Quote from: SlammedDime on September 27, 2010, 05:53:25 PM
Add ob_exit(); at the end of your script.
Should be
obExit();? Also, we are using Wordpress. Therefore it gives an error?
Edit: Can you look a ssi_examples.php?
I don't know why ssi_examples would be important... it's only an examples page, but the same would apply, add obExit() at the end of it.
Why/how does it give an error in Wordpress? I don't use the two together so I have no idea, you'll have to give me more information.
When an action and folder/file name located in the main directory are identical, the file/folder contents are executed/shown and the action fails.
An example from using SMF Arcade:
SMF Arcade uses the folder tree:
arcade/gamedata/ ...
for v32 save type files.
A typical url action for the arcade would be:
http://MYFORUM/index.php?action=arcade
this mod changes that to:
http://MYFORUM/arcade/
this obviously shows the contents of the arcade folder and does not execute the action from the index.
Is this a restriction of this mod? Actions and folder/file names (in the main directory) can not have the same name?
Or is there an edit to the settings I can make to stop this from occurring?
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.
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
Sorry kolorom, it's not possible to do at this time
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.
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).
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?
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
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
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/
and links to item like this:
http://www.vorbareti.ro/media/sa,item/in,1458/
can I make link look like this:
for albums:
http://www.vorbareti.ro/media/AlbumName
and for items:
http://www.vorbareti.ro/media/AlbumName/ItemName
Thanks!
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...
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!
Can this mod work with Simple .htaccess cache mod?
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...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg228.imageshack.us%2Fimg228%2F3953%2Fscr33902093401003.jpg&hash=c2d77739d1ce7611a85f44c8428a5486b88ee683)
Quote from: Masterd on October 14, 2010, 11:36:03 AM
Can this mod work with Simple .htaccess cache mod?
It should...
Did you make sure the proper code is in your .htaccess file? Can you define 'not working'?
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.
I'm allready read that.
Ok, and what is the contents of your .htaccess file?
#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
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.
I did it! Thank you! :D
Updated for 2.0 RC4
I just installed a fresh SimpleSEF on SMF 2.0 RC 4. The mod works very fine; I like those beautiful URLs :D
I only noticed that if I enter a non existing page, like http://www.domain.com/blahblah. I get the following output:
Notice: Undefined index: permissions in /var/www/vhosts/domain.com/httpdocs/Sources/Security.php on line 831
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/vhosts/domain.com/httpdocs/Sources/Security.php on line 831
Notice: Undefined index: mod_cache in /var/www/vhosts/domain.com/httpdocs/Sources/Load.php on line 1559
Notice: Undefined index: username in /var/www/vhosts/domain.com/httpdocs/Sources/Load.php on line 1560
Notice: Undefined index: language in /var/www/vhosts/domain.com/httpdocs/Sources/Load.php on line 1561
Notice: Undefined index: email in /var/www/vhosts/domain.com/httpdocs/Sources/Load.php on line 1562
Notice: Undefined index: ignoreusers in /var/www/vhosts/domain.com/httpdocs/Sources/Load.php on line 1563
Notice: Undefined index: name in /var/www/vhosts/domain.com/httpdocs/Sources/Load.php on line 1566
Notice: Undefined index: smiley_set in /var/www/vhosts/domain.com/httpdocs/Sources/Load.php on line 1571
Notice: Undefined index: smiley_set in /var/www/vhosts/domain.com/httpdocs/Sources/Load.php on line 1571
Notice: Undefined variable: _SESSION in /var/www/vhosts/domain.com/httpdocs/Sources/Load.php on line 1579
Notice: Undefined variable: _SESSION in /var/www/vhosts/domain.com/httpdocs/Sources/Load.php on line 1580
Warning: array_unshift() [function.array-unshift]: The first argument should be an array in /var/www/vhosts/domain.com/httpdocs/Sources/Load.php on line 1613
Notice: Use of undefined constant WIRELESS - assumed 'WIRELESS' in /var/www/vhosts/domain.com/httpdocs/Sources/Load.php on line 1635
Notice: Use of undefined constant WIRELESS_PROTOCOL - assumed 'WIRELESS_PROTOCOL' in /var/www/vhosts/domain.com/httpdocs/Sources/Load.php on line 1637
Over and over again.
What could be wrong?
My mistake, I figured that fatal_lang_error would load the appropriate stuff, but apparently it doesn't. Fortunately the 404 header is still thrown, so it won't affect search engines. I'll throw up a fix tomorrow for it.
Thanks! Glad it is a minor glitch. :)
Any news on an update for this?
Quote from: IrateZebra on November 05, 2010, 12:35:43 PM
Any news on an update for this?
Already updated on customize site.
It's updated now
Hello SlammedDime,
I tested this modification and nothing happens...
/index.php?topic=1.0
no
/general_discussion/welcome_smf_1.0.html
- Modification is installed OK.
- Admin panel OK.
- mod_rewrite enabled
- .htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
RC4 whats is wrong please?
Thanks
Is it 'Enabled' in your admin panel?
If you want the content filled URLs, you need to uncheck 'Create Simple URLs'
LOL it works :D
Thank you!
I think its Bad for SEO
this
http://webdevart.ru/topicseen/programmnoe-obespechenie/os-292.html/os-292.html/os-292.html/os-292.html
and this
http://webdevart.ru/index.php?topic=292
a lot of mirror urls(duplicates)
This
http://webdevart.ru/index.php?topic=292
redirects to
http://webdevart.ru/programmnoe-obespechenie/os-292.0.html
with a 301 Moved Permanently header... there is nothing bad about this and infact is the proper way to do it so there are not multiple urls leading to the same content.
I don't know where you got
http://webdevart.ru/topicseen/programmnoe-obespechenie/os-292.html/os-292.html/os-292.html/os-292.html
from because it's not generated by this mod that way.
I just wrote this
http://webdevart.ru/topicseen/programmnoe-obespechenie/os-292.html/os-292.html/os-292.html/os-292.html
and I dont see any errors.
exemple this
http://www.maultalk.com/forum24.html/forum24.html/forum24.html
and this
http://www.maultalk.com/forum24.html
Those types of URL's would never occur during normal operation unless you manually created them like you are here, so there is no point in trying to detect anything like that and prevent it when it would never happen to begin with.
Just tested this updated version,
Works perfect.. :)
Thanks again,
Ryan
One lite problem: Simpleportal and /index.php -> /action=forum
if you have installed simpleportal and run forum hxxp://yourforum.com/index.php and SimpleSEF is enabled, the URL change to hxxp://yourforum.com/action=forum and call 404: Not Found
How can I fix it?
Thanks
What is the best way to update simplesef ?
Should I go to the package manager and uninstall the old version. And then install the new version.
Or can i just upload and install the new version.
SMF 1.1.12
simplesef 1.0.3
Quote from: MaXiForum.cz on November 06, 2010, 03:02:19 AM
One lite problem: Simpleportal and /index.php -> /action=forum
if you have installed simpleportal and run forum hxxp://yourforum.com/index.php and SimpleSEF is enabled, the URL change to hxxp://yourforum.com/action=forum and call 404: Not Found
How can I fix it?
Thanks
that doesn't seem right... /index.php should go to index.php?action=forum which would then change to /forum. Plenty of other people have used this with SimplePortal without any issues.
Quote from: truhe on November 06, 2010, 09:57:25 AM
What is the best way to update simplesef ?
Should I go to the package manager and uninstall the old version. And then install the new version.
Or can i just upload and install the new version.
SMF 1.1.12
simplesef 1.0.3
Uninstall the old one and then install the new one.
SimpleSEF 1.1.x is a really great (especially extensions)! Congrats million times! :)
Well :)
And where can I search problem please? :)
This is SP nev version 2.3.3...
/index.php will change to /action=forum and this call 404: Not Found
index.php?action=forum will change to /forum and this works :)
Thank you!
I uninstalled simplesef 1.0.3 and then installed 1.1.1.
It seems to work fine, but the Macy-Problem is back.
If I write an new pm and type a letter in the "to" textbox, the letter is replaced by "Macy" which is the member withe the id=1
this problem has been solved by a patch in 1.0.3
http://www.simplemachines.org/community/index.php?topic=352351.msg2647795;topicseen#msg2647795 (http://www.simplemachines.org/community/index.php?topic=352351.msg2647795;topicseen#msg2647795)
(SMF 1.1.12)
Quote from: truhe on November 06, 2010, 02:31:27 PM
I uninstalled simplesef 1.0.3 and then installed 1.1.1.
It seems to work fine, but the Macy-Problem is back.
If I write an new pm and type a letter in the "to" textbox, the letter is replaced by "Macy" which is the member withe the id=1
this problem has been solved by a patch in 1.0.3
http://www.simplemachines.org/community/index.php?topic=352351.msg2647795;topicseen#msg2647795 (http://www.simplemachines.org/community/index.php?topic=352351.msg2647795;topicseen#msg2647795)
(SMF 1.1.12)
Interesting, as that fix is still in place... I'll have to install 1.1.12 in a bit and test it out.
Any ideas SlammedDime? :)
I thought it was fixed? Can you link to an actual site having the issue?
Quote from: SlammedDime on November 07, 2010, 11:44:10 AM
I thought it was fixed? Can you link to an actual site having the issue?
NO :)
My test forum on:
Not work- http://www1.gamegarden.cz/index.php
Not work http://www1.gamegarden.cz/action=forum
Work - http://www1.gamegarden.cz/
Work - http://www1.gamegarden.cz/forum/
I suspect it to be a problem with SimplePortal but I'll have to test more...
Quote from: SlammedDime on November 07, 2010, 12:36:09 PM
I suspect it to be a problem with SimplePortal but I'll have to test more...
OK :) Please inform me :)
Thank you
Upgrading 2.0RC4 with PortaMX 0.990 and Aeva 2.04 and SimpleSEF 1.1.1
Okay, I am testing it right now and the installation went so far okay.
Until now I have installed:
1. Aeva Media 2.04 [ Deinstallieren ] [ Dateien auflisten ] [ Löschen ]
2. Ad Managment 2.3.6.4 [ Deinstallieren ] [ Dateien auflisten ] [ Löschen ]
3. Sitemap 2.2.0 [ Deinstallieren ] [ Dateien auflisten ] [ Löschen ]
4. PortaMx v0.990 0.990 [ Deinstallieren ] [ Dateien auflisten ] [ Löschen ]
5. Downloads System 1.3.4.4 [ Deinstallieren ] [ Dateien auflisten ] [ Löschen ]
6. MetaTags Modification 1.5 [ Dateien auflisten ] [ Löschen ]
Now I need to still install SimpleSEF and also test a few new picture uploads..
Update:
Now I installed SimpleSEF 1.1.1
and the whole forum crashed...
I can not access it anymore, so I have to see,
how I can edit some files via my
Hosting control panel ! Damn ! >:(
Damn.
/Packages/backups is empty....
So how do I disable the SimpleSEF via the SQL database ?
Just clearing the .htaccess file did not work...
Many thanks in advance.
Damn, the variable inside the database table smf_settings
simplesef_enable was set to 0
but when I set it to 1
it does not change.
The forum hangs and does not build up and only
delivers a blank page...
Must I now install all packages again and overwrite them ?
Or how could I fix it manually via the database ?
You can try just deleting Sources/SimpleSEF.php and see if that helps... but you shouldn't use your hosting control panel to edit files, you should use an FTP client to download/edit/delete files, much faster that way.
an ftp-client or an scp-client, scp is more secure
Hi,
that does not help either.
I also have set the
simplesef_enable to 0 or to 1
but that does also not help.
Any other idea ?
Many thanks.
Regards, Stefan.
Quote from: hartiberlin on November 11, 2010, 03:39:59 PM
Hi,
that does not help either.
I also have set the
simplesef_enable to 0 or to 1
but that does also not help.
Any other idea ?
Many thanks.
Regards, Stefan.
Then this mod is likely not your problem... as you can see by the edits made by this mod, they only are in the admin panel. If the mod is not enabled, and the file doesn't exist, there is nothing this mod could be doing to be causing you issues. Only thing you can try is check your hosting error log to see if any errors are thrown there.
Quote from: kolorom on November 11, 2010, 04:39:21 PM
PROBLEM nonexistent pages :(
Incorrect responses of the server.
Incorrect responses of the server.
Typical error is delivery by the server of a code 200 (ОК) for nonexistent pages. For example, at inquiry to the incorrect address, the page with the text about an error, and a HTTP-code thus 200 stands out. As a result this page is repeatedly indexed under different addresses and at accumulation of a considerable quantity of similar pages in an index the site is exposed to cleaning at which it can be removed from base practically entirely.
Any fix?
THX
Any specific examples? I specifically coded in 404 responses for non-existent pages.
Hmm,
also repairing the SQL database did not help...
So any other options than to install all from scratch ?
How many manual edits do I have to make to edit the files that SimpleSEF changed ?
You can check your host's error log (or contact your host for assistance in checking this).
SimpleSEF only edits 4 files (two of which are language files)... http://custom.simplemachines.org/mods/index.php?action=parse;mod=2288;attach=160841;smf_version=2.0_RC4
Are you using the latest version (1.1.1) of the mod?
Quote from: SlammedDime on November 11, 2010, 05:29:44 PM
You can check your host's error log (or contact your host for assistance in checking this).
SimpleSEF only edits 4 files (two of which are language files)... http://custom.simplemachines.org/mods/index.php?action=parse;mod=2288;attach=160841;smf_version=2.0_RC4
Could be, that the error is there, cause I was running the forum in German language,
before I installed the SimpleSEF 1.1.1
How can I set my forum now into English language to see,
if this fixes it ?
Can I just set this inside the SQL database somewhere ?
Many thanks again.
Hmm,
setting all values with a language variable in the database to 0
and with "de" to "en"
also did not fix it...
So how can I set the forum to english language inside the
SQL database ?
got the same problem :/
smf 2 rc4 + portamx + (german utf8)
installed over admin panel (no errors) after installtion i just get a "white" screen.
uploading the files from "2010-11-12_before_simplesef-1_1_1.tar.gz" or uploading a complete old files backup won´t help :/
whats changed in the database during the install is there some kind of changelog like for the files?
Language really shouldn't be an issue....
You can try setting the 'integrate_pre_load' variable in the smf_settings table to an empty string and see if that helps (if there is even anything in it).
yay deleting these strings helped thx
Quote from: SlammedDime on November 11, 2010, 10:55:59 PM
Language really shouldn't be an issue....
You can try setting the 'integrate_pre_load' variable in the smf_settings table to an empty string and see if that helps (if there is even anything in it).
This variable had the value at my setup of:
convertQueryString,ssef_convertQueryString
Now having deleted it,
nothing happens..
I also cleared the .htaccess file...
Any other idea how to revive it ?
Still only a blank page...
Many thanks.
Regards, Stefan.
I think I am giving up on SimpleSEF now and will not try to use it anymore.
One error source less...
I am just waiting for Feline to get her SEF fork ready to be integrated into PortaMX.
Then I will just use this and wait for this as also Google SEO
does not depends anymore so much on URL names...I guess...
Or does the other users get better Google ranking, if you have the title thema
in your URL ?
Many thanks.
Regards, Stefan.
Quote from: hartiberlin on November 12, 2010, 02:05:45 AM
Quote from: SlammedDime on November 11, 2010, 10:55:59 PM
Language really shouldn't be an issue....
You can try setting the 'integrate_pre_load' variable in the smf_settings table to an empty string and see if that helps (if there is even anything in it).
This variable had the value at my setup of:
convertQueryString,ssef_convertQueryString
Now having deleted it,
nothing happens..
I also cleared the .htaccess file...
Any other idea how to revive it ?
Still only a blank page...
Many thanks.
Regards, Stefan.
All I could suggest then is removing anything to do with the integrate_* variables in the settings table, then if the forum becomes available, uninstall the mod, then reinstall it.
I haven't had any problems with this on my test install and I haven't been able to replicate the issue.
SlammedDime if you cant post cutcode to fix 404 in v1.0.3 can you post link where i can download v1.0.3 to compare with 1.1.1 ???
Thanks
Quote from: SlammedDime on November 06, 2010, 04:07:59 PM
Quote from: truhe on November 06, 2010, 02:31:27 PM
I uninstalled simplesef 1.0.3 and then installed 1.1.1.
It seems to work fine, but the Macy-Problem is back.
If I write an new pm and type a letter in the "to" textbox, the letter is replaced by "Macy" which is the member withe the id=1
this problem has been solved by a patch in 1.0.3
http://www.simplemachines.org/community/index.php?topic=352351.msg2647795;topicseen#msg2647795 (http://www.simplemachines.org/community/index.php?topic=352351.msg2647795;topicseen#msg2647795)
(SMF 1.1.12)
Interesting, as that fix is still in place... I'll have to install 1.1.12 in a bit and test it out.
did you find time to install 1.1.12 and test it out ?
Quote from: SlammedDime on November 12, 2010, 10:14:01 AM
All I could suggest then is removing anything to do with the integrate_* variables in the settings table, then if the forum becomes available, uninstall the mod, then reinstall it.
I haven't had any problems with this on my test install and I haven't been able to replicate the issue.
It's a bug in the add_integration_function (see: http://dev.simplemachines.org/mantis/view.php?id=4533)
All current (also temporary added hooks) are saved the the database ...
Fel
I don't see how that is affecting this though... this permanently adds the hooks upon installation of the mod.
Quote from: SlammedDime on November 12, 2010, 10:14:01 AM
All I could suggest then is removing anything to do with the integrate_* variables in the settings table, then if the forum becomes available, uninstall the mod, then reinstall it.
Okay, that fixed it.
I was able now to deinstall SimpleSEF after this.
Quote from: feline on November 12, 2010, 06:40:25 PM
It's a bug in the add_integration_function (see: http://dev.simplemachines.org/mantis/view.php?id=4533)
All current (also temporary added hooks) are saved the the database ...
Fel
Is this a major error still in the released SMF 2.0 RC4 ?
in which files must the the fixes posted there be installed ?
So any fix to this SlimmedDime ?
Could you replicate the errors ?
Many thanks.
Hi! I've try this mod in my local machine (i go from prettyurls - i prefer simplesef because i can rename topic without maintain old title in url) but also if i have use reverter package (from prettyurls) old url not work - work fine if i disable simplesef.
Is there any way to migrate from prettyurls to simplesef without causing more 404?
Another question: why make url with comma (like: profile/area,forumprofile/ and wap2,/ and many others) :-\
-
I've also removed "dot" "." from url (not util for me) and now a topic with this title: Ciao, questo è un topic di prova.
will be converted to: */ciao-questo-e-un-topic-di-prova-**.0.html instead, with prettyurls: */ciao-questo-e-un-topic-di-prova/
There isn't a way to convert from Pretty URLs
The url uses commas to make it easier to parse
This isn't like Pretty URLs where the topic ID or board ID is not in the URL... this mod specifically puts the topic or board id in the URL to prevent any extra DB queries to find out what the actual ID is.
Quote from: SlammedDime on November 14, 2010, 01:05:33 PM
There isn't a way to convert from Pretty URLs
This is a problem :/
I've many link in facebook and shared in many website... i can't change without a redirect (maybe i can grab old and new url from sitemap and provide manual redirect via htaccess).
Quote from: SlammedDime on November 14, 2010, 01:05:33 PM
The url uses commas to make it easier to parse
In my opinion isn't a good way use a comme in url. Maybe is best a simple - or _ (like from setting with standard url).
Quote from: SlammedDime on November 14, 2010, 01:05:33 PM
This isn't like Pretty URLs where the topic ID or board ID is not in the URL... this mod specifically puts the topic or board id in the URL to prevent any extra DB queries to find out what the actual ID is.
Yes i've understood (i've simply put an exaple without dot at the end of url - removed from settings).
Is there soon a fix for the problems with SMF 2.0RC4 , PortaMX and AEVA 2.04 ?
Many thanks.
Hi,
what about this bug ?
in the reading of a topic, or list of members, if you click on '...' to display to other page numbers, the link in these numbers is incorrect
when i click a number, i have this url :
http://localhost/Forum/NameBoard/NameTopic_20195.%1.html$d
any fix please ?
I wasn't aware of any issues with AEVA and this mod... nor with PortaMX and this mod... nor with any issues on RC4 except for what is above... I wasn't able to reproduce your issue from before hartiberlin so I can't really fix something I can't reproduce. I have altered the mod a bit so that it makes no core code changes what-so-ever to SMF (even for the admin panel and languages), so maybe that will alleviate whatever issue you were having before.
Am', I forgot about that one... I'll add it to my to-do list before the next release.
Quote from: SlammedDime on November 15, 2010, 08:53:05 PM
I wasn't aware of any issues with AEVA and this mod... nor with PortaMX and this mod... nor with any issues on RC4 except for what is above... I wasn't able to reproduce your issue from before hartiberlin so I can't really fix something I can't reproduce. I have altered the mod a bit so that it makes no core code changes what-so-ever to SMF (even for the admin panel and languages), so maybe that will alleviate whatever issue you were having before.
And where is it ?
I still see Version 1.1.1 ist still the latest, that still crashes the whole forum !
Please update immediately or send me the new version privately, so I can test it now and tell you,
if it will still crash the forum.
Many thanks.
Regards, Stefan.
I haven't released it quite yet as I'm trying to fix Am's issue above.
Can you install a fresh copy of SMF somewhere and test the current package to see if it happens there as well?
I'm working with a fresh copy of my RC3 forum under a different domain.
- I uninstalled all Mods, tested functionality and then did large upgrade with RC4. All ok.
- First mod I reinstalled was AevaLite 1.7. All ok.
- 2nd mod installed was PortaMx990. PortaMx was ok but issue with white page for messages with embedded video. Found fix for this (comment out one line from subs-aeva.php). All tested ok after that.
- 3rd Mod to install was SimpleSef (vers1.1.1). It passed the installation checks but came back with a white screen and nothing else. I had a 2nd browser to my forum still open from before the install, but when I hit F5 to refresh, I got this line displayed: Numeric request keys are invalid.
I've been able to reproduce this scenario. Not sure how to proceed. Any help would be appreciated.
@SlammedDime - I have both SimpleSEF and Sitemap installed. I find a URL rewrite rule in .htaccess for sitemap link, but I am not able to access it from http://forumname. com/ forum / sitemap.xml. It redirects to homepage.
On a test site, I have Pretty URLs with Sitemap. There it appears to be fine. I can access it via http://forumname. com/ forum / sitemap.xml
Any idea?
PS: I'm still using SimpleSEF 1.0.3. Could that be an issue?
I would recommend using the normal XML sitemap url and not using the rewritten url as you are trying to do. The reason for those instructions are now moot as google no longer cares in what folder the sitemap is.
I would like to know if the rewritten url for Sitemap is supposed to work with SimpleSEF. If it is broken for me, I want to fix it.
Yea, Google does accept "action=sitemap;xml" but certain search engines don't accept this format or even /sitemap/xml/. That's why I wanted to find if it's possible to use /sitemap.xml format.
What search engines won't accept either of the other formats?
What is the contents of your .htaccess file?
I have a problem with this Mod, I don´t know if it is normal or not.
In 2 SMF 1.1.12 (1 recently installed an other old), when I install this mod, everything works OK, but, if I put (for example) in the URL:
http://forum.com/index.php?action=testing
In the "actions" textbox of Mod, "testing" appears.
Thanks in advance
Ps. Sorry for my bad english ;)
If you are using the latest version of this mod, that shouldn't happen
It happen with de last version of SMF and las version of the Mod.
I installed a few minutes ago a new forum and it happen...
EDIT:
Is not this part of SimpleSEF.php ?? (Line 282)
// Only do this if it's an URL for this board and doesn't contain the admin action
if (strpos($setLocation, $scripturl) !== false && strpos($setLocation, 'action=admin') === false)
{
$setLocation = create_sef_url($setLocation);
// Check to see if we need to update the actions lists
$changeArray = array();
$possibleChanges = array('actions', 'useractions');
foreach ($possibleChanges as $change)
if (empty($modSettings['simplesef_' . $change]) || (substr_count($modSettings['simplesef_' . $change], ',') + 1) != count($simpleSEF[$change]))
$changeArray['simplesef_' . $change] = implode(',', $simpleSEF[$change]);
if (!empty($changeArray))
updateSettings($changeArray);
}
REEDIT:
I reemplace that for this, and the "trouble" doesn´t happen again:
// Only do this if it's an URL for this board and doesn't contain the admin action
if (strpos($setLocation, $scripturl) !== false && strpos($setLocation, 'action=admin') === false)
$setLocation = "http://boardurl.com/";
Other trouble:
In any post, if I have default SMF URLs posted (for example: http://board.com/index.php/topic,20.0.html) the "<a href" goes to "http://board.com" :S
I need to install the mod in a production SMF, and in a lot of threads there are links to other post, obviously in the default SMF format
Thanks for quickly answer
Quote from: SlammedDime on November 23, 2010, 09:01:26 AM
What search engines won't accept either of the other formats?
Ask.com and Yahoo doesn't accept it. These 2 may not be as important as Google, but still I want to resolve this url issue. Can you please tell me if Sitemap url actually works with SimpleSEF just like it does with Pretty URLs?
One more thing, if this could be of any help to you - I disabled SimpleSEF and checked the sitemap url. But the url shows /index.php?action=sitemap;xml and not the rewritten one.
Quote from: SlammedDime on November 23, 2010, 09:01:26 AM
What is the contents of your .htaccess file?
Here it is:
RewriteEngine On
RewriteRule ^sitemap.xml$ /forum/index.php?action=sitemap;xml
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
My forum is installed in the folder "forum" - so the path mentioned in rewrite rule is fine.
SimpleSEF version: 1.0.3
SMF 1.1.12
Yes, Sitemap and SimpleSEF work just fine together when used normally (and keep in mind, Pretty URLs and SimpleSEF work in two completely different manners), basically what is happening is that sitemap.xml is being rewritten to /forum/index.php?action=sitemap;xml, which is then being redirected by SimpleSEF to /forum/sitemap/xml,
You can try changing the RewriteRule for sitemap.xml to this:
RewriteRule ^sitemap.xml$ /forum/sitemap/xml
If that doesn't work, I can probably give you some code to use to alter SimpleSEF.php, but I won't incorporate it as a fix into the package permanently mainly because I don't recommend using the sitemap rewrite any longer.
rgb90 - Thanks for pointing that out... I'll make a fix for it for the next release.
Quote from: SlammedDime on November 25, 2010, 11:34:06 AM
.. basically what is happening is that sitemap.xml is being rewritten to /forum/index.php?action=sitemap;xml, which is then being redirected by SimpleSEF to /forum/sitemap/xml,
Ah! Thanks for clarifying that. I thought /forum/index.php?action=sitemap;xml is being rewritten to sitemap.xml which is then rewritten to /forum/sitemap/xml.
I tried changing that rewrite rule, it didn't work. I even removed that rule but still it didn't work.
Quote from: SlammedDime on November 25, 2010, 11:34:06 AM
If that doesn't work, I can probably give you some code to use to alter SimpleSEF.php, but I won't incorporate it as a fix into the package permanently mainly because I don't recommend using the sitemap rewrite any longer.
Please send me the code when you find time.
Thanks
Hi there,
I think I found a bug. if you go on Members (the alphabetic list) on a board with a big member-base you get at the top and bottom of the page-list. ( example: 1 ... 14 15 [16] 17 18 ... 1152). If you now click on the 3 dots to show the next 50 members, all the links are just "/start,%1/$d". They work fine if simpleSEF is turned off. Also the links before the the displayed page work as supposed.
[edit] I just found out the same happens with a list of posts. [/edit]
Hopefully this is an easy fix.
Greetz
[Axel]
Quote from: MaXiForum.cz on November 06, 2010, 03:02:19 AM
One lite problem: Simpleportal and /index.php -> /action=forum
if you have installed simpleportal and run forum hxxp://yourforum.com/index.php and SimpleSEF is enabled, the URL change to hxxp://yourforum.com/action=forum and call 404: Not Found
How can I fix it?
Thanks
I've the same issue. Just upgraded my SMF to 2.0 RC4 and reinstalled the new version. I didn't have this problem on my RC3 with SSEF 1.0.3. Oh and, when I hover any link, it shows the old URL (http://www.site.com/index.php?action=blabla), but when I click it redirects to the new one (http://www.site.com/blabla).Fixed, uninstall the mod > delete all SSEF settings from {prefix}settings table > reinstall
Hi i have aproblem with spanish language. Enable simple SEF, but in the top appear the follow message
QuoteNotice: iconv() [function.iconv]: Detected an illegal character in input string in /Sources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string inSources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string in Sources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string in /Sources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string in /Sources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string in Sources/SimpleSEF.php on line 669
Try comment the lines
Quoteif (function_exists('iconv'))
$string = iconv($char_set, 'UTF-8//IGNORE', $string);
elseif (function_exists('mb_convert_encoding'))
$string = mb_convert_encoding($string, 'UTF8', $char_set);
but dont work, ::)
good work with the mod
how it can be ?
subject is "@! test
url must be
topka/test-28.0.html
i have
topka/%26quot;%40!test-28.0.html
why its not work ?
What do you have set in the admin panel for Characters to strip?
Quote from: frony on December 11, 2010, 11:05:42 PM
Hi i have aproblem with spanish language. Enable simple SEF, but in the top appear the follow message
QuoteNotice: iconv() [function.iconv]: Detected an illegal character in input string in /Sources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string inSources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string in Sources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string in /Sources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string in /Sources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string in Sources/SimpleSEF.php on line 669
Try comment the lines
Quoteif (function_exists('iconv'))
$string = iconv($char_set, 'UTF-8//IGNORE', $string);
elseif (function_exists('mb_convert_encoding'))
$string = mb_convert_encoding($string, 'UTF8', $char_set);
but dont work, ::)
good work with the mod
I'll need to see a specific example of the characters causing that to nail down what's going on...
SlammedDime
default values
Quote",&,<,>,`,~,!,@,#,$,%,^,&,*,(,),-,_,=,+,[,{,],},;,:,',",",/,?,\,|
first I think that is some thing wrong in php.ini maybe magic qoutes, but all charsets dosnt work, its strange :-\
Quote from: SlammedDime on December 12, 2010, 04:18:18 PM
Quote from: frony on December 11, 2010, 11:05:42 PM
Hi i have aproblem with spanish language. Enable simple SEF, but in the top appear the follow message
QuoteNotice: iconv() [function.iconv]: Detected an illegal character in input string in /Sources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string inSources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string in Sources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string in /Sources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string in /Sources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string in Sources/SimpleSEF.php on line 669
Try comment the lines
Quoteif (function_exists('iconv'))
$string = iconv($char_set, 'UTF-8//IGNORE', $string);
elseif (function_exists('mb_convert_encoding'))
$string = mb_convert_encoding($string, 'UTF8', $char_set);
but dont work, ::)
good work with the mod
I'll need to see a specific example of the characters causing that to nail down what's going on...
mmm the message appear after enable the mod,and the message appear in all pages, I use spanish_es language (ñ ` characters...)
Quote from: eXtreme on November 29, 2010, 04:04:16 AM
Quote from: SlammedDime on November 25, 2010, 11:34:06 AM
If that doesn't work, I can probably give you some code to use to alter SimpleSEF.php, but I won't incorporate it as a fix into the package permanently mainly because I don't recommend using the sitemap rewrite any longer.
Please send me the code when you find time.
Thanks
Can you please tell me what code to alter? Because I'm not able to submit my sitemap to any of the local search engines.
Hello. I installed this mod. It is ok but I have some problems about my sitemap.xml and archive.php links like that;
HTTP 404 - Page Not Found
The server could not find this page.
If i install this mod on rc4, and someone clicks on an old link in my forum, will it work?
Yes, old links will redirect automagically to the new SEF version... ie: click on http://mysite.com/index.php?topic=1.0 will automatically redirect the user to http://mysite.com/welcome-to-smf.1.0.html
Quote from: alpheus on December 15, 2010, 02:24:51 PM
Hello. I installed this mod. It is ok but I have some problems about my sitemap.xml and archive.php links like that;
HTTP 404 - Page Not Found
The server could not find this page.
When I install this mod I can't create a sitemap. I also using sitemap mod. I crate it but only my main site address added to sitemap. You have some ideas for this?
without a link to your site, help is nearly impossible to give...
Quote from: eXtreme on December 13, 2010, 03:20:53 AM
Quote from: eXtreme on November 29, 2010, 04:04:16 AM
Quote from: SlammedDime on November 25, 2010, 11:34:06 AM
If that doesn't work, I can probably give you some code to use to alter SimpleSEF.php, but I won't incorporate it as a fix into the package permanently mainly because I don't recommend using the sitemap rewrite any longer.
Please send me the code when you find time.
Thanks
Can you please tell me what code to alter? Because I'm not able to submit my sitemap to any of the local search engines.
It's not as easy as I thought it might be... I'm still working on trying to figure it out but I have very limited time.
Quote from: SlammedDime on December 20, 2010, 10:52:03 PM
without a link to your site, help is nearly impossible to give...
very sorry Slammed. my link is Here. (http://www.nicexporn.com) Tell me please what can I do? Thank you.
Your Sitemap and SimpleSEF seem to be working perfectly fine for me sitemap xml (http://nicexporn.com/sitemap/xml,/)
Yes Slammed it is working but I wonder this; when I create with gsitecrawler or an online sitemap generator, only my main link (www.mysite.com) adding to sitemap. What is your idea for this pls? There is no other link!
Slammed sorry to disturb you again. I changed my site url and add www. And then remove simple sef completely. Now installed again but when I save simple sef setings I have this page;
Notice: Use of undefined constant WIRELESS - assumed 'WIRELESS' in /home/nicex/public_html/Sources/Subs.php on line 2622
Notice: Use of undefined constant WIRELESS_PROTOCOL - assumed 'WIRELESS_PROTOCOL' in /home/nicex/public_html/Sources/Subs.php on line 2633
Warning: Cannot modify header information - headers already sent by (output started at /home/nicex/public_html/Sources/Subs.php:2622) in /home/nicex/public_html/Sources/SimpleSEF.php on line 302
What may I do please?
Quote from: alpheus on December 21, 2010, 09:29:27 AM
Yes Slammed it is working but I wonder this; when I create with gsitecrawler or an online sitemap generator, only my main link (www.mysite.com) adding to sitemap. What is your idea for this pls? There is no other link!
Don't use a sitemap generator... there is no point when using the Sitemap mod. I can't (and won't) support something I don't make.
Quote from: alpheus on December 21, 2010, 05:40:26 PM
Slammed sorry to disturb you again. I changed my site url and add www. And then remove simple sef completely. Now installed again but when I save simple sef setings I have this page;
Notice: Use of undefined constant WIRELESS - assumed 'WIRELESS' in /home/nicex/public_html/Sources/Subs.php on line 2622
Notice: Use of undefined constant WIRELESS_PROTOCOL - assumed 'WIRELESS_PROTOCOL' in /home/nicex/public_html/Sources/Subs.php on line 2633
Warning: Cannot modify header information - headers already sent by (output started at /home/nicex/public_html/Sources/Subs.php:2622) in /home/nicex/public_html/Sources/SimpleSEF.php on line 302
What may I do please?
Are these persistent errors or did they only show up once?
it's look good mod, i installed, but now i have blank page on my forum... :-[
its compatible with smf 2.0 RC3?
when install i get this error, after press install package.
Fatal error: Call to undefined function add_integration_function() in /foro/Packages/temp/add_settings.php on line 38
in line 38 of the add_settings.php i get
add_integration_function($hook, $function, TRUE); ???
http://dev.simplemachines.org/mantis/view.php?id=4533
Quote from: frony on December 26, 2010, 05:15:23 PM
its compatible with smf 2.0 RC3?
No...
From the mod page:
Latest Version:
1.1.1
Compatible With:
1.1.12, 2.0 RC4
Quote from: Am' on November 15, 2010, 04:17:56 PM
Hi,
what about this bug ?
in the reading of a topic, or list of members, if you click on '...' to display to other page numbers, the link in these numbers is incorrect
when i click a number, i have this url :
http://localhost/Forum/NameBoard/NameTopic_20195.%1.html$d
any fix please ?
any news ? ;)
I expect that this bug is resolved to migrate "pretty url" to "simplesef"
(the size of the table "pretty_urls_cache" is 700MB, while the table "post" is just 400MB >:()
I probably won't have a fix rolled out for it until after 2.0 is final. I have very little time to do anything SMF related at the moment, so I have to prioritize, and this is not near the top. If anyone wants to dig into the code and figure out the javascript replacement needed to make this work, feel free and I'll incorporate the fix into the next version. (keeping with the spirit of this mod, any fix should only be applied in SimpleSEF.php, there should be no core code changes required
Quote from: Am' on November 15, 2010, 04:17:56 PM
in the reading of a topic, or list of members, if you click on '...' to display to other page numbers, the link in these numbers is incorrect
Find in /Sources/SimpleSEF.php
// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'/rand,' => '/rand=',
$boardurl . '/topic/' => $scripturl . '?topic=',
'var smf_scripturl = "' . $boardurl . '/' => 'var smf_scripturl = "' . $scripturl,
);
and change to:
// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'%1/$d' => '%1$d',
'/rand,' => '/rand=',
$boardurl . '/topic/' => $scripturl . '?topic=',
'var smf_scripturl = "' . $boardurl . '/' => 'var smf_scripturl = "' . $scripturl,
);
Fel
Quote from: feline on December 29, 2010, 12:57:12 PM
Find in /Sources/SimpleSEF.php
// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'/rand,' => '/rand=',
$boardurl . '/topic/' => $scripturl . '?topic=',
'var smf_scripturl = "' . $boardurl . '/' => 'var smf_scripturl = "' . $scripturl,
);
and change to:
// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'%1/$d' => '%1$d',
'/rand,' => '/rand=',
$boardurl . '/topic/' => $scripturl . '?topic=',
'var smf_scripturl = "' . $boardurl . '/' => 'var smf_scripturl = "' . $scripturl,
);
Fel
thx for this fix fel ;D
the pagination bug is fixed in memberlist, but not in display messages and sitemap
when i click a number, i have this url :
http://localhost/Forum/NameBoard/NameTopic_20195.%1.html$d
any idea ? :(
Just to note, SimpleSEF has been opened up to Google Code and the next version will be released/is being developed under the MPL 1.1 license. It can be found at http://smf-simplesef.googlecode.com and can be checked out using Mercurial.
Quote from: Am' on December 29, 2010, 03:47:53 PM
thx for this fix fel ;D
the pagination bug is fixed in memberlist, but not in display messages and sitemap
when i click a number, i have this url :
http://localhost/Forum/NameBoard/NameTopic_20195.%1.html$d
any idea ? :(
Currently not .. sorry.
You have a link to a example page on your forum?
Fel
when will support Russian language?
It does support Russian language... like I said before, if you see issues with the Russian translations and can substantiate that with others, let me know the changes that need to be made. I do not speak, nor read, Russian, so I cannot fix something I don't know is broken.
Know the population of Russia alone 141930000
and Belarus, Ukraine, Georgia ... However, quite a few Russian
http://www.simplemachines.org/community/index.php?topic=352351.msg2772500#msg2772500
And as i have said now twice before...
Quote from: SlammedDime on September 03, 2010, 04:33:18 PM
As for the Russion translation, this is what I currently have, located in SimpleSEF-Db/x04.php
array (
'А' => 'A', 'Б' => 'B', 'В' => 'V', 'Г' => 'G', 'Д' => 'D',
'Е' => 'Ie', 'Ж' => 'Zh', 'З' => 'Z', 'И' => 'I', 'Й' => 'I',
'К' => 'K', 'Л' => 'L', 'М' => 'M', 'Н' => 'N', 'О' => 'O',
'П' => 'P', 'Р' => 'R', 'С' => 'S', 'Т' => 'T', 'У' => 'U',
'Ф' => 'F', 'Х' => 'Kh', 'Ц' => 'Ts', 'Ч' => 'Ch', 'Ш' => 'Sh',
'Щ' => 'Shch', 'Ъ' => '', 'Ы' => 'Y', 'Ь' => '\'', 'Э' => 'E',
'Ю' => 'Iu', 'Я' => 'Ia', 'а' => 'a', 'б' => 'b', 'в' => 'v',
'г' => 'gh', 'д' => 'd', 'е' => 'ie', 'ж' => 'zh', 'з' => 'z',
'и' => 'i', 'й' => 'i', 'к' => 'k', 'л' => 'l', 'м' => 'm',
'н' => 'n', 'о' => 'o', 'п' => 'p', 'р' => 'r', 'с' => 's',
'т' => 't', 'у' => 'u', 'ф' => 'f', 'х' => 'kh', 'ц' => 'ts',
'ч' => 'ch', 'ш' => 'sh', 'щ' => 'shch', 'ъ' => '', 'ї' => 'yi',
'Ї' => 'Yi', 'є' => 'ie', 'Є' => 'Ie', 'ы' => 'y', 'ь' => '\'',
'э' => 'e', 'ю' => 'iu', 'я' => 'ia',
)
The ones that are different are:
array ( 'Е' => 'Ie', 'Ж' => 'Zh', 'Й' => 'I', 'Х' => 'Kh', 'Ц' => 'Ts', 'Ч' => 'Ch', 'Ш' => 'Sh', 'Щ' => 'Shch', 'Ы' => 'Y', 'Ь' => '\'', 'Ю' => 'Iu', 'Я' => 'Ia', 'г' => 'gh', 'е' => 'ie', 'ж' => 'zh', 'й' => 'i', 'х' => 'kh', 'щ' => 'shch', 'ъ' => '', 'ї' => 'yi', 'Є' => 'Ie', 'ы' => 'y', 'ь' => '\'', 'ю' => 'iu', 'я' => 'ia', )
If you can find others that agree this should be changed, I will make the change for the next release. I can't, however, go off the word of just one person.
Quote from: SlammedDime on December 29, 2010, 10:35:57 PM
Just to note, SimpleSEF has been opened up to Google Code and the next version will be released/is being developed under the MPL 1.1 license. It can be found at http://smf-simplesef.googlecode.com and can be checked out using Mercurial.
Does this mean it is now GPL and Feline can offer her modification of it for her portal ?
Quote
2. Where is SimpleSEF 1.1-pmx ?
If slammeddime develop SimpleSEF under GPL, we will make a fixed release.
Fel
See:
http://portamx.com/topic_2182.msg12591.html#msg12591
Many thanks.
I believe GPL is the *worst* software license to use for PHP scripts and will never use it for any project I ever code, for this forum nor any other project. It is released under the MPL which is
NOT GPL compatible.
From Wikipedia:
QuoteCompatibility with GPL
The Free Software Foundation (FSF) considers the license a free software license, albeit one with a weak copyleft. However, "unlike the X11 license" (MIT License) the license has "some complex restrictions" making it incompatible with the GNU GPL. They urge people not to use the license because of this incompatibility unless the provision in section 13 of the MPL is exercised to provide the work under either the GPL or any other GPL-compatible license.[2]
Anyone wishing to fork or otherwise develop the code must do so under the same license. The code may also be combined with other works which are licensed under a different license, however the code for this mod still falls under the MPL, not the license of the combined work.
Of course if we make a fork, then this is NOT licensed under our Portal license.
This fork is continue licensed under MPL with a referrer to the founder (SlammedDime).
Fel
I am currently running SMF 1.1.12 with blackbox theme. I installed the package did all the parse information but simpleSEF still doesn't work. I do not even see it in the backend admin pannel. Not sure whats going on, site is forum.thepokerdream.net
Have you checked the installation instructions and compared them to your files to see if your files were even edited? If they weren't, that would be why and you'll have to manually install the modification.
Yes, I manually installed it, went to the files separately, edited them, moved them checked the codes and I still don't see the menu. On your postinstall description you say to visit the admin pannel and click on the help link, either I can't find it or I don't have it, but I don't see SimpleSEF in the backend.
Not sure what to really tell you then... if you don't see the option in the admin panel then it wasn't installed properly... the language strings need to be installed in every Modifications.language.php file that is in every Theme's language directory. If the language strings aren't installed properly, you won't see the text for the menu entries. You can check the source html of the admin page to see if the menu option exists or not just with no text.
k so i reinstalled moved back to original theme to isolate the problem and I don't think its my template. Attached is the sc i took after installing it
Yup, as I suspected, you're missing all of the language strings. They are normally installed to Modifications.english.php, but if you are using English-UTF8 as your language, you need to add the language strings to Modifications.english-utf8.php as well.
thx for the help there, got it workign now, except now I have a bunch of ??? at the top of my site no idea where they came from. forum.thepokerdream.net
I realized this is due to error and I'm getting this error I applied your fix but am still getting the error
2: Cannot modify header information - headers already sent by (output started at /home/thepok8/public_html/forum/Sources/SimpleSEF-Db/x00.php:1)
File: /home/thepok8/public_html/forum/Sources/Subs.php
Line: 3289
?action=viewErrorLog;desc=
Quote from: SlammedDime on December 20, 2010, 10:52:48 PM
Quote from: eXtreme on December 13, 2010, 03:20:53 AM
Can you please tell me what code to alter? Because I'm not able to submit my sitemap to any of the local search engines.
It's not as easy as I thought it might be... I'm still working on trying to figure it out but I have very limited time.
I can understand that. I'll wait for it and I hope that you will find a solution when you update it for 2.0 final.
Quote from: frony on December 11, 2010, 11:05:42 PM
Hi i have aproblem with spanish language. Enable simple SEF, but in the top appear the follow message
QuoteNotice: iconv() [function.iconv]: Detected an illegal character in input string in /Sources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string inSources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string in Sources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string in /Sources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string in /Sources/SimpleSEF.php on line 669
Notice: iconv() [function.iconv]: Detected an illegal character in input string in Sources/SimpleSEF.php on line 669
Try comment the lines
Quoteif (function_exists('iconv'))
$string = iconv($char_set, 'UTF-8//IGNORE', $string);
elseif (function_exists('mb_convert_encoding'))
$string = mb_convert_encoding($string, 'UTF8', $char_set);
but dont work, ::)
good work with the mod
I'm getting the same error with iconv, mb_convert_encoding and unicode_decode on SMF 1.1.12. Using ISO-8859-9 as encoding, and using latin5_turkish_ci and latin1_swedish_ci as DB encoding.
I'll have to try to reproduce... but I'll need some sample text strings in turkish that might replicate the error. (I'd actually recommend converting the board to UTF8, but that's not always feasible for everyone).
installed. got a white screen on installing. the forum isn't loading anymore.
added the line in the settings.php to disable the mod.. it doesn't work.
am i missing something?
# Make sure the paths are correct... at least try to fix them.
if (!file_exists($boarddir) && file_exists(dirname(__FILE__) . '/agreement.txt'))
$boarddir = dirname(__FILE__);
if (!file_exists($sourcedir) && file_exists($boarddir . '/Sources'))
$sourcedir = $boarddir . '/Sources';
if (!file_exists($cachedir) && file_exists($boarddir . '/cache'))
$cachedir = $boarddir . '/cache';
$disable_sef = true;
?>
You sure you're posting to the right mod topic? This mod has no such option in the settings file and its nearly impossible to brick the board on a fresh install.
oops. sorry, the thread is the right one. the option not.
and i do not have a fresh install. it's a hardly modded site with portal, articles, downloads etc.
any suggestions?
Well this mod makes very few code changes (only for an admin interface) so all i can suggest is looking at the manual install instructions to see what went screwy. you can slao try renaming Sources/SimpleSEF.php to something else and see if that helps
Quotelooking at the manual install instructions to see what went screwy.
everything is ok
Quoteyou can slao try renaming Sources/SimpleSEF.php to something else and see if that helps
it doesn't work
You can also try renaming the .htaccess file to .htaccess.bak and see if that helps... if that does, then you'll need to consult with your host why the simple additions to the .htaccess file didn't work (they are pretty standard lines found in most PHP applications that do url rewriting)
You should also check your hosts error log in cpanel (if you have cpanel) to see what errors are being thrown.
Quote=You can also try renaming the .htaccess file to .htaccess.bak and see if that helps...
no good
QuoteYou should also check your hosts error log in cpanel (if you have cpanel) to see what errors are being thrown.
no errors in there ???
anyway i restored the forum from a backup and later i tried once again the mod with the same result.
it seems that i have to give up on this mod
Some soon to come updates for the SMF 2.0 line:
- Makes zero code changes now. All code, including the admin panel options, are self contained in their own file. Language strings have their own file now (instead of modifying Modifications.language.php). The entire mod works through integration hooks now.
- PHP 5+ only (error thrown on install for less than PHP 5)
- Unit Tested with PHPUnit with almost 95% code coverage
- Converted from static functions to a class based implementation
- Adjustments for custom action handling (custom actions should be handled before board/topic handling). This would allow custom action handlers to use the topic extension for other items (articles, downloads, etc).
- Other small bug fixes
Google Code project has been closed and instead has been migrated to bitbucket.org. The code can be viewed by clicking on the BitBucket Projects link in my signature. Keep in mind that the code available on bit bucket may not always be operational as I often commit code that isn't complete as I work between multiple computers. I will also NOT offer support for anything other than tagged version releases offered for download here at Simple Machines.
I've added a few new features to SimpleSEF as well that will roll out with the next version:
Ignore actions - makes it possible to ignore rewriting actions of the admins choice.
Action aliasing - More than one person has asked to be able to rewrite the names of actions (instead of 'action=register', make it 'action=signup' or whatever the case may be, for example)... this is now possible in the next version.
And of course, still with zero code changes to SMF.
Why work PHP5+ only? Is it OOP for? Can't do with loadClassFile() for below PHP5?
Not possible to use loadClassFile. It is OOP based. PHP4 is no longer supported, it is out dated technology and no one should be using it anymore. Most hosts who still use this also have the option for their clients to seamlessly upgrade to PHP5. It also uses specific PHP5 functions for which I don't want to write PHP4 compatible versions.
Quote from: SlammedDime on February 07, 2011, 10:49:57 PM
I've added a few new features to SimpleSEF as well that will roll out with the next version:
Ignore actions - makes it possible to ignore rewriting actions of the admins choice.
Action aliasing - More than one person has asked to be able to rewrite the names of actions (instead of 'action=register', make it 'action=signup' or whatever the case may be, for example)... this is now possible in the next version.
And of course, still with zero code changes to SMF.
I can't wait to see that! :D
What is the limitation on OOP for PHP4, exactly? loadClassFile does a fairly good job of dynamically rewriting the class file on load for the purposes of fixing scope issues for PHP4's benefit... even SMF has classes in it.
There is no good reason why OOP works only with PHP 5.
It worls with php 4 as well ... see our portal :D
loadClassFile isn't possible as this mod is loaded via integration hooks which don't support such loading. I never said the reason for non PHP4 compliance was due to OOP. I was merely asserting that it was OOP. However, it does use PHP's features of variable and method scope which obviously won't work with PHP4.
The primary reason is due to PHP5 only functions that I don't feel like writing for PHP4. And as I said before, PHP4 is no longer supported, is outdated and the last security release was 2 1/2 years ago. There's no reason why people should still be using it and anyone still coding for it is selling themself short.
Please update for smf 2.0 RC 5
Quote from: SlammedDime on February 09, 2011, 11:20:50 PM
And as I said before, PHP4 is no longer supported, is outdated and the last security release was 2 1/2 years ago. There's no reason why people should still be using it and anyone still coding for it is selling themself short.
Because SMF itself supports php4, any mod MUST do this also, or it can't approved (my meanings).
And I think, that more then 20-30% SMF forums run under php4, because low cost hostings do not update ;)
I'm about ready to release the newest version for 2.0 RC5... any takers on wanting to test it out??
https://bitbucket.org/mattzuba/simplesef/downloads/SimpleSEF_2-0.tar.gz
For those still on RC4, this will work with RC4 as well, you just need to use the version emulate feature in the package manager. The old version needs to be uninstalled before installing the new one. I recommend putting your forum into maintenance mode before doing this.
There's been 4 downloads... anyone who downloaded have any feedback?
I will check it out later this day.
Just installed it, and can only say it works as a charm :D
You even fixed the list bug http://www.simplemachines.org/community/index.php?topic=352351.msg2869217#msg2869217 (http://www.simplemachines.org/community/index.php?topic=352351.msg2869217#msg2869217)
thx a lot
Test out the action aliasing and ignoring too... lemme know how they work ;)
they work both too. I bet you did know that :-*
Greetz
testing the 2.0 version right now, so far so good :) I love the Action Aliasing I'm using it right now for a Spanish forum, also thanks for the 'integrate_admin_areas' , 'integrate_menu_buttons' and 'integrate_actions' will definitely help a lot for understanding how the hooks work.
here's the spanish_latin and spanish_es translation both utf8 and normal.
Downloaded and installed 2.0RC5 version earlier today.
Installed and works flawlessly! :)
Keep up the good work.
Thanks. Since no one seems to have any issues with the new version, I'll push it to the mod site tomorrow. Thanks for the translations Miss All Sunday. I'll push them into the repo and create some packages for them as well.
Got 13 of these error codes last night. Checked the IP and its Google. Any ideas?
Guest
66.249.71.84
Today at 06:42:53 AM
e3e7695262941fbb4c046ad72bc205ec
Type of error: General
http://uscleanersnetwork.com/smf/index.php?action=media;sa=rss;item=89;type=comments;q=media/sa.rss/item.89/type.comments/
2: ob_start() [<a href='ref.outcontrol'>ref.outcontrol</a>]: output handler 'ob_gzhandler' cannot be used twice
File: /home/uscleane/public_html/smf/Sources/SimpleSEF.php
Line: 343
What other mods do you have installed?
Multiple mods installed:
Login Detector 1.0,Stop Spammer 2.3.9,httpBL 2.5.1, Add security verification to the Login page 1.0,TorBlock 0.1, cb|Emailogin 0.5,SMF Trader System 1.6, Hide Post Authors 1.3, Bad Behavior mod 1.4.2, Hide Images from Guests 2.0, BK-SMF Favicon and Custom Global HTML 1.0, SMF Classifieds 1.3.8, Counters: Google, StatCounter & Yandex 1.0a, SimpleSEF 2.0, Hide Avatars from Guests 2.0, Login Security 1.0.2.2, Location on admin memberlist , Ad Seller Pro 1.0.8, Vbulletin New Meta Tags 1.0, Join date and Location in Posts 1.1, Sitemap 2.2.0, FantasticSmileys 1.0, Activity Reminder 1.0, Info Center Permissions 1.0, Forum Firewall 1.0.8, SMF Links 2.3, Location on memberlist SMF2 1.3, Aeva Media
I have a feeling it's Aeva.
yes, its Aeva, I got the same error, it only happens when a user or guest see the Aeva RSS feeds, I guest both mods are trying to use ob_gzhandler.
That's exactly it, and IIRC Aeva's is for the copyright. This shouldn't be an issue in Aeva 2.10 since you can turn the copyright off there (after Nao got so fed up of people asking about it)
I also know that future versions of Aeva, in the form they will take, will not use that handler anyway. Mind you, it won't be for SMF...
Likely Aeva... you can try this in SimpleSEF...
ob_start(!empty($modSettings['enableCompressedOutput']) ? 'ob_gzhandler' : '');
ob_start(!empty($modSettings['enableCompressedOutput']) && !in_array('ob_gzhandler', ob_list_handlers()) ? 'ob_gzhandler' : '');
Quote from: Arantor on March 03, 2011, 10:32:28 AM
That's exactly it, and IIRC Aeva's is for the copyright. This shouldn't be an issue in Aeva 2.10 since you can turn the copyright off there (after Nao got so fed up of people asking about it)
I know you can turn it off, I just chose not to do it, I also enable the load time just to show SimpleSef's, both are great modifications and deserve the credit.
Quote from: SlammedDime on March 03, 2011, 10:36:16 AM
Likely Aeva... you can try this in SimpleSEF...
ob_start(!empty($modSettings['enableCompressedOutput']) ? 'ob_gzhandler' : '');
ob_start(!empty($modSettings['enableCompressedOutput']) && !in_array('ob_gzhandler', ob_list_handlers()) ? 'ob_gzhandler' : '');
many thanks SD :)
Just changed that line of code.
Thanks! :)
It still doesn't work for TinyPortal?
It become imposibile to edit articles after activating this mod!
On what version of SMF? And what version of TP? Exact steps to reproduce?
smf 1.1.14, tp 0.98
When i click edit article i got this picture in attach.
There isn't edit button at all, and browser block then.
The new package I linked above doesn't include any changes to the package for SMF 1.1.x. I hadn't really planned on making any changes for it either. I'll download tp and try to see what the issue is and if it's simple enough, I'll try to fix it.
I forget to insert an attachment.
Here it is.
After this happens, IE blocks totally and need for restart.
Seems that problem is with FCKeditor.
We use also the fckeditor in our portal and that works perfect...
New errors
Quote
Notice: iconv() [function.iconv]: Detected an illegal character in input string in /home/farmaceu/public_html/forum/Sources/SimpleSEF.php on line 669
Warning: Cannot modify header information - headers already sent by (output started at /home/farmaceu/public_html/forum/Sources/SimpleSEF.php:669) in /home/farmaceu/public_html/forum/Sources/SimpleSEF.php on line 302
And definetely something is wrong with combination TP + this mod :
Try to clik on any link on home page (http://www.farmaceuti.com/forum/page,licenca,/%20obavestenje) it doesn't open single page.
The 'Detected illegal character' thing is common if/when people copy text from rich text editors like Microsoft Word or the like which contains invalid (as far as the rest of the world is concerned) characters. I'm not too sure at this point if I am going to fix either of these with the 1.1.x version of the mod yet.
After disabling this mod, everything works fine.
this might be a stupid question, but does this work with Lightpd?
yes version 2.0 does work with Lighttpd
you can find 2.0 here: http://code.mattzuba.com/simplesef/downloads
All versions should work with lighttpd. You will need to properly configure it though... I think the instructions are in the 'help' section of the 2.0 version.
Thanks guys, I got it and have it working.
SMF 2.0RC5
SimpleSEF 2.0
I installed this and I'm having issues.
It seems to be working fine, but I have a custom mod, with it's own action URL, ex: action=babynames. When I visit this URL, I get this error:
QuoteThe page you requested could not be found. Please contact the site administrator if you believe you have reached this page in error.
I double checked my .htaccess file in my forum root, and it does have the code that's supposed to be there according to the help.
All other parts of the site seem to work. Although, the babynames is the only custom action I have ATM.
On the 'Advanced' settings of SimpleSEF, do you see a 'babynames' in the list of Actions at the bottom? If not, edit the list and add babynames and see if that fixes it.
Does that URL appear anywhere linked on your site, or is it something people just have to know?
Quote from: SlammedDime on March 11, 2011, 03:46:03 PM
On the 'Advanced' settings of SimpleSEF, do you see a 'babynames' in the list of Actions at the bottom? If not, edit the list and add babynames and see if that fixes it.
Does that URL appear anywhere linked on your site, or is it something people just have to know?
ok, I didn't realize that turning on advanced options, created a advanced button showing advanced options on a page. I edited the actions list and added babynames. It works as intended now.
Thanks. It was a oversight on my part.
Well normally that shouldn't be needed. The Mod is supposed to pick up on actions that it parses during page generation and if they don't exist in the current array, add to it. If the link doesn't appear on your pages at all and it's just bookmarked or something, that could be why.
Yes, the link was not on my page/menu. That's probably why.
Well, for some reason I am unable to enable this mod at all. And the strange thing is this, I am able to enable it within a different spot on the same server with the same version of SMF (RC5). So, strange, but it won't let me enable it, every time I try, it goes back to unchecked/disabled after clicking on the save button.
But in my test site, I can enable it and it works like it should...
Hmm, what do you think could be causing the problem? Installation went successful on both SMF 2.0 RC5 sites. Just strange is all that it works on 1 of them, but not the other one and they are both on the same exact server.
I also have this setting enabled on SMF: Search engine friendly URLs
Apache/Lighttpd only! Does that make a difference on whether this mod will work or not?
Quote from: SoLoGHoST on March 12, 2011, 05:46:08 AM
Well, for some reason I am unable to enable this mod at all. And the strange thing is this, I am able to enable it within a different spot on the same server with the same version of SMF (RC5). So, strange, but it won't let me enable it, every time I try, it goes back to unchecked/disabled after clicking on the save button.
But in my test site, I can enable it and it works like it should...
Hmm, what do you think could be causing the problem? Installation went successful on both SMF 2.0 RC5 sites. Just strange is all that it works on 1 of them, but not the other one and they are both on the same exact server.
I also have this setting enabled on SMF: Search engine friendly URLs
Apache/Lighttpd only! Does that make a difference on whether this mod will work or not?
Don't enable apache/lightpd only. SimpleSEF setting over-rides those smf settings.
If your using Dream-Portal, it might not work. I never could get it to work together, so I ended up not using DP on my site because of it. I requested support for it about a year ago and was refused.
It would be nice to see DP compatible with this mod and sitemap, for SEO reasons.
Also, it supposed to appear as it unchecked, but turn it on leave it alone for awhile. It was intentional by SlammedDime. He had a good reason, but I forget why.
@SoloGHoST
Make sure you are using version 2.0.
http://code.mattzuba.com/simplesef/downloads
Even if you have SMF's queryless urls option enabled, this mod will automatically disable it when this mod is enabled.
As for not being able to enable this mod... What is the webserver you are running on SoLo? If it's Apache or IIS, make sure either the .htaccess file or web.config file (respectively is in the root SMF directory and make sure it contains the proper information (which can be seen by clicking the 'Help' option in the SimpleSEF Settings screen). If the file doesn't exist or contain the proper information, the mod will not enable, to prevent your board from breaking.
QuoteIt would be nice to see DP compatible with this mod and sitemap, for SEO reasons.
Anything should be compatible with Sitemap, I purposely built in the ability for other Mod authors to add custom entries to the sitemap via additional PHP files that direct how to derive the information.
Quote from: SlammedDime on March 12, 2011, 10:57:52 AM
QuoteIt would be nice to see DP compatible with this mod and sitemap, for SEO reasons.
Anything should be compatible with Sitemap, I purposely built in the ability for other Mod authors to add custom entries to the sitemap via additional PHP files that direct how to derive the information.
Exactly, I hope he adds those custom entries. ;)
Quote from: SlammedDime on March 12, 2011, 10:56:06 AM
Even if you have SMF's queryless urls option enabled, this mod will automatically disable it when this mod is enabled.
As for not being able to enable this mod... What is the webserver you are running on SoLo? If it's Apache or IIS, make sure either the .htaccess file or web.config file (respectively is in the root SMF directory and make sure it contains the proper information (which can be seen by clicking the 'Help' option in the SimpleSEF Settings screen). If the file doesn't exist or contain the proper information, the mod will not enable, to prevent your board from breaking.
Thank You, will look into later on tonight.
Cheers :)
Problem was with Pretty URL's. I installed this mod first since it was recommended first, but than I noticed it seemed to add spam to my SMF Admin Panel (or so it felt like it was), so I removed it and than installed SimpleSEF, after which, it wouldn't enable because PrettyURL's was not completely removed from the .htaccess file.
Thanks :)
Glad you got it solved.
FYI, I also just tested the latest version of DP and SimpleSEF, they work together just fine.
Quote from: botb2 on January 13, 2011, 08:18:43 PM
k so i reinstalled moved back to original theme to isolate the problem and I don't think its my template. Attached is the sc i took after installing it
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=352351.0;attach=166279;image)
I have the same problem with SMF 1.1.13 with ISO-8859-1.
How to do? Thanks.
I must be overlooking something. I cannot figure out how to remove SimpleSEF from the main menu?
@syrinx75 what language are you using, are you using english-utf8 ?
@Xarcell are you using simpleSEF 2.0? if so, the menu link uses a hook, if you wish to remove the link form the menu, go to your database, select the settings table, look for integrate_menu_buttons inside that filed, there is a "SimpleSEF::menuButtons" word, delete that and save.
if "SimpleSEF::menuButtons" isn't in integrate_menu_buttons field then the button will not appear since the hook will not have any function to call. dont forget to clean your cache to see the changes
@Miss All Sunday: french with ISO-8859-1.
thats the issue, you will need to translate the mod strings to french by creating the file SimpleSEF.french.php or make a copy of SimpleSEF.english.php and renamed SimpleSEF.french.php and upload that file to your Themes/default/languages/ folder
Thanks.
Is a way to include in SimpleSEF a rewrite to hide the subdomains? Like that:
https://www.domaine.info/forum/SMF1113/topicABCD/ ==> https://www.domaine.info/topicABCD/
Quote from: Miss All Sunday on March 20, 2011, 02:21:46 PM
@Xarcell are you using simpleSEF 2.0? if so, the menu link uses a hook, if you wish to remove the link form the menu, go to your database, select the settings table, look for integrate_menu_buttons inside that filed, there is a "SimpleSEF::menuButtons" word, delete that and save.
if "SimpleSEF::menuButtons" isn't in integrate_menu_buttons field then the button will not appear since the hook will not have any function to call. dont forget to clean your cache to see the changes
That did the trick. Thanks.
I tried version 2.0 0n my live site with Download System installed and when I click on the Downloads button it redirects me to the frontpage.
Quote from: SlammedDime on March 11, 2011, 03:46:03 PM
On the 'Advanced' settings of SimpleSEF, do you see a 'babynames' in the list of Actions at the bottom? If not, edit the list and add babynames and see if that fixes it.
Does that URL appear anywhere linked on your site, or is it something people just have to know?
do the same, instead of 'babynames' add your download action
That's odd it redirected you... I don't think adding the download action will help, it's likely already there. If it wasn't, he'd get the message saying the page he was looking for doesn't exist. What download mod do you have installed? Link to your site?
Yes, it's already in the list. I installed Downloads System by vbgamer45.
Quote from: syrinx75 on March 20, 2011, 05:14:32 PM
Thanks.
Is a way to include in SimpleSEF a rewrite to hide the subdomains? Like that:
https://www.domaine.info/forum/SMF1113/topicABCD/ ==> https://www.domaine.info/topicABCD/
Any possibility please?
Quote from: Masterd on March 22, 2011, 03:07:33 PM
Yes, it's already in the list. I installed Downloads System by vbgamer45.
Anyone?
Quote from: Masterd on March 22, 2011, 05:17:16 AM
I tried version 2.0 0n my live site with Download System installed and when I click on the Downloads button it redirects me to the frontpage.
It's a problem with the download settings;
Normaly the
Downloads Path: and the
Downloads Url have the same last part ..
downloadsRename the download folder to (as example) download_folder and change the
Downloads Path settings. I think that will help...
Thanks, feline! That fixed it. But, now, when I want to manage Simple SEF options I get "redirection loop" error.
I can't nothing to say to the loop. We have made a legal forc of SimpleSEF for our portal and with this the download manager and all other works.
Rather than changing the folders around (which will work), you can also rewrite the name of the downloads action. Say, 'files' instead... so yoursite.com/files will actually point to yoursite.com/index.php?action=downloads.
Masterd - are you still having a problem with redirection loops? Are there any *.core files in your SMF directory?
Updated mod on modsite to latest version supporting RC5
Finally! I'll translate SimleSEF 2.0 to Turkish.
i have deleted any trace of prettyURLS including in the .htaccess file but it still refuses to enable when ticking the box "Enable SimpleSEF" - I have contacted my host and they assure me that mod_rewrite is enabled.
Any ideas? thanks
OK I have simpleSEF working now but the logo of my site gets lost anywhere but the index and admin page. Any ideas?
thanks
Without a link to your site, I wouldn't be able to give you an ideas...
Very nice mod.. Thank you.
Pretty URLs to Simple SEF converter from my need.
Quote from: rolyef on April 06, 2011, 08:35:26 AM
Very nice mod.. Thank you.
Pretty URLs to Simple SEF converter from my need.
You don't really need a converter, you can just uninstall pretty urls and then install simpleSEF.
How may make old links indexed?
The old links tha pretty urls made will not longer work and google or any other search engine will just dismiss them, after you install simpleSEF the new links are going to be indexed, it just take time thats all.
Thank you. Simple SEF would like to use for better performance, but search engines do not want to get lost.
I can look into doing some sort of converter... I've thought about it for some time, but I've never had the patience to install PrettyUrls and test it out...
Hey!
Looks like a smooth mod if I can only figure out how to get it going... :o
Edit:
Ok. Here's what I figured out maybe it'll help others:
If its not working for you..
1. You need to access the server from your cpanel not your ftp client (I was using fire ftp and it wasn't showing certain files) to make sure if you have the .htaccess file.
2. For people not sure of how to make an .htaccess file: you make it in notepad (windows) and when saving it make sure you select 'save as type' "all files". save it NOT as a text
.
this is what I figured out..... unfortunately I got a 404 when trying to click on anything on the forum.... The Home tab was working and when I clicked other things it redirected to a 404 page......but in the address bar the simplesef was working.
I think it may be because its not sure where the root folder is???
Edit: ..A few hours later...
I got it to work. Not sure how, but this is what I tried:
I uninstalled the "remove index.php from url package"
Then I installed the simple sef package and got a 404 error instantly.
so I went and uninstalled the .htaccess via fireftp (In the menu there is a display hidden files) because I was going to uninstall the package....then boom it works!
so far so good.
Was checking Google Webmaster tools today and noticed my sitemap was missing. It had been working fine a few days ago.
Clicked sitemap link from our site and it looks good. Click on XML and get:
XML Parsing Error: no element found
Location: http://uscleanersnetwork.com/smf/sitemap/xml./
Line Number 1, Column 1:
Works fine if I disable SEF.
Where do I need to look to fix this?
wicked - it's *possible* that SimpleSEF is needing to use too much memory to load up all of the URL's in the sitemap... try decreasing the number of topics to display in the xml sitemap in the Sitemap settings.
Thanks for the tip.
That took care of the issue. :)
Is this better than PrettyUrls?
That's pretty subjective, and of course I'm going to say yes... this mod doesn't cache anything in the database, so the database size won't increase due to more and more topics/boards... there are lots of people that seem to have problems with Pretty Urls and getting 404's and have to disable something or another in the mod to get it to work, this mod makes zero code changes to SMF to work (on SMF 2) so it won't interfere with upgrades, this mod supports rewriting actions (so instead of action=register, it could be changed to action=signup, or this is useful for foreign language boards that might want to use names for actions in their own language, which would normally require editing SMF's sources) and ignoring actions when rewriting.
I've used both Pretty URLs and Simple SEF.
Liking the Simple SEF better.
Less modifications to files and less issues.
Quote from: SlammedDime on April 09, 2011, 04:20:44 PM
wicked - it's *possible* that SimpleSEF is needing to use too much memory to load up all of the URL's in the sitemap... try decreasing the number of topics to display in the xml sitemap in the Sitemap settings.
It's need not to mutch memory, the execution time is to long if you have many topics...
I have made a small modification in the Sitemap extension, to call the SEF engine directly. The execution time is faster and this save (caching) also the converted urls.
Yea, fel, I thought of doing that, I hadn't had the time to test it out though.
This I have changed in the extension for XML sitemap for our SEF engine ...
function BoardsXML()
{
global $modSettings, $scripturl, $boardurl;
// Get our information from the database
if (($boards = cache_get_data('xml_boards', $modSettings['sitemap_cache_ttl'])) == null)
{
$temp_boards = list_getBoards(0, 0, 'm.poster_time DESC');
// SEF engine loaded?
if(function_exists('getBoardName'))
{
$xmlurl = $boardurl;
$urlFunc = create_function('$id, $url', 'return $url ."/". getBoardName($id .".0");');
}
else
{
$xmlurl = $scripturl;
$urlFunc = create_function('$id, $url', 'return fix_possible_url($url ."?board=". $id ."0");');
}
// And assign it to an array
$boards = array();
foreach ($temp_boards as $row)
{
$boards[] = array(
'url' => $urlFunc($row['id_board'], $xmlurl),
'time' => date_iso8601($row['poster_time']),
'priority' => priority($row['poster_time']),
);
}
cache_put_data('xml_boards', $boards, $modSettings['sitemap_cache_ttl']);
}
return $boards;
}
function TopicsXML()
{
global $modSettings, $scripturl, $boardurl;
if (($topics = cache_get_data('xml_topics', $modSettings['sitemap_cache_ttl'])) == null)
{
$temp_topics = list_getTopics(0, $modSettings['sitemap_topic_count'], 'm.poster_time DESC');
// SEF engine loaded?
if(function_exists('getTopicName'))
{
$xmlurl = $boardurl;
$urlFunc = create_function('$id, $url', 'return $url ."/". getTopicName($id);');
}
else
{
$xmlurl = $scripturl;
$urlFunc = create_function('$id, $url', 'return fix_possible_url($url ."?topic=". $id ."0");');
}
// Assign it to the array
$topics = array();
foreach ($temp_topics as $row)
{
$topics[] = array(
'url' => $urlFunc($row['id_topic'], $xmlurl),
'time' => date_iso8601($row['poster_time']),
'priority' => priority($row['poster_time']),
'changefreq' => changefreq($row['first_time'], $row['num_replies']),
);
}
cache_put_data('xml_topics', $topics, $modSettings['sitemap_cache_ttl']);
}
return $topics;
}
Fel
hi
it's compatible with 2.rc3 ?
thx
Version 2.0 is not, only version 1.1.1.
Quote from: SlammedDime on April 11, 2011, 04:02:09 PM
Version 2.0 is not, only version 1.1.1.
Now I'm a bit confused O_o
I run SimpleSEF 2.0 on SMF2.rc.5 without any problems.
Do you mean it does not work together with the XML sitemap extension? or... ?
Am' asked if the mod was compatible with 2.0 RC3, I replied that version SimpleSEF 2.0 is not, only version SimpleSEF 1.1.1 is.
Just curious... how does the fact that the 2.0 version of this requiring PHP 5 mod square with the Cust team rules that mods must support all the versions that SMF does (like PHP 4.3)?
There is a PHP 4 compatible version still available for download.
Also, the cust team has been allowing mods that don't specifically meet SMF's requirements (like mods that only support MySQL), so long as it's clearly stated on the mod's download page.
Ahhhhh, I see. (Just that's not in the guidelines)
Was just curious as I was looking through SSEF this morning for some compatibility code with the stuff in the next version of SimpleDesk. (As it happens, that will have to require PHP 4.3.0 now)
Quote from: Arantor on April 20, 2011, 10:47:30 AM
Was just curious as I was looking through SSEF this morning for some compatibility code with the stuff in the next version of SimpleDesk. (As it happens, that will have to require PHP 4.3.0 now)
Because PoraMx have his own SEF engine (SSEF fork) it's interesting to test that with SimpleDesk.
Is a beta/dev version available for this test?
QuoteIs a beta/dev version available for this test?
There will be in a few hours when the midnight GMT build runs, as you're still a beta tester there IIRC?
If you use the same basic process as SSEF I suspect it'll work alright but I really don't plan to spend too much time on it, 3 hours perfecting the regular expression this morning was enough, thanks.
Quote from: Arantor on April 20, 2011, 02:38:35 PM
There will be in a few hours when the midnight GMT build runs, as you're still a beta tester there IIRC?
Yes .. thanks, I will test this next days with PortaMx ...
PortaMX's SEF engine was based on SimpleSEF 1.1, not 2.0, so it may not work depending on what you were doing with it Pete.
Quote from: SlammedDime on March 08, 2010, 03:49:04 PM
fel - the captcha image issue has been fixed in the new package for a while now... SimpleDesk's Team found and reported that a couple weeks ago. I'm going through this topic to make sure I got all known bugs and hoping to make a release today.
doesnt seems to be fixed i got this problem with captcha if i turn SimpleSEF on
and if i turn off all work fine.
so how can i fix it ?
Quote from: pzyhô on April 28, 2011, 01:37:56 PM
Quote from: SlammedDime on March 08, 2010, 03:49:04 PM
fel - the captcha image issue has been fixed in the new package for a while now... SimpleDesk's Team found and reported that a couple weeks ago. I'm going through this topic to make sure I got all known bugs and hoping to make a release today.
doesnt seems to be fixed i got this problem with captcha if i turn SimpleSEF on
and if i turn off all work fine.
so how can i fix it ?
Quote from: SlammedDime on March 08, 2010, 03:49:04 PM
fel - the captcha image issue has been fixed in the new package for a while now... SimpleDesk's Team found and reported that a couple weeks ago. I'm going through this topic to make sure I got all known bugs and hoping to make a release today.
As in, install the new package.
Um, note the day - one year ago.
This is almost certainly a slightly different bug to the one we reported a year ago.
Quote from: Arantor on April 28, 2011, 01:40:36 PM
Um, note the day - one year ago.
This is almost certainly a slightly different bug to the one we reported a year ago.
So? Question was today. And the user said "this problem", pointing at what SD said.
It's not the same problem, it is actually a different one.
Quote from: Arantor on April 28, 2011, 01:47:54 PM
It's not the same problem, it is actually a different one.
Quote from: Yoshi2889 on April 28, 2011, 01:46:56 PM
Quote from: Arantor on April 28, 2011, 01:40:36 PM
Um, note the day - one year ago.
This is almost certainly a slightly different bug to the one we reported a year ago.
the user said "this problem", pointing at what SD said.
And, again I must repeat myself.
It is a DIFFERENT PROBLEM. They have similar symptoms but the cause is different because they're different things entirely. The code is different to that of a year ago!
Quote from: Arantor on April 28, 2011, 01:49:51 PM
And, again I must repeat myself.
It is a DIFFERENT PROBLEM. They have similar symptoms but the cause is different because they're different things entirely. The code is different to that of a year ago!
*sighs* I must repeat myself too. You cannot read minds and so can't I.
Quote from: pzyhô on April 28, 2011, 01:37:56 PM
Quote from: SlammedDime on March 08, 2010, 03:49:04 PM
fel - the captcha image issue has been fixed in the new package for a while now... SimpleDesk's Team found and reported that a couple weeks ago. I'm going through this topic to make sure I got all known bugs and hoping to make a release today.
doesnt seems to be fixed i got this problem with captcha if i turn SimpleSEF on
and if i turn off all work fine.
so how can i fix it ?
What version of SimpleSEF are you using?
What version of SMF?
Mods installed?
I use following things:
SimpleSEF 2.0
SMF 2.0 Rc5
and the Following mods:
-Custom Action Mod
-Tidy Child Boards
-Forum Firewall
Are you using the default theme? If not, does it work on the default theme?
Quote from: SlammedDime on April 28, 2011, 02:02:15 PM
Are you using the default theme? If not, does it work on the default theme?
i use BacknBlack from crip but i tested it with all Themes even Default and got the Same problem
The problem is not with this mod, it's an issue with the BacknBlack theme from Crip... there are two extra line breaks at the top of index.template.php which cause the image not to show. When I remove the extra lines, the Captcha image shows fine for me in both the Default them and BacknBlack themes.
Even with the URL being damaged as per http://www.simplemachines.org/community/index.php?topic=431945.msg3028892#msg3028892 ?
@Slammed It also Shows when you click "Request another image" ? if so please tell me the code where i can fix that :)
Ah... that part is indeed broken. Quick fix for you though...
Open Sources/SimpleSEF.php
// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'/$d\',' => '_%1$d/\',', // Page index for MessageIndex
'/rand,' => '/rand=', // Verification Image
'%1.html$d\',' => '%1$d.html\',', // Page index on MessageIndex for topics
$boardurl . '/topic/' => $scripturl . '?topic=', // Also for above
'%1_%1$d/\',' => '%1$d/\',', // Page index on Members listing
'var smf_scripturl = "' . $boardurl . '/' => 'var smf_scripturl = "' . $scripturl,
);
// Gotta fix up some javascript laying around in the templates
$extra_replacements = array(
'/$d\'.' => '_%1$d/\'.', // Page index for MessageIndex
'/rand.' => '/rand=', // Verification Image
'%1.html$d\',' => '%1$d.html\',', // Page index on MessageIndex for topics
$boardurl . '/topic/' => $scripturl . '?topic=', // Also for above
'%1_%1$d/\'.' => '%1$d/\'.', // Page index on Members listing
'var smf_scripturl = "' . $boardurl . '/' => 'var smf_scripturl = "' . $scripturl,
);
Thank you very very much :) now it work all fine
Uhm just a info
yesterday i did file_chech.php on my forum and i saw that 90% off the php files in "Sources\SimpleSEF-Db" are not ending with ?>
i fixxed that for myself :)
PHP files are not required to end with ?> if they contain only PHP code.
Ok, but it show all as "error" if you do the file_check.php and its confusing if there so much errors :)
But thanks for helping
file_check.php was meant for checking SMF's files only (I know, I created it). It isn't to be used as a 'fix it' tool, but as an analysis tool by someone who knows how to interpret the results and act accordingly on them.
Hi, I use simplesef 2.0 and smf 1.1.13. I have installed it but added the code to the htaccess, when I try to enable the mod it redirect me to the basic functionally and if I back to simplesef tab it is not enabled. Some ideas to solve the problem? Thanks
Hi mrday, does your host let you have .htaccess files ? can you attach your .htaccess file here to check it
If it's not enabling then the .htaccess doesn't have the correct information in it. posting the contents of your .htaccess file will help.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
DirectoryIndex home.php
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: May 11, 2011, 2:04
RewriteEngine on
RewriteBase /
# Rules for: actions
RewriteRule ^(activate|admin|articles|articles|announce|ban|boardrecount|buddy)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(calendar|cleanperms|collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(display|dlattach|dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(forumfirewall|help|helpadmin|im|jsoption|jsmodify|lock|lockVoting)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(login|login2|logout|maintain|manageattachments|manageboards|managecalendar|managesearch)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(markasread|membergroups|mergetopics|mlist|modifycat|modifykarma|modlog|movetopic)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(movetopic2|news|notify|notifyboard|optimizetables|packageget|packages|permissions)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(pgdownload|pm|post|post2|postsettings|printpage|profile|profile2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quotefast|quickmod|quickmod2|recent|regcenter|register|register2|reminder)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removetopic2|removeoldtopics2|removepoll|repairboards|reporttm|reports|requestmembers|search)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(search2|sendtopic|serversettings|serversettings2|smileys|smstats|spellcheck|splittopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(stats|sticky|theme|admod|trackip|about:mozilla|about:unknown|unread)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(unreadreplies|viewErrorLog|viewers|viewmembers|viewprofile|verificationcode|vote|viewquery)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(who|\.xml)/?$ ./index.php?pretty;action=$1 [L,QSA]
# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]
# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]
# PRETTYURLS MOD ENDS
#Options +FollowSymLinks
#RewriteEngine On
#RewriteRule ^page-([0-9]+)/[A-Z0-9_-]+\.php$ /home.php?page=$1 [NC,L]
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
#RewriteRule ^users/(\d+)*$ ./profile.php?id=$1
#RewriteRule ^threads/(\d+)*$ ./thread.php?id=$1
RewriteRule ^page/(.*)$ ./home.php?page=$1
Yes my host let me use .htaccess.
I also tryed to left in htaccess only the rows of simplesef, but nothing.
I can't unistall pretty url cause I installed it when I was in another server and now it's not showed like installed.I also can't repair it cause I don't know how to edit the field of the settings table regarding the mod.
Now I was hoping to use simplesef instead of pretty url but I can't make it work.
Thanks
That's not the right contents for SimpleSEF in the .htaccess file. And editing the database manually is a sure way to take your forum down. There is a reason why the security is in place to not enable the mod if .htaccess is not correct.
First off, remove all of the stuff from Pretty URLs from your .htaccess
The SimpleSEF section should look like:
RewriteEngine On
# Uncomment the following line if its not working right
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Although I don't know what home.php is or what it does on your site, but because of the Rewrite stuff I see there for it, SimpleSEF may not work for you.
I tryed using
RewriteEngine On
# Uncomment the following line if its not working right
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
and then
RewriteEngine On
# Uncomment the following line if its not working right
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
but nothing..
I don't use portals, I only have another page(home.php) to load the other pages of my site,
Thanks
Can you define 'nothing'? Exactly what happens? Any 404's? Does it just load the main forum page?
Exactly nothing, when i check "enable simplesef" it redirect me and if I back to the simplesef tab "enable simplesef" is unchecked. When i check the enable option it's like I do nothing: I can use the forum like before, with no error and with no simplesef mod...
Thanks
Do you have your forum in a separate directory, like /forum or anything like that? Do you have a link to your actual site?
Links are on my sign and, here, back the world icon on the left(like your).
And no, index.php is exactly where htaccess is.
Thanks
I solved by reinstalling the mod manually.
Now I have some problems:
- http://www.wikieasy.it/index.php?topic=202.0 --> http://www.wikieasy.it/caffe/human_take_control_sospeso_il_reality_chiude_i_battenti_202.0.html
- http://www.wikieasy.it/articles/ --> access denied
- wikieasy.it --> http://www.wikieasy.it/wwwRedirect,/WIRELESS_PROTOCOL,/
What is the problem with the first one?
For the the second one, Chrome shows me that it's trying to redirect to http://www.wikieasy.it/articles/?pretty;action=articles... which means you still have some reminents of Pretty URLs installed. At this point, I don't know there is anything I can do to help you until you have completely removed Pretty URLs from your forum, as they operate in two totally different manners.
For the third one - I just get a HTTP 500 error when trying to even access anything on your page, however if you're board url has a 'www' in it and you navigate to the site without the 'www' in the URL, SMF will redirect you.
If the first it's a normal way to rewrite the url ok, i thought that the number of the post shouldn't be displayed.
I just removed all, I think, the pretty url mod manually (except the values in the db). If you think the problem is surely due to that mod I will recheck if some code of prettyurl is left on some page and i will try to delete tables and values in the db but actually the real url of the articles page is: http://www.wikieasy.it/index.php?action=articles and the result is the same:access denied.
Recently(around 2 hours ago) I got some problem cause of deleting prettyurl manually, now you should reach every pages.
Thanks
If you have an articles system, and there is a folder named 'articles', you won't be able to browse to the ?action=articles, as real files and directories take precendence over SMF urls. You'll need to rename your 'articles' folder and anything that points to that folder appropriately. SimpleSEF for SMF 2.0 allows the renaming of actions which makes this much easier, but that functionality won't be back-ported to the SMF 1.1.x line.
I can access to this url http://www.wikieasy.it/index.php?action=articles;cat=1 or this http://www.wikieasy.it/index.php?action=articles;sa=view;article=181 .
I have the articles mod, if I edit that name folder I really don't know what files modify to make articles mod working.
There are a way, instead of renaming action, to exlude the renaming of an action? Beause, anyway , the url is similar and don't show the name of the article. Thanks
There isn't anyway to exclude renaming of actions for the SMF 1.1.x version; that too is only available in the SMF 2.0 version.
So what do you think I can do to make it works?
Thanks
You'd have to go to the author of the articles module and see how you could either rename the folder or rename the action.
Ah, I already tryed to post there once and they have avoided me like if I had never posted. Thanks for your help, I will solve it myself, again ;)
Edit:
Solved by changing the names of the action in the array in index.template.php(function template menu), in the link button(same file) and in the actionarray of index.php. I can access articles section with the simplesef. For what I think, this simple edit I did to change an action, shoud be not asked in a mod section.
Another thing, if I set the "home.php" like default page and I try access index.php the mod redirect me to home.php, how can I avoid this? I would like to left home.php like default page. Thanks
Like I said earlier, because of the way you have home.php set to work, SimpleSEF might not work properly, because it gets rid of the index.php file, which relys on the default document in apache to be index.php. You've overrode that.
It's possible to transform this
"http://www.wikieasy.it/articoli/sa,view/article,162/"
intto this
"http://www.wikieasy.it/articoli/sa,view/articlename/"
and this
"http://www.wikieasy.it/news_comunicazioni_dal_forum/aperti_7.0.html"
into this
"http://www.wikieasy.it/news_comunicazioni_dal_forum/aperti.html" ?
Thanks
For the first: it's *possible*, but not natively. I have coded in provisions to allow other mod authors to hook into SimpleSEF and create custom URL's for their mods/actions: http://www.mattzuba.com/2010/10/custom-action-handling-with-smf-and-simplesef/
I don't personally have the time right now to code up something for the articles mod, but feel free to point it's author at that link and see if they'd be willing to code up an extension for it.
For the second: Absolutely not. This is just part of how the mod works and why it is able to keep the number of database queries to a minimum. Keeping the ID's in the topics and user names is required for the mod to work properly.
This(http://www.mattzuba.com/2010/10/custom-action-handling-with-smf-and-simplesef/) is a complete version? If not can i see a real example of a plugin already realized? Because I can't understand well from that example. Thanks
That is a working example, albeit a simplistic one.
Should I add an array like this:
$url_param array(
'sa' => ('all', 'the', action')
'cat' => ('all','the','category','name'),
'article' => ('all','the','articles','name'),
);
?
No, the array that is passed to the 'create' function contains the parts of the URL... it is your job to interpret those parts and make sense of them. I don't know of your PHP skills, but if you're not familiar with it all that much, this will likely be pretty complicated for you to do. If you are pretty familiar with PHP, use some var_dumps to see what is coming into the functions to see how to transform them as needed.
I can do something with php.
So i also need some query to retrieve information about, for example, the name of the category by it's number? and same for the name of the article? right?
What the second function do? It rebuild the original url?
Thanks
Quote from: mrday on May 12, 2011, 03:35:50 PM
I can do something with php.
So i also need some query to retrieve information about, for example, the name of the category by it's number? and same for the name of the article? right?
What the second function do? It rebuild the original url?
Thanks
The query:
$query = $smcFunc['db_query']('SELECT * FROM {db_prefix}boards WHERE id_board=1');
while ($boardinfo = $smcFunc['db_fetch_assoc'])
{
echo $boardinfo['name'];
}
is PHP code to gather the board info where the ID is 1.
This also displays the name.
Thank you for the hint Yoshi.
I think i made the firt function but now i need to know how the second function work. Thanks
Hey SD, any news for PrettyUrls converter?
This is my ssef_articles plug in, alpha version (I have tested it on 1.1.13), you can try it with no problems because you can easily remove the php file if it don't work. Important, before to install simplesef mod and before to place the file ssef_articoli.php in the /Sources/SimpleSEF-Ext directory, remember to rename the action=articles in action=articoli everywhere. Since i'm not a mods author, since many url in for the action=articles are not visible by google and since I have some problems with simplesef, I organized the plugin to work only when you are watching a category or an article, the rest of the urls for the action=articoli will be "simplesefed" in the classic way.
Urls will be rewrited like:
http://yourdomain/index.php/articoli;cat=11 -> http://yourdomain/articoli/categoryname.cat11/
http://yourdomain/index.php?action=articoli;sa=view;article=138 -> http://yourdomain/articoli/categoryname/articlename.art138.html
Every person, included simplesef author, is free to improve, modify delete my name or whatever he want from this code, I'm not interested in a recognition, I did this plugin just because I need it and once done it makes no senso to don't share it.
* IMPORTANT---------------------------------------------BEFORE TO INSTALL-------------------------------------------------InSTRUCTIONS
* For first, before to apply this mod, like you can see on what action it works, you have to edit Articles.Template.php(themes),
* Articles.php(sources), who.english.php(languages), index.php(board), index.template(themes) and subs.php(sources) by sobstituting all
* the "action=articles" with "action=articoli" , else simplesef will point at the folder(with the url "index.php/articles") of the
* articles mod and users will get an access denied.
* ----------------------------------------------------------------------------------------------------------------------------------------------------------*
When I click "enable simplesef" and then click "save", it refreshes the page and the box i checked remains unchecked... doesn't do anything to the URL's either. SMF 2.0RC5... Is there something you know of that might be conflicting with this? I did originally have SMF's built-in SEF URLs enabled but I've tested the mod with that setting both enabled and disabled but I'm getting the same result... Would be nice to know how to fix :)
Please see the FAQ in the very first post and also please see the help text in the SimpleSEF settings page.
Heyho whats this error message mean ?
Got this on a lot of pages maybe on all.
smf version: 2.0 rc5
8: Uninitialized string offset: 5
Datei: /htdocs/forum/Sources/SimpleSEF.php
Zeile: 1299
8: Uninitialized string offset: 6
Datei: /htdocs/forum/Sources/SimpleSEF.php
Zeile: 1300
8: Uninitialized string offset: 7
Datei: /htdocs/forum/Sources/SimpleSEF.php
Zeile: 1301
Thanks in advance
pzyhô
That means that an invalid UTF8 character was passed to the encode function. What language is your forum?
German Language
I installed Simple SEF and love it. Great mod, easy to install, works like a charm. :)
I've found one problem that I'm looking for some assistance with: When it's installed along with the Avatar Verification (http://custom.simplemachines.org/mods/index.php?mod=2182) package, the avatar that the user is supposed to match against doesn't appear.
The avatar image link is normally like this:
<img src="http://mydomain.com/index.php?action=verificationsimages&avatar=Icons/Audio.png&type=1" alt="">
(The actual name of the PNG file varies, of course.)
With Simple SEF activated, the avatar link is transformed into this:
<img src="http://mydomain.com/verificationsimages/avatar,Icons/Audio.png/type,1/" alt="">
I'm guessing that I need to add something in the "Actions" section at the bottom of the Simple SEF options page, but I don't know what to add. (Or maybe I need to remove something?)
I'm using SMF 1.1.13 with the "nly-grey (http://custom.simplemachines.org/themes/index.php?lemma=1846)" theme. I have some other packages installed but they don't seem to be part of the issue. Turning Simple SEF off makes the Avatar Verification work normally.
How can I resolve this?
Unfortunately there is no easy way to resolve this. The proper way would be for the author of Avatar Verification to url_encode the 'avatar' parameter, as it should be since '/' is being used as part of the request, not a directory separator.
In the version of SimpleSEF for SMF 2.0, you could just add 'verificationsimages' to the ignore list, but that feature is not present in the SMF 1.1.13 version.
Edit: Ignore my previous "fix". It's not 100%, and I'm still working on it.
Hi, I have a simple question.
Where can I enable SimpleSEF? I tried to go to Modification Settings in AdminCP but couldn't find it :)
Thanks.
If you're on SMF 1.1.x, it's in Feature Settings. If you're on SMF 2.0, it has it's own settings under the 'Configuration' menu.
Gosh, it was because I forgot to rename the file Sources/SimpleSEF_2.0.php into SimpleSEF.php...
But now I got another problem, when I click on a certain board/forum, it redirects me to the same place which is homepage. Is that something wrong with .htaccess? I've cleared the file cache already.
RewriteEngine On
# Uncomment the following line if it's not working right
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
You can see here: vnsp-community.net
Does it work with Greek extended (polytonic)? Is there a test forum I could experiment?
spiros - I don't know, I'm not familiar with the characters. I would just setup your own test board and install the mod and test it out.
BeingSimplest - Is there any particular reason you installed it manually instead of through the package manager? Have you made sure all files are in their proper spot?
@SlammedDime: Did I install it manually? I'm confused, these are my steps:
1) Upload all files/folders onto the right spots
2) Create folder Sources/SimpleSEF-Ext/
3) Since in the installing package, the file Sources/SimpleSEF.php is actually named SimpleSEF_2.0.php, I had to rename it. If I don't rename, its setting won't exist in ACP.
4) Run add_settings.php
Is that all? Check out to see how it occurs: vnsp-community.net
I guess this is a problem with htaccess.
Are you familiar with SMF's package manager? It automatically installs packages for you through your admin interface. It is by far the preferred method of installing mods.
It looks like topics and users work fine, it's just boards having a problem. Can you disable the 'Simple' setting and see if that allows boards to work?
I've just been familiar with SMF so haven't heard of SMF's package manager. But yes, due to what I read this is way better. Let's reinstall and see how it works then (:
It's interesting that we can install mod in a few clicks :D I've removed all the uploaded files and installed using package installer.
However, the same problem occurs. Just like what you said, user's page can still be accessed but boards can't be. I tried to disable the mod and everything worked well as ordinary. It's strange isn't it (:
It looks like you have 'Simple URLs' enabled in the SimpleSEF settings. Can you disable that and allow SimpleSEF to create content rich URLs and see if that works? It may be a bug in SimpleSEF.
That works (: It should be a bug in SimpleSEF, I'll try looking to see if I can fix that myself.
Have just donated for you, good mod, good effort.
Another suggestion, when viewing user profile, the URL is rewritten something like /username_id/, do you think it's more SEF if we have /username/ only? Similarly, topic URL is like /topicname_id.html, is it better with /topicname.html only?
Doing that would increase the complexity of the mod as well as the overhead of the forum. Keeping the ID in the url prevents having to do additional database lookups on each request. It's no more or less SEF than having the URL without it.
It has a problem with Vietnamese language (http://en.wikipedia.org/wiki/Vietnamese_language) encoding. For example:
Việc làm -> vic_lam (should be viec_lam).
Please have a check (: We use UTF-8
Anyone?
I would need to check the encoding in the dictionary of SimpleSEF and make the change. I don't have time at the moment to plug the character in to find out which file it's in and make the change, but I'll add it to my todo list.
I tried to install this on SMF 2.0 and got this message:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Is there an update available or a trick to get it to be recognized as valid?
Emulate the version to SMF 2.0 RC5.
Quote from: Yağız... on May 14, 2011, 05:20:15 PM
Hey SD, any news for PrettyUrls converter?
What's the answer? Thanks
I installed Simple SEF and had a variety of issues I thought I'd report.
-----------------------------
When Simple SEF is enabled and I send a PM, I get a 500 error, and this path is shown in the error:
/forum/pm/f.inbox/l.-1/done.sent/
Additional info: I had to use the Simple SEF controls to exclude some actions to make the Avatar Verification mod work, I don't know if this has any bearing on it. I excluded (ignored) the following actions: admin, register, register2, verification code, verificationsimages, verifyimage.
-----------------------------
When accessing the Admin link, if it's from within a page or message the additional path info makes it so you can't get to the Admin section. If you go back to the main board listing page and click the admin link you're able to get to the Admin section.
-----------------------------
Also, I installed the SMF Archive package (SMF Archive, http://www.smfhacks.com (http://www.smfhacks.com) By:vbgamer45), and when accessing the archive page (archive2.php) it generates the following errors and warnings:
Notice: Undefined index: admin in /var/www/virtual/<MY DOMAIN>/htdocs/forum/Sources/SimpleSEF.php on line 417
Warning: Invalid argument supplied for foreach() in /var/www/virtual/<MY DOMAIN>/htdocs/forum/Sources/SimpleSEF.php on line 417
Notice: Undefined index: admin in /var/www/virtual/<MY DOMAIN>/htdocs/forum/Sources/SimpleSEF.php on line 422
Warning: array_slice() expects parameter 1 to be array, null given in /var/www/virtual/<MY DOMAIN>/htdocs/forum/Sources/SimpleSEF.php on line 422
Notice: Undefined index: admin in /var/www/virtual/<MY DOMAIN>/htdocs/forum/Sources/SimpleSEF.php on line 430
Warning: array_slice() expects parameter 1 to be array, null given in /var/www/virtual/<MY DOMAIN>/htdocs/forum/Sources/SimpleSEF.php on line 430
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /var/www/virtual/<MY DOMAIN>/htdocs/forum/Sources/SimpleSEF.php on line 431
Warning: array_merge() [function.array-merge]: Argument #3 is not an array in /var/www/virtual/<MY DOMAIN>/htdocs/forum/Sources/SimpleSEF.php on line 431
-----------------------------
EDIT: I think this may be resolved...setting the Emulation Mode to SMF 2.0 RC5 allowed us to uninstall it.
Is it safe to remove the "Sources/SimpleSEF-Ext" directory? It appears to be empty.
We're trying to resolve a problem with Simple SEF caused by operator error. :( We had disabled Simple SEF because of conflicts with other packages and path issues. One of my moderators mistakenly deleted the Simple SEF package before uninstalling it. Now we're stuck..we can't uninstall it, and we can't reinstall it either.
When we try to upload it and install it we get this error:
This package is already installed, and no upgrade was found
That makes sense. However, we can't uninstall it no matter what we do. When we try to uninstall, we get this message:
This package cannot be uninstalled, because there is no uninstaller!
The package file is there in the Packages directory (SimpleSEF_2-0.tar.gz) and there appears to be a backup file in the /Packages/backups directory, named "2011-06-18_before_SimpleSEF_2-0.tar.gz".
So, our question is...How can we remove Simple SEF completely so we can start over with it? Or, how can we perform an uninstall of it?
please for PrettyUrls converter. pretty urls ==> simple sef
Quote from: SlammedDime on June 17, 2011, 12:42:19 PM
I would need to check the encoding in the dictionary of SimpleSEF and make the change. I don't have time at the moment to plug the character in to find out which file it's in and make the change, but I'll add it to my todo list.
Thanks for that. I've been waiting.
Because my forum needs to be up and running in 2 weeks time. If you're busy you can tell me how the encoding scheme constructs, I can edit it myself (:
Does is work with SMF 2 Final? The parser gives an error.
It should work fine. Did you tried to emulate the version?
I don't know why it would give an error, it doesn't modify any SMF files, so it has nothing to error on.
SlammedDime,
The new 2.0 version works fairly well. Came across a few issues so far.
- Any board named after a action can no longer be accessed. Reproducing I have a board named "Admin". Clicking that board takes me to the admin panel instead of that board.
- My rewrite rule was "RewriteRule (.*)$ index.php". Which while this would of worked, SimpleSEF wouldn't reenable and wouldn't give me any hint as to why it wouldn't. Should make a error notice as too why.
- Additionally, I couldn't get the rewrite to work until I changed the last part of the rewrite to include ?q=$1 (as per new code it appears). Otherwise it wouldn't work. Your code to disable SimpleSEF should also check that or should work without it (not sure but it appears your code still wants to make it work?).
Since there isn't any changes to core smf files, can we just upload this mod to the server and then activate it through admin panel?
And why is so hard to make it compatibile with smf 2.0 gold and put it for download?
I try to emulate and i got nothing and after upload all necessary files, there isn't option for simplesef in admin panel ...
I try to edit package.info to make it possibile to install through admin panel but i get this error when trying to installl
Fatal error: require() [function.require]: Failed opening required '/home/farmaceu/public_html/forum/Packages/temp/SimpleSEF_2-0/add_settings.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/farmaceu/public_html/forum/Sources/Packages.php on line 938
It's more than just uploading the files and calling it a day. add_settings.php adds important information to the database that allows SimpleSEF to run and be recognized by SMF.
The error your getting is through no fault of this mod, but is due to your server setup. Either your packages directory isn't writeable by the server, or a temp folder wasn't created, or the package wasn't extracted properly. You can manually extract add_settings.php to your root SMF folder and manually navigate to it in your browser and that will add the necessary settings.
And it's not hard to make compatible with 2.0 gold (it already is, it just won't install by default without emulation because I haven't updated the package due to lack of time). Another thing I don't get, or maybe people on this forum just don't understand the purpose of open source software yet... the project is on bitbucket, anyone can fork it, make changes, and submit pull requests. It's not rocket science and improves community involvement.
Sleepy - The two last issues you had aren't too much of an issue at this point, as most people are on the latest version (I hope, anyway). I'll try and make some provisions or warnings that the .htaccess might not contain the correct information like how I am doing with the Wordpress Bridge. As for the first one, should be somewhat simple to correct, but probably only for the admin action or other ignored actions. The mod first checks actions, before moving on to checking boards and topics. Unfortunately it's a small limitation, but one that shouldn't come up to often.
Quote from: SlammedDime on June 27, 2011, 11:31:26 AM
The error your getting is through no fault of this mod, but is due to your server setup. Either your packages directory isn't writeable by the server, or a temp folder wasn't created, or the package wasn't extracted properly.
I set 777 to temp folder and then i get this error:
Fatal error: Class 'SimpleSEF' not found in /home/farmaceu/public_html/forum/Packages/temp/SimpleSEF_2-0/$auto_0.php on line 4
Quote
You can manually extract add_settings.php to your root SMF folder and manually navigate to it in your browser and that will add the necessary settings.
Error:
An Error Has Occurred!
This isn't really an error, just a message telling you that the settings have been entered into the database!
Strange thing. I tried on SMF2 Final with RC5 emulation and I had to click the check box many times to enable it (the page would refresh showing the box unchecked!). Then, although it created perfectly fine URLs it opened the home page of the main site. I.e. the forum is here:
www.nonsmokersclub.com/forum/index.php
but no matter which board or topic I clicked, it would open this page:
www.nonsmokersclub.com
This is the htaccess I used in forum folder (I tried unocommenting the 3rd line):
RewriteEngine On
# Uncomment the following line if its not working right
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
#Simple .htaccess Bot Blocker Mod
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} ADSARobot|ah-ha|almaden|aktuelles|Anarchie|amzn_assoc|ASPSeek|ASSORT|ATHENS|Atomz|attach|attache|autoemailspider|BackWeb|Bandit|BatchFTP|bdfetch|big.brother|BlackWidow|bmclient|Boston\ Project|BravoBrian\ SpiderEngine\ MarcoPolo|Bot\ mailto:[email protected]|Buddy|Bullseye|bumblebee|capture|CherryPicker|ChinaClaw|CICC|clipping|Collector|Copier|Crescent|Crescent\ Internet\ ToolPak|Custo|cyberalert|DA$|Deweb|diagem|Digger|Digimarc|DIIbot|DISCo|DISCo\ Pump|DISCoFinder|Download\ Demon|Download\ Wonder|Downloader|Drip|DSurf15a|DTS.Agent|EasyDL|eCatch|ecollector|efp@gmx\.net|Email\ Extractor|EirGrabber|email|EmailCollector|EmailSiphon|EmailWolf|Express\ WebPictures|ExtractorPro|EyeNetIE|FavOrg|fastlwspider|Favorites\ Sweeper|Fetch|FEZhead|FileHound|FlashGet\ WebWasher|FlickBot|fluffy|FrontPage|GalaxyBot|Generic|Getleft|GetRight|GetSmart|GetWeb!|GetWebPage|gigabaz|Girafabot|Go\!Zilla|Go!Zilla|Go-Ahead-Got-It|GornKer|gotit|Grabber|GrabNet|Grafula|Green\ Research|grub-client|Harvest|hhjhj@yahoo|hloader|HMView|HomePageSearch|http\ generic|HTTrack|httpdown|httrack|ia_archiver|IBM_Planetwide|Image\ Stripper|Image\ Sucker|imagefetch|IncyWincy|Indy*Library|Indy\ Library|informant|Ingelin|InterGET|Internet\ Ninja|InternetLinkagent|Internet\ Ninja|InternetSeer\.com|Iria|Irvine|JBH*agent|JetCar|JOC|JOC\ Web\ Spider|JustView|KWebGet|Lachesis|larbin|LeechFTP|LexiBot|lftp|libwww|likse|Link|Link*Sleuth|LINKS\ ARoMATIZED|LinkWalker|LWP|lwp-trivial|Mag-Net|Magnet|Mac\ Finder|Mag-Net|Mass\ Downloader|MCspider|Memo|Microsoft.URL|MIDown\ tool|Mirror|Missigua\ Locator|Mister\ PiX|MMMtoCrawl\/UrlDispatcherLLL|^Mozilla$|Mozilla.*Indy|Mozilla.*NEWT|Mozilla*MSIECrawler|MS\ FrontPage*|MSFrontPage|MSIECrawler|MSProxy|multithreaddb|nationaldirectory|Navroad|NearSite|NetAnts|NetCarta|NetMechanic|netprospector|NetResearchServer|NetSpider|Net\ Vampire|NetZIP|NetZip\ Downloader|NetZippy|NEWT|NICErsPRO|Ninja|NPBot|Octopus|Offline\ Explorer|Offline\ Navigator|OpaL|Openfind|OpenTextSiteCrawler|OrangeBot|PageGrabber|Papa\ Foto|PackRat|pavuk|pcBrowser|PersonaPilot|Ping|PingALink|Pockey|Proxy|psbot|PSurf|puf|Pump|PushSite|QRVA|RealDownload|Reaper|Recorder|ReGet|replacer|RepoMonkey|Robozilla|Rover|RPT-HTTPClient|Rsync|Scooter|SearchExpress|searchhippo|searchterms\.it|Second\ Street\ Research|Seeker|Shai|Siphon|sitecheck|sitecheck.internetseer.com|SiteSnagger|SlySearch|SmartDownload|snagger|Snake|SpaceBison|Spegla|SpiderBot|sproose|SqWorm|Stripper|Sucker|SuperBot|SuperHTTP|Surfbot|SurfWalker|Szukacz|tAkeOut|tarspider|Teleport\ Pro|Templeton|TrueRobot|TV33_Mercator|UIowaCrawler|UtilMind|URLSpiderPro|URL_Spider_Pro|Vacuum|vagabondo|vayala|visibilitygap|VoidEYE|vspider|Web\ Downloader|w3mir|Web\ Data\ Extractor|Web\ Image\ Collector|Web\ Sucker|Wweb|WebAuto|WebBandit|web\.by\.mail|Webclipping|webcollage|webcollector|WebCopier|webcraft@bea|webdevil|webdownloader|Webdup|WebEMailExtrac|WebFetch|WebGo\ IS|WebHook|Webinator|WebLeacher|WEBMASTERS|WebMiner|WebMirror|webmole|WebReaper|WebSauger|Website|Website\ eXtractor|Website\ Quester|WebSnake|Webster|WebStripper|websucker|webvac|webwalk|webweasel|WebWhacker|WebZIP|Wget|Whacker|whizbang|WhosTalking|Widow|WISEbot|WWWOFFLE|x-Tractor|^Xaldon\ WebSpider|WUMPUS|Xenu|XGET|Zeus.*Webster|Zeus [NC]
RewriteRule ^.* - [F,L]
</IfModule>
#Simple .htaccess Bot Blocker Mod
#Simple .htaccess Proxy Blocker Mod
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP:VIA} !^$ [OR]
RewriteCond %{HTTP:FORWARDED} !^$ [OR]
RewriteCond %{HTTP:USERAGENT_VIA} !^$ [OR]
RewriteCond %{HTTP:X_FORWARDED_FOR} !^$ [OR]
RewriteCond %{HTTP:PROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:XPROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR]
RewriteCond %{HTTP:HTTP_CLIENT_IP} !^$
RewriteRule ^(.*)$ - [F]
</IfModule>
#Simple .htaccess Proxy Blocker Mod
And this is public_html folder:
##
# @version $Id: htaccess.txt 5973 2006-12-11 01:26:33Z robs $
# @package Joomla
# @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##
#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
# Only use one of the two SEF sections that follow. Lines that can be uncommented
# (and thus used) have only one #. Lines with two #'s should not be uncommented
# In the section that you don't use, all lines should start with #
#
# For Standard SEF, use the standard SEF section. You can comment out
# all of the RewriteCond lines and reduce your server's load if you
# don't have directories in your root named 'component' or 'content'
#
# If you are using a 3rd Party SEF or the Core SEF solution
# uncomment all of the lines in the '3rd Party or Core SEF' section
#
#####################################################
##### SOLVING PROBLEMS WITH COMPONENT URL's that don't work #####
# SPECIAL NOTE FOR SMF USERS WHEN SMF IS INTEGRATED AND BRIDGED
# OR ANY SITUATION WHERE A COMPONENT's URL's AREN't WORKING
#
# In both the 'Standard SEF', and '3rd Party or Core SEF' sections the line:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# May need to be uncommented. If you are running your Joomla!/Mambo from
# a subdirectory the name of the subdirectory will need to be inserted into this
# line. For example, if your Joomla!/Mambo is in a subdirectory called '/test/',
# change this:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# to this:
# RewriteCond %{REQUEST_URI} ^(/test/component/option,com) [NC,OR] ##optional - see notes##
#
#####################################################
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
RewriteCond %{REQUEST_URI} ^(/component/option,com_jomcomment/task,trackback(.*)) [OR]
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla!/MamboDirectory (just / for root)
# RewriteBase /
########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteRule ^(content/|component/) index.php
#
########## End - Joomla! core SEF Section
########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule (.*) index.php
#
########## End - 3rd Party SEF Section
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 212.24.
deny from 83.212.140.105
deny from 89.210.171.142
deny from 213.186.122.2
I can install SimpleSEF absolutely fine on my local Windows/IIS box, but when I install it on my Linux/Apache VPS, some of the options from the Admin Configuration menu disappear as soon as the install finishes.
The following options disappear from the Configuration section:-
Security and Moderation
Languages
Server Settings
Current Theme
Themes and Layout
Modification Settings
If I try to access any of these options by typing in the correct URL (i.e. /forum/index.php?action=admin;area=serversettings; for Server Settings), it just takes me back to the main Administration Center page.
See attached screenshot - right is normal, left is what happens with SimpleSEF installed.
This is a completely clean install of SMF2.0 with the default theme and no mods.
Any ideas why that's happening?
Does the same problem happen if you use the horizontal menu, not the vertical menu?
Yes. With that menu, SimpleSEF is the last option on the Configuration drop-down. Everything that should be below it is missing.
What version of PHP are you on?
5.1.6 according to phpinfo.
In Sources/SimpleSEF.php
Replace the adminAreas() function with this below. If it still doesn't work, uncomment the two 'log_error' lines, try again, then check your error log and copy/paste the two debug calls.
public static function adminAreas(&$admin_areas)
{
global $txt, $modSettings;
// We insert it after Features and Options
$counter = 0;
foreach ($admin_areas['config']['areas'] as $area => $dummy)
if (++$counter && $area == 'featuresettings')
break;
$first_half = array_slice($admin_areas['config']['areas'], 0, $counter, TRUE);
$last_half = array_slice($admin_areas['config']['areas'], $counter, NULL, TRUE);
// Uncomment these two lines if it still doesn't work
//log_error(var_export($last_half, TRUE), 'debug');
//log_error(var_export($admin_areas['config']['areas'], TRUE), 'debug');
$admin_areas['config']['areas'] = array_merge(
$first_half,
array('simplesef' => array(
'label' => $txt['simplesef'],
'function' => create_function(NULL, 'SimpleSEF::ModifySimpleSEFSettings();'),
'icon' => 'search.gif',
'subsections' => array(
'basic' => array($txt['simplesef_basic']),
'advanced' => array($txt['simplesef_advanced'], 'enabled' => !empty($modSettings['simplesef_advanced'])),
'alias' => array($txt['simplesef_alias'], 'enabled' => !empty($modSettings['simplesef_advanced'])),
),
)),
$last_half
);
}
That didn't fix it unfortunately, so here's the result from the logs:
http://localhost/forum/index.php?action=admin
array (
)
http://localhost/forum/index.php?action=admin
array (
'corefeatures' =>
array (
'label' => 'Core Features',
'file' => 'ManageSettings.php',
'function' => 'ModifyCoreFeatures',
'icon' => 'corefeatures.gif',
),
'featuresettings' =>
array (
'label' => 'Features and Options',
'file' => 'ManageSettings.php',
'function' => 'ModifyFeatureSettings',
'icon' => 'features.gif',
'subsections' =>
array (
'basic' =>
array (
0 => 'General',
),
'layout' =>
array (
0 => 'Layout',
),
'karma' =>
array (
0 => 'Karma',
'enabled' => false,
),
'sig' =>
array (
0 => 'Signatures',
),
'profile' =>
array (
0 => 'Profile Fields',
'enabled' => true,
),
),
),
'securitysettings' =>
array (
'label' => 'Security and Moderation',
'file' => 'ManageSettings.php',
'function' => 'ModifySecuritySettings',
'icon' => 'security.gif',
'subsections' =>
array (
'general' =>
array (
0 => 'General',
),
'spam' =>
array (
0 => 'Anti-Spam',
),
'moderation' =>
array (
0 => 'Moderation',
'enabled' => false,
),
),
),
'languages' =>
array (
'label' => 'Languages',
'file' => 'ManageServer.php',
'function' => 'ManageLanguages',
'icon' => 'languages.gif',
'subsections' =>
array (
'edit' =>
array (
0 => 'Edit Languages',
),
'add' =>
array (
0 => 'Add Language',
),
'settings' =>
array (
0 => 'Settings',
),
),
),
'serversettings' =>
array (
'label' => 'Server Settings',
'file' => 'ManageServer.php',
'function' => 'ModifySettings',
'icon' => 'server.gif',
'subsections' =>
array (
'general' =>
array (
0 => 'General',
),
'database' =>
array (
0 => 'Database and Paths',
),
'cookie' =>
array (
0 => 'Cookies and Sessions',
),
'cache' =>
array (
0 => 'Caching',
),
'loads' =>
array (
0 => 'Load Balancing',
),
),
),
'current_theme' =>
array (
'label' => 'Current Theme',
'file' => 'Themes.php',
'function' => 'ThemesMain',
'custom_url' => 'http://localhost/forum/index.php?action=admin;area=theme;sa=settings;th=1',
'icon' => 'current_theme.gif',
),
'theme' =>
array (
'label' => 'Themes and Layout',
'file' => 'Themes.php',
'function' => 'ThemesMain',
'custom_url' => 'http://localhost/forum/index.php?action=admin;area=theme;sa=admin',
'icon' => 'themes.gif',
'subsections' =>
array (
'admin' =>
array (
0 => 'Manage and Install',
),
'list' =>
array (
0 => 'Theme Settings',
),
'reset' =>
array (
0 => 'Member Options',
),
'edit' =>
array (
0 => 'Modify Themes',
),
),
),
'modsettings' =>
array (
'label' => 'Modification Settings',
'file' => 'ManageSettings.php',
'function' => 'ModifyModSettings',
'icon' => 'modifications.gif',
'subsections' =>
array (
'general' =>
array (
0 => 'Miscellaneous',
),
),
),
)
Looks like it's a PHP bug when passing 'NULL' as the length parameter to array_slice. You can use the corrected function below which should solve the problem:
public static function adminAreas(&$admin_areas)
{
global $txt, $modSettings;
// We insert it after Features and Options
$counter = 0;
foreach ($admin_areas['config']['areas'] as $area => $dummy)
if (++$counter && $area == 'featuresettings')
break;
$admin_areas['config']['areas'] = array_merge(
array_slice($admin_areas['config']['areas'], 0, $counter, TRUE),
array('simplesef' => array(
'label' => $txt['simplesef'],
'function' => create_function(NULL, 'SimpleSEF::ModifySimpleSEFSettings();'),
'icon' => 'search.gif',
'subsections' => array(
'basic' => array($txt['simplesef_basic']),
'advanced' => array($txt['simplesef_advanced'], 'enabled' => !empty($modSettings['simplesef_advanced'])),
'alias' => array($txt['simplesef_alias'], 'enabled' => !empty($modSettings['simplesef_advanced'])),
),
)),
array_slice($admin_areas['config']['areas'], $counter, count($admin_areas['config']['areas']), TRUE)
);
}
That works now, thanks for your help.
Great, I'll make the change for the next package
Updated to version 2.1, compatible with SMF 2.0 Final now.
Is there any other changes in the package?
Bug fix from above, and a couple of fixes for some javascript code. Otherwise no others right now.
Ok, i finally successed to install this mod with version 2.1
But now is problem some tp pages with query titles doesn't show at all, example -> http://www.farmaceuti.com/forum/page.prijemni/%20ispit%202011
Its weird that this page are shown correctly -> http://www.farmaceuti.com/forum/page.deficitarni,lekovi/
Some pages are in format -> http://www.farmaceuti.com/forum//page,121.html
And categories are don't have name in it, just id -> http://www.farmaceuti.com/forum/forum/#5 (see atach) and it redirects to all board index not on certain category
The reason for the /forum/forum is because you have your forum in the /forum subfolder, and then a 'forum' action from the portal, so /forum/forum is what you get.
Your boards seem to load fine for me... http://www.farmaceuti.com/forum/molimo_registrujte_se/
Categories never have names in URLs, only boards do.
I'm not familiar with tiny portal and how it works or creates URLs, but anything conforming to an SMF standard should not have any problems. If tiny portal has a feature that creates 'content filled urls', that will likely interfere with this mod and should be disabled. If you want to have that type of feature with tiny portal, you should ask the tiny portal authors to look into making a module for this mod that might allow rich urls.
Yes, but click on the link marked on picture in attach -> it redirects to all board index no on specific one (http://www.farmaceuti.com/forum/forum/#13) ?
That is normal... that's a category, not a board. Disable SimpleSEF and you'll see the same result.
No, it isn't, when i click here on link on this page for examle -> Customizing SMf i'm redirect just to that category not on index of all boards and categories.
See attach:
You are redirected to the board index, and the hash takes you down to that category... try scrolling the page (hell, just look at the URL... 'index.php#c18').
Is there a way to change the categories url?
On my site I have a custom frontpage that replaces the Board Index, the Board Index its on a custom action "forum" when I'm not on the frontpage the link for a category is this: http://missallsunday.com/#c3 that of course leads me to the frontpage because I assume this is done intentionally by the mod, what I was wonder is if I could change that url to http://missallsunday.com/forum/#cX which is the right url for the Board Index's categories.
I'm using SimpleSEF 2.1 SMF 2.0 on LiteSpeed
Thanks.
I would consider that to be a bug in whatever portal software you're using, as if you disable SimpleSEF, you'll likely have the same result. If you do have the desired result with SimpleSEF disabled, let me know. SimpleSEF only rewrites the urls as it finds them, and it's very specific about how it does it.
OK, let me check then. I'm not using any portal software its just a script I wrote for this, guess I didn't wrote it properly :P
Do you have any idea where to start to check for this urls? BoardIndex.template.php perhaps?
Yes it is my script, sorry :-[
You'll have to check around to see how/where that section of the link tree is made, or you could edit the function that spits out the link tree and modify the first value and append ?action=forum to it.
Tried again with release for 2 final. Same issue
Quote from: spiros on June 27, 2011, 05:04:50 PM
Then, although it created perfectly fine URLs it opened the home page of the main site. I.e. the forum is here:
www.nonsmokersclub.com/forum/index.php
but no matter which board or topic I clicked, it would open this page:
www.nonsmokersclub.com
i use SIMPLESEF mod and last smf 2.0
and SA FACEBOOK INTEGRATION mod, when simple sef is enable i get this error
Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. thrown in /home1/paraparl/public_html/facebookauth/base_facebook.php on line 970
when i did publish on a topic and not work associate users with facebook account
if i disable simplesef it work but i need simple sef
i enabled advanced option and excluded all action from simple sef ma the same problem
spiros - what is the contents, if any, of your .htaccess in your public_html folder? And what is the contents of the .htaccess in your /forum folder.
Quote from: SlammedDime on June 29, 2011, 12:15:37 PM
You'll have to check around to see how/where that section of the link tree is made, or you could edit the function that spits out the link tree and modify the first value and append ?action=forum to it.
Thanks, it took me a while but I think I solved it with this:
if (!empty($context['linktree']))
foreach ($context['linktree'] as $key => $tree)
if (strpos($tree['url'], '#c') !== false && strpos($tree['url'], 'action=forum#c') === false)
$context['linktree'][$key]['url'] = str_replace('#c', '?action=forum#c', $tree['url']);
Is there a way to 301 redirect all old urls to new ones?
I see that they are already 301 redirected? :)
;)
Bravo for you, i read earlier in this topic, i think, that all of the old urls lost their pr after enabling simplesef. :)
I don't recall seeing that anywhere (unless someone came from a different SEO mod)... I think I've always had the 301 redirect in here
Yes,my bad, it was talked about prety url mod :D
Quote from: Miss All Sunday on April 06, 2011, 10:10:32 AM
The old links tha pretty urls made will not longer work and google or any other search engine will just dismiss them, after you install simpleSEF the new links are going to be indexed, it just take time thats all.
Quote from: SlammedDime on June 30, 2011, 11:38:06 AM
spiros - what is the contents, if any, of your .htaccess in your public_html folder? And what is the contents of the .htaccess in your /forum folder.
http://www.simplemachines.org/community/index.php?topic=352351.msg3090917#msg3090917
Why my urls don't look like this one from example:
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
Instead of this when i enable "Create Simple URLs" I have:
http://www.yourboard.com/index.php?board=1.0 =>> http://www.yourboard.com/board_1.0/
http://www.yourboard.com/index.php?topic=1.0 =>> http://www.yourboard.com/topic_1.msg1.html
and with disabled "Create Simple URLs" urls look like this:
http://www.yourboard.com/index.php?board=1.0 =>> http://www.yourboard.com/board/
http://www.yourboard.com/index.php?board=2.0 =>> http://www.yourboard.com/a/
http://www.yourboard.com/index.php?board=3.0 =>> http://www.yourboard.com/n/
http://www.yourboard.com/index.php?topic=396.msg5356#new =>> http://www.yourboard.com/board/_396.msg5356.html
My server is LiteSpeed V5.5 with PHP 5.3 and MySQL 5.5.11-55
Earlier i had PrettyURLs, but i removed it before i installed SimpleSEF.
Quote from: spiros on July 02, 2011, 03:36:21 AM
Quote from: SlammedDime on June 30, 2011, 11:38:06 AM
spiros - what is the contents, if any, of your .htaccess in your public_html folder? And what is the contents of the .htaccess in your /forum folder.
http://www.simplemachines.org/community/index.php?topic=352351.msg3090917#msg3090917
If I had to guess, I'd say that Joomla's rewrites are interfering with SimpleSEF. YOu can try to comment out the rewrite stuff in your public_html .htaccess file and see what happens then. If that's the case, I'm not sure of the solution, I haven't run into that situation before.
ph4ntom - What language is your board in? Are you using UTF-8?
polish and yes, i am using UTF8
Quote from: SlammedDime on July 02, 2011, 02:07:11 PM
If I had to guess, I'd say that Joomla's rewrites are interfering with SimpleSEF. YOu can try to comment out the rewrite stuff in your public_html .htaccess file and see what happens then. If that's the case, I'm not sure of the solution, I haven't run into that situation before.
I deleted the public_html .htaccess file. Joomla site was non functional, SMF came up with exactly the same wrong redirects! Hence I'm inclined to think that this is not an issue of the public_html .htaccess file.
Found the solution. I deleted the Bot Blocker Mod and it worked ok.
However, is there a way to manipulate its output? I.e. it includes sometimes special characters on the URL like «». I.e.
http://www.nonsmokersclub.com/forum/topicseen./genike-suzetese/%3C%3Ckapnosemo%3E%3E-sta-mpouzoukia-kai-ta-kazino-7121.msg7562.html#msg7562
Should I enter the exceptions as %C2%AB (percent encoding) in $newSettings['simplesef_strip_chars']?
#Simple .htaccess Bot Blocker Mod
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} ADSARobot|ah-ha|almaden|aktuelles|Anarchie|amzn_assoc|ASPSeek|ASSORT|ATHENS|Atomz|attach|attache|autoemailspider|BackWeb|Bandit|BatchFTP|bdfetch|big.brother|BlackWidow|bmclient|Boston\ Project|BravoBrian\ SpiderEngine\ MarcoPolo|Bot\ mailto:[email protected]|Buddy|Bullseye|bumblebee|capture|CherryPicker|ChinaClaw|CICC|clipping|Collector|Copier|Crescent|Crescent\ Internet\ ToolPak|Custo|cyberalert|DA$|Deweb|diagem|Digger|Digimarc|DIIbot|DISCo|DISCo\ Pump|DISCoFinder|Download\ Demon|Download\ Wonder|Downloader|Drip|DSurf15a|DTS.Agent|EasyDL|eCatch|ecollector|efp@gmx\.net|Email\ Extractor|EirGrabber|email|EmailCollector|EmailSiphon|EmailWolf|Express\ WebPictures|ExtractorPro|EyeNetIE|FavOrg|fastlwspider|Favorites\ Sweeper|Fetch|FEZhead|FileHound|FlashGet\ WebWasher|FlickBot|fluffy|FrontPage|GalaxyBot|Generic|Getleft|GetRight|GetSmart|GetWeb!|GetWebPage|gigabaz|Girafabot|Go\!Zilla|Go!Zilla|Go-Ahead-Got-It|GornKer|gotit|Grabber|GrabNet|Grafula|Green\ Research|grub-client|Harvest|hhjhj@yahoo|hloader|HMView|HomePageSearch|http\ generic|HTTrack|httpdown|httrack|ia_archiver|IBM_Planetwide|Image\ Stripper|Image\ Sucker|imagefetch|IncyWincy|Indy*Library|Indy\ Library|informant|Ingelin|InterGET|Internet\ Ninja|InternetLinkagent|Internet\ Ninja|InternetSeer\.com|Iria|Irvine|JBH*agent|JetCar|JOC|JOC\ Web\ Spider|JustView|KWebGet|Lachesis|larbin|LeechFTP|LexiBot|lftp|libwww|likse|Link|Link*Sleuth|LINKS\ ARoMATIZED|LinkWalker|LWP|lwp-trivial|Mag-Net|Magnet|Mac\ Finder|Mag-Net|Mass\ Downloader|MCspider|Memo|Microsoft.URL|MIDown\ tool|Mirror|Missigua\ Locator|Mister\ PiX|MMMtoCrawl\/UrlDispatcherLLL|^Mozilla$|Mozilla.*Indy|Mozilla.*NEWT|Mozilla*MSIECrawler|MS\ FrontPage*|MSFrontPage|MSIECrawler|MSProxy|multithreaddb|nationaldirectory|Navroad|NearSite|NetAnts|NetCarta|NetMechanic|netprospector|NetResearchServer|NetSpider|Net\ Vampire|NetZIP|NetZip\ Downloader|NetZippy|NEWT|NICErsPRO|Ninja|NPBot|Octopus|Offline\ Explorer|Offline\ Navigator|OpaL|Openfind|OpenTextSiteCrawler|OrangeBot|PageGrabber|Papa\ Foto|PackRat|pavuk|pcBrowser|PersonaPilot|Ping|PingALink|Pockey|Proxy|psbot|PSurf|puf|Pump|PushSite|QRVA|RealDownload|Reaper|Recorder|ReGet|replacer|RepoMonkey|Robozilla|Rover|RPT-HTTPClient|Rsync|Scooter|SearchExpress|searchhippo|searchterms\.it|Second\ Street\ Research|Seeker|Shai|Siphon|sitecheck|sitecheck.internetseer.com|SiteSnagger|SlySearch|SmartDownload|snagger|Snake|SpaceBison|Spegla|SpiderBot|sproose|SqWorm|Stripper|Sucker|SuperBot|SuperHTTP|Surfbot|SurfWalker|Szukacz|tAkeOut|tarspider|Teleport\ Pro|Templeton|TrueRobot|TV33_Mercator|UIowaCrawler|UtilMind|URLSpiderPro|URL_Spider_Pro|Vacuum|vagabondo|vayala|visibilitygap|VoidEYE|vspider|Web\ Downloader|w3mir|Web\ Data\ Extractor|Web\ Image\ Collector|Web\ Sucker|Wweb|WebAuto|WebBandit|web\.by\.mail|Webclipping|webcollage|webcollector|WebCopier|webcraft@bea|webdevil|webdownloader|Webdup|WebEMailExtrac|WebFetch|WebGo\ IS|WebHook|Webinator|WebLeacher|WEBMASTERS|WebMiner|WebMirror|webmole|WebReaper|WebSauger|Website|Website\ eXtractor|Website\ Quester|WebSnake|Webster|WebStripper|websucker|webvac|webwalk|webweasel|WebWhacker|WebZIP|Wget|Whacker|whizbang|WhosTalking|Widow|WISEbot|WWWOFFLE|x-Tractor|^Xaldon\ WebSpider|WUMPUS|Xenu|XGET|Zeus.*Webster|Zeus [NC]
RewriteRule ^.* - [F,L]
</IfModule>
#Simple .htaccess Bot Blocker Mod
#Simple .htaccess Proxy Blocker Mod
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP:VIA} !^$ [OR]
RewriteCond %{HTTP:FORWARDED} !^$ [OR]
RewriteCond %{HTTP:USERAGENT_VIA} !^$ [OR]
RewriteCond %{HTTP:X_FORWARDED_FOR} !^$ [OR]
RewriteCond %{HTTP:PROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:XPROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR]
RewriteCond %{HTTP:HTTP_CLIENT_IP} !^$
RewriteRule ^(.*)$ - [F]
</IfModule>
#Simple .htaccess Proxy Blocker Mod
I'll have to see what those characters are that it's encoding and see about either properly encoding them or stripping them out.
I don't see how the bot blocker mod is interfering with this mod though, as it is a conditional rewrite based on the user agent.
Well, I don't see either; the only thing I can tell is that it worked when removed.
my old url with the old version of SimpleSEF was http://www.example.com/forum/wap2/general_discussion/ which now changed to http://www.example.com/forum/wap2./general_discussion/ means wap2 is changed to wap2. due to this i am getting 404 error when i am trying to access with old url.
Any solution....
EDIT: is there any solution to redirect all wap2 url to wap2. url.... some solution...
Hello there, this is a great mod and it works fine, but E-Arcade does not work right.
It goes to forum/arcade but it's not there. Is there a fix for it? I searched this topic but found no solution :(
Thanks :)
Ok when i rename the "arcade" folder where game files (gamedata) are stored it works, but then the arcade won't work correct..With scores..
Is there a way to change the name from /forum/arcade to /forum/arcade2 or something like that?
Don't know if you trying to find out why i had this (http://www.simplemachines.org/community/index.php?topic=352351.msg3096377#msg3096377) problem, but i changed server and now i have Apache, MySQL 5.5.10 and PHP 5.3.5 and all seems to be just fine ;)
Quote from: ph4ntom on July 10, 2011, 08:30:47 AM
Don't know if you trying to find out why i had this (http://www.simplemachines.org/community/index.php?topic=352351.msg3096377#msg3096377) problem, but i changed server and now i have Apache, MySQL 5.5.10 and PHP 5.3.5 and all seems to be just fine ;)
My server supports them all :)
Quote from: [Lucien] on July 10, 2011, 07:04:07 AM
Ok when i rename the "arcade" folder where game files (gamedata) are stored it works, but then the arcade won't work correct..With scores..
That is the problem .. have a folder the same structure as the url, SEF don't work.
So the rename of the folder helps.
I dont know arcade, but look at the settings if there a point for the path they you can change ...
Quote from: feline on July 10, 2011, 01:37:29 PM
Quote from: [Lucien] on July 10, 2011, 07:04:07 AM
Ok when i rename the "arcade" folder where game files (gamedata) are stored it works, but then the arcade won't work correct..With scores..
That is the problem .. have a folder the same structure as the url, SEF don't work.
So the rename of the folder helps.
I dont know arcade, but look at the settings if there a point for the path they you can change ...
I will try to ask help on the smf arcade site if this is possible :)
thnx!
Quote from: [Lucien] on July 10, 2011, 04:39:51 PM
I will try to ask help on the smf arcade site if this is possible :)
thnx!
I found out that most games really need that exact folder location /arcade/gamedata :(
Is there no other way to make Seo use another location rather then -http://mysite.com/arcade?
The problem is, that the action name is equal a path name. (index.php?action=arcade).
Because I don't know this mod, the best way is you call the author if you can change the action name ...
I think that would be a great amount of work because i think i would have to change every single line of code that refers to "index.php?action=arcade"
And that are a lot of lines :(
It was almost to good to be true. This mod is really great, i think it's much better then pretty urls because it destroyed my forum a few times..
Just wish there was a way :)
Which mod you use? Link to the mod ?
I use E-Arcade (http://www.ericsworld.eu/f2/index.php?topic=2115.0) , you must be a member there to download files so i attached the file here if you need it :)
The file is for RC5 but it workt great with emulation mode on SMF 2 Final.
Thank you for your help, i appreciate it :)
There only place where the path is hardcoded is in file ManageArcade.php
I change the path arcade to arcadeGames, this must also do on your server.
The file that I changed is attached. Copy this to the /Sources folder and overwrite existing.
Make a backup of this file before overwrite !!!
Try it ...
Thank you but it is not working, i copied the file to Sources and changed "arcade" to "arcadeGames" on the server but lots of games don't work and when i try to send score to the database i get this error:
Score not saved - ibp score check failed!
:(
Well .. in this case I can't give help, so you have to call the author of the mod ...
I will let you know if i succeed :) Thank you again Feline
If you're using the latest version of SimpleSEF, just rename the arcade action... maybe rename it to 'games' or something. In the SimpleSEF admin panel, just check the option for advanced features, then go to the aliasing sub-menu.
Quote from: rajanpert on July 09, 2011, 01:33:14 PM
my old url with the old version of SimpleSEF was http://www.example.com/forum/wap2/general_discussion/ which now changed to http://www.example.com/forum/wap2./general_discussion/ means wap2 is changed to wap2. due to this i am getting 404 error when i am trying to access with old url.
Any solution....
EDIT: is there any solution to redirect all wap2 url to wap2. url.... some solution...
is there any solution?
Quote from: SlammedDime on July 11, 2011, 11:23:58 AM
If you're using the latest version of SimpleSEF, just rename the arcade action... maybe rename it to 'games' or something. In the SimpleSEF admin panel, just check the option for advanced features, then go to the aliasing sub-menu.
Sorry the alias works but my problem remains, cannot save scores and cannot play a lot of games.. They simply won't load :(
@SlammedDime
I need your help. Feline with PortaMx offends you and me.
It's about your modification http://custom.simplemachines.org/mods/index.php?mod=2288 (http://custom.simplemachines.org/mods/index.php?mod=2288) which is quite correct, and works great. I am satisfied but it happens that your modifications wiped copyright of PortaMx and now calls me a thief and I wiped her copyright.
stupidity women...grrrrrrrrrrrrrrr
View the message here (http://www.simplemachines.org/community/index.php?topic=266721.msg3106368#msg3106368)
Hi,
I have installed simpleSEF on my forum, added the .htaccess files and I can enable it, and also I can go to the index, but when I enter in some forum, i got a 404 error.
There is the forum:
newforum.elhacker.net/smf2/index.php
The server don't depends on me, but I'm sure that it have mod_rewrite enabled
My .htaccess is this:
RewriteEngine On
# Uncomment the following line if its not working right
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Can you help me?
You might need to play with the RewriteBase line... you can try uncommenting it first off, and if that doesn't work, change it to/smf2 and see if that does it.
Quote from: SlammedDime on July 14, 2011, 11:16:05 AM
You might need to play with the RewriteBase line... you can try uncommenting it first off, and if that doesn't work, change it to/smf2 and see if that does it.
I have tried with "/" and "/smf2" and isn't working.
Quote from: [Lucien] on July 11, 2011, 11:30:07 AM
Quote from: SlammedDime on July 11, 2011, 11:23:58 AM
If you're using the latest version of SimpleSEF, just rename the arcade action... maybe rename it to 'games' or something. In the SimpleSEF admin panel, just check the option for advanced features, then go to the aliasing sub-menu.
Sorry the alias works but my problem remains, cannot save scores and cannot play a lot of games.. They simply won't load :(
Is there other solution for this problem, or isn't the arcade going to work with this mod? :)
Quote from: wvb on July 14, 2011, 12:10:31 PM
Quote from: SlammedDime on July 14, 2011, 11:16:05 AM
You might need to play with the RewriteBase line... you can try uncommenting it first off, and if that doesn't work, change it to/smf2 and see if that does it.
I have tried with "/" and "/smf2" and isn't working.
Without knowing how your hosting is setup, I don't really know where else to go with it... you can try and experiment with different values to see what happens (make sure you're removing the '#' from the front of the line to uncomment it).
Quote from: [Lucien] on July 14, 2011, 12:12:16 PM
Quote from: [Lucien] on July 11, 2011, 11:30:07 AM
Quote from: SlammedDime on July 11, 2011, 11:23:58 AM
If you're using the latest version of SimpleSEF, just rename the arcade action... maybe rename it to 'games' or something. In the SimpleSEF admin panel, just check the option for advanced features, then go to the aliasing sub-menu.
Sorry the alias works but my problem remains, cannot save scores and cannot play a lot of games.. They simply won't load :(
Is there other solution for this problem, or isn't the arcade going to work with this mod? :)
It might not work properly... while this mod rewrites URLs in a pretty standard fashion, mods which utilize URLs in an odd manner may simply not work right.
ok thnx for your reply :)
i like this addon, but i played a little around with it and found a bug
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FSV4cp.png&hash=4fb9a97833a4da54b61d7f16360e480aa5edab30) if you press request another image.
can you please look into this bug ? cause if i turn off simplesef, it all works
Hello,
I installed SMF 2.0 Tapatalk in the end and found that the application (Android) topics are not displayed if SimpleSEF is activated. Is there any way that SimpleSEF not work when viewing the board from Tapatalk? If anyone can help provide more information if necessary. thank you very much.
File SimpleSEF_2-0.php
$fixups = array();
if (!empty($hooks['integrate_pre_load']) && strpos($hooks['integrate_pre_load'], 'SimpleSEF') !== 0) {
$fixups['integrate_pre_load'] = 'SimpleSEF::convertQueryString,' . str_replace(',SimpleSEF::convertQueryString', '', $hook['integrate_pre_load']);
}
if (!empty($hooks['integrate_buffer']) && strpos($hooks['integrate_buffer'], 'SimpleSEF') !== 0) {
$fixups['integrate_buffer'] = 'SimpleSEF::ob_simplesef,' . str_replace(',SimpleSEF::ob_simplesef', '', $hook['integrate_buffer']);
}
if (!empty($hooks['integrate_exit']) && strpos($hooks['integrate_exit'], 'SimpleSEF') !== 0) {
$fixups['integrate_exit'] = 'SimpleSEF::fixXMLOutput,' . str_replace(',SimpleSEF::fixXMLOutput', '', $hook['integrate_exit']);
}
I think $hook should be replaced by $hooks:
$fixups = array();
if (!empty($hooks['integrate_pre_load']) && strpos($hooks['integrate_pre_load'], 'SimpleSEF') !== 0) {
$fixups['integrate_pre_load'] = 'SimpleSEF::convertQueryString,' . str_replace(',SimpleSEF::convertQueryString', '', $hooks['integrate_pre_load']);
}
if (!empty($hooks['integrate_buffer']) && strpos($hooks['integrate_buffer'], 'SimpleSEF') !== 0) {
$fixups['integrate_buffer'] = 'SimpleSEF::ob_simplesef,' . str_replace(',SimpleSEF::ob_simplesef', '', $hooks['integrate_buffer']);
}
if (!empty($hooks['integrate_exit']) && strpos($hooks['integrate_exit'], 'SimpleSEF') !== 0) {
$fixups['integrate_exit'] = 'SimpleSEF::fixXMLOutput,' . str_replace(',SimpleSEF::fixXMLOutput', '', $hooks['integrate_exit']);
}
"Advanced search" link doesn't work (when SimpleSEF enabled).
I have installed SimpleSEF (apache and .htaccess).
The urls are rewritten correctly and all links are changed appropriately. All pretty URLs work properly (profiles, search, my messages, members ...) except the boards.
When I click on a board, the URL changes to something like "domain/board_2.0/" but the content of the page is still the main page of the forum (list of forums).
Would someone please give me a hint on what might have gone wrong?
Regards, Mac
Just an interesting note about this mod: apparently it can result in redirect errors when installing some other mods.
Quote from: Xarcell on August 02, 2011, 04:49:45 PMI found the solution to this problem. I fixed I would come back and let you know in case anyone else has this issue. Even though this mod doesn't actually cause this error, it only happens to certain mods(I think those with a redirect text page in them).
Anyway, SimpleSEF is causing the issue. In order to get around the redirect issue, disable SimpleSEF(no need to uninstall), and clear browser cookies. That's it. Problem solved. You can then re-enable SimpleSEF...
I am sorry to reiterate my problem. Perhaps taking a look at the forum itself helps?
Forum links do not work and redirect to the main index page.
http://www.penangforums.com/ (http://www.penangforums.com/)
Quote from: wmac on August 02, 2011, 12:54:37 PM
I have installed SimpleSEF (apache and .htaccess).
The urls are rewritten correctly and all links are changed appropriately. All pretty URLs work properly (profiles, search, my messages, members ...) except the boards.
When I click on a board, the URL changes to something like "domain/board_2.0/" but the content of the page is still the main page of the forum (list of forums).
Would someone please give me a hint on what might have gone wrong?
Regards, Mac
Hi,
can you please help me?
Im using version 2.0 final,
I install the mod, everything is fine.
I have .Htacess , Im using 000webhost (I tried it on Namecheap and 2 other webhosts too)
I installed pretty urls but then uninstalled it cuz I like this mod better (www. reason)
The problem is that I check "enable" and it goes unchecked (I know why) but when it doesn't, I get 404 errors.
Why is this?
Everything is sucessfully uploaded yet im getting this error. Why?
not working on smf2.0 gold.. urls doesn't rewrite as board title and doesn't fill the link with thread title.. therefore, it will give me error
Quote from: uninvited13th on August 15, 2011, 02:41:25 AM
not working on smf2.0 gold.. urls doesn't rewrite as board title and doesn't fill the link with thread title.. therefore, it will give me error
Do you enable the mod?
Do you create your .htaccess file correctly?
Did you configured the mod correctly?
I have a problem with the cooperation SimpleSEF and SSI. On the side I have inserted:
include(path/SSI.php);
ob_start ('ob_simplesef');
ssi_recentTopics (10);
ob_end_flush ();
Do not display links SimpleSEF. With version 2.0 RC4, it worked.
--------
SMF Version 2.0
SimpleSEF Version: 2.1
Ok, I solved the problem.
Instead of lines:
ob_start ('ob_simplesef');
You need to add:
ob_start('SimpleSEF::ob_simplesef');
Quote from: Groovystar on August 19, 2011, 03:35:09 PM
I was told to post my PHP errors here.
Quote
http://warriorcatsrpg.com/index.php?action=post2;roleplay-resources-clan-joinings=;%5C%27___smf_images_url___%5C%27=;english=;new_gif=
Apply Filter: Only show the errors with the same message
8: Undefined index: 0
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
Apply Filter: Only show the error messages of this member arrowsoul
Reverse chronological order of list Today at 02:27:31 PM
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=post2;roleplay-resources-clan-joinings=;%25buttonSrc%25=
Apply Filter: Only show the errors with the same message
8: Undefined index: 0
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
Apply Filter: Only show the error messages of this member ~Wo!fwh1$per_$t@r~will be on and off due to school...
Reverse chronological order of list Today at 02:27:28 PM
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=post2;start=0;roleplay-resources-clan-joinings=;%25smileySource%25=
Apply Filter: Only show the errors with the same message
8: Undefined index: 0
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
Something keeps happening on line 455. Would anybody want to take a look? Thanks!
I've installed Simple SEF but can't get it to activate.
I've verified that the .htaccess file contains the following lines (and I've even unconmented the rewriteBase line as a test):
RewriteEngine On
# Uncomment the following line if its not working right
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
The server does have mod_rewrite installed.
No matter what I do, the "Enable SimpleSEF" checkbox will not stay checked. (??)
Any ideas on what I could try next?
Current config:
SMF version: SMF 2.0
Installed Mods:
SimpleSEF 2.1
SMF Archive 2.0
Karma Buttons 1.1
Tagging System 2.4.2
Limit Posts Per Day 1.0
Hide SMF Version 1.0.6a
Last Users In 24 Hours 1.0
More Spiders 1.2
Contact Page 3.0
The .htaccess must be as follow:
RewriteEngine on
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Thank you- I didn't srcoll down far enough to see the last line in the Simple SEF help text ('RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]'').
Now it's keeping the checkbox checked, but I'm not seeing the kind of URLs I think I should be seeing...for example, on a post titled "Windows Xp Drivers x32/x64 Update", the link appears as
http://www.domain.com/10/-313260.0.html
No keywords and no actual text in the URL...I do not have the "Create Simple URLs" box cheked. What I have is:
Enable SimpleSEF - checked
Create Simple URLs - not checked
Character to be used for spaces in the url - set to '-' (a dash)
Topic Extension - set to 'html'
Advanced Options - checked
I must be doing something wrong, but I've no idea what. (??)
Quote from: feline on August 27, 2011, 11:52:55 AM
The .htaccess must be as follow:
RewriteEngine on
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Hi I am getting this error a lot, it's filling up my error logs:
Quote
Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=post2;start=1020;roleplay-resources-clan-joinings=;%25buttonSrc%25=
Apply Filter: Only show the errors with the same message
8: Undefined index: 0
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
How would I fix this, does anyone know?
Quote from: MrMike on August 27, 2011, 12:51:00 PM
Thank you- I didn't srcoll down far enough to see the last line in the Simple SEF help text ('RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]'').
Now it's keeping the checkbox checked, but I'm not seeing the kind of URLs I think I should be seeing...for example, on a post titled "Windows Xp Drivers x32/x64 Update", the link appears as
http://www.domain.com/10/-313260.0.html
I think this problem is this code part in SimpleSEF.php
if (!isset($utf8_db[$charBank])) {
// Load up the bank if it's not already in memory
$dbFile = $sourcedir . '/SimpleSEF-Db/x' . sprintf('%02x', $charBank) . '.php';
if (!is_readable($dbFile) || !@include_once($dbFile))
$utf8_db[$charBank] = array();
}
Replace that with
if (!isset($utf8_db[$charBank])) {
// Load up the bank if it's not already in memory
$dbFile = $sourcedir . '/SimpleSEF-Db/x' . sprintf('%02x', $charBank) . '.php';
if(file_exists($dbFile))
include_once($dbFile);
else
$utf8_db[$charBank] = array();
}
I made the change below, but I didn't see any difference. :(
URLs still appear as something like "http://www.domain.com/11/-313273.0.html (http://www.domain.com/11/-313273.0.html)"
Quote from: feline on August 28, 2011, 10:21:41 AM
I think this problem is this code part in SimpleSEF.php
if (!isset($utf8_db[$charBank])) {
// Load up the bank if it's not already in memory
$dbFile = $sourcedir . '/SimpleSEF-Db/x' . sprintf('%02x', $charBank) . '.php';
if (!is_readable($dbFile) || !@include_once($dbFile))
$utf8_db[$charBank] = array();
}
Replace that with
if (!isset($utf8_db[$charBank])) {
// Load up the bank if it's not already in memory
$dbFile = $sourcedir . '/SimpleSEF-Db/x' . sprintf('%02x', $charBank) . '.php';
if(file_exists($dbFile))
include_once($dbFile);
else
$utf8_db[$charBank] = array();
}
Look at your server if the folder /Sources/SimpleSEF-Db/ exist and you find in the folder a lot of files (x00.php .. xff.php)
Quote from: feline on August 28, 2011, 06:17:41 PM
Look at your server if the folder /Sources/SimpleSEF-Db/ exist and you find in the folder a lot of files (x00.php .. xff.php)
Yes, I see lots of files like that in the directory.
Check if the access for the folder 755 and for the files 644 ...
Quote from: feline on August 29, 2011, 07:35:07 AM
Check if the access for the folder 755 and for the files 644 ...
The folder is chmod 755, the files inside it all have permissions of 600.
Try to change the permission to 644 for the files ...
Quote from: feline on August 29, 2011, 12:44:51 PM
Try to change the permission to 644 for the files ...
I did that and then turned SEF on, but I didn't see any change. The URLs look like this:
http://www.domain.com/2/-152468.msg340571.htmlAnother odd thing I noticed is that the very
first board in the very first group can't be reached at all when Simple SEF is on...the URL looks like this:
http://www.domain.com/board/This is an invalid URL and returns an SMF error.
All the other boards in all other categories have URLs similar to this one below, with a different number for each board, and they all work:
http://www.domain.com/5/I've verified this on both a custom theme and on the Curve theme.
No suggestions or possible solutions on this issue?
I'd love to use Simple SEF (and even made a donation), but if these issues can't be resolved then there's no way I can use it. :(
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1204.photobucket.com%2Falbums%2Fbb416%2FALOJARIA%2FSimpleSEF.jpg&hash=e07a013ac83b97704e375d687cd3cf76a27623f1)
Okay, no response, no reply. At this point I've given up on using Simple SEF.
This mod (2.1 version) is buggy!
You could destroy the forum - adds to the noindex meta tags!
<meta name="robots" content="noindex" />
Through him I have lost all links!
--------------------
SMF version 2.0
Derof, this mod dose not add any metatags to your forum.
this mod redirect the old urls: index.php?topic=111 to the new ones automatically.
Quote from: Miss All Sunday on September 09, 2011, 09:53:17 AM
Derof, this mod dose not add any metatags to your forum.
this mod redirect the old urls: index.php?topic=111 to the new ones automatically.
Once installed and enabled, appears in the source code meta tags robots "noindex" in all the topics in the forum. After disabling simpleSEF - no robots meta tag at all. Most of my topics in my two forums were removed from the google search engine. I resigned from this.
Well, first of all, Google does not make changes to their search engine every time you make changes to your website... so it's hard to believe that immediately after you installed this mod all your search results were gone...
But to each their own, I had used this mod since the first version in apache and in LiteSpeed with no issues at all and no metatags added...
<meta name="robots" content="noindex"/> its in by default in SMF 2.0
you can set this or unset it for every page you don't want to be indexed, I do this in the FAQ mod
take a look at your Index.template.php file:
// Please don't index these Mr Robot.
if (!empty($context['robot_no_index']))
echo '
<meta name="robots" content="noindex" />';
Quote from: Miss All Sunday on September 09, 2011, 12:26:06 PM
so it's hard to believe that immediately after you installed this mod all your search results were gone...
Installed in mid August, but only noticed it today. The previous version was OK.
Ok, if you installed this after you already had some urls in google then yes, your old url will be deleted from google.
then google will scan your site and start to index your new urls... it just take time, thats all.
Ok, I know. But the reason for removal of links from google was <meta name="robots" content="noindex" /> - added after turning simpleSEF 2.1.
then just remove that code from your Index.template site... as I already told you that code has nothing to do with simpleSEF, it is added by default in every SMF 2.0 installation.
Quote from: Miss All Sunday on September 09, 2011, 01:40:46 PM
then just remove that code from your Index.template site... as I already told you that code has nothing to do with simpleSEF, it is added by default in every SMF 2.0 installation.
Thanks for your help. There is no need. I resigned from SimpleSEF and I have no problem. Or is a bug in SimpleSEF, or someone used a hole through SimpleSEF to set the $context ['robot_no_index'].
There is not a bug and theres no "hole" in this mod...
Quote from: Miss All Sunday on September 09, 2011, 09:58:33 PM
There is not a bug and theres no "hole" in this mod...
I don't think there are any holes, but I do think there are some bugs.
Bugs of course, every single piece of code has them, but I seriously doubt there is a bug that involves metatags
I have seen the code, I had learn a lot from it and believe me, there is no such thing as this mod adding metatags.
Quote from: Miss All Sunday on September 09, 2011, 10:50:19 PM
Bugs of course, every single piece of code has them, but I seriously doubt there is a bug that involves metatags
I agree, and should have been clearer. I don't believe there is any bug having to do with meta tags. I came to this thread seeking help on what appears to be a bug and got nowhere.
I saw your problem, I just can't reproduce the urls your getting.
did you intalled any other mod that changes the urls?
did you have the Search engine friendly Urls option enable in your admin panel?
Quote from: Miss All Sunday on September 09, 2011, 10:50:19 PM
Bugs of course, every single piece of code has them, but I seriously doubt there is a bug that involves metatags
I have seen the code, I had learn a lot from it and believe me, there is no such thing as this mod adding metatags.
I have no interest to write stupidity. The fact is that for me resulted in the inclusion SimpleSEF add noindex meta tag. In version 1.1, I also detected a bug on the 404, which was corrected in version 1.1.1.
Quote from: Derof on September 10, 2011, 04:52:38 AM
I have no interest to write stupidity.
Then stop writing altogether....
1) No, as far as I know there are no other mods that alter any URLs.
2) Yes, the Search engine friendly Urls option was enabled.
I'd be glad to PM you the URL and the admin login for the board if you want to test it yourself.
Quote from: Miss All Sunday on September 09, 2011, 11:11:57 PM
I saw your problem, I just can't reproduce the urls your getting.
did you intalled any other mod that changes the urls?
did you have the Search engine friendly Urls option enable in your admin panel?
Quote from: feline on May 09, 2010, 02:35:32 PM
Quote from: Dismal Shadow on May 09, 2010, 08:20:42 AM
Without "Search engine friendly URLs" enabled:
/index.php?topic=932.0
With "Search engine friendly URLs" enabled:
/index.php/topic/932.0
That you can simple fix with follow..
Find in SimpleSEF.php (function ob_simplesef($buffer)) the string:
// Grab the topics...
$matches = array();
and add before:
// convert SMF-Seo urls..
if(preg_match_all('~' . preg_quote($scripturl) . '\/topic\,[-a-zA-Z0-9+&@#/%?=\~_|!:,.;\[\]]+~', $buffer, $matches, PREG_PATTERN_ORDER) > 0)
{
foreach($matches[0] as $link)
$buffer = str_replace($link, str_replace(array('/topic,', '.html'), array('?topic=', ''), $link), $buffer);
}
That converts exist SMF seo url's ..
Fel
I made the change but I did not redirect correctly, can help me, thanks.
http://www.elseptimoarte.net/foro2/
Quote from: Derof on September 09, 2011, 04:08:16 PM
Quote from: Miss All Sunday on September 09, 2011, 01:40:46 PM
then just remove that code from your Index.template site... as I already told you that code has nothing to do with simpleSEF, it is added by default in every SMF 2.0 installation.
Thanks for your help. There is no need. I resigned from SimpleSEF and I have no problem. Or is a bug in SimpleSEF, or someone used a hole through SimpleSEF to set the $context ['robot_no_index'].
It´s true. :o ??? :o
With simpleSEF:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta name="description" content="'Dredd' - Nueva imagen de Karl Urban como el Juez Dredd" /> <title>'Dredd' - Nueva imagen de Karl Urban como el Juez Dredd</title> <meta name="robots" content="noindex" /> <link rel="canonical" href="http://xxxxxxxxx.arl-urban-como-el-juez-dredd-10739.0.html" />
Without simpleSEF
<meta name="description" content="'Dredd' - Nueva imagen de Karl Urban como el Juez Dredd" /> <title>'Dredd' - Nueva imagen de Karl Urban como el Juez Dredd</title> <link rel="canonical" href="http://www.xxxxxxxx/index.php?topic=10739.0" />
Google:
site:http://missallsunday.com/
::)
Quote from: jorgerll on September 12, 2011, 01:42:15 PM
Google:
site:http://missallsunday.com/
::)
??? where exactly do I have a noindex metatag ??? please do set some examples...
Quote from: Miss All Sunday on September 12, 2011, 03:03:54 PM
Quote from: jorgerll on September 12, 2011, 01:42:15 PM
Google:
site:http://missallsunday.com/
::)
??? where exactly do I have a noindex metatag ??? please do set some examples...
<meta name="description" content="My webifyme" /><meta name="keywords" content="sunday,simple,machines,forum,seconds,spoiler,welcome,queries,theme,topics,added,comment,write,comments,created,jquery,one piece, miss, all " /> <title>My webifyme</title><meta name="robots" content="noindex" /> <link rel="canonical" href="http://missallsunday.com/blog/my_webifyme_46.0.html" />
Are you using the Firefox "webifyme" plugin?
jorgerll - Yes, it's true.
Noindex in smf 2.0 is inserted automatically if the address does not exist, eg:
http://www.simplemachines.org/community/index.php?topic=352351128012421412
I suspect that there is an error in SimpleSEF that uses this mechanism.
can this mod be updated to work with SMF 2.0.1 ?
right now it says this mod cannot be installed on your SMF version 2.0.1
This mod can be installed on a 2.0.1 installation, you just need to emulate version 2.0
how to emulate version 2.0 ?
you mean manually parsing instrucions for SMF 2.0.1 ?
that didnt work
No, go to admin packages below the mod's list there's an Advanced link, click on it, on the text field type SMF 2.0 and then click on apply
now you ca install the mod.
once installed, click on Advanced again and then click on revert.
i installed but Enable SimpleSEF option gets unnchecked everytime i check it and save
click on the [Help] link on the mods description in admin / configuration / simpleSEF theres some instructions for every type of server.
now /forums/board-8.0/ doesn't work and it goes to forums index
while /forums/topic-1490.html works
do you have Search engine friendly URLs on? turn that setting off, you dont need it as simpleSEF takes care of it.
i never check that ON.
its always off
Also it creates urls like topic-1234.html instead of topic keywords in url
also board-4.0/ doesnt go to board 4.0
it redirects to index
Do you have this turn on?
Create Simple URLs
Urls will look like /forum/board-1/, or /forum/topic-3.html instead of content filled.
turn that off and clean your forum cache.
working perfectly now :laugh: thanks
does those URLS get stored in /Sources/SimpleSEF-DB/ ?
i have it populated with files and all having 666 permissions
and /Sources/SimpleSEF-Ext/ being empty
No, the urls aren't stored on your server, those folders are there to handling things so you shouldn't touch those :)
the urls are generated "on the fly" by the mod itself.
Quote from: Miss All Sunday on September 09, 2011, 12:58:09 PM
then google will scan your site and start to index your new urls... it just take time, thats all.
A drastic drop in visits lasts since i installed simple sef and that would be since June.
The drop is for almost 50%.
Does someone else have similiar experience?
yes but its temporary.
because google cant crawl through your old links, it will start deleting them and wait for a while to crawl back and find new SEF Urls
if we find a good MOD for generating xml sitemaps for these urls, we can submit to google through webmasters and get our links crawled quicker. but existing SMF sitemap mod is outdated for SMF 2.0.1
I'll add this function (Sitemap XML) to Optimus Brave mod, soon.
Quote from: ALOJARIA on September 04, 2011, 11:30:08 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1204.photobucket.com%2Falbums%2Fbb416%2FALOJARIA%2FSimpleSEF.jpg&hash=e07a013ac83b97704e375d687cd3cf76a27623f1)
HELP!!!
Quote from: Bugo on October 16, 2011, 04:54:27 PM
I'll add this function (Sitemap XML) to Optimus Brave mod, soon.
cool..waiting for that
My server does not have a .htcaccess file, What do I do?
.htaccess is hidden file and cant be seen through FTP
check via control panel, file manager
Quote from: Farmacija on October 10, 2011, 02:34:14 PM
Quote from: Miss All Sunday on September 09, 2011, 12:58:09 PM
then google will scan your site and start to index your new urls... it just take time, thats all.
A drastic drop in visits lasts since i installed simple sef and that would be since June.
The drop is for almost 50%.
Does someone else have similiar experience?
http://www.simplemachines.org/community/index.php?topic=352351.msg3159439#msg3159439
Quote from: Cblog on October 19, 2011, 05:10:35 AM
.htaccess is hidden file and cant be seen through FTP
check via control panel, file manager
Checked via cPanel file manager. I still don't see it? :/
there should be 2 types of file managers in cpanel (legacy and normal)
try both
Quote from: Cblog on October 25, 2011, 10:44:41 PM
there should be 2 types of file managers in cpanel (legacy and normal)
try both
Don't see it here either. Is there anyway I can create a file like this?
create a .htaccess file on your computer and upload it
chmod it to 644
503 error when simpleSEF is enabled and I try to modify a post. SMF 2.0.1. Any one have similar problem?
No other bugs, problems, etc - just this and only with modification ...
Any clue will by great ....
eline did you read this:
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
# Uncomment the following line if its not working right
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
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" stopProcessing="true">
<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?q={R:1}" appendQueryString="true" />
</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-final += (
# Allow all normal files
"^/forum/.*\.(js|ico|gif|jpg|png|swf|css|htm|php)(\?.*)?$" => "$0",
# Rewrite everything else
"^/([^.?]*)$" => "/index.php?q=$1"
)
}
You can also make this work with Nginx with the following code added to your Nginx configuration file. if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?q=$1 last;
}
Doesn't seem to be working for me :(
URLs are displayed in this manner: /18/-655.msg8150.html#new | even though I have Create Simple URLs turned off.
I have also unticked Search engine friendly URLs
And I did clear the cache. Please tell me what's going wrong? click on my sig if you wanna visit the site I installed this on.
Friendly URL's work fine in any other case than EDIT OF POST. When I try edit post as a moderator or admin I have 503 error. So there is something change with 2.0.1 or in general something wrong with simpleSEF.
Quote from: agent47 on October 27, 2011, 07:15:24 PM
Doesn't seem to be working for me :(
URLs are displayed in this manner: /18/-655.msg8150.html#new | even though I have Create Simple URLs turned off.
I have also unticked Search engine friendly URLs
And I did clear the cache. Please tell me what's going wrong? click on my sig if you wanna visit the site I installed this on.
the same problem
simplesef incompatible with 2.0.1
the problem is that google is not indexing links like .0.html quickly
I have an 2.0.1 installation working just fine with this mod, you just need to create a proper .htaccess
[11-Nov-2011 19:06:48] PHP Notice: iconv() [<a href='function.iconv'>function.iconv</a>]: Detected an illegal character in input string in /home/****/public_html/testsmf/Sources/SimpleSEF.php on line 1160
RewriteEngine On
# Uncomment the following line if it's not working right
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Still thinking what i'm doing wrong :(
if we disable this mod, how to redirect SEF urls back to old urls
Good question above.
Great mod. Better than pretty URLs!
But, it doesn't work unless you delete the current .htaccess file first.
And - can you make an update for this mod please?
Hi, I installed this and I can't seem to get it to work with YAGAM (Yet another Global Announcement Mod). SimpleSEF shortens the announcement url and it shows an error. Can someone help me out?
Thanks
Quote from: Mr. Pirate on November 24, 2011, 10:55:48 PM
Hi, I installed this and I can't seem to get it to work with YAGAM (Yet another Global Announcement Mod). SimpleSEF shortens the announcement url and it shows an error. Can someone help me out?
Thanks
Bump!
Buuuuuumpin
it may help if you actually post the error...
This mod will work with any standard SMF actions and will automatically detect all possible actions added by a mod, have you contacted the yagam's author?
This is the error
An Error Has Occurred!
The page you requested could not be found. Please contact the site administrator if you believe you have reached this page in error.
This is the original url
http://example.com/index.php?action=announcement;aid=2
This is the url SimpleSEF changes the announcement to (Error page)
http://example.com/announcement/aid.2/
And that url, what is suppose to do? what's it's purpose?
That url is my rules post, which is a global announcement.
it goes to a separate page? can I see a live example.
Hmm it randomly worked!!
Thanks
Quote from: Mr. Pirate on November 27, 2011, 05:24:18 PM
Hmm it randomly worked!!
Thanks
not randomly, your forum generated a new cache with the necessary changes, it does happen with newly created boards and categories as well, you need to clean your forum cache.
Quote from: Derof on September 13, 2011, 07:02:22 AM
jorgerll - Yes, it's true.
Noindex in smf 2.0 is inserted automatically if the address does not exist, eg:
http://www.simplemachines.org/community/index.php?topic=352351128012421412
I suspect that there is an error in SimpleSEF that uses this mechanism.
It's definitely an error, i see that just now. Example: -> http://www.farmaceuti.com/forum/vesti_iz_struke/prirucnik_za_ucesnike_u_klinickim_ispitivanjima_lekova_18397.0.html
And it is the disaster!
Page source:
Quote<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="google-site-verification" content="09Z3lR5BveIS-GOgANUBt25UbuqYVz7P0V6i0s4qUpU" />
<meta name="copyright" content="Farmacija forum 2006-2011." />
<meta name="description" content="Farmacija forum - Index Prirucnik za ucesnike u klinickim ispitivanjima lekova" />
<title>Prirucnik za ucesnike u klinickim ispitivanjima lekova</title>
<meta name="robots" content="noindex" />
Can we remove this code in index.template.php?
// Please don't index these Mr Robot.
if (!empty($context['robot_no_index']))
echo '
<meta name="robots" content="noindex" />';
edit:
I remove above code and now seems it is ok:
Quote<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="google-site-verification" content="09Z3lR5BveIS-GOgANUBt25UbuqYVz7P0V6i0s4qUpU" />
<meta name="copyright" content="Farmacija forum 2006-2011." />
<meta name="description" content="Farmacija forum - Index Prirucnik za ucesnike u klinickim ispitivanjima lekova" />
<title>Prirucnik za ucesnike u klinickim ispitivanjima lekova</title>
<link rel="canonical" href="http://www.farmaceuti.com/forum/vesti_iz_struke/prirucnik_za_ucesnike_u_klinickim_ispitivanjima_lekova_18397.0.html" />
Do not use this mod. It generates meta noindex which gives Googlebot the instruction to don't show the pages of the forum in the index of Google.
Google doesn't see topic names complete. How can I do?
For example:
http://www.simplemachines.org/community/index/car-bird-bus-station.t34567.html
but google index is:
http://www.simplemachines.org/community/index/car-bird-bus-
This is a very seriously problem.. Thanks
Hi, I have small problem, I noticed that after login or loguot in my site I'm redirected to example.com/
forum and i get this error :
QuoteThe page you requested could not be found. Please contact the site administrator if you believe you have reached this page in error.
SMF is installed in the main domain not in "
forum" folder. How can i fix this?
SMF 2.0.2
SimpleSEF 2.1
SimpleSEF is giving me errors like CRAZY.
Here they are:
Apply Filter: Only show the error messages of this member ιммσятαℓ
Apply Filter: Only show the error messages of this IP address 75.xx
Reverse chronological order of list Today at 08:45:49 PM
Apply Filter: Only show the error messages of this session 9f099886d99e8cbd4f1142eac39cd351
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=post2;start=60;fantasy-warriors-roleplay=;%25buttonSrc%25=
Apply Filter: Only show the errors with the same message
8: Undefined index: 0
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
Apply Filter: Only show the error messages of this member ιммσятαℓ
Apply Filter: Only show the error messages of this IP address 75.xx
Reverse chronological order of list Today at 08:32:37 PM
Apply Filter: Only show the error messages of this session 9f099886d99e8cbd4f1142eac39cd351
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=post2;start=60;fantasy-warriors-roleplay=;%25buttonSrc%25=
Apply Filter: Only show the errors with the same message
8: Undefined index: 0
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
Apply Filter: Only show the error messages of this member Loner
Apply Filter: Only show the error messages of this IP address 66.xx
Reverse chronological order of list Today at 08:17:20 PM
Apply Filter: Only show the error messages of this session 5b1b9f3833d9dad00ef3754a05a954f2
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=8312;area=showposts;sa=topics
Apply Filter: Only show the errors with the same message
8: Undefined index: 58
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
Apply Filter: Only show the error messages of this member Loner
Apply Filter: Only show the error messages of this IP address 66.xx
Reverse chronological order of list Today at 08:05:30 PM
Apply Filter: Only show the error messages of this session ac9698670f550ad639d2795130b83437
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/prev_next,next/darkclan-leader-and-medicine-cat-den/the-walk-didnt-help...-firey-open-183937.0.html
Apply Filter: Only show the errors with the same message
8: Undefined index: 58
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
Apply Filter: Only show the error messages of this member +Plusle★Minun-
Apply Filter: Only show the error messages of this IP address 71.xx
Reverse chronological order of list Today at 07:50:12 PM
Apply Filter: Only show the error messages of this session 717bd4eaa1f67162b520a5cfc9aa7ac7
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=post2;start=0;fun-stuff=;%5C%27___smf_images_url___%5C%27=;english=;new_gif=
Apply Filter: Only show the errors with the same message
8: Undefined index: 0
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
"Loner" is the word for guest on my site, just so you know. I have attached my site's SimpleSEF file in case it helps. If you want to see possibly associated errors I could look for them. But this thing is glitching like nuts.
Quote from: PatrickForum on December 16, 2011, 11:49:11 PM
Do not use this mod. It generates meta noindex which gives Googlebot the instruction to don't show the pages of the forum in the index of Google.
Are you sure there isn't a meta canonical in there? If so this behavior is to be expected and generated by the Simple Machines Forum system and not by SimpleSEF. It just tells the robots do not index this page with the bad URL above, index this page instead. Bad URL usually has parameters in it and allot of search engines will penalize your site for duplicate content. All that is being done is pointing to a clean URL with out parameters in it. ;)
I just ask because I am using this mod and this behavior isn't present in my setup.
*edit
I correct my post, I am not using this mod got it confused with another mod I have installed. To anyone who has read this post, please void it, lol.
Quote from: Groovystar on January 16, 2012, 08:56:19 PM
SimpleSEF is giving me errors like CRAZY.
Here they are:
Apply Filter: Only show the error messages of this member ιммσятαℓ
Apply Filter: Only show the error messages of this IP address 75.xx
Reverse chronological order of list Today at 08:45:49 PM
Apply Filter: Only show the error messages of this session 9f099886d99e8cbd4f1142eac39cd351
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=post2;start=60;fantasy-warriors-roleplay=;%25buttonSrc%25=
Apply Filter: Only show the errors with the same message
8: Undefined index: 0
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
Apply Filter: Only show the error messages of this member ιммσятαℓ
Apply Filter: Only show the error messages of this IP address 75.xx
Reverse chronological order of list Today at 08:32:37 PM
Apply Filter: Only show the error messages of this session 9f099886d99e8cbd4f1142eac39cd351
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=post2;start=60;fantasy-warriors-roleplay=;%25buttonSrc%25=
Apply Filter: Only show the errors with the same message
8: Undefined index: 0
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
Apply Filter: Only show the error messages of this member Loner
Apply Filter: Only show the error messages of this IP address 66.xx
Reverse chronological order of list Today at 08:17:20 PM
Apply Filter: Only show the error messages of this session 5b1b9f3833d9dad00ef3754a05a954f2
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=8312;area=showposts;sa=topics
Apply Filter: Only show the errors with the same message
8: Undefined index: 58
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
Apply Filter: Only show the error messages of this member Loner
Apply Filter: Only show the error messages of this IP address 66.xx
Reverse chronological order of list Today at 08:05:30 PM
Apply Filter: Only show the error messages of this session ac9698670f550ad639d2795130b83437
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/prev_next,next/darkclan-leader-and-medicine-cat-den/the-walk-didnt-help...-firey-open-183937.0.html
Apply Filter: Only show the errors with the same message
8: Undefined index: 58
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
Apply Filter: Only show the error messages of this member +Plusle★Minun-
Apply Filter: Only show the error messages of this IP address 71.xx
Reverse chronological order of list Today at 07:50:12 PM
Apply Filter: Only show the error messages of this session 717bd4eaa1f67162b520a5cfc9aa7ac7
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=post2;start=0;fun-stuff=;%5C%27___smf_images_url___%5C%27=;english=;new_gif=
Apply Filter: Only show the errors with the same message
8: Undefined index: 0
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
"Loner" is the word for guest on my site, just so you know. I have attached my site's SimpleSEF file in case it helps. If you want to see possibly associated errors I could look for them. But this thing is glitching like nuts.
Still getting these...
I can say that since i made change to index.template.php (see my post above) i notice that visits from search engines are increasing, more than 10 % ! It is very good 'cause they become decreasing.
I realised that we've been getting this error for a LONG time, here's my post back from August:
Quote from: Groovystar on August 27, 2011, 05:03:04 PM
Hi I am getting this error a lot, it's filling up my error logs:
Quote
Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=post2;start=1020;roleplay-resources-clan-joinings=;%25buttonSrc%25=
Apply Filter: Only show the errors with the same message
8: Undefined index: 0
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
How would I fix this, does anyone know?
$topicName & $boardName returning blank i think its the problem :/
It's related to a board name caching problem in the mod. This mod has been causing crashing and damage on our forum because of the large amount of board changes we have made over time. It is only getting worse, and I don't know how to fix it.
Hey SD,
I just set up a test forum and flooded it with mods to see what I could break with over a hundred modes installed.
SimpleSEF works with most of them
However, 3 of vbgamers mods break it.
Download System and SMFArticles both crash with a 500 error
vbgamer's blog system chokes with
QuoteFirefox has detected that the server is redirecting the request for this address in a way that will never complete.
edit - figured out the blog issue... the blog syste, had it's own "pretty urls" built in, so the system was trying to process it twice. Downloads and articles are both choking, though
everything else that I installed seems to run correctly...
How can i add action to ignored list if this action is not listed in table?
I want to add facebookintegrate because if SimpleSEF is enabled, integration link doesn't work :|
This mod fetches all the actions in SMF automatically, all actions added properly, that is, following all the SMF standards, should appear in the list, if not, ask the mod author of that mod and ask how exactly is adding that action.
I installed SimpleSEF mod but got the following error when moving to next page on boards:
QuoteAn Error Has Occurred!
The page you requested could not be found. Please contact the site administrator if you believe you have reached this page in error.
Any help?
Quote from: InfoStrides on March 20, 2012, 03:52:45 PM
I installed SimpleSEF mod but got the following error when moving to next page on boards:
QuoteAn Error Has Occurred!
The page you requested could not be found. Please contact the site administrator if you believe you have reached this page in error.
Any help?
I'm getting the same error, but only on board ID1.
It's weird, because in the setting, I have it set to know names in the URL. All of my board URL's say "mydomain.com/3/" or "mydomain.com/4/", but link to the proper boards. However, on board ID 1, it says "mydomain.com/board/ which causes the error mentioned in the quote.
My htaccess looks like this:
RewriteEngine On
# Uncomment the following line if it's not working right
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
I guess SimpleSEF isn't compatible with SM F 2.0.2? There are no errors in my log though.
This mods work just fine on SMF 2.0.2 I used it without issues.
Can I see an url where this issue happens.
Quote from: Suki on April 14, 2012, 08:58:05 PM
This mods work just fine on SMF 2.0.2 I used it without issues.
Can I see an url where this issue happens.
Inspire Romance (http://inspireromance.com)
Quote from: Suki on April 14, 2012, 08:58:05 PM
This mods work just fine on SMF 2.0.2 I used it without issues.
Can I see an url where this issue happens.
I can not install it on SMF 2.0.2. It said "Sorry, but this modification does not appear to be compatible with the selected version." Can you help?
Please read this:
How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn%27t_work_in_my_SMF_version)
Quote from: Xarcell on April 14, 2012, 09:10:37 PM
Quote from: Suki on April 14, 2012, 08:58:05 PM
This mods work just fine on SMF 2.0.2 I used it without issues.
Can I see an url where this issue happens.
Inspire Romance (http://inspireromance.com)
Do you have this option enable?
Create Simple URLs
Urls will look like /forum/board-1/, or /forum/topic-3.html instead of content filled.
do you have the SMF setting "Search engine friendly URLs" enable?
Quote from: Suki on April 15, 2012, 11:11:06 AM
Do you have this option enable?
Create Simple URLs
Urls will look like /forum/board-1/, or /forum/topic-3.html instead of content filled.
do you have the SMF setting "Search engine friendly URLs" enable?
No, I do not have it enabled. When I enable it, the links look like this "mydomain.com/board-1.0" and "mydomain.com/board-2.0", but they
all redirect to my homepage instead of the board.
No, I do not have "Search friendly URL's on". They will not enable. I reckon SimpleSEF is preventing that from happening.
Any possible ideas on what could be causing this?
EDIT: now when I disable SimpleSEF it doesn't disable. Even if I clean forum cache. So I uninstalled it and this came up:
QuoteRestore File Permissions
/home/xarcell/public_html/inspireromance.com/Sources/bad-behavior/bad-behavior/banned.inc.php
I uninstalled bad behavior mod and tried it again, with no change. Still doesn't work properly. Now I'm going to try installing it on a test site running on the same server.
Ok, I tested it on a fresh installation of SMF 2.0.2 that is on the same server. Either it does work properly with SMF 2.0.2, or something's wrong with my server. I will continue to try and track down the problem.
Does your server have mod_rewrite enabled..?
Quote from: Yoshi2889 on April 15, 2012, 03:27:00 PM
Does your server have mod_rewrite enabled..?
Supposed to, but I don't see it? http://inspireromance.com/phpinfo.php
You do have it, otherwise you won't be able to use the mod.
It is weird, on all the forums I installed this mod I never saw the board urls to use the ID only, usually the name is used
do you have any other script on your .htaccess file?
I want to assume is a weird server configuration or something else is modifying the urls after simpleSEF
I can't seem to figure it out either.
The only thing in my .htaccess is:
RewriteEngine On
# Uncomment the following line if its not working right
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Which is right according to simpleSEF help. I tried to delete the htaccess after simplesef uninstall, to see if it would recreate it on reinstall , but resulted in a 404 error on my site after I removed it.
I am getting this error in my log. Any idea on what is causing it?
Quotehttp://xxxxxx.com/Test/index.php?action=admin;area=packages;sa=uninstall2;package=SimpleSEF_2.1.tar.gz;pid=0
Could not remove or edit .htaccess file upon uninstall of SimpleSEF
and
Quote
http://xxxxxx.com/Test/index.php?action=admin;area=packages;sa=install2;package=SimpleSEF_2.1.tar.gz;pid=0
8: Undefined variable: hook
File: /home/xarcell/public_html/xarthemes.com/Test/Sources/SimpleSEF.php
Line: 781
When I remove a topic, it will have an "Session verification error". If I disable simpleSEF, I won't have that problem. Please check it. Thanks.
Hi,
I have installed it on SMF 2.0.2 under Nginx 1.2.0, PHP 5.4 fpm+ APC
Th mod has not been recognized the server, i have comment the code :
/* // We don't want to break boards, so we'll make sure some stuff exists before actually enabling
if (!empty($_POST['simplesef_enable']) && empty($modSettings['simplesef_enable'])) {
if (strpos($_SERVER['SERVER_SOFTWARE'], 'IIS') !== false && file_exists($boarddir . '/web.config'))
$_POST['simplesef_enable'] = strpos(implode('', file($boarddir . '/web.config')), '<action type="Rewrite" url="index.php?q={R:1}"') !== false ? 1 : 0;
elseif (strpos($_SERVER['SERVER_SOFTWARE'], 'IIS') === false && file_exists($boarddir . '/.htaccess'))
$_POST['simplesef_enable'] = strpos(implode('', file($boarddir . '/.htaccess')), 'RewriteRule ^(.*)$ index.php') !== false ? 1 : 0;
elseif (strpos($_SERVER['SERVER_SOFTWARE'], 'lighttpd') !== false)
$_POST['simplesef_enable'] = 1;
elseif (strpos($_SERVER['SERVER_SOFTWARE'], 'nginx') !== false)
$_POST['simplesef_enable'] = 1;
else
$_POST['simplesef_enable'] = 0;
} */
otherwise the case enabled simple sef doesn't want keep check.
if i do a php test file with <?php echo '$_SERVER['SERVER_SOFTWARE']' ?>
my server say nginx/1.2.0
not very importante it's work with commented code.
I have some error in my log :
http://forum.domain.org/index.php?action=viewsmfile;filename=latest-news.js;q=viewsmfile%2Ffilename.latest-news.js%2F
8: ob_start(): failed to create buffer
Fichier: /var/www/forum/Sources/SimpleSEF.php
Ligne: 323
and
http://forum.domain.org/index.php?action=.xml;type=rss;q=.xml%2Ftype.rss%2F
8: ob_start(): failed to create buffer
Fichier: /var/www/forum/Sources/SimpleSEF.php
Ligne: 323
The RSS link http://forum.doamin.org/.xml/type.rss/ work but cause error.
How i can correct this ? (all my log is full of this 2 error). "ob_start(): failed to create buffer" is a cache problem ?
Hi,
thanks for the great mod.
I installed it without any errors on smf 2.0.2
I have these two choices enabled without changing the other entries
Enable SimpleSEF
Requires mod_rewrite support or Url Rewrite/web.config (IIS7) support. Create Simple URLs
Urls will look like /forum/board-1/, or /forum/topic-3.html instead of content filled.
Create Simple URLs
Urls will look like /forum/board-1/, or /forum/topic-3.html instead of content filled.
then I also put the provided help code in .htaccess file.
after emptying the cache I found out that the URL was changed correctly
when click on last post it takes me correctly to it and with a html URL of topic.
but when I click on board it gives me the board new link but redirect me to the forum main page again! I already tried with English only board title.
I use English and arabic-utf8 and the above happens in both cases.
any idea what needs to be done here?
thanks
Update:
when I disable
Create Simple URLs
Urls will look like /forum/board-1/, or /forum/topic-3.html instead of content filled.
it actually give me access to boards, but here we have another problem.
if the name of the board in Arabic it actually transliterate the words lol i.e. if the name of the board is Admin board in Arabic it changes it to qism_idari :P
its also so slow when clicking an Arabic titled topic and also does the same to the tittle.
and Idea about this mess
thanks
any idea about the above posted problem?
It's done that way for a reason: there are all sorts of issues with using Arabic in URLs, as in they won't always work properly - which is why this mod's author changed it.
Quote from: Arantor on July 11, 2012, 10:25:16 AM
It's done that way for a reason: there are all sorts of issues with using Arabic in URLs, as in they won't always work properly - which is why this mod's author changed it.
thanks Arantor,
see when I enable "Create Simple URLs" it does the job perfectly to topics. the only problem with is is that it won't allow me to access boards! when I click any board (english or arabic) it loads the main page and display a modified board link!
do you think of any reason for this?
thanks
this one in the mod setting
*shrug* I got nothing, then. The whole point is that it's suppose to transliterate to avoid all kinds of mess in URLs.
ya, as I said when I turn it on the mod works fine with topics. it changes the name to topic_id_number.html yet it will not let me browse boards.
sucks
thanks man for trying.
So what URL does it generate *exactly* for the boards?
http://xxx.com/board_22.0/
and when I access last reply of a topic from board index I get this one for topic
http://xxx.com/topic_8060.msg79454.html#new
I can't help without seeing *exact* URLs, not obfuscated ones. I actually need to see this in action if I'm to stand any chance of helping.
http://ahalna.com
I am going to temp enable the mod for you now so you can test it.
thanks
OK, so that's weird, /board_22/ works but /board_22.0/ doesn't. More curiously, why isn't SimpleSEF picking that up?
So if you disable that option, you get index.php?board=22.0 or something else?
(Honestly, it's really hard trying to do anything with your site because it's sooooo slow, in no small part related to the three different copies of jQuery loaded every page. Note this is unrelated to the problem at hand.)
I think the slowness is related to sipleportal or one of the current sections as when I go to fields with no portal it is fast. thanks for the note I will look into it soon.
now I disabled that option. SEF is still enabled I get
http://ahalna.com/mn_ldr_l_lD/ for board 22 (first one)
and for topics
http://ahalna.com/mn_ldr_l_lD/hln_mwbyl_4358.0.html
it transliterate the words
that's why I need the option to be enabled to have just numbers of board/topic, yet it wont let me access boards.
(Edit: the slowness was related to the tag cloud. disabled)
This mod does not offer the option for turning transliteration on or off.
If you just want the numbers of the board/topic, why are you bothering with this mod at all?
Quote from: Arantor on July 18, 2012, 02:50:02 PM
This mod does not offer the option for turning transliteration on or off.
If you just want the numbers of the board/topic, why are you bothering with this mod at all?
do you have any recommendation for me?
Not using the mod and just using SMF's own index.php?board=22.0 and index.php?topic=1234.0 URLs...?
Quote from: Arantor on July 18, 2012, 03:12:06 PM
Not using the mod and just using SMF's own index.php?board=22.0 and index.php?topic=1234.0 URLs...?
so changing .php to .html does not enhance SEF?
if so then I guess I will just uninstall it and use the default as you mentioned.
no, php versus html was a "SEO hint" from 10 years ago. It serves less than zero purpose today...
Actually back then it was the query string. Now there is basically no difference besides making a easier to remember URL for your users. So SEO is out the window with this mod. I use it though, not for SEO but the nice URL.
QuoteSo SEO is out the window with this mod
That would be the case if it were this mod we were really discussing. There is, however much you might like to deny it, a small but tangible SEO benefit for using a pretty URLs mod, provided that your site is being linked to by other people (because the link then gets keywords in the description text, but that's it, and for most sites the actual increase in SEO is so small it won't even be noticed)
When you're discussing index.php/board,2.0.html vs index.php?board=2.0 this is an old tip from the days when search engines would ignore the query string because they didn't understand how to differentiate content (which was before canonical URLs and other things)
I heard Google was planning to lower its algorithm for keywords in the domain and URL. However keywords in the URL do hold some significance, keyword domains hold more, but that may all change pretty soon.
The only feasible reason I can think anyone would like to install this mod is it makes URLs easier to remember.
*edit
Me lost again, Every time I see this topic I keep thinking Pretty URLs, which is a completely different mod.
I was hoping to find a mod that changes the Arabic words. I have seen this before in but don't remember if it was vb or smf.
anyways you guys are great, many thanks and especially Arantor
Hi,
Nobody for my error (see post above)
I have some error in my log :
Code: [Select]
http://forum.domain.org/index.php?action=viewsmfile;filename=latest-news.js;q=viewsmfile%2Ffilename.latest-news.js%2F
8: ob_start(): failed to create buffer
Fichier: /var/www/forum/Sources/SimpleSEF.php
Ligne: 323
and
Code: [Select]
http://forum.domain.org/index.php?action=.xml;type=rss;q=.xml%2Ftype.rss%2F
8: ob_start(): failed to create buffer
Fichier: /var/www/forum/Sources/SimpleSEF.php
Ligne: 323
The RSS link http://forum.doamin.org/.xml/type.rss/ [nofollow] work but cause error.
How i can correct this ? (all my log is full of this 2 error). "ob_start(): failed to create buffer" is a cache problem ?
Is there a setting anywhere to choose not to use a trailing slash on the urls? For example to have mysite.com/forum instead of my site.com/forum/ ?
doing that would be WRONG, since .../forum/ is the forum directory.....
It's in order to keep it consistent with the rest of our site. All pages do not end with a slash, and I would like to keep it that way in the forums as well. To slash or not to slash isn't a rule but an aesthetic preference, and in our case consistency would be helpful. Any ideas?
Actualy, it is not just a preference. Forum/ is the forum directory. You have already removed the filename, index.php... The other urls formed by the mod are not actual directories... Which is why the ending slash is optional.... Sort of. Every pretty URL that I have seen actually uses the ending slash.
Btw, if you are using this mod because you think it improves seo with those urls, you are mistaken.
@travisbwy Cannot be done unfortunately. The way this mod works is as follows: action/sa.subaction/action.value it is strictly related to how SMF handles actions and subations as well, the / is not only for aesthetics but serves as a separator between the different actions SMF can handle.
I just changed folders for the smf install and simplesef is showing on in package installs but the control panel link is gone. Is there a separate url config for simplesef that I'm missing?
Simple SEF is working on my one forum hosted with Fatcow.com But it is not working with my other forum hosted with Siteground. URL rewriting is not working.
I have asked this in another thread, kindly read that as well: http://www.simplemachines.org/community/index.php?topic=488819.0
Will some one please reply? First it was working http://www.mobilefun.pk/forum/index.php here if i select "Create Simple URLs" but not working without it. But now even this is not working. When I click on my topi, it opens the main website mobilefun.pk Currently I've disable this Mod. Please help me why this is not working.
Thanks.
This mod breaks the pagination ... href urls for the start and order variables. That is when you click on the ... for example [1] 2 3 ... 17 pagination: when clicking on the ... your start will be presented with a %1 and the order gets a $d. I am trying to pinpoint the root cause of this, but could take me awhile...
Nope...
got it working just fine on my site...
This mod is sufficiently smart enough to know the type of params an url is giving... is its just integers then it shows it as .int where int is the number to show, you might want to check how you are generating your urls...
Oh, wait, I see the problem, I had SimpleSEF version 1.1 installed on the forum, yet there is now a 2.1 version. That is the problem, I'll just update to 2.1.
OMG this Mod is crazy!!!! Now I can't access my board URL's after installing SimpleSEF 2.1 and enabling it. I don't have Search Engine Friendly URL's enabled in SMF Features and Options, and am not even able to enable it either. In any case...
This URL doesn't work (redirecting to the Homepage instead): http://dream-portal.net/board_65.0/
But this URL does work: http://dream-portal.net/board_65/
WHY?
My .htaccess looks like this:
RewriteEngine on
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
What is wrong here? Wow, I've been doing this 1 thing for 4 hours now... it's exhausting trying to set this up correctly...
Can anyone help? I feel like I'm working on my car instead of just uploading and installing an SMF Mod. And I know this is a problem with this MOD, because I have also tested this on a fresh install of SMF 2.0.2 and SMF 2.0.3. I am unable to access the board_1.0/, but board_1/ works instead.
You don't need to specify the .0 after the board name, simpleSEF cuts off that part when re-writing the urls in the buffer.
Again, the mod is sufficiently smart enough to not let you enable the mod if you didn't porperly set up your .htaccess file, there are instructions on the mod's admin page for several web servers, are you using apache?
Quote...simpleSEF cuts off that part when re-writing the urls in the buffer.
No, simpleSEF did not cut off that part at all. Not even when I enabled it on a fresh install of SMF 2.0.2 and SMF 2.0.3.
Here's how I fixed this problem for those of you who will also discover this issue...
in your .htaccess file, use the following...
RewriteEngine on
RewriteBase /
RewriteRule ^(board_[0-9]+)\.0/$ $1 [L,R=302]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
You're Welcome!
Also, this is still a problem with board=65.20 urls. Don't understand what simpleSEF is supposed to do when working correctly for these types of urls. In any case, the best thing I recommend doing is not using this mod at all and just use Search Engine Friendly URLS in SMF's Features and Options within the SMF Admin.
Quote from: SoLoGHoST on January 07, 2013, 12:27:39 AM
Also, this is still a problem with board=65.20 urls. Don't understand what simpleSEF is supposed to do when working correctly for these types of urls. In any case, the best thing I recommend doing is not using this mod at all and just use Search Engine Friendly URLS in SMF's Features and Options within the SMF Admin.
http://missallsunday.com/blog_40/
http://missallsunday.com/blog_20/
and so on...
This is how you should handle those urls...
http://missallsunday.com/blog/
this is how board url works, no need to add the board ID, it is pointless unless you have 2 different boards with the same name and when that happens, simpleSEF is smart enough to add the ID for you.
there is no need to fix anything that it isn't broken, much less to say this is a bogus mod because it isn't, please do not confuse people just because you couldn't understand how this mod works in the first place...
When you install a mod and do exactly what it says to do on a FRESH install of SMF 2.0.3 and/or SMF 2.0.2, and you create a .htaccess as the Mod tells you to do in order to enable the Mod to begin with. When you follow all of the steps that the Mod tells you to do, and in the end, it does not work, or messes up your board_20 urls, what is this mod than? If it's not bogus, than it's definitely something else!
I understand what it is supposed to do with the board urls throughout your forum, I also understand what the mod tells you to do with a .htaccess file in your SMF Root Directory. This is not the first mod that I ever installed on a forum, and being a Mod Creator myself, I assure you that I'm well capable of identifying that a Mod has a problem when in fact it does, and when a Mod doesn't have a problem due to other circumstances that prevent the mod from working correctly.
My final result: This mod messes up your board urls in SMF 2.0.2 and SMF 2.0.3 when installing using emulation and creating a .htaccess file (as the mod states to do), and enabling this Mod via the SimpleSEF Admin Panel. Furthermore, I'm not 100% sure, but I do believe that this mod screws up pagination when clicking on the ... on any pagination other than the Admin sections of your SMF Forum.
@Suki - You have not tried to install this mod on a Fresh Install of SMF 2.0.3 or SMF 2.0.2 (with no other mods installed), otherwise you will understand if you have done so. I'm not talking about your site. You're site is custom coded to be honest. I'm talking about installing this Mod on a fresh install of SMF 2.0.2 and/or SMF 2.0.3 and following the instructions that this mod tells you to do in your .htaccess file of your SMF Root. Once completed you will see that your board urls do not work properly. And there are instances where the . after the board number is not always 0, because this has to do with boards that have more topics in them that will show at once. Pagination of topics within Boards... For example: 3 pages of topics in a board (with an id of 65) will have the following board urls:
Page 1: index.php?board=65.0
Page 2: index.php?board=65.20
Page 3: index.php?board=65.40
So what is SimpleSEF urls for all three of these URLS?? huh?
If SimpleSEF is supposed to change the urls as follows:
board_65/
board_6520/
board_6540/
None of these URLS will work after you install SimpleSEF with what they tell you to do.
Furthermore, if you are supposed to use the Boards name instead of the Boards ID number and board... example:
{board name}/
{board name}_20/
{board name}_40/
Than why doesn't SimpleSEF change the board urls for you on your forum? All of the board urls remain unchanged and instead point to: board_{id}/
QuoteIf SimpleSEF is supposed to change the urls as follows:
The idea is that it shouldn't become board_65 but take on the SimpleSEF name for the board, e.g. myboard, myboard_20, myboard_40. For some reason that didn't happen.
Ok, the problem is the "Create Simple URLs" setting within this mod. This breaks your board links! If you disable this setting, it works. So, there ya go! You can see what I mean by going here: http://developers.dream-portal.net/smf203/
Clicking on the board does not load up the board. However, if you go to this url: http://developers.dream-portal.net/smf203/board_1/ it loads up the board. But if you have pages of topics in that board, I don't know what the URL is supposed to be for that when "Create Simple URLs" is enabled. In any case, this mod is now uninstalled, my site urls are working again and thank god!
Quote from: SoLoGHoST on January 07, 2013, 10:27:26 PM
So what is SimpleSEF urls for all three of these URLS?? huh?
If SimpleSEF is supposed to change the urls as follows:
board_65/
board_6520/
board_6540/
None of these URLS will work after you install SimpleSEF with what they tell you to do.
._____.
Of course those urls won't work because THATS A WRONG URL, I already told you twice but you don't want to listen... the urls created by this mod DOESN'T NEED THE BOARD ID, you don't need to put the board ID there...
And thank you for implying that I haven't installed this mod on a fresh vanilla SMF installation but thats not the case... I have installed this mod not only on fresh smf installs but also on several web servers and not only on apache. I had installed this mod on both a fresh install and also on some heavily modified forums, always with the same result, 100% success.
You keep trying to do something that this mod just doesn't do because there is no need to add the board ID... also, if you keep changing this mod settings, you need to make sure to clean your forum's cache regularly otherwise you will get non working urls and then you will blame the mod and marked it as bogus...
Quote from: Suki on January 07, 2013, 11:39:39 PM
Quote from: SoLoGHoST on January 07, 2013, 10:27:26 PM
So what is SimpleSEF urls for all three of these URLS?? huh?
If SimpleSEF is supposed to change the urls as follows:
board_65/
board_6520/
board_6540/
None of these URLS will work after you install SimpleSEF with what they tell you to do.
._____.
Of course those urls won't work because THATS A WRONG URL, I already told you twice but you don't want to listen... the urls created by this mod DOESN'T NEED THE BOARD ID, you don't need to put the board ID there...
And thank you for implying that I haven't installed this mod on a fresh vanilla SMF installation but thats not the case... I have installed this mod not only on fresh smf installs but also on several web servers and not only on apache. I had installed this mod on both a fresh install and also on some heavily modified forums, always with the same result, 100% success.
You keep trying to do something that this mod just doesn't do because there is no need to add the board ID... also, if you keep changing this mod settings, you need to make sure to clean your forum's cache regularly otherwise you will get non working urls and then you will blame the mod and marked it as bogus...
Cleaning the forum cache will not make a difference when "Create Simple URLs" is enabled! Your board urls are still broken.
Ok, what I've learned. This Mod works when "Create Simple URLs" is Disabled.
When "Create Simple URLs" setting is ENABLED (that is checked and saved), this mod breaks your board urls. The "Create Simple URLs" setting changes your board urls to board_1.0/ and board_2.0/ etc. etc.. I have emptied out the forums cache numerous times already, this does NOTHING!
So, in short, this mod works when "Create Simple URLs" is DISABLED! But when it is enabled, it breaks your board links, and I also believe it will break your pagination links that become visible when you click on the
... in pagination.
"Create Simple URLs" SimpleSEF Setting is located just underneath "Enable SimpleSEF" setting, and states the following:
QuoteUrls will look like /forum/board-1/, or /forum/topic-3.html instead of content filled.
This may or may not have something to do with the error I received on installation of this mod (as I haven't looked into that) within the SMF Error Log:
Quote
8: Undefined variable: hook
File: ./Sources/SimpleSEF.php
Line: 781
To Replicate this bug in SimpleSEF, just install the Mod (via SMF Package Manager) emulating SMF 2.0 for SMF 2.0.3. Now go to the Mods settings (which you will be automatically redirected to), and Enable SimpleSEF and also enable "Create Simple URLs" (just underneath of that). Save it, and now check out your Board Links within your forum (when clicking on the names of your boards). They take you NOWHERE! Clear your forums cache and BAM, you still go NOWHERE when clicking on your board names that are supposed to open up the topics in that board... Boards never get loaded! The END!
OK, for those suffering from this mod adding a noindex metatag.
This mod does not actually add that intensionally, what happens is that SMF checks the $_GET var directly, the checks are performed on Sources/ Display, Board and MessageIndex.
Since SimpleSEF re-writes all $_GET vars, by the time SMF checks those, there will be already changed, thus the checks will be trigger and SMf will set the $context['robot_no_index'] to true.
A simple hackish and nasty fix would be adding the check to see if SimpleSEF is enable and include that check with the $_GET checks, so in Display.php:
change this
// Let's do some work on what to search index.
if (count($_GET) > 2)
foreach ($_GET as $k => $v)
{
if (!in_array($k, array('topic', 'board', 'start', session_name())))
$context['robot_no_index'] = true;
}
if (!empty($_REQUEST['start']) && (!is_numeric($_REQUEST['start']) || $_REQUEST['start'] % $context['messages_per_page'] != 0))
$context['robot_no_index'] = true;
to this:
// Let's do some work on what to search index.
if (count($_GET) > 2 && empty($modSettings['simplesef_enable']))
foreach ($_GET as $k => $v)
{
if (!in_array($k, array('topic', 'board', 'start', session_name())))
$context['robot_no_index'] = true;
}
if (!empty($_REQUEST['start']) && (!is_numeric($_REQUEST['start']) || $_REQUEST['start'] % $context['messages_per_page'] != 0) && empty($modSettings['simplesef_enable']))
$context['robot_no_index'] = true;
So far SimpleSEF has handle all possible bad urls by itself and I haven't had any issue that I couldn't handle via robots.txt
The other checks can be easily spotted, just do a search by $context['robot_no_index'] on the files I mentioned and append the empty($modSettings['simplesef_enable']) check.
I've installed simpleSEF v.2.1 on my SMF 2.0.4 forum and enabled the advanced options.
The URLs are rewritten to show the board and topic names instead of the IDs, however I also get pieces like topic number, message number, "topicseen.", "boardseen.", "msg#","new" etc. in the rewritten URLs. I've added some of these words to the "words to strip" list, but they still show up in the URLs.
Example: /boardseen./Testimonials/manjaro_netinstall_3020.msg101719.html#new
All suggestions welcome.
Well, you aren't suppose to strip off those names and numbers these are all vital for your forum.
And if any of them are in the URL - which, most of the time they won't be for bots anyway - the page specifically includes a meta robots noindex rule, and suggests to search engines that they use the canonical version of the page instead.
Quote from: Arantor on March 15, 2013, 10:53:50 AM
And if any of them are in the URL - which, most of the time they won't be for bots anyway
they actually are, alway...
why would #new ever be in the url for a bot?
also... why does your url include .html?
(Does this mod add that? I didn't think so...)
msg should be, yes, but new is based on read/not read status and guests don't have that tracked. Same for boardseen and topicseen. So if that part is in the URL and not for guests, you got something else quite wrong.
.html is added with the built in feature of SMF (search engine friendly URLs IIRC). I don't think it plays nice with this mod, not sure, but these mods don't play nice with other features either.
yeah, that's what I thought, Yoshi.
Unless this mod replaces the standard SMF SEF, I think that the user has both this mod and the "SEF URLs" turned on at the same time.... (in other words, Leppie, you are probably misconfigured)
As ofr this mod and other features... this one definitely works better than the prettyurls version.
Actually I'm fairly sure this mod does add .html to the URLs.
Quote from: Arantor on March 15, 2013, 12:43:51 PM
Actually I'm fairly sure this mod does add .html to the URLs.
Sorry, I'm not familiar with these mods at all. If this mod does add .html, please ignore me :)
why would it do such a silly thing?
Because users seem to think it's important.
Also, I'd note that we ended up removing it from simpledesk.net because it was so buggy.
users are wierd...
It adds a setting for you to decide what extension you want to have, the only bad thing is that it is required to have an extension. Users actually required this feature.
I don't mind having .html at the end it is a pure cosmetic thing.
hmmm... as I said, user's are wierd.
I don't mind having the extension, (as you say, it is cosmetic) I just don't quite understand their insistance on it.
but... back to Leppie...
I still agree with Arantor - there is somethign very odd (and likely incorrect) in Leppie's setup, which is causing odd behavior - because many of those urls should not be seen by search engines
I'm also having issues with urls that should not be view and much less indexed by search engines.
Thing is, bots crawl anything and I mean anything, google webmaster tools had reports about my site with urls such as: missallsunday.com/admin/login/register/ and this urls were actually indexed, this urls are totally made up urls as neither this mod or SMF can create such urls, sending a sitemap and applying some rules on my robots.txt did help in reducing the indexing of those silly urls but I still cannot find the problem as to why these urls were indexed in the first place as I haven't even entered the admin section about bots an ds search engines.
Quote from: Kindred on March 15, 2013, 11:05:59 AM
why would #new ever be in the url for a bot?
also... why does your url include .html?
(Does this mod add that? I didn't think so...)
this mod adds either ".html" or ".php"...
Quote from: Kindred on March 15, 2013, 01:09:56 PM
but... back to Leppie...
I still agree with Arantor - there is somethign very odd (and likely incorrect) in Leppie's setup, which is causing odd behavior - because many of those urls should not be seen by search engines
These links are not the ones for search engines, but the ones simpleSEF generates when using the forum as a user.
I couldn't care less about nice URLs for search engines...
Quote from: Arantor on March 15, 2013, 11:06:54 AM
msg should be, yes, but new is based on read/not read status and guests don't have that tracked. Same for boardseen and topicseen. So if that part is in the URL and not for guests, you got something else quite wrong.
These appear when members use the forum. There are not that many settings in this mod, so it sounds like the mod isn't working properly as I have no other mods installed to alter the URLs.
If this is how the mod's behaviour is supposed to be, it's not as useful/nice as they make it appear.
Actually, I'm removing this mod. Issue solved.
/me starts the countdown on how long it is before you complain that boardseen, topicseen etc. turn up anyway in URLs.
lol.... you had everyone fraking out and looking at code because you did not clearly explain your issue to start with, Leppie.
boardseen, #new, etc. are CORRECT in the URLwhen a MEMBER is viewing the forum
... and, As Arantor points out, they will be in the standard forum URLs as well.
Quote from: Kindred on March 16, 2013, 07:54:19 PM
lol.... you had everyone fraking out and looking at code because you did not clearly explain your issue to start with, Leppie.
boardseen, #new, etc. are CORRECT in the URLwhen a MEMBER is viewing the forum
... and, As Arantor points out, they will be in the standard forum URLs as well.
You really could've fooled someone there...
huh? could've fooled someone with what?
if I install this mod, will all the links to the topics also be changed or still work?
As with any sef mod... All,links will be changed
May i know if SimpleSEF 2.0 works with SMF 2.0.4 ?
Quote from: rolyqq on May 05, 2013, 06:09:53 AM
May i know if SimpleSEF 2.0 works with SMF 2.0.4 ?
I do not work :-\
It does work with any 2.0.x installation, the only bug it has is the one where a $_GET var isn't properly unset and SMF set the $context['robot_no_index'] to true because of that in some areas, other than that it works OK:
Hi.
I don't know if the bug is reported... but... when "fixHooks" is executed, broke the Database...
Well... it not broke all database, but it don't save "settings" correctly.
For be more accurate: It delete "integrate_buffer" and maybe "integrate_pre_load" and "integrate_exit" (I dont the two rest).
¿How to fix?
Goto line 778.
$fixups['integrate_pre_load'] = 'SimpleSEF::convertQueryString,' . str_replace(',SimpleSEF::convertQueryString', '', $hook['integrate_pre_load']);
If you see: $hook['integrate_pre_load']
The bold $var is wrong, it will be $hooks.
And the same in the line 781 and 784.
It give me a lot of head breaks, because my forum was at 85 % and now I need to reinstall all for avoid problems and I have to save the users and posts...
At margin of this, thanks for made the mod!
Sorry for my bad english.
Regards.
Hello is compatible with the mod SimpleColorizer> http://custom.simplemachines.org/mods/index.php?mod=3067
I have it on my forum and the good stops working SimpleColorizer.