coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: Roger on February 09, 2005, 05:07:00 PM

Title: SMF link in post profile to Coppermine gallery
Post by: Roger on February 09, 2005, 05:07:00 PM
I would like to do the following:

- I have a special membergroup that is allowed to use the gallery.
- I want this membergoup to have a link under their avatar (in the post section) to their personal gallery
- Only this membergroup should have that link, other membergroups should not

Can somebody provide me with the needed code?  I have no clue about php code, sorry.

Thanks in advance!

Cheers,
Roger
Title: Re: SMF link in post profile to Coppermine gallery
Post by: Casper on February 09, 2005, 05:27:52 PM
I did this for all users, and it was as discussed on this thread on the smf support boards, http://www.simplemachines.org/community/index.php?topic=12059.0

I'm sure it could be done to show only for certain groups, but as this will be making changes to the smf code, not the coppermine code, you should ask your question on their boards.

Hopefully one of their helpers will give you this info,
Title: Re: SMF link in post profile to Coppermine gallery
Post by: Roger on February 09, 2005, 10:21:44 PM
Thanks for the info.  I did ask this question at SMF, but I didn't get an answer and even signing up as a charter member did me no good, since they "don't provide support for third party software".

I just don't ave any clue on how to do this, so any help is appreciated.

Roger
Title: Re: SMF link in post profile to Coppermine gallery
Post by: Roger on February 10, 2005, 07:25:42 AM
Got the code from someone over at SMF.

// Show portfolio gallery?
if ($message['member']['group_id'] = '1')
echo '
', '<a href="http://www.yoursite.com/gallery/index.php?cat=', $message['member']['id']+10000, '"/>Gallery</a><br />';


Pretty cool, just switch the '1' in the first line for the user group id number that you have set up for gallery access.

Cheers,
Roger

Title: Re: SMF link in post profile to Coppermine gallery
Post by: Casper on February 10, 2005, 10:46:54 AM
This is actually a nicer result than the one on the thread I mentioned above, as it shows the users gallery by albums, not just all in the lastup album done before.

Thanks.
Title: Re: SMF link in post profile to Coppermine gallery
Post by: Roger on February 10, 2005, 06:42:16 PM
Glad I got us a nicer solution ;)

I think we can mark this one a sloved then.

Cheers,
Roger