News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

[OBSOLETE] How to Integrate Coppermine with SMF

Started by dtm.exe, July 09, 2005, 04:59:26 PM

Previous topic - Next topic

Aravot

FYI latest stable release of CPG is 1.3.3 you might want to upgrade you installation.

Carlos Gandra

I've re-started the process:

in Fantastico, I have removed coppermine
I have downloaded the stable 1.3.3 coppermine version, edited the two files mentioned by Dan in the first page, uploaded it by FTP to public_html/coppermine.
In browser, I have appointed to mundodosanimais.com/coppermine/install.php
I have put the mambo/smf database correctly
Installation was a success
The same error appears again :( :( :( :(

Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE or '$' in /home/ac99/public_html/coppermine/bridge/smf.inc.php on line 126

I really want to integrate forum and album... but it seems that I can't >:(
Carlos Gandra
Mundo dos Animais

Aravot

Did you change the file(s) before installing coppermine?

I am free today if you want PM me your info I'll see if I can have it up and running.

Kindred

what program are you using to edit the php file?

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Carlos Gandra

To edit php files I use Namo Web Editor. I am using this program for all php files that need to be edited, no problems have been occurred before coppermine

Aravot I will send a Pm to you ;)
Carlos Gandra
Mundo dos Animais

Aravot

Quote from: ac99 on August 15, 2005, 08:15:42 PM
Aravot I will send a Pm to you ;)

Coppermine is up and running if you want me to do the bridge thingy too PM me.

Aravot

ac99,

Your mistake was / is smf folder is in caps 'SMF' that is why you are having error, and in coppermine you wrote the path as 'mysite.com' instead of www.mysite.com

DaveOaks

Quote from: Aravot on July 26, 2005, 08:02:37 PM
Quote from: YahMan on July 26, 2005, 07:29:15 PM
Simple question, how do I add a 'gallery' button in the default theme?


// The [gallery] button
echo '
<a href="http://www.replace_with_your_damin.com/cpg_folder">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/gallery.gif" alt="' . 'Gallery' . '" style="margin: 2px 0;" border="0" />' : 'Gallery'), '</a>', $context['menu_separator'];


When I try this on the index.template.php file, I get a parse error.... Am I editing the wrong page?
Any ideas?

Thanks

Aravot

Quote from: DaveOaks on August 17, 2005, 07:46:53 PM
Quote from: Aravot on July 26, 2005, 08:02:37 PM
Quote from: YahMan on July 26, 2005, 07:29:15 PM
Simple question, how do I add a 'gallery' button in the default theme?


// The [gallery] button
echo '
<a href="http://www.replace_with_your_damin.com/cpg_folder">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/gallery.gif" alt="' . 'Gallery' . '" style="margin: 2px 0;" border="0" />' : 'Gallery'), '</a>', $context['menu_separator'];


When I try this on the index.template.php file, I get a parse error.... Am I editing the wrong page?
Any ideas?

Thanks

The code is OK, search for

// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];


add the gallery code after above calendar code make sure not to replace or overwrite another code

DaveOaks

Worked Perfect!

Thanks!

I had placed it last after everything else :P

judymcl

#110
QuoteDan, the bridge/smf.inc.php file has the following warning near the top:

WARNING : Do not activate this bridge if you already have pictures or usergroups in your gallery.     

Does this mean that existing pictures will be erased?


Yes, unfortunately they are erased, however you can save them and do the bridging with some preliminary work.

I have moved my CPG a few times now, and bridged it successfully twice now. You can retain your photos from your original gallery prior to bridging, but it takes a bit of work. I find it is easier if you use a fresh install of CPG into a new directory then move your contents. Also, it is easier if you are not using the "User gallery" feature. However it can be done if users are using it.

Here is how I did it:

1. Use FTP or your File Manager, or even just go to your original gallery and click each photo and "Save Picture As" and save the pictures to your computer. Via FTP or File Manager, the photos are located in the 'ablums' directory. Try to retain your directory structure within your album folder. The directory called "userpics" is where the user photos are located. Inside that each user is numbered. Keep track of who's photo's are who's...I just write it down and I rename the numbered folders to the users name. It also helps if you don't have very many users as I don't. This directory's structure, you cannot retain in the new install, but you can save out the photos and 'batch add' them later into the new gallery into a new directory in your ablums directory. It's tricky but can be done. DO NOT load them into the new 'userpics' directory in the new install. Create a new directory such as "userpicsbatch" rather. This will cause problems otherwise.

2. Install a fresh CPG and do the bridging the SMF. Make sure it all works well.

3. Recreate your non-user albums in the new install. eg: Wallpaper etc.

4. Use the 'batch-add' feature in Coppermine. You need to use FTP or your File Manager to use it. Upload your folders into the albums directory then use batch-add to install them into the newly recreated ablums.

5. For the userpics, this is a bit more difficult. There are 2 methods you can use.

  • Method 1: As admin, you will need to recreate the user account and the user's albums they had and send them the new login information later when you are done....as I mentioned, it helps if you do not have too many users. Your users can change their passwords after. Upload manually from your computer, or use the batch-add feature and load the user's album from your "userpicsbatch" directory on your server.
  • Method 2: Create communal albums under the user's names and set the albums properties for "Anonymous" to upload. The only problem with that is any other user can add to that album.


I hope it helps, and hope I haven't missed any steps. Sorry for the length....I tend to get a little long winded lol.


Ruskin
Judy

scrawl

#111
how do i completly uninstall so that i can re-install? i've looked but cannot find specific instructions

Goudreault

I am having a hell of a time getting my users the rights to upload pictures.  I login to the site as admin then go to coppermine and then go to groups and set registered users and other groups to "yes" for uploads but they are still not able to upload any files.

They keep getting this when clicking on the upload button
QuoteSorry there is no album where you are allowed to upload files

scrawl

Quote from: shipwreck on August 20, 2005, 11:31:10 PM
I am having a hell of a time getting my users the rights to upload pictures.  I login to the site as admin then go to coppermine and then go to groups and set registered users and other groups to "yes" for uploads but they are still not able to upload any files.

They keep getting this when clicking on the upload button
QuoteSorry there is no album where you are allowed to upload files

have you chmod'd the album and include folders to 755? just a thought i don't even have this running but that sounds like it could be it

kegobeer

Quote from: shipwreck on August 20, 2005, 11:31:10 PM
I am having a hell of a time getting my users the rights to upload pictures.  I login to the site as admin then go to coppermine and then go to groups and set registered users and other groups to "yes" for uploads but they are still not able to upload any files.

They keep getting this when clicking on the upload button
QuoteSorry there is no album where you are allowed to upload files

If you haven't set upload permissions for public albums, then of course the user will get that error if he/she hasn't created a personal album yet.  Make album(s) first, then upload images.  There's a button in each user's admin menu bar that says Create Album.
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

Goudreault

Thanks for your help! can't believe I missed that.  :)

scrawl

this is garbage i hate coppermine all i want to do is set it up i've done everything right but all i get is you don't have permission to acces this even when i'm admin F*%K

Carlos Gandra

I don't know if this is the correct topic to this, but could someone give me the code to insert on index.template.php of SMF to insert a link in forum to coppermine (in the top, like home, Help, Album, etc)
Carlos Gandra
Mundo dos Animais

Aravot

Quote from: ac99 on August 27, 2005, 02:22:01 PM
I don't know if this is the correct topic to this, but could someone give me the code to insert on index.template.php of SMF to insert a link in forum to coppermine (in the top, like home, Help, Album, etc)

Gallery with Button

// The [gallery] button
echo '
<a href="http://www.mysite.org/cpg">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/gallery.gif" alt="' . 'Gallery' . '" style="margin: 2px 0;" border="0" />' : 'Gallery'), '</a>', $context['menu_separator'];


Gallery wording (without button) for Portal series.            
// The [gallery] button
echo '
<a href="http://www.mysite.org/cpg"> Gallery <img src="' . $settings['images_url'] . '/seperator.gif" border="0" />';

Carlos Gandra

Carlos Gandra
Mundo dos Animais

Advertisement: