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?
Aug 18, 1999, 12:47 PM
Novice (10 posts)
Aug 18, 1999, 12:47 PM
Post #4 of 9
Views: 650
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
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
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
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
Aug 20, 1999, 3:19 AM
Novice (10 posts)
Aug 20, 1999, 3:19 AM
Post #6 of 9
Views: 650
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
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
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).]
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).]

