Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: It would be nice if index.php could be named something else.  (Read 7527 times)

0 Members and 1 Guest are viewing this topic.

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
It would be nice if index.php could be named something else.
« on: August 22, 2005, 08:23:25 pm »

It would be nice if index.php could be named something else.  Index.php should be a blank, customizable form with a single link or button depending on the theme style to the renamed coppermine index.php. This would allow webmasters to create a homepage to their liking.  A number of templates could also be included in the coppermine package to give users a quick start.

Dennis
« Last Edit: August 23, 2005, 02:47:25 pm by Nibbler »
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Nibbler

  • Guest
Re: It would be nice if index.php could be named something else.
« Reply #1 on: August 22, 2005, 08:24:18 pm »

Renaming the index.php file is already possible in 1.4
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: It would be nice if index.php could be named something else.
« Reply #2 on: August 22, 2005, 08:55:14 pm »

Renaming the index.php file is already possible in 1.4

Well, almost... there are some links in the menus that do not work as a result.  "My Gallery" is one.  There are others that call up URL's with index.php.  The same applies to 86 other files. 

Sorry, but I changed all the URLS in theme.inc to reflect my renaming of index.php and while it works in user mode, changes don't register in admin mode.  So, this is not going to work. So, is this a BUG?

Thanks 




Dennis
7 weeks of html and php with coppermine and already I feel like I spent two years in tradeschool.
« Last Edit: August 22, 2005, 09:15:16 pm by madeinhawaii »
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Nibbler

  • Guest
Re: It would be nice if index.php could be named something else.
« Reply #3 on: August 22, 2005, 09:25:49 pm »

Make a bug report then. :)
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: It would be nice if index.php could be named something else.
« Reply #4 on: August 23, 2005, 11:11:10 am »

Renaming the index.php file is already possible in 1.4

Ah nibbler,

I think we misconstrued each other.  What is possible in 1.4 is not the renaming of index.php but rather the redirection of the homepage URL under CONFIG/GENERAL settings.  All of my browers have redirection blocks, so it's I have to click an additional two times to get to my new homepage URL.  NOT a very good first impression for customers who may have the same block on.

So, what I was suggesting as a new feature was to have index.php named something else, so that the webmaster could use a blank, totally customizable, yet theme coordinated 'index.php' file as the default homepage without redirection.


Dennis
ps. if you agree to what I stated above, it would be nice if you could undo the DONE on this one .  Thanks
« Last Edit: August 23, 2005, 11:22:02 am by madeinhawaii »
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: It would be nice if index.php could be named something else.
« Reply #5 on: August 23, 2005, 10:34:03 pm »

Sorry, but I disagree on how useful this would be to the majority of users.
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: It would be nice if index.php could be named something else.
« Reply #6 on: August 24, 2005, 12:29:50 am »

Sorry, but I disagree on how useful this would be to the majority of users.

Hi tranz,

Imagine if you change host servers? The redirect for someone like me who has a redirection block on my browswer would require me to click 4 times before I got to your home page.  I certainly would not go that far to get there.  I'd have bad feelings about your website before I even ventured there.

I buy over $40,000 worth of goods each year online.  You would miss out on a percentage of my business. As a professional businessperson, I cannot afford to lose customers due to multiple redirection.

FYI, I did change all the index.php entries in the many files of coppermine to a new name. Created a blank index.php with the "require include/init.inc.php".  Made a fresh install, then ported all of my database sections with the exception of sessions and managed to get it up and running on my local server.  Now when I type in my domain name, I am taken to a blank homepage with all the basic trimmings and menu items of whatever theme I choose.  No more redirection, and no iffy plug-ins.  I added a couple new menu items in theme.inc like "about us" and "artist´s notes" and now I have a complete website ready for upload --that is once I get my paypal options all sorted out.

 
 Dennis

« Last Edit: August 24, 2005, 03:21:50 am by madeinhawaii »
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: It would be nice if index.php could be named something else.
« Reply #7 on: August 24, 2005, 08:00:49 am »

Maybe I don't understand what you want since I don't know what you're talking about. What redirect? What does changing host servers have to do with this? I'm not using redirects on my site. ARgh is how you made me feel. ugh.
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: It would be nice if index.php could be named something else.
« Reply #8 on: August 24, 2005, 08:42:54 am »

Maybe I don't understand what you want since I don't know what you're talking about. What redirect? What does changing host servers have to do with this? I'm not using redirects on my site.

Under the Config menu, there is the option to change your Homepage URL from the default index.php in CPG 1.4x.  So, if Coppermine is in the root directory of your domain, the casual visitor who types in your domain address would be directed to your new Homepage URL and not Cpg's index.php.   I suppose this was built-in so that the web administrator could design a custom home page that the visitor would arrive at first before the familiar category list page that most of us see when we open Coppermine.  It's a nice touch as Coppermine's index.php is somewhat lacking as a 'homepage'.

The method used in Coppermine is redirection. Similar to the following code.

<?php
     header("Location:http://www.your_domain.com/your_new_homepage_URL");
     exit();
?>

The problem with redirection is that many people don't like it.  Especially those with kids and those who have been victimized by online identity theft, like me.  When I set out to design my site, I set all of the parental controls in my browsers on so as to design a site that is welcome to all.


Dennis
7 weeks of HTML and PHP and feeling like I spent two years in tradeschool.
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: It would be nice if index.php could be named something else.
« Reply #9 on: August 24, 2005, 11:05:03 am »

[ot]
If you're on apache as a webserver and your webhost allows you to do so, you should do any redirects using a .htaccess file. Fastest, best way - I can only recommend this option.
[/ot]

I feel like Thu - I can't see how redirection and the name of coppermine's index file relate. There's no real benefit in renaming the file, except additional load for many users, who don't need a second index page and would hate it to be redirected once the browse the coppermine folder.

All the stuff you're trying to accomplish can be achieved by proper use of .htaccess (on IIS, similar methods are available). Marking this thread as "turned down", sorry.

Joachim
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: It would be nice if index.php could be named something else.
« Reply #10 on: August 25, 2005, 04:10:21 am »

[ot]
If you're on apache as a webserver and your webhost allows you to do so, you should do any redirects using a .htaccess file. Fastest, best way - I can only recommend this option.
[/ot]


Thanks Gaugau,

I'll look into a .htaccess file option.  I've only been at html and php for 7 weeks, and my only exposure to .htaccess was the one created by the SEF URL plug-in which when installed made it impossible to change themes in anything but album list and search.  But I see now that it has other functions and will definitely look into it.  Coppermine has been an excellent learning experience to say the least.  And having two versions to compare and study (1.33 and 1.41) makes it even better.

Thanks again,

Dennis

Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: It would be nice if index.php could be named something else.
« Reply #11 on: August 25, 2005, 04:35:14 am »

Just FYI, the cpg-minicms plugin for 1.41 includes a way to redirect requests for the index.php page when no category has been specified.  (It does use an http redirect to do it though)

It is used to implement the blog functionality of the "related" page.

The method could be used in a smaller plugin to achieve the same thing.

The config option was simply to provide a convenient way to send folks ALL THE WAY HOME.  For example, if you installed the gallery in http://my.website.com/gallery

You could set the home page to be "/" which is the root of the domain

So clicking on home inside of your gallery would send them all the way to the top.

It only affects the displayed menu, not the underlying coppermine code, and it wasn't meant for users to be able to rename index.php, as this user found out.
« Last Edit: August 25, 2005, 04:43:04 am by donnoman »
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: It would be nice if index.php could be named something else.
« Reply #12 on: August 25, 2005, 05:25:35 am »

Just FYI, the cpg-minicms plugin for 1.41 includes a way to redirect requests for the index.php page when no category has been specified.  (It does use an http redirect to do it though)

Thanks donnoman,

I actually did play with minicms for a spell and I liked it.  BUT I uninstalled it to trace a bug in switching themes (which was actually related to SEF URL and not minicms) and haven't been able to get it to reinstall and work again. :-(    Since there is no support for 1.4.  I figured I would just let it ride for now.

Thanks again,

Dennis
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 20 queries.