No Support > Feature requests

Call Coppermine as an inclusion?

(1/1)

aaalexxx:
I call all the pages on my homepage via "include". That means I have the "main" page, let's call it goto.php. So, if I want to go to the guestbook I enter http://www.myhomepage.com/goto.php?location=guestbook

What would be perfect, was if I could do the same with coppermine. Something like http://www.myhomepage.com/goto.php?location=photogallery&sub=displayimage&album=1&pos=1

Then I could add the followig code to the goto.php:


--- Code: ---<?php
if &#40;$location == "photogallery"&#41; &#123;
  $query_string = substr&#40;getenv&#40;"QUERY_STRING"&#41;, strpos&#40;getenv&#40;"QUERY_STRING"&#41;, "&"&#41; + 1&#41;;
  $coppermine_page = substr&#40;$query_string, 4, strpos&#40;$query_string, "&"&#41; - 4&#41;;
  $query_rest = substr&#40;$query_string, strpos&#40;$query_string, "&"&#41; + 1&#41;;
  include&#40;$coppermine_dir . $coppermine_page . "?" . $query_rest&#41;;
&#125;
?>
--- End code ---

Maybe also:

How about making Coppermine call its own subpages via an "index.php"?

I'm not too sure if the phpnuke version would be what I need, although I don't have phpnuke installed??

Aleks.

PS. If I couldn't make myself clear post your questions here I'll try to answer them :)

Joachim Müller:
won't work this way (at least not without massive modifications of coppermine) - check the template/theme stuff instead; you can make coppermine look&feel&smell just like the rest of your homepage.

GauGau

Navigation

[0] Message Index

Go to full version