Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: How to make LinkOwner not required?

Quote Reply
Re: How to make LinkOwner not required? In reply to
Here's my solution, I added the following to my add.html and add_error template:


<%ifnot Username%>
<input TYPE="hidden" name="Contact_Name" value="admin"><input TYPE="hidden" name="Contact_Email" value="links@yoursite.com">
<%else%>
<input TYPE="hidden" name="Contact_Name" value="<%Name%>"><input TYPE="hidden" name="Contact_Email" value="<%Email%>"><%endif%>

That way if a person is logged in, they automatically become the linkowner, otherwise it reverts to the admin. I completely took off the contact and email field as it was just confusing to me and the people adding links.

I know zip about perl so if I can do things in the templates, that's always my first choice.

Bryan

Subject Author Views Date
Thread How to make LinkOwner not required? Canucks 2062 Mar 22, 2001, 7:18 AM
Thread Re: How to make LinkOwner not required?
qango 1986 Apr 6, 2001, 2:58 AM
Post Re: How to make LinkOwner not required?
BryanL 1976 Apr 6, 2001, 7:22 AM
Thread Re: How to make LinkOwner not required?
pugdog 1959 Apr 6, 2001, 9:10 AM
Thread Re: How to make LinkOwner not required?
qango 1958 Apr 6, 2001, 9:47 AM
Post Re: How to make LinkOwner not required?
pugdog 1945 Apr 6, 2001, 10:44 AM