1

Topic: Emailing users from the forums

If I click on the "email" link under a user's avatar, it works just great, opening a new message in my email client.
The link followed takes the format  mailto:usersemailhere

If I follow the "send email" link in the users profile (accessed by clicking on userlist), it fails to open a new email to the user, instead a blank screen is displayed in my browser.
I notice the link format is

http://www.landenmeadows.net/misc.php?email=4

How do I get the latter to read the same as the former ? (If this will ensure it works that is)

Landen Meadows Residents Forum - http://www.landenmeadows.net

Re: Emailing users from the forums

Did you modify misc.php? That should lead you to the form email option.

3 (edited by axa 2007-12-11 02:57)

Re: Emailing users from the forums

I might have, although the mentions of the word "form email" in misc.php look pretty unexciting.
Even users that have allowed form email, are still unreachable by the link mentioned above. I'd still prefer to email using punbb than have it open a new message in outlook though.

<?php

// Language definitions used in various scripts
$lang_misc = array(

'Mark read redirect'        =>    'All topics and forums have been marked as read. Redirecting …',

// Send e-mail
'Form e-mail disabled'        =>    'The user you are trying to send an e-mail to has disabled form e-mail.',
'No e-mail subject'            =>    'You must enter a subject.',
'No e-mail message'            =>    'You must enter a message.',
'Too long e-mail message'    =>    'Messages cannot be longer than 65535 characters (64 KB).',
'E-mail sent redirect'        =>    'E-mail sent. Redirecting …',
'Send e-mail to'            =>    'Send e-mail to',
'E-mail subject'            =>    'Subject',
'E-mail message'            =>    'Message',
'E-mail disclosure note'    =>    'Please note that by using this form, your e-mail address will be disclosed to the recipient.',
'Write e-mail'                =>    'Write and submit your e-mail message',
Landen Meadows Residents Forum - http://www.landenmeadows.net

Re: Emailing users from the forums

Paste all of that language file, since http://www.landenmeadows.net/misc.php?action=rules seems to also not work. My guess is there's a parse error but you have display_errors turned off.
Also, could you paste all of the actual misc.php?

5

Re: Emailing users from the forums

misc.php below

<?php

// Language definitions used in various scripts
$lang_misc = array(

'Mark read redirect'        =>    'All topics and forums have been marked as read. Redirecting …',

// Send e-mail
'Form e-mail disabled'        =>    'The user you are trying to send an e-mail to has disabled form e-mail.',
'No e-mail subject'            =>    'You must enter a subject.',
'No e-mail message'            =>    'You must enter a message.',
'Too long e-mail message'    =>    'Messages cannot be longer than 65535 characters (64 KB).',
'E-mail sent redirect'        =>    'E-mail sent. Redirecting …',
'Send e-mail to'            =>    'Send e-mail to',
'E-mail subject'            =>    'Subject',
'E-mail message'            =>    'Message',
'E-mail disclosure note'    =>    'Please note that by using this form, your e-mail address will be disclosed to the recipient.',
'Write e-mail'                =>    'Write and submit your e-mail message',

// Report
'No reason'                    =>    'You must enter a reason.',
'Report redirect'            =>    'Post reported. Redirecting …',
'Report post'                =>    'Report post',
'Reason'                    =>    'Reason',
'Reason desc'                =>    'Please enter a short reason why you are reporting this post',

// Subscriptions
'Already subscribed'        =>    'You are already subscribed to this topic.',
'Subscribe redirect'        =>    'Your subscription has been added. Redirecting …',
'Not subscribed'            =>    'You are not subscribed to this topic.',
'Unsubscribe redirect'        =>    'Your subscription has been removed. Redirecting …',

// General forum and topic moderation
'Moderate'                    =>    'Moderate',
'Select'                    =>    'Select',    // the header of a column of checkboxes
'Move'                        =>    'Move',
'Delete'                    =>    'Delete',

// Moderate forum
'Open'                        =>    'Open',
'Close'                        =>    'Close',
'Move topic'                =>    'Move topic',
'Move topics'                =>    'Move topics',
'Move legend'                =>    'Select destination of move',
'Move to'                    =>    'Move to',
'Leave redirect'            =>    'Leave redirect topic(s)',
'Move topic redirect'        =>    'Topic moved. Redirecting …',
'Move topics redirect'        =>    'Topics moved. Redirecting …',
'Confirm delete legend'        =>    'Please confirm deletion',
'Delete topics'                =>    'Delete topics',
'Delete topics comply'        =>    'Are you sure you want to delete the selected topics?',
'Delete topics redirect'    =>    'Topics deleted. Redirecting …',
'Open topic redirect'        =>    'Topic opened. Redirecting …',
'Open topics redirect'        =>    'Topics opened. Redirecting …',
'Close topic redirect'        =>    'Topic closed. Redirecting …',
'Close topics redirect'        =>    'Topics closed. Redirecting …',
'No topics selected'        =>    'You must select at least one topic for move/delete/open/close.',
'Stick topic redirect'        =>    'Topic sticked. Redirecting …',
'Unstick topic redirect'    =>    'Topic unsticked. Redirecting …',

// Delete multiple posts in topic
'Delete posts'                =>    'Delete posts',
'Delete posts comply'        =>    'Are you sure you want to delete the selected posts?',
'Delete posts redirect'        =>    'Posts deleted. Redirecting …',
'No posts selected'            =>    'You must select at least one post to be deleted.'

);

Oddly, I have a misc.php in my root folder, and lang/english
What language files are you referring to ?

Landen Meadows Residents Forum - http://www.landenmeadows.net

Re: Emailing users from the forums

What you just pasted is called a language file. The one in the root is the actual file you're loading, misc.php.
Oh dear, is that the file in your root? tongue
If so, someone overwrote misc.php with the contents of lang/English/misc.php. Download a fresh copy of PunBB and upload the right file.

7 (edited by axa 2007-12-11 03:36)

Re: Emailing users from the forums

Kablaaaam !
Thanks for the help there, Smartypants, that did the trick.
I shall celebrate in fine style by sending a broadcast email linking my registered users to 2girls1cup.
Or maybe not. Most of them are sensitive housewife types, and have as much appreciation for scat videos as a snake has hips.

Landen Meadows Residents Forum - http://www.landenmeadows.net