}
#
# Archive Link Formatting. Edit the HTML below to change the style.
# This defines the links on the main archive page, the one that
# links to the individual monthly archives.
# The location of the archive is $arcfile.$ArcHtmlExt and the
# month the archive covers is $ArcDate{$arcfile}.
# Reminder: if editing this file by hand, follow the instructions
# at the top of the file or the script may not function.
sub DoLinkHTML {
$newshtml = qq~
$ArcDate{$arcfile}
~;
}
#
# Headline Formatting.
# This defines the headlines that will be produced if you enable headlines
# (in Advanced Settings).
# You have access to all the variables as in DoNewsHTML.
# TIP: To link the headline to your full news article, use a link like:
# $newssubject
sub DoHeadlineHTML {
$newshtml = qq~
$newssubject - $newsdate
~;
}
#
#
# New Files Formatting
# The format of the file links on the new files list (enabled via Advanced Settings).
# $fileurl: URL of the file
# $filetitle: Name or title of the file
# $filedate: Date the file was last modified
sub DoNewFileHTML {
$newshtml = qq~
$filetitle
~;
}
# Email Notification
# How the e-mail notifications sent will look.
# If you choose to have news items sent manually, in batches,
# you'll be able to edit this before sending. Otherwise, this will be
# the text of the message.
#
# You have access to all the new variables, as in DoNewsHTML.
sub DoEmailText {
$newshtml = qq~
---------------------------------
$newssubject
---------------------------------
Posted $newsdate by $newsname:
$newstext
~;
}
# Archive HTML
# The news style used when archiving.
# By default, calls DoNewsHTML. If you'd like a different style, replace this with something like
# sub DoArchiveHTML {
# $newshtml = qq~
# $newssubject Posted $newsdate by $newsname
# $newstext
#
# ~;
# }
sub DoArchiveHTML {
&DoNewsHTML;
}
# Search HTML
# Much like archive HTML - by default, uses DoNewsHTML.
sub DoSearchHTML {
&DoNewsHTML;
}
1;
push(@Addons_Loaded, 'Addon Manager');
$Addons_List{'Addon Manager 1.1'} = ['npa_add.pl', 'Displays a list of currently installed addons, along with download and upgrade information.', 'http://www.amphibianweb.com/addon.cgi?add&1.01'];
push(@Addons_PageHandler, 'AddonManagerHandler');
push(@Addons_MainPage, 'AddonManagerMainPage');
push(@Addons_NPHTMLFoot, 'AddonManagerHTMLFoot');
sub AddonManagerHandler {
if (query_string() eq 'addonmanager') {
&ShowAddonManager;
exit;
}
}
sub AddonManagerHTMLFoot {
if ($up == 3) {
print qq~
Addon Manager |~;
}
}
sub AddonManagerMainPage {
if ($up == 3) {
print qq~
Addon Manager: View currently installed or install new addons (small files which extend NewsPro's abilities).
~;
}
}
sub ShowAddonManager {
&NPHTMLHead("Addon Manager");
print qq~
A list of currently installed addons is below. To remove any of these, delete its file (listed along with its name below). To install new addons,
download them from the NewsPro site and simply copy the files into your NewsPro directory.
~;
my $i;
foreach $i (sort keys %Addons_List) {
my $name = $i;
my $filename = $Addons_List{$i}->[0];
my $description = $Addons_List{$i}->[1];
my $imageurl = $Addons_List{$i}->[2];
if ($imageurl) {
$imageurl =~ s/amphibian\.gagames\.com/www.amphibianweb.com/i;
$imageurl = qq~~;
}
print qq~
$name: $description
Filename: $filename $imageurl
~;
}
&NPHTMLFoot;
}
$npconfigversion = 3;
# npconfig.pl
# This file is designed to make advanced customizations easier.
# The various settings in this file control most aspects of NewsPro.
# To change the style of your news, edit ndisplay.pl.
# NOTE: This file used to contain the Advanced Settings definition.
# This has been moved to newspro.cgi as of version 2.
sub SubmitFormFields {
# This sets the different fields in newsdat.txt that you can submit via the Submit News
# page.
# To add a field, add its internal name (no spaces or odd characters) to
# @formfields.
# You will probably want to give the field a nicer name (spaces allowed):
# $FormFields{'internal_form_name'} = "Full form name.";
# where internal_form_name is the same as in @formfields.
# Normally, a standard text field will be used for that field. If you need
# to use different HTML, use the following:
# $FormFieldsCustom{'internal_form_name'} = qq~ The HTML you want ~;
# Note: the main news text box cannot be configured this way, it's hard-coded.
# While custom HTML will not apply in Modify News, there is the option to use
# a multi-line text box (