Page 1 of 1

rename index.php to portfolio.php

Posted: 27 Mar 2011, 15:34
by olivewhite
Hi there :)

i am happy to use and set up v2.6.4
i am tweaking and it works fine exepting for one thing. For technical reasons, I ve renamed index.php to portfolio.php but of course i get troubles with sending to a friend and sharing features that redirect to olivewhite.com/#/myfolder/mypicture.jpg instead of olivewhite.com/portfolio.php#/myfolder/mypicture.jpg

Any way to tweak this?

Thanks in advance :D

Re: rename index.php to portfolio.php

Posted: 29 Mar 2011, 10:42
by mjau-mjau
If you are using a separate page to run Imagevue, then why not have it run under a separate folder entirely instead? For example olivewhite.com/portfolio/?

Re: rename index.php to portfolio.php

Posted: 29 Mar 2011, 15:48
by olivewhite
well
i wish i could do that but i can't change my current images folder. I have another index.php i have to use on my website root.

Re: rename index.php to portfolio.php

Posted: 30 Mar 2011, 03:00
by mjau-mjau
This could be tweaked by editing a few of the PHP scripts. I will get Nick to take a look ...

Of course this means all the send-link scripts will target "portfolio.php" instead of index.php (root index) ...

Re: rename index.php to portfolio.php

Posted: 30 Mar 2011, 03:02
by olivewhite
thank you so much Karl :D

Re: rename index.php to portfolio.php

Posted: 30 Mar 2011, 04:53
by Nick
Hmm why not move the whole gallery to /portfolio folder and change that index.php you're having? What is exactly the technical reason you're mentioning?

Also if you use /portfolio.php the link will be olivierwhite.com/portfolio.php#content/etc

You can edit the email templates in iv-includes/templates/sendlink.html and add porftolio.php there:
Code
<a href="[galleryURL]portfolio.php#/[path]">
Same can be done with index.share.phtml, change
Code
$refreshUrl = '?';
			} else {
				$refreshUrl = '#/';
to
Code
$refreshUrl = 'portfolio.php?';
			} else {
				$refreshUrl = 'portfolio.php#/';

Re: rename index.php to portfolio.php

Posted: 30 Mar 2011, 12:59
by olivewhite
:D
Thank you so much Nick
I have to do this because i can't move my current content folder that is placed just at the root of my domain. I would like to move everything to a subfolder 'portfolio' but it would break my images url for my fotomoto shop. That's the reason.
Will try your fine tune
Thanks again
:D