View Full Version : rename the index.php?
09-12-2006, 12:31 PM
i hope this is not a stupid question...
is it actually possible to rename the index.php while keeping pixelpost working, e.g. by changing values in the database?
i'm asking this, because i would like to have something like "pixelpost.php" instead of index.php, for being able to have another "index.php" (of a CMS) at the root.
i have searched the forum, but couldn't find an answer...
09-12-2006, 01:10 PM
Is there any reason you need to rename index.php other than to run muliple apps? If that's all your are trying to do in changing the file name, you might consider running PP out of a subdirectory of your root and running your CMS at the root. I.e. http://www.a-visual-notebook.at for your CMS, and http://www.a-visual-notebook.at/pp/ or something similar for pixelpost.
That said, it is almost certainly possible to do what you are asking, but wouldn't be very convenient. You would have to go through and edit all of the files, and remove index.php and put in pixelpost.php. You would also have to check all of the code to make sure that anywhere "index.php" is assumed such as urls that look like /?x=about, that the file name you choose gets in there between the slash and the questionmark. Doing this makes it hard to upgrade when new versions are released, because you have to repeat the process every time you want a newer version. You will also have to check every addon to be sure it isn't using or assuming index.php.
09-12-2006, 01:15 PM
no, it is not possible.
but if you want to run a CMS at the same webspace, you can always move Pixelpost to another folder. I think it is described in the wiki...
But remember, if people set their bookmarks to your PP index.php and now they get Joomla! or whatever... is that helpful?
Michael, long time not seen here, welcome back!
09-12-2006, 03:56 PM
another way to do this (only aesthetically though) would be through mod rewrite with a .htaccess file - if this sounds like what you want i can show you how. but you are not renaming the file this way - just giving it another name really.
09-12-2006, 05:04 PM
hi connie, hi you all!
thanks a lot for your precious help!
you're right, the best solution would be to move my current installation to another folder.
in fact, the only reason to consider a cms is an idea that i've been bearing in my mind for quite a long time now, and maybe there's even another way to realize it...:
actually i'm a little bit tired of always just showing one image after the other, so i would prefer to rather show groups of three (in some cases maybe two) images, in that way, that the thumbnails are NOT changing with each thumb being clicked, but that they remain at their position for all three images, as long as a "previous" or "next" link is clicked, that would lead to the next group of images.
i hope this doesn't sound too wierd to you ;) i just wanted to explain, why i was asking for that renaming the index. while following that upcoming project, i would like to keep my photoblog running, and let the user choose, whether he wants to see the standard photoblog or the new project.
09-12-2006, 05:08 PM
I wouldn't mind if you include the photoblog in a CMS somehow, PP is a small nice application, not the very famous "eierlegende Wollmilchsau" ;=)
09-12-2006, 05:15 PM
i absolutely agree with you connie, and i think it's part of the strength of pixelpost not to deal with "non-photoblog" ideas!
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.