Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Category: Error building

Quote Reply
Category: Error building
Hello,

first i will tell a lot of thanks to the team, who help me about my first question. But now i have another mistake in the programm. the script will be work fine, only in the category i have mistakes.

I can create new Categorys, can they add, delete and much more. It is ok. But when i will add a new link, the script say in the category field:
Category:
error building select field: no select fields specified in config for field 'Category'!

I have read the discussion from 28.Feb 00 in this forum but the answers dont help me or i dont understand it. I have insert the variable at the subsie_html_add_form:

"my $clean_category = &build_clean($category)

but that donīt help me.

What can i do and who can help me ?

Greetz

Ronni

Quote Reply
Re: Category: Error building In reply to
Which form are you using to add links?? The add.cgi or admin.cgi scripts?

Regards,

Eliot Lee
Quote Reply
Re: Category: Error building In reply to
Hello,

i only can use the admin.cgi to insert links, the add.cgi does not work, why after sending the formular add.cgi i become the error message "Category (Can not be left blank)".

Because i canīt insert a category, while there is the error message i tell you in my first question.

In the admin.cgi there is a empty field, there i can insert a category but i canīt select it.

Greetz

Ronni

Quote Reply
Re: Category: Error building In reply to
You need to first add Categories before adding links.

After adding Categories, the drop-down menu should appear.

Refer to the README file that states:

1) First, add categories via admin.cgi
2) Second, add links via admin.cgi
3) Test the add.cgi and modify.cgi scripts

Regards,

Eliot Lee
Quote Reply
Re: Category: Error building In reply to
Hello,

>You need to first add Categories before adding links.
>After adding Categories, the drop-down menu should appear.

Yes, i know. I add one categorie at the admin.cgi, or two or three ...........
So long it is ok. But the drop down in the " add a link" menu from admin.cgi menu is not there.
There is a blank field.

And when i go to the add.cgi, there is written the error message, that i tell you in the first posting.

I dont know, what it is.
In the category formular, there is a field with the name : "Related:". I dont know, what must i write in this field.......

OK. sorry for my bad english.

greetz

Ronni

Quote Reply
Re: Category: Error building In reply to
In Reply To:
In the category formular, there is a field with the name : "Related:". I dont know, what must i write in this field.......
That is only for selecting "related" "similar" "connected" categories that will be linked in the category pages. Some people choose not to use this feature...I do because it helps people navigate through my site.

Have you kept the field names the same in the links.def file??? Like Category. If you have changed the name of this field, then that is what is causing you problems.

Regards,

Eliot Lee
Quote Reply
Re: Category: Error building In reply to
Hi,

oh there was a very fast answer. Thank you.

No, i donīt change the script or rename anything. other Question: is it right, when i add a category in admin.cgi and then i will add a link in admin.cgi, there ist a pull down menu at the field "category" ?
But there is no pull down menu too.

OK. here ist my links.def


# Database Definition: LINKS
# --------------------------------------------------------
# Definition of your database file.
Û_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 Û_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.
­d_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:
Û_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.
Û_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 Û_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];

Greetz

Ronni

Quote Reply
Re: Category: Error building In reply to
Okay...at this point, I will need access to your admin.cgi script, so I can see what is going on.

Give me the URL to your admin.cgi script.

Regards,

Eliot Lee
Quote Reply
Re: Category: Error building In reply to
Here is the URL:

http://aquaklick.de/cgi-bin/linkup/admin/admin.cgi

Greetings

Ronni

Quote Reply
Re: Category: Error building In reply to
Hi Eliot Lee,

have you read my last answer ?

Greetz

Ronni

Quote Reply
Re: Category: Error building In reply to
Yes...I did...and I tested your script...I tried adding new categories and then links...I do not know at this time what the problem is...if and when I come up with a solution, I will try to help you...

My only suggestion is to re-install all your files and try again.

Regards,

Eliot Lee