Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Allow users to email each other???  (Read 5409 times)

0 Members and 1 Guest are viewing this topic.

muellerfamily

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Allow users to email each other???
« 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
Logged

muellerfamily

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
allow users to email each other
« Reply #1 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.

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Allow users to email each other???
« Reply #2 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
Logged

tanfwc

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 108
    • tanfwc.com
Re: Allow users to email each other???
« Reply #3 on: July 22, 2004, 05:21:15 pm »

GauGau,

Why not add this feature to the next release?

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

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: Allow users to email each other???
« Reply #4 on: July 22, 2004, 05:29:03 pm »

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

muellerfamily

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Allow users to email each other???
« Reply #5 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
Logged

tanfwc

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 108
    • tanfwc.com
Re: Allow users to email each other???
« Reply #6 on: July 23, 2004, 06:30:55 am »

Never!!! it will be a field day for all those email harvesters

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Allow users to email each other???
« Reply #7 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
Logged

muellerfamily

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Allow users to email each other???
« Reply #8 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
« Last Edit: July 24, 2004, 02:11:44 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Allow users to email each other???
« Reply #9 on: July 24, 2004, 02:47:02 pm »

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

GauGau
Logged

muellerfamily

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Allow users to email each other???
« Reply #10 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

« Last Edit: July 27, 2004, 06:30:02 pm by muellerfamily »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Allow users to email each other???
« Reply #11 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
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.