Allow users to email each other??? Allow users to email each other???
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Allow users to email each other???

Started by muellerfamily, July 21, 2004, 08:29:40 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

muellerfamily

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

muellerfamily

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.


Joachim Müller

edit usermgr.php, find        $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$usr_email_link = '<a href="mailto:' . $user['user_email'] . '">' . $user['user_email']. '</a>';

Find<td class="tableb">$usr_link</td>and replace with<td class="tableb">$usr_link $usr_email_link</td>

Haven't tested this, but I guess this is roughly what you want.

GauGau

tanfwc

GauGau,

Why not add this feature to the next release?

Regards,
tanfwc
tanfwc
[ + ] My HomePage
[ + ] GuestBook
[ + ] Photo Gallery
[ + ] Free Image Hosting

Tarique Sani

Never!!! it will be a field day for all those email harvesters
SANIsoft PHP applications for E Biz

muellerfamily

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

tanfwc

Quote from: Tarique Sani on July 22, 2004, 05:29:03 PM
Never!!! it will be a field day for all those email harvesters

Ok. I understand.
tanfwc
[ + ] My HomePage
[ + ] GuestBook
[ + ] Photo Gallery
[ + ] Free Image Hosting

Joachim Müller

Quote from: 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
did you enable the meberlist in coppermine config?

GauGau

muellerfamily

#8
Quotedid 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

Joachim Müller

please post a link to your page together with a test user account (non-admin).

GauGau

muellerfamily

#10
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


Joachim Müller

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