Gossamer Forum
Home : Products : Links 2.0 : Customization :

Send Link v2.0

Quote Reply
Send Link v2.0
Hi to ALL as a beginner I have installed everything but this script don't get to work.

I've followed the instructions at: http://www.anthrotech.com/cgi/links/mods/sendlink/

But when I fill into the boxes 4 times the word fuck, it will be send to ??? and so the bad script doesn't work. It also don't check on incorrect emailadresses???
How is this possible, can you help me...

thanx

------------------
Quote Reply
Re: Send Link v2.0 In reply to
Thanx for that quick responding... I've copied @dirty_words = etc was already in links.cfg

But what do you mean with:
Also, make sure that you have kept the same field name of message in your forms and in the site_html_templates.pl file.

And If you could help me with this: THANKS
About checking the correct format of addresses, that is NOT part of the Mod, but I will add codes in the Mod that will do this. If you know anything about Perl or how LINKS work, it is not that hard to implement.



------------------
Quote Reply
Re: Send Link v2.0 In reply to
 
Quote:
Also, make sure that you have kept the same field name of message in your forms and in the site_html_templates.pl file.

Uh...like message for the textarea box. And you have to have message => $fields{'message'} in the field tag definition areas of the subs you've added to the site_html_templates.pl.

Quote:
And If you could help me with this: THANKS

Done! Download the new sendlink.cgi (sendlink.txt) script from the Mod page.

Regards,

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Send Link v2.0 In reply to
Uh...you must've forgotten to create the @dirty_words array in the links.cfg file or it is in the wrong format. The array should look like the following:

Code:
@dirty_words = ('word1','word2','word3');

Also, make sure that you have kept the same field name of message in your forms and in the site_html_templates.pl file.

About checking the correct format of addresses, that is NOT part of the Mod, but I will add codes in the Mod that will do this. If you know anything about Perl or how LINKS work, it is not that hard to implement.

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.




[This message has been edited by AnthroRules (edited April 29, 2000).]
Quote Reply
Re: Send Link v2.0 In reply to
Hi Eliot, thanx for your help with this script. But the script gives an error...
it's sendlink.txt

Error:
if ($fields{'recipemail'} eq "") {
$message .= "<li> You did not provide a recipient email address.</li><br>"

Good:
if ($fields{'recipmail'} eq "") {
$message .= "<li> You did not provide a recipient email address.</li><br>"

Maybe you can correct this...

A lot of thanx for your great help!!!



------------------
Quote Reply
Re: Send Link v2.0 In reply to
Oh, I see!

I will edit the files YET again...Good thing I have stopped writing offical Mods for LINKS and DBMAN...a lot of extra energy helping people de-bug the scripts to fit their sites with limited amount of gratitude.

But I do appreciate your appreciation.

You're welcome.

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.




[This message has been edited by AnthroRules (edited May 08, 2000).]
Quote Reply
Re: Send Link v2.0 In reply to
Okay Eliot your welcom,

the script you write works fine. You have made this in the blockurl script:
http://www.gossamer-threads.com/scripts/forum/resources/Forum3/HTML/006031.html

You have to add the following lines:

1)
require "$db_lib_path/blockurl.txt"

2)
$domain = $in{'recipmail'};
foreach $url (@blockurl) {
if ($in{'recipmail'} =~ /$url/i) {
&site_html_mailing_error (qq|<a href="$domain">$url</a> is restricted from addition|);
return;
}
}

where can I put this example code into the sendlink.pl so that the sender and the receiver must have a real emailaddress and not a fake like "hotmail" etc...

Thanx again..

------------------
Quote Reply
Re: Send Link v2.0 In reply to
Uh...there are already codes that verifies the email format...

If you want to block email addresses then you will have to add the following codes:

Code:
require "$db_lib_path/blockurl.txt";

AFTER the following codes in the Required Libraries section:

Code:
require "$db_lib_path/links.def";

Then add the following codes:

Code:
# BEGIN Email Domain Check
#============================================
$domain = $in{'recipmail'};
foreach $url (@blockurl) {
if ($in{'recipmail'} =~ /$url/i) {
&site_html_mailing_error (qq|<a href="$domain">$url</a> is restricted from addition|);
return;
}
}
# End Email Domain Check
#============================================

AFTER the following codes in the sub process_form routine:

Code:
# End Check Email fields
#======================================================================

Come on...start thinking out of the codes...they are inter-related and can be used in different LINKS scripts! Do you even see similarities between the scripts???

Wink

BTW: I will NOT be adding this particular CODE HACK to the SENDLINK release because it is very particular to your needs and is NOT generic, which I try to keep Mods in that condition!!

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Send Link v2.0 In reply to
Dear Eliot thanx for helping me. I've put the code into it but I've getting an error:
$domain = $in{'recipmail'};
foreach $url (@blockurl) {
if ($in{'recipmail'} =~ /$url/i) {
&site_html_mailing_error (qq|<a href="$domain">$url</a> is restricted from addition|);
return;
}
}

I have changed $in into $field and it works Is this correct??
As a beginner I cann't create scripts but I try to modified them to see how things works.
The script you're talking about checks if the emailformat is correct. 2de it's not allowed to send and use something with a fake emailaddress like "hotmail.com" and 3th in de line I can put someones emailaddress so that he/she can't use the form to send emails again... Sendlink has also an extra option to check for bad words... thats why these modifications...
Many thanx for helping me out...

------------------


[This message has been edited by Hacktor (edited May 09, 2000).]
Quote Reply
Re: Send Link v2.0 In reply to
 
Quote:
I have changed $in into $field and it works Is this correct??

Yes...good job...you figured out...I am so surprised and proud of you.

Wink

I don't understand the rest of your commentary...Are you confirming the options that are available in Send Link or is there yet another request hidden in that paragraph??

Anyway, you're welcome.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Send Link v2.0 In reply to
No Eliot there is nothing more.. You helped me a lot. Therefore a milion thanx, you're great... and sorry for my bad english..

------------------
Quote Reply
Re: Send Link v2.0 In reply to
You're welcome.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.