SimpleSEF 2.0 (SMF 1.1.x and SMF 2.0)

Started by SlammedDime, December 05, 2009, 10:08:40 PM

Previous topic - Next topic

ben sisko

#980
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;

?>

SlammedDime

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

ben sisko

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?

SlammedDime

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

ben sisko

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

SlammedDime

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

ben sisko

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

SlammedDime

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

SlammedDime

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

grafitus

Why work PHP5+ only? Is it OOP for? Can't do with loadClassFile() for below PHP5?

SlammedDime

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

Masterd

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

Arantor

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.
Holder of controversial views, all of which my own.


feline

There is no good reason why OOP works only with PHP 5.
It worls with php 4 as well ... see our portal  :D

SlammedDime

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


feline

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  ;)

SlammedDime

SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

SlammedDime

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

SlammedDime

There's been 4 downloads... anyone who downloaded have any feedback?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Advertisement: