You can now download a zip file which contains all the files required to mod rewrite geeklog 1.3.9.sr1. Click here to Download glmodrw1.02
Its been noticed that geeklog has moved upto 1.3.9.sr2. We recommend that you upgrade accordingly and enjoy the extra security. This minor update has only affected the language files in modrewrite.
So you can now download a zip file which contains all the files required to mod rewrite geeklog 1.3.9.sr2. Click here to Download glmodrw1.03
glmodrw1.03 also includes a rewrite rule for the help directory. it was found in previous versions of glmodrw that the .html files in the help directory were being refreshed to the index page. This is no longer a problem.
.
Please take the time to look at the readme file or click the read more link for instructions.
Geeklog Mod Rewrite Read Me File:
You must have installed a fully working version of geeklog 1.3.9.sr1 or above in order to apply this radical hack. It is impossible to include these files and then install a rewritten version of geeklog.
So assuming you have an installed working geeklog you can just unzip and upload the folders and files included in this download and everything should work. The only thing you need to make sure about is to edit the correct path of /config.php on line 69 in the lib-common.php file.
This website is merely running on a dreamhost virtual server account. I haven't had to make any special requests regarding apache or server settings to make these changes apply. This doesn't mean to say that this will not be the case for anyone else.
Please Note: VERY IMPORTANT FOR ANYONE LOOKING TO REWRITE AN EXISTING GEEKLOG WEBSITE...please do not just overwrite an existing geeklog website, without fully testing everything first or backing everything up.
My advice is to:
Create a subdomain or work in a seperate subfolder of your domain.
Install a new geeklog in this subdomain or subfolder.
Make a backup of your existing websites database.
Dump the sql into your new database.
You have now created a mirror of your website where you can now try out this hack.
Upload all your modrewrite files into your new mirror and hopefully you will have a mirror website showing static urls, which you could swap with your original site in a multitude of ways if you feel that everything is fully running ok.
If you are not worried about 5 mins of possible downtime and want to try this quickly, then as long as you have original copies of your geeklog files uploading this hack should be of no risk.
Using this hack on a lower version of geeklog 1.3.9.sr1 is totally untested and unlikely to work without errors. If you are on a lower version of geeklog, then upgrade to 1.3.9.sr1 first, then use this hack.
PLEASE NOTE THIS ABOUT TOPICS:
There is one slight inconvenience regarding topics. It appears to be impossible to add new topics in this mod rewritten version of geeklog, without editing line 1975 in lib-common.php back to its original state of:
$sections->set_var( 'option_url', $_CONF['site_url']
. '/index.php?topic=' . $A['tid'] );
when you have added your topics you need to replace this line back to:
$sections->set_var( 'option_url', $_CONF['site_url']
. '/' . $A['tid'] . '/');
and then topics become static again. I don't know of a way round this yet. I have included a copy of lib-common.php called lib-commonaddingtopics.php.
This copy has line 1975 in its original state, so it makes it more convenient to merely rename these files and upload according to whether or not you are adding topics or not. (don't forget line 69 in libcommonaddingtopics.php needs the correct path to config.php if you are going to use it for renaming your lib-common).
A little topics.txt file is included as help so that you never mess anything up when adding topics.
A NOTE ABOUT COMMENTS:
if you leave your default Comment Mode in config.php as threaded, you will have an author link showing in dynamic form in replied comments. To solve this you merely change this default setting to flat or nested. I recommend using flat, i found that nested throws out the page layout in the theme i am using.
Click here to Download now