News:

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

Main Menu

Coppermine Userpics

Started by JayBachatero, September 07, 2006, 12:40:32 AM

Previous topic - Next topic

JayBachatero

Do you have a custom theme?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

nolageek

I'm using the plain jane /default theme with a modified .css.  That's it.  Just re-uploaded the /default and Sources directory again and started all over installing mods.

JayBachatero

Let me know if doing that doesn't fix the issue.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

samurai-lupin

Hello,

I have a properly working Coppermine Installation which is also properly integrated into my SMF RC2. I have tried to install this mod manually but it doesn't show the pictures in a profile. There is no error message though.

Does this Mod not work with RC2 at all or can it also be made to work with RC2?

Thank you for your throughts!

Regards,

Christian

JayBachatero

I would suggest that you upgrade to 1.1 ASAP.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

ckgb

I have 1.1.1 and cpg 1.4.10
both are in the same db
Profiles are empty - I mean no pictures are being displayed.
All the settings in the admin panel are set correctly

unmarked
cpg1410_
jpg,jpeg,gif,png
http://www.myaddress.com/cpg
3
thumb_

Profiles display no additional info

BlinkyBill01

#146
Hey there,

I've added this Mod and it works perfectly with the Default Template.

I made a custom template and I can't, for the life of me, figure out what to add or where to get it running for the custom mod.

Any help would be appreciated. Thanks in advance,
Bill

P.S. Hey, I've noticed that all mods I've added to Simple Machines do not show on my custom template, which I assume is because the auto-mod installer mods it only to the default directory. Is there a way that I can get the auto-installer to istall to the custom directory instead of the default one?

ckgb

Ok this mod ... does it matter what type of coppermine integration is being used?

WhatsUp

Just need to say thanks for this mod. It is brilliant.

SMF 1.1.1 and TP 9.7, plus a number of mods to the profile page - google member map, music, stars and so on.
Yet this mod installed through the package manager without a glitch.
Loverly  :D
History Hunters: http://historyhuntersinternational.org/
Enter: test/test
SMF and TinyPortal

JayBachatero

Quote from: BlinkyBill01 on February 10, 2007, 01:38:33 PM
Hey there,

I've added this Mod and it works perfectly with the Default Template.

I made a custom template and I can't, for the life of me, figure out what to add or where to get it running for the custom mod.

Any help would be appreciated. Thanks in advance,
Bill

P.S. Hey, I've noticed that all mods I've added to Simple Machines do not show on my custom template, which I assume is because the auto-mod installer mods it only to the default directory. Is there a way that I can get the auto-installer to install to the custom directory instead of the default one?
You need to manually make that change to your custom theme.

Quote from: ckgb on February 10, 2007, 06:36:27 PM
Ok this mod ... does it matter what type of coppermine integration is being used?
Nope.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

BlinkyBill01

I understand that it has to manually be added to the custom theme, but I see no tutorials or help on what to add where.

Jeff Seabrook

can there be a link generated on the left side menu when viewing posts in the forum to have a link like "view gallery" for that user's member gallery? 

and, when viewing the profile, is there any way to change the link from displaying all 'last uploaded' files to make it go directly to the members gallery?

Jeff Seabrook

I have applied this fix to the forum, and I get an error...and I can't fix it, so I had to restore to the original:


Unknown table 'p.pictures' in where clause
File: /home/xxx/xxx/smf/Sources/Profile.php
Line: 1353

www.bmwsport.net/smf


Quote from: JayBachatero on September 07, 2006, 12:40:32 AM
Link to Mod
Rate this Mod

This mod will add the last x amount of images that a user has uploaded to their Coppermine Gallery.

http://www.kevmundial.com/board/index.php?action=profile;u=3141 [nofollow]

WARNING: You must have Coppermine installed in the same database as SMF.  You can get it to work on another database by altering the $modSettings['cpgPrefix'] on the Profile.php file.

Don't show private albums - Thanks for markd for posting the query.
In Profile.php find

// Select the images
                $requestImages = db_query("
                        SELECT pid, filepath, filename, owner_id, owner_name
                        FROM {$modSettings['cpgPrefix']}pictures
                        WHERE owner_id = $memID                                                                              
                                AND approved = 'YES'
                                $extensions
                        ORDER BY pid DESC
                        LIMIT $modSettings[cpgMaxPictures]", __FILE__, __LINE__);


Replace with

// Select the images
                $requestImages = db_query("
                        SELECT p.pid, p.filepath, p.filename, p.owner_id, p.owner_name
                        FROM ({$modSettings['cpgPrefix']}pictures AS p, {$modSettings['cpgPrefix']}albums AS a)
                        WHERE owner_id = $memID
                                AND a.aid = p.pictures.aid
                                AND a.visibility = 0
                                AND approved = 'YES'
                                $extensions
                        ORDER BY pid DESC
                        LIMIT $modSettings[cpgMaxPictures]", __FILE__, __LINE__);


hobox

Does this work good on smf 112 and tp098?

taucher


sati

Im from turkey and I want  this mod for smf 1.1.2 does it work ???

armybot

#156
Hi all.
Jay, I solved the problem so, please, feel free to ignore my PM.

I solved with the suggested and quoted solution.

Just to share with you all functionalties and features I tell you all that it works perfectly with:
Coppermine 1.4.0<-bridge with Mehdi plugin->Joomla 1.0.12<-bridge Joomlahacks JSMF-> (SMF 1.1.2 AND CB).

Well, all is in synch.

NOTE: coppermine and smf are *not* directly bridged

Great job!

Thanks,

A.

Quote from: JayBachatero on September 15, 2006, 12:22:14 PM
Change
FROM {$modSettings[cpgPrefix]}pictures

to
FROM {$modSettings['cpgPrefix']}pictures

RoarinRow

Mine installed just fine, but when I got to my profile screen the thumbnails just show red x's and when I click on 'See More' and Coppermine screen that it brings me too is all goofy, like it's not point to the correct location.

When I click on the Coppermine link directly from the link on the forum, the album site show us correctly.  Strange.  Any work-around for this?

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

ℓσяєиz


Barış Dokumacı


MY THEMES

The greates enemy will hide in the last place you would ever lock..

sati

İt didn't work on smf 1.1.2 how can I do it ?

Must I download Coppermine Userpics mod on to my forum ? Then change that codes ?? Please help me .......

Advertisement: