Gossamer Forum
Home : Products : Links 2.0 : Customization :

"Join Newsletter?" in add a link section

Quote Reply
"Join Newsletter?" in add a link section
Hello! How could I have a "Yes" or "No" drop down list and the question "Do you want to join the newsletter" feature on the add a link form and allow webmasters to join the mailing list from there?
Quote Reply
Re: "Join Newsletter?" in add a link section In reply to
Sorry, I don't have an answer, but would really like to know how too!

Beckie

------------------
IT'S HERE! The easy to use directory!
http://its-here.virtualave.net
Quote Reply
Re: "Join Newsletter?" in add a link section In reply to
On the add_success page or template just put a drop down menu next to the email address field. Since they just submitted you can use the <%contact email%> to automatically put their email address in then have the drop down menu say yes|no, but don't give them those names, just value. I think that should work, make thier names subscribe and unsubscribe.

------------------
-----------------
Lavon Russell
LookHard! Search
www.lh.yi.org
webmaster@lh.yi.org


Quote Reply
Re: "Join Newsletter?" in add a link section In reply to
Hi Bmxer!

Is it possible you could post some code on how to do this - please...and on what tempaltes it would have to go. Smile


------------------
www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory




Quote Reply
Re: "Join Newsletter?" in add a link section In reply to
The correct usage is
http://www.yourdomain.com/path/to/subscribe.cgi?action=subscribe&name=<%contact name%>&email=<%contact email%>
You can fit it in the add-success.html template with a "yes" button.
The problem is a possible space between name and surname in contact name, so it's better to leave it away. Therefore it's not possible to make personal newsmails!
Maybe someone knows a better idea.

Best wishes
Stefan

------------------
visit Juhu!Katzen!
http://www.juhukatzen.de/
Quote Reply
Re: "Join Newsletter?" in add a link section In reply to
I haven't tried it, but this might work?

<form action="/yoursite/subscribe.cgi" method="POST">
<div class="margin">
<p>Do you want to join the newsletter?</p>
<p><select name="action"><option value="subscribe">Subscribe<option value="unsubscribe">Unsubscribe</select> to the list<br>
Name: <input name="name" size=15 value="<%contact name%">> Email: <input name="email" size=15 value="<%contact email%">> <input type="submit" value="Subscribe">
</p>
</div>
</form>


I'm not sure if the value's, IE: %contact email% and %contact name% will work, but it's worth a shot!
Quote Reply
Re: "Join Newsletter?" in add a link section In reply to
Sorry, but it can't work!
Why should add.cgi know what <%contact name%> or <%contact email%> mean and what's the value for that.
You can't use these terms after the addition to the database. Therefore my suggestion is wrong es well! :-(
But you can use the terms with http://www.yourdomain.com/path/to/subscribe.cgi?action=subscribe&name=<%contact name%>&email=<%contact email%> in the email-add.txt! But still you got the problem of a possible space between name and surname in contact name!

Best wishes
Stefan

------------------
visit Juhu!Katzen!
http://www.juhukatzen.de/
Quote Reply
Re: "Join Newsletter?" in add a link section In reply to
Hello everyone!

Glad yal like me thread that I started back in August. I've grown in CGI since August so I can probably help if I have the time to get to it, but I'm looking forward to what you think up. God bless!

------------------
Daniel

dan@christian-search.net
http://www.christian-search.net
Quote Reply
Re: "Join Newsletter?" in add a link section In reply to
Greetings All!

It seems this thread and others relating to this have been around for quite sometime without a satisfactory resolution.

I pray one of the perl gurus will assist in putting it to rest for those links users who are seeking this.

------------------
www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory




Quote Reply
Re: "Join Newsletter?" in add a link section In reply to
He BoBo!

That's not fair Smile
We're making our suggestions just for you and you...

Come on - give us the code Smile

Best wishes
Stefan

------------------
visit Juhu!Katzen!
http://www.juhukatzen.de/
Quote Reply
Re: "Join Newsletter?" in add a link section In reply to
If your using templates I don't see any reason why it wouldn't work. If you notice in the add_success.html template there are tags that verify the submission of <%Contact Name%> and <%Contact Email%> so of course the add.cgi would know how to read them. Whether or not it will work as a value=Contact Name I'm not sure, but try it, it just might work! I haven't looked into any non-template functions so, I'm not sure how that would work.

Good Luck
Quote Reply
Re: "Join Newsletter?" in add a link section In reply to
After thinking about it.....if the tags for the subscribe me are <%contact name%> and for the regular add url form are <%Contact Name%> then maybe it won't be able to read them. I'm not sure.......has anyone tried yet?? I don't use the newsletter function or I would try it myself!
Quote Reply
Re: "Join Newsletter?" in add a link section In reply to
Hi!

I tried it in several ways and it dind't work! So I came to the conclusion that it can't Wink

Hopefully BoBo will post his solution

Best wishes
Stefan

------------------
visit Juhu!Katzen!
http://www.juhukatzen.de/
Quote Reply
Re: "Join Newsletter?" in add a link section In reply to
Greetings BoBo!

Looks like it is down to you to see if the question raised in this forum can be dealt with Smile

Any assistance will certainly be appreciated by all concerned.

------------------
www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory