Gossamer Forum
Home : Products : Links 2.0 : Customization :

i want to include Altcategory in the e-mail

Quote Reply
i want to include Altcategory in the e-mail
i'm using loopy's multiple category and it seems to be working fine but when someone submit a link , i like to inform the person in the e-mail i send him that your link has been added to category as well as the altcategory so where do i need to define it? in what script?
Quote Reply
Re: i want to include Altcategory in the e-mail In reply to
In email-add.txt (Templates Dir) add <%AltCategories%>
Eg;
Title: <%Title%>
URL: <%URL%>
Category: <%Category%>
AltCatergories: <%AltCategories%>
Quote Reply
Re: i want to include Altcategory in the e-mail In reply to
do not i need to define it in any scripts?
or the mode already defined it?
Quote Reply
Re: i want to include Altcategory in the e-mail In reply to
No it just adding the tag should be enough. I presume you have AltCategories installed in your links.def and as per Links v2 Mod - Multiple Categories at http://www.online-sweepstakes.com/links-mods/ and is functioning as required.

You may want to add it to add.cgi in
sub send_email
This informs the admin that a new addition has been added and awaiting validation.
Title: $in{'Title'}
URL: $in{'URL'}
Category: $in{'Category'}
AltCatergories: $in{'AltCategories'}

Otherwise it's just another Database Definition and should'nt require anything else (as far as I can remember), it's a while scince I installed it.
Regards
Colm
Quote Reply
Re: i want to include Altcategory in the e-mail In reply to
I must be terribly confused...I thought that I had installed "Loopy's Multiple/Alternative Mod". First of all, the mod I installed does not allow users to select alternative categories. Secondly, it is the administrator who can only add "Alternative Categories".

When I tried adding <%AltCategories%>, I get an Unknown Tag: <%AltCategories%> in the email response message.

Did I install the wrong mod or is it just me that for adding new sites and modifying sites that the <%AltCategories%> tag won't work in the email message?

Please let me know.

Thank you for your time.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: i want to include Altcategory in the e-mail In reply to
Hi Elliot,

Sounds like you may have not included it in your site_html_templates (if your using templates)
You should have something like:

sub site_html_add_form {
# --------------------------------------------------------
# This routine determines how the add form page will look like.
#
&html_print_headers;

my $category = shift;
my $category = &build_select_field ("Category", "$category");
my $altcategories = &build_select_field ("AltCategories","$in{'AltCategories'}","AltCategories","MULTIPLE Size=3");
my $location = &build_select_field ("Location", "$location");


print &load_template ('add.html', {
AltCategories => $altcategories,
Location => $location,
Category => $category,
%globals
});

This mod also requires changes to
sub site_html_add_success
sub site_html_add_failure

Is it the ADD form where you're getting stuck? and what exactly is displayed?

Regards

Colm
Quote Reply
Re: i want to include Altcategory in the e-mail In reply to
Thanks. The add forms are functioning fine. I guess I neglected to add the AltCategories in the site_html_templates.pl file, which makes sense why the <%AltCategories%> does not appear in the email notification message.

Thanks, I will add the codes to the site_html_templates.pl file.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited August 20, 1999).]
Quote Reply
Re: i want to include Altcategory in the e-mail In reply to
Use

<%if AltCategories%>
Extra Categories
<%AltCategories%>
<%endif%>

just in case you don`t give em any extra categories.
chmod
Quote Reply
Re: [ColmC] i want to include Altcategory in the e-mail In reply to
In Reply To:
This mod also requires changes to
sub site_html_add_success
sub site_html_add_failure

Is it the ADD form where you're getting stuck? and what exactly is displayed?

Regards

Colm
What are the exact changes that need to be made to these subs? Would greatly appreciate it.
-darlisa

http://www.fignations.com