Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Unkown Tag: Title

Quote Reply
Unkown Tag: Title
Hello I'm new :)
Not to perl - there are just tooooo many files and I'm late for surgery!

What is "Unkown Tag: Title" on the add.pl when I hit add resource it takes me to a blank page with "Unkown Tag: Title" on it both add_success and add_error have the tags right??
Any ideas?


Xtram Communities
Your Home On the Internet!
Quote Reply
Re: Unkown Tag: Title In reply to
In Reply To:
Hello I'm new :)
Not to perl - there are just tooooo many files and I'm late for surgery!
If you weren't new to perl then you'd probably know how to fix the problem.

add.pl = add.cgi

Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: Unkown Tag: Title In reply to
Code:
$db_script_url = $db_dir_url . "/admin.pl"; # Admin script.
$db_header_path = $db_script_path . "/header"; # Place to store header and footers.
$db_footer_path = $db_script_path . "/footer";
$build_search_url = $db_cgi_url . "/search.pl"; # URL of search script.
$build_add_url = $db_cgi_url . "/add.pl"; # URL of add script.
$build_modify_url = $db_cgi_url . "/modify.pl"; # URL of modify script.
$build_jump_url = $db_cgi_url . "/jump.pl"; # URL of jump script.
$build_email_url = $db_cgi_url . "/subscribe.pl"; # URL of email update script.
$build_rate_url = $db_cgi_url . "/rate.pl"; # URL of rate script.
$db_mail_url = $db_dir_url . "/nph-email.pl"; # URL of admin mass mail script.
$build_css_url = $build_root_url . "/links.css"; # URL to your CSS file.
Thank you, Not it!


Xtram Communities
Your Home On the Internet!
Quote Reply
Re: Unkown Tag: Title In reply to
Er I don't know what the heck you have done but all those file names are wrong!

They should ALL be .cgi apart from site_html_template.pl, site_html.pl, admin_html.pl, db.pl and db_utils.pl

Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: Unkown Tag: Title In reply to
The Unknown Tag error refers to not having the Title field defined in your links.def file. Did you by chance mistakingly change the Title field name to something else without editing your template files?

Regards,

Eliot Lee
Quote Reply
Re: Unkown Tag: Title In reply to
I have not touched it!
Code:
# -------------
# Links
# -------------
# Links Manager
#
# File: links.def
# Description: Contains the database definition for links.
# Author: Alex Krohn
# Email: alex@gossamer-threads.com
# Web: http://www.gossamer-threads.com/
# Version: 2.01
#
# (c) 1998 Gossamer Threads Inc.
#
# This script is not freeware! Please read the README for full details
# on registration and terms of use.
# =====================================================================

# Database Definition: LINKS
# --------------------------------------------------------
# Definition of your database file.
%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 75, 1, '', ''],
URL => [2, 'alpha', 40, 75, 1, 'http://', '^http|news|mailto|ftp'],
Date => [3, 'date', 15, 15, 1, \&get_date, ''],
Category => [4, 'alpha', 0, 150, 1, '', ''],
Description => [5, 'alpha', '40x3', 500, 0, '', ''],
'Contact Name' => [6, 'alpha', 40, 75, 1, '', ''],
'Contact Email' => [7, 'alpha', 40, 75, 1, '', '.+@.+\..+'],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [9, 'alpha', 0, 5, 0, 'No', ''],
isPopular => [10, 'alpha', 0, 5, 0, 'No', ''],
Rating => [11, 'numer', 10, 10, 1, 0, '^[\d\.]+$'],
Votes => [12, 'numer', 10, 10, 1, 0, '^\d+$'],
ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes']
);

# Database file to use -- defined in links.cfg.
$db_file_name = $db_links_name;
# Counter file to use -- defined in links.cfg.
$db_id_file_name = $db_links_id_file_name;
# The column name for the database key.
$db_key = 'ID';
# Database delimeter.
$db_delim = '|';
# Title used in admin output.
$html_title = 'Links Database';
$html_object = 'Link';

# Field Number of some important fields. The number is from %db_def above
# where the first field equals 0.
$db_category = 4; $db_modified = 3; $db_url = 2;
$db_hits = 8; $db_isnew = 9; $db_ispop = 10;
$db_contact_name = 6; $db_contact_email = 7; $db_title = 1;
$db_votes = 12; $db_rating = 11; $db_mail = 13;

# Field number to sort links by:
$db_sort_links = 1;

# Field names you want to allow visitors to search on:
@search_fields = (1,2,5);

# System defaults. When adding new links or modifying links, these fields
# can not be overwritten by a user.
%add_system_fields = (
isNew => 'No',
isPopular => 'No',
Hits => '0',
Rating => 0,
Votes => 0,
ReceiveMail => 'Yes'
);

# Hash of column names to possible options. If you want to use a select form
# field, you can use &build_select_field in your HTML page. This routine will
# make a <SELECT> input tag using the following values:
%db_select_fields = (
isNew => 'Yes,No',
isPopular => 'Yes,No',
ReceiveMail => 'Yes,No'
);

# Hash of column names to radio values. If you use &build_radio_field, it will
# make a <INPUT TYPE="RADIO"> tag for you using the options specified in the hash.
%db_radio_fields = ( );

# Maximum number of hits returned in a search. Can be overridden in the search
# options.
$db_max_hits = 10;

# Use the built in key tracker.
$db_key_track = 1;

# ===========================================================================
# Build up some variables from your definitions. Internal use only.
@db_cols = ();
foreach (sort { $db_def{$a}[0] <=> $db_def{$b}[0] } keys %db_def) {
push (@db_cols, $_);
$db_sort{$_} = $db_def{$_}[1];
$db_form_len{$_} = $db_def{$_}[2];
$db_lengths{$_} = $db_def{$_}[3];
$db_not_null{$_} = $db_def{$_}[4];
$db_defaults{$_} = $db_def{$_}[5];
$db_valid_types{$_} = $db_def{$_}[6];
($_ eq $db_key) and $db_key_pos = $db_def{$_}[0];
}

1;
The only files I've edited are links.cfg and the html files.


Xtram Communities
Your Home On the Internet!
Quote Reply
Re: Unkown Tag: Title In reply to
tags in the add_success.html file
Code:
------------------------------------------------------
<%site_title%>
------------------------------------------------------
<%css%>
------------------------------------------------------
<p><small class="menu">|
<a class="menulink" href="<%build_root_url%>">Home</a> |
<a class="menulink" href="<%db_cgi_url%>/add.pl">Add Site</a> |
<a class="menulink" href="<%db_cgi_url%>/modify.pl">Modify Site</a> |
<a class="menulink" href="<%build_root_url%>/New">What's New</a> |
<a class="menulink" href="<%build_root_url%>/Cool">What's Cool</a> |
<a class="menulink" href="<%build_root_url%>/Ratings">Top Rated</a> |
<a class="menulink" href="<%db_cgi_url%>/subscribe.pl">Email Updates</a> |
<a class="menulink" href="<%db_cgi_url%>/jump.pl?ID=random">Random Link</a> |
<a class="menulink" href="<%db_cgi_url%>/search.pl">Search</a> |</small></p>
</table>

------------------------------------------------------
<pre><strong> Title: <%Title%>
URL: <%URL%>
Description: <%Description%>
Contact Name: <%Contact Name%>
Contact Email: <%Contact Email%>
Category: <%Category%>
</strong></pre>
------------------------------------------------------
<%db_cgi_url%>
------------------------------------------------------
And In the add_error.html
Code:
------------------------------------------------------
<%site_title%>
------------------------------------------------------
<%css%>
------------------------------------------------------
<a class="menulink" href="<%build_root_url%>">Home</a> |
<a class="menulink" href="<%db_cgi_url%>/add.pl">Add Site</a> |
<a class="menulink" href="<%db_cgi_url%>/modify.pl">Modify Site</a> |
<a class="menulink" href="<%build_root_url%>/New">What's New</a> |
<a class="menulink" href="<%build_root_url%>/Cool">What's Cool</a> |
<a class="menulink" href="<%build_root_url%>/Ratings">Top Rated</a> |
<a class="menulink" href="<%db_cgi_url%>/subscribe.pl">Email Updates</a> |
<a class="menulink" href="<%db_cgi_url%>/jump.pl?ID=random">Random Link</a> |
<a class="menulink" href="<%db_cgi_url%>/search.pl">Search</a> |</small></p>
------------------------------------------------------
<%site_title%>
------------------------------------------------------
<form action="<%db_cgi_url%>/add.pl" method="POST" ENCTYPE="multipart/form-data" class="form">

<p>There were the following errors trying to add your resource:</p>
<p><strong class="error">
<%error%>
</strong></p>

<p>Please make any changes and try again!</p>
<div class="margin">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td align="right" valign="top">Title:</td>
<td><input name="Title" value="<%Title%>" size="50" class="form"></td></tr>
<tr><td align="right" valign="top">URL:</td>
<td><input name="URL" value="<%URL%>" size="50" class="form"></td></tr>
<tr><td align="right" valign="top">Category:</td>
<td><%Category%>
<tr><td align="right" valign="top">Description:</td>
<td><textarea wrap="virtual" name="Description" rows="3" cols="42" class="form"><%Description%></textarea></td></tr>
<tr><td align="right" valign="top">Contact Name:</td>
<td><input name="Contact Name" value="<%Contact Name%>" size="40" class="form"></td></tr>
<tr><td align="right" valign="top">Contact Email:</td>
<td><input name="Contact Email" value="<%Contact Email%>" size="40" class="form"></td></tr>
<tr><td></td><td><input type="SUBMIT" value="Add Resource"></td></tr>
</table>
</div>
</form>

<form action="<%db_cgi_url%>/search.pl" method="GET" ENCTYPE="multipart/form-data" class="form">
<h2>Search</h2>
<div class="margin">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td><strong class="search">Looking for something in particular?</strong></td></tr>
<tr><td><input type="text" size=15 name="query" class="form"> <input type=submit value="Search!" class="form"></td></tr>
<tr><td><small class="more"><a href="<%db_cgi_url%>/search.pl">More search options</a></small></td></tr>
</table>
</div>
</form>
------------------------------------------------------

------------------------------------------------------


Xtram Communities
Your Home On the Internet!