Previous Thread
Next Thread
Print Thread
Rating: 1
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Mod Name / Version: Surpress Email Address Email Form 1.0

Description: Well with the new spam laws for one and the way spider's love to grab people's emails to send them porn I got tired of this happening so I figured it best to create a little email form so allow user's to email each other. The other user of course can choose not to email them back but this enables people not to see people's emails.

I welcome all feedback as this is an initial release and subject to alot of change.

[]http://mywebpages.comcast.net/omegatron/Image2.gif[/]

Working Under: UBB.Threads 6.4

Mod Status: Beta

Any pre-requisites: Threads

Author(s): Omegatron

Date: 12/27/03

Credits:

Files Altered: showprofile.tmpl and showprofile.php language files.

New Files: emailuser.php
doemailuser.php
/languages/english/emailuser.php
/languages/english/doemailuser.php
/templates/default/emailuser.tmpl
/templates/default/doemailuser.tmpl
/templates/default/doemailuser_confirm.tmpl

Database Altered: Nope

Info/Instructions: This is kinda reminisent of VB in how they use an email form instead of displaying a user's email.

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Attachments
103219-emailuser.zip (0 Bytes, 45 downloads)

Sponsored Links
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Chuck
it looks great but I got a java error when trying to type in the main text box. "Expects a object"

I added some java to the top of the templates emailuser.tmpl and doemailuser.tmpl
Code
 <? <br />echo <<<EMAILPRINT <br /><script language="javascript" type="text/javascript"> <br /><!-- <br /> <br />function quickreply(id) { <br />	if (!document.getElementById) { <br />		alert("{$ubbt_lang['NOSUPPORT']}"); <br />	} else if (navigator.userAgent.toLowerCase().indexOf("opera") != -1) { <br />		alert("{$ubbt_lang['NOSUPPORT']}"); <br />	} else { <br />		obj = document.replier; <br />		obj.Parent.value = document.getElementById('number' + id).innerHTML; <br />		subject = document.getElementById('subject' + id).innerHTML; <br />		if (!pattern.test(subject)) { <br />			subject = 'Re: ' + subject; <br />		} <br />		obj.Subject.value = subject; <br />		insertAtCaret(obj.Body, ' '); <br />		obj.Body.focus(); <br />	} <br />} <br /> <br />function storeCaret (textEl) { <br />        if (textEl.createTextRange) <br />                textEl.caretPos = document.selection.createRange().duplicate(); <br />} // end fn <br /> <br />function insertAtCaret (textEl, text) { <br />        if (textEl.createTextRange && textEl.caretPos) { <br />                var caretPos = textEl.caretPos; <br />                caretPos.text = <br />                        caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? <br />                        text + ' ' : text; <br />        } else { <br />                textEl.value  = textEl.value + text; // for non MSIE browsers just append it <br />        } <br /> <br />        return true; <br />}// fn <br /> <br />// --> <br /></script> <br />$tbopen 


Need to give josh credit since I lifted the code from his quick reply mod to debug it. Nice job

Last edited by Smilesforu; 01/08/2004 5:09 AM.
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Updated and no need to Javascript

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Requested ability to send attachments. Some users can't edit images so they send to others to help them. Would that add them to the site band width using this? Maybe not such a good idea unless it was only allowed for a select group, admin and mods.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Quite frankly I am not sure about the site bandwidth question as I am not too hip on mail features and how that would relate.

As far as the attachments I am sure that can be arragned quite easily

Sponsored Links
Joined: Sep 2003
Posts: 3
Junior Member
Junior Member
Offline
Joined: Sep 2003
Posts: 3
Would love to see this updated for 6.5


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)