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

add.cgi problem

Quote Reply
add.cgi problem
Hi!

I have problem with adding pages to my directory :(
When i klick at http://musicworld.zone.pl/cgi-bin/add.pl i can see: "Unkown Tag: Title" :(

And if i klick at http://musicworld.zone.pl/katalog/add.html i don`t have category tab.

Please help me!:)

Quote Reply
Re: add.cgi problem In reply to
Compare the codes you've hacked in the add.html template file with the default out-of-box add.html template file...because you most likely have hacked something that is causing the problem.

Also, if you have hacked the add.pl (.cgi) file, compare your hacked codes with the default out-of-box file.

Regards,

Eliot Lee
Quote Reply
Re: add.cgi problem In reply to
Well, if you think about it add.html is for the FIRST attempt at submitting a link. add_success.html is the success page, and add_error.html is the re-try page. So, after that, why may I ask do you have tags like <%Title%>, <%URL%> etc in the add.html form options? I think you have got a bit confused with add_error.html and add.html pages Wink

Taking out the extra tags will more than likely sort it!

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: add.cgi problem In reply to
huh...

I changed add.html and add.pl into oryginal files and i have got the same problem :( there you have the source of my add.pl file : http://musicworld.zone.pl/cgi-bin/add.txt

Quote Reply
Re: add.cgi problem In reply to
In site_html_templates.pl make sure you have:

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

my $category = shift;
$category ?
($category = qq~$category <input type=hidden name="Category" value="$category">~) :
($category = &build_select_field ("Category", "$in{'Category'}"));

print &load_template ('add.html', {
Category => $category,
%globals
});
}
If that doesn't work try adding %in, also



Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: add.cgi problem In reply to
i have oryginal site_html_templates.pl but it still doesn`t work..

If that doesn't work try adding %in, also - i dont understand... what and where i have to add.

Quote Reply
Re: add.cgi problem In reply to
Above %globals add %in,

You shouldn't have to add that though unless you are passing variables to the add page from a form.

%globals should suffice but try adding %in, anyway

What mods have you recently added?

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: add.cgi problem In reply to
i didn`t add any mods... :(

In add_error.html and add_succes.html i can chose a category :(