Gossamer Forum
Home : Products : Links 2.0 : Customization :

Tella2.cgi help

Quote Reply
Tella2.cgi help
Hello,

I've added tella2 mod today. Every thing works great. All I would like to do is add a link to my site at the bottom of the recieved email. Any help would be appreciated.

Thanks,Bill
http://www.free4everyone.com/
Quote Reply
Re: [billpavNJ] Tella2.cgi help In reply to
I haven't tried this, but this should work.



If your tella2.cgi find the following. (should be almost at the bottom)

Quote:


my $to = $in{'temail'};
my $from = $in{'yemail'};
my $subject = "Check this site out!\n";
my $msg = qq|
Just seen a great site you have to visit!:

Site title: $in{'Title'}
Site URL: $in{'URL'}
Description: $in{'Description'}


Sincerely,

$in{'yname'}
|;


change it to this:

Quote:


my $to = $in{'temail'};
my $from = $in{'yemail'};
my $subject = "Check this site out!\n";
my $msg = qq|
Just seen a great site you have to visit!:


Site title: $in{'Title'}
Site URL: $in{'URL'}
Description: $in{'Description'}



Sincerely,

$in{'yname'}

$build_default_url
|;


I just added the $build_default_url tag. That will just build your sites url.



Goodluck

intellieCrazy
Quote Reply
Re: [intellie] Tella2.cgi help In reply to
Actually, I think it would be $build_root_url.

The $build_default_url is from a mod that puts the Links index page in the top-level directory of your site. Um, so your home page/index page is the Links home page, while the rest of the Links pages are built in a subdirectory (pages...).


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Tella2.cgi help In reply to
Thanks, build_root_url worked fine.

Bill
http://www.free4everyone.com/
Quote Reply
Re: [billpavNJ] Tella2.cgi help In reply to
Yes your are right, I just had that changed to my specifications and I totaly forgout about it.

intellieCrazy