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

JayBachatero

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.
Follow me on Twitter

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

Tanks

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  :)

JayBachatero

File is corrupted.  I can't extract it.
Follow me on Twitter

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

Tanks


JayBachatero

Follow me on Twitter

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

lesmond

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)


Free Forum Image Hosting


The only person who got all his work done by Friday was Robinson Crusoe

Tanks


JayBachatero

Lesmon in the prefix field enter "`web18_cpg`.CPG_PREFIX_HERE" w/o the quotes.

Knat check the settings on Admin > Features and Options.
Follow me on Twitter

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

Tanks

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_

lesmond

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  :-[


Free Forum Image Hosting


The only person who got all his work done by Friday was Robinson Crusoe

JayBachatero

Can you give me a test account so that I can look into it?  Are you getting any errors in the error log?
Follow me on Twitter

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

JayBachatero

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_
Follow me on Twitter

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

lesmond

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


Free Forum Image Hosting


The only person who got all his work done by Friday was Robinson Crusoe

JayBachatero

Umm you need to add the smf database user to the cpg database.
Follow me on Twitter

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

lesmond

I thought that was done with the SMF/CPG bridge!


Free Forum Image Hosting


The only person who got all his work done by Friday was Robinson Crusoe

JayBachatero

Umm no I didn't tie this to the bridge.  Also the bridge requires you to have them on the same db.
Follow me on Twitter

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

lesmond

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


Free Forum Image Hosting


The only person who got all his work done by Friday was Robinson Crusoe

JayBachatero

If you have cPanel it should be easy to do.
Follow me on Twitter

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

lesmond

Yes I have cPanel but I hope you are not going to ask me to mess with mysql :o :)


Free Forum Image Hosting


The only person who got all his work done by Friday was Robinson Crusoe

Advertisement: