News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Coppermine Userpics

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

Previous topic - Next topic

LilMermaidGirl

#200
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.  ??? :-[

pvisser

#201
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
Asavi Reluzz

pvisser

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
Asavi Reluzz

FootyDesigns

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.

forummaker

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.

forummaker

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.

hobox

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>';

bambusforum

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


pvisser

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.
Asavi Reluzz

bambusforum

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?


bambusforum

forget about the last question ;)

I was too fast ...

Well, I still got that new error message ...

pvisser

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.
Asavi Reluzz

pvisser

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.   
Asavi Reluzz

bambusforum

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??


pvisser

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.
Asavi Reluzz

bambusforum

I see only one database!

I will send you my login details by PM - thank you  ;)

TheListener

Would there be any edits to make aside from the install if coppermine is on the server I use for my latest forum?

TradeZone.fr

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 !

chinclub

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. 

JCphotog

Just to second an inquiry, has there been any update for 2.0.2?  I loved this mod.  Would love to use it again!

Advertisement: