forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: muellerfamily on July 21, 2004, 08:29:40 pm

Title: Allow users to email each other???
Post by: muellerfamily on July 21, 2004, 08:29:40 pm
Is it possible to allow a registered user to view the member list and see clickable email links for each user.

I want my users to be able to email each other ???

Thanks
Title: allow users to email each other
Post by: muellerfamily on July 21, 2004, 10:38:48 pm
Can a simple code be added to allow users to email each other???    

Or can the member list be set up so that users emails can be clickable.

Thanks.

Title: Re: Allow users to email each other???
Post by: Joachim Müller on July 22, 2004, 10:14:30 am
edit usermgr.php, find
Code: [Select]
        $usr_link = '<a href="profile.php?uid=' . $user['user_id'] . '">' . $user['user_name'];
        if ($user['pic_count']) {
            $usr_link .= '</a> (<a href="thumbnails.php?album=lastupby&uid=' . $user['user_id'] . '">' . $lang_usermgr_php['latest_upload'] . '</a>)';
        } else {
            $usr_link .= '</a>';
        }
Add after it
Code: [Select]
$usr_email_link = '<a href="mailto:' . $user['user_email'] . '">' . $user['user_email']. '</a>';
Find
Code: [Select]
<td class="tableb">$usr_link</td>and replace with
Code: [Select]
<td class="tableb">$usr_link $usr_email_link</td>
Haven't tested this, but I guess this is roughly what you want.

GauGau
Title: Re: Allow users to email each other???
Post by: tanfwc on July 22, 2004, 05:21:15 pm
GauGau,

Why not add this feature to the next release?

Regards,
tanfwc
Title: Re: Allow users to email each other???
Post by: Tarique Sani on July 22, 2004, 05:29:03 pm
Never!!! it will be a field day for all those email harvesters
Title: Re: Allow users to email each other???
Post by: muellerfamily on July 23, 2004, 03:40:48 am
Okay.  I changed the code as mentioned above.  It works great, but only for the admin.

How can I make it work for all logged in registered users???

Thanks
Title: Re: Allow users to email each other???
Post by: tanfwc on July 23, 2004, 06:30:55 am
Never!!! it will be a field day for all those email harvesters

Ok. I understand.
Title: Re: Allow users to email each other???
Post by: Joachim Müller on July 23, 2004, 11:15:33 am
Okay.  I changed the code as mentioned above.  It works great, but only for the admin.

How can I make it work for all logged in registered users???

Thanks
did you enable the meberlist in coppermine config?

GauGau
Title: Re: Allow users to email each other???
Post by: muellerfamily on July 24, 2004, 12:28:46 am
Quote
did you enable the meberlist in coppermine config?

GauGau

I checked and it is enabled.  When I log in as the admin I can see the email links in the member list.  When I log in as a registered user, they email addresses do not appear??

Any suggestions on how to get this to work for the users???

Thanks
Title: Re: Allow users to email each other???
Post by: Joachim Müller on July 24, 2004, 02:47:02 pm
please post a link to your page together with a test user account (non-admin).

GauGau
Title: Re: Allow users to email each other???
Post by: muellerfamily on July 25, 2004, 04:52:52 am
I had my test URL on here for a few days and never received a response.   I removed it.  I did not want just anyone going to my gallery.  Can you help my fix this problem.

Again, it works for the admin, but not for registered users???

Do I need to modify some code in an additional place.   Do I need to modify it in the theme I am using.  I am currently using the Waterdrop theme on my gallery??/

Thanks

Title: Re: Allow users to email each other???
Post by: Joachim Müller on July 28, 2004, 02:12:05 pm
you'll have to edit usermgr.php then and find out what keeps the said modification from being displayed. As this is not a coppermine feature, but an additional modification you want for your page, you will have to find out the details. As this will never go into the coppermine core code, I won't look into this any further, sorry. You have to understand that there are lots of coppermine users requesting changes in their coppermine install. If the changes can be applied easily, we're ready to help. If not, you will have to code the modifications for yourself. Sorry.

GauGau