Website Integration Website Integration
 

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

Main Menu

Website Integration

Started by ddmf, May 16, 2004, 12:20:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ddmf

I'm trying to integrate coppermine into a site i'm doing for a client, i've had a look through the forum and not really found anything that would help -> i've tried a few things and have failed miserably, along with all this my php sucks...

Basically, I want to display a category under a specific link on the main site, but not show any coppermine menus, just the pics and the comments, the only person who should see the full gallery will be the guy who uploads the pictures to the site.

I have multiple categories, main, body styling, tuning, gauges. The main site has menu links such as tuning, gauges, gallery.

So when someone clicks gallery, they only see the main gallery category - when someone clicks tuning they only see the tuning category.

the site is currently at: http://clients.dundeemedia.com/awd

I tried setting the links on the menu to point to cpg/index.php?cat= (see the styling link on the menu) -> however, this means i have to have a main site template, and a coppermine template (practically identical), then i'd have to create a secondary template for the gallery admin with menu/admin menu included

Is there anyway I can include the category directly?

Cheers

ddmf

anybody? even a small pointer where to look would be helpful... i'm losing my hair over this!  ???

Joachim Müller

#2
just disable the bits you don't like by commenting out the html code (not the var or function istelf) from themes/yourtheme/theme.php

Take a look at http://coppermine.sourceforge.net/faq.php?q=removeFeature#removeFeature for an example.

GauGau

P.S. Usually you use the word *bump* if nobody replies. Please read http://coppermine.sourceforge.net/faq.php?q=lamesupport#lamesupport as well

ddmf

#3
I'm not wanting to modify the theme or template, per se -> i want the guy who's going to maintain the site to see a full coppermine gallery, however i'd like info on how to show a category, including all the nav options etc from within an include so that the end user only sees a list of pics with comments and such like, ie, can i call one function and set some variables, or will i have to hack my way through the code.

it's mostly my lazy ass fault, but at this moment in time i don't have the time to do anything more than lightly skip through the code, otherwise i'd be in there like flint...

ps i could have used bump, yes, but i didn't, thanks for the netiquette lecture!  ;)

Joachim Müller

like I said, edit your theme. Let the admin have one theme (a hidden one, with all the whistles and bells he needs) and the general public another one (the default theme with all surplus options removed).

GauGau

ddmf

Ahh, I had thought of that but dismissed it as i didn't think it'd work... err... how would i make it work? is there a theme= variable i can pass in the url, or can i set one user group to use one theme, and another user group another... hmm... maybe there's something to think about!

cheers man! wicked gallery you have!

Joachim Müller

there's indeed a var called "theme" you can use in the url. Take a look at the demo, play with the theme selector - should give you an idea.

GauGau