Joomla + SMF + Coppermine Installation guide.

Discuss the integration of SMF here.
n1kki6
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 161
Joined: Wed Aug 24, 2005 3:46 pm

Joomla + SMF + Coppermine Installation guide.

Post by n1kki6 » Tue Sep 13, 2005 5:40 am

I had posted this on mamboserver.com but with joomla now being the direction i thought i should probably post it here also.  This is the guide with all stable versions.  I always ran into problems using the beta versions.

Program Installs - All to the same database

1. Install Joomla(this was orginally written with mambo so their might be some changes i didnt come accross)

2. Install SMF from Simple Machines

3. Install Coppermine 1.3.4 from Coppermine

4. Make sure all programs succesfully run as standalones.

SMF Integration


1. Download and unzip MOS_SMF_BRIDGEv3.19a_stable.zip  from mamboforge.

2. Install the file smf_mambo3.1.tar.gz with your SMF package manager.

Make sure, that when you see the screen that lists "Success" next to the filenames,
that you click "Proceed".  The mod will not install until you click "Proceed".

3.  Install com_smf.zip as a Mambo component, and change the values in the configuration
via the Mambo backend.

Please use the absolute path.  There is a lot of confusion surrounding relative paths. 
You are best to use the absolute path.

You can choose to use bridge registration or smf registration, if you use bridge it will use the mambo reg. form and if you use smf it will use the smf reg. form.  Dont matter either way, its personal preference.

4.  Install com_smf_registration.zip as a Mambo component this is if you want to share your user information in both SMF and Mambo.

This is the common registration component for Mambo and SMF.

This uses the registration options in your Mambo admin> Global Configuration,
just like the Mambo default registration.

5. a) Install mod_smf_login.php as a module.

b) Go to your Mambo template (root/templates/current_template/index.php), and add the following code, right before
the tag:

Code: Select all

<?php 
global $sc, $context;

if (!defined('SMF')){
  require ("administrator/components/com_smf/config.smf.php");
  require ($smf_path."/SSI.php");
}

$sc = &$context['session_id'];
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];

mysql_select_db($mosConfig_db);
?>
c) also add the following code just above the tag:

Code: Select all

<?php mysql_select_db($db_name); ?>
d) Publish the smf login module, and unpublish the default Mambo login module.

Coppermine Integration
1. Go to the bridge directory and open smf.inc.php with an editor.

2. Edit Line 50 to point to your smf installation directory.

3. Save smf.inc.php.

4. Edit the file include/init.inc.php. At the beginning of the file you will find the following lines :

Code: Select all

// User database integration
// Uncomment the applicable line if you want to use it
// define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');
// define('UDB_INTEGRATION', 'vbulletin23');
// define('UDB_INTEGRATION', 'vbulletin30');
// define('UDB_INTEGRATION', 'yabbse');
// define('UDB_INTEGRATION', 'smf');
// define('UDB_INTEGRATION', 'woltlab21');
// define('UDB_INTEGRATION', 'punbb');
Replace

Code: Select all

// define('UDB_INTEGRATION', 'smf');
with

Code: Select all

define('UDB_INTEGRATION', 'smf'); 
5. Save init.inc.php

6. Upload both files.

7. Synchronsising the bbs groups with Coppermine's groups

Login using the admin account of your board. Go to the gallery, enter admin mode and click on the "Groups" button. This will synchronize Coppermine groups with those of your board. The permission you will see for each group will be completely messy, so take some time to set them properly.

Each time you add or delete a group in your board you will need to do the operation above in order to keep the synchronisation of the groups.

When you will try to login / logout or manage users from Coppermine, you will be redirected to the corresponding page of your bulletin board. Once the login or logout is performed you won't be redirected automatically to the gallery because your board does not have any function for that. It's up to you to add a link on your board to get you back to the gallery.

Getting coppermine to display within mambo wrapper.

1. Upload attached com_wrapper component files this will assure proper fitment.

2. Create a menu link using the wrapper to the coppermine directory. Example: /gallery

set the height

Scroll Bars: No
Width:  100%
Height: 100%
Auto Height: Yes
Auto Add: NO

For and added touch to the SMF board follow the instructions here.  This will link to each persons gallery on their posts.

http://www.simplemachines.org/community ... opic=28318.

in the member gallery link make sure to change the component id to the correct id for your gallery.

Thats should be it, you will have to make your component link to the forum too but all of the integration should be working.

Edit:Sept 19th, i forgot to attach the com wrapper files.
You do not have the required permissions to view the files attached to this post.
Last edited by n1kki6 on Fri Sep 23, 2005 1:59 pm, edited 1 time in total.

 
fulltilt
Joomla! Explorer
Joomla! Explorer
Posts: 425
Joined: Thu Sep 01, 2005 1:27 pm
Location: Sydney, Australia
Contact:

Re: Joomla + SMF + Coppermine Installation guide.

Post by fulltilt » Tue Sep 13, 2005 7:44 am

thanks for that :) the procedure sounds pretty much what I have been practicing because I have a number of sites that want/need a Joomla+SMK+Coppermine base.

One thing I've yet to do though is get my head around the CSS requirements for all 3 so that they can all use the one template - is that possible ?  Is it easy ?

Joombla
Joomla! Intern
Joomla! Intern
Posts: 71
Joined: Mon Sep 12, 2005 7:54 am

Use THIS component if you want to use 1.4.1 BETA!

Post by Joombla » Tue Sep 13, 2005 8:52 am

I have now FINISHED my Coppermine Visual Integration Component (Its for CPG 1.4.x).

You can view an example and download it at my site: www.joomBla.com  (mambo + smf + CPG 1.4) All VISUALLY integrated.

Its much easier to use and requires no file editing

Todd
----------
www.joombla.com
Last edited by Joombla on Wed Oct 12, 2005 1:39 am, edited 1 time in total.

xec
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 238
Joined: Fri Aug 19, 2005 3:04 am

Re: Joomla + SMF + Coppermine Installation guide.

Post by xec » Wed Sep 14, 2005 9:19 am

Thank you so much for this guide. Will help this newbie tremendously. ;D

User avatar
sheps
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Tue Sep 06, 2005 5:33 pm
Location: UK
Contact:

Re: Joomla + SMF + Coppermine Installation guide.

Post by sheps » Sun Sep 18, 2005 4:13 pm

I've just tried setting up the bridge with SMF and Coppermine with Joomla integration - had a slight issue with the coppermine integration.

I've editted the relevant php files and FTP'd them - but now each time I go to log into Coppermine - can't login :(

It takes me to the login screen of SMF - which is fine - but when I browse to the url of coppermine still doesn't say I'm logged in?

Anyone got any ideas??  Using SMF v.1.0.5 and Coppermine 1.3.4.

Thanks in advance.

Orstio
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 162
Joined: Thu Aug 18, 2005 2:10 am
Location: Canada
Contact:

Re: Joomla + SMF + Coppermine Installation guide.

Post by Orstio » Sun Sep 18, 2005 7:22 pm

It takes me to the login screen of SMF - which is fine - but when I browse to the url of coppermine still doesn't say I'm logged in?
Ah, yes, that's because of the method used to display Coppermine inside the Mambo page.  It doesn't pass any information to Mambo/Joomla to read cookies or sessions. It besically does a CURL to display the info on the page, which the site then sees as a guest, not as a logged in user.

That said, you are logged in, despite what the form on the Coppermine page says. 
"Freedom is not merely the opportunity to do as one pleases; neither is it merely the opportunity to choose between set alternatives. Freedom is, first of all, the chance to formulate the available choices, to argue over them -- and then, the opportunity to choose." - C. Wright Mills

n1kki6
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 161
Joined: Wed Aug 24, 2005 3:46 pm

Re: Joomla + SMF + Coppermine Installation guide.

Post by n1kki6 » Mon Sep 19, 2005 3:34 pm

sheps wrote: I've just tried setting up the bridge with SMF and Coppermine with Joomla integration - had a slight issue with the coppermine integration.

I've editted the relevant php files and FTP'd them - but now each time I go to log into Coppermine - can't login :(

It takes me to the login screen of SMF - which is fine - but when I browse to the url of coppermine still doesn't say I'm logged in?

Anyone got any ideas??  Using SMF v.1.0.5 and Coppermine 1.3.4.

Thanks in advance.
Make sure to do this and run coppermine in the wrapper, this will pass the session id. http://www.simplemachines.org/community ... opic=28318.

I forgot to attach the wrapper files, they are in the first post now.
Last edited by n1kki6 on Mon Sep 19, 2005 3:36 pm, edited 1 time in total.

User avatar
sheps
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Tue Sep 06, 2005 5:33 pm
Location: UK
Contact:

Re: Joomla + SMF + Coppermine Installation guide.

Post by sheps » Mon Sep 19, 2005 5:18 pm

n1kki6 wrote: 7. Synchronsising the bbs groups with Coppermine's groups

Login using the admin account of your board. Go to the gallery, enter admin mode and click on the "Groups" button. This will synchronize Coppermine groups with those of your board. The permission you will see for each group will be completely messy, so take some time to set them properly.

Each time you add or delete a group in your board you will need to do the operation above in order to keep the synchronisation of the groups.

When you will try to login / logout or manage users from Coppermine, you will be redirected to the corresponding page of your bulletin board. Once the login or logout is performed you won't be redirected automatically to the gallery because your board does not have any function for that. It's up to you to add a link on your board to get you back to the gallery.
I'm unable to login to the Gallery using the board administrator - when I log in it takes me to the SMF screen?  Am I syncing from SMF or through Coppermine?

Not getting any luck?  ANy idea's?

n1kki6
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 161
Joined: Wed Aug 24, 2005 3:46 pm

Re: Joomla + SMF + Coppermine Installation guide.

Post by n1kki6 » Mon Sep 19, 2005 5:26 pm

Do you have coppermine wrapped, i dont use the coppermine login at all i actually took it off.  I login through the mambo smf login and it logs me into all.

fenyullow
Joomla! Intern
Joomla! Intern
Posts: 67
Joined: Wed Aug 31, 2005 2:34 am
Contact:

Re: Joomla + SMF + Coppermine Installation guide.

Post by fenyullow » Tue Sep 20, 2005 12:35 am

Problem for the integration of the SMF+JOOMLA

I followed all the instructions, and finally was able to complete the installation and integration (had to make a few changes for the permission though). I fnished all the five steps, then I tried to log in at the joomla frontend or went to the forum frontpage to log in, I got following error

8: Undefined property: login
File: /home2/user/public_html/ktzl/forum/Sources/MOS_SMF.php
Line: 48

I checked the line 48 at MOS_SMF.php, it's an empty line.

Any ideas?

Thanks
Last edited by fenyullow on Tue Sep 20, 2005 12:39 am, edited 1 time in total.

Orstio
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 162
Joined: Thu Aug 18, 2005 2:10 am
Location: Canada
Contact:

Re: Joomla + SMF + Coppermine Installation guide.

Post by Orstio » Tue Sep 20, 2005 12:45 am

8: Undefined property: login
File: /home2/user/public_html/ktzl/forum/Sources/MOS_SMF.php
Line: 48

I checked the line 48 at MOS_SMF.php, it's an empty line.

Any ideas?
Go to your Joomla admin panel.  Go to the Modules Menu.  Click on Site Modules.

In the list of modules, find the mod_smf_login module.  It might not be on the first page.  Click on it.

Edit the params to your liking, and make sure to click Save at the top of the page.
"Freedom is not merely the opportunity to do as one pleases; neither is it merely the opportunity to choose between set alternatives. Freedom is, first of all, the chance to formulate the available choices, to argue over them -- and then, the opportunity to choose." - C. Wright Mills

fenyullow
Joomla! Intern
Joomla! Intern
Posts: 67
Joined: Wed Aug 31, 2005 2:34 am
Contact:

Re: Joomla + SMF + Coppermine Installation guide.

Post by fenyullow » Tue Sep 20, 2005 12:53 am

Orstio wrote:
8: Undefined property: login
File: /home2/user/public_html/ktzl/forum/Sources/MOS_SMF.php
Line: 48

I checked the line 48 at MOS_SMF.php, it's an empty line.

Any ideas?
Go to your Joomla admin panel.  Go to the Modules Menu.  Click on Site Modules.

In the list of modules, find the mod_smf_login module.  It might not be on the first page.  Click on it.

Edit the params to your liking, and make sure to click Save at the top of the page.
Thanks, that works.

Now I have another question, in the mudule, I set both "Login Redirection URL" and "Logout Redirection URL" back to mambo homagep, but the result is it still redirect to the SMF forum instead. Please help!

Thanks

Orstio
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 162
Joined: Thu Aug 18, 2005 2:10 am
Location: Canada
Contact:

Re: Joomla + SMF + Coppermine Installation guide.

Post by Orstio » Tue Sep 20, 2005 1:16 am

Is your integration wrapped or unwrapped?
"Freedom is not merely the opportunity to do as one pleases; neither is it merely the opportunity to choose between set alternatives. Freedom is, first of all, the chance to formulate the available choices, to argue over them -- and then, the opportunity to choose." - C. Wright Mills

fenyullow
Joomla! Intern
Joomla! Intern
Posts: 67
Joined: Wed Aug 31, 2005 2:34 am
Contact:

Re: Joomla + SMF + Coppermine Installation guide.

Post by fenyullow » Tue Sep 20, 2005 1:57 am

Orstio wrote: Is your integration wrapped or unwrapped?
Unwrapped.

Orstio
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 162
Joined: Thu Aug 18, 2005 2:10 am
Location: Canada
Contact:

Re: Joomla + SMF + Coppermine Installation guide.

Post by Orstio » Tue Sep 20, 2005 2:05 am

That could be your issue.  The redirect is very heavily dependent on the Joomla session, which isn't opened in the unwrapped forum.

You can fix it in the file MOS_SMF.php in your SMF Sources directory:

Find:

Code: Select all

	  $returncheck="1";
Change to:

Code: Select all

	  $returncheck="0";
There should be two instances of this in the file, the first for login, the second for logout.
"Freedom is not merely the opportunity to do as one pleases; neither is it merely the opportunity to choose between set alternatives. Freedom is, first of all, the chance to formulate the available choices, to argue over them -- and then, the opportunity to choose." - C. Wright Mills

fenyullow
Joomla! Intern
Joomla! Intern
Posts: 67
Joined: Wed Aug 31, 2005 2:34 am
Contact:

Re: Joomla + SMF + Coppermine Installation guide.

Post by fenyullow » Tue Sep 20, 2005 3:01 am

It works. Thanks a lot.  :D

fenyullow
Joomla! Intern
Joomla! Intern
Posts: 67
Joined: Wed Aug 31, 2005 2:34 am
Contact:

Re: Joomla + SMF + Coppermine Installation guide.

Post by fenyullow » Tue Sep 20, 2005 3:09 am

One more question  ;)

In the smf login modulen at the backend, I set all the parameters to be "Hide". When I log in, it appears correct, all the greeting, message are not show. But when I log off, I still see the greeting, date, time, etc,like below

Welcome, Guest. Please login or register.
September 19, 2005, 10:04:51 PM

Any way I can avoid that?

Thanks again.

exichlo
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Wed Sep 21, 2005 10:57 am

Re: Joomla + SMF + Coppermine Installation guide.

Post by exichlo » Fri Sep 23, 2005 8:25 am

n1kki6 wrote: SMF Integration


1. Download and unzip MOS_SMF_BRIDGEv3.19a_stable.zip  from mamboforge.

2. Install the file smf_mambo3.1.tar.gz with your SMF package manager.

Make sure, that when you see the screen that lists "Success" next to the filenames,
that you click "Proceed".  The mod will not install until you click "Proceed".
Could anyone help me? I got stuck at step 2.

I have installed/uploaded the smf_mambo3.1.tar.gz package. And when clikking on "Apply Mod" I got these errors:

8: fwrite() [function.fwrite]: send of 69 bytes failed with errno=32 Broken pipe
File: /**********/forum/Sources/Subs-Package.php
Line: 2875

or

An Error Has Occurred!
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

I'm using SMF 1.1 RC1.

robbievk
Joomla! Apprentice
Joomla! Apprentice
Posts: 39
Joined: Fri Sep 16, 2005 6:58 am
Location: Texel
Contact:

Re: Joomla + SMF + Coppermine Installation guide.

Post by robbievk » Fri Sep 23, 2005 8:43 am

CHMOD your SMF-folders to be writeable...

exichlo
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Wed Sep 21, 2005 10:57 am

Re: Joomla + SMF + Coppermine Installation guide.

Post by exichlo » Fri Sep 23, 2005 10:02 am

I forgot to CHMOD Sources folder  8)

I got a little bit futher... now stuck at integrating Coppermine.

After editing

smf.inc.php line 50 ->  $path = '../forum';
include/init.inc.php ->  define('UDB_INTEGRATION', 'smf');

I tried to access Coppermine and got this error:

Fatal error: Call to undefined function cache_get_data() in /usr/home/web/*****/gallery/bridge/smf.inc.php(127) : eval()'d code on line 10

Did I do something wrong? Maybe the path of smf installation directory is wrong?

xtremecruiser
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Sep 23, 2005 8:21 pm

Re: Joomla + SMF + Coppermine Installation guide.

Post by xtremecruiser » Fri Sep 23, 2005 8:34 pm

I am going to ask a really stupid question here, well maybe 2 of them and I warn you there will be many more.

I have SMF and Coppermine on one DB so they work together.  Do I need to use the smae DB for the Joomla install ?
IE do I need to use the same DB for the Interation ?  Or can I have a separate DB for the Joomla ?

I have test site backup so I wont kill the main one.
Thanks

Orstio
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 162
Joined: Thu Aug 18, 2005 2:10 am
Location: Canada
Contact:

Re: Joomla + SMF + Coppermine Installation guide.

Post by Orstio » Sat Sep 24, 2005 12:23 am

You can have Joomla and SMF in separate databases.  But, you must make sure that your SMF database user has access to your Joomla database, and your Joomla database user has access to your SMF database.
"Freedom is not merely the opportunity to do as one pleases; neither is it merely the opportunity to choose between set alternatives. Freedom is, first of all, the chance to formulate the available choices, to argue over them -- and then, the opportunity to choose." - C. Wright Mills

xtremecruiser
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Sep 23, 2005 8:21 pm

Re: Joomla + SMF + Coppermine Installation guide.

Post by xtremecruiser » Sat Sep 24, 2005 1:34 am

Orstio wrote: You can have Joomla and SMF in separate databases.  But, you must make sure that your SMF database user has access to your Joomla database, and your Joomla database user has access to your SMF database.
???

exichlo
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Wed Sep 21, 2005 10:57 am

Re: Joomla + SMF + Coppermine Installation guide.

Post by exichlo » Sat Sep 24, 2005 7:07 am

My opinion is use all 3 in the same database. It's much easier that way.

xtremecruiser
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Sep 23, 2005 8:21 pm

Re: Joomla + SMF + Coppermine Installation guide.

Post by xtremecruiser » Sat Sep 24, 2005 1:44 pm

exichlo wrote: My opinion is use all 3 in the same database. It's much easier that way.
Thats what I was thinking although I would like to keep them separate with just the smf and galley combined.  Looks like I need to setup a test site just for this.
Thanks

Orstio
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 162
Joined: Thu Aug 18, 2005 2:10 am
Location: Canada
Contact:

Re: Joomla + SMF + Coppermine Installation guide.

Post by Orstio » Sat Sep 24, 2005 6:40 pm

exichlo wrote: My opinion is use all 3 in the same database. It's much easier that way.
That being easier is opinion rather than fact.  If you use Fantastico to install, it will automatically be installed in a separate database, in which case it is far easier to leave it in two databases, and just ensure that each database user has access to the other database.

Two databases can also make it much easier to manage a very large website, because the database backup files are smaller and more managable.

I usually suggest that if you have a very large and active site (500+ posts/day) you are far better off using separate databases.
"Freedom is not merely the opportunity to do as one pleases; neither is it merely the opportunity to choose between set alternatives. Freedom is, first of all, the chance to formulate the available choices, to argue over them -- and then, the opportunity to choose." - C. Wright Mills

xtremecruiser
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Sep 23, 2005 8:21 pm

Re: Joomla + SMF + Coppermine Installation guide.

Post by xtremecruiser » Sat Sep 24, 2005 8:33 pm

Orstio wrote:
exichlo wrote: My opinion is use all 3 in the same database. It's much easier that way.
That being easier is opinion rather than fact.  If you use Fantastico to install, it will automatically be installed in a separate database, in which case it is far easier to leave it in two databases, and just ensure that each database user has access to the other database.

Two databases can also make it much easier to manage a very large website, because the database backup files are smaller and more managable.

I usually suggest that if you have a very large and active site (500+ posts/day) you are far better off using separate databases.

Ok how do I get them to access each other if I use one for smf and coppermine and 1 forJoomla ?

alexalecu
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Sep 19, 2005 12:27 pm

Re: Joomla + SMF + Coppermine Installation guide.

Post by alexalecu » Sun Sep 25, 2005 12:49 pm

i followed the tutorial from the first post, and i managed to integrate all 3 together.
but, i have 2 problems:
- login problem: when i login using the login module (the smf module), it only logges me into smf, i'm not logged in into joomla or coppermine...  :( anyone knows how to solve this problem ?
- when i used the admin account to create a new user (into smf), an user with the same name was created into joomla (jos_users table). this means that, if i want to add some users to smf_members table (using a mysql script), i'll also have to add them to jos_users table ?

User avatar
zigzag
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 249
Joined: Tue Sep 20, 2005 9:03 pm
Location: Elsewhere

Re: Joomla + SMF + Coppermine Installation guide.

Post by zigzag » Wed Sep 28, 2005 4:11 pm

I have smf & joomla integrated but I'm stuck on coopermine,
I've followed the first steps :
Coppermine Integration
1. Go to the bridge directory and open smf.inc.php with an editor.
2. Edit Line 50 to point to your smf installation directory.
3. Save smf.inc.php.
4. Edit the file include/init.inc.php. At the beginning of the file you will find the following lines :
etc.

But when I go to coppermine I get:
Fatal error :
There was an error while processing a database query

???

User avatar
sheps
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Tue Sep 06, 2005 5:33 pm
Location: UK
Contact:

Re: Joomla + SMF + Coppermine Installation guide.

Post by sheps » Mon Oct 03, 2005 1:20 pm

I am well pleased - after FINALLY being able to integrate Joomla / SMF / Coppermine into my Joomla project!

After numerous amendments to my hosting setup - i.e. configuring my domain to have the default web address of http://www.mydomain.co.uk instead of http://mydomain.co.uk.&nbsp; Didn't help as this domain was with a new host so assumed setup was the same as old provider!

Once I knew I had everything in place correct I followed the above guide once again.

My only recommendation to the installation is:-

Ensure that you are able to apply the mod files for SMF through the SMF screen.  I had SAFE MODE enabled on my php.ini with my host - and when I editted files the relevant files it wouldn't work.  Eventually got SAFE MODE disabled would allow me to install the SMFbridge step 1 without any problems.

 

Locked

Return to “SMF - Simplemachines.org Forum”