Gossamer Forum
Home : Products : Links 2.0 : Customization :

Limit of fields in category.def ???

Quote Reply
Limit of fields in category.def ???
Hi,

I added up to 11 fields and when I added the twelveth field I get an internal server error

I did everything correctly for the other fields but on number 12 I got the internal server error.

Theres a limit somewhere. What can I change or modify to fix this so I dont get the internal server error?

Thanks
Ibrahim
Quote Reply
Re: Limit of fields in category.def ??? In reply to
Typically, with flat file systems like LINKS, databases can hold up to 150 fields. So, there must be a syntax error in your %db_def hash in the category.def file.

Make sure that you have a comma after the field info for the 11th field and NO comma after the 12th field line.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Limit of fields in category.def ??? In reply to
I have all that you mentioned done correctly and I still get the internal error message.

For field 12 I added the SUBCATEGORIES LIKE YAHOO v2.1
from:
http://www.gossamer-threads.com/scripts/resources/jump.cgi?ID=1072

I was looking through the links.cfg file and noticed:
# Field number of category in category.db
$db_main_category = 1;
should this be changed from one to two ?
since there is now a ones and a tenths place in my fields.
Quote Reply
Re: Limit of fields in category.def ??? In reply to
 
Quote:
since there is now a ones and a tenths place in my fields.

What is the field number of the Name field in your category.def file? If it is 1, then NO, you do not need to change it to 2.

Please copy your complete %db_def hash in the category.def. I betcha you have a syntax error in that section of the file.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Limit of fields in category.def ??? In reply to
Coding at that hour of morning is highly dangerous and will only lead to heightened levels of frustration.

"Coding with a clear head is the key to success."

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Limit of fields in category.def ??? In reply to
Its true but
it was 3:25AM eastern time I wasnt really thinking about it at the time.

I think adding new stuff is fun too.

Thanks
Quote Reply
Re: Limit of fields in category.def ??? In reply to
this is what it looks like:

re-edited for personal reasons
Thanks!

this is with my fields that I customized
they all work but when I add the 12 field I get the internal server error

[This message has been edited by incik (edited May 14, 2000).]
Quote Reply
Re: Limit of fields in category.def ??? In reply to
Looks like you did not complete adding the correct variables in your nph-build.cgi file. I already posted codes today for another user of what you need to add to the sub build_category_pages routine in the nph-build.cgi file (and the Topic directly relates to this since the user had problems installing the same Modification as you are attempting to install).

Anyway...you need to replace the following codes in the sub-routine that I mentioned already:

Code:
local ($description, $related, $meta_name, $meta_keywords, $header, $footer, $next, $prev);

with the following codes:

Code:
local ($description, $related, $meta_name, $meta_keywords, $header, $footer, $lside, $rside, $header2, $footer2, $subcatstyle,$next, $prev);

Then replace the following codes:

Code:
# We set up all the variables people can use in &site_html.pl.
($description, $related, $meta_name, $meta_keywords, $header, $footer) = @{$category{$cat}}[2..7];

with the following codes:

Code:
# We set up all the variables people can use in &site_html.pl.
($description, $related, $meta_name, $meta_keywords, $header, $footer, $lside, $rside, $header2, $footer2, $subcatstyle) = @{$category{$cat}}[2..12];

Hope this helps.

Regards,



Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Limit of fields in category.def ??? In reply to
I had done all that for the other fields

but since it didnt mention it in the:

SUBCATEGORIES LIKE YAHOO v2.1
from:
http://www.gossamer-threads.com/scripts/resources/jump.cgi?ID=1072


I didnt think about it

someone should update that link and also the link for adding new fields with the info about where to add the additional info into the nph-build.cgi

Thanks
for the help
Quote Reply
Re: Limit of fields in category.def ??? In reply to
You're welcome....

Quote:
someone should update that link and also the link for adding new fields with the info about where to add the additional info into the nph-build.cgi

True...

However...

"Thinking out of the box (codes) is not only fun, but effective!"

Why if you add other fields and you did what I suggested, would you not do the same for the SubCatStyle field, hmmm?

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.