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: Call Coppermine as an inclusion?  (Read 10533 times)

0 Members and 1 Guest are viewing this topic.

aaalexxx

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Call Coppermine as an inclusion?
« on: September 22, 2003, 01:12:39 pm »

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: [Select]
<?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;
?>

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 :)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Call Coppermine as an inclusion?
« Reply #1 on: September 22, 2003, 04:54:56 pm »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 20 queries.