coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: jayos on August 24, 2004, 01:28:43 PM

Title: Coppermine + SMF Install details req
Post by: jayos on August 24, 2004, 01:28:43 PM
I have Coppermine 1.3.2 installed with 'who is online' block mod and working just fine

I have just downloaded the latest SMF release and the smf.inc.php file and would like to install it so it integrates with coppermine

What is the correct way to do this ?

Title: Re: Coppermine + SMF Install details req
Post by: Nibbler on August 24, 2004, 01:41:32 PM
The correct way is to read the documenation and post if you have a specific question or problem. Note you will need to alter the mod for it to work properly with SMF.
Title: Re: Coppermine + SMF Install details req
Post by: jayos on August 24, 2004, 01:56:33 PM
Nibbler,  I understand how to install smf I just wanted to check how to bridge it correctley

I am just starting out with PHP and I only have basic knowledge of HTML but I'm learning fast

so I run smf/install.php enter the SQL details, upload smf.inc.php, change the onlinestats.php file and it should work  :o

trying now .... will let you know what happens
Title: Re: Coppermine + SMF Install details req
Post by: jayos on August 24, 2004, 04:20:31 PM
Everything installed OK but I have a few problems

I can only login with smf admin none of my coppermine users are recognized and I am using the same database
Title: Re: Coppermine + SMF Install details req
Post by: Nibbler on August 24, 2004, 04:36:16 PM
None of your coppermine users will be recognised because they are not users in SMF. If you have existing coppermine users either they have to register in SMF or you need to register them yourself, either manually or with a conversion script. This is why I recommended reading the docs about bridging first.
Title: Re: Coppermine + SMF Install details req
Post by: jayos on August 24, 2004, 06:36:36 PM
Can I not just use the same SQL tables for coppermine and SMF ?

where can I find the docs about bridging I have looked everywhere :-\\

Title: Re: Coppermine + SMF Install details req
Post by: Nibbler on August 24, 2004, 07:04:30 PM
http://www.jaypix.co.uk/gallery/docs/index.htm#integrating
Title: Re: Coppermine + SMF Install details req
Post by: jayos on August 24, 2004, 07:14:44 PM
Thanks nibbler

should have looked there in the first place
Title: Re: Coppermine + SMF Install details req
Post by: Joachim Müller on August 25, 2004, 10:50:13 AM
You should rather have looked at the "Documentation" link at the top of this screen, or read the documentation that comes with coppermine (the "docs" folder). The correct link is http://coppermine.sourceforge.net/manual.php#integrating, not the one Nibbler (accidentally) posted.

GauGau
Title: Re: Coppermine + SMF Install details req
Post by: jayos on August 25, 2004, 01:35:10 PM
Ok I am now getting there (Hooray)  ;D  Thanks guys

Please tell me if I am posting this in the wrong place

As my experience with php is extremely limited hopefully someone can help with my next challenge

I am trying to add a button to the index.template.php file (if it were html I could do it) so I have a link to my coppermine gallery like this :

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.jaypix.co.uk%2Fimages%2Fjaypix%2520forum.jpg&hash=5cbb5befd830a622c42199210d2d2839a301e357)

The code I have found is below :

// Show the [home] and [help] buttons.
echo '
<a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" />' : $txt[103]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" />' : $txt[119]), '</a>', $context['menu_separator'];


Can I just add this code ?:

<a href="', $scripturl, '?action=gallery" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/gallery.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" />' : $txt[119]), '</a>', $context['menu_separator'];

Do I have to define the action gallery somewhere ?
Whats the txt varable refering to what number should I change it to ?


Title: Re: Coppermine + SMF Install details req
Post by: kegobeer on August 25, 2004, 03:47:47 PM
If you want SMF specific help, I recommend going to http://www.simplemachines.org and looking at their Graphics/Templates board.  They have a lot of great tutorials and info there.
Title: Re: Coppermine + SMF Install details req
Post by: jayos on August 25, 2004, 04:01:45 PM
I think I'm slowly getting the hang of the basics  :o

Thanks for the pointer kegobeer

problems now solved