Gossamer Forum
Home : Products : DBMan : Installation :

clickable links?

Quote Reply
clickable links?
I read the FAQ item on what line to add, but where is "html_record"? What file, and where?

------------------
http://civnation.com
Quote Reply
Re: clickable links? In reply to
"html_record" is a subroutine within the html.pl file. You need to have defined your own display of records (which is what the html_record subroutine is for) in order to add the line. In other words, you cannot be using the autogenerate feature.

If you are using the autogenerate feature, I think I posted something about that just the other day. I'll see if I can find where it is and post it here. If there's nothing below this except my initials, I didn't find it.

I found it!
http://www.gossamer-threads.com/scripts/forum/resources/Forum5/HTML/001117.html

------------------
JPD







[This message has been edited by JPDeni (edited June 18, 1999).]
Quote Reply
Re: clickable links? In reply to
Thanks, but I need to have autogenerate on. I tried that code you said to replace in the other thread, but it gives me an error when I try to load it. Is there anything else I can do?

------------------
http://civnation.com
Quote Reply
Re: clickable links? In reply to
What sort of error does it give you? I checked the code and there are no syntax errors in it. Are you sure you replaced the entire subroutine, from the title --
sub build_html_record

through the last } just before

sub build_html_record_form

This is the only way to get clickable links without building your own html_record subroutine.

------------------
JPD





Quote Reply
Re: clickable links? In reply to
I did, and have a couple of times to make sure that I did it right. I keep getting this error:

Code:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@gamenation.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

Premature end of script headers: /var/www/virtual/domains/civnation.com/docs/cgi-bin/civdb/db.cgi




------------------
http://civnation.com
Quote Reply
Re: clickable links? In reply to
Can you make your db.cgi script available? Copy it to a directory where you would normally put html files and rename it to db_cgi.txt. Then let me know where to find it and I'll see if I can find the error.


------------------
JPD





Quote Reply
Re: clickable links? In reply to
Thanks for looking at this. I'm sure it's something stupid I overlooked...

civnation.com/demos/db.txt

Also, I know that the lines are all togther, that's because I copied it directly from the message you posted. I tried to separate the lines exactly as they were shown, but still got the same message.
------------------
civnation.com

[This message has been edited by civnation (edited June 20, 1999).]
Quote Reply
Re: clickable links? In reply to
There are two problems with your db.cgi script. One is that you have a line of ---s before sub build_html_record. You need to take out that line.

The other problem is that the entire sub build_html_record is on one line. You need to break it up into the lines like are on the other thread where the subroutine is. A lot of times perl scripts can be on one line and there's not a problem. However, this one has comment lines, and anything after a # is considered a comment, so most of your subroutine isn't being read by the script.

If you keep the formatting as it is in the subroutine I posted, you'll be just fine.


------------------
JPD