Link to Mod (http://mods.simplemachines.org/index.php?mod=455)
Rate this Mod (http://mods.simplemachines.org/index.php?action=review;sa=add;mod=455)
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
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__);
I get an error when I click on the profile link
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND approved = 'YES'
AND (filename LIKE '%.jpg' OR filename LIKE '%.gif' OR ' at line 4
Fichier: smf/Sources/Profile.php
Ligne: 1585
Did you fill out the information as mentioned before?
hi jay.. sorry to be a pain in the ass...
i am being stupid.. but what do you mean my coppermine prefix? which part of my coppermine do i need to put in that section..
Thanks dude
Daz
Does your SMF forum and Coppermine gallery share the same database?
You put in the prefix that you setup for your coppermine gallery.
do you mean the database prefix?
hey guys.. sorry to be a pain..
ok so i have my coppermine msql prefix in place..
i also have what i think is my thumb prefix (thumb_)
i have the url right
but all i am getting is a link to the pictures not the display also if i click the link it brings up no image
example: http://minidirectory.co.uk/forum/index.php?action=profile;u=8
Thanks
Daz
Quote from: kegobeer on September 10, 2006, 08:08:27 PM
Does your SMF forum and Coppermine gallery share the same database?
yes i did the bridge ages ago
Do you have a test account?
user: *****
password: *****
Forgot the .co.uk on the domain :P.
http://www.minidirectory/coppermine/albums/userpics/10008/thumb_RATS_FINAL.jpg
Thanks.. i have sat looking at it for ages and missed the sillyest thing.... great mod... works a treat now...
A star as always Jay
i get this error
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/default/Profile.template.php on line 395
386: <td class="windowbg" valign="middle" align="center" width="150">
387: ', $context['member']['avatar']['image'], '<br /><br />
388: ', $context['member']['blurb'], '
389: </td>
390: </tr>';
391:
392: // Finally, if applicable, span the bottom of the table with links to other useful member functions.
393: echo '
394: // Check to see if they have images
395: if (!empty($context['member']['pictures']) && empty($modSettings['cpg_disable']))
396: {
397: echo '
398: <tr class="titlebg">
399: <td>', $txt['cpg_pictures'], '</td>
im using 1.1 RC2 with TP
Quote from: Jay The Code Monkey on September 10, 2006, 05:19:16 PM
Did you fill out the information as mentioned before?
yes
Coppermine table prefix cpg135_
Allowed image extentions jpg,gif,png,bmp
Coppermine URL w/o trailing slash http://www.site.com/coppermine
Max images to show on profile 3
Prefix for thumbnails thumb_
@Knat:
Mod details (http://mods.simplemachines.org/index.php?mod=455)
Compatible With: 1.1 RC3
Sakuragi can you please post your Profile.php file?
Quote from: kegobeer on September 11, 2006, 11:53:41 AM
@Knat:
Mod details (http://mods.simplemachines.org/index.php?mod=455)
Compatible With: 1.1 RC3
Uhmm okey so no way to get it to work with RC2 ? :o
It *should* work on RC2 but you might have to do a manually edit Profile.template.php.
Thats what i did.. i have all the code.. but when i put in the code in the last file.. namely profile.template.php i get the parse error as shown in the other post.. when i remove the code from that file everything is fine again.. i even have the admin settings showing correct >:(
Quote from: Jay The Code Monkey on September 11, 2006, 12:20:19 PM
Sakuragi can you please post your Profile.php file?
http://www.blahchma.com/Profile.php.txt
Thanks :D
Remove the } from
foreach ($context['posts'] as $counter => $dummy)
$context['posts'][$counter]['can_delete'] &= $context['posts'][$counter]['delete_possible'];
}
Add it before
// Show all posts by the current user
function showPosts($memID)
Knat let me see the Profile.template.php file.
Im unable to attach files here so i uploaded it as a zip file
http://dl.eve-files.com/media/0609/Profile.template.zip
This is the profile.template.php that gives me errors
If you can fix it i be thankful :)
File is corrupted. I can't extract it.
Ohh damn :o
Well here is the file
:D
http://www.shockwavenews.net/Profile.template.txt
Here you go.
QuoteWARNING: 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.
How do I change this, as my CPG is on an other database ("web18_cpg" is my Coppermine DB)
Thanks Les
(I have removed other post sorry about that I couldn't find this one)
Quote from: Jay The Code Monkey on September 12, 2006, 09:42:44 AM
Here you go.
Profile working ;) - Pictures not showing :(
Thanks anyway :)
Lesmon in the prefix field enter "`web18_cpg`.CPG_PREFIX_HERE" w/o the quotes.
Knat check the settings on Admin > Features and Options.
I have this in admin settings.. should be correct
Don't show user's images in profile unmarked
Coppermine table prefix cpg149_
Allowed image extentions jpg,gif,png
Coppermine URL w/o trailing slash http://www.shockwavenews.net/gallery
Max images to show on profile 8
Prefix for thumbnails thumb_
Quote from: Jay The Code Monkey on September 12, 2006, 11:50:43 AM
Lesmond in the prefix field enter "`web18_cpg`.CPG_PREFIX_HERE" w/o the quotes.
Sorry to be a pain...
This is what I have in the profile.php
// Coppermine Userpics Mod
if (empty($modSettings['cpgDisable']) && !empty($modSettings[`web18_cpg`.cpg143_]))
{
and this in Coppermine table prefix "cpg143_" But still no luck
unless I done something wrong :-[
Can you give me a test account so that I can look into it? Are you getting any errors in the error log?
Quote from: lesmond on September 12, 2006, 12:29:02 PM
Quote from: Jay The Code Monkey on September 12, 2006, 11:50:43 AM
Lesmond in the prefix field enter "`web18_cpg`.CPG_PREFIX_HERE" w/o the quotes.
Sorry to be a pain...
This is what I have in the profile.php
// Coppermine Userpics Mod
if (empty($modSettings['cpgDisable']) && !empty($modSettings[`web18_cpg`.cpg143_]))
{
and this in Coppermine table prefix "cpg143_" But still no luck
unless I done something wrong :-[
No you leave that the way it was $modSettings['cpgPrefix']. What you change is the setting on the Admin > Features and Options. On the Prefix field you enter
`web18_cpg`.cpg143_
Quote from: Jay The Code Monkey on September 12, 2006, 12:34:34 PM
Can you give me a test account so that I can look into it? Are you getting any errors in the error log?
PM sent
Umm you need to add the smf database user to the cpg database.
I thought that was done with the SMF/CPG bridge!
Umm no I didn't tie this to the bridge. Also the bridge requires you to have them on the same db.
Looks like I might have to give up on this one then! oh well thank you very much for your help :)
Just one thing I did get the random pic going ok with cpmfetch in a block, but thats a different thing :-[
Thanks Les
If you have cPanel it should be easy to do.
Yes I have cPanel but I hope you are not going to ask me to mess with mysql :o :)
It's simple. ALl you have to do is on cPanel go to MySQL > Then scroll to the bottom. It says user (select the SMF user) then next to that it says database. Select the coppermine database. Then under that select the SELECT priviledge and click on grant permission.
I can get to phpMyAdmin and I can see cpg143_users but I cant see anything about SMF users
No not in phpMyAdmin. Before you go to phpMyAdmin there is the screen where you add new databases and so on. If you want I can take a look at it for you.
I must have a different CP, because this is what I see when I go to MySQL in my cp, I can have up to 50 DB and can only add or remove them, if I click on the "Now" all it does is go to phpMyAdmin in a new window, hope this makes sense
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fhomepage.ntlworld.com%2Fles.pole%2Fmysql.gif&hash=1e866e57529f949057e8ff9fe62305a1287a5369)
Ummm so you don't have cPanel. I'll look for another solution that can work for you.
Thanks Jay, sorry I am being a pain in the butt!!!
just one thing would it be worth asking my host and if so what?
You can ask them if you can have the same use for two databases.
I just did a new install of coppermine and then this mod. I placed Coppermine into the same database as my forum. Everythings seems to be working fine but now when I go to a profile I get this:
Table 'fsvzwtpl_forum.cpg135_pictures' doesn't exist
File: /home/fsvzwtpl/public_html/chinclub/forum/Sources/Profile.php
Line: 1363
If I check the box not to show pictures in the profile everything works fine again.
All of my settings should be correct:
Coppermine table prefix cpg135_
Allowed image extentions jpg,gif
Coppermine URL w/o trailing slash http://www.chinchillaclub.com/forum/gallery
Max images to show on profile 3
Prefix for thumbnails thumb_
I'm wondering if its because not one has added pictures yet...but surely that can't be.
Umm add a picture and see if that is the problem.
Nope, I tried that and still got the same error. :(
OK, it was my stupid mistake! I had the wrong database prefix. I was going by memory and finally went into the database to check and I remembered wrong! Everytihng is working correctly now! ;D
Question. I have the my coppermine and smf using the same database. I am installing the mod and I get this message and I don't want to proceed without checking first with yall
Installing this package will perform the following actions: Type Action Description
1. Execute Modification ./Sources/ModSettings.php Failure
2. Execute Modification ./Sources/Profile.php Success
3. Execute Modification ./Themes/default/Profile.template.php Success
4. Execute Modification ./Themes/default/languages/Modifications.english.php Success
5. Execute Modification ./Themes/default/languages/Help.english.php Success
I have verified that the ModSettings.php, and the Sources folder are set to 7,7,7
Ok, so what might be going on wrong?
I am using Current SMF version: SMF 1.0.8 RC2
Trashcan you can apply that section of the mod manually. Seems like a conflict with another mod.
ff
Umm I missed the version of SMF that you are using. This mod is not for 1.0.8.
Quote from: Jay The Code Monkey on September 14, 2006, 08:58:22 AM
Umm I missed the version of SMF that you are using. This mod is not for 1.0.8.
crap! how did I miss that. What version is it for then?
Also, I recently just setup a new smf board. On a fresh install of smf, rc3 seemed to install, but puked on some of the admin features when I tried to configure them. That is why I am at rc2.
Can it work still, or am I out of luck
Umm that ModSettings file is for 1.0.x not 1.1.
ff
Yea you should be able to. Just install the mod and instead of adding.
'',
// Coppermine Userpics
array('check', 'cpgDisable'),
array('text', 'cpgPrefix'),
array('text', 'cpgImageTypes'),
array('text', 'cpgUrl'),
array('int', 'cpgMaxPictures'),
array('text', 'cpgThumbPrefix'),
Add
array('rule'),
// Coppermine Userpics
array('check', 'cpgDisable'),
array('text', 'cpgPrefix'),
array('text', 'cpgImageTypes'),
array('text', 'cpgUrl'),
array('int', 'cpgMaxPictures'),
array('text', 'cpgThumbPrefix'),
before
array('rule'),
// Email and registration type stuff...
rrr
Delete the ModSettings.php~ file. The one with the ~.
Ok, almost there! so far, the modifications have worked. I am looking at the config portion and it is asking for the prefix for thumbnails. Once again, forgive my "ID10t" error, but what is this refering to?
nevermind, I got it.
Many thanks for the support on this one!
ouch, new issue and not sure where to look
I have a user who gets someone elses pictures showing up under their profile.
so user X get's user Y's pictures
I did not see right off hand where to look or modify this
Check if the id of the members match on coppermine and the forum. What I mean is check if ID x on the forum belong to id x on the gallery.
Quote from: Jay The Code Monkey on September 14, 2006, 12:58:46 PM
Check if the id of the members match on coppermine and the forum. What I mean is check if ID x on the forum belong to id x on the gallery.
the users user names match, but I can't confirm that the passwords match.
I have a test account that I use in both spots coppermine and smf and I get no user pics in smf. If I log in as my admin account, the right pics show up
I mean the id not user name.
Quote from: Jay The Code Monkey on September 14, 2006, 01:07:32 PM
I mean the id not user name.
Ah, sorry. I see what you are talking about. So the ID's need to match? I can change those, or should change them if necessary in which area, smf or coppermine?
where can I verify their id's? I think I saw once area in myphpadmin, but I hate trying to figure out anything in there by hunt and peck. How can I verify they match in a fairly easy place?
No, no need to edit. I just want to know if they match. I think I might have to take another approach into this and change the query.
Quote from: Jay The Code Monkey on September 14, 2006, 02:43:48 PM
No, no need to edit. I just want to know if they match. I think I might have to take another approach into this and change the query.
It appears they do NOT match. I can look at the url for the link to the profile in each area (smf and coppermine) and the id# does not match.
Ok I found a way that it works. I'll update the package in a bit.
In Profile.php
// 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__);
// Set the $ouserName
$ownerName = $context['member']['username'];
// Select the images
$requestImages = db_query("
SELECT pid, filepath, filename, owner_id, owner_name
FROM {$modSettings[cpgPrefix]}_pictures
WHERE owner_name = '$ownerName'
AND approved = 'YES'
$extensions
ORDER BY pid DESC
LIMIT $modSettings[cpgMaxPictures]", __FILE__, __LINE__);
I got it to work, but had to modify this line
FROM {$modSettings[cpgPrefix]}pictures
ttt
Change
FROM {$modSettings[cpgPrefix]}pictures
to
FROM {$modSettings['cpgPrefix']}pictures
Quote from: Jay The Code Monkey on September 15, 2006, 12:22:14 PM
Change
FROM {$modSettings[cpgPrefix]}pictures
to
FROM {$modSettings['cpgPrefix']}pictures
you are da man!!! 8)
Thank you so much for helping me get this sorted out!
Everything working fine then now?
Quote from: Jay The Code Monkey on September 15, 2006, 12:40:58 PM
Everything working fine then now?
Yes, perfectly. Nothing in the error logs, users have pictures in their profile as they should
Thanks again!
Quote from: Knat on September 12, 2006, 10:07:39 AM
Quote from: Jay The Code Monkey on September 12, 2006, 09:42:44 AM
Here you go.
Profile working ;) - Pictures not showing :(
Thanks anyway :)
I have the same Problem. Editet every file from hand, cpg and smf are in the same database, all settings are made, but no images are shown. hm. what could be the misstake? also there are no messages in the error logs.
Are the settings correct in Admin > Features and Options?
Yes, they are correct, i ve checked them more than once.
I dont know what could be the reason, that there ar no images shown.
Great mod, was looking for something like this however I have a request more like a is this possible.
I have Joomla+SMF+CPG all bridged together CPG bridged to SMF and SMF bridged to Joomla, both SMF and CPG wrapped in Joomla, when a user clicks on the image in SMF profile it redirects the user to CPG unwrapped version is it possible to open CPG in Joomla wrapped.
see example use test/test
http://orstio.armeniancollegeofcalcutta.com
Thanks for the mod.
Well I don't know much about Joomla nor Mambo so I really don't know how to link to wrapped. Shouldn't be too hard though.
This is a great mod, Juan!
Me and my members do like it a lot.
I've got one question:
The mod shows the pictures last uploaded by the member. However, I would prefer it to show the standard user gallery. We have a big gallery besides the user galleries where everybody is allowed to upload to. Those "public" pictures should not be displayed in the profile.
What alterations to the mod would be necessary to achieve this?
I'm not really sure. I would have to look at coppermine to do this.
Would you mind if I tweaked your mod a bit? 1/3 of my members love the mod, another 1/3 say its okay but wish they could select the pictures that appear in their profile, and the remaining 1/3 are ******ing up a storm because it's pulling pics from their private galleries (which are apparently the last uploaded pics to their gallery).
So I'd like to add a little more customability to your mod.. I think the easist way to do this is to have members put four or five pictures in a folder in their gallery called "for_profile" or something, then have the mod look for, then only pull from that gallery. if the "for_profile" gallery doesn't exist, then do the normal routine and if someone ******es I can tell them that they should have followed the directions I game them. :)
Anyway, I'm gonna tweak with your code and see if I can get it to do what I want. If so, I'll send it to you and you can add it to your next release or tell me to screw off or whatever.
-mark
Yea if you're able to code it up then be my guest. This was just a quick mod that I did.
Here is mine, i change the link code a bit so I could run coppermine wrapped and have it bring it to the user gallery wrapped.
http://www.mnsportscentral.com/component/option,com_smf/Itemid,32/action,profile/u,3
The code I added to my profile if your running coppermine wrapped is this. Make sure to use the correct item id.
// Check to see if they have images
if (!empty($context['member']['pictures']) && empty($modSettings['cpg_disable']))
{
echo '
<tr class="titlebg">
<td>', $txt['cpg_pictures'], '</td>
<td align="right">(<a href="' . $mosConfig_live_site . '/index.php?option=com_wrapper&Itemid=34&cat=', $context['member']['id']+10000, '">', $txt['cpg_see_more'], '</a>)</td>
</tr>
<tr>
<td class="windowbg2" colspan="2">';
foreach ($context['member']['pictures'] as $picture)
// Add for personal gallery
echo '
', '<a href="' . $mosConfig_live_site . '/index.php?option=com_wrapper&Itemid=34&cat=', $context['member']['id']+10000, '"/><img src="', $picture['path'], '" alt="', $picture['filename'], '" /></a>';
echo '
</td>
</tr>';
}
Okay, this quick code addendum will check first to see if the picture is in a private gallery before loading it into the array, and if it is, dump it and go to the next one.
In the following statement in Profile.php in the Coppermine Userpics section:
// 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__);
change the mysql query to this:
// Select the images
$requestImages = db_query("
SELECT pid, filepath, filename, owner_id, owner_name
FROM {$modSettings['cpgPrefix']}pictures
JOIN {$modSettings['cpgPrefix']}albums
WHERE owner_id = $memID
AND {$modSettings['cpgPrefix']}albums.aid = {$modSettings['cpgPrefix']}pictures.aid
AND {$modSettings['cpgPrefix']}albums.visibility = 0
AND approved = 'YES'
$extensions
ORDER BY pid DESC
LIMIT $modSettings[cpgMaxPictures]", __FILE__, __LINE__);
where I added a JOIN so that it looks in both the Pictures table and the Albums table, and matches the album ID (aid) in both tables (to make sure it's in the right album) and then checks to see if the album it's gonna pull the picture from is not marked as private (albums.visibility = 0). Albums marked as private have the user's ID code in the albums.visibility field, every picture other than that is marked as 0.
:)
-mark
Thanks for posting that markd. I'll update the first post to reflect this.
This doesnt show in my template (Themis *Current*) how can I add this to the member profile ? thx
Example here (http://soltiz.com/forum/index.php?action=profile)
Also, which file and what line is this being added?
Quote from: n1kki6 on October 02, 2006, 10:49:55 PM
Here is mine, i change the link code a bit so I could run coppermine wrapped and have it bring it to the user gallery wrapped.
http://www.mnsportscentral.com/component/option,com_smf/Itemid,32/action,profile/u,3
The code I added to my profile if your running coppermine wrapped is this. Make sure to use the correct item id.
// Check to see if they have images
if (!empty($context['member']['pictures']) && empty($modSettings['cpg_disable']))
{
echo '
<tr class="titlebg">
<td>', $txt['cpg_pictures'], '</td>
<td align="right">(<a href="' . $mosConfig_live_site . '/index.php?option=com_wrapper&Itemid=34&cat=', $context['member']['id']+10000, '">', $txt['cpg_see_more'], '</a>)</td>
</tr>
<tr>
<td class="windowbg2" colspan="2">';
foreach ($context['member']['pictures'] as $picture)
// Add for personal gallery
echo '
', '<a href="' . $mosConfig_live_site . '/index.php?option=com_wrapper&Itemid=34&cat=', $context['member']['id']+10000, '"/><img src="', $picture['path'], '" alt="', $picture['filename'], '" /></a>';
echo '
</td>
</tr>';
}
Thx,
found the file to edit in /themes/your theme/Profile.template.php but now i have text and no image,
AWESOME MOD!!!
It encourages gallery use which for us is a good thing.
I'm running 1.0.8... Mambo... and CPG all are wrapped together.
My ModSetting.php failed and Profile.Template failed but the coding was easy enough to drop in.
To solve the issue of the link going to the unwrapped version, I just put a target="u_blank" on the url.
Thanks for the mod
http://www.csramotorsports.com
profile link: http://www.csramotorsports.com/index.php?option=com_smf&Itemid=74&action=profile;u=4
verbalkent did you fill out the information on Admin > Features and Options?
How about adding Coppermine link (an image) to the user profile displayed in posts, if possible to show only if user has an album.
Related topics
http://www.simplemachines.org/community/index.php?topic=81152.msg541379#msg541379
http://www.simplemachines.org/community/index.php?topic=28318.0
http://www.simplemachines.org/community/index.php?topic=9558.0
I'll look into it when I get a chance.
I get this error on profiles :
Database Error
Table 'xx_smf1.cpg_pictures' doesn't exist
File: /home/xx/public_html/forum/Sources/Profile.php
Line: 1383
if you are going to use this mod in another database you need to do this in the prefix field. `databaseName`.prefix_
Quote from: JayBachatero on November 08, 2006, 08:29:28 AM
if you are going to use this mod in another database you need to do this in the prefix field. `databaseName`.prefix_
I've try it, but still fail.. Here's my current setting :
[b]Coppermine table prefix :[/b] `xx_smf1`.cpg_
[b]Allowed image extentions :[/b] jpg,jpeg,gif,png
[b]Coppermine URL w/o trailing slash :[/b] http://www.xx.com/gallery
[b]Max images to show on profile :[/b] 4
[b]Prefix for thumbnails :[/b] thumb_
it shows this error :
Database Error
SELECT command denied to user 'xx_smf1'@'localhost' for table 'cpg_pictures'
File: /home/xx/public_html/forum/Sources/Profile.php
Line: 1383
Please kindly advice me. Thanks :)
You need to make the same user for both database or add the smf1 user to the coppermine database.
ya I got it to work
awesome mod
thank you
1 question, how do I remove the links from the thumbs and the See More...
??
Edit the Profile.template.php file.
I have a problem..my database are different forum is in xmb2 and photo gallery is in xbm2 I already know my prefix but it keep refering back to xmb2.cpg143_pictures.. I love this mode just can't get it towork..
http://www.simplemachines.org/community/index.php?topic=112121.msg802709#msg802709
here is my error after doing everything said...
Database Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''USER_coppermine'.cpg1410_pictures
WHERE owner_id = 2
AND approved = 'YES' at line 2
File: /Sources/Profile.php
Line: 1400
any advice?
I am the same user with full rights on both databases...
Umm no you didn't ;). ' is not the same as `. For the database prefix use this `USER_coppermine`.
Quote from: JayBachatero on November 23, 2006, 09:45:01 PM
Umm no you didn't ;). ' is not the same as `. For the database prefix use this `USER_coppermine`.
ok my mistake....works fine now except that the pics show up as red X's......
must be some no hotlinking thing maybe??? Would you know anything about this?
Check the thumb prefix.
Quote from: JayBachatero on November 24, 2006, 01:28:31 AM
Check the thumb prefix.
got it.....thanks.
I had thumbs_
instead of thumb_
Hmm.. can you update it for 1.1?
Have you tried using it on 1.1? This mod should also work in 1.1.
Ok, nah just checking just incase it DOES mess anything up ;)
Hmm I found a problem, still using on RC3. When I view the profile:
http://www.desi-base.com/forum/index.php?action=profile
Anyone with big images it doesn't resize so that happens... any way of resizing it?
Check your coppermine cause this mod takes just thumbnails.
Any word. Will this work with 1.1 Final? I'm using it on RC3
It should work on 1.1 Final and 1.1.1. If it doesn't let me know.
it does work fine on 1.1.1
Great utilization of the bridge. Thumbs up.
This is sweet!!
Thanks Jay!!
It installed just fine, no errors but then when i go to thre profile summary it shows me this:
Database Error
Table 'teamvtec_test.cpg_140' doesn't exist
File: /home/teamvtec/domains/sirfanaticsholland.com/public_html/test_forum/Sources/Profile.php
Line: 1380
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.1, while your database is at version 1.1. The above error might possibly go away if you execute the latest version of upgrade.php.
Anyone knows what's wrong?
It means the settings in your admin panel for the coppermine gallery database extension is wrong.
I finally got it to work on a sub domain!! :D
Quote from: Assistance on November 11, 2006, 03:37:48 AM
1 question, how do I remove the links from the thumbs and the See More...
Quote from: JayBachatero on November 11, 2006, 02:30:17 PM
Edit the Profile.template.php file.
Tried to fidle with the settings and i did manage to change the "See more" link but could you please give a pointer in the right direction as where i could change/remove the picture links?
Is it the ['path'], part? :-\// Check to see if they have images
if (!empty($context['member']['pictures']) && empty($modSettings['cpg_disable']))
{
echo '
<tr class="titlebg">
<td>', $txt['cpg_pictures'], '</td>
<td align="right">(<a href="', $context['member']['pictures'][0]['userPics'], '"><a href="http://forum.sirfanaticsholland.com/index.php?action=gallery" target="_self" title="See more">See more</a></a>)</td>
</tr>
<tr>
<td class="windowbg2" colspan="2">';
foreach ($context['member']['pictures'] as $picture)
echo '
<a href="', $picture['href'], '"><img src="', $picture['path'], '" alt="', $picture['filename'], '" /></a>';
echo '
</td>
</tr>';
}
Nevermind, got it... changed the <a href="', $picture['href'], '"> to
<a href="http://forum.sirfanaticsholland.com/index.php?action=gallery" target="_self"</a>
For what its worth it would be coded to better to go like this in your links...
<a href="', $scripturl, '?action=gallery"><img src="', $picture['path'], '" alt="', $picture['filename'], '" /></a>';
That is much appreciated, thanks ;D
Quote from: taucher on September 18, 2006, 05:46:31 AM
Quote from: Knat on September 12, 2006, 10:07:39 AM
Profile working ;) - Pictures not showing :(
Thanks anyway :)
I have the same Problem. Editet every file from hand, cpg and smf are in the same database, all settings are made, but no images are shown. hm. what could be the misstake? also there are no messages in the error logs.
I have the same problem with SMF 1.1.1
the settings are correct in Admin > Features and Options
If I remove this from Profile.template.php
if (!empty($context['member']['pictures']) && empty($modSettings['cpg_disable']))
the (See more...)'s link is : http://www.site.com/smf/index.php?action=profile
instead of http://www.site.com/galerie/thumbnails.php?album=lastupby&uid=1
very strange.... the coppermine user pics show up in my profile OK, but not in other members profiles.
Here's the code i use:
// Check to see if they have images
if (!empty($context['member']['pictures']) && empty($modSettings['cpg_disable']))
{
echo '
<tr class="titlebg">
<td>', $txt['cpg_pictures'], '</td>
<td align="right">(<a href="', $context['member']['pictures'][0]['userPics'], '"><a href="', $scripturl, '?action=gallery" target="_self" title="See more">See more</a></a>)</td>
</tr>
<tr>
<td class="windowbg2" colspan="2">';
foreach ($context['member']['pictures'] as $picture)
echo '
<a href="', $scripturl, '?action=gallery;sa=cat=1"><img src="', $picture['path'], '" alt="', $picture['filename'], '" /></a>';
echo '
</td>
</tr>';
}
What am i doing wrong here?
I noticed another fellow was trying to get this working on a second database. I am in the same situation. Did his issue ever see a solution?
Quote from: JayBachatero on November 08, 2006, 08:29:28 AM
if you are going to use this mod in another database you need to do this in the prefix field. `databaseName`.prefix_
yeah but then we have to have the same username and password as the smf database. I think lesmond had the same problem as I do. Unable to use the same password and username for different databases.
It would be nice to have an extra field where someone could specify a second database where coppermine is, the username to access that database and the password.
Yea that complicates things a bit. Not sure how to approach this one.
is anyone else having probelsm with the Coppermine/SMF bridge under SMF 1.1.1?
I login to SMF, go to the gallery and it asks me to login.. I click on 'login' in coppermine and it takes me to SMF's login page - where is already says "welcome nolageek"
any ideas?
my current setup is:
/forum (SMF)
/forum/gallery2 (Coppermine)
I ran the bride, configured my groups and all... but not working.
I currently have a bridge with the latest coppermine 1.4.10 and SMF 1.1.1 working without any problems.
I wonder if you selected an incorrect option while performing the bridge. Someone at http://Coppermine-Gallery.net may or may not be able to help.
My problem was that I didn't have my settings right in SMF. Got to have "Use subdomain independent cookies" turned ON. Who knew? :)
Anyway, concerning this mod.. my pictures arn't showing up in my profiles. (I just have some in my nolageek username now)
My settings:
Don't show user's images in profile [ ] (unchecked)
Coppermine table prefix cpg1410_ (this is correct)
Allowed image extentions jpg,jpeg,gif,png
Coppermine URL w/o trailing slash http://meninshirtandtie.com/forum/gallery2
Max images to show on profile 5
Prefix for thumbnails thumb_
When I first installed it, I got an error because I didn't have the write DB prefix, which I fixed.
Now, even when I do a view source on the profile page, I'm not seeing any mention of the pictures.... (I do a search for 'gallery2')
Hrmm.
Update the Profile.template.php for your theme.
in what way? I'm using the default theme. (The only thing I've changed is the style.css!)
my Profile.template.php can be seen here:
http://www.meninshirtandtie.com/Profile.template.phps
Does your other theme have a Profile.template.php file?
what other theme?
bump. :)
what other theme are you talking about?
echo... echo.... echo.. :)
Do you have a custom theme?
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.
Let me know if doing that doesn't fix the issue.
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
I would suggest that you upgrade to 1.1 ASAP.
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
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?
Ok this mod ... does it matter what type of coppermine integration is being used?
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
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.
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.
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?
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 (http://mods.simplemachines.org/index.php?mod=455)
Rate this Mod (http://mods.simplemachines.org/index.php?action=review;sa=add;mod=455)
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
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__);
Does this work good on smf 112 and tp098?
Yes it works
Im from turkey and I want this mod for smf 1.1.2 does it work ???
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
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?
thnx for mod's
İ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 .......
İt didn't work on smf 1.1.2 how can I do it ? :(
İs there manuel kods for coppermine user pics ???
I am no longer supporting this mod. If someone wants to take over this mod please send me a PM.
Does anybody know how a user can have a small picture underneath the profile picture to indicate that he has uploaded pictures into the Coppermine gallery.
This mod adds pictures in the profile, but it would also be great to have a small link from the left profile in messages.
hi ive got coppermine and smf bridge
i installed the mod using the smf default them. there is an error when going to profiles:
Table 'me_copp1.cpg1410_pictures' doesn't exist
File: /home/me/public_html/forum/Sources/Profile.php
Line: 1388
i've checked with my host and they have told me that the table is empty.. hmm.. i've uploaded photos in coppermine using my profile yet nothing seems to show.
all the settings are correct, i've checked and double checked them.
could the photos perhaps be stored in another table?
does anyone please have any ideas?
helo
i have this error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 7
File: W:\www\smf\Sources\Profile.php
Line: 1409
around line 1409 i get
// Select the images
$requestImages = db_query("
SELECT pid, filepath, filename, owner_id, owner_name
FROM {$modSettings['mkpcpg_']}pictures
WHERE owner_id = $memID
AND approved = 'YES'
$extensions
ORDER BY pid DESC
LIMIT $modSettings[mkpcpg_]", __FILE__, __LINE__);
where mkpcpg_ is the name of prefix of coppermine, only is the mkportal version its ok?
John S did yo you get your problem solved?
frony you are not supposed to edit that query. You make the changes in the admin panel.
Quote from: JayBachatero on August 06, 2007, 11:45:45 PM
John S did yo you get your problem solved?
frony you are not supposed to edit that query. You make the changes in the admin panel.
can you explain me please. i put mkpcpg_ in prefix in panel of mod but appear the error
of database not found
You need to put the the prefix like this. `database_name`.prefix_
work ok than you very much
Is it compatible with 1.1.3 version?
I think the options to config it doesn't appear in Admin panel...
yeah check
http://www.mercado-negro.org/smf/profiles/robincracker-u1.html;sa,summary
work ok .what language do you have? spanish?
Now it's in English. Default options.
I've installed it but when I upload a pic in the forum it doesn't copy it to the gallery.
I'm not sure if the categorie in the gallery must heve any config.
What is the information I have to enter in the "Admin > Features and Options"?
I don't find them and I don't know if this is the problem...
Reading this post, I've found these are the option must appear:
"Don't show user's images in profile unmarked
Coppermine table prefix cpg149
...."
I don't have it!
Can I modify manually this option? Where can I look for them?
Thanks!
the options must be in
I don't find them and I don't know if this is the problem...
do you have default theme? change to default theme and check again
Admin > Features and Options
if appear the coppermine options
I've installed everything again. New installcion!
All is by defatult. Language, Theme, etc; I dind't change anything.
SMF and Coppermine are in the same DB.
But doesn't appear the options in the control panel.
Can anybody put a pic witch de location?
Or if I can modify some code to include option or to include directly the configuration.
well edit file by file to add the lines that appear in modifications.xml
The file "install.xml" has the code:
<file name="$languagedir/Modifications.english.php">
<operation>
<search position="end" />
<add><![CDATA[
// Coppermine Userpics Mod
$txt['cpg_pictures'] = 'Member\'s Pictures';
$txt['cpgDisable'] = 'Don\'t show user\'s images in profile';
$txt['cpgImageTypes'] = 'Allowed image extentions';
$txt['cpgPrefix'] = 'Coppermine table prefix';
$txt['cpgUrl'] = 'Coppermine URL w/o trailing slash';
$txt['cpgMaxPictures'] = 'Max images to show on profile';
$txt['cpgThumbPrefix'] = 'Prefix for thumbnails';
$txt['cpg_see_more'] = 'See more...';
]]></add>
</operation>
</file>
I think this is the code to show options in the Admin panel.
But when I open the file "Themes>default>language>Modifications.english.php"
and it has only:
<?php
// Version: 1.1; Modifications
?>
Is other file? Or in this version the Modification file is another?
Thanks!
I've changed manually.
The options appears, but the mod doesn't work.
I think the mod must do:
-An user create a topic and upload an image to it.
-The mod will copy that image to the user gallery in Coppermine.
Is this right? or I'm wrong!
no the mod only show images in profile that upload via coppermine, you cannot upload image to gallery in post like ice phoenyx
I thought in the post you'll upload the pics and in the gallery you can see all de pics.
And then... there isn't any mod to integrate a forum and a gallery?
Not only users DB.
i dont know but maybe
http://www.smfhacks.com/smf-gallery.php
http://gallery.menalto.com/SMF_G2
but not upload pics via post
QuoteI thought in the post you'll upload the pics and in the gallery you can see all de pics.
And then... there isn't any mod to integrate a forum and a gallery?
Not only users DB.
No...not in that way.
I'm excited to learn that there's a beta for SMF 2.0 out for charter members. Are there plans to update this mod?
Like many people who work on mods I'm not a charter member so I don't have access to the beta...thus working on it isn't a possibility at this time.
You guys do a great job. I was just curious. Thanks for the quick response! This is one of my favorite mods. It really brings users into the gallery!
ok now i have a problem with this mod.
i have install, and no error messages - my ask in the coppermine photogallery are not the user from the forum, is it the wrong mod for submit userdata from smf to coppermine? or does it not work at me ?
(SMF 1.1.4 - smf and coppermine database in the same database
Have you set the Coppermine prefix properly in the SMF ACP>Features and Options? Member IDs must be the same in both Coppermine and SMF for the crossover to work.
Quote from: TrueSatan on January 08, 2008, 08:19:37 AM
Member IDs must be the same in both Coppermine and SMF for the crossover to work.
ok, you say member id must be the same, so i think i must make the user self in coppermine?
But i have the problem, i don't know the passwords from the users - anyone know a script, what send the usertable from smf to coppermine?
You don't need to know their passwords...ACP>Members will show you their IDs in SMF...if the IDs aren't the same in Coppermine the thumbnails won't associate with the right user. It's difficult to understand your postings but you may also be asking about the SMF Coppermine bridge...see bridges and integrations to find the topic for that.
ok i have found the topic for SMF Coppermine bridge - thanx for help
ok thanx again, it's works now cool :D
Glad you got it sorted out...
It workd fine with me. But the pics dont show off. only the link is shown
ACP>Features and Options....have you set the coppermine thumb prefix correctly?
Does anyone know where I can download this coppermine userpics mod from?
The link at the start of this topic seems to be broken
http://custom.simplemachines.org/index.php?mod=455
Quote from: JayBachatero on January 10, 2008, 03:42:43 PM
http://custom.simplemachines.org/index.php?mod=455
I think it's
http://custom.simplemachines.org/mods/index.php?mod=455
Thanks, that's great.
I have just added to this mid a nice scrolling thing.
If you take the <td> where the thumbnails are shown and wrap everything (inside the box) in this..
Quote<div style="overflow:auto; height:77px; width:100%">
</div>
It's quite nice.
a height of 77px in the style here is just right.
Using this you can set it to display as many photos as you want, and it doesn't take over the page :)
hey is there a mod where the randum pictures are posted instead of the last IMG uploaded?
PLEASE PM ME IF TEHRE IS ONE!!!!
and if not then could you make one or edit yours to make that? and like add a part in the admin cp to change settings??
Love the mod, works great!!
Hi. I've been at this for quite awhile now. Finally got my smf forums up and running and integrated with coppermine gallery. Now I am just starting the phase of getting all the mods I have for smf installed. This is very confusing to me still so please forgive me if I something rather easy lol.
Anyways, I am using Absado_v2 theme as my main theme. (But I'm getting the same error when using the default theme also.) So I did under Admin -> Packages upload the zip file of this coppermine userpics mod. Went fine and I installed it. Then I went to the Features and Settings part and changed everything in there. Now when I go to my profile to try see if the mod is working I get this error:
"Table 'xxx.cpg14x_pictures' doesn't exist
File: /home1/xxx/public_html/forum/Sources/Profile.php
Line: 1352
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.5, while your database is at version 1.1.4. The above error might possibly go away if you execute the latest version of upgrade.php."
I'm not sure what that means at all. When I click on the stuff at the side (like Forum Profile Information) that works fine, but whenever Summary is clicked that error shows up.
Any help would be really appreciated so I can move on to the next mod lol.
Edit: After reading some more posts I found that in prefix I shoulkd enter `database_`.cpg14x_ I have it put right (using my correct database). But now I'm getting a new error:
SELECT command denied to user 'xxx_xxx'@'localhost' for table 'cpg14x_pictures'
File: /home1/xxx/public_html/forum/Sources/Profile.php
Line: 1352
I'm just going to edit this one more time before I go to bed. (and sorry its so long).
I was looking at this page: http://custom.simplemachines.org/mods/index.php?action=parse and so I was downloading all the files it says to modify so I can just modify them on my own computer with notepad or something. I noticed that for all the files it says to download I have 2 of them exactly the same, except the second one of each says ./Sources/ModSettings.php~ . so for some reason all the second ones have a ~ at the end. I'm not sure if thats supposed to be like that (not sure why I have two of the same files except with a ~ anyways.) Are both folders (without the ~ and duplicate with ~) supposed to be there? and if they are which do I edit?
And it says on that link to edit ./Themes/default/Profile.template.php does that mean the default smf theme, or the one im using as default?
So sorry this is so long, I really hope someone can help me out here with all these problems. ??? :-[
Coppermine Userpics - Button in postsHi There. I don't now if this is the right place but. I did a modification to create a button under the avatar in the users posts. I did send a Screenshot how this is looking after coding it. I did the same with de comments MOD so that members can navigate easy.
NOW WHAT IS DOES.
Whe a member cliks on the button the be going to be forwarded to the users album with upload images.
How to do this :
1 . Make an Backup from the display.template.php (Down forget. I'm nog gulty if you forget that.)
2 . Open the Display.template.php
FIND :
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';
Ad after that :
//Start Coppermine button
//echo '<br /><a href="', $scripturl, '?action=gallery;sa=myimages;u=', $message['member']['id'], '"><img src="mijnfotos.jpg" alt=',$txt['smfgallery_profilelink'],'></a><br />';
echo '<br /><a href="../album/thumbnails.php?album=lastupby&uid=', $message['member']['id'], '"><img src="mijnfotos.jpg" alt=',$txt['smfgallery_profilelink'],'></a><br />';
//END Coppermine button
Now where talking about te bridged version here. SMF 1.14 Copermine Last version
The "mijnfotos.jpg" is the button.
Oke I hope i made some friends here.. You can see the working part ad my site. Just go to http://www.asavi.nl and click a post on the frontpage.
Greetings.
Patrick Visser www.asavi.nl
Hi there my Friends. I'm using the mod for a view weeks. And succesful. Its a great mod. I have a question. For instance. I User has an Album marked for private Only him. Why are the Thums stil visible in te user avccounts of SMF. Is there an answer for me?. I need the thumbs gone is a user has en private album.
Please Advice?
Greetings to all
Quote from: jackregan on January 12, 2008, 07:49:59 AM
I have just added to this mid a nice scrolling thing.
If you take the <td> where the thumbnails are shown and wrap everything (inside the box) in this..Quote<div style="overflow:auto; height:77px; width:100%">
</div>
It's quite nice.
a height of 77px in the style here is just right.
Using this you can set it to display as many photos as you want, and it doesn't take over the page :)
I cant undertand where i need to add this bit of code. Sorry if i sound thick lol.
I am also looking to add total number of pics/uploads to the member display on posts, under the avatar for example. Any one got a mod to do this? wouldd be extremely happy if any one does.
pvisser, question for ya. I know this topic should be its own, I like the coppermine gallery picture button you made, works great. But what I'd like to know is if there is a way to make that same type of button display when a member posts a new topic in a specific board.
How it would work:
When a member posts a new topic in a board, a link to that specific new topic will then be shown under their profile in their post. (similar to the coppermine link, but would create a link to a their new topic).
Think this is possible? Thanks in advance.
To get back to what I really came here for. I'm not sure what I'm missing. I'm not getting any errors, but the pics are just not showing up. The only pictures that are showing up are the ones from the "gallery mod".
Here is what I have:
Shared database:smf/coppermine
Don't show user's images in profile - not check
Coppermine table prefix cpg14x_ (double checked my database for correct prefix)
Allowed image extentions jpg,jpeg,gif,png
Coppermine URL w/o trailing slash http://www.remedydog.com/coppermine
Max images to show on profile 10
Prefix for thumbnails thumb_
smf 1.1.5
TP 1.0.5
cmg 4.1.18
cmfetch 2.0.0
Thanks in advance for any help with this.
Quote from: pvisser on June 21, 2008, 02:04:38 PM
Coppermine Userpics - Button in postsHi There. I don't now if this is the right place but. I did a modification to create a button under the avatar in the users posts. I did send a Screenshot how this is looking after coding it. I did the same with de comments MOD so that members can navigate easy.
Ad after that :
//Start Coppermine button
//echo '<br /><a href="', $scripturl, '?action=gallery;sa=myimages;u=', $message['member']['id'], '"><img src="mijnfotos.jpg" alt=',$txt['smfgallery_profilelink'],'></a><br />';
echo '<br /><a href="../album/thumbnails.php?album=lastupby&uid=', $message['member']['id'], '"><img src="mijnfotos.jpg" alt=',$txt['smfgallery_profilelink'],'></a><br />';
//END Coppermine button
Works great, but I only want this button to show if the user actually have pictures in the album.
I tried to add the same lines as the cpg mod adds to the profile.template.php in front of it but it didn't work
if (!empty($context['member']['pictures']) && empty($modSettings['cpg_disable']))
echo '<p align="center"><a href="../gallery/thumbnails.php?album=lastupby&uid=', $message['member']['id'], '"> <img src="/Themes/default/images/gallery.png" alt=',$txt['smfgallery_profilelink'],'></a></p>';
As I can see this question has been asked before!
Well, I have just installed coppermine. But I get this error:
Table 'bambusf_smf.cpg14x_pictures' doesn't exist
Fil: /hsphere/local/home/bambusforum/bambusforum.dk/forum/Sources/Profile.php
Linie: 1371
It happens when I try to go to "profile" on my forum!
How come and what can I do about it?
www.bambusforum.dk
SMF 1.1.7
Quote from: bambusforum on January 14, 2009, 04:17:36 PM
As I can see this question has been asked before!
Well, I have just installed coppermine. But I get this error:
Table 'bambusf_smf.cpg14x_pictures' doesn't exist
Fil: /hsphere/local/home/bambusforum/bambusforum.dk/forum/Sources/Profile.php
Linie: 1371
It happens when I try to go to "profile" on my forum!
How come and what can I do about it?
www.bambusforum.dk
SMF 1.1.7
This could be the problem in the main configuration inside the SMF - FEATURES AND OPTIONS.
Whats the Coppermine - table prefix there? I should be "database.cpg14x_" whiteout the quotes. if you change "bambusf_smf.cpg14x_pictures" to "bambusf_smf.cpg14x_", it should work. Try it an let me know.
Hi!
Thanks for your reply!
I have now changed the table prefix and now I get another error:
SELECT command denied to user 'bambusf_smf'@'ws39.surf-town.net' for table 'cpg14x_pictures'
Fil: /hsphere/local/home/bambusforum/bambusforum.dk/forum/Sources/Profile.php
Linie: 1371
Quoteif you change "bambusf_smf.cpg14x_pictures" to "bambusf_smf.cpg14x_", it should work. Try it an let me know
Where should I change that one?
forget about the last question ;)
I was too fast ...
Well, I still got that new error message ...
Quote from: bambusforum on January 22, 2009, 06:38:27 AM
Hi!
Thanks for your reply!
I have now changed the table prefix and now I get another error:
SELECT command denied to user 'bambusf_smf'@'ws39.surf-town.net' for table 'cpg14x_pictures'
Fil: /hsphere/local/home/bambusforum/bambusforum.dk/forum/Sources/Profile.php
Linie: 1371
Quoteif you change "bambusf_smf.cpg14x_pictures" to "bambusf_smf.cpg14x_", it should work. Try it an let me know
Where should I change that one?
This is an user right problem to use the SELECT command. If you have the option to login you PHPadmin check the user rights from user : bambusf_smf or check the rights from the table : cpg14x_pictures. You can check the SELECT option from off to on. Hope this helps you. If not let me know oke.
Yes again a new mod i have for you. If you interested let me know i post it for you guys. I attached the image how it looks. Here how it works. When you logged in in SMF. go to your profile. On the left you see your options like Forum options and account options. Now i made a little notification there see Image.. ;) Check my website to see an demo there.
HI again!
So, now I have found my way into the php admin on my webhotel, but actually I dont see that tabel: cpg14x_pictures
When I installed the coppermine I used the procedure for 1.1.7 and I used the package manager, but it looks like I have nothing in my database about cpg!
Could that error code be the reason?
And how come I dont have any tables in my database with cpg??
Quote from: bambusforum on January 24, 2009, 06:55:08 AM
HI again!
So, now I have found my way into the php admin on my webhotel, but actually I dont see that tabel: cpg14x_pictures
When I installed the coppermine I used the procedure for 1.1.7 and I used the package manager, but it looks like I have nothing in my database about cpg!
Could that error code be the reason?
And how come I dont have any tables in my database with cpg??
Oke, Now i'm on the rock. When you login PHPADMIN. Please tell me the databases that you see. e.g.
bambusf_smf
.........
.........
Also i can that a look for you. Send me an PM with the specs.
I see only one database!
I will send you my login details by PM - thank you ;)
Would there be any edits to make aside from the install if coppermine is on the server I use for my latest forum?
it doesn't works for me.
i don't know why smf wanna put a "." before the name of my prefix.
i don't have it i my database. my prefix just mybasename_cpgxx
and not mybasename._cpgxx and i don't know how fix it
my coppermine is on the same database of the smf install but not bridged with
please helpe me !
Anyone have a way to add this to 2.0.2 version of SMF? It shows the scripts to change for my version however the code it tells you to find in ./Sources/Profile.php and ./Themes/default/Profile.template.php isn't there.
Just to second an inquiry, has there been any update for 2.0.2? I loved this mod. Would love to use it again!