Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Newsletter

Quote Reply
Newsletter
Does some way exist of knowing how many people are registered in " Newsletter "?

Thanks

Adilson

Quote Reply
Re: Newsletter In reply to
Yeah it's possible. Where would you want it to be displayed? On your templates/website or in admin?


Glenn

Quote Reply
Re: Newsletter In reply to
I'd be interested in that topic too. How can I include the number of subscribers in the templates?

Quote Reply
Re: Newsletter In reply to
Hello

If it is possible it would like to exhibit in both (templates and in the admin).

Thanks

Adilson

Quote Reply
Re: Newsletter In reply to
Hi!

I did this for the admin-part, I just edited in admin_html.pl the sub html_mail_update like this (only the top of the sub is shown):


sub html_mail_update {
# --------------------------------------------------------
# Figure out who we are mailing to.
#
my $new_links = &build_new_links;
my $subscribers = &build_email_list;
my $subject = "New links at " . &get_date;

open (DB, "<$db_email_name ") or &cgierr("unable to open db file: $db_email_name .\nReason: $!");
if ($db_use_flock) { flock(DB, 1); }
my @LWTemp = <DB>;
close DB;
my $LWSubscribersCounter = @LWTemp;


&html_print_headers();
print qq|
<html>
<head>
<title>$html_title: Email Update.</title>
</head>

<body bgcolor="#ffffff" text="#000000" link="#0000FF" vlink="#0000FF" alink="#0000FF">
<form action="$db_mail_url" METHOD="POST">
<input type=hidden name="db" value="email">
<blockquote>
<table width=95% cellpadding=2 cellspacing=3 border=0 bgcolor="#dddddd">
<tr><td colspan=2 bgcolor="navy">
<FONT FACE="MS Sans Serif, arial,helvetica" size=1 COLOR="#FFFFFF">
<b>$html_title: Email Update</b>
</td></tr>
</table>
<p><$font>Subscribers: $LWSubscribersCounter</font></p>
<p><$font>Mail to:
$subscribers</font></p>



It should be easy to adept this to the non-admin parts.

bye
Tiggr

(fup to Modifications-forum)
Quote Reply
Re: Newsletter In reply to
Thanks Tiggr

It was exactly that that I needed.
It worked perfectly.

Thanks again.

Adilson